1// Copyright 2021 Google LLC.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Code generated file. DO NOT EDIT.
6
7// Package dialogflow provides access to the Dialogflow API.
8//
9// This package is DEPRECATED. Use package cloud.google.com/go/dialogflow/apiv2 instead.
10//
11// For product documentation, see: https://cloud.google.com/dialogflow/
12//
13// Creating a client
14//
15// Usage example:
16//
17//   import "google.golang.org/api/dialogflow/v2beta1"
18//   ...
19//   ctx := context.Background()
20//   dialogflowService, err := dialogflow.NewService(ctx)
21//
22// In this example, Google Application Default Credentials are used for authentication.
23//
24// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
25//
26// Other authentication options
27//
28// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
29//
30//   dialogflowService, err := dialogflow.NewService(ctx, option.WithScopes(dialogflow.DialogflowScope))
31//
32// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
33//
34//   dialogflowService, err := dialogflow.NewService(ctx, option.WithAPIKey("AIza..."))
35//
36// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
37//
38//   config := &oauth2.Config{...}
39//   // ...
40//   token, err := config.Exchange(ctx, ...)
41//   dialogflowService, err := dialogflow.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
42//
43// See https://godoc.org/google.golang.org/api/option/ for details on options.
44package dialogflow // import "google.golang.org/api/dialogflow/v2beta1"
45
46import (
47	"bytes"
48	"context"
49	"encoding/json"
50	"errors"
51	"fmt"
52	"io"
53	"net/http"
54	"net/url"
55	"strconv"
56	"strings"
57
58	googleapi "google.golang.org/api/googleapi"
59	gensupport "google.golang.org/api/internal/gensupport"
60	option "google.golang.org/api/option"
61	internaloption "google.golang.org/api/option/internaloption"
62	htransport "google.golang.org/api/transport/http"
63)
64
65// Always reference these packages, just in case the auto-generated code
66// below doesn't.
67var _ = bytes.NewBuffer
68var _ = strconv.Itoa
69var _ = fmt.Sprintf
70var _ = json.NewDecoder
71var _ = io.Copy
72var _ = url.Parse
73var _ = gensupport.MarshalJSON
74var _ = googleapi.Version
75var _ = errors.New
76var _ = strings.Replace
77var _ = context.Canceled
78var _ = internaloption.WithDefaultEndpoint
79
80const apiId = "dialogflow:v2beta1"
81const apiName = "dialogflow"
82const apiVersion = "v2beta1"
83const basePath = "https://dialogflow.googleapis.com/"
84const mtlsBasePath = "https://dialogflow.mtls.googleapis.com/"
85
86// OAuth2 scopes used by this API.
87const (
88	// See, edit, configure, and delete your Google Cloud Platform data
89	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
90
91	// View, manage and query your Dialogflow agents
92	DialogflowScope = "https://www.googleapis.com/auth/dialogflow"
93)
94
95// NewService creates a new Service.
96func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
97	scopesOption := option.WithScopes(
98		"https://www.googleapis.com/auth/cloud-platform",
99		"https://www.googleapis.com/auth/dialogflow",
100	)
101	// NOTE: prepend, so we don't override user-specified scopes.
102	opts = append([]option.ClientOption{scopesOption}, opts...)
103	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
104	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
105	client, endpoint, err := htransport.NewClient(ctx, opts...)
106	if err != nil {
107		return nil, err
108	}
109	s, err := New(client)
110	if err != nil {
111		return nil, err
112	}
113	if endpoint != "" {
114		s.BasePath = endpoint
115	}
116	return s, nil
117}
118
119// New creates a new Service. It uses the provided http.Client for requests.
120//
121// Deprecated: please use NewService instead.
122// To provide a custom HTTP client, use option.WithHTTPClient.
123// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
124func New(client *http.Client) (*Service, error) {
125	if client == nil {
126		return nil, errors.New("client is nil")
127	}
128	s := &Service{client: client, BasePath: basePath}
129	s.Projects = NewProjectsService(s)
130	return s, nil
131}
132
133type Service struct {
134	client    *http.Client
135	BasePath  string // API endpoint base URL
136	UserAgent string // optional additional User-Agent fragment
137
138	Projects *ProjectsService
139}
140
141func (s *Service) userAgent() string {
142	if s.UserAgent == "" {
143		return googleapi.UserAgent
144	}
145	return googleapi.UserAgent + " " + s.UserAgent
146}
147
148func NewProjectsService(s *Service) *ProjectsService {
149	rs := &ProjectsService{s: s}
150	rs.Agent = NewProjectsAgentService(s)
151	rs.AnswerRecords = NewProjectsAnswerRecordsService(s)
152	rs.ConversationProfiles = NewProjectsConversationProfilesService(s)
153	rs.Conversations = NewProjectsConversationsService(s)
154	rs.KnowledgeBases = NewProjectsKnowledgeBasesService(s)
155	rs.Locations = NewProjectsLocationsService(s)
156	rs.Operations = NewProjectsOperationsService(s)
157	return rs
158}
159
160type ProjectsService struct {
161	s *Service
162
163	Agent *ProjectsAgentService
164
165	AnswerRecords *ProjectsAnswerRecordsService
166
167	ConversationProfiles *ProjectsConversationProfilesService
168
169	Conversations *ProjectsConversationsService
170
171	KnowledgeBases *ProjectsKnowledgeBasesService
172
173	Locations *ProjectsLocationsService
174
175	Operations *ProjectsOperationsService
176}
177
178func NewProjectsAgentService(s *Service) *ProjectsAgentService {
179	rs := &ProjectsAgentService{s: s}
180	rs.EntityTypes = NewProjectsAgentEntityTypesService(s)
181	rs.Environments = NewProjectsAgentEnvironmentsService(s)
182	rs.Intents = NewProjectsAgentIntentsService(s)
183	rs.KnowledgeBases = NewProjectsAgentKnowledgeBasesService(s)
184	rs.Sessions = NewProjectsAgentSessionsService(s)
185	rs.Versions = NewProjectsAgentVersionsService(s)
186	return rs
187}
188
189type ProjectsAgentService struct {
190	s *Service
191
192	EntityTypes *ProjectsAgentEntityTypesService
193
194	Environments *ProjectsAgentEnvironmentsService
195
196	Intents *ProjectsAgentIntentsService
197
198	KnowledgeBases *ProjectsAgentKnowledgeBasesService
199
200	Sessions *ProjectsAgentSessionsService
201
202	Versions *ProjectsAgentVersionsService
203}
204
205func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService {
206	rs := &ProjectsAgentEntityTypesService{s: s}
207	rs.Entities = NewProjectsAgentEntityTypesEntitiesService(s)
208	return rs
209}
210
211type ProjectsAgentEntityTypesService struct {
212	s *Service
213
214	Entities *ProjectsAgentEntityTypesEntitiesService
215}
216
217func NewProjectsAgentEntityTypesEntitiesService(s *Service) *ProjectsAgentEntityTypesEntitiesService {
218	rs := &ProjectsAgentEntityTypesEntitiesService{s: s}
219	return rs
220}
221
222type ProjectsAgentEntityTypesEntitiesService struct {
223	s *Service
224}
225
226func NewProjectsAgentEnvironmentsService(s *Service) *ProjectsAgentEnvironmentsService {
227	rs := &ProjectsAgentEnvironmentsService{s: s}
228	rs.Intents = NewProjectsAgentEnvironmentsIntentsService(s)
229	rs.Users = NewProjectsAgentEnvironmentsUsersService(s)
230	return rs
231}
232
233type ProjectsAgentEnvironmentsService struct {
234	s *Service
235
236	Intents *ProjectsAgentEnvironmentsIntentsService
237
238	Users *ProjectsAgentEnvironmentsUsersService
239}
240
241func NewProjectsAgentEnvironmentsIntentsService(s *Service) *ProjectsAgentEnvironmentsIntentsService {
242	rs := &ProjectsAgentEnvironmentsIntentsService{s: s}
243	return rs
244}
245
246type ProjectsAgentEnvironmentsIntentsService struct {
247	s *Service
248}
249
250func NewProjectsAgentEnvironmentsUsersService(s *Service) *ProjectsAgentEnvironmentsUsersService {
251	rs := &ProjectsAgentEnvironmentsUsersService{s: s}
252	rs.Sessions = NewProjectsAgentEnvironmentsUsersSessionsService(s)
253	return rs
254}
255
256type ProjectsAgentEnvironmentsUsersService struct {
257	s *Service
258
259	Sessions *ProjectsAgentEnvironmentsUsersSessionsService
260}
261
262func NewProjectsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsService {
263	rs := &ProjectsAgentEnvironmentsUsersSessionsService{s: s}
264	rs.Contexts = NewProjectsAgentEnvironmentsUsersSessionsContextsService(s)
265	rs.EntityTypes = NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s)
266	return rs
267}
268
269type ProjectsAgentEnvironmentsUsersSessionsService struct {
270	s *Service
271
272	Contexts *ProjectsAgentEnvironmentsUsersSessionsContextsService
273
274	EntityTypes *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService
275}
276
277func NewProjectsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsContextsService {
278	rs := &ProjectsAgentEnvironmentsUsersSessionsContextsService{s: s}
279	return rs
280}
281
282type ProjectsAgentEnvironmentsUsersSessionsContextsService struct {
283	s *Service
284}
285
286func NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService {
287	rs := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
288	return rs
289}
290
291type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService struct {
292	s *Service
293}
294
295func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService {
296	rs := &ProjectsAgentIntentsService{s: s}
297	return rs
298}
299
300type ProjectsAgentIntentsService struct {
301	s *Service
302}
303
304func NewProjectsAgentKnowledgeBasesService(s *Service) *ProjectsAgentKnowledgeBasesService {
305	rs := &ProjectsAgentKnowledgeBasesService{s: s}
306	rs.Documents = NewProjectsAgentKnowledgeBasesDocumentsService(s)
307	return rs
308}
309
310type ProjectsAgentKnowledgeBasesService struct {
311	s *Service
312
313	Documents *ProjectsAgentKnowledgeBasesDocumentsService
314}
315
316func NewProjectsAgentKnowledgeBasesDocumentsService(s *Service) *ProjectsAgentKnowledgeBasesDocumentsService {
317	rs := &ProjectsAgentKnowledgeBasesDocumentsService{s: s}
318	return rs
319}
320
321type ProjectsAgentKnowledgeBasesDocumentsService struct {
322	s *Service
323}
324
325func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService {
326	rs := &ProjectsAgentSessionsService{s: s}
327	rs.Contexts = NewProjectsAgentSessionsContextsService(s)
328	rs.EntityTypes = NewProjectsAgentSessionsEntityTypesService(s)
329	return rs
330}
331
332type ProjectsAgentSessionsService struct {
333	s *Service
334
335	Contexts *ProjectsAgentSessionsContextsService
336
337	EntityTypes *ProjectsAgentSessionsEntityTypesService
338}
339
340func NewProjectsAgentSessionsContextsService(s *Service) *ProjectsAgentSessionsContextsService {
341	rs := &ProjectsAgentSessionsContextsService{s: s}
342	return rs
343}
344
345type ProjectsAgentSessionsContextsService struct {
346	s *Service
347}
348
349func NewProjectsAgentSessionsEntityTypesService(s *Service) *ProjectsAgentSessionsEntityTypesService {
350	rs := &ProjectsAgentSessionsEntityTypesService{s: s}
351	return rs
352}
353
354type ProjectsAgentSessionsEntityTypesService struct {
355	s *Service
356}
357
358func NewProjectsAgentVersionsService(s *Service) *ProjectsAgentVersionsService {
359	rs := &ProjectsAgentVersionsService{s: s}
360	return rs
361}
362
363type ProjectsAgentVersionsService struct {
364	s *Service
365}
366
367func NewProjectsAnswerRecordsService(s *Service) *ProjectsAnswerRecordsService {
368	rs := &ProjectsAnswerRecordsService{s: s}
369	return rs
370}
371
372type ProjectsAnswerRecordsService struct {
373	s *Service
374}
375
376func NewProjectsConversationProfilesService(s *Service) *ProjectsConversationProfilesService {
377	rs := &ProjectsConversationProfilesService{s: s}
378	return rs
379}
380
381type ProjectsConversationProfilesService struct {
382	s *Service
383}
384
385func NewProjectsConversationsService(s *Service) *ProjectsConversationsService {
386	rs := &ProjectsConversationsService{s: s}
387	rs.Messages = NewProjectsConversationsMessagesService(s)
388	rs.Participants = NewProjectsConversationsParticipantsService(s)
389	return rs
390}
391
392type ProjectsConversationsService struct {
393	s *Service
394
395	Messages *ProjectsConversationsMessagesService
396
397	Participants *ProjectsConversationsParticipantsService
398}
399
400func NewProjectsConversationsMessagesService(s *Service) *ProjectsConversationsMessagesService {
401	rs := &ProjectsConversationsMessagesService{s: s}
402	return rs
403}
404
405type ProjectsConversationsMessagesService struct {
406	s *Service
407}
408
409func NewProjectsConversationsParticipantsService(s *Service) *ProjectsConversationsParticipantsService {
410	rs := &ProjectsConversationsParticipantsService{s: s}
411	rs.Suggestions = NewProjectsConversationsParticipantsSuggestionsService(s)
412	return rs
413}
414
415type ProjectsConversationsParticipantsService struct {
416	s *Service
417
418	Suggestions *ProjectsConversationsParticipantsSuggestionsService
419}
420
421func NewProjectsConversationsParticipantsSuggestionsService(s *Service) *ProjectsConversationsParticipantsSuggestionsService {
422	rs := &ProjectsConversationsParticipantsSuggestionsService{s: s}
423	return rs
424}
425
426type ProjectsConversationsParticipantsSuggestionsService struct {
427	s *Service
428}
429
430func NewProjectsKnowledgeBasesService(s *Service) *ProjectsKnowledgeBasesService {
431	rs := &ProjectsKnowledgeBasesService{s: s}
432	rs.Documents = NewProjectsKnowledgeBasesDocumentsService(s)
433	return rs
434}
435
436type ProjectsKnowledgeBasesService struct {
437	s *Service
438
439	Documents *ProjectsKnowledgeBasesDocumentsService
440}
441
442func NewProjectsKnowledgeBasesDocumentsService(s *Service) *ProjectsKnowledgeBasesDocumentsService {
443	rs := &ProjectsKnowledgeBasesDocumentsService{s: s}
444	return rs
445}
446
447type ProjectsKnowledgeBasesDocumentsService struct {
448	s *Service
449}
450
451func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
452	rs := &ProjectsLocationsService{s: s}
453	rs.Agent = NewProjectsLocationsAgentService(s)
454	rs.AnswerRecords = NewProjectsLocationsAnswerRecordsService(s)
455	rs.ConversationProfiles = NewProjectsLocationsConversationProfilesService(s)
456	rs.Conversations = NewProjectsLocationsConversationsService(s)
457	rs.KnowledgeBases = NewProjectsLocationsKnowledgeBasesService(s)
458	rs.Operations = NewProjectsLocationsOperationsService(s)
459	return rs
460}
461
462type ProjectsLocationsService struct {
463	s *Service
464
465	Agent *ProjectsLocationsAgentService
466
467	AnswerRecords *ProjectsLocationsAnswerRecordsService
468
469	ConversationProfiles *ProjectsLocationsConversationProfilesService
470
471	Conversations *ProjectsLocationsConversationsService
472
473	KnowledgeBases *ProjectsLocationsKnowledgeBasesService
474
475	Operations *ProjectsLocationsOperationsService
476}
477
478func NewProjectsLocationsAgentService(s *Service) *ProjectsLocationsAgentService {
479	rs := &ProjectsLocationsAgentService{s: s}
480	rs.EntityTypes = NewProjectsLocationsAgentEntityTypesService(s)
481	rs.Environments = NewProjectsLocationsAgentEnvironmentsService(s)
482	rs.Intents = NewProjectsLocationsAgentIntentsService(s)
483	rs.Sessions = NewProjectsLocationsAgentSessionsService(s)
484	rs.Versions = NewProjectsLocationsAgentVersionsService(s)
485	return rs
486}
487
488type ProjectsLocationsAgentService struct {
489	s *Service
490
491	EntityTypes *ProjectsLocationsAgentEntityTypesService
492
493	Environments *ProjectsLocationsAgentEnvironmentsService
494
495	Intents *ProjectsLocationsAgentIntentsService
496
497	Sessions *ProjectsLocationsAgentSessionsService
498
499	Versions *ProjectsLocationsAgentVersionsService
500}
501
502func NewProjectsLocationsAgentEntityTypesService(s *Service) *ProjectsLocationsAgentEntityTypesService {
503	rs := &ProjectsLocationsAgentEntityTypesService{s: s}
504	rs.Entities = NewProjectsLocationsAgentEntityTypesEntitiesService(s)
505	return rs
506}
507
508type ProjectsLocationsAgentEntityTypesService struct {
509	s *Service
510
511	Entities *ProjectsLocationsAgentEntityTypesEntitiesService
512}
513
514func NewProjectsLocationsAgentEntityTypesEntitiesService(s *Service) *ProjectsLocationsAgentEntityTypesEntitiesService {
515	rs := &ProjectsLocationsAgentEntityTypesEntitiesService{s: s}
516	return rs
517}
518
519type ProjectsLocationsAgentEntityTypesEntitiesService struct {
520	s *Service
521}
522
523func NewProjectsLocationsAgentEnvironmentsService(s *Service) *ProjectsLocationsAgentEnvironmentsService {
524	rs := &ProjectsLocationsAgentEnvironmentsService{s: s}
525	rs.Intents = NewProjectsLocationsAgentEnvironmentsIntentsService(s)
526	rs.Users = NewProjectsLocationsAgentEnvironmentsUsersService(s)
527	return rs
528}
529
530type ProjectsLocationsAgentEnvironmentsService struct {
531	s *Service
532
533	Intents *ProjectsLocationsAgentEnvironmentsIntentsService
534
535	Users *ProjectsLocationsAgentEnvironmentsUsersService
536}
537
538func NewProjectsLocationsAgentEnvironmentsIntentsService(s *Service) *ProjectsLocationsAgentEnvironmentsIntentsService {
539	rs := &ProjectsLocationsAgentEnvironmentsIntentsService{s: s}
540	return rs
541}
542
543type ProjectsLocationsAgentEnvironmentsIntentsService struct {
544	s *Service
545}
546
547func NewProjectsLocationsAgentEnvironmentsUsersService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersService {
548	rs := &ProjectsLocationsAgentEnvironmentsUsersService{s: s}
549	rs.Sessions = NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s)
550	return rs
551}
552
553type ProjectsLocationsAgentEnvironmentsUsersService struct {
554	s *Service
555
556	Sessions *ProjectsLocationsAgentEnvironmentsUsersSessionsService
557}
558
559func NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsService {
560	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsService{s: s}
561	rs.Contexts = NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s)
562	rs.EntityTypes = NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s)
563	return rs
564}
565
566type ProjectsLocationsAgentEnvironmentsUsersSessionsService struct {
567	s *Service
568
569	Contexts *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService
570
571	EntityTypes *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService
572}
573
574func NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService {
575	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService{s: s}
576	return rs
577}
578
579type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService struct {
580	s *Service
581}
582
583func NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService {
584	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
585	return rs
586}
587
588type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService struct {
589	s *Service
590}
591
592func NewProjectsLocationsAgentIntentsService(s *Service) *ProjectsLocationsAgentIntentsService {
593	rs := &ProjectsLocationsAgentIntentsService{s: s}
594	return rs
595}
596
597type ProjectsLocationsAgentIntentsService struct {
598	s *Service
599}
600
601func NewProjectsLocationsAgentSessionsService(s *Service) *ProjectsLocationsAgentSessionsService {
602	rs := &ProjectsLocationsAgentSessionsService{s: s}
603	rs.Contexts = NewProjectsLocationsAgentSessionsContextsService(s)
604	rs.EntityTypes = NewProjectsLocationsAgentSessionsEntityTypesService(s)
605	return rs
606}
607
608type ProjectsLocationsAgentSessionsService struct {
609	s *Service
610
611	Contexts *ProjectsLocationsAgentSessionsContextsService
612
613	EntityTypes *ProjectsLocationsAgentSessionsEntityTypesService
614}
615
616func NewProjectsLocationsAgentSessionsContextsService(s *Service) *ProjectsLocationsAgentSessionsContextsService {
617	rs := &ProjectsLocationsAgentSessionsContextsService{s: s}
618	return rs
619}
620
621type ProjectsLocationsAgentSessionsContextsService struct {
622	s *Service
623}
624
625func NewProjectsLocationsAgentSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentSessionsEntityTypesService {
626	rs := &ProjectsLocationsAgentSessionsEntityTypesService{s: s}
627	return rs
628}
629
630type ProjectsLocationsAgentSessionsEntityTypesService struct {
631	s *Service
632}
633
634func NewProjectsLocationsAgentVersionsService(s *Service) *ProjectsLocationsAgentVersionsService {
635	rs := &ProjectsLocationsAgentVersionsService{s: s}
636	return rs
637}
638
639type ProjectsLocationsAgentVersionsService struct {
640	s *Service
641}
642
643func NewProjectsLocationsAnswerRecordsService(s *Service) *ProjectsLocationsAnswerRecordsService {
644	rs := &ProjectsLocationsAnswerRecordsService{s: s}
645	return rs
646}
647
648type ProjectsLocationsAnswerRecordsService struct {
649	s *Service
650}
651
652func NewProjectsLocationsConversationProfilesService(s *Service) *ProjectsLocationsConversationProfilesService {
653	rs := &ProjectsLocationsConversationProfilesService{s: s}
654	return rs
655}
656
657type ProjectsLocationsConversationProfilesService struct {
658	s *Service
659}
660
661func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService {
662	rs := &ProjectsLocationsConversationsService{s: s}
663	rs.Messages = NewProjectsLocationsConversationsMessagesService(s)
664	rs.Participants = NewProjectsLocationsConversationsParticipantsService(s)
665	return rs
666}
667
668type ProjectsLocationsConversationsService struct {
669	s *Service
670
671	Messages *ProjectsLocationsConversationsMessagesService
672
673	Participants *ProjectsLocationsConversationsParticipantsService
674}
675
676func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService {
677	rs := &ProjectsLocationsConversationsMessagesService{s: s}
678	return rs
679}
680
681type ProjectsLocationsConversationsMessagesService struct {
682	s *Service
683}
684
685func NewProjectsLocationsConversationsParticipantsService(s *Service) *ProjectsLocationsConversationsParticipantsService {
686	rs := &ProjectsLocationsConversationsParticipantsService{s: s}
687	rs.Suggestions = NewProjectsLocationsConversationsParticipantsSuggestionsService(s)
688	return rs
689}
690
691type ProjectsLocationsConversationsParticipantsService struct {
692	s *Service
693
694	Suggestions *ProjectsLocationsConversationsParticipantsSuggestionsService
695}
696
697func NewProjectsLocationsConversationsParticipantsSuggestionsService(s *Service) *ProjectsLocationsConversationsParticipantsSuggestionsService {
698	rs := &ProjectsLocationsConversationsParticipantsSuggestionsService{s: s}
699	return rs
700}
701
702type ProjectsLocationsConversationsParticipantsSuggestionsService struct {
703	s *Service
704}
705
706func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService {
707	rs := &ProjectsLocationsKnowledgeBasesService{s: s}
708	rs.Documents = NewProjectsLocationsKnowledgeBasesDocumentsService(s)
709	return rs
710}
711
712type ProjectsLocationsKnowledgeBasesService struct {
713	s *Service
714
715	Documents *ProjectsLocationsKnowledgeBasesDocumentsService
716}
717
718func NewProjectsLocationsKnowledgeBasesDocumentsService(s *Service) *ProjectsLocationsKnowledgeBasesDocumentsService {
719	rs := &ProjectsLocationsKnowledgeBasesDocumentsService{s: s}
720	return rs
721}
722
723type ProjectsLocationsKnowledgeBasesDocumentsService struct {
724	s *Service
725}
726
727func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
728	rs := &ProjectsLocationsOperationsService{s: s}
729	return rs
730}
731
732type ProjectsLocationsOperationsService struct {
733	s *Service
734}
735
736func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
737	rs := &ProjectsOperationsService{s: s}
738	return rs
739}
740
741type ProjectsOperationsService struct {
742	s *Service
743}
744
745// GoogleCloudDialogflowCxV3AudioInput: Represents the natural speech
746// audio to be processed.
747type GoogleCloudDialogflowCxV3AudioInput struct {
748	// Audio: The natural language speech audio to be processed. A single
749	// request can contain up to 1 minute of speech audio data. The
750	// transcribed text cannot contain more than 256 bytes. For
751	// non-streaming audio detect intent, both `config` and `audio` must be
752	// provided. For streaming audio detect intent, `config` must be
753	// provided in the first request and `audio` must be provided in all
754	// following requests.
755	Audio string `json:"audio,omitempty"`
756
757	// Config: Required. Instructs the speech recognizer how to process the
758	// speech audio.
759	Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
760
761	// ForceSendFields is a list of field names (e.g. "Audio") to
762	// unconditionally include in API requests. By default, fields with
763	// empty values are omitted from API requests. However, any non-pointer,
764	// non-interface field appearing in ForceSendFields will be sent to the
765	// server regardless of whether the field is empty or not. This may be
766	// used to include empty fields in Patch requests.
767	ForceSendFields []string `json:"-"`
768
769	// NullFields is a list of field names (e.g. "Audio") to include in API
770	// requests with the JSON null value. By default, fields with empty
771	// values are omitted from API requests. However, any field with an
772	// empty value appearing in NullFields will be sent to the server as
773	// null. It is an error if a field in this list has a non-empty value.
774	// This may be used to include null fields in Patch requests.
775	NullFields []string `json:"-"`
776}
777
778func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
779	type NoMethod GoogleCloudDialogflowCxV3AudioInput
780	raw := NoMethod(*s)
781	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
782}
783
784// GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata: Metadata returned
785// for the TestCases.BatchRunTestCases long running operation.
786type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
787	// Errors: The test errors.
788	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
789
790	// ForceSendFields is a list of field names (e.g. "Errors") to
791	// unconditionally include in API requests. By default, fields with
792	// empty values are omitted from API requests. However, any non-pointer,
793	// non-interface field appearing in ForceSendFields will be sent to the
794	// server regardless of whether the field is empty or not. This may be
795	// used to include empty fields in Patch requests.
796	ForceSendFields []string `json:"-"`
797
798	// NullFields is a list of field names (e.g. "Errors") to include in API
799	// requests with the JSON null value. By default, fields with empty
800	// values are omitted from API requests. However, any field with an
801	// empty value appearing in NullFields will be sent to the server as
802	// null. It is an error if a field in this list has a non-empty value.
803	// This may be used to include null fields in Patch requests.
804	NullFields []string `json:"-"`
805}
806
807func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
808	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
809	raw := NoMethod(*s)
810	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
811}
812
813// GoogleCloudDialogflowCxV3BatchRunTestCasesResponse: The response
814// message for TestCases.BatchRunTestCases.
815type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
816	// Results: The test case results. The detailed conversation turns are
817	// empty in this response.
818	Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
819
820	// ForceSendFields is a list of field names (e.g. "Results") to
821	// unconditionally include in API requests. By default, fields with
822	// empty values are omitted from API requests. However, any non-pointer,
823	// non-interface field appearing in ForceSendFields will be sent to the
824	// server regardless of whether the field is empty or not. This may be
825	// used to include empty fields in Patch requests.
826	ForceSendFields []string `json:"-"`
827
828	// NullFields is a list of field names (e.g. "Results") to include in
829	// API requests with the JSON null value. By default, fields with empty
830	// values are omitted from API requests. However, any field with an
831	// empty value appearing in NullFields will be sent to the server as
832	// null. It is an error if a field in this list has a non-empty value.
833	// This may be used to include null fields in Patch requests.
834	NullFields []string `json:"-"`
835}
836
837func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
838	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
839	raw := NoMethod(*s)
840	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
841}
842
843// GoogleCloudDialogflowCxV3ContinuousTestResult: Represents a result
844// from running a test case in an agent environment.
845type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
846	// Name: The resource name for the continuous test result. Format:
847	// `projects//locations//agents//environments//continuousTestResults/`.
848	Name string `json:"name,omitempty"`
849
850	// Result: The result of this continuous test run, i.e. whether all the
851	// tests in this continuous test run pass or not.
852	//
853	// Possible values:
854	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never
855	// be used.
856	//   "PASSED" - All the tests passed.
857	//   "FAILED" - At least one test did not pass.
858	Result string `json:"result,omitempty"`
859
860	// RunTime: Time when the continuous testing run starts.
861	RunTime string `json:"runTime,omitempty"`
862
863	// TestCaseResults: A list of individual test case results names in this
864	// continuous test run.
865	TestCaseResults []string `json:"testCaseResults,omitempty"`
866
867	// ForceSendFields is a list of field names (e.g. "Name") to
868	// unconditionally include in API requests. By default, fields with
869	// empty values are omitted from API requests. However, any non-pointer,
870	// non-interface field appearing in ForceSendFields will be sent to the
871	// server regardless of whether the field is empty or not. This may be
872	// used to include empty fields in Patch requests.
873	ForceSendFields []string `json:"-"`
874
875	// NullFields is a list of field names (e.g. "Name") to include in API
876	// requests with the JSON null value. By default, fields with empty
877	// values are omitted from API requests. However, any field with an
878	// empty value appearing in NullFields will be sent to the server as
879	// null. It is an error if a field in this list has a non-empty value.
880	// This may be used to include null fields in Patch requests.
881	NullFields []string `json:"-"`
882}
883
884func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
885	type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
886	raw := NoMethod(*s)
887	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
888}
889
890// GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a
891// human and virtual agent. The human provides some input and the
892// virtual agent provides a response.
893type GoogleCloudDialogflowCxV3ConversationTurn struct {
894	// UserInput: The user input.
895	UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
896
897	// VirtualAgentOutput: The virtual agent output.
898	VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
899
900	// ForceSendFields is a list of field names (e.g. "UserInput") to
901	// unconditionally include in API requests. By default, fields with
902	// empty values are omitted from API requests. However, any non-pointer,
903	// non-interface field appearing in ForceSendFields will be sent to the
904	// server regardless of whether the field is empty or not. This may be
905	// used to include empty fields in Patch requests.
906	ForceSendFields []string `json:"-"`
907
908	// NullFields is a list of field names (e.g. "UserInput") to include in
909	// API requests with the JSON null value. By default, fields with empty
910	// values are omitted from API requests. However, any field with an
911	// empty value appearing in NullFields will be sent to the server as
912	// null. It is an error if a field in this list has a non-empty value.
913	// This may be used to include null fields in Patch requests.
914	NullFields []string `json:"-"`
915}
916
917func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
918	type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
919	raw := NoMethod(*s)
920	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
921}
922
923// GoogleCloudDialogflowCxV3ConversationTurnUserInput: The input from
924// the human user.
925type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
926	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
927	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
928
929	// InjectedParameters: Parameters that need to be injected into the
930	// conversation during intent detection.
931	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
932
933	// Input: Supports text input, event input, dtmf input in the test case.
934	Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
935
936	// IsWebhookEnabled: If webhooks should be allowed to trigger in
937	// response to the user utterance. Often if parameters are injected,
938	// webhooks should not be enabled.
939	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
940
941	// ForceSendFields is a list of field names (e.g.
942	// "EnableSentimentAnalysis") to unconditionally include in API
943	// requests. By default, fields with empty values are omitted from API
944	// requests. However, any non-pointer, non-interface field appearing in
945	// ForceSendFields will be sent to the server regardless of whether the
946	// field is empty or not. This may be used to include empty fields in
947	// Patch requests.
948	ForceSendFields []string `json:"-"`
949
950	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis")
951	// to include in API requests with the JSON null value. By default,
952	// fields with empty values are omitted from API requests. However, any
953	// field with an empty value appearing in NullFields will be sent to the
954	// server as null. It is an error if a field in this list has a
955	// non-empty value. This may be used to include null fields in Patch
956	// requests.
957	NullFields []string `json:"-"`
958}
959
960func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
961	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
962	raw := NoMethod(*s)
963	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
964}
965
966// GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput: The
967// output from the virtual agent.
968type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
969	// CurrentPage: The Page on which the utterance was spoken. Only name
970	// and displayName will be set.
971	CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
972
973	// DiagnosticInfo: Required. Input only. The diagnostic info output for
974	// the turn.
975	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
976
977	// Differences: Output only. If this is part of a result conversation
978	// turn, the list of differences between the original run and the replay
979	// for this output, if any.
980	Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
981
982	// SessionParameters: The session parameters available to the bot at
983	// this point.
984	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
985
986	// Status: Response error from the agent in the test result. If set,
987	// other output is empty.
988	Status *GoogleRpcStatus `json:"status,omitempty"`
989
990	// TextResponses: The text responses from the agent for the turn.
991	TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
992
993	// TriggeredIntent: The Intent that triggered the response. Only name
994	// and displayName will be set.
995	TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
996
997	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
998	// unconditionally include in API requests. By default, fields with
999	// empty values are omitted from API requests. However, any non-pointer,
1000	// non-interface field appearing in ForceSendFields will be sent to the
1001	// server regardless of whether the field is empty or not. This may be
1002	// used to include empty fields in Patch requests.
1003	ForceSendFields []string `json:"-"`
1004
1005	// NullFields is a list of field names (e.g. "CurrentPage") to include
1006	// in API requests with the JSON null value. By default, fields with
1007	// empty values are omitted from API requests. However, any field with
1008	// an empty value appearing in NullFields will be sent to the server as
1009	// null. It is an error if a field in this list has a non-empty value.
1010	// This may be used to include null fields in Patch requests.
1011	NullFields []string `json:"-"`
1012}
1013
1014func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
1015	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
1016	raw := NoMethod(*s)
1017	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1018}
1019
1020// GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata: Metadata
1021// for CreateDocument operation.
1022type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
1023	// GenericMetadata: The generic information of the operation.
1024	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1025
1026	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
1027	// unconditionally include in API requests. By default, fields with
1028	// empty values are omitted from API requests. However, any non-pointer,
1029	// non-interface field appearing in ForceSendFields will be sent to the
1030	// server regardless of whether the field is empty or not. This may be
1031	// used to include empty fields in Patch requests.
1032	ForceSendFields []string `json:"-"`
1033
1034	// NullFields is a list of field names (e.g. "GenericMetadata") to
1035	// include in API requests with the JSON null value. By default, fields
1036	// with empty values are omitted from API requests. However, any field
1037	// with an empty value appearing in NullFields will be sent to the
1038	// server as null. It is an error if a field in this list has a
1039	// non-empty value. This may be used to include null fields in Patch
1040	// requests.
1041	NullFields []string `json:"-"`
1042}
1043
1044func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1045	type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
1046	raw := NoMethod(*s)
1047	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1048}
1049
1050// GoogleCloudDialogflowCxV3CreateVersionOperationMetadata: Metadata
1051// associated with the long running operation for
1052// Versions.CreateVersion.
1053type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
1054	// Version: Name of the created version. Format:
1055	// `projects//locations//agents//flows//versions/`.
1056	Version string `json:"version,omitempty"`
1057
1058	// ForceSendFields is a list of field names (e.g. "Version") to
1059	// unconditionally include in API requests. By default, fields with
1060	// empty values are omitted from API requests. However, any non-pointer,
1061	// non-interface field appearing in ForceSendFields will be sent to the
1062	// server regardless of whether the field is empty or not. This may be
1063	// used to include empty fields in Patch requests.
1064	ForceSendFields []string `json:"-"`
1065
1066	// NullFields is a list of field names (e.g. "Version") to include in
1067	// API requests with the JSON null value. By default, fields with empty
1068	// values are omitted from API requests. However, any field with an
1069	// empty value appearing in NullFields will be sent to the server as
1070	// null. It is an error if a field in this list has a non-empty value.
1071	// This may be used to include null fields in Patch requests.
1072	NullFields []string `json:"-"`
1073}
1074
1075func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
1076	type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
1077	raw := NoMethod(*s)
1078	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1079}
1080
1081// GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata: Metadata
1082// for DeleteDocument operation.
1083type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
1084	// GenericMetadata: The generic information of the operation.
1085	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1086
1087	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
1088	// unconditionally include in API requests. By default, fields with
1089	// empty values are omitted from API requests. However, any non-pointer,
1090	// non-interface field appearing in ForceSendFields will be sent to the
1091	// server regardless of whether the field is empty or not. This may be
1092	// used to include empty fields in Patch requests.
1093	ForceSendFields []string `json:"-"`
1094
1095	// NullFields is a list of field names (e.g. "GenericMetadata") to
1096	// include in API requests with the JSON null value. By default, fields
1097	// with empty values are omitted from API requests. However, any field
1098	// with an empty value appearing in NullFields will be sent to the
1099	// server as null. It is an error if a field in this list has a
1100	// non-empty value. This may be used to include null fields in Patch
1101	// requests.
1102	NullFields []string `json:"-"`
1103}
1104
1105func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1106	type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
1107	raw := NoMethod(*s)
1108	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1109}
1110
1111// GoogleCloudDialogflowCxV3DtmfInput: Represents the input for dtmf
1112// event.
1113type GoogleCloudDialogflowCxV3DtmfInput struct {
1114	// Digits: The dtmf digits.
1115	Digits string `json:"digits,omitempty"`
1116
1117	// FinishDigit: The finish digit (if any).
1118	FinishDigit string `json:"finishDigit,omitempty"`
1119
1120	// ForceSendFields is a list of field names (e.g. "Digits") to
1121	// unconditionally include in API requests. By default, fields with
1122	// empty values are omitted from API requests. However, any non-pointer,
1123	// non-interface field appearing in ForceSendFields will be sent to the
1124	// server regardless of whether the field is empty or not. This may be
1125	// used to include empty fields in Patch requests.
1126	ForceSendFields []string `json:"-"`
1127
1128	// NullFields is a list of field names (e.g. "Digits") to include in API
1129	// requests with the JSON null value. By default, fields with empty
1130	// values are omitted from API requests. However, any field with an
1131	// empty value appearing in NullFields will be sent to the server as
1132	// null. It is an error if a field in this list has a non-empty value.
1133	// This may be used to include null fields in Patch requests.
1134	NullFields []string `json:"-"`
1135}
1136
1137func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
1138	type NoMethod GoogleCloudDialogflowCxV3DtmfInput
1139	raw := NoMethod(*s)
1140	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1141}
1142
1143// GoogleCloudDialogflowCxV3EventHandler: An event handler specifies an
1144// event that can be handled during a session. When the specified event
1145// happens, the following actions are taken in order: * If there is a
1146// `trigger_fulfillment` associated with the event, it will be called. *
1147// If there is a `target_page` associated with the event, the session
1148// will transition into the specified page. * If there is a
1149// `target_flow` associated with the event, the session will transition
1150// into the specified flow.
1151type GoogleCloudDialogflowCxV3EventHandler struct {
1152	// Event: Required. The name of the event to handle.
1153	Event string `json:"event,omitempty"`
1154
1155	// Name: Output only. The unique identifier of this event handler.
1156	Name string `json:"name,omitempty"`
1157
1158	// TargetFlow: The target flow to transition to. Format:
1159	// `projects//locations//agents//flows/`.
1160	TargetFlow string `json:"targetFlow,omitempty"`
1161
1162	// TargetPage: The target page to transition to. Format:
1163	// `projects//locations//agents//flows//pages/`.
1164	TargetPage string `json:"targetPage,omitempty"`
1165
1166	// TriggerFulfillment: The fulfillment to call when the event occurs.
1167	// Handling webhook errors with a fulfillment enabled with webhook could
1168	// cause infinite loop. It is invalid to specify such fulfillment for a
1169	// handler handling webhooks.
1170	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
1171
1172	// ForceSendFields is a list of field names (e.g. "Event") to
1173	// unconditionally include in API requests. By default, fields with
1174	// empty values are omitted from API requests. However, any non-pointer,
1175	// non-interface field appearing in ForceSendFields will be sent to the
1176	// server regardless of whether the field is empty or not. This may be
1177	// used to include empty fields in Patch requests.
1178	ForceSendFields []string `json:"-"`
1179
1180	// NullFields is a list of field names (e.g. "Event") to include in API
1181	// requests with the JSON null value. By default, fields with empty
1182	// values are omitted from API requests. However, any field with an
1183	// empty value appearing in NullFields will be sent to the server as
1184	// null. It is an error if a field in this list has a non-empty value.
1185	// This may be used to include null fields in Patch requests.
1186	NullFields []string `json:"-"`
1187}
1188
1189func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
1190	type NoMethod GoogleCloudDialogflowCxV3EventHandler
1191	raw := NoMethod(*s)
1192	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1193}
1194
1195// GoogleCloudDialogflowCxV3EventInput: Represents the event to trigger.
1196type GoogleCloudDialogflowCxV3EventInput struct {
1197	// Event: Name of the event.
1198	Event string `json:"event,omitempty"`
1199
1200	// ForceSendFields is a list of field names (e.g. "Event") to
1201	// unconditionally include in API requests. By default, fields with
1202	// empty values are omitted from API requests. However, any non-pointer,
1203	// non-interface field appearing in ForceSendFields will be sent to the
1204	// server regardless of whether the field is empty or not. This may be
1205	// used to include empty fields in Patch requests.
1206	ForceSendFields []string `json:"-"`
1207
1208	// NullFields is a list of field names (e.g. "Event") to include in API
1209	// requests with the JSON null value. By default, fields with empty
1210	// values are omitted from API requests. However, any field with an
1211	// empty value appearing in NullFields will be sent to the server as
1212	// null. It is an error if a field in this list has a non-empty value.
1213	// This may be used to include null fields in Patch requests.
1214	NullFields []string `json:"-"`
1215}
1216
1217func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
1218	type NoMethod GoogleCloudDialogflowCxV3EventInput
1219	raw := NoMethod(*s)
1220	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1221}
1222
1223// GoogleCloudDialogflowCxV3ExportAgentResponse: The response message
1224// for Agents.ExportAgent.
1225type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
1226	// AgentContent: Uncompressed raw byte content for agent.
1227	AgentContent string `json:"agentContent,omitempty"`
1228
1229	// AgentUri: The URI to a file containing the exported agent. This field
1230	// is populated only if `agent_uri` is specified in ExportAgentRequest.
1231	AgentUri string `json:"agentUri,omitempty"`
1232
1233	// ForceSendFields is a list of field names (e.g. "AgentContent") to
1234	// unconditionally include in API requests. By default, fields with
1235	// empty values are omitted from API requests. However, any non-pointer,
1236	// non-interface field appearing in ForceSendFields will be sent to the
1237	// server regardless of whether the field is empty or not. This may be
1238	// used to include empty fields in Patch requests.
1239	ForceSendFields []string `json:"-"`
1240
1241	// NullFields is a list of field names (e.g. "AgentContent") to include
1242	// in API requests with the JSON null value. By default, fields with
1243	// empty values are omitted from API requests. However, any field with
1244	// an empty value appearing in NullFields will be sent to the server as
1245	// null. It is an error if a field in this list has a non-empty value.
1246	// This may be used to include null fields in Patch requests.
1247	NullFields []string `json:"-"`
1248}
1249
1250func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
1251	type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
1252	raw := NoMethod(*s)
1253	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1254}
1255
1256// GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for
1257// Flows.ExportFlow.
1258type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
1259	// FlowContent: Uncompressed raw byte content for flow.
1260	FlowContent string `json:"flowContent,omitempty"`
1261
1262	// FlowUri: The URI to a file containing the exported flow. This field
1263	// is populated only if `flow_uri` is specified in ExportFlowRequest.
1264	FlowUri string `json:"flowUri,omitempty"`
1265
1266	// ForceSendFields is a list of field names (e.g. "FlowContent") to
1267	// unconditionally include in API requests. By default, fields with
1268	// empty values are omitted from API requests. However, any non-pointer,
1269	// non-interface field appearing in ForceSendFields will be sent to the
1270	// server regardless of whether the field is empty or not. This may be
1271	// used to include empty fields in Patch requests.
1272	ForceSendFields []string `json:"-"`
1273
1274	// NullFields is a list of field names (e.g. "FlowContent") to include
1275	// in API requests with the JSON null value. By default, fields with
1276	// empty values are omitted from API requests. However, any field with
1277	// an empty value appearing in NullFields will be sent to the server as
1278	// null. It is an error if a field in this list has a non-empty value.
1279	// This may be used to include null fields in Patch requests.
1280	NullFields []string `json:"-"`
1281}
1282
1283func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
1284	type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
1285	raw := NoMethod(*s)
1286	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1287}
1288
1289// GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned
1290// for the TestCases.ExportTestCases long running operation.
1291type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
1292}
1293
1294// GoogleCloudDialogflowCxV3ExportTestCasesResponse: The response
1295// message for TestCases.ExportTestCases.
1296type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
1297	// Content: Uncompressed raw byte content for test cases.
1298	Content string `json:"content,omitempty"`
1299
1300	// GcsUri: The URI to a file containing the exported test cases. This
1301	// field is populated only if `gcs_uri` is specified in
1302	// ExportTestCasesRequest.
1303	GcsUri string `json:"gcsUri,omitempty"`
1304
1305	// ForceSendFields is a list of field names (e.g. "Content") to
1306	// unconditionally include in API requests. By default, fields with
1307	// empty values are omitted from API requests. However, any non-pointer,
1308	// non-interface field appearing in ForceSendFields will be sent to the
1309	// server regardless of whether the field is empty or not. This may be
1310	// used to include empty fields in Patch requests.
1311	ForceSendFields []string `json:"-"`
1312
1313	// NullFields is a list of field names (e.g. "Content") to include in
1314	// API requests with the JSON null value. By default, fields with empty
1315	// values are omitted from API requests. However, any field with an
1316	// empty value appearing in NullFields will be sent to the server as
1317	// null. It is an error if a field in this list has a non-empty value.
1318	// This may be used to include null fields in Patch requests.
1319	NullFields []string `json:"-"`
1320}
1321
1322func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
1323	type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
1324	raw := NoMethod(*s)
1325	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1326}
1327
1328// GoogleCloudDialogflowCxV3Form: A form is a data model that groups
1329// related parameters that can be collected from the user. The process
1330// in which the agent prompts the user and collects parameter values
1331// from the user is called form filling. A form can be added to a page.
1332// When form filling is done, the filled parameters will be written to
1333// the session.
1334type GoogleCloudDialogflowCxV3Form struct {
1335	// Parameters: Parameters to collect from the user.
1336	Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
1337
1338	// ForceSendFields is a list of field names (e.g. "Parameters") to
1339	// unconditionally include in API requests. By default, fields with
1340	// empty values are omitted from API requests. However, any non-pointer,
1341	// non-interface field appearing in ForceSendFields will be sent to the
1342	// server regardless of whether the field is empty or not. This may be
1343	// used to include empty fields in Patch requests.
1344	ForceSendFields []string `json:"-"`
1345
1346	// NullFields is a list of field names (e.g. "Parameters") to include in
1347	// API requests with the JSON null value. By default, fields with empty
1348	// values are omitted from API requests. However, any field with an
1349	// empty value appearing in NullFields will be sent to the server as
1350	// null. It is an error if a field in this list has a non-empty value.
1351	// This may be used to include null fields in Patch requests.
1352	NullFields []string `json:"-"`
1353}
1354
1355func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
1356	type NoMethod GoogleCloudDialogflowCxV3Form
1357	raw := NoMethod(*s)
1358	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1359}
1360
1361// GoogleCloudDialogflowCxV3FormParameter: Represents a form parameter.
1362type GoogleCloudDialogflowCxV3FormParameter struct {
1363	// DefaultValue: The default value of an optional parameter. If the
1364	// parameter is required, the default value will be ignored.
1365	DefaultValue interface{} `json:"defaultValue,omitempty"`
1366
1367	// DisplayName: Required. The human-readable name of the parameter,
1368	// unique within the form.
1369	DisplayName string `json:"displayName,omitempty"`
1370
1371	// EntityType: Required. The entity type of the parameter. Format:
1372	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
1373	// types (for example,
1374	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
1375	// `projects//locations//agents//entityTypes/` for developer entity
1376	// types.
1377	EntityType string `json:"entityType,omitempty"`
1378
1379	// FillBehavior: Required. Defines fill behavior for the parameter.
1380	FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
1381
1382	// IsList: Indicates whether the parameter represents a list of values.
1383	IsList bool `json:"isList,omitempty"`
1384
1385	// Redact: Indicates whether the parameter content should be redacted in
1386	// log. If redaction is enabled, the parameter content will be replaced
1387	// by parameter name during logging. Note: the parameter content is
1388	// subject to redaction if either parameter level redaction or entity
1389	// type level redaction is enabled.
1390	Redact bool `json:"redact,omitempty"`
1391
1392	// Required: Indicates whether the parameter is required. Optional
1393	// parameters will not trigger prompts; however, they are filled if the
1394	// user specifies them. Required parameters must be filled before form
1395	// filling concludes.
1396	Required bool `json:"required,omitempty"`
1397
1398	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
1399	// unconditionally include in API requests. By default, fields with
1400	// empty values are omitted from API requests. However, any non-pointer,
1401	// non-interface field appearing in ForceSendFields will be sent to the
1402	// server regardless of whether the field is empty or not. This may be
1403	// used to include empty fields in Patch requests.
1404	ForceSendFields []string `json:"-"`
1405
1406	// NullFields is a list of field names (e.g. "DefaultValue") to include
1407	// in API requests with the JSON null value. By default, fields with
1408	// empty values are omitted from API requests. However, any field with
1409	// an empty value appearing in NullFields will be sent to the server as
1410	// null. It is an error if a field in this list has a non-empty value.
1411	// This may be used to include null fields in Patch requests.
1412	NullFields []string `json:"-"`
1413}
1414
1415func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
1416	type NoMethod GoogleCloudDialogflowCxV3FormParameter
1417	raw := NoMethod(*s)
1418	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1419}
1420
1421// GoogleCloudDialogflowCxV3FormParameterFillBehavior: Configuration for
1422// how the filling of a parameter should be handled.
1423type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
1424	// InitialPromptFulfillment: Required. The fulfillment to provide the
1425	// initial prompt that the agent can present to the user in order to
1426	// fill the parameter.
1427	InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
1428
1429	// RepromptEventHandlers: The handlers for parameter-level events, used
1430	// to provide reprompt for the parameter or transition to a different
1431	// page/flow. The supported events are: * `sys.no-match-`, where N can
1432	// be from 1 to 6 * `sys.no-match-default` * `sys.no-input-`, where N
1433	// can be from 1 to 6 * `sys.no-input-default` * `sys.invalid-parameter`
1434	// `initial_prompt_fulfillment` provides the first prompt for the
1435	// parameter. If the user's response does not fill the parameter, a
1436	// no-match/no-input event will be triggered, and the fulfillment
1437	// associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
1438	// defined) will be called to provide a prompt. The
1439	// `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond
1440	// to the next no-match/no-input event, and so on. A
1441	// `sys.no-match-default` or `sys.no-input-default` handler will be used
1442	// to handle all following no-match/no-input events after all numbered
1443	// no-match/no-input handlers for the parameter are consumed. A
1444	// `sys.invalid-parameter` handler can be defined to handle the case
1445	// where the parameter values have been `invalidated` by webhook. For
1446	// example, if the user's response fill the parameter, however the
1447	// parameter was invalidated by webhook, the fulfillment associated with
1448	// the `sys.invalid-parameter` handler (if defined) will be called to
1449	// provide a prompt. If the event handler for the corresponding event
1450	// can't be found on the parameter, `initial_prompt_fulfillment` will be
1451	// re-prompted.
1452	RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
1453
1454	// ForceSendFields is a list of field names (e.g.
1455	// "InitialPromptFulfillment") to unconditionally include in API
1456	// requests. By default, fields with empty values are omitted from API
1457	// requests. However, any non-pointer, non-interface field appearing in
1458	// ForceSendFields will be sent to the server regardless of whether the
1459	// field is empty or not. This may be used to include empty fields in
1460	// Patch requests.
1461	ForceSendFields []string `json:"-"`
1462
1463	// NullFields is a list of field names (e.g. "InitialPromptFulfillment")
1464	// to include in API requests with the JSON null value. By default,
1465	// fields with empty values are omitted from API requests. However, any
1466	// field with an empty value appearing in NullFields will be sent to the
1467	// server as null. It is an error if a field in this list has a
1468	// non-empty value. This may be used to include null fields in Patch
1469	// requests.
1470	NullFields []string `json:"-"`
1471}
1472
1473func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
1474	type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
1475	raw := NoMethod(*s)
1476	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1477}
1478
1479// GoogleCloudDialogflowCxV3Fulfillment: A fulfillment can do one or
1480// more of the following actions at the same time: * Generate rich
1481// message responses. * Set parameter values. * Call the webhook.
1482// Fulfillments can be called at various stages in the Page or Form
1483// lifecycle. For example, when a DetectIntentRequest drives a session
1484// to enter a new page, the page's entry fulfillment can add a static
1485// response to the QueryResult in the returning DetectIntentResponse,
1486// call the webhook (for example, to load user data from a database), or
1487// both.
1488type GoogleCloudDialogflowCxV3Fulfillment struct {
1489	// ConditionalCases: Conditional cases for this fulfillment.
1490	ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
1491
1492	// Messages: The list of rich message responses to present to the user.
1493	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
1494
1495	// ReturnPartialResponses: Whether Dialogflow should return currently
1496	// queued fulfillment response messages in streaming APIs. If a webhook
1497	// is specified, it happens before Dialogflow invokes webhook. Warning:
1498	// 1) This flag only affects streaming API. Responses are still queued
1499	// and returned once in non-streaming API. 2) The flag can be enabled in
1500	// any fulfillment but only the first 3 partial responses will be
1501	// returned. You may only want to apply it to fulfillments that have
1502	// slow webhooks.
1503	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
1504
1505	// SetParameterActions: Set parameter values before executing the
1506	// webhook.
1507	SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
1508
1509	// Tag: The tag used by the webhook to identify which fulfillment is
1510	// being called. This field is required if `webhook` is specified.
1511	Tag string `json:"tag,omitempty"`
1512
1513	// Webhook: The webhook to call. Format:
1514	// `projects//locations//agents//webhooks/`.
1515	Webhook string `json:"webhook,omitempty"`
1516
1517	// ForceSendFields is a list of field names (e.g. "ConditionalCases") to
1518	// unconditionally include in API requests. By default, fields with
1519	// empty values are omitted from API requests. However, any non-pointer,
1520	// non-interface field appearing in ForceSendFields will be sent to the
1521	// server regardless of whether the field is empty or not. This may be
1522	// used to include empty fields in Patch requests.
1523	ForceSendFields []string `json:"-"`
1524
1525	// NullFields is a list of field names (e.g. "ConditionalCases") to
1526	// include in API requests with the JSON null value. By default, fields
1527	// with empty values are omitted from API requests. However, any field
1528	// with an empty value appearing in NullFields will be sent to the
1529	// server as null. It is an error if a field in this list has a
1530	// non-empty value. This may be used to include null fields in Patch
1531	// requests.
1532	NullFields []string `json:"-"`
1533}
1534
1535func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
1536	type NoMethod GoogleCloudDialogflowCxV3Fulfillment
1537	raw := NoMethod(*s)
1538	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1539}
1540
1541// GoogleCloudDialogflowCxV3FulfillmentConditionalCases: A list of
1542// cascading if-else conditions. Cases are mutually exclusive. The first
1543// one with a matching condition is selected, all the rest ignored.
1544type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
1545	// Cases: A list of cascading if-else conditions.
1546	Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
1547
1548	// ForceSendFields is a list of field names (e.g. "Cases") to
1549	// unconditionally include in API requests. By default, fields with
1550	// empty values are omitted from API requests. However, any non-pointer,
1551	// non-interface field appearing in ForceSendFields will be sent to the
1552	// server regardless of whether the field is empty or not. This may be
1553	// used to include empty fields in Patch requests.
1554	ForceSendFields []string `json:"-"`
1555
1556	// NullFields is a list of field names (e.g. "Cases") to include in API
1557	// requests with the JSON null value. By default, fields with empty
1558	// values are omitted from API requests. However, any field with an
1559	// empty value appearing in NullFields will be sent to the server as
1560	// null. It is an error if a field in this list has a non-empty value.
1561	// This may be used to include null fields in Patch requests.
1562	NullFields []string `json:"-"`
1563}
1564
1565func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
1566	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
1567	raw := NoMethod(*s)
1568	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1569}
1570
1571// GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase: Each case
1572// has a Boolean condition. When it is evaluated to be True, the
1573// corresponding messages will be selected and evaluated recursively.
1574type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
1575	// CaseContent: A list of case content.
1576	CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
1577
1578	// Condition: The condition to activate and select this case. Empty
1579	// means the condition is always true. The condition is evaluated
1580	// against form parameters or session parameters. See the conditions
1581	// reference
1582	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1583	Condition string `json:"condition,omitempty"`
1584
1585	// ForceSendFields is a list of field names (e.g. "CaseContent") to
1586	// unconditionally include in API requests. By default, fields with
1587	// empty values are omitted from API requests. However, any non-pointer,
1588	// non-interface field appearing in ForceSendFields will be sent to the
1589	// server regardless of whether the field is empty or not. This may be
1590	// used to include empty fields in Patch requests.
1591	ForceSendFields []string `json:"-"`
1592
1593	// NullFields is a list of field names (e.g. "CaseContent") to include
1594	// in API requests with the JSON null value. By default, fields with
1595	// empty values are omitted from API requests. However, any field with
1596	// an empty value appearing in NullFields will be sent to the server as
1597	// null. It is an error if a field in this list has a non-empty value.
1598	// This may be used to include null fields in Patch requests.
1599	NullFields []string `json:"-"`
1600}
1601
1602func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
1603	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
1604	raw := NoMethod(*s)
1605	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1606}
1607
1608// GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent:
1609// The list of messages or conditional cases to activate for this case.
1610type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
1611	// AdditionalCases: Additional cases to be evaluated.
1612	AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
1613
1614	// Message: Returned message.
1615	Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
1616
1617	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
1618	// unconditionally include in API requests. By default, fields with
1619	// empty values are omitted from API requests. However, any non-pointer,
1620	// non-interface field appearing in ForceSendFields will be sent to the
1621	// server regardless of whether the field is empty or not. This may be
1622	// used to include empty fields in Patch requests.
1623	ForceSendFields []string `json:"-"`
1624
1625	// NullFields is a list of field names (e.g. "AdditionalCases") to
1626	// include in API requests with the JSON null value. By default, fields
1627	// with empty values are omitted from API requests. However, any field
1628	// with an empty value appearing in NullFields will be sent to the
1629	// server as null. It is an error if a field in this list has a
1630	// non-empty value. This may be used to include null fields in Patch
1631	// requests.
1632	NullFields []string `json:"-"`
1633}
1634
1635func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
1636	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
1637	raw := NoMethod(*s)
1638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1639}
1640
1641// GoogleCloudDialogflowCxV3FulfillmentSetParameterAction: Setting a
1642// parameter value.
1643type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
1644	// Parameter: Display name of the parameter.
1645	Parameter string `json:"parameter,omitempty"`
1646
1647	// Value: The new value of the parameter. A null value clears the
1648	// parameter.
1649	Value interface{} `json:"value,omitempty"`
1650
1651	// ForceSendFields is a list of field names (e.g. "Parameter") to
1652	// unconditionally include in API requests. By default, fields with
1653	// empty values are omitted from API requests. However, any non-pointer,
1654	// non-interface field appearing in ForceSendFields will be sent to the
1655	// server regardless of whether the field is empty or not. This may be
1656	// used to include empty fields in Patch requests.
1657	ForceSendFields []string `json:"-"`
1658
1659	// NullFields is a list of field names (e.g. "Parameter") to include in
1660	// API requests with the JSON null value. By default, fields with empty
1661	// values are omitted from API requests. However, any field with an
1662	// empty value appearing in NullFields will be sent to the server as
1663	// null. It is an error if a field in this list has a non-empty value.
1664	// This may be used to include null fields in Patch requests.
1665	NullFields []string `json:"-"`
1666}
1667
1668func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
1669	type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
1670	raw := NoMethod(*s)
1671	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1672}
1673
1674// GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata: Metadata
1675// in google::longrunning::Operation for Knowledge operations.
1676type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
1677	// State: Required. Output only. The current state of this operation.
1678	//
1679	// Possible values:
1680	//   "STATE_UNSPECIFIED" - State unspecified.
1681	//   "PENDING" - The operation has been created.
1682	//   "RUNNING" - The operation is currently running.
1683	//   "DONE" - The operation is done, either cancelled or completed.
1684	State string `json:"state,omitempty"`
1685
1686	// ForceSendFields is a list of field names (e.g. "State") to
1687	// unconditionally include in API requests. By default, fields with
1688	// empty values are omitted from API requests. However, any non-pointer,
1689	// non-interface field appearing in ForceSendFields will be sent to the
1690	// server regardless of whether the field is empty or not. This may be
1691	// used to include empty fields in Patch requests.
1692	ForceSendFields []string `json:"-"`
1693
1694	// NullFields is a list of field names (e.g. "State") to include in API
1695	// requests with the JSON null value. By default, fields with empty
1696	// values are omitted from API requests. However, any field with an
1697	// empty value appearing in NullFields will be sent to the server as
1698	// null. It is an error if a field in this list has a non-empty value.
1699	// This may be used to include null fields in Patch requests.
1700	NullFields []string `json:"-"`
1701}
1702
1703func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
1704	type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
1705	raw := NoMethod(*s)
1706	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1707}
1708
1709// GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata: Metadata
1710// for ImportDocuments operation.
1711type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
1712	// GenericMetadata: The generic information of the operation.
1713	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1714
1715	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
1716	// unconditionally include in API requests. By default, fields with
1717	// empty values are omitted from API requests. However, any non-pointer,
1718	// non-interface field appearing in ForceSendFields will be sent to the
1719	// server regardless of whether the field is empty or not. This may be
1720	// used to include empty fields in Patch requests.
1721	ForceSendFields []string `json:"-"`
1722
1723	// NullFields is a list of field names (e.g. "GenericMetadata") to
1724	// include in API requests with the JSON null value. By default, fields
1725	// with empty values are omitted from API requests. However, any field
1726	// with an empty value appearing in NullFields will be sent to the
1727	// server as null. It is an error if a field in this list has a
1728	// non-empty value. This may be used to include null fields in Patch
1729	// requests.
1730	NullFields []string `json:"-"`
1731}
1732
1733func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
1734	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
1735	raw := NoMethod(*s)
1736	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1737}
1738
1739// GoogleCloudDialogflowCxV3ImportDocumentsResponse: Response message
1740// for Documents.ImportDocuments.
1741type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
1742	// Warnings: Includes details about skipped documents or any other
1743	// warnings.
1744	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
1745
1746	// ForceSendFields is a list of field names (e.g. "Warnings") to
1747	// unconditionally include in API requests. By default, fields with
1748	// empty values are omitted from API requests. However, any non-pointer,
1749	// non-interface field appearing in ForceSendFields will be sent to the
1750	// server regardless of whether the field is empty or not. This may be
1751	// used to include empty fields in Patch requests.
1752	ForceSendFields []string `json:"-"`
1753
1754	// NullFields is a list of field names (e.g. "Warnings") to include in
1755	// API requests with the JSON null value. By default, fields with empty
1756	// values are omitted from API requests. However, any field with an
1757	// empty value appearing in NullFields will be sent to the server as
1758	// null. It is an error if a field in this list has a non-empty value.
1759	// This may be used to include null fields in Patch requests.
1760	NullFields []string `json:"-"`
1761}
1762
1763func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
1764	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
1765	raw := NoMethod(*s)
1766	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1767}
1768
1769// GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for
1770// Flows.ImportFlow.
1771type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
1772	// Flow: The unique identifier of the new flow. Format:
1773	// `projects//locations//agents//flows/`.
1774	Flow string `json:"flow,omitempty"`
1775
1776	// ForceSendFields is a list of field names (e.g. "Flow") to
1777	// unconditionally include in API requests. By default, fields with
1778	// empty values are omitted from API requests. However, any non-pointer,
1779	// non-interface field appearing in ForceSendFields will be sent to the
1780	// server regardless of whether the field is empty or not. This may be
1781	// used to include empty fields in Patch requests.
1782	ForceSendFields []string `json:"-"`
1783
1784	// NullFields is a list of field names (e.g. "Flow") to include in API
1785	// requests with the JSON null value. By default, fields with empty
1786	// values are omitted from API requests. However, any field with an
1787	// empty value appearing in NullFields will be sent to the server as
1788	// null. It is an error if a field in this list has a non-empty value.
1789	// This may be used to include null fields in Patch requests.
1790	NullFields []string `json:"-"`
1791}
1792
1793func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
1794	type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
1795	raw := NoMethod(*s)
1796	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1797}
1798
1799// GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned
1800// for the TestCases.ImportTestCases long running operation.
1801type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
1802	// Errors: Errors for failed test cases.
1803	Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
1804
1805	// ForceSendFields is a list of field names (e.g. "Errors") to
1806	// unconditionally include in API requests. By default, fields with
1807	// empty values are omitted from API requests. However, any non-pointer,
1808	// non-interface field appearing in ForceSendFields will be sent to the
1809	// server regardless of whether the field is empty or not. This may be
1810	// used to include empty fields in Patch requests.
1811	ForceSendFields []string `json:"-"`
1812
1813	// NullFields is a list of field names (e.g. "Errors") to include in API
1814	// requests with the JSON null value. By default, fields with empty
1815	// values are omitted from API requests. However, any field with an
1816	// empty value appearing in NullFields will be sent to the server as
1817	// null. It is an error if a field in this list has a non-empty value.
1818	// This may be used to include null fields in Patch requests.
1819	NullFields []string `json:"-"`
1820}
1821
1822func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
1823	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
1824	raw := NoMethod(*s)
1825	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1826}
1827
1828// GoogleCloudDialogflowCxV3ImportTestCasesResponse: The response
1829// message for TestCases.ImportTestCases.
1830type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
1831	// Names: The unique identifiers of the new test cases. Format:
1832	// `projects//locations//agents//testCases/`.
1833	Names []string `json:"names,omitempty"`
1834
1835	// ForceSendFields is a list of field names (e.g. "Names") to
1836	// unconditionally include in API requests. By default, fields with
1837	// empty values are omitted from API requests. However, any non-pointer,
1838	// non-interface field appearing in ForceSendFields will be sent to the
1839	// server regardless of whether the field is empty or not. This may be
1840	// used to include empty fields in Patch requests.
1841	ForceSendFields []string `json:"-"`
1842
1843	// NullFields is a list of field names (e.g. "Names") to include in API
1844	// requests with the JSON null value. By default, fields with empty
1845	// values are omitted from API requests. However, any field with an
1846	// empty value appearing in NullFields will be sent to the server as
1847	// null. It is an error if a field in this list has a non-empty value.
1848	// This may be used to include null fields in Patch requests.
1849	NullFields []string `json:"-"`
1850}
1851
1852func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
1853	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
1854	raw := NoMethod(*s)
1855	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1856}
1857
1858// GoogleCloudDialogflowCxV3InputAudioConfig: Instructs the speech
1859// recognizer on how to process the audio content.
1860type GoogleCloudDialogflowCxV3InputAudioConfig struct {
1861	// AudioEncoding: Required. Audio encoding of the audio content to
1862	// process.
1863	//
1864	// Possible values:
1865	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
1866	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
1867	// little-endian samples (Linear PCM).
1868	//   "AUDIO_ENCODING_FLAC" -
1869	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
1870	// Audio Codec) is the recommended encoding because it is lossless
1871	// (therefore recognition is not compromised) and requires only about
1872	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
1873	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
1874	// are supported.
1875	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
1876	// samples using G.711 PCMU/mu-law.
1877	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
1878	// `sample_rate_hertz` must be 8000.
1879	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
1880	// `sample_rate_hertz` must be 16000.
1881	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
1882	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
1883	// `sample_rate_hertz` must be 16000.
1884	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
1885	// encodings is not recommended, if a very low bitrate encoding is
1886	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
1887	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
1888	// a header byte in each block, as in MIME type
1889	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
1890	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
1891	// The stream is a sequence of blocks, one block per RTP packet. Each
1892	// block starts with a byte containing the length of the block, in
1893	// bytes, followed by one or more frames of Speex data, padded to an
1894	// integral number of bytes (octets) as specified in RFC 5574. In other
1895	// words, each RTP header is replaced with a single byte containing the
1896	// block length. Only Speex wideband is supported. `sample_rate_hertz`
1897	// must be 16000.
1898	AudioEncoding string `json:"audioEncoding,omitempty"`
1899
1900	// EnableWordInfo: Optional. If `true`, Dialogflow returns
1901	// SpeechWordInfo in StreamingRecognitionResult with information about
1902	// the recognized speech words, e.g. start and end time offsets. If
1903	// false or unspecified, Speech doesn't return any word-level
1904	// information.
1905	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
1906
1907	// Model: Optional. Which Speech model to select for the given request.
1908	// Select the model best suited to your domain to get best results. If a
1909	// model is not explicitly specified, then we auto-select a model based
1910	// on the parameters in the InputAudioConfig. If enhanced speech model
1911	// is enabled for the agent and an enhanced version of the specified
1912	// model for the language does not exist, then the speech is recognized
1913	// using the standard version of the specified model. Refer to Cloud
1914	// Speech API documentation
1915	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
1916	// for more details.
1917	Model string `json:"model,omitempty"`
1918
1919	// ModelVariant: Optional. Which variant of the Speech model to use.
1920	//
1921	// Possible values:
1922	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
1923	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
1924	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
1925	// model that the caller is eligible for. Please see the [Dialogflow
1926	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
1927	// to make your project eligible for enhanced models.
1928	//   "USE_STANDARD" - Use standard model variant even if an enhanced
1929	// model is available. See the [Cloud Speech
1930	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
1931	// odels) for details about enhanced models.
1932	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
1933	// variant does not exist for the given model and request language,
1934	// Dialogflow falls back to the standard variant. The [Cloud Speech
1935	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
1936	// odels) describes which models have enhanced variants. * If the API
1937	// caller isn't eligible for enhanced models, Dialogflow returns an
1938	// error. Please see the [Dialogflow
1939	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
1940	// to make your project eligible.
1941	ModelVariant string `json:"modelVariant,omitempty"`
1942
1943	// PhraseHints: Optional. A list of strings containing words and phrases
1944	// that the speech recognizer should recognize with higher likelihood.
1945	// See the Cloud Speech documentation
1946	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
1947	// for more details.
1948	PhraseHints []string `json:"phraseHints,omitempty"`
1949
1950	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in
1951	// the query. Refer to Cloud Speech API documentation
1952	// (https://cloud.google.com/speech-to-text/docs/basics) for more
1953	// details.
1954	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
1955
1956	// SingleUtterance: Optional. If `false` (default), recognition does not
1957	// cease until the client closes the stream. If `true`, the recognizer
1958	// will detect a single spoken utterance in input audio. Recognition
1959	// ceases when it detects the audio's voice has stopped or paused. In
1960	// this case, once a detected intent is received, the client should
1961	// close the stream and start a new request with a new stream as needed.
1962	// Note: This setting is relevant only for streaming methods.
1963	SingleUtterance bool `json:"singleUtterance,omitempty"`
1964
1965	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
1966	// unconditionally include in API requests. By default, fields with
1967	// empty values are omitted from API requests. However, any non-pointer,
1968	// non-interface field appearing in ForceSendFields will be sent to the
1969	// server regardless of whether the field is empty or not. This may be
1970	// used to include empty fields in Patch requests.
1971	ForceSendFields []string `json:"-"`
1972
1973	// NullFields is a list of field names (e.g. "AudioEncoding") to include
1974	// in API requests with the JSON null value. By default, fields with
1975	// empty values are omitted from API requests. However, any field with
1976	// an empty value appearing in NullFields will be sent to the server as
1977	// null. It is an error if a field in this list has a non-empty value.
1978	// This may be used to include null fields in Patch requests.
1979	NullFields []string `json:"-"`
1980}
1981
1982func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
1983	type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
1984	raw := NoMethod(*s)
1985	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1986}
1987
1988// GoogleCloudDialogflowCxV3Intent: An intent represents a user's intent
1989// to interact with a conversational agent. You can provide information
1990// for the Dialogflow API to use to match user input to an intent by
1991// adding training phrases (i.e., examples of user input) to your
1992// intent.
1993type GoogleCloudDialogflowCxV3Intent struct {
1994	// Description: Human readable description for better understanding an
1995	// intent like its scope, content, result etc. Maximum character limit:
1996	// 140 characters.
1997	Description string `json:"description,omitempty"`
1998
1999	// DisplayName: Required. The human-readable name of the intent, unique
2000	// within the agent.
2001	DisplayName string `json:"displayName,omitempty"`
2002
2003	// IsFallback: Indicates whether this is a fallback intent. Currently
2004	// only default fallback intent is allowed in the agent, which is added
2005	// upon agent creation. Adding training phrases to fallback intent is
2006	// useful in the case of requests that are mistakenly matched, since
2007	// training phrases assigned to fallback intents act as negative
2008	// examples that triggers no-match event.
2009	IsFallback bool `json:"isFallback,omitempty"`
2010
2011	// Labels: The key/value metadata to label an intent. Labels can contain
2012	// lowercase letters, digits and the symbols '-' and '_'. International
2013	// characters are allowed, including letters from unicase alphabets.
2014	// Keys must start with a letter. Keys and values can be no longer than
2015	// 63 characters and no more than 128 bytes. Prefix "sys-" is reserved
2016	// for Dialogflow defined labels. Currently allowed Dialogflow defined
2017	// labels include: * sys-head * sys-contextual The above labels do not
2018	// require value. "sys-head" means the intent is a head intent.
2019	// "sys.contextual" means the intent is a contextual intent.
2020	Labels map[string]string `json:"labels,omitempty"`
2021
2022	// Name: The unique identifier of the intent. Required for the
2023	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
2024	// automatically. Format: `projects//locations//agents//intents/`.
2025	Name string `json:"name,omitempty"`
2026
2027	// Parameters: The collection of parameters associated with the intent.
2028	Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
2029
2030	// Priority: The priority of this intent. Higher numbers represent
2031	// higher priorities. - If the supplied value is unspecified or 0, the
2032	// service translates the value to 500,000, which corresponds to the
2033	// `Normal` priority in the console. - If the supplied value is
2034	// negative, the intent is ignored in runtime detect intent requests.
2035	Priority int64 `json:"priority,omitempty"`
2036
2037	// TrainingPhrases: The collection of training phrases the agent is
2038	// trained on to identify the intent.
2039	TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
2040
2041	// ForceSendFields is a list of field names (e.g. "Description") to
2042	// unconditionally include in API requests. By default, fields with
2043	// empty values are omitted from API requests. However, any non-pointer,
2044	// non-interface field appearing in ForceSendFields will be sent to the
2045	// server regardless of whether the field is empty or not. This may be
2046	// used to include empty fields in Patch requests.
2047	ForceSendFields []string `json:"-"`
2048
2049	// NullFields is a list of field names (e.g. "Description") to include
2050	// in API requests with the JSON null value. By default, fields with
2051	// empty values are omitted from API requests. However, any field with
2052	// an empty value appearing in NullFields will be sent to the server as
2053	// null. It is an error if a field in this list has a non-empty value.
2054	// This may be used to include null fields in Patch requests.
2055	NullFields []string `json:"-"`
2056}
2057
2058func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
2059	type NoMethod GoogleCloudDialogflowCxV3Intent
2060	raw := NoMethod(*s)
2061	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2062}
2063
2064// GoogleCloudDialogflowCxV3IntentInput: Represents the intent to
2065// trigger programmatically rather than as a result of natural language
2066// processing.
2067type GoogleCloudDialogflowCxV3IntentInput struct {
2068	// Intent: Required. The unique identifier of the intent. Format:
2069	// `projects//locations//agents//intents/`.
2070	Intent string `json:"intent,omitempty"`
2071
2072	// ForceSendFields is a list of field names (e.g. "Intent") to
2073	// unconditionally include in API requests. By default, fields with
2074	// empty values are omitted from API requests. However, any non-pointer,
2075	// non-interface field appearing in ForceSendFields will be sent to the
2076	// server regardless of whether the field is empty or not. This may be
2077	// used to include empty fields in Patch requests.
2078	ForceSendFields []string `json:"-"`
2079
2080	// NullFields is a list of field names (e.g. "Intent") to include in API
2081	// requests with the JSON null value. By default, fields with empty
2082	// values are omitted from API requests. However, any field with an
2083	// empty value appearing in NullFields will be sent to the server as
2084	// null. It is an error if a field in this list has a non-empty value.
2085	// This may be used to include null fields in Patch requests.
2086	NullFields []string `json:"-"`
2087}
2088
2089func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
2090	type NoMethod GoogleCloudDialogflowCxV3IntentInput
2091	raw := NoMethod(*s)
2092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2093}
2094
2095// GoogleCloudDialogflowCxV3IntentParameter: Represents an intent
2096// parameter.
2097type GoogleCloudDialogflowCxV3IntentParameter struct {
2098	// EntityType: Required. The entity type of the parameter. Format:
2099	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
2100	// types (for example,
2101	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
2102	// `projects//locations//agents//entityTypes/` for developer entity
2103	// types.
2104	EntityType string `json:"entityType,omitempty"`
2105
2106	// Id: Required. The unique identifier of the parameter. This field is
2107	// used by training phrases to annotate their parts.
2108	Id string `json:"id,omitempty"`
2109
2110	// IsList: Indicates whether the parameter represents a list of values.
2111	IsList bool `json:"isList,omitempty"`
2112
2113	// Redact: Indicates whether the parameter content should be redacted in
2114	// log. If redaction is enabled, the parameter content will be replaced
2115	// by parameter name during logging. Note: the parameter content is
2116	// subject to redaction if either parameter level redaction or entity
2117	// type level redaction is enabled.
2118	Redact bool `json:"redact,omitempty"`
2119
2120	// ForceSendFields is a list of field names (e.g. "EntityType") to
2121	// unconditionally include in API requests. By default, fields with
2122	// empty values are omitted from API requests. However, any non-pointer,
2123	// non-interface field appearing in ForceSendFields will be sent to the
2124	// server regardless of whether the field is empty or not. This may be
2125	// used to include empty fields in Patch requests.
2126	ForceSendFields []string `json:"-"`
2127
2128	// NullFields is a list of field names (e.g. "EntityType") to include in
2129	// API requests with the JSON null value. By default, fields with empty
2130	// values are omitted from API requests. However, any field with an
2131	// empty value appearing in NullFields will be sent to the server as
2132	// null. It is an error if a field in this list has a non-empty value.
2133	// This may be used to include null fields in Patch requests.
2134	NullFields []string `json:"-"`
2135}
2136
2137func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
2138	type NoMethod GoogleCloudDialogflowCxV3IntentParameter
2139	raw := NoMethod(*s)
2140	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2141}
2142
2143// GoogleCloudDialogflowCxV3IntentTrainingPhrase: Represents an example
2144// that the agent is trained on to identify the intent.
2145type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
2146	// Id: Output only. The unique identifier of the training phrase.
2147	Id string `json:"id,omitempty"`
2148
2149	// Parts: Required. The ordered list of training phrase parts. The parts
2150	// are concatenated in order to form the training phrase. Note: The API
2151	// does not automatically annotate training phrases like the Dialogflow
2152	// Console does. Note: Do not forget to include whitespace at part
2153	// boundaries, so the training phrase is well formatted when the parts
2154	// are concatenated. If the training phrase does not need to be
2155	// annotated with parameters, you just need a single part with only the
2156	// Part.text field set. If you want to annotate the training phrase, you
2157	// must create multiple parts, where the fields of each part are
2158	// populated in one of two ways: - `Part.text` is set to a part of the
2159	// phrase that has no parameters. - `Part.text` is set to a part of the
2160	// phrase that you want to annotate, and the `parameter_id` field is
2161	// set.
2162	Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
2163
2164	// RepeatCount: Indicates how many times this example was added to the
2165	// intent.
2166	RepeatCount int64 `json:"repeatCount,omitempty"`
2167
2168	// ForceSendFields is a list of field names (e.g. "Id") to
2169	// unconditionally include in API requests. By default, fields with
2170	// empty values are omitted from API requests. However, any non-pointer,
2171	// non-interface field appearing in ForceSendFields will be sent to the
2172	// server regardless of whether the field is empty or not. This may be
2173	// used to include empty fields in Patch requests.
2174	ForceSendFields []string `json:"-"`
2175
2176	// NullFields is a list of field names (e.g. "Id") to include in API
2177	// requests with the JSON null value. By default, fields with empty
2178	// values are omitted from API requests. However, any field with an
2179	// empty value appearing in NullFields will be sent to the server as
2180	// null. It is an error if a field in this list has a non-empty value.
2181	// This may be used to include null fields in Patch requests.
2182	NullFields []string `json:"-"`
2183}
2184
2185func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
2186	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
2187	raw := NoMethod(*s)
2188	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2189}
2190
2191// GoogleCloudDialogflowCxV3IntentTrainingPhrasePart: Represents a part
2192// of a training phrase.
2193type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
2194	// ParameterId: The parameter used to annotate this part of the training
2195	// phrase. This field is required for annotated parts of the training
2196	// phrase.
2197	ParameterId string `json:"parameterId,omitempty"`
2198
2199	// Text: Required. The text for this part.
2200	Text string `json:"text,omitempty"`
2201
2202	// ForceSendFields is a list of field names (e.g. "ParameterId") to
2203	// unconditionally include in API requests. By default, fields with
2204	// empty values are omitted from API requests. However, any non-pointer,
2205	// non-interface field appearing in ForceSendFields will be sent to the
2206	// server regardless of whether the field is empty or not. This may be
2207	// used to include empty fields in Patch requests.
2208	ForceSendFields []string `json:"-"`
2209
2210	// NullFields is a list of field names (e.g. "ParameterId") to include
2211	// in API requests with the JSON null value. By default, fields with
2212	// empty values are omitted from API requests. However, any field with
2213	// an empty value appearing in NullFields will be sent to the server as
2214	// null. It is an error if a field in this list has a non-empty value.
2215	// This may be used to include null fields in Patch requests.
2216	NullFields []string `json:"-"`
2217}
2218
2219func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
2220	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
2221	raw := NoMethod(*s)
2222	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2223}
2224
2225// GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session)
2226// can be described and visualized as a state machine. The states of a
2227// CX session are represented by pages. For each flow, you define many
2228// pages, where your combined pages can handle a complete conversation
2229// on the topics the flow is designed for. At any given moment, exactly
2230// one page is the current page, the current page is considered active,
2231// and the flow associated with that page is considered active. Every
2232// flow has a special start page. When a flow initially becomes active,
2233// the start page page becomes the current page. For each conversational
2234// turn, the current page will either stay the same or transition to
2235// another page. You configure each page to collect information from the
2236// end-user that is relevant for the conversational state represented by
2237// the page. For more information, see the Page guide
2238// (https://cloud.google.com/dialogflow/cx/docs/concept/page).
2239type GoogleCloudDialogflowCxV3Page struct {
2240	// DisplayName: Required. The human-readable name of the page, unique
2241	// within the agent.
2242	DisplayName string `json:"displayName,omitempty"`
2243
2244	// EntryFulfillment: The fulfillment to call when the session is
2245	// entering the page.
2246	EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
2247
2248	// EventHandlers: Handlers associated with the page to handle events
2249	// such as webhook errors, no match or no input.
2250	EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
2251
2252	// Form: The form associated with the page, used for collecting
2253	// parameters relevant to the page.
2254	Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
2255
2256	// Name: The unique identifier of the page. Required for the
2257	// Pages.UpdatePage method. Pages.CreatePage populates the name
2258	// automatically. Format: `projects//locations//agents//flows//pages/`.
2259	Name string `json:"name,omitempty"`
2260
2261	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups`
2262	// associated with the page. Transition route groups must be unique
2263	// within a page. * If multiple transition routes within a page scope
2264	// refer to the same intent, then the precedence order is: page's
2265	// transition route -> page's transition route group -> flow's
2266	// transition routes. * If multiple transition route groups within a
2267	// page contain the same intent, then the first group in the ordered
2268	// list takes precedence.
2269	// Format:`projects//locations//agents//flows//transitionRouteGroups/`.
2270	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
2271
2272	// TransitionRoutes: A list of transitions for the transition rules of
2273	// this page. They route the conversation to another page in the same
2274	// flow, or another flow. When we are in a certain page, the
2275	// TransitionRoutes are evalauted in the following order: *
2276	// TransitionRoutes defined in the page with intent specified. *
2277	// TransitionRoutes defined in the transition route groups with intent
2278	// specified. * TransitionRoutes defined in flow with intent specified.
2279	// * TransitionRoutes defined in the transition route groups with intent
2280	// specified. * TransitionRoutes defined in the page with only condition
2281	// specified. * TransitionRoutes defined in the transition route groups
2282	// with only condition specified.
2283	TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
2284
2285	// ForceSendFields is a list of field names (e.g. "DisplayName") to
2286	// unconditionally include in API requests. By default, fields with
2287	// empty values are omitted from API requests. However, any non-pointer,
2288	// non-interface field appearing in ForceSendFields will be sent to the
2289	// server regardless of whether the field is empty or not. This may be
2290	// used to include empty fields in Patch requests.
2291	ForceSendFields []string `json:"-"`
2292
2293	// NullFields is a list of field names (e.g. "DisplayName") to include
2294	// in API requests with the JSON null value. By default, fields with
2295	// empty values are omitted from API requests. However, any field with
2296	// an empty value appearing in NullFields will be sent to the server as
2297	// null. It is an error if a field in this list has a non-empty value.
2298	// This may be used to include null fields in Patch requests.
2299	NullFields []string `json:"-"`
2300}
2301
2302func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
2303	type NoMethod GoogleCloudDialogflowCxV3Page
2304	raw := NoMethod(*s)
2305	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2306}
2307
2308// GoogleCloudDialogflowCxV3PageInfo: Represents page information
2309// communicated to and from the webhook.
2310type GoogleCloudDialogflowCxV3PageInfo struct {
2311	// CurrentPage: Always present for WebhookRequest. Ignored for
2312	// WebhookResponse. The unique identifier of the current page. Format:
2313	// `projects//locations//agents//flows//pages/`.
2314	CurrentPage string `json:"currentPage,omitempty"`
2315
2316	// FormInfo: Optional for both WebhookRequest and WebhookResponse.
2317	// Information about the form.
2318	FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
2319
2320	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
2321	// unconditionally include in API requests. By default, fields with
2322	// empty values are omitted from API requests. However, any non-pointer,
2323	// non-interface field appearing in ForceSendFields will be sent to the
2324	// server regardless of whether the field is empty or not. This may be
2325	// used to include empty fields in Patch requests.
2326	ForceSendFields []string `json:"-"`
2327
2328	// NullFields is a list of field names (e.g. "CurrentPage") to include
2329	// in API requests with the JSON null value. By default, fields with
2330	// empty values are omitted from API requests. However, any field with
2331	// an empty value appearing in NullFields will be sent to the server as
2332	// null. It is an error if a field in this list has a non-empty value.
2333	// This may be used to include null fields in Patch requests.
2334	NullFields []string `json:"-"`
2335}
2336
2337func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
2338	type NoMethod GoogleCloudDialogflowCxV3PageInfo
2339	raw := NoMethod(*s)
2340	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2341}
2342
2343// GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form
2344// information.
2345type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
2346	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse.
2347	// The parameters contained in the form. Note that the webhook cannot
2348	// add or remove any form parameter.
2349	ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
2350
2351	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
2352	// unconditionally include in API requests. By default, fields with
2353	// empty values are omitted from API requests. However, any non-pointer,
2354	// non-interface field appearing in ForceSendFields will be sent to the
2355	// server regardless of whether the field is empty or not. This may be
2356	// used to include empty fields in Patch requests.
2357	ForceSendFields []string `json:"-"`
2358
2359	// NullFields is a list of field names (e.g. "ParameterInfo") to include
2360	// in API requests with the JSON null value. By default, fields with
2361	// empty values are omitted from API requests. However, any field with
2362	// an empty value appearing in NullFields will be sent to the server as
2363	// null. It is an error if a field in this list has a non-empty value.
2364	// This may be used to include null fields in Patch requests.
2365	NullFields []string `json:"-"`
2366}
2367
2368func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
2369	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
2370	raw := NoMethod(*s)
2371	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2372}
2373
2374// GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents
2375// parameter information.
2376type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
2377	// DisplayName: Always present for WebhookRequest. Required for
2378	// WebhookResponse. The human-readable name of the parameter, unique
2379	// within the form. This field cannot be modified by the webhook.
2380	DisplayName string `json:"displayName,omitempty"`
2381
2382	// JustCollected: Optional for WebhookRequest. Ignored for
2383	// WebhookResponse. Indicates if the parameter value was just collected
2384	// on the last conversation turn.
2385	JustCollected bool `json:"justCollected,omitempty"`
2386
2387	// Required: Optional for both WebhookRequest and WebhookResponse.
2388	// Indicates whether the parameter is required. Optional parameters will
2389	// not trigger prompts; however, they are filled if the user specifies
2390	// them. Required parameters must be filled before form filling
2391	// concludes.
2392	Required bool `json:"required,omitempty"`
2393
2394	// State: Always present for WebhookRequest. Required for
2395	// WebhookResponse. The state of the parameter. This field can be set to
2396	// INVALID by the webhook to invalidate the parameter; other values set
2397	// by the webhook will be ignored.
2398	//
2399	// Possible values:
2400	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be
2401	// never used.
2402	//   "EMPTY" - Indicates that the parameter does not have a value.
2403	//   "INVALID" - Indicates that the parameter value is invalid. This
2404	// field can be used by the webhook to invalidate the parameter and ask
2405	// the server to collect it from the user again.
2406	//   "FILLED" - Indicates that the parameter has a value.
2407	State string `json:"state,omitempty"`
2408
2409	// Value: Optional for both WebhookRequest and WebhookResponse. The
2410	// value of the parameter. This field can be set by the webhook to
2411	// change the parameter value.
2412	Value interface{} `json:"value,omitempty"`
2413
2414	// ForceSendFields is a list of field names (e.g. "DisplayName") to
2415	// unconditionally include in API requests. By default, fields with
2416	// empty values are omitted from API requests. However, any non-pointer,
2417	// non-interface field appearing in ForceSendFields will be sent to the
2418	// server regardless of whether the field is empty or not. This may be
2419	// used to include empty fields in Patch requests.
2420	ForceSendFields []string `json:"-"`
2421
2422	// NullFields is a list of field names (e.g. "DisplayName") to include
2423	// in API requests with the JSON null value. By default, fields with
2424	// empty values are omitted from API requests. However, any field with
2425	// an empty value appearing in NullFields will be sent to the server as
2426	// null. It is an error if a field in this list has a non-empty value.
2427	// This may be used to include null fields in Patch requests.
2428	NullFields []string `json:"-"`
2429}
2430
2431func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
2432	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
2433	raw := NoMethod(*s)
2434	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2435}
2436
2437// GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It
2438// can contain one of: 1. A conversational query in the form of text. 2.
2439// An intent query that specifies which intent to trigger. 3. Natural
2440// language speech audio to be processed. 4. An event to be triggered.
2441type GoogleCloudDialogflowCxV3QueryInput struct {
2442	// Audio: The natural language speech audio to be processed.
2443	Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
2444
2445	// Dtmf: The DTMF event to be handled.
2446	Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
2447
2448	// Event: The event to be triggered.
2449	Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
2450
2451	// Intent: The intent to be triggered.
2452	Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
2453
2454	// LanguageCode: Required. The language of the input. See Language
2455	// Support
2456	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
2457	// a list of the currently supported language codes. Note that queries
2458	// in the same session do not necessarily need to specify the same
2459	// language.
2460	LanguageCode string `json:"languageCode,omitempty"`
2461
2462	// Text: The natural language text to be processed.
2463	Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
2464
2465	// ForceSendFields is a list of field names (e.g. "Audio") to
2466	// unconditionally include in API requests. By default, fields with
2467	// empty values are omitted from API requests. However, any non-pointer,
2468	// non-interface field appearing in ForceSendFields will be sent to the
2469	// server regardless of whether the field is empty or not. This may be
2470	// used to include empty fields in Patch requests.
2471	ForceSendFields []string `json:"-"`
2472
2473	// NullFields is a list of field names (e.g. "Audio") to include in API
2474	// requests with the JSON null value. By default, fields with empty
2475	// values are omitted from API requests. However, any field with an
2476	// empty value appearing in NullFields will be sent to the server as
2477	// null. It is an error if a field in this list has a non-empty value.
2478	// This may be used to include null fields in Patch requests.
2479	NullFields []string `json:"-"`
2480}
2481
2482func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
2483	type NoMethod GoogleCloudDialogflowCxV3QueryInput
2484	raw := NoMethod(*s)
2485	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2486}
2487
2488// GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata: Metadata
2489// for ReloadDocument operation.
2490type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
2491	// GenericMetadata: The generic information of the operation.
2492	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2493
2494	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
2495	// unconditionally include in API requests. By default, fields with
2496	// empty values are omitted from API requests. However, any non-pointer,
2497	// non-interface field appearing in ForceSendFields will be sent to the
2498	// server regardless of whether the field is empty or not. This may be
2499	// used to include empty fields in Patch requests.
2500	ForceSendFields []string `json:"-"`
2501
2502	// NullFields is a list of field names (e.g. "GenericMetadata") to
2503	// include in API requests with the JSON null value. By default, fields
2504	// with empty values are omitted from API requests. However, any field
2505	// with an empty value appearing in NullFields will be sent to the
2506	// server as null. It is an error if a field in this list has a
2507	// non-empty value. This may be used to include null fields in Patch
2508	// requests.
2509	NullFields []string `json:"-"`
2510}
2511
2512func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
2513	type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
2514	raw := NoMethod(*s)
2515	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2516}
2517
2518// GoogleCloudDialogflowCxV3ResponseMessage: Represents a response
2519// message that can be returned by a conversational agent. Response
2520// messages are also used for output audio synthesis. The approach is as
2521// follows: * If at least one OutputAudioText response is present, then
2522// all OutputAudioText responses are linearly concatenated, and the
2523// result is used for output audio synthesis. * If the OutputAudioText
2524// responses are a mixture of text and SSML, then the concatenated
2525// result is treated as SSML; otherwise, the result is treated as either
2526// text or SSML as appropriate. The agent designer should ideally use
2527// either text or SSML consistently throughout the bot design. *
2528// Otherwise, all Text responses are linearly concatenated, and the
2529// result is used for output audio synthesis. This approach allows for
2530// more sophisticated user experience scenarios, where the text
2531// displayed to the user may differ from what is heard.
2532type GoogleCloudDialogflowCxV3ResponseMessage struct {
2533	// ConversationSuccess: Indicates that the conversation succeeded.
2534	ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
2535
2536	// EndInteraction: Output only. A signal that indicates the interaction
2537	// with the Dialogflow agent has ended. This message is generated by
2538	// Dialogflow only when the conversation reaches `END_SESSION` page. It
2539	// is not supposed to be defined by the user. It's guaranteed that there
2540	// is at most one such message in each response.
2541	EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
2542
2543	// LiveAgentHandoff: Hands off conversation to a human agent.
2544	LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
2545
2546	// MixedAudio: Output only. An audio response message composed of both
2547	// the synthesized Dialogflow agent responses and responses defined via
2548	// play_audio. This message is generated by Dialogflow only and not
2549	// supposed to be defined by the user.
2550	MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
2551
2552	// OutputAudioText: A text or ssml response that is preferentially used
2553	// for TTS output audio synthesis, as described in the comment on the
2554	// ResponseMessage message.
2555	OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
2556
2557	// Payload: Returns a response containing a custom, platform-specific
2558	// payload.
2559	Payload googleapi.RawMessage `json:"payload,omitempty"`
2560
2561	// PlayAudio: Signal that the client should play an audio clip hosted at
2562	// a client-specific URI. Dialogflow uses this to construct mixed_audio.
2563	// However, Dialogflow itself does not try to read or process the URI in
2564	// any way.
2565	PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
2566
2567	// Text: Returns a text response.
2568	Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
2569
2570	// ForceSendFields is a list of field names (e.g. "ConversationSuccess")
2571	// to unconditionally include in API requests. By default, fields with
2572	// empty values are omitted from API requests. However, any non-pointer,
2573	// non-interface field appearing in ForceSendFields will be sent to the
2574	// server regardless of whether the field is empty or not. This may be
2575	// used to include empty fields in Patch requests.
2576	ForceSendFields []string `json:"-"`
2577
2578	// NullFields is a list of field names (e.g. "ConversationSuccess") to
2579	// include in API requests with the JSON null value. By default, fields
2580	// with empty values are omitted from API requests. However, any field
2581	// with an empty value appearing in NullFields will be sent to the
2582	// server as null. It is an error if a field in this list has a
2583	// non-empty value. This may be used to include null fields in Patch
2584	// requests.
2585	NullFields []string `json:"-"`
2586}
2587
2588func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
2589	type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
2590	raw := NoMethod(*s)
2591	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2592}
2593
2594// GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess:
2595// Indicates that the conversation succeeded, i.e., the bot handled the
2596// issue that the customer talked to it about. Dialogflow only uses this
2597// to determine which conversations should be counted as successful and
2598// doesn't process the metadata in this message in any way. Note that
2599// Dialogflow also considers conversations that get to the conversation
2600// end page as successful even if they don't return ConversationSuccess.
2601// You may set this, for example: * In the entry_fulfillment of a Page
2602// if entering the page indicates that the conversation succeeded. * In
2603// a webhook response when you determine that you handled the customer
2604// issue.
2605type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
2606	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on
2607	// this.
2608	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2609
2610	// ForceSendFields is a list of field names (e.g. "Metadata") to
2611	// unconditionally include in API requests. By default, fields with
2612	// empty values are omitted from API requests. However, any non-pointer,
2613	// non-interface field appearing in ForceSendFields will be sent to the
2614	// server regardless of whether the field is empty or not. This may be
2615	// used to include empty fields in Patch requests.
2616	ForceSendFields []string `json:"-"`
2617
2618	// NullFields is a list of field names (e.g. "Metadata") to include in
2619	// API requests with the JSON null value. By default, fields with empty
2620	// values are omitted from API requests. However, any field with an
2621	// empty value appearing in NullFields will be sent to the server as
2622	// null. It is an error if a field in this list has a non-empty value.
2623	// This may be used to include null fields in Patch requests.
2624	NullFields []string `json:"-"`
2625}
2626
2627func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
2628	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
2629	raw := NoMethod(*s)
2630	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2631}
2632
2633// GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates
2634// that interaction with the Dialogflow agent has ended. This message is
2635// generated by Dialogflow only and not supposed to be defined by the
2636// user.
2637type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
2638}
2639
2640// GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates
2641// that the conversation should be handed off to a live agent.
2642// Dialogflow only uses this to determine which conversations were
2643// handed off to a human agent for measurement purposes. What else to do
2644// with this signal is up to you and your handoff procedures. You may
2645// set this, for example: * In the entry_fulfillment of a Page if
2646// entering the page indicates something went extremely wrong in the
2647// conversation. * In a webhook response when you determine that the
2648// customer issue can only be handled by a human.
2649type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
2650	// Metadata: Custom metadata for your handoff procedure. Dialogflow
2651	// doesn't impose any structure on this.
2652	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2653
2654	// ForceSendFields is a list of field names (e.g. "Metadata") to
2655	// unconditionally include in API requests. By default, fields with
2656	// empty values are omitted from API requests. However, any non-pointer,
2657	// non-interface field appearing in ForceSendFields will be sent to the
2658	// server regardless of whether the field is empty or not. This may be
2659	// used to include empty fields in Patch requests.
2660	ForceSendFields []string `json:"-"`
2661
2662	// NullFields is a list of field names (e.g. "Metadata") to include in
2663	// API requests with the JSON null value. By default, fields with empty
2664	// values are omitted from API requests. However, any field with an
2665	// empty value appearing in NullFields will be sent to the server as
2666	// null. It is an error if a field in this list has a non-empty value.
2667	// This may be used to include null fields in Patch requests.
2668	NullFields []string `json:"-"`
2669}
2670
2671func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
2672	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
2673	raw := NoMethod(*s)
2674	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2675}
2676
2677// GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an
2678// audio message that is composed of both segments synthesized from the
2679// Dialogflow agent prompts and ones hosted externally at the specified
2680// URIs. The external URIs are specified via play_audio. This message is
2681// generated by Dialogflow only and not supposed to be defined by the
2682// user.
2683type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
2684	// Segments: Segments this audio response is composed of.
2685	Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
2686
2687	// ForceSendFields is a list of field names (e.g. "Segments") to
2688	// unconditionally include in API requests. By default, fields with
2689	// empty values are omitted from API requests. However, any non-pointer,
2690	// non-interface field appearing in ForceSendFields will be sent to the
2691	// server regardless of whether the field is empty or not. This may be
2692	// used to include empty fields in Patch requests.
2693	ForceSendFields []string `json:"-"`
2694
2695	// NullFields is a list of field names (e.g. "Segments") to include in
2696	// API requests with the JSON null value. By default, fields with empty
2697	// values are omitted from API requests. However, any field with an
2698	// empty value appearing in NullFields will be sent to the server as
2699	// null. It is an error if a field in this list has a non-empty value.
2700	// This may be used to include null fields in Patch requests.
2701	NullFields []string `json:"-"`
2702}
2703
2704func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
2705	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
2706	raw := NoMethod(*s)
2707	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2708}
2709
2710// GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents
2711// one segment of audio.
2712type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
2713	// AllowPlaybackInterruption: Output only. Whether the playback of this
2714	// segment can be interrupted by the end user's speech and the client
2715	// should then start the next Dialogflow request.
2716	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2717
2718	// Audio: Raw audio synthesized from the Dialogflow agent's response
2719	// using the output config specified in the request.
2720	Audio string `json:"audio,omitempty"`
2721
2722	// Uri: Client-specific URI that points to an audio clip accessible to
2723	// the client. Dialogflow does not impose any validation on it.
2724	Uri string `json:"uri,omitempty"`
2725
2726	// ForceSendFields is a list of field names (e.g.
2727	// "AllowPlaybackInterruption") to unconditionally include in API
2728	// requests. By default, fields with empty values are omitted from API
2729	// requests. However, any non-pointer, non-interface field appearing in
2730	// ForceSendFields will be sent to the server regardless of whether the
2731	// field is empty or not. This may be used to include empty fields in
2732	// Patch requests.
2733	ForceSendFields []string `json:"-"`
2734
2735	// NullFields is a list of field names (e.g.
2736	// "AllowPlaybackInterruption") to include in API requests with the JSON
2737	// null value. By default, fields with empty values are omitted from API
2738	// requests. However, any field with an empty value appearing in
2739	// NullFields will be sent to the server as null. It is an error if a
2740	// field in this list has a non-empty value. This may be used to include
2741	// null fields in Patch requests.
2742	NullFields []string `json:"-"`
2743}
2744
2745func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
2746	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
2747	raw := NoMethod(*s)
2748	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2749}
2750
2751// GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or
2752// ssml response that is preferentially used for TTS output audio
2753// synthesis, as described in the comment on the ResponseMessage
2754// message.
2755type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
2756	// AllowPlaybackInterruption: Output only. Whether the playback of this
2757	// message can be interrupted by the end user's speech and the client
2758	// can then starts the next Dialogflow request.
2759	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2760
2761	// Ssml: The SSML text to be synthesized. For more information, see SSML
2762	// (/speech/text-to-speech/docs/ssml).
2763	Ssml string `json:"ssml,omitempty"`
2764
2765	// Text: The raw text to be synthesized.
2766	Text string `json:"text,omitempty"`
2767
2768	// ForceSendFields is a list of field names (e.g.
2769	// "AllowPlaybackInterruption") to unconditionally include in API
2770	// requests. By default, fields with empty values are omitted from API
2771	// requests. However, any non-pointer, non-interface field appearing in
2772	// ForceSendFields will be sent to the server regardless of whether the
2773	// field is empty or not. This may be used to include empty fields in
2774	// Patch requests.
2775	ForceSendFields []string `json:"-"`
2776
2777	// NullFields is a list of field names (e.g.
2778	// "AllowPlaybackInterruption") to include in API requests with the JSON
2779	// null value. By default, fields with empty values are omitted from API
2780	// requests. However, any field with an empty value appearing in
2781	// NullFields will be sent to the server as null. It is an error if a
2782	// field in this list has a non-empty value. This may be used to include
2783	// null fields in Patch requests.
2784	NullFields []string `json:"-"`
2785}
2786
2787func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
2788	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
2789	raw := NoMethod(*s)
2790	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2791}
2792
2793// GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio
2794// clip to be played by the client as part of the response.
2795type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
2796	// AllowPlaybackInterruption: Output only. Whether the playback of this
2797	// message can be interrupted by the end user's speech and the client
2798	// can then starts the next Dialogflow request.
2799	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2800
2801	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose
2802	// any validation on this value. It is specific to the client that reads
2803	// it.
2804	AudioUri string `json:"audioUri,omitempty"`
2805
2806	// ForceSendFields is a list of field names (e.g.
2807	// "AllowPlaybackInterruption") to unconditionally include in API
2808	// requests. By default, fields with empty values are omitted from API
2809	// requests. However, any non-pointer, non-interface field appearing in
2810	// ForceSendFields will be sent to the server regardless of whether the
2811	// field is empty or not. This may be used to include empty fields in
2812	// Patch requests.
2813	ForceSendFields []string `json:"-"`
2814
2815	// NullFields is a list of field names (e.g.
2816	// "AllowPlaybackInterruption") to include in API requests with the JSON
2817	// null value. By default, fields with empty values are omitted from API
2818	// requests. However, any field with an empty value appearing in
2819	// NullFields will be sent to the server as null. It is an error if a
2820	// field in this list has a non-empty value. This may be used to include
2821	// null fields in Patch requests.
2822	NullFields []string `json:"-"`
2823}
2824
2825func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
2826	type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
2827	raw := NoMethod(*s)
2828	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2829}
2830
2831// GoogleCloudDialogflowCxV3ResponseMessageText: The text response
2832// message.
2833type GoogleCloudDialogflowCxV3ResponseMessageText struct {
2834	// AllowPlaybackInterruption: Output only. Whether the playback of this
2835	// message can be interrupted by the end user's speech and the client
2836	// can then starts the next Dialogflow request.
2837	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2838
2839	// Text: Required. A collection of text responses.
2840	Text []string `json:"text,omitempty"`
2841
2842	// ForceSendFields is a list of field names (e.g.
2843	// "AllowPlaybackInterruption") to unconditionally include in API
2844	// requests. By default, fields with empty values are omitted from API
2845	// requests. However, any non-pointer, non-interface field appearing in
2846	// ForceSendFields will be sent to the server regardless of whether the
2847	// field is empty or not. This may be used to include empty fields in
2848	// Patch requests.
2849	ForceSendFields []string `json:"-"`
2850
2851	// NullFields is a list of field names (e.g.
2852	// "AllowPlaybackInterruption") to include in API requests with the JSON
2853	// null value. By default, fields with empty values are omitted from API
2854	// requests. However, any field with an empty value appearing in
2855	// NullFields will be sent to the server as null. It is an error if a
2856	// field in this list has a non-empty value. This may be used to include
2857	// null fields in Patch requests.
2858	NullFields []string `json:"-"`
2859}
2860
2861func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
2862	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
2863	raw := NoMethod(*s)
2864	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2865}
2866
2867// GoogleCloudDialogflowCxV3RunContinuousTestMetadata: Metadata returned
2868// for the Environments.RunContinuousTest long running operation.
2869type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
2870	// Errors: The test errors.
2871	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
2872
2873	// ForceSendFields is a list of field names (e.g. "Errors") to
2874	// unconditionally include in API requests. By default, fields with
2875	// empty values are omitted from API requests. However, any non-pointer,
2876	// non-interface field appearing in ForceSendFields will be sent to the
2877	// server regardless of whether the field is empty or not. This may be
2878	// used to include empty fields in Patch requests.
2879	ForceSendFields []string `json:"-"`
2880
2881	// NullFields is a list of field names (e.g. "Errors") to include in API
2882	// requests with the JSON null value. By default, fields with empty
2883	// values are omitted from API requests. However, any field with an
2884	// empty value appearing in NullFields will be sent to the server as
2885	// null. It is an error if a field in this list has a non-empty value.
2886	// This may be used to include null fields in Patch requests.
2887	NullFields []string `json:"-"`
2888}
2889
2890func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
2891	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
2892	raw := NoMethod(*s)
2893	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2894}
2895
2896// GoogleCloudDialogflowCxV3RunContinuousTestResponse: The response
2897// message for Environments.RunContinuousTest.
2898type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
2899	// ContinuousTestResult: The result for a continuous test run.
2900	ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
2901
2902	// ForceSendFields is a list of field names (e.g.
2903	// "ContinuousTestResult") to unconditionally include in API requests.
2904	// By default, fields with empty values are omitted from API requests.
2905	// However, any non-pointer, non-interface field appearing in
2906	// ForceSendFields will be sent to the server regardless of whether the
2907	// field is empty or not. This may be used to include empty fields in
2908	// Patch requests.
2909	ForceSendFields []string `json:"-"`
2910
2911	// NullFields is a list of field names (e.g. "ContinuousTestResult") to
2912	// include in API requests with the JSON null value. By default, fields
2913	// with empty values are omitted from API requests. However, any field
2914	// with an empty value appearing in NullFields will be sent to the
2915	// server as null. It is an error if a field in this list has a
2916	// non-empty value. This may be used to include null fields in Patch
2917	// requests.
2918	NullFields []string `json:"-"`
2919}
2920
2921func (s *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
2922	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
2923	raw := NoMethod(*s)
2924	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2925}
2926
2927// GoogleCloudDialogflowCxV3RunTestCaseMetadata: Metadata returned for
2928// the TestCases.RunTestCase long running operation.
2929type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
2930}
2931
2932// GoogleCloudDialogflowCxV3RunTestCaseResponse: The response message
2933// for TestCases.RunTestCase.
2934type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
2935	// Result: The result.
2936	Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
2937
2938	// ForceSendFields is a list of field names (e.g. "Result") to
2939	// unconditionally include in API requests. By default, fields with
2940	// empty values are omitted from API requests. However, any non-pointer,
2941	// non-interface field appearing in ForceSendFields will be sent to the
2942	// server regardless of whether the field is empty or not. This may be
2943	// used to include empty fields in Patch requests.
2944	ForceSendFields []string `json:"-"`
2945
2946	// NullFields is a list of field names (e.g. "Result") to include in API
2947	// requests with the JSON null value. By default, fields with empty
2948	// values are omitted from API requests. However, any field with an
2949	// empty value appearing in NullFields will be sent to the server as
2950	// null. It is an error if a field in this list has a non-empty value.
2951	// This may be used to include null fields in Patch requests.
2952	NullFields []string `json:"-"`
2953}
2954
2955func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
2956	type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
2957	raw := NoMethod(*s)
2958	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2959}
2960
2961// GoogleCloudDialogflowCxV3SessionInfo: Represents session information
2962// communicated to and from the webhook.
2963type GoogleCloudDialogflowCxV3SessionInfo struct {
2964	// Parameters: Optional for WebhookRequest. Optional for
2965	// WebhookResponse. All parameters collected from forms and intents
2966	// during the session. Parameters can be created, updated, or removed by
2967	// the webhook. To remove a parameter from the session, the webhook
2968	// should explicitly set the parameter value to null in WebhookResponse.
2969	// The map is keyed by parameters' display names.
2970	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
2971
2972	// Session: Always present for WebhookRequest. Ignored for
2973	// WebhookResponse. The unique identifier of the session. This field can
2974	// be used by the webhook to identify a session. Format:
2975	// `projects//locations//agents//sessions/` or
2976	// `projects//locations//agents//environments//sessions/` if environment
2977	// is specified.
2978	Session string `json:"session,omitempty"`
2979
2980	// ForceSendFields is a list of field names (e.g. "Parameters") to
2981	// unconditionally include in API requests. By default, fields with
2982	// empty values are omitted from API requests. However, any non-pointer,
2983	// non-interface field appearing in ForceSendFields will be sent to the
2984	// server regardless of whether the field is empty or not. This may be
2985	// used to include empty fields in Patch requests.
2986	ForceSendFields []string `json:"-"`
2987
2988	// NullFields is a list of field names (e.g. "Parameters") to include in
2989	// API requests with the JSON null value. By default, fields with empty
2990	// values are omitted from API requests. However, any field with an
2991	// empty value appearing in NullFields will be sent to the server as
2992	// null. It is an error if a field in this list has a non-empty value.
2993	// This may be used to include null fields in Patch requests.
2994	NullFields []string `json:"-"`
2995}
2996
2997func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
2998	type NoMethod GoogleCloudDialogflowCxV3SessionInfo
2999	raw := NoMethod(*s)
3000	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3001}
3002
3003// GoogleCloudDialogflowCxV3TestCase: Represents a test case.
3004type GoogleCloudDialogflowCxV3TestCase struct {
3005	// CreationTime: Output only. When the test was created.
3006	CreationTime string `json:"creationTime,omitempty"`
3007
3008	// DisplayName: Required. The human-readable name of the test case,
3009	// unique within the agent. Limit of 200 characters.
3010	DisplayName string `json:"displayName,omitempty"`
3011
3012	// LastTestResult: The latest test result.
3013	LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
3014
3015	// Name: The unique identifier of the test case.
3016	// TestCases.CreateTestCase will populate the name automatically.
3017	// Otherwise use format: `projects//locations//agents/ /testCases/`.
3018	Name string `json:"name,omitempty"`
3019
3020	// Notes: Additional freeform notes about the test case. Limit of 400
3021	// characters.
3022	Notes string `json:"notes,omitempty"`
3023
3024	// Tags: Tags are short descriptions that users may apply to test cases
3025	// for organizational and filtering purposes. Each tag should start with
3026	// "#" and has a limit of 30 characters.
3027	Tags []string `json:"tags,omitempty"`
3028
3029	// TestCaseConversationTurns: The conversation turns uttered when the
3030	// test case was created, in chronological order. These include the
3031	// canonical set of agent utterances that should occur when the agent is
3032	// working properly.
3033	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
3034
3035	// TestConfig: Config for the test case.
3036	TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
3037
3038	// ForceSendFields is a list of field names (e.g. "CreationTime") to
3039	// unconditionally include in API requests. By default, fields with
3040	// empty values are omitted from API requests. However, any non-pointer,
3041	// non-interface field appearing in ForceSendFields will be sent to the
3042	// server regardless of whether the field is empty or not. This may be
3043	// used to include empty fields in Patch requests.
3044	ForceSendFields []string `json:"-"`
3045
3046	// NullFields is a list of field names (e.g. "CreationTime") to include
3047	// in API requests with the JSON null value. By default, fields with
3048	// empty values are omitted from API requests. However, any field with
3049	// an empty value appearing in NullFields will be sent to the server as
3050	// null. It is an error if a field in this list has a non-empty value.
3051	// This may be used to include null fields in Patch requests.
3052	NullFields []string `json:"-"`
3053}
3054
3055func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
3056	type NoMethod GoogleCloudDialogflowCxV3TestCase
3057	raw := NoMethod(*s)
3058	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3059}
3060
3061// GoogleCloudDialogflowCxV3TestCaseError: Error info for importing a
3062// test.
3063type GoogleCloudDialogflowCxV3TestCaseError struct {
3064	// Status: The status associated with the test case.
3065	Status *GoogleRpcStatus `json:"status,omitempty"`
3066
3067	// TestCase: The test case.
3068	TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
3069
3070	// ForceSendFields is a list of field names (e.g. "Status") to
3071	// unconditionally include in API requests. By default, fields with
3072	// empty values are omitted from API requests. However, any non-pointer,
3073	// non-interface field appearing in ForceSendFields will be sent to the
3074	// server regardless of whether the field is empty or not. This may be
3075	// used to include empty fields in Patch requests.
3076	ForceSendFields []string `json:"-"`
3077
3078	// NullFields is a list of field names (e.g. "Status") to include in API
3079	// requests with the JSON null value. By default, fields with empty
3080	// values are omitted from API requests. However, any field with an
3081	// empty value appearing in NullFields will be sent to the server as
3082	// null. It is an error if a field in this list has a non-empty value.
3083	// This may be used to include null fields in Patch requests.
3084	NullFields []string `json:"-"`
3085}
3086
3087func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
3088	type NoMethod GoogleCloudDialogflowCxV3TestCaseError
3089	raw := NoMethod(*s)
3090	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3091}
3092
3093// GoogleCloudDialogflowCxV3TestCaseResult: Represents a result from
3094// running a test case in an agent environment.
3095type GoogleCloudDialogflowCxV3TestCaseResult struct {
3096	// ConversationTurns: The conversation turns uttered during the test
3097	// case replay in chronological order.
3098	ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
3099
3100	// Environment: Environment where the test was run. If not set, it
3101	// indicates the draft environment.
3102	Environment string `json:"environment,omitempty"`
3103
3104	// Name: The resource name for the test case result. Format:
3105	// `projects//locations//agents//testCases/ /results/`.
3106	Name string `json:"name,omitempty"`
3107
3108	// TestResult: Whether the test case passed in the agent environment.
3109	//
3110	// Possible values:
3111	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
3112	//   "PASSED" - The test passed.
3113	//   "FAILED" - The test did not pass.
3114	TestResult string `json:"testResult,omitempty"`
3115
3116	// TestTime: The time that the test was run.
3117	TestTime string `json:"testTime,omitempty"`
3118
3119	// ForceSendFields is a list of field names (e.g. "ConversationTurns")
3120	// to unconditionally include in API requests. By default, fields with
3121	// empty values are omitted from API requests. However, any non-pointer,
3122	// non-interface field appearing in ForceSendFields will be sent to the
3123	// server regardless of whether the field is empty or not. This may be
3124	// used to include empty fields in Patch requests.
3125	ForceSendFields []string `json:"-"`
3126
3127	// NullFields is a list of field names (e.g. "ConversationTurns") to
3128	// include in API requests with the JSON null value. By default, fields
3129	// with empty values are omitted from API requests. However, any field
3130	// with an empty value appearing in NullFields will be sent to the
3131	// server as null. It is an error if a field in this list has a
3132	// non-empty value. This may be used to include null fields in Patch
3133	// requests.
3134	NullFields []string `json:"-"`
3135}
3136
3137func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
3138	type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
3139	raw := NoMethod(*s)
3140	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3141}
3142
3143// GoogleCloudDialogflowCxV3TestConfig: Represents configurations for a
3144// test case.
3145type GoogleCloudDialogflowCxV3TestConfig struct {
3146	// Flow: Flow name. If not set, default start flow is assumed. Format:
3147	// `projects//locations//agents//flows/`.
3148	Flow string `json:"flow,omitempty"`
3149
3150	// TrackingParameters: Session parameters to be compared when
3151	// calculating differences.
3152	TrackingParameters []string `json:"trackingParameters,omitempty"`
3153
3154	// ForceSendFields is a list of field names (e.g. "Flow") to
3155	// unconditionally include in API requests. By default, fields with
3156	// empty values are omitted from API requests. However, any non-pointer,
3157	// non-interface field appearing in ForceSendFields will be sent to the
3158	// server regardless of whether the field is empty or not. This may be
3159	// used to include empty fields in Patch requests.
3160	ForceSendFields []string `json:"-"`
3161
3162	// NullFields is a list of field names (e.g. "Flow") to include in API
3163	// requests with the JSON null value. By default, fields with empty
3164	// values are omitted from API requests. However, any field with an
3165	// empty value appearing in NullFields will be sent to the server as
3166	// null. It is an error if a field in this list has a non-empty value.
3167	// This may be used to include null fields in Patch requests.
3168	NullFields []string `json:"-"`
3169}
3170
3171func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
3172	type NoMethod GoogleCloudDialogflowCxV3TestConfig
3173	raw := NoMethod(*s)
3174	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3175}
3176
3177// GoogleCloudDialogflowCxV3TestError: Error info for running a test.
3178type GoogleCloudDialogflowCxV3TestError struct {
3179	// Status: The status associated with the test.
3180	Status *GoogleRpcStatus `json:"status,omitempty"`
3181
3182	// TestCase: The test case resource name.
3183	TestCase string `json:"testCase,omitempty"`
3184
3185	// TestTime: The timestamp when the test was completed.
3186	TestTime string `json:"testTime,omitempty"`
3187
3188	// ForceSendFields is a list of field names (e.g. "Status") to
3189	// unconditionally include in API requests. By default, fields with
3190	// empty values are omitted from API requests. However, any non-pointer,
3191	// non-interface field appearing in ForceSendFields will be sent to the
3192	// server regardless of whether the field is empty or not. This may be
3193	// used to include empty fields in Patch requests.
3194	ForceSendFields []string `json:"-"`
3195
3196	// NullFields is a list of field names (e.g. "Status") to include in API
3197	// requests with the JSON null value. By default, fields with empty
3198	// values are omitted from API requests. However, any field with an
3199	// empty value appearing in NullFields will be sent to the server as
3200	// null. It is an error if a field in this list has a non-empty value.
3201	// This may be used to include null fields in Patch requests.
3202	NullFields []string `json:"-"`
3203}
3204
3205func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
3206	type NoMethod GoogleCloudDialogflowCxV3TestError
3207	raw := NoMethod(*s)
3208	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3209}
3210
3211// GoogleCloudDialogflowCxV3TestRunDifference: The description of
3212// differences between original and replayed agent output.
3213type GoogleCloudDialogflowCxV3TestRunDifference struct {
3214	// Description: A description of the diff, showing the actual output vs
3215	// expected output.
3216	Description string `json:"description,omitempty"`
3217
3218	// Type: The type of diff.
3219	//
3220	// Possible values:
3221	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
3222	//   "INTENT" - The intent.
3223	//   "PAGE" - The page.
3224	//   "PARAMETERS" - The parameters.
3225	//   "UTTERANCE" - The message utterance.
3226	Type string `json:"type,omitempty"`
3227
3228	// ForceSendFields is a list of field names (e.g. "Description") to
3229	// unconditionally include in API requests. By default, fields with
3230	// empty values are omitted from API requests. However, any non-pointer,
3231	// non-interface field appearing in ForceSendFields will be sent to the
3232	// server regardless of whether the field is empty or not. This may be
3233	// used to include empty fields in Patch requests.
3234	ForceSendFields []string `json:"-"`
3235
3236	// NullFields is a list of field names (e.g. "Description") to include
3237	// in API requests with the JSON null value. By default, fields with
3238	// empty values are omitted from API requests. However, any field with
3239	// an empty value appearing in NullFields will be sent to the server as
3240	// null. It is an error if a field in this list has a non-empty value.
3241	// This may be used to include null fields in Patch requests.
3242	NullFields []string `json:"-"`
3243}
3244
3245func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
3246	type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
3247	raw := NoMethod(*s)
3248	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3249}
3250
3251// GoogleCloudDialogflowCxV3TextInput: Represents the natural language
3252// text to be processed.
3253type GoogleCloudDialogflowCxV3TextInput struct {
3254	// Text: Required. The UTF-8 encoded natural language text to be
3255	// processed. Text length must not exceed 256 characters.
3256	Text string `json:"text,omitempty"`
3257
3258	// ForceSendFields is a list of field names (e.g. "Text") to
3259	// unconditionally include in API requests. By default, fields with
3260	// empty values are omitted from API requests. However, any non-pointer,
3261	// non-interface field appearing in ForceSendFields will be sent to the
3262	// server regardless of whether the field is empty or not. This may be
3263	// used to include empty fields in Patch requests.
3264	ForceSendFields []string `json:"-"`
3265
3266	// NullFields is a list of field names (e.g. "Text") to include in API
3267	// requests with the JSON null value. By default, fields with empty
3268	// values are omitted from API requests. However, any field with an
3269	// empty value appearing in NullFields will be sent to the server as
3270	// null. It is an error if a field in this list has a non-empty value.
3271	// This may be used to include null fields in Patch requests.
3272	NullFields []string `json:"-"`
3273}
3274
3275func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
3276	type NoMethod GoogleCloudDialogflowCxV3TextInput
3277	raw := NoMethod(*s)
3278	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3279}
3280
3281// GoogleCloudDialogflowCxV3TransitionRoute: A transition route
3282// specifies a intent that can be matched and/or a data condition that
3283// can be evaluated during a session. When a specified transition is
3284// matched, the following actions are taken in order: * If there is a
3285// `trigger_fulfillment` associated with the transition, it will be
3286// called. * If there is a `target_page` associated with the transition,
3287// the session will transition into the specified page. * If there is a
3288// `target_flow` associated with the transition, the session will
3289// transition into the specified flow.
3290type GoogleCloudDialogflowCxV3TransitionRoute struct {
3291	// Condition: The condition to evaluate against form parameters or
3292	// session parameters. See the conditions reference
3293	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At
3294	// least one of `intent` or `condition` must be specified. When both
3295	// `intent` and `condition` are specified, the transition can only
3296	// happen when both are fulfilled.
3297	Condition string `json:"condition,omitempty"`
3298
3299	// Intent: The unique identifier of an Intent. Format:
3300	// `projects//locations//agents//intents/`. Indicates that the
3301	// transition can only happen when the given intent is matched. At least
3302	// one of `intent` or `condition` must be specified. When both `intent`
3303	// and `condition` are specified, the transition can only happen when
3304	// both are fulfilled.
3305	Intent string `json:"intent,omitempty"`
3306
3307	// Name: Output only. The unique identifier of this transition route.
3308	Name string `json:"name,omitempty"`
3309
3310	// TargetFlow: The target flow to transition to. Format:
3311	// `projects//locations//agents//flows/`.
3312	TargetFlow string `json:"targetFlow,omitempty"`
3313
3314	// TargetPage: The target page to transition to. Format:
3315	// `projects//locations//agents//flows//pages/`.
3316	TargetPage string `json:"targetPage,omitempty"`
3317
3318	// TriggerFulfillment: The fulfillment to call when the condition is
3319	// satisfied. At least one of `trigger_fulfillment` and `target` must be
3320	// specified. When both are defined, `trigger_fulfillment` is executed
3321	// first.
3322	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
3323
3324	// ForceSendFields is a list of field names (e.g. "Condition") to
3325	// unconditionally include in API requests. By default, fields with
3326	// empty values are omitted from API requests. However, any non-pointer,
3327	// non-interface field appearing in ForceSendFields will be sent to the
3328	// server regardless of whether the field is empty or not. This may be
3329	// used to include empty fields in Patch requests.
3330	ForceSendFields []string `json:"-"`
3331
3332	// NullFields is a list of field names (e.g. "Condition") to include in
3333	// API requests with the JSON null value. By default, fields with empty
3334	// values are omitted from API requests. However, any field with an
3335	// empty value appearing in NullFields will be sent to the server as
3336	// null. It is an error if a field in this list has a non-empty value.
3337	// This may be used to include null fields in Patch requests.
3338	NullFields []string `json:"-"`
3339}
3340
3341func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
3342	type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
3343	raw := NoMethod(*s)
3344	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3345}
3346
3347// GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata
3348// for UpdateDocument operation.
3349type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
3350	// GenericMetadata: The generic information of the operation.
3351	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3352
3353	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
3354	// unconditionally include in API requests. By default, fields with
3355	// empty values are omitted from API requests. However, any non-pointer,
3356	// non-interface field appearing in ForceSendFields will be sent to the
3357	// server regardless of whether the field is empty or not. This may be
3358	// used to include empty fields in Patch requests.
3359	ForceSendFields []string `json:"-"`
3360
3361	// NullFields is a list of field names (e.g. "GenericMetadata") to
3362	// include in API requests with the JSON null value. By default, fields
3363	// with empty values are omitted from API requests. However, any field
3364	// with an empty value appearing in NullFields will be sent to the
3365	// server as null. It is an error if a field in this list has a
3366	// non-empty value. This may be used to include null fields in Patch
3367	// requests.
3368	NullFields []string `json:"-"`
3369}
3370
3371func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3372	type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
3373	raw := NoMethod(*s)
3374	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3375}
3376
3377// GoogleCloudDialogflowCxV3WebhookRequest: The request message for a
3378// webhook call. The request is sent as a JSON object and the field
3379// names will be presented in camel cases.
3380type GoogleCloudDialogflowCxV3WebhookRequest struct {
3381	// DetectIntentResponseId: Always present. The unique identifier of the
3382	// DetectIntentResponse that will be returned to the API caller.
3383	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
3384
3385	// FulfillmentInfo: Always present. Information about the fulfillment
3386	// that triggered this webhook call.
3387	FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
3388
3389	// IntentInfo: Information about the last matched intent.
3390	IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
3391
3392	// LanguageCode: The language code specified in the original request.
3393	LanguageCode string `json:"languageCode,omitempty"`
3394
3395	// Messages: The list of rich message responses to present to the user.
3396	// Webhook can choose to append or replace this list in
3397	// WebhookResponse.fulfillment_response;
3398	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3399
3400	// PageInfo: Information about page status.
3401	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3402
3403	// Payload: Custom data set in QueryParameters.payload.
3404	Payload googleapi.RawMessage `json:"payload,omitempty"`
3405
3406	// SentimentAnalysisResult: The sentiment analysis result of the current
3407	// user request. The field is filled when sentiment analysis is
3408	// configured to be enabled for the request.
3409	SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
3410
3411	// SessionInfo: Information about session status.
3412	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3413
3414	// Text: If natural language text was provided as input, this field will
3415	// contain a copy of the text.
3416	Text string `json:"text,omitempty"`
3417
3418	// Transcript: If natural language speech audio was provided as input,
3419	// this field will contain the transcript for the audio.
3420	Transcript string `json:"transcript,omitempty"`
3421
3422	// TriggerEvent: If an event was provided as input, this field will
3423	// contain the name of the event.
3424	TriggerEvent string `json:"triggerEvent,omitempty"`
3425
3426	// TriggerIntent: If an intent was provided as input, this field will
3427	// contain a copy of the intent identifier. Format:
3428	// `projects//locations//agents//intents/`.
3429	TriggerIntent string `json:"triggerIntent,omitempty"`
3430
3431	// ForceSendFields is a list of field names (e.g.
3432	// "DetectIntentResponseId") to unconditionally include in API requests.
3433	// By default, fields with empty values are omitted from API requests.
3434	// However, any non-pointer, non-interface field appearing in
3435	// ForceSendFields will be sent to the server regardless of whether the
3436	// field is empty or not. This may be used to include empty fields in
3437	// Patch requests.
3438	ForceSendFields []string `json:"-"`
3439
3440	// NullFields is a list of field names (e.g. "DetectIntentResponseId")
3441	// to include in API requests with the JSON null value. By default,
3442	// fields with empty values are omitted from API requests. However, any
3443	// field with an empty value appearing in NullFields will be sent to the
3444	// server as null. It is an error if a field in this list has a
3445	// non-empty value. This may be used to include null fields in Patch
3446	// requests.
3447	NullFields []string `json:"-"`
3448}
3449
3450func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
3451	type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
3452	raw := NoMethod(*s)
3453	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3454}
3455
3456// GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents
3457// fulfillment information communicated to the webhook.
3458type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
3459	// Tag: Always present. The tag used to identify which fulfillment is
3460	// being called.
3461	Tag string `json:"tag,omitempty"`
3462
3463	// ForceSendFields is a list of field names (e.g. "Tag") to
3464	// unconditionally include in API requests. By default, fields with
3465	// empty values are omitted from API requests. However, any non-pointer,
3466	// non-interface field appearing in ForceSendFields will be sent to the
3467	// server regardless of whether the field is empty or not. This may be
3468	// used to include empty fields in Patch requests.
3469	ForceSendFields []string `json:"-"`
3470
3471	// NullFields is a list of field names (e.g. "Tag") to include in API
3472	// requests with the JSON null value. By default, fields with empty
3473	// values are omitted from API requests. However, any field with an
3474	// empty value appearing in NullFields will be sent to the server as
3475	// null. It is an error if a field in this list has a non-empty value.
3476	// This may be used to include null fields in Patch requests.
3477	NullFields []string `json:"-"`
3478}
3479
3480func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
3481	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
3482	raw := NoMethod(*s)
3483	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3484}
3485
3486// GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent
3487// information communicated to the webhook.
3488type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
3489	// Confidence: The confidence of the matched intent. Values range from
3490	// 0.0 (completely uncertain) to 1.0 (completely certain).
3491	Confidence float64 `json:"confidence,omitempty"`
3492
3493	// DisplayName: Always present. The display name of the last matched
3494	// intent.
3495	DisplayName string `json:"displayName,omitempty"`
3496
3497	// LastMatchedIntent: Always present. The unique identifier of the last
3498	// matched intent. Format: `projects//locations//agents//intents/`.
3499	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
3500
3501	// Parameters: Parameters identified as a result of intent matching.
3502	// This is a map of the name of the identified parameter to the value of
3503	// the parameter identified from the user's utterance. All parameters
3504	// defined in the matched intent that are identified will be surfaced
3505	// here.
3506	Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
3507
3508	// ForceSendFields is a list of field names (e.g. "Confidence") to
3509	// unconditionally include in API requests. By default, fields with
3510	// empty values are omitted from API requests. However, any non-pointer,
3511	// non-interface field appearing in ForceSendFields will be sent to the
3512	// server regardless of whether the field is empty or not. This may be
3513	// used to include empty fields in Patch requests.
3514	ForceSendFields []string `json:"-"`
3515
3516	// NullFields is a list of field names (e.g. "Confidence") to include in
3517	// API requests with the JSON null value. By default, fields with empty
3518	// values are omitted from API requests. However, any field with an
3519	// empty value appearing in NullFields will be sent to the server as
3520	// null. It is an error if a field in this list has a non-empty value.
3521	// This may be used to include null fields in Patch requests.
3522	NullFields []string `json:"-"`
3523}
3524
3525func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
3526	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
3527	raw := NoMethod(*s)
3528	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3529}
3530
3531func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
3532	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
3533	var s1 struct {
3534		Confidence gensupport.JSONFloat64 `json:"confidence"`
3535		*NoMethod
3536	}
3537	s1.NoMethod = (*NoMethod)(s)
3538	if err := json.Unmarshal(data, &s1); err != nil {
3539		return err
3540	}
3541	s.Confidence = float64(s1.Confidence)
3542	return nil
3543}
3544
3545// GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
3546//  Represents a value for an intent parameter.
3547type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
3548	// OriginalValue: Always present. Original text value extracted from
3549	// user utterance.
3550	OriginalValue string `json:"originalValue,omitempty"`
3551
3552	// ResolvedValue: Always present. Structured value for the parameter
3553	// extracted from user utterance.
3554	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
3555
3556	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
3557	// unconditionally include in API requests. By default, fields with
3558	// empty values are omitted from API requests. However, any non-pointer,
3559	// non-interface field appearing in ForceSendFields will be sent to the
3560	// server regardless of whether the field is empty or not. This may be
3561	// used to include empty fields in Patch requests.
3562	ForceSendFields []string `json:"-"`
3563
3564	// NullFields is a list of field names (e.g. "OriginalValue") to include
3565	// in API requests with the JSON null value. By default, fields with
3566	// empty values are omitted from API requests. However, any field with
3567	// an empty value appearing in NullFields will be sent to the server as
3568	// null. It is an error if a field in this list has a non-empty value.
3569	// This may be used to include null fields in Patch requests.
3570	NullFields []string `json:"-"`
3571}
3572
3573func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
3574	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
3575	raw := NoMethod(*s)
3576	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3577}
3578
3579// GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult:
3580// Represents the result of sentiment analysis.
3581type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
3582	// Magnitude: A non-negative number in the [0, +inf) range, which
3583	// represents the absolute magnitude of sentiment, regardless of score
3584	// (positive or negative).
3585	Magnitude float64 `json:"magnitude,omitempty"`
3586
3587	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
3588	// (positive sentiment).
3589	Score float64 `json:"score,omitempty"`
3590
3591	// ForceSendFields is a list of field names (e.g. "Magnitude") to
3592	// unconditionally include in API requests. By default, fields with
3593	// empty values are omitted from API requests. However, any non-pointer,
3594	// non-interface field appearing in ForceSendFields will be sent to the
3595	// server regardless of whether the field is empty or not. This may be
3596	// used to include empty fields in Patch requests.
3597	ForceSendFields []string `json:"-"`
3598
3599	// NullFields is a list of field names (e.g. "Magnitude") to include in
3600	// API requests with the JSON null value. By default, fields with empty
3601	// values are omitted from API requests. However, any field with an
3602	// empty value appearing in NullFields will be sent to the server as
3603	// null. It is an error if a field in this list has a non-empty value.
3604	// This may be used to include null fields in Patch requests.
3605	NullFields []string `json:"-"`
3606}
3607
3608func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
3609	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3610	raw := NoMethod(*s)
3611	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3612}
3613
3614func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
3615	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3616	var s1 struct {
3617		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
3618		Score     gensupport.JSONFloat64 `json:"score"`
3619		*NoMethod
3620	}
3621	s1.NoMethod = (*NoMethod)(s)
3622	if err := json.Unmarshal(data, &s1); err != nil {
3623		return err
3624	}
3625	s.Magnitude = float64(s1.Magnitude)
3626	s.Score = float64(s1.Score)
3627	return nil
3628}
3629
3630// GoogleCloudDialogflowCxV3WebhookResponse: The response message for a
3631// webhook call.
3632type GoogleCloudDialogflowCxV3WebhookResponse struct {
3633	// FulfillmentResponse: The fulfillment response to send to the user.
3634	// This field can be omitted by the webhook if it does not intend to
3635	// send any response to the user.
3636	FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
3637
3638	// PageInfo: Information about page status. This field can be omitted by
3639	// the webhook if it does not intend to modify page status.
3640	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3641
3642	// Payload: Value to append directly to QueryResult.webhook_payloads.
3643	Payload googleapi.RawMessage `json:"payload,omitempty"`
3644
3645	// SessionInfo: Information about session status. This field can be
3646	// omitted by the webhook if it does not intend to modify session
3647	// status.
3648	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3649
3650	// TargetFlow: The target flow to transition to. Format:
3651	// `projects//locations//agents//flows/`.
3652	TargetFlow string `json:"targetFlow,omitempty"`
3653
3654	// TargetPage: The target page to transition to. Format:
3655	// `projects//locations//agents//flows//pages/`.
3656	TargetPage string `json:"targetPage,omitempty"`
3657
3658	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse")
3659	// to unconditionally include in API requests. By default, fields with
3660	// empty values are omitted from API requests. However, any non-pointer,
3661	// non-interface field appearing in ForceSendFields will be sent to the
3662	// server regardless of whether the field is empty or not. This may be
3663	// used to include empty fields in Patch requests.
3664	ForceSendFields []string `json:"-"`
3665
3666	// NullFields is a list of field names (e.g. "FulfillmentResponse") to
3667	// include in API requests with the JSON null value. By default, fields
3668	// with empty values are omitted from API requests. However, any field
3669	// with an empty value appearing in NullFields will be sent to the
3670	// server as null. It is an error if a field in this list has a
3671	// non-empty value. This may be used to include null fields in Patch
3672	// requests.
3673	NullFields []string `json:"-"`
3674}
3675
3676func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
3677	type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
3678	raw := NoMethod(*s)
3679	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3680}
3681
3682// GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse:
3683// Represents a fulfillment response to the user.
3684type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
3685	// MergeBehavior: Merge behavior for `messages`.
3686	//
3687	// Possible values:
3688	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be
3689	// used.
3690	//   "APPEND" - `messages` will be appended to the list of messages
3691	// waiting to be sent to the user.
3692	//   "REPLACE" - `messages` will replace the list of messages waiting to
3693	// be sent to the user.
3694	MergeBehavior string `json:"mergeBehavior,omitempty"`
3695
3696	// Messages: The list of rich message responses to present to the user.
3697	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3698
3699	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
3700	// unconditionally include in API requests. By default, fields with
3701	// empty values are omitted from API requests. However, any non-pointer,
3702	// non-interface field appearing in ForceSendFields will be sent to the
3703	// server regardless of whether the field is empty or not. This may be
3704	// used to include empty fields in Patch requests.
3705	ForceSendFields []string `json:"-"`
3706
3707	// NullFields is a list of field names (e.g. "MergeBehavior") to include
3708	// in API requests with the JSON null value. By default, fields with
3709	// empty values are omitted from API requests. However, any field with
3710	// an empty value appearing in NullFields will be sent to the server as
3711	// null. It is an error if a field in this list has a non-empty value.
3712	// This may be used to include null fields in Patch requests.
3713	NullFields []string `json:"-"`
3714}
3715
3716func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
3717	type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
3718	raw := NoMethod(*s)
3719	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3720}
3721
3722// GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural
3723// speech audio to be processed.
3724type GoogleCloudDialogflowCxV3beta1AudioInput struct {
3725	// Audio: The natural language speech audio to be processed. A single
3726	// request can contain up to 1 minute of speech audio data. The
3727	// transcribed text cannot contain more than 256 bytes. For
3728	// non-streaming audio detect intent, both `config` and `audio` must be
3729	// provided. For streaming audio detect intent, `config` must be
3730	// provided in the first request and `audio` must be provided in all
3731	// following requests.
3732	Audio string `json:"audio,omitempty"`
3733
3734	// Config: Required. Instructs the speech recognizer how to process the
3735	// speech audio.
3736	Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
3737
3738	// ForceSendFields is a list of field names (e.g. "Audio") to
3739	// unconditionally include in API requests. By default, fields with
3740	// empty values are omitted from API requests. However, any non-pointer,
3741	// non-interface field appearing in ForceSendFields will be sent to the
3742	// server regardless of whether the field is empty or not. This may be
3743	// used to include empty fields in Patch requests.
3744	ForceSendFields []string `json:"-"`
3745
3746	// NullFields is a list of field names (e.g. "Audio") to include in API
3747	// requests with the JSON null value. By default, fields with empty
3748	// values are omitted from API requests. However, any field with an
3749	// empty value appearing in NullFields will be sent to the server as
3750	// null. It is an error if a field in this list has a non-empty value.
3751	// This may be used to include null fields in Patch requests.
3752	NullFields []string `json:"-"`
3753}
3754
3755func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
3756	type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
3757	raw := NoMethod(*s)
3758	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3759}
3760
3761// GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata: Metadata
3762// returned for the TestCases.BatchRunTestCases long running operation.
3763type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
3764	// Errors: The test errors.
3765	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
3766
3767	// ForceSendFields is a list of field names (e.g. "Errors") to
3768	// unconditionally include in API requests. By default, fields with
3769	// empty values are omitted from API requests. However, any non-pointer,
3770	// non-interface field appearing in ForceSendFields will be sent to the
3771	// server regardless of whether the field is empty or not. This may be
3772	// used to include empty fields in Patch requests.
3773	ForceSendFields []string `json:"-"`
3774
3775	// NullFields is a list of field names (e.g. "Errors") to include in API
3776	// requests with the JSON null value. By default, fields with empty
3777	// values are omitted from API requests. However, any field with an
3778	// empty value appearing in NullFields will be sent to the server as
3779	// null. It is an error if a field in this list has a non-empty value.
3780	// This may be used to include null fields in Patch requests.
3781	NullFields []string `json:"-"`
3782}
3783
3784func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
3785	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
3786	raw := NoMethod(*s)
3787	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3788}
3789
3790// GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse: The response
3791// message for TestCases.BatchRunTestCases.
3792type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
3793	// Results: The test case results. The detailed conversation turns are
3794	// empty in this response.
3795	Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
3796
3797	// ForceSendFields is a list of field names (e.g. "Results") to
3798	// unconditionally include in API requests. By default, fields with
3799	// empty values are omitted from API requests. However, any non-pointer,
3800	// non-interface field appearing in ForceSendFields will be sent to the
3801	// server regardless of whether the field is empty or not. This may be
3802	// used to include empty fields in Patch requests.
3803	ForceSendFields []string `json:"-"`
3804
3805	// NullFields is a list of field names (e.g. "Results") to include in
3806	// API requests with the JSON null value. By default, fields with empty
3807	// values are omitted from API requests. However, any field with an
3808	// empty value appearing in NullFields will be sent to the server as
3809	// null. It is an error if a field in this list has a non-empty value.
3810	// This may be used to include null fields in Patch requests.
3811	NullFields []string `json:"-"`
3812}
3813
3814func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
3815	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
3816	raw := NoMethod(*s)
3817	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3818}
3819
3820// GoogleCloudDialogflowCxV3beta1ContinuousTestResult: Represents a
3821// result from running a test case in an agent environment.
3822type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
3823	// Name: The resource name for the continuous test result. Format:
3824	// `projects//locations//agents//environments//continuousTestResults/`.
3825	Name string `json:"name,omitempty"`
3826
3827	// Result: The result of this continuous test run, i.e. whether all the
3828	// tests in this continuous test run pass or not.
3829	//
3830	// Possible values:
3831	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never
3832	// be used.
3833	//   "PASSED" - All the tests passed.
3834	//   "FAILED" - At least one test did not pass.
3835	Result string `json:"result,omitempty"`
3836
3837	// RunTime: Time when the continuous testing run starts.
3838	RunTime string `json:"runTime,omitempty"`
3839
3840	// TestCaseResults: A list of individual test case results names in this
3841	// continuous test run.
3842	TestCaseResults []string `json:"testCaseResults,omitempty"`
3843
3844	// ForceSendFields is a list of field names (e.g. "Name") to
3845	// unconditionally include in API requests. By default, fields with
3846	// empty values are omitted from API requests. However, any non-pointer,
3847	// non-interface field appearing in ForceSendFields will be sent to the
3848	// server regardless of whether the field is empty or not. This may be
3849	// used to include empty fields in Patch requests.
3850	ForceSendFields []string `json:"-"`
3851
3852	// NullFields is a list of field names (e.g. "Name") to include in API
3853	// requests with the JSON null value. By default, fields with empty
3854	// values are omitted from API requests. However, any field with an
3855	// empty value appearing in NullFields will be sent to the server as
3856	// null. It is an error if a field in this list has a non-empty value.
3857	// This may be used to include null fields in Patch requests.
3858	NullFields []string `json:"-"`
3859}
3860
3861func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
3862	type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
3863	raw := NoMethod(*s)
3864	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3865}
3866
3867// GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction
3868// between a human and virtual agent. The human provides some input and
3869// the virtual agent provides a response.
3870type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
3871	// UserInput: The user input.
3872	UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
3873
3874	// VirtualAgentOutput: The virtual agent output.
3875	VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
3876
3877	// ForceSendFields is a list of field names (e.g. "UserInput") to
3878	// unconditionally include in API requests. By default, fields with
3879	// empty values are omitted from API requests. However, any non-pointer,
3880	// non-interface field appearing in ForceSendFields will be sent to the
3881	// server regardless of whether the field is empty or not. This may be
3882	// used to include empty fields in Patch requests.
3883	ForceSendFields []string `json:"-"`
3884
3885	// NullFields is a list of field names (e.g. "UserInput") to include in
3886	// API requests with the JSON null value. By default, fields with empty
3887	// values are omitted from API requests. However, any field with an
3888	// empty value appearing in NullFields will be sent to the server as
3889	// null. It is an error if a field in this list has a non-empty value.
3890	// This may be used to include null fields in Patch requests.
3891	NullFields []string `json:"-"`
3892}
3893
3894func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
3895	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
3896	raw := NoMethod(*s)
3897	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3898}
3899
3900// GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput: The input
3901// from the human user.
3902type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
3903	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
3904	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
3905
3906	// InjectedParameters: Parameters that need to be injected into the
3907	// conversation during intent detection.
3908	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
3909
3910	// Input: Supports text input, event input, dtmf input in the test case.
3911	Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
3912
3913	// IsWebhookEnabled: If webhooks should be allowed to trigger in
3914	// response to the user utterance. Often if parameters are injected,
3915	// webhooks should not be enabled.
3916	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
3917
3918	// ForceSendFields is a list of field names (e.g.
3919	// "EnableSentimentAnalysis") to unconditionally include in API
3920	// requests. By default, fields with empty values are omitted from API
3921	// requests. However, any non-pointer, non-interface field appearing in
3922	// ForceSendFields will be sent to the server regardless of whether the
3923	// field is empty or not. This may be used to include empty fields in
3924	// Patch requests.
3925	ForceSendFields []string `json:"-"`
3926
3927	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis")
3928	// to include in API requests with the JSON null value. By default,
3929	// fields with empty values are omitted from API requests. However, any
3930	// field with an empty value appearing in NullFields will be sent to the
3931	// server as null. It is an error if a field in this list has a
3932	// non-empty value. This may be used to include null fields in Patch
3933	// requests.
3934	NullFields []string `json:"-"`
3935}
3936
3937func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
3938	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
3939	raw := NoMethod(*s)
3940	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3941}
3942
3943// GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput: The
3944// output from the virtual agent.
3945type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
3946	// CurrentPage: The Page on which the utterance was spoken. Only name
3947	// and displayName will be set.
3948	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
3949
3950	// DiagnosticInfo: Required. Input only. The diagnostic info output for
3951	// the turn.
3952	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
3953
3954	// Differences: Output only. If this is part of a result conversation
3955	// turn, the list of differences between the original run and the replay
3956	// for this output, if any.
3957	Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
3958
3959	// SessionParameters: The session parameters available to the bot at
3960	// this point.
3961	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
3962
3963	// Status: Response error from the agent in the test result. If set,
3964	// other output is empty.
3965	Status *GoogleRpcStatus `json:"status,omitempty"`
3966
3967	// TextResponses: The text responses from the agent for the turn.
3968	TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
3969
3970	// TriggeredIntent: The Intent that triggered the response. Only name
3971	// and displayName will be set.
3972	TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
3973
3974	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
3975	// unconditionally include in API requests. By default, fields with
3976	// empty values are omitted from API requests. However, any non-pointer,
3977	// non-interface field appearing in ForceSendFields will be sent to the
3978	// server regardless of whether the field is empty or not. This may be
3979	// used to include empty fields in Patch requests.
3980	ForceSendFields []string `json:"-"`
3981
3982	// NullFields is a list of field names (e.g. "CurrentPage") to include
3983	// in API requests with the JSON null value. By default, fields with
3984	// empty values are omitted from API requests. However, any field with
3985	// an empty value appearing in NullFields will be sent to the server as
3986	// null. It is an error if a field in this list has a non-empty value.
3987	// This may be used to include null fields in Patch requests.
3988	NullFields []string `json:"-"`
3989}
3990
3991func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
3992	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
3993	raw := NoMethod(*s)
3994	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3995}
3996
3997// GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata:
3998// Metadata for CreateDocument operation.
3999type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
4000	// GenericMetadata: The generic information of the operation.
4001	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4002
4003	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
4004	// unconditionally include in API requests. By default, fields with
4005	// empty values are omitted from API requests. However, any non-pointer,
4006	// non-interface field appearing in ForceSendFields will be sent to the
4007	// server regardless of whether the field is empty or not. This may be
4008	// used to include empty fields in Patch requests.
4009	ForceSendFields []string `json:"-"`
4010
4011	// NullFields is a list of field names (e.g. "GenericMetadata") to
4012	// include in API requests with the JSON null value. By default, fields
4013	// with empty values are omitted from API requests. However, any field
4014	// with an empty value appearing in NullFields will be sent to the
4015	// server as null. It is an error if a field in this list has a
4016	// non-empty value. This may be used to include null fields in Patch
4017	// requests.
4018	NullFields []string `json:"-"`
4019}
4020
4021func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
4022	type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
4023	raw := NoMethod(*s)
4024	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4025}
4026
4027// GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata:
4028// Metadata associated with the long running operation for
4029// Versions.CreateVersion.
4030type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
4031	// Version: Name of the created version. Format:
4032	// `projects//locations//agents//flows//versions/`.
4033	Version string `json:"version,omitempty"`
4034
4035	// ForceSendFields is a list of field names (e.g. "Version") to
4036	// unconditionally include in API requests. By default, fields with
4037	// empty values are omitted from API requests. However, any non-pointer,
4038	// non-interface field appearing in ForceSendFields will be sent to the
4039	// server regardless of whether the field is empty or not. This may be
4040	// used to include empty fields in Patch requests.
4041	ForceSendFields []string `json:"-"`
4042
4043	// NullFields is a list of field names (e.g. "Version") to include in
4044	// API requests with the JSON null value. By default, fields with empty
4045	// values are omitted from API requests. However, any field with an
4046	// empty value appearing in NullFields will be sent to the server as
4047	// null. It is an error if a field in this list has a non-empty value.
4048	// This may be used to include null fields in Patch requests.
4049	NullFields []string `json:"-"`
4050}
4051
4052func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
4053	type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
4054	raw := NoMethod(*s)
4055	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4056}
4057
4058// GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata:
4059// Metadata for DeleteDocument operation.
4060type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
4061	// GenericMetadata: The generic information of the operation.
4062	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4063
4064	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
4065	// unconditionally include in API requests. By default, fields with
4066	// empty values are omitted from API requests. However, any non-pointer,
4067	// non-interface field appearing in ForceSendFields will be sent to the
4068	// server regardless of whether the field is empty or not. This may be
4069	// used to include empty fields in Patch requests.
4070	ForceSendFields []string `json:"-"`
4071
4072	// NullFields is a list of field names (e.g. "GenericMetadata") to
4073	// include in API requests with the JSON null value. By default, fields
4074	// with empty values are omitted from API requests. However, any field
4075	// with an empty value appearing in NullFields will be sent to the
4076	// server as null. It is an error if a field in this list has a
4077	// non-empty value. This may be used to include null fields in Patch
4078	// requests.
4079	NullFields []string `json:"-"`
4080}
4081
4082func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
4083	type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
4084	raw := NoMethod(*s)
4085	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4086}
4087
4088// GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for
4089// dtmf event.
4090type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
4091	// Digits: The dtmf digits.
4092	Digits string `json:"digits,omitempty"`
4093
4094	// FinishDigit: The finish digit (if any).
4095	FinishDigit string `json:"finishDigit,omitempty"`
4096
4097	// ForceSendFields is a list of field names (e.g. "Digits") to
4098	// unconditionally include in API requests. By default, fields with
4099	// empty values are omitted from API requests. However, any non-pointer,
4100	// non-interface field appearing in ForceSendFields will be sent to the
4101	// server regardless of whether the field is empty or not. This may be
4102	// used to include empty fields in Patch requests.
4103	ForceSendFields []string `json:"-"`
4104
4105	// NullFields is a list of field names (e.g. "Digits") to include in API
4106	// requests with the JSON null value. By default, fields with empty
4107	// values are omitted from API requests. However, any field with an
4108	// empty value appearing in NullFields will be sent to the server as
4109	// null. It is an error if a field in this list has a non-empty value.
4110	// This may be used to include null fields in Patch requests.
4111	NullFields []string `json:"-"`
4112}
4113
4114func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
4115	type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
4116	raw := NoMethod(*s)
4117	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4118}
4119
4120// GoogleCloudDialogflowCxV3beta1EventHandler: An event handler
4121// specifies an event that can be handled during a session. When the
4122// specified event happens, the following actions are taken in order: *
4123// If there is a `trigger_fulfillment` associated with the event, it
4124// will be called. * If there is a `target_page` associated with the
4125// event, the session will transition into the specified page. * If
4126// there is a `target_flow` associated with the event, the session will
4127// transition into the specified flow.
4128type GoogleCloudDialogflowCxV3beta1EventHandler struct {
4129	// Event: Required. The name of the event to handle.
4130	Event string `json:"event,omitempty"`
4131
4132	// Name: Output only. The unique identifier of this event handler.
4133	Name string `json:"name,omitempty"`
4134
4135	// TargetFlow: The target flow to transition to. Format:
4136	// `projects//locations//agents//flows/`.
4137	TargetFlow string `json:"targetFlow,omitempty"`
4138
4139	// TargetPage: The target page to transition to. Format:
4140	// `projects//locations//agents//flows//pages/`.
4141	TargetPage string `json:"targetPage,omitempty"`
4142
4143	// TriggerFulfillment: The fulfillment to call when the event occurs.
4144	// Handling webhook errors with a fulfillment enabled with webhook could
4145	// cause infinite loop. It is invalid to specify such fulfillment for a
4146	// handler handling webhooks.
4147	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
4148
4149	// ForceSendFields is a list of field names (e.g. "Event") to
4150	// unconditionally include in API requests. By default, fields with
4151	// empty values are omitted from API requests. However, any non-pointer,
4152	// non-interface field appearing in ForceSendFields will be sent to the
4153	// server regardless of whether the field is empty or not. This may be
4154	// used to include empty fields in Patch requests.
4155	ForceSendFields []string `json:"-"`
4156
4157	// NullFields is a list of field names (e.g. "Event") to include in API
4158	// requests with the JSON null value. By default, fields with empty
4159	// values are omitted from API requests. However, any field with an
4160	// empty value appearing in NullFields will be sent to the server as
4161	// null. It is an error if a field in this list has a non-empty value.
4162	// This may be used to include null fields in Patch requests.
4163	NullFields []string `json:"-"`
4164}
4165
4166func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
4167	type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
4168	raw := NoMethod(*s)
4169	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4170}
4171
4172// GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to
4173// trigger.
4174type GoogleCloudDialogflowCxV3beta1EventInput struct {
4175	// Event: Name of the event.
4176	Event string `json:"event,omitempty"`
4177
4178	// ForceSendFields is a list of field names (e.g. "Event") to
4179	// unconditionally include in API requests. By default, fields with
4180	// empty values are omitted from API requests. However, any non-pointer,
4181	// non-interface field appearing in ForceSendFields will be sent to the
4182	// server regardless of whether the field is empty or not. This may be
4183	// used to include empty fields in Patch requests.
4184	ForceSendFields []string `json:"-"`
4185
4186	// NullFields is a list of field names (e.g. "Event") to include in API
4187	// requests with the JSON null value. By default, fields with empty
4188	// values are omitted from API requests. However, any field with an
4189	// empty value appearing in NullFields will be sent to the server as
4190	// null. It is an error if a field in this list has a non-empty value.
4191	// This may be used to include null fields in Patch requests.
4192	NullFields []string `json:"-"`
4193}
4194
4195func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
4196	type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
4197	raw := NoMethod(*s)
4198	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4199}
4200
4201// GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response
4202// message for Agents.ExportAgent.
4203type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
4204	// AgentContent: Uncompressed raw byte content for agent.
4205	AgentContent string `json:"agentContent,omitempty"`
4206
4207	// AgentUri: The URI to a file containing the exported agent. This field
4208	// is populated only if `agent_uri` is specified in ExportAgentRequest.
4209	AgentUri string `json:"agentUri,omitempty"`
4210
4211	// ForceSendFields is a list of field names (e.g. "AgentContent") to
4212	// unconditionally include in API requests. By default, fields with
4213	// empty values are omitted from API requests. However, any non-pointer,
4214	// non-interface field appearing in ForceSendFields will be sent to the
4215	// server regardless of whether the field is empty or not. This may be
4216	// used to include empty fields in Patch requests.
4217	ForceSendFields []string `json:"-"`
4218
4219	// NullFields is a list of field names (e.g. "AgentContent") to include
4220	// in API requests with the JSON null value. By default, fields with
4221	// empty values are omitted from API requests. However, any field with
4222	// an empty value appearing in NullFields will be sent to the server as
4223	// null. It is an error if a field in this list has a non-empty value.
4224	// This may be used to include null fields in Patch requests.
4225	NullFields []string `json:"-"`
4226}
4227
4228func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
4229	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
4230	raw := NoMethod(*s)
4231	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4232}
4233
4234// GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response
4235// message for Flows.ExportFlow.
4236type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
4237	// FlowContent: Uncompressed raw byte content for flow.
4238	FlowContent string `json:"flowContent,omitempty"`
4239
4240	// FlowUri: The URI to a file containing the exported flow. This field
4241	// is populated only if `flow_uri` is specified in ExportFlowRequest.
4242	FlowUri string `json:"flowUri,omitempty"`
4243
4244	// ForceSendFields is a list of field names (e.g. "FlowContent") to
4245	// unconditionally include in API requests. By default, fields with
4246	// empty values are omitted from API requests. However, any non-pointer,
4247	// non-interface field appearing in ForceSendFields will be sent to the
4248	// server regardless of whether the field is empty or not. This may be
4249	// used to include empty fields in Patch requests.
4250	ForceSendFields []string `json:"-"`
4251
4252	// NullFields is a list of field names (e.g. "FlowContent") to include
4253	// in API requests with the JSON null value. By default, fields with
4254	// empty values are omitted from API requests. However, any field with
4255	// an empty value appearing in NullFields will be sent to the server as
4256	// null. It is an error if a field in this list has a non-empty value.
4257	// This may be used to include null fields in Patch requests.
4258	NullFields []string `json:"-"`
4259}
4260
4261func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
4262	type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
4263	raw := NoMethod(*s)
4264	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4265}
4266
4267// GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata
4268// returned for the TestCases.ExportTestCases long running operation.
4269type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
4270}
4271
4272// GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse: The response
4273// message for TestCases.ExportTestCases.
4274type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
4275	// Content: Uncompressed raw byte content for test cases.
4276	Content string `json:"content,omitempty"`
4277
4278	// GcsUri: The URI to a file containing the exported test cases. This
4279	// field is populated only if `gcs_uri` is specified in
4280	// ExportTestCasesRequest.
4281	GcsUri string `json:"gcsUri,omitempty"`
4282
4283	// ForceSendFields is a list of field names (e.g. "Content") to
4284	// unconditionally include in API requests. By default, fields with
4285	// empty values are omitted from API requests. However, any non-pointer,
4286	// non-interface field appearing in ForceSendFields will be sent to the
4287	// server regardless of whether the field is empty or not. This may be
4288	// used to include empty fields in Patch requests.
4289	ForceSendFields []string `json:"-"`
4290
4291	// NullFields is a list of field names (e.g. "Content") to include in
4292	// API requests with the JSON null value. By default, fields with empty
4293	// values are omitted from API requests. However, any field with an
4294	// empty value appearing in NullFields will be sent to the server as
4295	// null. It is an error if a field in this list has a non-empty value.
4296	// This may be used to include null fields in Patch requests.
4297	NullFields []string `json:"-"`
4298}
4299
4300func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
4301	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
4302	raw := NoMethod(*s)
4303	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4304}
4305
4306// GoogleCloudDialogflowCxV3beta1Form: A form is a data model that
4307// groups related parameters that can be collected from the user. The
4308// process in which the agent prompts the user and collects parameter
4309// values from the user is called form filling. A form can be added to a
4310// page. When form filling is done, the filled parameters will be
4311// written to the session.
4312type GoogleCloudDialogflowCxV3beta1Form struct {
4313	// Parameters: Parameters to collect from the user.
4314	Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
4315
4316	// ForceSendFields is a list of field names (e.g. "Parameters") to
4317	// unconditionally include in API requests. By default, fields with
4318	// empty values are omitted from API requests. However, any non-pointer,
4319	// non-interface field appearing in ForceSendFields will be sent to the
4320	// server regardless of whether the field is empty or not. This may be
4321	// used to include empty fields in Patch requests.
4322	ForceSendFields []string `json:"-"`
4323
4324	// NullFields is a list of field names (e.g. "Parameters") to include in
4325	// API requests with the JSON null value. By default, fields with empty
4326	// values are omitted from API requests. However, any field with an
4327	// empty value appearing in NullFields will be sent to the server as
4328	// null. It is an error if a field in this list has a non-empty value.
4329	// This may be used to include null fields in Patch requests.
4330	NullFields []string `json:"-"`
4331}
4332
4333func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
4334	type NoMethod GoogleCloudDialogflowCxV3beta1Form
4335	raw := NoMethod(*s)
4336	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4337}
4338
4339// GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form
4340// parameter.
4341type GoogleCloudDialogflowCxV3beta1FormParameter struct {
4342	// DefaultValue: The default value of an optional parameter. If the
4343	// parameter is required, the default value will be ignored.
4344	DefaultValue interface{} `json:"defaultValue,omitempty"`
4345
4346	// DisplayName: Required. The human-readable name of the parameter,
4347	// unique within the form.
4348	DisplayName string `json:"displayName,omitempty"`
4349
4350	// EntityType: Required. The entity type of the parameter. Format:
4351	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
4352	// types (for example,
4353	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
4354	// `projects//locations//agents//entityTypes/` for developer entity
4355	// types.
4356	EntityType string `json:"entityType,omitempty"`
4357
4358	// FillBehavior: Required. Defines fill behavior for the parameter.
4359	FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
4360
4361	// IsList: Indicates whether the parameter represents a list of values.
4362	IsList bool `json:"isList,omitempty"`
4363
4364	// Redact: Indicates whether the parameter content should be redacted in
4365	// log. If redaction is enabled, the parameter content will be replaced
4366	// by parameter name during logging. Note: the parameter content is
4367	// subject to redaction if either parameter level redaction or entity
4368	// type level redaction is enabled.
4369	Redact bool `json:"redact,omitempty"`
4370
4371	// Required: Indicates whether the parameter is required. Optional
4372	// parameters will not trigger prompts; however, they are filled if the
4373	// user specifies them. Required parameters must be filled before form
4374	// filling concludes.
4375	Required bool `json:"required,omitempty"`
4376
4377	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
4378	// unconditionally include in API requests. By default, fields with
4379	// empty values are omitted from API requests. However, any non-pointer,
4380	// non-interface field appearing in ForceSendFields will be sent to the
4381	// server regardless of whether the field is empty or not. This may be
4382	// used to include empty fields in Patch requests.
4383	ForceSendFields []string `json:"-"`
4384
4385	// NullFields is a list of field names (e.g. "DefaultValue") to include
4386	// in API requests with the JSON null value. By default, fields with
4387	// empty values are omitted from API requests. However, any field with
4388	// an empty value appearing in NullFields will be sent to the server as
4389	// null. It is an error if a field in this list has a non-empty value.
4390	// This may be used to include null fields in Patch requests.
4391	NullFields []string `json:"-"`
4392}
4393
4394func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
4395	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
4396	raw := NoMethod(*s)
4397	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4398}
4399
4400// GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior:
4401// Configuration for how the filling of a parameter should be handled.
4402type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
4403	// InitialPromptFulfillment: Required. The fulfillment to provide the
4404	// initial prompt that the agent can present to the user in order to
4405	// fill the parameter.
4406	InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
4407
4408	// RepromptEventHandlers: The handlers for parameter-level events, used
4409	// to provide reprompt for the parameter or transition to a different
4410	// page/flow. The supported events are: * `sys.no-match-`, where N can
4411	// be from 1 to 6 * `sys.no-match-default` * `sys.no-input-`, where N
4412	// can be from 1 to 6 * `sys.no-input-default` * `sys.invalid-parameter`
4413	// `initial_prompt_fulfillment` provides the first prompt for the
4414	// parameter. If the user's response does not fill the parameter, a
4415	// no-match/no-input event will be triggered, and the fulfillment
4416	// associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
4417	// defined) will be called to provide a prompt. The
4418	// `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond
4419	// to the next no-match/no-input event, and so on. A
4420	// `sys.no-match-default` or `sys.no-input-default` handler will be used
4421	// to handle all following no-match/no-input events after all numbered
4422	// no-match/no-input handlers for the parameter are consumed. A
4423	// `sys.invalid-parameter` handler can be defined to handle the case
4424	// where the parameter values have been `invalidated` by webhook. For
4425	// example, if the user's response fill the parameter, however the
4426	// parameter was invalidated by webhook, the fulfillment associated with
4427	// the `sys.invalid-parameter` handler (if defined) will be called to
4428	// provide a prompt. If the event handler for the corresponding event
4429	// can't be found on the parameter, `initial_prompt_fulfillment` will be
4430	// re-prompted.
4431	RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
4432
4433	// ForceSendFields is a list of field names (e.g.
4434	// "InitialPromptFulfillment") to unconditionally include in API
4435	// requests. By default, fields with empty values are omitted from API
4436	// requests. However, any non-pointer, non-interface field appearing in
4437	// ForceSendFields will be sent to the server regardless of whether the
4438	// field is empty or not. This may be used to include empty fields in
4439	// Patch requests.
4440	ForceSendFields []string `json:"-"`
4441
4442	// NullFields is a list of field names (e.g. "InitialPromptFulfillment")
4443	// to include in API requests with the JSON null value. By default,
4444	// fields with empty values are omitted from API requests. However, any
4445	// field with an empty value appearing in NullFields will be sent to the
4446	// server as null. It is an error if a field in this list has a
4447	// non-empty value. This may be used to include null fields in Patch
4448	// requests.
4449	NullFields []string `json:"-"`
4450}
4451
4452func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
4453	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
4454	raw := NoMethod(*s)
4455	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4456}
4457
4458// GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one
4459// or more of the following actions at the same time: * Generate rich
4460// message responses. * Set parameter values. * Call the webhook.
4461// Fulfillments can be called at various stages in the Page or Form
4462// lifecycle. For example, when a DetectIntentRequest drives a session
4463// to enter a new page, the page's entry fulfillment can add a static
4464// response to the QueryResult in the returning DetectIntentResponse,
4465// call the webhook (for example, to load user data from a database), or
4466// both.
4467type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
4468	// ConditionalCases: Conditional cases for this fulfillment.
4469	ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
4470
4471	// Messages: The list of rich message responses to present to the user.
4472	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
4473
4474	// ReturnPartialResponses: Whether Dialogflow should return currently
4475	// queued fulfillment response messages in streaming APIs. If a webhook
4476	// is specified, it happens before Dialogflow invokes webhook. Warning:
4477	// 1) This flag only affects streaming API. Responses are still queued
4478	// and returned once in non-streaming API. 2) The flag can be enabled in
4479	// any fulfillment but only the first 3 partial responses will be
4480	// returned. You may only want to apply it to fulfillments that have
4481	// slow webhooks.
4482	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
4483
4484	// SetParameterActions: Set parameter values before executing the
4485	// webhook.
4486	SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
4487
4488	// Tag: The tag used by the webhook to identify which fulfillment is
4489	// being called. This field is required if `webhook` is specified.
4490	Tag string `json:"tag,omitempty"`
4491
4492	// Webhook: The webhook to call. Format:
4493	// `projects//locations//agents//webhooks/`.
4494	Webhook string `json:"webhook,omitempty"`
4495
4496	// ForceSendFields is a list of field names (e.g. "ConditionalCases") to
4497	// unconditionally include in API requests. By default, fields with
4498	// empty values are omitted from API requests. However, any non-pointer,
4499	// non-interface field appearing in ForceSendFields will be sent to the
4500	// server regardless of whether the field is empty or not. This may be
4501	// used to include empty fields in Patch requests.
4502	ForceSendFields []string `json:"-"`
4503
4504	// NullFields is a list of field names (e.g. "ConditionalCases") to
4505	// include in API requests with the JSON null value. By default, fields
4506	// with empty values are omitted from API requests. However, any field
4507	// with an empty value appearing in NullFields will be sent to the
4508	// server as null. It is an error if a field in this list has a
4509	// non-empty value. This may be used to include null fields in Patch
4510	// requests.
4511	NullFields []string `json:"-"`
4512}
4513
4514func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
4515	type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
4516	raw := NoMethod(*s)
4517	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4518}
4519
4520// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list of
4521// cascading if-else conditions. Cases are mutually exclusive. The first
4522// one with a matching condition is selected, all the rest ignored.
4523type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
4524	// Cases: A list of cascading if-else conditions.
4525	Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
4526
4527	// ForceSendFields is a list of field names (e.g. "Cases") to
4528	// unconditionally include in API requests. By default, fields with
4529	// empty values are omitted from API requests. However, any non-pointer,
4530	// non-interface field appearing in ForceSendFields will be sent to the
4531	// server regardless of whether the field is empty or not. This may be
4532	// used to include empty fields in Patch requests.
4533	ForceSendFields []string `json:"-"`
4534
4535	// NullFields is a list of field names (e.g. "Cases") to include in API
4536	// requests with the JSON null value. By default, fields with empty
4537	// values are omitted from API requests. However, any field with an
4538	// empty value appearing in NullFields will be sent to the server as
4539	// null. It is an error if a field in this list has a non-empty value.
4540	// This may be used to include null fields in Patch requests.
4541	NullFields []string `json:"-"`
4542}
4543
4544func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
4545	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
4546	raw := NoMethod(*s)
4547	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4548}
4549
4550// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each
4551// case has a Boolean condition. When it is evaluated to be True, the
4552// corresponding messages will be selected and evaluated recursively.
4553type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
4554	// CaseContent: A list of case content.
4555	CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
4556
4557	// Condition: The condition to activate and select this case. Empty
4558	// means the condition is always true. The condition is evaluated
4559	// against form parameters or session parameters. See the conditions
4560	// reference
4561	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
4562	Condition string `json:"condition,omitempty"`
4563
4564	// ForceSendFields is a list of field names (e.g. "CaseContent") to
4565	// unconditionally include in API requests. By default, fields with
4566	// empty values are omitted from API requests. However, any non-pointer,
4567	// non-interface field appearing in ForceSendFields will be sent to the
4568	// server regardless of whether the field is empty or not. This may be
4569	// used to include empty fields in Patch requests.
4570	ForceSendFields []string `json:"-"`
4571
4572	// NullFields is a list of field names (e.g. "CaseContent") to include
4573	// in API requests with the JSON null value. By default, fields with
4574	// empty values are omitted from API requests. However, any field with
4575	// an empty value appearing in NullFields will be sent to the server as
4576	// null. It is an error if a field in this list has a non-empty value.
4577	// This may be used to include null fields in Patch requests.
4578	NullFields []string `json:"-"`
4579}
4580
4581func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
4582	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
4583	raw := NoMethod(*s)
4584	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4585}
4586
4587// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseConte
4588// nt: The list of messages or conditional cases to activate for this
4589// case.
4590type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
4591	// AdditionalCases: Additional cases to be evaluated.
4592	AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
4593
4594	// Message: Returned message.
4595	Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
4596
4597	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
4598	// unconditionally include in API requests. By default, fields with
4599	// empty values are omitted from API requests. However, any non-pointer,
4600	// non-interface field appearing in ForceSendFields will be sent to the
4601	// server regardless of whether the field is empty or not. This may be
4602	// used to include empty fields in Patch requests.
4603	ForceSendFields []string `json:"-"`
4604
4605	// NullFields is a list of field names (e.g. "AdditionalCases") to
4606	// include in API requests with the JSON null value. By default, fields
4607	// with empty values are omitted from API requests. However, any field
4608	// with an empty value appearing in NullFields will be sent to the
4609	// server as null. It is an error if a field in this list has a
4610	// non-empty value. This may be used to include null fields in Patch
4611	// requests.
4612	NullFields []string `json:"-"`
4613}
4614
4615func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
4616	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
4617	raw := NoMethod(*s)
4618	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4619}
4620
4621// GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting
4622// a parameter value.
4623type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
4624	// Parameter: Display name of the parameter.
4625	Parameter string `json:"parameter,omitempty"`
4626
4627	// Value: The new value of the parameter. A null value clears the
4628	// parameter.
4629	Value interface{} `json:"value,omitempty"`
4630
4631	// ForceSendFields is a list of field names (e.g. "Parameter") to
4632	// unconditionally include in API requests. By default, fields with
4633	// empty values are omitted from API requests. However, any non-pointer,
4634	// non-interface field appearing in ForceSendFields will be sent to the
4635	// server regardless of whether the field is empty or not. This may be
4636	// used to include empty fields in Patch requests.
4637	ForceSendFields []string `json:"-"`
4638
4639	// NullFields is a list of field names (e.g. "Parameter") to include in
4640	// API requests with the JSON null value. By default, fields with empty
4641	// values are omitted from API requests. However, any field with an
4642	// empty value appearing in NullFields will be sent to the server as
4643	// null. It is an error if a field in this list has a non-empty value.
4644	// This may be used to include null fields in Patch requests.
4645	NullFields []string `json:"-"`
4646}
4647
4648func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
4649	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
4650	raw := NoMethod(*s)
4651	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4652}
4653
4654// GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata:
4655// Metadata in google::longrunning::Operation for Knowledge operations.
4656type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
4657	// State: Required. Output only. The current state of this operation.
4658	//
4659	// Possible values:
4660	//   "STATE_UNSPECIFIED" - State unspecified.
4661	//   "PENDING" - The operation has been created.
4662	//   "RUNNING" - The operation is currently running.
4663	//   "DONE" - The operation is done, either cancelled or completed.
4664	State string `json:"state,omitempty"`
4665
4666	// ForceSendFields is a list of field names (e.g. "State") to
4667	// unconditionally include in API requests. By default, fields with
4668	// empty values are omitted from API requests. However, any non-pointer,
4669	// non-interface field appearing in ForceSendFields will be sent to the
4670	// server regardless of whether the field is empty or not. This may be
4671	// used to include empty fields in Patch requests.
4672	ForceSendFields []string `json:"-"`
4673
4674	// NullFields is a list of field names (e.g. "State") to include in API
4675	// requests with the JSON null value. By default, fields with empty
4676	// values are omitted from API requests. However, any field with an
4677	// empty value appearing in NullFields will be sent to the server as
4678	// null. It is an error if a field in this list has a non-empty value.
4679	// This may be used to include null fields in Patch requests.
4680	NullFields []string `json:"-"`
4681}
4682
4683func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
4684	type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
4685	raw := NoMethod(*s)
4686	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4687}
4688
4689// GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata:
4690// Metadata for ImportDocuments operation.
4691type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
4692	// GenericMetadata: The generic information of the operation.
4693	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4694
4695	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
4696	// unconditionally include in API requests. By default, fields with
4697	// empty values are omitted from API requests. However, any non-pointer,
4698	// non-interface field appearing in ForceSendFields will be sent to the
4699	// server regardless of whether the field is empty or not. This may be
4700	// used to include empty fields in Patch requests.
4701	ForceSendFields []string `json:"-"`
4702
4703	// NullFields is a list of field names (e.g. "GenericMetadata") to
4704	// include in API requests with the JSON null value. By default, fields
4705	// with empty values are omitted from API requests. However, any field
4706	// with an empty value appearing in NullFields will be sent to the
4707	// server as null. It is an error if a field in this list has a
4708	// non-empty value. This may be used to include null fields in Patch
4709	// requests.
4710	NullFields []string `json:"-"`
4711}
4712
4713func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
4714	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
4715	raw := NoMethod(*s)
4716	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4717}
4718
4719// GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse: Response
4720// message for Documents.ImportDocuments.
4721type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
4722	// Warnings: Includes details about skipped documents or any other
4723	// warnings.
4724	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
4725
4726	// ForceSendFields is a list of field names (e.g. "Warnings") to
4727	// unconditionally include in API requests. By default, fields with
4728	// empty values are omitted from API requests. However, any non-pointer,
4729	// non-interface field appearing in ForceSendFields will be sent to the
4730	// server regardless of whether the field is empty or not. This may be
4731	// used to include empty fields in Patch requests.
4732	ForceSendFields []string `json:"-"`
4733
4734	// NullFields is a list of field names (e.g. "Warnings") to include in
4735	// API requests with the JSON null value. By default, fields with empty
4736	// values are omitted from API requests. However, any field with an
4737	// empty value appearing in NullFields will be sent to the server as
4738	// null. It is an error if a field in this list has a non-empty value.
4739	// This may be used to include null fields in Patch requests.
4740	NullFields []string `json:"-"`
4741}
4742
4743func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
4744	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
4745	raw := NoMethod(*s)
4746	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4747}
4748
4749// GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response
4750// message for Flows.ImportFlow.
4751type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
4752	// Flow: The unique identifier of the new flow. Format:
4753	// `projects//locations//agents//flows/`.
4754	Flow string `json:"flow,omitempty"`
4755
4756	// ForceSendFields is a list of field names (e.g. "Flow") to
4757	// unconditionally include in API requests. By default, fields with
4758	// empty values are omitted from API requests. However, any non-pointer,
4759	// non-interface field appearing in ForceSendFields will be sent to the
4760	// server regardless of whether the field is empty or not. This may be
4761	// used to include empty fields in Patch requests.
4762	ForceSendFields []string `json:"-"`
4763
4764	// NullFields is a list of field names (e.g. "Flow") to include in API
4765	// requests with the JSON null value. By default, fields with empty
4766	// values are omitted from API requests. However, any field with an
4767	// empty value appearing in NullFields will be sent to the server as
4768	// null. It is an error if a field in this list has a non-empty value.
4769	// This may be used to include null fields in Patch requests.
4770	NullFields []string `json:"-"`
4771}
4772
4773func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
4774	type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
4775	raw := NoMethod(*s)
4776	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4777}
4778
4779// GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata
4780// returned for the TestCases.ImportTestCases long running operation.
4781type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
4782	// Errors: Errors for failed test cases.
4783	Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
4784
4785	// ForceSendFields is a list of field names (e.g. "Errors") to
4786	// unconditionally include in API requests. By default, fields with
4787	// empty values are omitted from API requests. However, any non-pointer,
4788	// non-interface field appearing in ForceSendFields will be sent to the
4789	// server regardless of whether the field is empty or not. This may be
4790	// used to include empty fields in Patch requests.
4791	ForceSendFields []string `json:"-"`
4792
4793	// NullFields is a list of field names (e.g. "Errors") to include in API
4794	// requests with the JSON null value. By default, fields with empty
4795	// values are omitted from API requests. However, any field with an
4796	// empty value appearing in NullFields will be sent to the server as
4797	// null. It is an error if a field in this list has a non-empty value.
4798	// This may be used to include null fields in Patch requests.
4799	NullFields []string `json:"-"`
4800}
4801
4802func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
4803	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
4804	raw := NoMethod(*s)
4805	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4806}
4807
4808// GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse: The response
4809// message for TestCases.ImportTestCases.
4810type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
4811	// Names: The unique identifiers of the new test cases. Format:
4812	// `projects//locations//agents//testCases/`.
4813	Names []string `json:"names,omitempty"`
4814
4815	// ForceSendFields is a list of field names (e.g. "Names") to
4816	// unconditionally include in API requests. By default, fields with
4817	// empty values are omitted from API requests. However, any non-pointer,
4818	// non-interface field appearing in ForceSendFields will be sent to the
4819	// server regardless of whether the field is empty or not. This may be
4820	// used to include empty fields in Patch requests.
4821	ForceSendFields []string `json:"-"`
4822
4823	// NullFields is a list of field names (e.g. "Names") to include in API
4824	// requests with the JSON null value. By default, fields with empty
4825	// values are omitted from API requests. However, any field with an
4826	// empty value appearing in NullFields will be sent to the server as
4827	// null. It is an error if a field in this list has a non-empty value.
4828	// This may be used to include null fields in Patch requests.
4829	NullFields []string `json:"-"`
4830}
4831
4832func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
4833	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
4834	raw := NoMethod(*s)
4835	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4836}
4837
4838// GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speech
4839// recognizer on how to process the audio content.
4840type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
4841	// AudioEncoding: Required. Audio encoding of the audio content to
4842	// process.
4843	//
4844	// Possible values:
4845	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
4846	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
4847	// little-endian samples (Linear PCM).
4848	//   "AUDIO_ENCODING_FLAC" -
4849	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
4850	// Audio Codec) is the recommended encoding because it is lossless
4851	// (therefore recognition is not compromised) and requires only about
4852	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
4853	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
4854	// are supported.
4855	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
4856	// samples using G.711 PCMU/mu-law.
4857	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
4858	// `sample_rate_hertz` must be 8000.
4859	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
4860	// `sample_rate_hertz` must be 16000.
4861	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
4862	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
4863	// `sample_rate_hertz` must be 16000.
4864	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
4865	// encodings is not recommended, if a very low bitrate encoding is
4866	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
4867	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
4868	// a header byte in each block, as in MIME type
4869	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
4870	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
4871	// The stream is a sequence of blocks, one block per RTP packet. Each
4872	// block starts with a byte containing the length of the block, in
4873	// bytes, followed by one or more frames of Speex data, padded to an
4874	// integral number of bytes (octets) as specified in RFC 5574. In other
4875	// words, each RTP header is replaced with a single byte containing the
4876	// block length. Only Speex wideband is supported. `sample_rate_hertz`
4877	// must be 16000.
4878	AudioEncoding string `json:"audioEncoding,omitempty"`
4879
4880	// EnableWordInfo: Optional. If `true`, Dialogflow returns
4881	// SpeechWordInfo in StreamingRecognitionResult with information about
4882	// the recognized speech words, e.g. start and end time offsets. If
4883	// false or unspecified, Speech doesn't return any word-level
4884	// information.
4885	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
4886
4887	// Model: Optional. Which Speech model to select for the given request.
4888	// Select the model best suited to your domain to get best results. If a
4889	// model is not explicitly specified, then we auto-select a model based
4890	// on the parameters in the InputAudioConfig. If enhanced speech model
4891	// is enabled for the agent and an enhanced version of the specified
4892	// model for the language does not exist, then the speech is recognized
4893	// using the standard version of the specified model. Refer to Cloud
4894	// Speech API documentation
4895	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
4896	// for more details.
4897	Model string `json:"model,omitempty"`
4898
4899	// ModelVariant: Optional. Which variant of the Speech model to use.
4900	//
4901	// Possible values:
4902	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
4903	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
4904	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
4905	// model that the caller is eligible for. Please see the [Dialogflow
4906	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
4907	// to make your project eligible for enhanced models.
4908	//   "USE_STANDARD" - Use standard model variant even if an enhanced
4909	// model is available. See the [Cloud Speech
4910	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
4911	// odels) for details about enhanced models.
4912	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
4913	// variant does not exist for the given model and request language,
4914	// Dialogflow falls back to the standard variant. The [Cloud Speech
4915	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
4916	// odels) describes which models have enhanced variants. * If the API
4917	// caller isn't eligible for enhanced models, Dialogflow returns an
4918	// error. Please see the [Dialogflow
4919	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
4920	// to make your project eligible.
4921	ModelVariant string `json:"modelVariant,omitempty"`
4922
4923	// PhraseHints: Optional. A list of strings containing words and phrases
4924	// that the speech recognizer should recognize with higher likelihood.
4925	// See the Cloud Speech documentation
4926	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
4927	// for more details.
4928	PhraseHints []string `json:"phraseHints,omitempty"`
4929
4930	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in
4931	// the query. Refer to Cloud Speech API documentation
4932	// (https://cloud.google.com/speech-to-text/docs/basics) for more
4933	// details.
4934	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
4935
4936	// SingleUtterance: Optional. If `false` (default), recognition does not
4937	// cease until the client closes the stream. If `true`, the recognizer
4938	// will detect a single spoken utterance in input audio. Recognition
4939	// ceases when it detects the audio's voice has stopped or paused. In
4940	// this case, once a detected intent is received, the client should
4941	// close the stream and start a new request with a new stream as needed.
4942	// Note: This setting is relevant only for streaming methods.
4943	SingleUtterance bool `json:"singleUtterance,omitempty"`
4944
4945	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
4946	// unconditionally include in API requests. By default, fields with
4947	// empty values are omitted from API requests. However, any non-pointer,
4948	// non-interface field appearing in ForceSendFields will be sent to the
4949	// server regardless of whether the field is empty or not. This may be
4950	// used to include empty fields in Patch requests.
4951	ForceSendFields []string `json:"-"`
4952
4953	// NullFields is a list of field names (e.g. "AudioEncoding") to include
4954	// in API requests with the JSON null value. By default, fields with
4955	// empty values are omitted from API requests. However, any field with
4956	// an empty value appearing in NullFields will be sent to the server as
4957	// null. It is an error if a field in this list has a non-empty value.
4958	// This may be used to include null fields in Patch requests.
4959	NullFields []string `json:"-"`
4960}
4961
4962func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
4963	type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
4964	raw := NoMethod(*s)
4965	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4966}
4967
4968// GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's
4969// intent to interact with a conversational agent. You can provide
4970// information for the Dialogflow API to use to match user input to an
4971// intent by adding training phrases (i.e., examples of user input) to
4972// your intent.
4973type GoogleCloudDialogflowCxV3beta1Intent struct {
4974	// Description: Human readable description for better understanding an
4975	// intent like its scope, content, result etc. Maximum character limit:
4976	// 140 characters.
4977	Description string `json:"description,omitempty"`
4978
4979	// DisplayName: Required. The human-readable name of the intent, unique
4980	// within the agent.
4981	DisplayName string `json:"displayName,omitempty"`
4982
4983	// IsFallback: Indicates whether this is a fallback intent. Currently
4984	// only default fallback intent is allowed in the agent, which is added
4985	// upon agent creation. Adding training phrases to fallback intent is
4986	// useful in the case of requests that are mistakenly matched, since
4987	// training phrases assigned to fallback intents act as negative
4988	// examples that triggers no-match event.
4989	IsFallback bool `json:"isFallback,omitempty"`
4990
4991	// Labels: The key/value metadata to label an intent. Labels can contain
4992	// lowercase letters, digits and the symbols '-' and '_'. International
4993	// characters are allowed, including letters from unicase alphabets.
4994	// Keys must start with a letter. Keys and values can be no longer than
4995	// 63 characters and no more than 128 bytes. Prefix "sys-" is reserved
4996	// for Dialogflow defined labels. Currently allowed Dialogflow defined
4997	// labels include: * sys-head * sys-contextual The above labels do not
4998	// require value. "sys-head" means the intent is a head intent.
4999	// "sys-contextual" means the intent is a contextual intent.
5000	Labels map[string]string `json:"labels,omitempty"`
5001
5002	// Name: The unique identifier of the intent. Required for the
5003	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
5004	// automatically. Format: `projects//locations//agents//intents/`.
5005	Name string `json:"name,omitempty"`
5006
5007	// Parameters: The collection of parameters associated with the intent.
5008	Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
5009
5010	// Priority: The priority of this intent. Higher numbers represent
5011	// higher priorities. - If the supplied value is unspecified or 0, the
5012	// service translates the value to 500,000, which corresponds to the
5013	// `Normal` priority in the console. - If the supplied value is
5014	// negative, the intent is ignored in runtime detect intent requests.
5015	Priority int64 `json:"priority,omitempty"`
5016
5017	// TrainingPhrases: The collection of training phrases the agent is
5018	// trained on to identify the intent.
5019	TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
5020
5021	// ForceSendFields is a list of field names (e.g. "Description") to
5022	// unconditionally include in API requests. By default, fields with
5023	// empty values are omitted from API requests. However, any non-pointer,
5024	// non-interface field appearing in ForceSendFields will be sent to the
5025	// server regardless of whether the field is empty or not. This may be
5026	// used to include empty fields in Patch requests.
5027	ForceSendFields []string `json:"-"`
5028
5029	// NullFields is a list of field names (e.g. "Description") to include
5030	// in API requests with the JSON null value. By default, fields with
5031	// empty values are omitted from API requests. However, any field with
5032	// an empty value appearing in NullFields will be sent to the server as
5033	// null. It is an error if a field in this list has a non-empty value.
5034	// This may be used to include null fields in Patch requests.
5035	NullFields []string `json:"-"`
5036}
5037
5038func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
5039	type NoMethod GoogleCloudDialogflowCxV3beta1Intent
5040	raw := NoMethod(*s)
5041	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5042}
5043
5044// GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to
5045// trigger programmatically rather than as a result of natural language
5046// processing.
5047type GoogleCloudDialogflowCxV3beta1IntentInput struct {
5048	// Intent: Required. The unique identifier of the intent. Format:
5049	// `projects//locations//agents//intents/`.
5050	Intent string `json:"intent,omitempty"`
5051
5052	// ForceSendFields is a list of field names (e.g. "Intent") to
5053	// unconditionally include in API requests. By default, fields with
5054	// empty values are omitted from API requests. However, any non-pointer,
5055	// non-interface field appearing in ForceSendFields will be sent to the
5056	// server regardless of whether the field is empty or not. This may be
5057	// used to include empty fields in Patch requests.
5058	ForceSendFields []string `json:"-"`
5059
5060	// NullFields is a list of field names (e.g. "Intent") to include in API
5061	// requests with the JSON null value. By default, fields with empty
5062	// values are omitted from API requests. However, any field with an
5063	// empty value appearing in NullFields will be sent to the server as
5064	// null. It is an error if a field in this list has a non-empty value.
5065	// This may be used to include null fields in Patch requests.
5066	NullFields []string `json:"-"`
5067}
5068
5069func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
5070	type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
5071	raw := NoMethod(*s)
5072	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5073}
5074
5075// GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intent
5076// parameter.
5077type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
5078	// EntityType: Required. The entity type of the parameter. Format:
5079	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
5080	// types (for example,
5081	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
5082	// `projects//locations//agents//entityTypes/` for developer entity
5083	// types.
5084	EntityType string `json:"entityType,omitempty"`
5085
5086	// Id: Required. The unique identifier of the parameter. This field is
5087	// used by training phrases to annotate their parts.
5088	Id string `json:"id,omitempty"`
5089
5090	// IsList: Indicates whether the parameter represents a list of values.
5091	IsList bool `json:"isList,omitempty"`
5092
5093	// Redact: Indicates whether the parameter content should be redacted in
5094	// log. If redaction is enabled, the parameter content will be replaced
5095	// by parameter name during logging. Note: the parameter content is
5096	// subject to redaction if either parameter level redaction or entity
5097	// type level redaction is enabled.
5098	Redact bool `json:"redact,omitempty"`
5099
5100	// ForceSendFields is a list of field names (e.g. "EntityType") to
5101	// unconditionally include in API requests. By default, fields with
5102	// empty values are omitted from API requests. However, any non-pointer,
5103	// non-interface field appearing in ForceSendFields will be sent to the
5104	// server regardless of whether the field is empty or not. This may be
5105	// used to include empty fields in Patch requests.
5106	ForceSendFields []string `json:"-"`
5107
5108	// NullFields is a list of field names (e.g. "EntityType") to include in
5109	// API requests with the JSON null value. By default, fields with empty
5110	// values are omitted from API requests. However, any field with an
5111	// empty value appearing in NullFields will be sent to the server as
5112	// null. It is an error if a field in this list has a non-empty value.
5113	// This may be used to include null fields in Patch requests.
5114	NullFields []string `json:"-"`
5115}
5116
5117func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
5118	type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
5119	raw := NoMethod(*s)
5120	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5121}
5122
5123// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an
5124// example that the agent is trained on to identify the intent.
5125type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
5126	// Id: Output only. The unique identifier of the training phrase.
5127	Id string `json:"id,omitempty"`
5128
5129	// Parts: Required. The ordered list of training phrase parts. The parts
5130	// are concatenated in order to form the training phrase. Note: The API
5131	// does not automatically annotate training phrases like the Dialogflow
5132	// Console does. Note: Do not forget to include whitespace at part
5133	// boundaries, so the training phrase is well formatted when the parts
5134	// are concatenated. If the training phrase does not need to be
5135	// annotated with parameters, you just need a single part with only the
5136	// Part.text field set. If you want to annotate the training phrase, you
5137	// must create multiple parts, where the fields of each part are
5138	// populated in one of two ways: - `Part.text` is set to a part of the
5139	// phrase that has no parameters. - `Part.text` is set to a part of the
5140	// phrase that you want to annotate, and the `parameter_id` field is
5141	// set.
5142	Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
5143
5144	// RepeatCount: Indicates how many times this example was added to the
5145	// intent.
5146	RepeatCount int64 `json:"repeatCount,omitempty"`
5147
5148	// ForceSendFields is a list of field names (e.g. "Id") to
5149	// unconditionally include in API requests. By default, fields with
5150	// empty values are omitted from API requests. However, any non-pointer,
5151	// non-interface field appearing in ForceSendFields will be sent to the
5152	// server regardless of whether the field is empty or not. This may be
5153	// used to include empty fields in Patch requests.
5154	ForceSendFields []string `json:"-"`
5155
5156	// NullFields is a list of field names (e.g. "Id") to include in API
5157	// requests with the JSON null value. By default, fields with empty
5158	// values are omitted from API requests. However, any field with an
5159	// empty value appearing in NullFields will be sent to the server as
5160	// null. It is an error if a field in this list has a non-empty value.
5161	// This may be used to include null fields in Patch requests.
5162	NullFields []string `json:"-"`
5163}
5164
5165func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
5166	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
5167	raw := NoMethod(*s)
5168	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5169}
5170
5171// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a
5172// part of a training phrase.
5173type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
5174	// ParameterId: The parameter used to annotate this part of the training
5175	// phrase. This field is required for annotated parts of the training
5176	// phrase.
5177	ParameterId string `json:"parameterId,omitempty"`
5178
5179	// Text: Required. The text for this part.
5180	Text string `json:"text,omitempty"`
5181
5182	// ForceSendFields is a list of field names (e.g. "ParameterId") to
5183	// unconditionally include in API requests. By default, fields with
5184	// empty values are omitted from API requests. However, any non-pointer,
5185	// non-interface field appearing in ForceSendFields will be sent to the
5186	// server regardless of whether the field is empty or not. This may be
5187	// used to include empty fields in Patch requests.
5188	ForceSendFields []string `json:"-"`
5189
5190	// NullFields is a list of field names (e.g. "ParameterId") to include
5191	// in API requests with the JSON null value. By default, fields with
5192	// empty values are omitted from API requests. However, any field with
5193	// an empty value appearing in NullFields will be sent to the server as
5194	// null. It is an error if a field in this list has a non-empty value.
5195	// This may be used to include null fields in Patch requests.
5196	NullFields []string `json:"-"`
5197}
5198
5199func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
5200	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
5201	raw := NoMethod(*s)
5202	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5203}
5204
5205// GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation
5206// (session) can be described and visualized as a state machine. The
5207// states of a CX session are represented by pages. For each flow, you
5208// define many pages, where your combined pages can handle a complete
5209// conversation on the topics the flow is designed for. At any given
5210// moment, exactly one page is the current page, the current page is
5211// considered active, and the flow associated with that page is
5212// considered active. Every flow has a special start page. When a flow
5213// initially becomes active, the start page page becomes the current
5214// page. For each conversational turn, the current page will either stay
5215// the same or transition to another page. You configure each page to
5216// collect information from the end-user that is relevant for the
5217// conversational state represented by the page. For more information,
5218// see the Page guide
5219// (https://cloud.google.com/dialogflow/cx/docs/concept/page).
5220type GoogleCloudDialogflowCxV3beta1Page struct {
5221	// DisplayName: Required. The human-readable name of the page, unique
5222	// within the agent.
5223	DisplayName string `json:"displayName,omitempty"`
5224
5225	// EntryFulfillment: The fulfillment to call when the session is
5226	// entering the page.
5227	EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
5228
5229	// EventHandlers: Handlers associated with the page to handle events
5230	// such as webhook errors, no match or no input.
5231	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
5232
5233	// Form: The form associated with the page, used for collecting
5234	// parameters relevant to the page.
5235	Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
5236
5237	// Name: The unique identifier of the page. Required for the
5238	// Pages.UpdatePage method. Pages.CreatePage populates the name
5239	// automatically. Format: `projects//locations//agents//flows//pages/`.
5240	Name string `json:"name,omitempty"`
5241
5242	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups`
5243	// associated with the page. Transition route groups must be unique
5244	// within a page. * If multiple transition routes within a page scope
5245	// refer to the same intent, then the precedence order is: page's
5246	// transition route -> page's transition route group -> flow's
5247	// transition routes. * If multiple transition route groups within a
5248	// page contain the same intent, then the first group in the ordered
5249	// list takes precedence.
5250	// Format:`projects//locations//agents//flows//transitionRouteGroups/`.
5251	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
5252
5253	// TransitionRoutes: A list of transitions for the transition rules of
5254	// this page. They route the conversation to another page in the same
5255	// flow, or another flow. When we are in a certain page, the
5256	// TransitionRoutes are evalauted in the following order: *
5257	// TransitionRoutes defined in the page with intent specified. *
5258	// TransitionRoutes defined in the transition route groups with intent
5259	// specified. * TransitionRoutes defined in flow with intent specified.
5260	// * TransitionRoutes defined in the transition route groups with intent
5261	// specified. * TransitionRoutes defined in the page with only condition
5262	// specified. * TransitionRoutes defined in the transition route groups
5263	// with only condition specified.
5264	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
5265
5266	// ForceSendFields is a list of field names (e.g. "DisplayName") to
5267	// unconditionally include in API requests. By default, fields with
5268	// empty values are omitted from API requests. However, any non-pointer,
5269	// non-interface field appearing in ForceSendFields will be sent to the
5270	// server regardless of whether the field is empty or not. This may be
5271	// used to include empty fields in Patch requests.
5272	ForceSendFields []string `json:"-"`
5273
5274	// NullFields is a list of field names (e.g. "DisplayName") to include
5275	// in API requests with the JSON null value. By default, fields with
5276	// empty values are omitted from API requests. However, any field with
5277	// an empty value appearing in NullFields will be sent to the server as
5278	// null. It is an error if a field in this list has a non-empty value.
5279	// This may be used to include null fields in Patch requests.
5280	NullFields []string `json:"-"`
5281}
5282
5283func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
5284	type NoMethod GoogleCloudDialogflowCxV3beta1Page
5285	raw := NoMethod(*s)
5286	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5287}
5288
5289// GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information
5290// communicated to and from the webhook.
5291type GoogleCloudDialogflowCxV3beta1PageInfo struct {
5292	// CurrentPage: Always present for WebhookRequest. Ignored for
5293	// WebhookResponse. The unique identifier of the current page. Format:
5294	// `projects//locations//agents//flows//pages/`.
5295	CurrentPage string `json:"currentPage,omitempty"`
5296
5297	// FormInfo: Optional for both WebhookRequest and WebhookResponse.
5298	// Information about the form.
5299	FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
5300
5301	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
5302	// unconditionally include in API requests. By default, fields with
5303	// empty values are omitted from API requests. However, any non-pointer,
5304	// non-interface field appearing in ForceSendFields will be sent to the
5305	// server regardless of whether the field is empty or not. This may be
5306	// used to include empty fields in Patch requests.
5307	ForceSendFields []string `json:"-"`
5308
5309	// NullFields is a list of field names (e.g. "CurrentPage") to include
5310	// in API requests with the JSON null value. By default, fields with
5311	// empty values are omitted from API requests. However, any field with
5312	// an empty value appearing in NullFields will be sent to the server as
5313	// null. It is an error if a field in this list has a non-empty value.
5314	// This may be used to include null fields in Patch requests.
5315	NullFields []string `json:"-"`
5316}
5317
5318func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
5319	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
5320	raw := NoMethod(*s)
5321	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5322}
5323
5324// GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form
5325// information.
5326type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
5327	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse.
5328	// The parameters contained in the form. Note that the webhook cannot
5329	// add or remove any form parameter.
5330	ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
5331
5332	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
5333	// unconditionally include in API requests. By default, fields with
5334	// empty values are omitted from API requests. However, any non-pointer,
5335	// non-interface field appearing in ForceSendFields will be sent to the
5336	// server regardless of whether the field is empty or not. This may be
5337	// used to include empty fields in Patch requests.
5338	ForceSendFields []string `json:"-"`
5339
5340	// NullFields is a list of field names (e.g. "ParameterInfo") to include
5341	// in API requests with the JSON null value. By default, fields with
5342	// empty values are omitted from API requests. However, any field with
5343	// an empty value appearing in NullFields will be sent to the server as
5344	// null. It is an error if a field in this list has a non-empty value.
5345	// This may be used to include null fields in Patch requests.
5346	NullFields []string `json:"-"`
5347}
5348
5349func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
5350	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
5351	raw := NoMethod(*s)
5352	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5353}
5354
5355// GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo:
5356// Represents parameter information.
5357type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
5358	// DisplayName: Always present for WebhookRequest. Required for
5359	// WebhookResponse. The human-readable name of the parameter, unique
5360	// within the form. This field cannot be modified by the webhook.
5361	DisplayName string `json:"displayName,omitempty"`
5362
5363	// JustCollected: Optional for WebhookRequest. Ignored for
5364	// WebhookResponse. Indicates if the parameter value was just collected
5365	// on the last conversation turn.
5366	JustCollected bool `json:"justCollected,omitempty"`
5367
5368	// Required: Optional for both WebhookRequest and WebhookResponse.
5369	// Indicates whether the parameter is required. Optional parameters will
5370	// not trigger prompts; however, they are filled if the user specifies
5371	// them. Required parameters must be filled before form filling
5372	// concludes.
5373	Required bool `json:"required,omitempty"`
5374
5375	// State: Always present for WebhookRequest. Required for
5376	// WebhookResponse. The state of the parameter. This field can be set to
5377	// INVALID by the webhook to invalidate the parameter; other values set
5378	// by the webhook will be ignored.
5379	//
5380	// Possible values:
5381	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be
5382	// never used.
5383	//   "EMPTY" - Indicates that the parameter does not have a value.
5384	//   "INVALID" - Indicates that the parameter value is invalid. This
5385	// field can be used by the webhook to invalidate the parameter and ask
5386	// the server to collect it from the user again.
5387	//   "FILLED" - Indicates that the parameter has a value.
5388	State string `json:"state,omitempty"`
5389
5390	// Value: Optional for both WebhookRequest and WebhookResponse. The
5391	// value of the parameter. This field can be set by the webhook to
5392	// change the parameter value.
5393	Value interface{} `json:"value,omitempty"`
5394
5395	// ForceSendFields is a list of field names (e.g. "DisplayName") to
5396	// unconditionally include in API requests. By default, fields with
5397	// empty values are omitted from API requests. However, any non-pointer,
5398	// non-interface field appearing in ForceSendFields will be sent to the
5399	// server regardless of whether the field is empty or not. This may be
5400	// used to include empty fields in Patch requests.
5401	ForceSendFields []string `json:"-"`
5402
5403	// NullFields is a list of field names (e.g. "DisplayName") to include
5404	// in API requests with the JSON null value. By default, fields with
5405	// empty values are omitted from API requests. However, any field with
5406	// an empty value appearing in NullFields will be sent to the server as
5407	// null. It is an error if a field in this list has a non-empty value.
5408	// This may be used to include null fields in Patch requests.
5409	NullFields []string `json:"-"`
5410}
5411
5412func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
5413	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
5414	raw := NoMethod(*s)
5415	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5416}
5417
5418// GoogleCloudDialogflowCxV3beta1QueryInput: Represents the query input.
5419// It can contain one of: 1. A conversational query in the form of text.
5420// 2. An intent query that specifies which intent to trigger. 3. Natural
5421// language speech audio to be processed. 4. An event to be triggered.
5422type GoogleCloudDialogflowCxV3beta1QueryInput struct {
5423	// Audio: The natural language speech audio to be processed.
5424	Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
5425
5426	// Dtmf: The DTMF event to be handled.
5427	Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
5428
5429	// Event: The event to be triggered.
5430	Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
5431
5432	// Intent: The intent to be triggered.
5433	Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
5434
5435	// LanguageCode: Required. The language of the input. See Language
5436	// Support
5437	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
5438	// a list of the currently supported language codes. Note that queries
5439	// in the same session do not necessarily need to specify the same
5440	// language.
5441	LanguageCode string `json:"languageCode,omitempty"`
5442
5443	// Text: The natural language text to be processed.
5444	Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
5445
5446	// ForceSendFields is a list of field names (e.g. "Audio") to
5447	// unconditionally include in API requests. By default, fields with
5448	// empty values are omitted from API requests. However, any non-pointer,
5449	// non-interface field appearing in ForceSendFields will be sent to the
5450	// server regardless of whether the field is empty or not. This may be
5451	// used to include empty fields in Patch requests.
5452	ForceSendFields []string `json:"-"`
5453
5454	// NullFields is a list of field names (e.g. "Audio") to include in API
5455	// requests with the JSON null value. By default, fields with empty
5456	// values are omitted from API requests. However, any field with an
5457	// empty value appearing in NullFields will be sent to the server as
5458	// null. It is an error if a field in this list has a non-empty value.
5459	// This may be used to include null fields in Patch requests.
5460	NullFields []string `json:"-"`
5461}
5462
5463func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
5464	type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
5465	raw := NoMethod(*s)
5466	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5467}
5468
5469// GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata:
5470// Metadata for ReloadDocument operation.
5471type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
5472	// GenericMetadata: The generic information of the operation.
5473	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
5474
5475	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
5476	// unconditionally include in API requests. By default, fields with
5477	// empty values are omitted from API requests. However, any non-pointer,
5478	// non-interface field appearing in ForceSendFields will be sent to the
5479	// server regardless of whether the field is empty or not. This may be
5480	// used to include empty fields in Patch requests.
5481	ForceSendFields []string `json:"-"`
5482
5483	// NullFields is a list of field names (e.g. "GenericMetadata") to
5484	// include in API requests with the JSON null value. By default, fields
5485	// with empty values are omitted from API requests. However, any field
5486	// with an empty value appearing in NullFields will be sent to the
5487	// server as null. It is an error if a field in this list has a
5488	// non-empty value. This may be used to include null fields in Patch
5489	// requests.
5490	NullFields []string `json:"-"`
5491}
5492
5493func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
5494	type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
5495	raw := NoMethod(*s)
5496	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5497}
5498
5499// GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response
5500// message that can be returned by a conversational agent. Response
5501// messages are also used for output audio synthesis. The approach is as
5502// follows: * If at least one OutputAudioText response is present, then
5503// all OutputAudioText responses are linearly concatenated, and the
5504// result is used for output audio synthesis. * If the OutputAudioText
5505// responses are a mixture of text and SSML, then the concatenated
5506// result is treated as SSML; otherwise, the result is treated as either
5507// text or SSML as appropriate. The agent designer should ideally use
5508// either text or SSML consistently throughout the bot design. *
5509// Otherwise, all Text responses are linearly concatenated, and the
5510// result is used for output audio synthesis. This approach allows for
5511// more sophisticated user experience scenarios, where the text
5512// displayed to the user may differ from what is heard.
5513type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
5514	// ConversationSuccess: Indicates that the conversation succeeded.
5515	ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
5516
5517	// EndInteraction: Output only. A signal that indicates the interaction
5518	// with the Dialogflow agent has ended. This message is generated by
5519	// Dialogflow only when the conversation reaches `END_SESSION` page. It
5520	// is not supposed to be defined by the user. It's guaranteed that there
5521	// is at most one such message in each response.
5522	EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
5523
5524	// LiveAgentHandoff: Hands off conversation to a human agent.
5525	LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
5526
5527	// MixedAudio: Output only. An audio response message composed of both
5528	// the synthesized Dialogflow agent responses and responses defined via
5529	// play_audio. This message is generated by Dialogflow only and not
5530	// supposed to be defined by the user.
5531	MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
5532
5533	// OutputAudioText: A text or ssml response that is preferentially used
5534	// for TTS output audio synthesis, as described in the comment on the
5535	// ResponseMessage message.
5536	OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
5537
5538	// Payload: Returns a response containing a custom, platform-specific
5539	// payload.
5540	Payload googleapi.RawMessage `json:"payload,omitempty"`
5541
5542	// PlayAudio: Signal that the client should play an audio clip hosted at
5543	// a client-specific URI. Dialogflow uses this to construct mixed_audio.
5544	// However, Dialogflow itself does not try to read or process the URI in
5545	// any way.
5546	PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
5547
5548	// Text: Returns a text response.
5549	Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
5550
5551	// ForceSendFields is a list of field names (e.g. "ConversationSuccess")
5552	// to unconditionally include in API requests. By default, fields with
5553	// empty values are omitted from API requests. However, any non-pointer,
5554	// non-interface field appearing in ForceSendFields will be sent to the
5555	// server regardless of whether the field is empty or not. This may be
5556	// used to include empty fields in Patch requests.
5557	ForceSendFields []string `json:"-"`
5558
5559	// NullFields is a list of field names (e.g. "ConversationSuccess") to
5560	// include in API requests with the JSON null value. By default, fields
5561	// with empty values are omitted from API requests. However, any field
5562	// with an empty value appearing in NullFields will be sent to the
5563	// server as null. It is an error if a field in this list has a
5564	// non-empty value. This may be used to include null fields in Patch
5565	// requests.
5566	NullFields []string `json:"-"`
5567}
5568
5569func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
5570	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
5571	raw := NoMethod(*s)
5572	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5573}
5574
5575// GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess:
5576// Indicates that the conversation succeeded, i.e., the bot handled the
5577// issue that the customer talked to it about. Dialogflow only uses this
5578// to determine which conversations should be counted as successful and
5579// doesn't process the metadata in this message in any way. Note that
5580// Dialogflow also considers conversations that get to the conversation
5581// end page as successful even if they don't return ConversationSuccess.
5582// You may set this, for example: * In the entry_fulfillment of a Page
5583// if entering the page indicates that the conversation succeeded. * In
5584// a webhook response when you determine that you handled the customer
5585// issue.
5586type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
5587	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on
5588	// this.
5589	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
5590
5591	// ForceSendFields is a list of field names (e.g. "Metadata") to
5592	// unconditionally include in API requests. By default, fields with
5593	// empty values are omitted from API requests. However, any non-pointer,
5594	// non-interface field appearing in ForceSendFields will be sent to the
5595	// server regardless of whether the field is empty or not. This may be
5596	// used to include empty fields in Patch requests.
5597	ForceSendFields []string `json:"-"`
5598
5599	// NullFields is a list of field names (e.g. "Metadata") to include in
5600	// API requests with the JSON null value. By default, fields with empty
5601	// values are omitted from API requests. However, any field with an
5602	// empty value appearing in NullFields will be sent to the server as
5603	// null. It is an error if a field in this list has a non-empty value.
5604	// This may be used to include null fields in Patch requests.
5605	NullFields []string `json:"-"`
5606}
5607
5608func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
5609	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
5610	raw := NoMethod(*s)
5611	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5612}
5613
5614// GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction:
5615// Indicates that interaction with the Dialogflow agent has ended. This
5616// message is generated by Dialogflow only and not supposed to be
5617// defined by the user.
5618type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
5619}
5620
5621// GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff:
5622// Indicates that the conversation should be handed off to a live agent.
5623// Dialogflow only uses this to determine which conversations were
5624// handed off to a human agent for measurement purposes. What else to do
5625// with this signal is up to you and your handoff procedures. You may
5626// set this, for example: * In the entry_fulfillment of a Page if
5627// entering the page indicates something went extremely wrong in the
5628// conversation. * In a webhook response when you determine that the
5629// customer issue can only be handled by a human.
5630type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
5631	// Metadata: Custom metadata for your handoff procedure. Dialogflow
5632	// doesn't impose any structure on this.
5633	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
5634
5635	// ForceSendFields is a list of field names (e.g. "Metadata") to
5636	// unconditionally include in API requests. By default, fields with
5637	// empty values are omitted from API requests. However, any non-pointer,
5638	// non-interface field appearing in ForceSendFields will be sent to the
5639	// server regardless of whether the field is empty or not. This may be
5640	// used to include empty fields in Patch requests.
5641	ForceSendFields []string `json:"-"`
5642
5643	// NullFields is a list of field names (e.g. "Metadata") to include in
5644	// API requests with the JSON null value. By default, fields with empty
5645	// values are omitted from API requests. However, any field with an
5646	// empty value appearing in NullFields will be sent to the server as
5647	// null. It is an error if a field in this list has a non-empty value.
5648	// This may be used to include null fields in Patch requests.
5649	NullFields []string `json:"-"`
5650}
5651
5652func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
5653	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
5654	raw := NoMethod(*s)
5655	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5656}
5657
5658// GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents
5659// an audio message that is composed of both segments synthesized from
5660// the Dialogflow agent prompts and ones hosted externally at the
5661// specified URIs. The external URIs are specified via play_audio. This
5662// message is generated by Dialogflow only and not supposed to be
5663// defined by the user.
5664type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
5665	// Segments: Segments this audio response is composed of.
5666	Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
5667
5668	// ForceSendFields is a list of field names (e.g. "Segments") to
5669	// unconditionally include in API requests. By default, fields with
5670	// empty values are omitted from API requests. However, any non-pointer,
5671	// non-interface field appearing in ForceSendFields will be sent to the
5672	// server regardless of whether the field is empty or not. This may be
5673	// used to include empty fields in Patch requests.
5674	ForceSendFields []string `json:"-"`
5675
5676	// NullFields is a list of field names (e.g. "Segments") to include in
5677	// API requests with the JSON null value. By default, fields with empty
5678	// values are omitted from API requests. However, any field with an
5679	// empty value appearing in NullFields will be sent to the server as
5680	// null. It is an error if a field in this list has a non-empty value.
5681	// This may be used to include null fields in Patch requests.
5682	NullFields []string `json:"-"`
5683}
5684
5685func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
5686	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
5687	raw := NoMethod(*s)
5688	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5689}
5690
5691// GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment:
5692// Represents one segment of audio.
5693type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
5694	// AllowPlaybackInterruption: Output only. Whether the playback of this
5695	// segment can be interrupted by the end user's speech and the client
5696	// should then start the next Dialogflow request.
5697	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5698
5699	// Audio: Raw audio synthesized from the Dialogflow agent's response
5700	// using the output config specified in the request.
5701	Audio string `json:"audio,omitempty"`
5702
5703	// Uri: Client-specific URI that points to an audio clip accessible to
5704	// the client. Dialogflow does not impose any validation on it.
5705	Uri string `json:"uri,omitempty"`
5706
5707	// ForceSendFields is a list of field names (e.g.
5708	// "AllowPlaybackInterruption") to unconditionally include in API
5709	// requests. By default, fields with empty values are omitted from API
5710	// requests. However, any non-pointer, non-interface field appearing in
5711	// ForceSendFields will be sent to the server regardless of whether the
5712	// field is empty or not. This may be used to include empty fields in
5713	// Patch requests.
5714	ForceSendFields []string `json:"-"`
5715
5716	// NullFields is a list of field names (e.g.
5717	// "AllowPlaybackInterruption") to include in API requests with the JSON
5718	// null value. By default, fields with empty values are omitted from API
5719	// requests. However, any field with an empty value appearing in
5720	// NullFields will be sent to the server as null. It is an error if a
5721	// field in this list has a non-empty value. This may be used to include
5722	// null fields in Patch requests.
5723	NullFields []string `json:"-"`
5724}
5725
5726func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
5727	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
5728	raw := NoMethod(*s)
5729	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5730}
5731
5732// GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text
5733// or ssml response that is preferentially used for TTS output audio
5734// synthesis, as described in the comment on the ResponseMessage
5735// message.
5736type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
5737	// AllowPlaybackInterruption: Output only. Whether the playback of this
5738	// message can be interrupted by the end user's speech and the client
5739	// can then starts the next Dialogflow request.
5740	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5741
5742	// Ssml: The SSML text to be synthesized. For more information, see SSML
5743	// (/speech/text-to-speech/docs/ssml).
5744	Ssml string `json:"ssml,omitempty"`
5745
5746	// Text: The raw text to be synthesized.
5747	Text string `json:"text,omitempty"`
5748
5749	// ForceSendFields is a list of field names (e.g.
5750	// "AllowPlaybackInterruption") to unconditionally include in API
5751	// requests. By default, fields with empty values are omitted from API
5752	// requests. However, any non-pointer, non-interface field appearing in
5753	// ForceSendFields will be sent to the server regardless of whether the
5754	// field is empty or not. This may be used to include empty fields in
5755	// Patch requests.
5756	ForceSendFields []string `json:"-"`
5757
5758	// NullFields is a list of field names (e.g.
5759	// "AllowPlaybackInterruption") to include in API requests with the JSON
5760	// null value. By default, fields with empty values are omitted from API
5761	// requests. However, any field with an empty value appearing in
5762	// NullFields will be sent to the server as null. It is an error if a
5763	// field in this list has a non-empty value. This may be used to include
5764	// null fields in Patch requests.
5765	NullFields []string `json:"-"`
5766}
5767
5768func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
5769	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
5770	raw := NoMethod(*s)
5771	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5772}
5773
5774// GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an
5775// audio clip to be played by the client as part of the response.
5776type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
5777	// AllowPlaybackInterruption: Output only. Whether the playback of this
5778	// message can be interrupted by the end user's speech and the client
5779	// can then starts the next Dialogflow request.
5780	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5781
5782	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose
5783	// any validation on this value. It is specific to the client that reads
5784	// it.
5785	AudioUri string `json:"audioUri,omitempty"`
5786
5787	// ForceSendFields is a list of field names (e.g.
5788	// "AllowPlaybackInterruption") to unconditionally include in API
5789	// requests. By default, fields with empty values are omitted from API
5790	// requests. However, any non-pointer, non-interface field appearing in
5791	// ForceSendFields will be sent to the server regardless of whether the
5792	// field is empty or not. This may be used to include empty fields in
5793	// Patch requests.
5794	ForceSendFields []string `json:"-"`
5795
5796	// NullFields is a list of field names (e.g.
5797	// "AllowPlaybackInterruption") to include in API requests with the JSON
5798	// null value. By default, fields with empty values are omitted from API
5799	// requests. However, any field with an empty value appearing in
5800	// NullFields will be sent to the server as null. It is an error if a
5801	// field in this list has a non-empty value. This may be used to include
5802	// null fields in Patch requests.
5803	NullFields []string `json:"-"`
5804}
5805
5806func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
5807	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
5808	raw := NoMethod(*s)
5809	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5810}
5811
5812// GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response
5813// message.
5814type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
5815	// AllowPlaybackInterruption: Output only. Whether the playback of this
5816	// message can be interrupted by the end user's speech and the client
5817	// can then starts the next Dialogflow request.
5818	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5819
5820	// Text: Required. A collection of text responses.
5821	Text []string `json:"text,omitempty"`
5822
5823	// ForceSendFields is a list of field names (e.g.
5824	// "AllowPlaybackInterruption") to unconditionally include in API
5825	// requests. By default, fields with empty values are omitted from API
5826	// requests. However, any non-pointer, non-interface field appearing in
5827	// ForceSendFields will be sent to the server regardless of whether the
5828	// field is empty or not. This may be used to include empty fields in
5829	// Patch requests.
5830	ForceSendFields []string `json:"-"`
5831
5832	// NullFields is a list of field names (e.g.
5833	// "AllowPlaybackInterruption") to include in API requests with the JSON
5834	// null value. By default, fields with empty values are omitted from API
5835	// requests. However, any field with an empty value appearing in
5836	// NullFields will be sent to the server as null. It is an error if a
5837	// field in this list has a non-empty value. This may be used to include
5838	// null fields in Patch requests.
5839	NullFields []string `json:"-"`
5840}
5841
5842func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
5843	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
5844	raw := NoMethod(*s)
5845	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5846}
5847
5848// GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata: Metadata
5849// returned for the Environments.RunContinuousTest long running
5850// operation.
5851type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
5852	// Errors: The test errors.
5853	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
5854
5855	// ForceSendFields is a list of field names (e.g. "Errors") to
5856	// unconditionally include in API requests. By default, fields with
5857	// empty values are omitted from API requests. However, any non-pointer,
5858	// non-interface field appearing in ForceSendFields will be sent to the
5859	// server regardless of whether the field is empty or not. This may be
5860	// used to include empty fields in Patch requests.
5861	ForceSendFields []string `json:"-"`
5862
5863	// NullFields is a list of field names (e.g. "Errors") to include in API
5864	// requests with the JSON null value. By default, fields with empty
5865	// values are omitted from API requests. However, any field with an
5866	// empty value appearing in NullFields will be sent to the server as
5867	// null. It is an error if a field in this list has a non-empty value.
5868	// This may be used to include null fields in Patch requests.
5869	NullFields []string `json:"-"`
5870}
5871
5872func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
5873	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
5874	raw := NoMethod(*s)
5875	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5876}
5877
5878// GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse: The response
5879// message for Environments.RunContinuousTest.
5880type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
5881	// ContinuousTestResult: The result for a continuous test run.
5882	ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
5883
5884	// ForceSendFields is a list of field names (e.g.
5885	// "ContinuousTestResult") to unconditionally include in API requests.
5886	// By default, fields with empty values are omitted from API requests.
5887	// However, any non-pointer, non-interface field appearing in
5888	// ForceSendFields will be sent to the server regardless of whether the
5889	// field is empty or not. This may be used to include empty fields in
5890	// Patch requests.
5891	ForceSendFields []string `json:"-"`
5892
5893	// NullFields is a list of field names (e.g. "ContinuousTestResult") to
5894	// include in API requests with the JSON null value. By default, fields
5895	// with empty values are omitted from API requests. However, any field
5896	// with an empty value appearing in NullFields will be sent to the
5897	// server as null. It is an error if a field in this list has a
5898	// non-empty value. This may be used to include null fields in Patch
5899	// requests.
5900	NullFields []string `json:"-"`
5901}
5902
5903func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
5904	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
5905	raw := NoMethod(*s)
5906	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5907}
5908
5909// GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata: Metadata returned
5910// for the TestCases.RunTestCase long running operation.
5911type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
5912}
5913
5914// GoogleCloudDialogflowCxV3beta1RunTestCaseResponse: The response
5915// message for TestCases.RunTestCase.
5916type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
5917	// Result: The result.
5918	Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
5919
5920	// ForceSendFields is a list of field names (e.g. "Result") to
5921	// unconditionally include in API requests. By default, fields with
5922	// empty values are omitted from API requests. However, any non-pointer,
5923	// non-interface field appearing in ForceSendFields will be sent to the
5924	// server regardless of whether the field is empty or not. This may be
5925	// used to include empty fields in Patch requests.
5926	ForceSendFields []string `json:"-"`
5927
5928	// NullFields is a list of field names (e.g. "Result") to include in API
5929	// requests with the JSON null value. By default, fields with empty
5930	// values are omitted from API requests. However, any field with an
5931	// empty value appearing in NullFields will be sent to the server as
5932	// null. It is an error if a field in this list has a non-empty value.
5933	// This may be used to include null fields in Patch requests.
5934	NullFields []string `json:"-"`
5935}
5936
5937func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
5938	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
5939	raw := NoMethod(*s)
5940	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5941}
5942
5943// GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session
5944// information communicated to and from the webhook.
5945type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
5946	// Parameters: Optional for WebhookRequest. Optional for
5947	// WebhookResponse. All parameters collected from forms and intents
5948	// during the session. Parameters can be created, updated, or removed by
5949	// the webhook. To remove a parameter from the session, the webhook
5950	// should explicitly set the parameter value to null in WebhookResponse.
5951	// The map is keyed by parameters' display names.
5952	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
5953
5954	// Session: Always present for WebhookRequest. Ignored for
5955	// WebhookResponse. The unique identifier of the session. This field can
5956	// be used by the webhook to identify a session. Format:
5957	// `projects//locations//agents//sessions/` or
5958	// `projects//locations//agents//environments//sessions/` if environment
5959	// is specified.
5960	Session string `json:"session,omitempty"`
5961
5962	// ForceSendFields is a list of field names (e.g. "Parameters") to
5963	// unconditionally include in API requests. By default, fields with
5964	// empty values are omitted from API requests. However, any non-pointer,
5965	// non-interface field appearing in ForceSendFields will be sent to the
5966	// server regardless of whether the field is empty or not. This may be
5967	// used to include empty fields in Patch requests.
5968	ForceSendFields []string `json:"-"`
5969
5970	// NullFields is a list of field names (e.g. "Parameters") to include in
5971	// API requests with the JSON null value. By default, fields with empty
5972	// values are omitted from API requests. However, any field with an
5973	// empty value appearing in NullFields will be sent to the server as
5974	// null. It is an error if a field in this list has a non-empty value.
5975	// This may be used to include null fields in Patch requests.
5976	NullFields []string `json:"-"`
5977}
5978
5979func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
5980	type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
5981	raw := NoMethod(*s)
5982	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5983}
5984
5985// GoogleCloudDialogflowCxV3beta1TestCase: Represents a test case.
5986type GoogleCloudDialogflowCxV3beta1TestCase struct {
5987	// CreationTime: Output only. When the test was created.
5988	CreationTime string `json:"creationTime,omitempty"`
5989
5990	// DisplayName: Required. The human-readable name of the test case,
5991	// unique within the agent. Limit of 200 characters.
5992	DisplayName string `json:"displayName,omitempty"`
5993
5994	// LastTestResult: The latest test result.
5995	LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
5996
5997	// Name: The unique identifier of the test case.
5998	// TestCases.CreateTestCase will populate the name automatically.
5999	// Otherwise use format: `projects//locations//agents/ /testCases/`.
6000	Name string `json:"name,omitempty"`
6001
6002	// Notes: Additional freeform notes about the test case. Limit of 400
6003	// characters.
6004	Notes string `json:"notes,omitempty"`
6005
6006	// Tags: Tags are short descriptions that users may apply to test cases
6007	// for organizational and filtering purposes. Each tag should start with
6008	// "#" and has a limit of 30 characters.
6009	Tags []string `json:"tags,omitempty"`
6010
6011	// TestCaseConversationTurns: The conversation turns uttered when the
6012	// test case was created, in chronological order. These include the
6013	// canonical set of agent utterances that should occur when the agent is
6014	// working properly.
6015	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
6016
6017	// TestConfig: Config for the test case.
6018	TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
6019
6020	// ForceSendFields is a list of field names (e.g. "CreationTime") to
6021	// unconditionally include in API requests. By default, fields with
6022	// empty values are omitted from API requests. However, any non-pointer,
6023	// non-interface field appearing in ForceSendFields will be sent to the
6024	// server regardless of whether the field is empty or not. This may be
6025	// used to include empty fields in Patch requests.
6026	ForceSendFields []string `json:"-"`
6027
6028	// NullFields is a list of field names (e.g. "CreationTime") to include
6029	// in API requests with the JSON null value. By default, fields with
6030	// empty values are omitted from API requests. However, any field with
6031	// an empty value appearing in NullFields will be sent to the server as
6032	// null. It is an error if a field in this list has a non-empty value.
6033	// This may be used to include null fields in Patch requests.
6034	NullFields []string `json:"-"`
6035}
6036
6037func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
6038	type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
6039	raw := NoMethod(*s)
6040	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6041}
6042
6043// GoogleCloudDialogflowCxV3beta1TestCaseError: Error info for importing
6044// a test.
6045type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
6046	// Status: The status associated with the test case.
6047	Status *GoogleRpcStatus `json:"status,omitempty"`
6048
6049	// TestCase: The test case.
6050	TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
6051
6052	// ForceSendFields is a list of field names (e.g. "Status") to
6053	// unconditionally include in API requests. By default, fields with
6054	// empty values are omitted from API requests. However, any non-pointer,
6055	// non-interface field appearing in ForceSendFields will be sent to the
6056	// server regardless of whether the field is empty or not. This may be
6057	// used to include empty fields in Patch requests.
6058	ForceSendFields []string `json:"-"`
6059
6060	// NullFields is a list of field names (e.g. "Status") to include in API
6061	// requests with the JSON null value. By default, fields with empty
6062	// values are omitted from API requests. However, any field with an
6063	// empty value appearing in NullFields will be sent to the server as
6064	// null. It is an error if a field in this list has a non-empty value.
6065	// This may be used to include null fields in Patch requests.
6066	NullFields []string `json:"-"`
6067}
6068
6069func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
6070	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
6071	raw := NoMethod(*s)
6072	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6073}
6074
6075// GoogleCloudDialogflowCxV3beta1TestCaseResult: Represents a result
6076// from running a test case in an agent environment.
6077type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
6078	// ConversationTurns: The conversation turns uttered during the test
6079	// case replay in chronological order.
6080	ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
6081
6082	// Environment: Environment where the test was run. If not set, it
6083	// indicates the draft environment.
6084	Environment string `json:"environment,omitempty"`
6085
6086	// Name: The resource name for the test case result. Format:
6087	// `projects//locations//agents//testCases/ /results/`.
6088	Name string `json:"name,omitempty"`
6089
6090	// TestResult: Whether the test case passed in the agent environment.
6091	//
6092	// Possible values:
6093	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
6094	//   "PASSED" - The test passed.
6095	//   "FAILED" - The test did not pass.
6096	TestResult string `json:"testResult,omitempty"`
6097
6098	// TestTime: The time that the test was run.
6099	TestTime string `json:"testTime,omitempty"`
6100
6101	// ForceSendFields is a list of field names (e.g. "ConversationTurns")
6102	// to unconditionally include in API requests. By default, fields with
6103	// empty values are omitted from API requests. However, any non-pointer,
6104	// non-interface field appearing in ForceSendFields will be sent to the
6105	// server regardless of whether the field is empty or not. This may be
6106	// used to include empty fields in Patch requests.
6107	ForceSendFields []string `json:"-"`
6108
6109	// NullFields is a list of field names (e.g. "ConversationTurns") to
6110	// include in API requests with the JSON null value. By default, fields
6111	// with empty values are omitted from API requests. However, any field
6112	// with an empty value appearing in NullFields will be sent to the
6113	// server as null. It is an error if a field in this list has a
6114	// non-empty value. This may be used to include null fields in Patch
6115	// requests.
6116	NullFields []string `json:"-"`
6117}
6118
6119func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
6120	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
6121	raw := NoMethod(*s)
6122	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6123}
6124
6125// GoogleCloudDialogflowCxV3beta1TestConfig: Represents configurations
6126// for a test case.
6127type GoogleCloudDialogflowCxV3beta1TestConfig struct {
6128	// Flow: Flow name. If not set, default start flow is assumed. Format:
6129	// `projects//locations//agents//flows/`.
6130	Flow string `json:"flow,omitempty"`
6131
6132	// TrackingParameters: Session parameters to be compared when
6133	// calculating differences.
6134	TrackingParameters []string `json:"trackingParameters,omitempty"`
6135
6136	// ForceSendFields is a list of field names (e.g. "Flow") to
6137	// unconditionally include in API requests. By default, fields with
6138	// empty values are omitted from API requests. However, any non-pointer,
6139	// non-interface field appearing in ForceSendFields will be sent to the
6140	// server regardless of whether the field is empty or not. This may be
6141	// used to include empty fields in Patch requests.
6142	ForceSendFields []string `json:"-"`
6143
6144	// NullFields is a list of field names (e.g. "Flow") to include in API
6145	// requests with the JSON null value. By default, fields with empty
6146	// values are omitted from API requests. However, any field with an
6147	// empty value appearing in NullFields will be sent to the server as
6148	// null. It is an error if a field in this list has a non-empty value.
6149	// This may be used to include null fields in Patch requests.
6150	NullFields []string `json:"-"`
6151}
6152
6153func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
6154	type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
6155	raw := NoMethod(*s)
6156	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6157}
6158
6159// GoogleCloudDialogflowCxV3beta1TestError: Error info for running a
6160// test.
6161type GoogleCloudDialogflowCxV3beta1TestError struct {
6162	// Status: The status associated with the test.
6163	Status *GoogleRpcStatus `json:"status,omitempty"`
6164
6165	// TestCase: The test case resource name.
6166	TestCase string `json:"testCase,omitempty"`
6167
6168	// TestTime: The timestamp when the test was completed.
6169	TestTime string `json:"testTime,omitempty"`
6170
6171	// ForceSendFields is a list of field names (e.g. "Status") to
6172	// unconditionally include in API requests. By default, fields with
6173	// empty values are omitted from API requests. However, any non-pointer,
6174	// non-interface field appearing in ForceSendFields will be sent to the
6175	// server regardless of whether the field is empty or not. This may be
6176	// used to include empty fields in Patch requests.
6177	ForceSendFields []string `json:"-"`
6178
6179	// NullFields is a list of field names (e.g. "Status") to include in API
6180	// requests with the JSON null value. By default, fields with empty
6181	// values are omitted from API requests. However, any field with an
6182	// empty value appearing in NullFields will be sent to the server as
6183	// null. It is an error if a field in this list has a non-empty value.
6184	// This may be used to include null fields in Patch requests.
6185	NullFields []string `json:"-"`
6186}
6187
6188func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
6189	type NoMethod GoogleCloudDialogflowCxV3beta1TestError
6190	raw := NoMethod(*s)
6191	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6192}
6193
6194// GoogleCloudDialogflowCxV3beta1TestRunDifference: The description of
6195// differences between original and replayed agent output.
6196type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
6197	// Description: A description of the diff, showing the actual output vs
6198	// expected output.
6199	Description string `json:"description,omitempty"`
6200
6201	// Type: The type of diff.
6202	//
6203	// Possible values:
6204	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
6205	//   "INTENT" - The intent.
6206	//   "PAGE" - The page.
6207	//   "PARAMETERS" - The parameters.
6208	//   "UTTERANCE" - The message utterance.
6209	Type string `json:"type,omitempty"`
6210
6211	// ForceSendFields is a list of field names (e.g. "Description") to
6212	// unconditionally include in API requests. By default, fields with
6213	// empty values are omitted from API requests. However, any non-pointer,
6214	// non-interface field appearing in ForceSendFields will be sent to the
6215	// server regardless of whether the field is empty or not. This may be
6216	// used to include empty fields in Patch requests.
6217	ForceSendFields []string `json:"-"`
6218
6219	// NullFields is a list of field names (e.g. "Description") to include
6220	// in API requests with the JSON null value. By default, fields with
6221	// empty values are omitted from API requests. However, any field with
6222	// an empty value appearing in NullFields will be sent to the server as
6223	// null. It is an error if a field in this list has a non-empty value.
6224	// This may be used to include null fields in Patch requests.
6225	NullFields []string `json:"-"`
6226}
6227
6228func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
6229	type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
6230	raw := NoMethod(*s)
6231	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6232}
6233
6234// GoogleCloudDialogflowCxV3beta1TextInput: Represents the natural
6235// language text to be processed.
6236type GoogleCloudDialogflowCxV3beta1TextInput struct {
6237	// Text: Required. The UTF-8 encoded natural language text to be
6238	// processed. Text length must not exceed 256 characters.
6239	Text string `json:"text,omitempty"`
6240
6241	// ForceSendFields is a list of field names (e.g. "Text") to
6242	// unconditionally include in API requests. By default, fields with
6243	// empty values are omitted from API requests. However, any non-pointer,
6244	// non-interface field appearing in ForceSendFields will be sent to the
6245	// server regardless of whether the field is empty or not. This may be
6246	// used to include empty fields in Patch requests.
6247	ForceSendFields []string `json:"-"`
6248
6249	// NullFields is a list of field names (e.g. "Text") to include in API
6250	// requests with the JSON null value. By default, fields with empty
6251	// values are omitted from API requests. However, any field with an
6252	// empty value appearing in NullFields will be sent to the server as
6253	// null. It is an error if a field in this list has a non-empty value.
6254	// This may be used to include null fields in Patch requests.
6255	NullFields []string `json:"-"`
6256}
6257
6258func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
6259	type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
6260	raw := NoMethod(*s)
6261	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6262}
6263
6264// GoogleCloudDialogflowCxV3beta1TransitionRoute: A transition route
6265// specifies a intent that can be matched and/or a data condition that
6266// can be evaluated during a session. When a specified transition is
6267// matched, the following actions are taken in order: * If there is a
6268// `trigger_fulfillment` associated with the transition, it will be
6269// called. * If there is a `target_page` associated with the transition,
6270// the session will transition into the specified page. * If there is a
6271// `target_flow` associated with the transition, the session will
6272// transition into the specified flow.
6273type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
6274	// Condition: The condition to evaluate against form parameters or
6275	// session parameters. See the conditions reference
6276	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At
6277	// least one of `intent` or `condition` must be specified. When both
6278	// `intent` and `condition` are specified, the transition can only
6279	// happen when both are fulfilled.
6280	Condition string `json:"condition,omitempty"`
6281
6282	// Intent: The unique identifier of an Intent. Format:
6283	// `projects//locations//agents//intents/`. Indicates that the
6284	// transition can only happen when the given intent is matched. At least
6285	// one of `intent` or `condition` must be specified. When both `intent`
6286	// and `condition` are specified, the transition can only happen when
6287	// both are fulfilled.
6288	Intent string `json:"intent,omitempty"`
6289
6290	// Name: Output only. The unique identifier of this transition route.
6291	Name string `json:"name,omitempty"`
6292
6293	// TargetFlow: The target flow to transition to. Format:
6294	// `projects//locations//agents//flows/`.
6295	TargetFlow string `json:"targetFlow,omitempty"`
6296
6297	// TargetPage: The target page to transition to. Format:
6298	// `projects//locations//agents//flows//pages/`.
6299	TargetPage string `json:"targetPage,omitempty"`
6300
6301	// TriggerFulfillment: The fulfillment to call when the condition is
6302	// satisfied. At least one of `trigger_fulfillment` and `target` must be
6303	// specified. When both are defined, `trigger_fulfillment` is executed
6304	// first.
6305	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
6306
6307	// ForceSendFields is a list of field names (e.g. "Condition") to
6308	// unconditionally include in API requests. By default, fields with
6309	// empty values are omitted from API requests. However, any non-pointer,
6310	// non-interface field appearing in ForceSendFields will be sent to the
6311	// server regardless of whether the field is empty or not. This may be
6312	// used to include empty fields in Patch requests.
6313	ForceSendFields []string `json:"-"`
6314
6315	// NullFields is a list of field names (e.g. "Condition") to include in
6316	// API requests with the JSON null value. By default, fields with empty
6317	// values are omitted from API requests. However, any field with an
6318	// empty value appearing in NullFields will be sent to the server as
6319	// null. It is an error if a field in this list has a non-empty value.
6320	// This may be used to include null fields in Patch requests.
6321	NullFields []string `json:"-"`
6322}
6323
6324func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
6325	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
6326	raw := NoMethod(*s)
6327	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6328}
6329
6330// GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata:
6331// Metadata for UpdateDocument operation.
6332type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
6333	// GenericMetadata: The generic information of the operation.
6334	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
6335
6336	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
6337	// unconditionally include in API requests. By default, fields with
6338	// empty values are omitted from API requests. However, any non-pointer,
6339	// non-interface field appearing in ForceSendFields will be sent to the
6340	// server regardless of whether the field is empty or not. This may be
6341	// used to include empty fields in Patch requests.
6342	ForceSendFields []string `json:"-"`
6343
6344	// NullFields is a list of field names (e.g. "GenericMetadata") to
6345	// include in API requests with the JSON null value. By default, fields
6346	// with empty values are omitted from API requests. However, any field
6347	// with an empty value appearing in NullFields will be sent to the
6348	// server as null. It is an error if a field in this list has a
6349	// non-empty value. This may be used to include null fields in Patch
6350	// requests.
6351	NullFields []string `json:"-"`
6352}
6353
6354func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
6355	type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
6356	raw := NoMethod(*s)
6357	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6358}
6359
6360// GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for
6361// a webhook call. The request is sent as a JSON object and the field
6362// names will be presented in camel cases.
6363type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
6364	// DetectIntentResponseId: Always present. The unique identifier of the
6365	// DetectIntentResponse that will be returned to the API caller.
6366	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
6367
6368	// FulfillmentInfo: Always present. Information about the fulfillment
6369	// that triggered this webhook call.
6370	FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
6371
6372	// IntentInfo: Information about the last matched intent.
6373	IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
6374
6375	// LanguageCode: The language code specified in the original request.
6376	LanguageCode string `json:"languageCode,omitempty"`
6377
6378	// Messages: The list of rich message responses to present to the user.
6379	// Webhook can choose to append or replace this list in
6380	// WebhookResponse.fulfillment_response;
6381	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
6382
6383	// PageInfo: Information about page status.
6384	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
6385
6386	// Payload: Custom data set in QueryParameters.payload.
6387	Payload googleapi.RawMessage `json:"payload,omitempty"`
6388
6389	// SentimentAnalysisResult: The sentiment analysis result of the current
6390	// user request. The field is filled when sentiment analysis is
6391	// configured to be enabled for the request.
6392	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
6393
6394	// SessionInfo: Information about session status.
6395	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
6396
6397	// Text: If natural language text was provided as input, this field will
6398	// contain a copy of the text.
6399	Text string `json:"text,omitempty"`
6400
6401	// Transcript: If natural language speech audio was provided as input,
6402	// this field will contain the transcript for the audio.
6403	Transcript string `json:"transcript,omitempty"`
6404
6405	// TriggerEvent: If an event was provided as input, this field will
6406	// contain the name of the event.
6407	TriggerEvent string `json:"triggerEvent,omitempty"`
6408
6409	// TriggerIntent: If an intent was provided as input, this field will
6410	// contain a copy of the intent identifier. Format:
6411	// `projects//locations//agents//intents/`.
6412	TriggerIntent string `json:"triggerIntent,omitempty"`
6413
6414	// ForceSendFields is a list of field names (e.g.
6415	// "DetectIntentResponseId") to unconditionally include in API requests.
6416	// By default, fields with empty values are omitted from API requests.
6417	// However, any non-pointer, non-interface field appearing in
6418	// ForceSendFields will be sent to the server regardless of whether the
6419	// field is empty or not. This may be used to include empty fields in
6420	// Patch requests.
6421	ForceSendFields []string `json:"-"`
6422
6423	// NullFields is a list of field names (e.g. "DetectIntentResponseId")
6424	// to include in API requests with the JSON null value. By default,
6425	// fields with empty values are omitted from API requests. However, any
6426	// field with an empty value appearing in NullFields will be sent to the
6427	// server as null. It is an error if a field in this list has a
6428	// non-empty value. This may be used to include null fields in Patch
6429	// requests.
6430	NullFields []string `json:"-"`
6431}
6432
6433func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
6434	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
6435	raw := NoMethod(*s)
6436	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6437}
6438
6439// GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo:
6440// Represents fulfillment information communicated to the webhook.
6441type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
6442	// Tag: Always present. The tag used to identify which fulfillment is
6443	// being called.
6444	Tag string `json:"tag,omitempty"`
6445
6446	// ForceSendFields is a list of field names (e.g. "Tag") to
6447	// unconditionally include in API requests. By default, fields with
6448	// empty values are omitted from API requests. However, any non-pointer,
6449	// non-interface field appearing in ForceSendFields will be sent to the
6450	// server regardless of whether the field is empty or not. This may be
6451	// used to include empty fields in Patch requests.
6452	ForceSendFields []string `json:"-"`
6453
6454	// NullFields is a list of field names (e.g. "Tag") to include in API
6455	// requests with the JSON null value. By default, fields with empty
6456	// values are omitted from API requests. However, any field with an
6457	// empty value appearing in NullFields will be sent to the server as
6458	// null. It is an error if a field in this list has a non-empty value.
6459	// This may be used to include null fields in Patch requests.
6460	NullFields []string `json:"-"`
6461}
6462
6463func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
6464	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
6465	raw := NoMethod(*s)
6466	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6467}
6468
6469// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents
6470// intent information communicated to the webhook.
6471type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
6472	// Confidence: The confidence of the matched intent. Values range from
6473	// 0.0 (completely uncertain) to 1.0 (completely certain).
6474	Confidence float64 `json:"confidence,omitempty"`
6475
6476	// DisplayName: Always present. The display name of the last matched
6477	// intent.
6478	DisplayName string `json:"displayName,omitempty"`
6479
6480	// LastMatchedIntent: Always present. The unique identifier of the last
6481	// matched intent. Format: `projects//locations//agents//intents/`.
6482	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
6483
6484	// Parameters: Parameters identified as a result of intent matching.
6485	// This is a map of the name of the identified parameter to the value of
6486	// the parameter identified from the user's utterance. All parameters
6487	// defined in the matched intent that are identified will be surfaced
6488	// here.
6489	Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
6490
6491	// ForceSendFields is a list of field names (e.g. "Confidence") to
6492	// unconditionally include in API requests. By default, fields with
6493	// empty values are omitted from API requests. However, any non-pointer,
6494	// non-interface field appearing in ForceSendFields will be sent to the
6495	// server regardless of whether the field is empty or not. This may be
6496	// used to include empty fields in Patch requests.
6497	ForceSendFields []string `json:"-"`
6498
6499	// NullFields is a list of field names (e.g. "Confidence") to include in
6500	// API requests with the JSON null value. By default, fields with empty
6501	// values are omitted from API requests. However, any field with an
6502	// empty value appearing in NullFields will be sent to the server as
6503	// null. It is an error if a field in this list has a non-empty value.
6504	// This may be used to include null fields in Patch requests.
6505	NullFields []string `json:"-"`
6506}
6507
6508func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
6509	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
6510	raw := NoMethod(*s)
6511	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6512}
6513
6514func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
6515	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
6516	var s1 struct {
6517		Confidence gensupport.JSONFloat64 `json:"confidence"`
6518		*NoMethod
6519	}
6520	s1.NoMethod = (*NoMethod)(s)
6521	if err := json.Unmarshal(data, &s1); err != nil {
6522		return err
6523	}
6524	s.Confidence = float64(s1.Confidence)
6525	return nil
6526}
6527
6528// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterV
6529// alue: Represents a value for an intent parameter.
6530type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
6531	// OriginalValue: Always present. Original text value extracted from
6532	// user utterance.
6533	OriginalValue string `json:"originalValue,omitempty"`
6534
6535	// ResolvedValue: Always present. Structured value for the parameter
6536	// extracted from user utterance.
6537	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
6538
6539	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
6540	// unconditionally include in API requests. By default, fields with
6541	// empty values are omitted from API requests. However, any non-pointer,
6542	// non-interface field appearing in ForceSendFields will be sent to the
6543	// server regardless of whether the field is empty or not. This may be
6544	// used to include empty fields in Patch requests.
6545	ForceSendFields []string `json:"-"`
6546
6547	// NullFields is a list of field names (e.g. "OriginalValue") to include
6548	// in API requests with the JSON null value. By default, fields with
6549	// empty values are omitted from API requests. However, any field with
6550	// an empty value appearing in NullFields will be sent to the server as
6551	// null. It is an error if a field in this list has a non-empty value.
6552	// This may be used to include null fields in Patch requests.
6553	NullFields []string `json:"-"`
6554}
6555
6556func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
6557	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
6558	raw := NoMethod(*s)
6559	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6560}
6561
6562// GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult:
6563// Represents the result of sentiment analysis.
6564type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
6565	// Magnitude: A non-negative number in the [0, +inf) range, which
6566	// represents the absolute magnitude of sentiment, regardless of score
6567	// (positive or negative).
6568	Magnitude float64 `json:"magnitude,omitempty"`
6569
6570	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
6571	// (positive sentiment).
6572	Score float64 `json:"score,omitempty"`
6573
6574	// ForceSendFields is a list of field names (e.g. "Magnitude") to
6575	// unconditionally include in API requests. By default, fields with
6576	// empty values are omitted from API requests. However, any non-pointer,
6577	// non-interface field appearing in ForceSendFields will be sent to the
6578	// server regardless of whether the field is empty or not. This may be
6579	// used to include empty fields in Patch requests.
6580	ForceSendFields []string `json:"-"`
6581
6582	// NullFields is a list of field names (e.g. "Magnitude") to include in
6583	// API requests with the JSON null value. By default, fields with empty
6584	// values are omitted from API requests. However, any field with an
6585	// empty value appearing in NullFields will be sent to the server as
6586	// null. It is an error if a field in this list has a non-empty value.
6587	// This may be used to include null fields in Patch requests.
6588	NullFields []string `json:"-"`
6589}
6590
6591func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
6592	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
6593	raw := NoMethod(*s)
6594	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6595}
6596
6597func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
6598	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
6599	var s1 struct {
6600		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
6601		Score     gensupport.JSONFloat64 `json:"score"`
6602		*NoMethod
6603	}
6604	s1.NoMethod = (*NoMethod)(s)
6605	if err := json.Unmarshal(data, &s1); err != nil {
6606		return err
6607	}
6608	s.Magnitude = float64(s1.Magnitude)
6609	s.Score = float64(s1.Score)
6610	return nil
6611}
6612
6613// GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message
6614// for a webhook call.
6615type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
6616	// FulfillmentResponse: The fulfillment response to send to the user.
6617	// This field can be omitted by the webhook if it does not intend to
6618	// send any response to the user.
6619	FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
6620
6621	// PageInfo: Information about page status. This field can be omitted by
6622	// the webhook if it does not intend to modify page status.
6623	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
6624
6625	// Payload: Value to append directly to QueryResult.webhook_payloads.
6626	Payload googleapi.RawMessage `json:"payload,omitempty"`
6627
6628	// SessionInfo: Information about session status. This field can be
6629	// omitted by the webhook if it does not intend to modify session
6630	// status.
6631	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
6632
6633	// TargetFlow: The target flow to transition to. Format:
6634	// `projects//locations//agents//flows/`.
6635	TargetFlow string `json:"targetFlow,omitempty"`
6636
6637	// TargetPage: The target page to transition to. Format:
6638	// `projects//locations//agents//flows//pages/`.
6639	TargetPage string `json:"targetPage,omitempty"`
6640
6641	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse")
6642	// to unconditionally include in API requests. By default, fields with
6643	// empty values are omitted from API requests. However, any non-pointer,
6644	// non-interface field appearing in ForceSendFields will be sent to the
6645	// server regardless of whether the field is empty or not. This may be
6646	// used to include empty fields in Patch requests.
6647	ForceSendFields []string `json:"-"`
6648
6649	// NullFields is a list of field names (e.g. "FulfillmentResponse") to
6650	// include in API requests with the JSON null value. By default, fields
6651	// with empty values are omitted from API requests. However, any field
6652	// with an empty value appearing in NullFields will be sent to the
6653	// server as null. It is an error if a field in this list has a
6654	// non-empty value. This may be used to include null fields in Patch
6655	// requests.
6656	NullFields []string `json:"-"`
6657}
6658
6659func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
6660	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
6661	raw := NoMethod(*s)
6662	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6663}
6664
6665// GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse:
6666// Represents a fulfillment response to the user.
6667type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
6668	// MergeBehavior: Merge behavior for `messages`.
6669	//
6670	// Possible values:
6671	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be
6672	// used.
6673	//   "APPEND" - `messages` will be appended to the list of messages
6674	// waiting to be sent to the user.
6675	//   "REPLACE" - `messages` will replace the list of messages waiting to
6676	// be sent to the user.
6677	MergeBehavior string `json:"mergeBehavior,omitempty"`
6678
6679	// Messages: The list of rich message responses to present to the user.
6680	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
6681
6682	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
6683	// unconditionally include in API requests. By default, fields with
6684	// empty values are omitted from API requests. However, any non-pointer,
6685	// non-interface field appearing in ForceSendFields will be sent to the
6686	// server regardless of whether the field is empty or not. This may be
6687	// used to include empty fields in Patch requests.
6688	ForceSendFields []string `json:"-"`
6689
6690	// NullFields is a list of field names (e.g. "MergeBehavior") to include
6691	// in API requests with the JSON null value. By default, fields with
6692	// empty values are omitted from API requests. However, any field with
6693	// an empty value appearing in NullFields will be sent to the server as
6694	// null. It is an error if a field in this list has a non-empty value.
6695	// This may be used to include null fields in Patch requests.
6696	NullFields []string `json:"-"`
6697}
6698
6699func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
6700	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
6701	raw := NoMethod(*s)
6702	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6703}
6704
6705// GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a
6706// message possibly annotated with an entity. The part can be an entity
6707// or purely a part of the message between two entities or message
6708// start/end.
6709type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
6710	// EntityType: The Dialogflow system entity type
6711	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
6712	// of this message part. If this is empty, Dialogflow could not annotate
6713	// the phrase part with a system entity.
6714	EntityType string `json:"entityType,omitempty"`
6715
6716	// FormattedValue: The Dialogflow system entity formatted value
6717	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
6718	// of this message part. For example for a system entity of type
6719	// `@sys.unit-currency`, this may contain: { "amount": 5, "currency":
6720	// "USD" }
6721	FormattedValue interface{} `json:"formattedValue,omitempty"`
6722
6723	// Text: A part of a message possibly annotated with an entity.
6724	Text string `json:"text,omitempty"`
6725
6726	// ForceSendFields is a list of field names (e.g. "EntityType") to
6727	// unconditionally include in API requests. By default, fields with
6728	// empty values are omitted from API requests. However, any non-pointer,
6729	// non-interface field appearing in ForceSendFields will be sent to the
6730	// server regardless of whether the field is empty or not. This may be
6731	// used to include empty fields in Patch requests.
6732	ForceSendFields []string `json:"-"`
6733
6734	// NullFields is a list of field names (e.g. "EntityType") to include in
6735	// API requests with the JSON null value. By default, fields with empty
6736	// values are omitted from API requests. However, any field with an
6737	// empty value appearing in NullFields will be sent to the server as
6738	// null. It is an error if a field in this list has a non-empty value.
6739	// This may be used to include null fields in Patch requests.
6740	NullFields []string `json:"-"`
6741}
6742
6743func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
6744	type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
6745	raw := NoMethod(*s)
6746	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6747}
6748
6749// GoogleCloudDialogflowV2ArticleAnswer: Represents article answer.
6750type GoogleCloudDialogflowV2ArticleAnswer struct {
6751	// AnswerRecord: The name of answer record, in the format of
6752	// "projects//locations//answerRecords/"
6753	AnswerRecord string `json:"answerRecord,omitempty"`
6754
6755	// Confidence: Article match confidence. The system's confidence score
6756	// that this article is a good match for this conversation, as a value
6757	// from 0.0 (completely uncertain) to 1.0 (completely certain).
6758	Confidence float64 `json:"confidence,omitempty"`
6759
6760	// Metadata: A map that contains metadata about the answer and the
6761	// document from which it originates.
6762	Metadata map[string]string `json:"metadata,omitempty"`
6763
6764	// Snippets: Article snippets.
6765	Snippets []string `json:"snippets,omitempty"`
6766
6767	// Title: The article title.
6768	Title string `json:"title,omitempty"`
6769
6770	// Uri: The article URI.
6771	Uri string `json:"uri,omitempty"`
6772
6773	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
6774	// unconditionally include in API requests. By default, fields with
6775	// empty values are omitted from API requests. However, any non-pointer,
6776	// non-interface field appearing in ForceSendFields will be sent to the
6777	// server regardless of whether the field is empty or not. This may be
6778	// used to include empty fields in Patch requests.
6779	ForceSendFields []string `json:"-"`
6780
6781	// NullFields is a list of field names (e.g. "AnswerRecord") to include
6782	// in API requests with the JSON null value. By default, fields with
6783	// empty values are omitted from API requests. However, any field with
6784	// an empty value appearing in NullFields will be sent to the server as
6785	// null. It is an error if a field in this list has a non-empty value.
6786	// This may be used to include null fields in Patch requests.
6787	NullFields []string `json:"-"`
6788}
6789
6790func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
6791	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
6792	raw := NoMethod(*s)
6793	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6794}
6795
6796func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
6797	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
6798	var s1 struct {
6799		Confidence gensupport.JSONFloat64 `json:"confidence"`
6800		*NoMethod
6801	}
6802	s1.NoMethod = (*NoMethod)(s)
6803	if err := json.Unmarshal(data, &s1); err != nil {
6804		return err
6805	}
6806	s.Confidence = float64(s1.Confidence)
6807	return nil
6808}
6809
6810// GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response
6811// message for EntityTypes.BatchUpdateEntityTypes.
6812type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
6813	// EntityTypes: The collection of updated or created entity types.
6814	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
6815
6816	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
6817	// unconditionally include in API requests. By default, fields with
6818	// empty values are omitted from API requests. However, any non-pointer,
6819	// non-interface field appearing in ForceSendFields will be sent to the
6820	// server regardless of whether the field is empty or not. This may be
6821	// used to include empty fields in Patch requests.
6822	ForceSendFields []string `json:"-"`
6823
6824	// NullFields is a list of field names (e.g. "EntityTypes") to include
6825	// in API requests with the JSON null value. By default, fields with
6826	// empty values are omitted from API requests. However, any field with
6827	// an empty value appearing in NullFields will be sent to the server as
6828	// null. It is an error if a field in this list has a non-empty value.
6829	// This may be used to include null fields in Patch requests.
6830	NullFields []string `json:"-"`
6831}
6832
6833func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
6834	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
6835	raw := NoMethod(*s)
6836	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6837}
6838
6839// GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response
6840// message for Intents.BatchUpdateIntents.
6841type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
6842	// Intents: The collection of updated or created intents.
6843	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
6844
6845	// ForceSendFields is a list of field names (e.g. "Intents") to
6846	// unconditionally include in API requests. By default, fields with
6847	// empty values are omitted from API requests. However, any non-pointer,
6848	// non-interface field appearing in ForceSendFields will be sent to the
6849	// server regardless of whether the field is empty or not. This may be
6850	// used to include empty fields in Patch requests.
6851	ForceSendFields []string `json:"-"`
6852
6853	// NullFields is a list of field names (e.g. "Intents") to include in
6854	// API requests with the JSON null value. By default, fields with empty
6855	// values are omitted from API requests. However, any field with an
6856	// empty value appearing in NullFields will be sent to the server as
6857	// null. It is an error if a field in this list has a non-empty value.
6858	// This may be used to include null fields in Patch requests.
6859	NullFields []string `json:"-"`
6860}
6861
6862func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
6863	type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
6864	raw := NoMethod(*s)
6865	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6866}
6867
6868// GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to
6869// natural language context. If a person says to you "they are orange",
6870// you need context in order to understand what "they" is referring to.
6871// Similarly, for Dialogflow to handle an end-user expression like that,
6872// it needs to be provided with context in order to correctly match an
6873// intent. Using contexts, you can control the flow of a conversation.
6874// You can configure contexts for an intent by setting input and output
6875// contexts, which are identified by string names. When an intent is
6876// matched, any configured output contexts for that intent become
6877// active. While any contexts are active, Dialogflow is more likely to
6878// match intents that are configured with input contexts that correspond
6879// to the currently active contexts. For more information about context,
6880// see the Contexts guide
6881// (https://cloud.google.com/dialogflow/docs/contexts-overview).
6882type GoogleCloudDialogflowV2Context struct {
6883	// LifespanCount: Optional. The number of conversational query requests
6884	// after which the context expires. The default is `0`. If set to `0`,
6885	// the context expires immediately. Contexts expire automatically after
6886	// 20 minutes if there are no matching queries.
6887	LifespanCount int64 `json:"lifespanCount,omitempty"`
6888
6889	// Name: Required. The unique identifier of the context. Format:
6890	// `projects//agent/sessions//contexts/`, or
6891	// `projects//agent/environments//users//sessions//contexts/`. The
6892	// `Context ID` is always converted to lowercase, may only contain
6893	// characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If
6894	// `Environment ID` is not specified, we assume default 'draft'
6895	// environment. If `User ID` is not specified, we assume default '-'
6896	// user. The following context names are reserved for internal use by
6897	// Dialogflow. You should not use these contexts or create contexts with
6898	// these names: * `__system_counters__` * `*_id_dialog_context` *
6899	// `*_dialog_params_size`
6900	Name string `json:"name,omitempty"`
6901
6902	// Parameters: Optional. The collection of parameters associated with
6903	// this context. Depending on your protocol or client library language,
6904	// this is a map, associative array, symbol table, dictionary, or JSON
6905	// object composed of a collection of (MapKey, MapValue) pairs: - MapKey
6906	// type: string - MapKey value: parameter name - MapValue type: - If
6907	// parameter's entity type is a composite entity: map - Else: depending
6908	// on parameter value type, could be one of string, number, boolean,
6909	// null, list or map - MapValue value: - If parameter's entity type is a
6910	// composite entity: map from composite entity property names to
6911	// property values - Else: parameter value
6912	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
6913
6914	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
6915	// unconditionally include in API requests. By default, fields with
6916	// empty values are omitted from API requests. However, any non-pointer,
6917	// non-interface field appearing in ForceSendFields will be sent to the
6918	// server regardless of whether the field is empty or not. This may be
6919	// used to include empty fields in Patch requests.
6920	ForceSendFields []string `json:"-"`
6921
6922	// NullFields is a list of field names (e.g. "LifespanCount") to include
6923	// in API requests with the JSON null value. By default, fields with
6924	// empty values are omitted from API requests. However, any field with
6925	// an empty value appearing in NullFields will be sent to the server as
6926	// null. It is an error if a field in this list has a non-empty value.
6927	// This may be used to include null fields in Patch requests.
6928	NullFields []string `json:"-"`
6929}
6930
6931func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
6932	type NoMethod GoogleCloudDialogflowV2Context
6933	raw := NoMethod(*s)
6934	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6935}
6936
6937// GoogleCloudDialogflowV2ConversationEvent: Represents a notification
6938// sent to Pub/Sub subscribers for conversation lifecycle events.
6939type GoogleCloudDialogflowV2ConversationEvent struct {
6940	// Conversation: The unique identifier of the conversation this
6941	// notification refers to. Format: `projects//conversations/`.
6942	Conversation string `json:"conversation,omitempty"`
6943
6944	// ErrorStatus: More detailed information about an error. Only set for
6945	// type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
6946	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
6947
6948	// NewMessagePayload: Payload of NEW_MESSAGE event.
6949	NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
6950
6951	// Type: The type of the event that this notification refers to.
6952	//
6953	// Possible values:
6954	//   "TYPE_UNSPECIFIED" - Type not set.
6955	//   "CONVERSATION_STARTED" - A new conversation has been opened. This
6956	// is fired when a telephone call is answered, or a conversation is
6957	// created via the API.
6958	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This
6959	// is fired when a telephone call is terminated, or a conversation is
6960	// closed via the API.
6961	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
6962	// notification from Dialogflow that human intervention is required.
6963	//   "NEW_MESSAGE" - An existing conversation has received a new
6964	// message, either from API or telephony. It is configured in
6965	// ConversationProfile.new_message_event_notification_config
6966	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone
6967	// call. In general non-recoverable errors only occur if something was
6968	// misconfigured in the ConversationProfile corresponding to the call.
6969	// After a non-recoverable error, Dialogflow may stop responding. We
6970	// don't fire this event: * in an API call because we can directly
6971	// return the error, or, * when we can recover from an error.
6972	Type string `json:"type,omitempty"`
6973
6974	// ForceSendFields is a list of field names (e.g. "Conversation") to
6975	// unconditionally include in API requests. By default, fields with
6976	// empty values are omitted from API requests. However, any non-pointer,
6977	// non-interface field appearing in ForceSendFields will be sent to the
6978	// server regardless of whether the field is empty or not. This may be
6979	// used to include empty fields in Patch requests.
6980	ForceSendFields []string `json:"-"`
6981
6982	// NullFields is a list of field names (e.g. "Conversation") to include
6983	// in API requests with the JSON null value. By default, fields with
6984	// empty values are omitted from API requests. However, any field with
6985	// an empty value appearing in NullFields will be sent to the server as
6986	// null. It is an error if a field in this list has a non-empty value.
6987	// This may be used to include null fields in Patch requests.
6988	NullFields []string `json:"-"`
6989}
6990
6991func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
6992	type NoMethod GoogleCloudDialogflowV2ConversationEvent
6993	raw := NoMethod(*s)
6994	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6995}
6996
6997// GoogleCloudDialogflowV2EntityType: Each intent parameter has a type,
6998// called the entity type, which dictates exactly how data from an
6999// end-user expression is extracted. Dialogflow provides predefined
7000// system entities that can match many common types of data. For
7001// example, there are system entities for matching dates, times, colors,
7002// email addresses, and so on. You can also create your own custom
7003// entities for matching custom data. For example, you could define a
7004// vegetable entity that can match the types of vegetables available for
7005// purchase with a grocery store agent. For more information, see the
7006// Entity guide
7007// (https://cloud.google.com/dialogflow/docs/entities-overview).
7008type GoogleCloudDialogflowV2EntityType struct {
7009	// AutoExpansionMode: Optional. Indicates whether the entity type can be
7010	// automatically expanded.
7011	//
7012	// Possible values:
7013	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
7014	// entity.
7015	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
7016	// that have not been explicitly listed in the entity.
7017	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
7018
7019	// DisplayName: Required. The name of the entity type.
7020	DisplayName string `json:"displayName,omitempty"`
7021
7022	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction
7023	// during classification.
7024	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
7025
7026	// Entities: Optional. The collection of entity entries associated with
7027	// the entity type.
7028	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
7029
7030	// Kind: Required. Indicates the kind of entity type.
7031	//
7032	// Possible values:
7033	//   "KIND_UNSPECIFIED" - Not specified. This value should be never
7034	// used.
7035	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms
7036	// to a reference value.
7037	//   "KIND_LIST" - List entity types contain a set of entries that do
7038	// not map to reference values. However, list entity types can contain
7039	// references to other entity types (with or without aliases).
7040	//   "KIND_REGEXP" - Regexp entity types allow to specify regular
7041	// expressions in entries values.
7042	Kind string `json:"kind,omitempty"`
7043
7044	// Name: The unique identifier of the entity type. Required for
7045	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
7046	// methods. Format: `projects//agent/entityTypes/`.
7047	Name string `json:"name,omitempty"`
7048
7049	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
7050	// to unconditionally include in API requests. By default, fields with
7051	// empty values are omitted from API requests. However, any non-pointer,
7052	// non-interface field appearing in ForceSendFields will be sent to the
7053	// server regardless of whether the field is empty or not. This may be
7054	// used to include empty fields in Patch requests.
7055	ForceSendFields []string `json:"-"`
7056
7057	// NullFields is a list of field names (e.g. "AutoExpansionMode") to
7058	// include in API requests with the JSON null value. By default, fields
7059	// with empty values are omitted from API requests. However, any field
7060	// with an empty value appearing in NullFields will be sent to the
7061	// server as null. It is an error if a field in this list has a
7062	// non-empty value. This may be used to include null fields in Patch
7063	// requests.
7064	NullFields []string `json:"-"`
7065}
7066
7067func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
7068	type NoMethod GoogleCloudDialogflowV2EntityType
7069	raw := NoMethod(*s)
7070	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7071}
7072
7073// GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an
7074// associated entity type.
7075type GoogleCloudDialogflowV2EntityTypeEntity struct {
7076	// Synonyms: Required. A collection of value synonyms. For example, if
7077	// the entity type is *vegetable*, and `value` is *scallions*, a synonym
7078	// could be *green onions*. For `KIND_LIST` entity types: * This
7079	// collection must contain exactly one synonym equal to `value`.
7080	Synonyms []string `json:"synonyms,omitempty"`
7081
7082	// Value: Required. The primary value associated with this entity entry.
7083	// For example, if the entity type is *vegetable*, the value could be
7084	// *scallions*. For `KIND_MAP` entity types: * A reference value to be
7085	// used in place of synonyms. For `KIND_LIST` entity types: * A string
7086	// that can contain references to other entity types (with or without
7087	// aliases).
7088	Value string `json:"value,omitempty"`
7089
7090	// ForceSendFields is a list of field names (e.g. "Synonyms") to
7091	// unconditionally include in API requests. By default, fields with
7092	// empty values are omitted from API requests. However, any non-pointer,
7093	// non-interface field appearing in ForceSendFields will be sent to the
7094	// server regardless of whether the field is empty or not. This may be
7095	// used to include empty fields in Patch requests.
7096	ForceSendFields []string `json:"-"`
7097
7098	// NullFields is a list of field names (e.g. "Synonyms") to include in
7099	// API requests with the JSON null value. By default, fields with empty
7100	// values are omitted from API requests. However, any field with an
7101	// empty value appearing in NullFields will be sent to the server as
7102	// null. It is an error if a field in this list has a non-empty value.
7103	// This may be used to include null fields in Patch requests.
7104	NullFields []string `json:"-"`
7105}
7106
7107func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
7108	type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
7109	raw := NoMethod(*s)
7110	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7111}
7112
7113// GoogleCloudDialogflowV2EventInput: Events allow for matching intents
7114// by event name instead of the natural language input. For instance,
7115// input `` can trigger a personalized welcome response. The parameter
7116// `name` may be used by the agent in the response: "Hello
7117// #welcome_event.name! What can I do for you today?".
7118type GoogleCloudDialogflowV2EventInput struct {
7119	// LanguageCode: Required. The language of this query. See Language
7120	// Support (https://cloud.google.com/dialogflow/docs/reference/language)
7121	// for a list of the currently supported language codes. Note that
7122	// queries in the same session do not necessarily need to specify the
7123	// same language.
7124	LanguageCode string `json:"languageCode,omitempty"`
7125
7126	// Name: Required. The unique identifier of the event.
7127	Name string `json:"name,omitempty"`
7128
7129	// Parameters: The collection of parameters associated with the event.
7130	// Depending on your protocol or client library language, this is a map,
7131	// associative array, symbol table, dictionary, or JSON object composed
7132	// of a collection of (MapKey, MapValue) pairs: - MapKey type: string -
7133	// MapKey value: parameter name - MapValue type: - If parameter's entity
7134	// type is a composite entity: map - Else: depending on parameter value
7135	// type, could be one of string, number, boolean, null, list or map -
7136	// MapValue value: - If parameter's entity type is a composite entity:
7137	// map from composite entity property names to property values - Else:
7138	// parameter value
7139	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
7140
7141	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
7142	// unconditionally include in API requests. By default, fields with
7143	// empty values are omitted from API requests. However, any non-pointer,
7144	// non-interface field appearing in ForceSendFields will be sent to the
7145	// server regardless of whether the field is empty or not. This may be
7146	// used to include empty fields in Patch requests.
7147	ForceSendFields []string `json:"-"`
7148
7149	// NullFields is a list of field names (e.g. "LanguageCode") to include
7150	// in API requests with the JSON null value. By default, fields with
7151	// empty values are omitted from API requests. However, any field with
7152	// an empty value appearing in NullFields will be sent to the server as
7153	// null. It is an error if a field in this list has a non-empty value.
7154	// This may be used to include null fields in Patch requests.
7155	NullFields []string `json:"-"`
7156}
7157
7158func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
7159	type NoMethod GoogleCloudDialogflowV2EventInput
7160	raw := NoMethod(*s)
7161	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7162}
7163
7164// GoogleCloudDialogflowV2ExportAgentResponse: The response message for
7165// Agents.ExportAgent.
7166type GoogleCloudDialogflowV2ExportAgentResponse struct {
7167	// AgentContent: Zip compressed raw byte content for agent.
7168	AgentContent string `json:"agentContent,omitempty"`
7169
7170	// AgentUri: The URI to a file containing the exported agent. This field
7171	// is populated only if `agent_uri` is specified in
7172	// `ExportAgentRequest`.
7173	AgentUri string `json:"agentUri,omitempty"`
7174
7175	// ForceSendFields is a list of field names (e.g. "AgentContent") to
7176	// unconditionally include in API requests. By default, fields with
7177	// empty values are omitted from API requests. However, any non-pointer,
7178	// non-interface field appearing in ForceSendFields will be sent to the
7179	// server regardless of whether the field is empty or not. This may be
7180	// used to include empty fields in Patch requests.
7181	ForceSendFields []string `json:"-"`
7182
7183	// NullFields is a list of field names (e.g. "AgentContent") to include
7184	// in API requests with the JSON null value. By default, fields with
7185	// empty values are omitted from API requests. However, any field with
7186	// an empty value appearing in NullFields will be sent to the server as
7187	// null. It is an error if a field in this list has a non-empty value.
7188	// This may be used to include null fields in Patch requests.
7189	NullFields []string `json:"-"`
7190}
7191
7192func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
7193	type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
7194	raw := NoMethod(*s)
7195	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7196}
7197
7198// GoogleCloudDialogflowV2FaqAnswer: Represents answer from "frequently
7199// asked questions".
7200type GoogleCloudDialogflowV2FaqAnswer struct {
7201	// Answer: The piece of text from the `source` knowledge base document.
7202	Answer string `json:"answer,omitempty"`
7203
7204	// AnswerRecord: The name of answer record, in the format of
7205	// "projects//locations//answerRecords/"
7206	AnswerRecord string `json:"answerRecord,omitempty"`
7207
7208	// Confidence: The system's confidence score that this Knowledge answer
7209	// is a good match for this conversational query, range from 0.0
7210	// (completely uncertain) to 1.0 (completely certain).
7211	Confidence float64 `json:"confidence,omitempty"`
7212
7213	// Metadata: A map that contains metadata about the answer and the
7214	// document from which it originates.
7215	Metadata map[string]string `json:"metadata,omitempty"`
7216
7217	// Question: The corresponding FAQ question.
7218	Question string `json:"question,omitempty"`
7219
7220	// Source: Indicates which Knowledge Document this answer was extracted
7221	// from. Format:
7222	// `projects//locations//agent/knowledgeBases//documents/`.
7223	Source string `json:"source,omitempty"`
7224
7225	// ForceSendFields is a list of field names (e.g. "Answer") to
7226	// unconditionally include in API requests. By default, fields with
7227	// empty values are omitted from API requests. However, any non-pointer,
7228	// non-interface field appearing in ForceSendFields will be sent to the
7229	// server regardless of whether the field is empty or not. This may be
7230	// used to include empty fields in Patch requests.
7231	ForceSendFields []string `json:"-"`
7232
7233	// NullFields is a list of field names (e.g. "Answer") to include in API
7234	// requests with the JSON null value. By default, fields with empty
7235	// values are omitted from API requests. However, any field with an
7236	// empty value appearing in NullFields will be sent to the server as
7237	// null. It is an error if a field in this list has a non-empty value.
7238	// This may be used to include null fields in Patch requests.
7239	NullFields []string `json:"-"`
7240}
7241
7242func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
7243	type NoMethod GoogleCloudDialogflowV2FaqAnswer
7244	raw := NoMethod(*s)
7245	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7246}
7247
7248func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
7249	type NoMethod GoogleCloudDialogflowV2FaqAnswer
7250	var s1 struct {
7251		Confidence gensupport.JSONFloat64 `json:"confidence"`
7252		*NoMethod
7253	}
7254	s1.NoMethod = (*NoMethod)(s)
7255	if err := json.Unmarshal(data, &s1); err != nil {
7256		return err
7257	}
7258	s.Confidence = float64(s1.Confidence)
7259	return nil
7260}
7261
7262// GoogleCloudDialogflowV2HumanAgentAssistantEvent: Represents a
7263// notification sent to Cloud Pub/Sub subscribers for human agent
7264// assistant events in a specific conversation.
7265type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
7266	// Conversation: The conversation this notification refers to. Format:
7267	// `projects//conversations/`.
7268	Conversation string `json:"conversation,omitempty"`
7269
7270	// Participant: The participant that the suggestion is compiled for.
7271	// Format: `projects//conversations//participants/`. It will not be set
7272	// in legacy workflow.
7273	Participant string `json:"participant,omitempty"`
7274
7275	// SuggestionResults: The suggestion results payload that this
7276	// notification refers to.
7277	SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
7278
7279	// ForceSendFields is a list of field names (e.g. "Conversation") to
7280	// unconditionally include in API requests. By default, fields with
7281	// empty values are omitted from API requests. However, any non-pointer,
7282	// non-interface field appearing in ForceSendFields will be sent to the
7283	// server regardless of whether the field is empty or not. This may be
7284	// used to include empty fields in Patch requests.
7285	ForceSendFields []string `json:"-"`
7286
7287	// NullFields is a list of field names (e.g. "Conversation") to include
7288	// in API requests with the JSON null value. By default, fields with
7289	// empty values are omitted from API requests. However, any field with
7290	// an empty value appearing in NullFields will be sent to the server as
7291	// null. It is an error if a field in this list has a non-empty value.
7292	// This may be used to include null fields in Patch requests.
7293	NullFields []string `json:"-"`
7294}
7295
7296func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
7297	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
7298	raw := NoMethod(*s)
7299	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7300}
7301
7302// GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's
7303// intention for one conversation turn. For each agent, you define many
7304// intents, where your combined intents can handle a complete
7305// conversation. When an end-user writes or says something, referred to
7306// as an end-user expression or end-user input, Dialogflow matches the
7307// end-user input to the best intent in your agent. Matching an intent
7308// is also known as intent classification. For more information, see the
7309// intent guide
7310// (https://cloud.google.com/dialogflow/docs/intents-overview).
7311type GoogleCloudDialogflowV2Intent struct {
7312	// Action: Optional. The name of the action associated with the intent.
7313	// Note: The action name must not contain whitespaces.
7314	Action string `json:"action,omitempty"`
7315
7316	// DefaultResponsePlatforms: Optional. The list of platforms for which
7317	// the first responses will be copied from the messages in
7318	// PLATFORM_UNSPECIFIED (i.e. default platform).
7319	//
7320	// Possible values:
7321	//   "PLATFORM_UNSPECIFIED" - Default platform.
7322	//   "FACEBOOK" - Facebook.
7323	//   "SLACK" - Slack.
7324	//   "TELEGRAM" - Telegram.
7325	//   "KIK" - Kik.
7326	//   "SKYPE" - Skype.
7327	//   "LINE" - Line.
7328	//   "VIBER" - Viber.
7329	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
7330	// format](https://developers.google.com/assistant/actions/build/json/dia
7331	// logflow-webhook-json)
7332	//   "GOOGLE_HANGOUTS" - Google Hangouts.
7333	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
7334
7335	// DisplayName: Required. The name of this intent.
7336	DisplayName string `json:"displayName,omitempty"`
7337
7338	// EndInteraction: Optional. Indicates that this intent ends an
7339	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
7340	// phone gateway) use this information to close interaction with an end
7341	// user. Default is false.
7342	EndInteraction bool `json:"endInteraction,omitempty"`
7343
7344	// Events: Optional. The collection of event names that trigger the
7345	// intent. If the collection of input contexts is not empty, all of the
7346	// contexts must be present in the active user session for an event to
7347	// trigger this intent. Event names are limited to 150 characters.
7348	Events []string `json:"events,omitempty"`
7349
7350	// FollowupIntentInfo: Read-only. Information about all followup intents
7351	// that have this intent as a direct or indirect parent. We populate
7352	// this field only in the output.
7353	FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
7354
7355	// InputContextNames: Optional. The list of context names required for
7356	// this intent to be triggered. Format:
7357	// `projects//agent/sessions/-/contexts/`.
7358	InputContextNames []string `json:"inputContextNames,omitempty"`
7359
7360	// IsFallback: Optional. Indicates whether this is a fallback intent.
7361	IsFallback bool `json:"isFallback,omitempty"`
7362
7363	// LiveAgentHandoff: Optional. Indicates that a live agent should be
7364	// brought in to handle the interaction with the user. In most cases,
7365	// when you set this flag to true, you would also want to set
7366	// end_interaction to true as well. Default is false.
7367	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
7368
7369	// Messages: Optional. The collection of rich messages corresponding to
7370	// the `Response` field in the Dialogflow console.
7371	Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
7372
7373	// MlDisabled: Optional. Indicates whether Machine Learning is disabled
7374	// for the intent. Note: If `ml_disabled` setting is set to true, then
7375	// this intent is not taken into account during inference in `ML ONLY`
7376	// match mode. Also, auto-markup in the UI is turned off.
7377	MlDisabled bool `json:"mlDisabled,omitempty"`
7378
7379	// Name: Optional. The unique identifier of this intent. Required for
7380	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
7381	// `projects//agent/intents/`.
7382	Name string `json:"name,omitempty"`
7383
7384	// OutputContexts: Optional. The collection of contexts that are
7385	// activated when the intent is matched. Context messages in this
7386	// collection should not set the parameters field. Setting the
7387	// `lifespan_count` to 0 will reset the context when the intent is
7388	// matched. Format: `projects//agent/sessions/-/contexts/`.
7389	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
7390
7391	// Parameters: Optional. The collection of parameters associated with
7392	// the intent.
7393	Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
7394
7395	// ParentFollowupIntentName: Read-only after creation. The unique
7396	// identifier of the parent intent in the chain of followup intents. You
7397	// can set this field when creating an intent, for example with
7398	// CreateIntent or BatchUpdateIntents, in order to make this intent a
7399	// followup intent. It identifies the parent followup intent. Format:
7400	// `projects//agent/intents/`.
7401	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
7402
7403	// Priority: Optional. The priority of this intent. Higher numbers
7404	// represent higher priorities. - If the supplied value is unspecified
7405	// or 0, the service translates the value to 500,000, which corresponds
7406	// to the `Normal` priority in the console. - If the supplied value is
7407	// negative, the intent is ignored in runtime detect intent requests.
7408	Priority int64 `json:"priority,omitempty"`
7409
7410	// ResetContexts: Optional. Indicates whether to delete all contexts in
7411	// the current session when this intent is matched.
7412	ResetContexts bool `json:"resetContexts,omitempty"`
7413
7414	// RootFollowupIntentName: Read-only. The unique identifier of the root
7415	// intent in the chain of followup intents. It identifies the correct
7416	// followup intents chain for this intent. We populate this field only
7417	// in the output. Format: `projects//agent/intents/`.
7418	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
7419
7420	// TrainingPhrases: Optional. The collection of examples that the agent
7421	// is trained on.
7422	TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
7423
7424	// WebhookState: Optional. Indicates whether webhooks are enabled for
7425	// the intent.
7426	//
7427	// Possible values:
7428	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and
7429	// in the intent.
7430	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in
7431	// the intent.
7432	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in
7433	// the agent and in the intent. Also, each slot filling prompt is
7434	// forwarded to the webhook.
7435	WebhookState string `json:"webhookState,omitempty"`
7436
7437	// ForceSendFields is a list of field names (e.g. "Action") to
7438	// unconditionally include in API requests. By default, fields with
7439	// empty values are omitted from API requests. However, any non-pointer,
7440	// non-interface field appearing in ForceSendFields will be sent to the
7441	// server regardless of whether the field is empty or not. This may be
7442	// used to include empty fields in Patch requests.
7443	ForceSendFields []string `json:"-"`
7444
7445	// NullFields is a list of field names (e.g. "Action") to include in API
7446	// requests with the JSON null value. By default, fields with empty
7447	// values are omitted from API requests. However, any field with an
7448	// empty value appearing in NullFields will be sent to the server as
7449	// null. It is an error if a field in this list has a non-empty value.
7450	// This may be used to include null fields in Patch requests.
7451	NullFields []string `json:"-"`
7452}
7453
7454func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
7455	type NoMethod GoogleCloudDialogflowV2Intent
7456	raw := NoMethod(*s)
7457	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7458}
7459
7460// GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single
7461// followup intent in the chain.
7462type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
7463	// FollowupIntentName: The unique identifier of the followup intent.
7464	// Format: `projects//agent/intents/`.
7465	FollowupIntentName string `json:"followupIntentName,omitempty"`
7466
7467	// ParentFollowupIntentName: The unique identifier of the followup
7468	// intent's parent. Format: `projects//agent/intents/`.
7469	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
7470
7471	// ForceSendFields is a list of field names (e.g. "FollowupIntentName")
7472	// to unconditionally include in API requests. By default, fields with
7473	// empty values are omitted from API requests. However, any non-pointer,
7474	// non-interface field appearing in ForceSendFields will be sent to the
7475	// server regardless of whether the field is empty or not. This may be
7476	// used to include empty fields in Patch requests.
7477	ForceSendFields []string `json:"-"`
7478
7479	// NullFields is a list of field names (e.g. "FollowupIntentName") to
7480	// include in API requests with the JSON null value. By default, fields
7481	// with empty values are omitted from API requests. However, any field
7482	// with an empty value appearing in NullFields will be sent to the
7483	// server as null. It is an error if a field in this list has a
7484	// non-empty value. This may be used to include null fields in Patch
7485	// requests.
7486	NullFields []string `json:"-"`
7487}
7488
7489func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
7490	type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
7491	raw := NoMethod(*s)
7492	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7493}
7494
7495// GoogleCloudDialogflowV2IntentMessage: A rich response message.
7496// Corresponds to the intent `Response` field in the Dialogflow console.
7497// For more information, see Rich response messages
7498// (https://cloud.google.com/dialogflow/docs/intents-rich-messages).
7499type GoogleCloudDialogflowV2IntentMessage struct {
7500	// BasicCard: The basic card response for Actions on Google.
7501	BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
7502
7503	// BrowseCarouselCard: Browse carousel card for Actions on Google.
7504	BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
7505
7506	// Card: The card response.
7507	Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
7508
7509	// CarouselSelect: The carousel card response for Actions on Google.
7510	CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
7511
7512	// Image: The image response.
7513	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7514
7515	// LinkOutSuggestion: The link out suggestion chip for Actions on
7516	// Google.
7517	LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
7518
7519	// ListSelect: The list card response for Actions on Google.
7520	ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
7521
7522	// MediaContent: The media content card for Actions on Google.
7523	MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
7524
7525	// Payload: A custom platform-specific response.
7526	Payload googleapi.RawMessage `json:"payload,omitempty"`
7527
7528	// Platform: Optional. The platform that this message is intended for.
7529	//
7530	// Possible values:
7531	//   "PLATFORM_UNSPECIFIED" - Default platform.
7532	//   "FACEBOOK" - Facebook.
7533	//   "SLACK" - Slack.
7534	//   "TELEGRAM" - Telegram.
7535	//   "KIK" - Kik.
7536	//   "SKYPE" - Skype.
7537	//   "LINE" - Line.
7538	//   "VIBER" - Viber.
7539	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
7540	// format](https://developers.google.com/assistant/actions/build/json/dia
7541	// logflow-webhook-json)
7542	//   "GOOGLE_HANGOUTS" - Google Hangouts.
7543	Platform string `json:"platform,omitempty"`
7544
7545	// QuickReplies: The quick replies response.
7546	QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
7547
7548	// SimpleResponses: The voice and text-only responses for Actions on
7549	// Google.
7550	SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
7551
7552	// Suggestions: The suggestion chips for Actions on Google.
7553	Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
7554
7555	// TableCard: Table card for Actions on Google.
7556	TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
7557
7558	// Text: The text response.
7559	Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
7560
7561	// ForceSendFields is a list of field names (e.g. "BasicCard") to
7562	// unconditionally include in API requests. By default, fields with
7563	// empty values are omitted from API requests. However, any non-pointer,
7564	// non-interface field appearing in ForceSendFields will be sent to the
7565	// server regardless of whether the field is empty or not. This may be
7566	// used to include empty fields in Patch requests.
7567	ForceSendFields []string `json:"-"`
7568
7569	// NullFields is a list of field names (e.g. "BasicCard") to include in
7570	// API requests with the JSON null value. By default, fields with empty
7571	// values are omitted from API requests. However, any field with an
7572	// empty value appearing in NullFields will be sent to the server as
7573	// null. It is an error if a field in this list has a non-empty value.
7574	// This may be used to include null fields in Patch requests.
7575	NullFields []string `json:"-"`
7576}
7577
7578func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
7579	type NoMethod GoogleCloudDialogflowV2IntentMessage
7580	raw := NoMethod(*s)
7581	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7582}
7583
7584// GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card
7585// message. Useful for displaying information.
7586type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
7587	// Buttons: Optional. The collection of card buttons.
7588	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
7589
7590	// FormattedText: Required, unless image is present. The body text of
7591	// the card.
7592	FormattedText string `json:"formattedText,omitempty"`
7593
7594	// Image: Optional. The image for the card.
7595	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7596
7597	// Subtitle: Optional. The subtitle of the card.
7598	Subtitle string `json:"subtitle,omitempty"`
7599
7600	// Title: Optional. The title of the card.
7601	Title string `json:"title,omitempty"`
7602
7603	// ForceSendFields is a list of field names (e.g. "Buttons") to
7604	// unconditionally include in API requests. By default, fields with
7605	// empty values are omitted from API requests. However, any non-pointer,
7606	// non-interface field appearing in ForceSendFields will be sent to the
7607	// server regardless of whether the field is empty or not. This may be
7608	// used to include empty fields in Patch requests.
7609	ForceSendFields []string `json:"-"`
7610
7611	// NullFields is a list of field names (e.g. "Buttons") to include in
7612	// API requests with the JSON null value. By default, fields with empty
7613	// values are omitted from API requests. However, any field with an
7614	// empty value appearing in NullFields will be sent to the server as
7615	// null. It is an error if a field in this list has a non-empty value.
7616	// This may be used to include null fields in Patch requests.
7617	NullFields []string `json:"-"`
7618}
7619
7620func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
7621	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
7622	raw := NoMethod(*s)
7623	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7624}
7625
7626// GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button
7627// object that appears at the bottom of a card.
7628type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
7629	// OpenUriAction: Required. Action to take when a user taps on the
7630	// button.
7631	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
7632
7633	// Title: Required. The title of the button.
7634	Title string `json:"title,omitempty"`
7635
7636	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
7637	// unconditionally include in API requests. By default, fields with
7638	// empty values are omitted from API requests. However, any non-pointer,
7639	// non-interface field appearing in ForceSendFields will be sent to the
7640	// server regardless of whether the field is empty or not. This may be
7641	// used to include empty fields in Patch requests.
7642	ForceSendFields []string `json:"-"`
7643
7644	// NullFields is a list of field names (e.g. "OpenUriAction") to include
7645	// in API requests with the JSON null value. By default, fields with
7646	// empty values are omitted from API requests. However, any field with
7647	// an empty value appearing in NullFields will be sent to the server as
7648	// null. It is an error if a field in this list has a non-empty value.
7649	// This may be used to include null fields in Patch requests.
7650	NullFields []string `json:"-"`
7651}
7652
7653func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
7654	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
7655	raw := NoMethod(*s)
7656	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7657}
7658
7659// GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction:
7660// Opens the given URI.
7661type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
7662	// Uri: Required. The HTTP or HTTPS scheme URI.
7663	Uri string `json:"uri,omitempty"`
7664
7665	// ForceSendFields is a list of field names (e.g. "Uri") to
7666	// unconditionally include in API requests. By default, fields with
7667	// empty values are omitted from API requests. However, any non-pointer,
7668	// non-interface field appearing in ForceSendFields will be sent to the
7669	// server regardless of whether the field is empty or not. This may be
7670	// used to include empty fields in Patch requests.
7671	ForceSendFields []string `json:"-"`
7672
7673	// NullFields is a list of field names (e.g. "Uri") to include in API
7674	// requests with the JSON null value. By default, fields with empty
7675	// values are omitted from API requests. However, any field with an
7676	// empty value appearing in NullFields will be sent to the server as
7677	// null. It is an error if a field in this list has a non-empty value.
7678	// This may be used to include null fields in Patch requests.
7679	NullFields []string `json:"-"`
7680}
7681
7682func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
7683	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
7684	raw := NoMethod(*s)
7685	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7686}
7687
7688// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse
7689// Carousel Card for Actions on Google.
7690// https://developers.google.com/actions/assistant/responses#browsing_carousel
7691type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
7692	// ImageDisplayOptions: Optional. Settings for displaying the image.
7693	// Applies to every image in items.
7694	//
7695	// Possible values:
7696	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the
7697	// image and the image container with gray bars.
7698	//   "GRAY" - Fill the gaps between the image and the image container
7699	// with gray bars.
7700	//   "WHITE" - Fill the gaps between the image and the image container
7701	// with white bars.
7702	//   "CROPPED" - Image is scaled such that the image width and height
7703	// match or exceed the container dimensions. This may crop the top and
7704	// bottom of the image if the scaled image height is greater than the
7705	// container height, or crop the left and right of the image if the
7706	// scaled image width is greater than the container width. This is
7707	// similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video.
7708	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame
7709	// with a blurred copy of the same image.
7710	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
7711
7712	// Items: Required. List of items in the Browse Carousel Card. Minimum
7713	// of two items, maximum of ten.
7714	Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
7715
7716	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions")
7717	// to unconditionally include in API requests. By default, fields with
7718	// empty values are omitted from API requests. However, any non-pointer,
7719	// non-interface field appearing in ForceSendFields will be sent to the
7720	// server regardless of whether the field is empty or not. This may be
7721	// used to include empty fields in Patch requests.
7722	ForceSendFields []string `json:"-"`
7723
7724	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to
7725	// include in API requests with the JSON null value. By default, fields
7726	// with empty values are omitted from API requests. However, any field
7727	// with an empty value appearing in NullFields will be sent to the
7728	// server as null. It is an error if a field in this list has a
7729	// non-empty value. This may be used to include null fields in Patch
7730	// requests.
7731	NullFields []string `json:"-"`
7732}
7733
7734func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
7735	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
7736	raw := NoMethod(*s)
7737	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7738}
7739
7740// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa
7741// rdItem: Browsing carousel tile
7742type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
7743	// Description: Optional. Description of the carousel item. Maximum of
7744	// four lines of text.
7745	Description string `json:"description,omitempty"`
7746
7747	// Footer: Optional. Text that appears at the bottom of the Browse
7748	// Carousel Card. Maximum of one line of text.
7749	Footer string `json:"footer,omitempty"`
7750
7751	// Image: Optional. Hero image for the carousel item.
7752	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7753
7754	// OpenUriAction: Required. Action to present to the user.
7755	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
7756
7757	// Title: Required. Title of the carousel item. Maximum of two lines of
7758	// text.
7759	Title string `json:"title,omitempty"`
7760
7761	// ForceSendFields is a list of field names (e.g. "Description") to
7762	// unconditionally include in API requests. By default, fields with
7763	// empty values are omitted from API requests. However, any non-pointer,
7764	// non-interface field appearing in ForceSendFields will be sent to the
7765	// server regardless of whether the field is empty or not. This may be
7766	// used to include empty fields in Patch requests.
7767	ForceSendFields []string `json:"-"`
7768
7769	// NullFields is a list of field names (e.g. "Description") to include
7770	// in API requests with the JSON null value. By default, fields with
7771	// empty values are omitted from API requests. However, any field with
7772	// an empty value appearing in NullFields will be sent to the server as
7773	// null. It is an error if a field in this list has a non-empty value.
7774	// This may be used to include null fields in Patch requests.
7775	NullFields []string `json:"-"`
7776}
7777
7778func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
7779	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
7780	raw := NoMethod(*s)
7781	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7782}
7783
7784// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa
7785// rdItemOpenUrlAction: Actions on Google action to open a given url.
7786type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
7787	// Url: Required. URL
7788	Url string `json:"url,omitempty"`
7789
7790	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
7791	// opening the URL. Defaults to opening via web browser.
7792	//
7793	// Possible values:
7794	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
7795	//   "AMP_ACTION" - Url would be an amp action
7796	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a
7797	// canonical URL which refers to AMP content via .
7798	UrlTypeHint string `json:"urlTypeHint,omitempty"`
7799
7800	// ForceSendFields is a list of field names (e.g. "Url") to
7801	// unconditionally include in API requests. By default, fields with
7802	// empty values are omitted from API requests. However, any non-pointer,
7803	// non-interface field appearing in ForceSendFields will be sent to the
7804	// server regardless of whether the field is empty or not. This may be
7805	// used to include empty fields in Patch requests.
7806	ForceSendFields []string `json:"-"`
7807
7808	// NullFields is a list of field names (e.g. "Url") to include in API
7809	// requests with the JSON null value. By default, fields with empty
7810	// values are omitted from API requests. However, any field with an
7811	// empty value appearing in NullFields will be sent to the server as
7812	// null. It is an error if a field in this list has a non-empty value.
7813	// This may be used to include null fields in Patch requests.
7814	NullFields []string `json:"-"`
7815}
7816
7817func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
7818	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
7819	raw := NoMethod(*s)
7820	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7821}
7822
7823// GoogleCloudDialogflowV2IntentMessageCard: The card response message.
7824type GoogleCloudDialogflowV2IntentMessageCard struct {
7825	// Buttons: Optional. The collection of card buttons.
7826	Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
7827
7828	// ImageUri: Optional. The public URI to an image file for the card.
7829	ImageUri string `json:"imageUri,omitempty"`
7830
7831	// Subtitle: Optional. The subtitle of the card.
7832	Subtitle string `json:"subtitle,omitempty"`
7833
7834	// Title: Optional. The title of the card.
7835	Title string `json:"title,omitempty"`
7836
7837	// ForceSendFields is a list of field names (e.g. "Buttons") to
7838	// unconditionally include in API requests. By default, fields with
7839	// empty values are omitted from API requests. However, any non-pointer,
7840	// non-interface field appearing in ForceSendFields will be sent to the
7841	// server regardless of whether the field is empty or not. This may be
7842	// used to include empty fields in Patch requests.
7843	ForceSendFields []string `json:"-"`
7844
7845	// NullFields is a list of field names (e.g. "Buttons") to include in
7846	// API requests with the JSON null value. By default, fields with empty
7847	// values are omitted from API requests. However, any field with an
7848	// empty value appearing in NullFields will be sent to the server as
7849	// null. It is an error if a field in this list has a non-empty value.
7850	// This may be used to include null fields in Patch requests.
7851	NullFields []string `json:"-"`
7852}
7853
7854func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
7855	type NoMethod GoogleCloudDialogflowV2IntentMessageCard
7856	raw := NoMethod(*s)
7857	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7858}
7859
7860// GoogleCloudDialogflowV2IntentMessageCardButton: Contains information
7861// about a button.
7862type GoogleCloudDialogflowV2IntentMessageCardButton struct {
7863	// Postback: Optional. The text to send back to the Dialogflow API or a
7864	// URI to open.
7865	Postback string `json:"postback,omitempty"`
7866
7867	// Text: Optional. The text to show on the button.
7868	Text string `json:"text,omitempty"`
7869
7870	// ForceSendFields is a list of field names (e.g. "Postback") to
7871	// unconditionally include in API requests. By default, fields with
7872	// empty values are omitted from API requests. However, any non-pointer,
7873	// non-interface field appearing in ForceSendFields will be sent to the
7874	// server regardless of whether the field is empty or not. This may be
7875	// used to include empty fields in Patch requests.
7876	ForceSendFields []string `json:"-"`
7877
7878	// NullFields is a list of field names (e.g. "Postback") to include in
7879	// API requests with the JSON null value. By default, fields with empty
7880	// values are omitted from API requests. However, any field with an
7881	// empty value appearing in NullFields will be sent to the server as
7882	// null. It is an error if a field in this list has a non-empty value.
7883	// This may be used to include null fields in Patch requests.
7884	NullFields []string `json:"-"`
7885}
7886
7887func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
7888	type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
7889	raw := NoMethod(*s)
7890	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7891}
7892
7893// GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for
7894// presenting a carousel of options to select from.
7895type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
7896	// Items: Required. Carousel items.
7897	Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
7898
7899	// ForceSendFields is a list of field names (e.g. "Items") to
7900	// unconditionally include in API requests. By default, fields with
7901	// empty values are omitted from API requests. However, any non-pointer,
7902	// non-interface field appearing in ForceSendFields will be sent to the
7903	// server regardless of whether the field is empty or not. This may be
7904	// used to include empty fields in Patch requests.
7905	ForceSendFields []string `json:"-"`
7906
7907	// NullFields is a list of field names (e.g. "Items") to include in API
7908	// requests with the JSON null value. By default, fields with empty
7909	// values are omitted from API requests. However, any field with an
7910	// empty value appearing in NullFields will be sent to the server as
7911	// null. It is an error if a field in this list has a non-empty value.
7912	// This may be used to include null fields in Patch requests.
7913	NullFields []string `json:"-"`
7914}
7915
7916func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
7917	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
7918	raw := NoMethod(*s)
7919	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7920}
7921
7922// GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in
7923// the carousel.
7924type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
7925	// Description: Optional. The body text of the card.
7926	Description string `json:"description,omitempty"`
7927
7928	// Image: Optional. The image to display.
7929	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7930
7931	// Info: Required. Additional info about the option item.
7932	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
7933
7934	// Title: Required. Title of the carousel item.
7935	Title string `json:"title,omitempty"`
7936
7937	// ForceSendFields is a list of field names (e.g. "Description") to
7938	// unconditionally include in API requests. By default, fields with
7939	// empty values are omitted from API requests. However, any non-pointer,
7940	// non-interface field appearing in ForceSendFields will be sent to the
7941	// server regardless of whether the field is empty or not. This may be
7942	// used to include empty fields in Patch requests.
7943	ForceSendFields []string `json:"-"`
7944
7945	// NullFields is a list of field names (e.g. "Description") to include
7946	// in API requests with the JSON null value. By default, fields with
7947	// empty values are omitted from API requests. However, any field with
7948	// an empty value appearing in NullFields will be sent to the server as
7949	// null. It is an error if a field in this list has a non-empty value.
7950	// This may be used to include null fields in Patch requests.
7951	NullFields []string `json:"-"`
7952}
7953
7954func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
7955	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
7956	raw := NoMethod(*s)
7957	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7958}
7959
7960// GoogleCloudDialogflowV2IntentMessageColumnProperties: Column
7961// properties for TableCard.
7962type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
7963	// Header: Required. Column heading.
7964	Header string `json:"header,omitempty"`
7965
7966	// HorizontalAlignment: Optional. Defines text alignment for all cells
7967	// in this column.
7968	//
7969	// Possible values:
7970	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading
7971	// edge of the column.
7972	//   "LEADING" - Text is aligned to the leading edge of the column.
7973	//   "CENTER" - Text is centered in the column.
7974	//   "TRAILING" - Text is aligned to the trailing edge of the column.
7975	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
7976
7977	// ForceSendFields is a list of field names (e.g. "Header") to
7978	// unconditionally include in API requests. By default, fields with
7979	// empty values are omitted from API requests. However, any non-pointer,
7980	// non-interface field appearing in ForceSendFields will be sent to the
7981	// server regardless of whether the field is empty or not. This may be
7982	// used to include empty fields in Patch requests.
7983	ForceSendFields []string `json:"-"`
7984
7985	// NullFields is a list of field names (e.g. "Header") to include in API
7986	// requests with the JSON null value. By default, fields with empty
7987	// values are omitted from API requests. However, any field with an
7988	// empty value appearing in NullFields will be sent to the server as
7989	// null. It is an error if a field in this list has a non-empty value.
7990	// This may be used to include null fields in Patch requests.
7991	NullFields []string `json:"-"`
7992}
7993
7994func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
7995	type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
7996	raw := NoMethod(*s)
7997	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7998}
7999
8000// GoogleCloudDialogflowV2IntentMessageImage: The image response
8001// message.
8002type GoogleCloudDialogflowV2IntentMessageImage struct {
8003	// AccessibilityText: Optional. A text description of the image to be
8004	// used for accessibility, e.g., screen readers.
8005	AccessibilityText string `json:"accessibilityText,omitempty"`
8006
8007	// ImageUri: Optional. The public URI to an image file.
8008	ImageUri string `json:"imageUri,omitempty"`
8009
8010	// ForceSendFields is a list of field names (e.g. "AccessibilityText")
8011	// to unconditionally include in API requests. By default, fields with
8012	// empty values are omitted from API requests. However, any non-pointer,
8013	// non-interface field appearing in ForceSendFields will be sent to the
8014	// server regardless of whether the field is empty or not. This may be
8015	// used to include empty fields in Patch requests.
8016	ForceSendFields []string `json:"-"`
8017
8018	// NullFields is a list of field names (e.g. "AccessibilityText") to
8019	// include in API requests with the JSON null value. By default, fields
8020	// with empty values are omitted from API requests. However, any field
8021	// with an empty value appearing in NullFields will be sent to the
8022	// server as null. It is an error if a field in this list has a
8023	// non-empty value. This may be used to include null fields in Patch
8024	// requests.
8025	NullFields []string `json:"-"`
8026}
8027
8028func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
8029	type NoMethod GoogleCloudDialogflowV2IntentMessageImage
8030	raw := NoMethod(*s)
8031	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8032}
8033
8034// GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion
8035// chip message that allows the user to jump out to the app or website
8036// associated with this agent.
8037type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
8038	// DestinationName: Required. The name of the app or site this chip is
8039	// linking to.
8040	DestinationName string `json:"destinationName,omitempty"`
8041
8042	// Uri: Required. The URI of the app or site to open when the user taps
8043	// the suggestion chip.
8044	Uri string `json:"uri,omitempty"`
8045
8046	// ForceSendFields is a list of field names (e.g. "DestinationName") to
8047	// unconditionally include in API requests. By default, fields with
8048	// empty values are omitted from API requests. However, any non-pointer,
8049	// non-interface field appearing in ForceSendFields will be sent to the
8050	// server regardless of whether the field is empty or not. This may be
8051	// used to include empty fields in Patch requests.
8052	ForceSendFields []string `json:"-"`
8053
8054	// NullFields is a list of field names (e.g. "DestinationName") to
8055	// include in API requests with the JSON null value. By default, fields
8056	// with empty values are omitted from API requests. However, any field
8057	// with an empty value appearing in NullFields will be sent to the
8058	// server as null. It is an error if a field in this list has a
8059	// non-empty value. This may be used to include null fields in Patch
8060	// requests.
8061	NullFields []string `json:"-"`
8062}
8063
8064func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
8065	type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
8066	raw := NoMethod(*s)
8067	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8068}
8069
8070// GoogleCloudDialogflowV2IntentMessageListSelect: The card for
8071// presenting a list of options to select from.
8072type GoogleCloudDialogflowV2IntentMessageListSelect struct {
8073	// Items: Required. List items.
8074	Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
8075
8076	// Subtitle: Optional. Subtitle of the list.
8077	Subtitle string `json:"subtitle,omitempty"`
8078
8079	// Title: Optional. The overall title of the list.
8080	Title string `json:"title,omitempty"`
8081
8082	// ForceSendFields is a list of field names (e.g. "Items") to
8083	// unconditionally include in API requests. By default, fields with
8084	// empty values are omitted from API requests. However, any non-pointer,
8085	// non-interface field appearing in ForceSendFields will be sent to the
8086	// server regardless of whether the field is empty or not. This may be
8087	// used to include empty fields in Patch requests.
8088	ForceSendFields []string `json:"-"`
8089
8090	// NullFields is a list of field names (e.g. "Items") to include in API
8091	// requests with the JSON null value. By default, fields with empty
8092	// values are omitted from API requests. However, any field with an
8093	// empty value appearing in NullFields will be sent to the server as
8094	// null. It is an error if a field in this list has a non-empty value.
8095	// This may be used to include null fields in Patch requests.
8096	NullFields []string `json:"-"`
8097}
8098
8099func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
8100	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
8101	raw := NoMethod(*s)
8102	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8103}
8104
8105// GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the
8106// list.
8107type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
8108	// Description: Optional. The main text describing the item.
8109	Description string `json:"description,omitempty"`
8110
8111	// Image: Optional. The image to display.
8112	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
8113
8114	// Info: Required. Additional information about this option.
8115	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
8116
8117	// Title: Required. The title of the list item.
8118	Title string `json:"title,omitempty"`
8119
8120	// ForceSendFields is a list of field names (e.g. "Description") to
8121	// unconditionally include in API requests. By default, fields with
8122	// empty values are omitted from API requests. However, any non-pointer,
8123	// non-interface field appearing in ForceSendFields will be sent to the
8124	// server regardless of whether the field is empty or not. This may be
8125	// used to include empty fields in Patch requests.
8126	ForceSendFields []string `json:"-"`
8127
8128	// NullFields is a list of field names (e.g. "Description") to include
8129	// in API requests with the JSON null value. By default, fields with
8130	// empty values are omitted from API requests. However, any field with
8131	// an empty value appearing in NullFields will be sent to the server as
8132	// null. It is an error if a field in this list has a non-empty value.
8133	// This may be used to include null fields in Patch requests.
8134	NullFields []string `json:"-"`
8135}
8136
8137func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
8138	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
8139	raw := NoMethod(*s)
8140	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8141}
8142
8143// GoogleCloudDialogflowV2IntentMessageMediaContent: The media content
8144// card for Actions on Google.
8145type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
8146	// MediaObjects: Required. List of media objects.
8147	MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
8148
8149	// MediaType: Optional. What type of media is the content (ie "audio").
8150	//
8151	// Possible values:
8152	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
8153	//   "AUDIO" - Response media type is audio.
8154	MediaType string `json:"mediaType,omitempty"`
8155
8156	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
8157	// unconditionally include in API requests. By default, fields with
8158	// empty values are omitted from API requests. However, any non-pointer,
8159	// non-interface field appearing in ForceSendFields will be sent to the
8160	// server regardless of whether the field is empty or not. This may be
8161	// used to include empty fields in Patch requests.
8162	ForceSendFields []string `json:"-"`
8163
8164	// NullFields is a list of field names (e.g. "MediaObjects") to include
8165	// in API requests with the JSON null value. By default, fields with
8166	// empty values are omitted from API requests. However, any field with
8167	// an empty value appearing in NullFields will be sent to the server as
8168	// null. It is an error if a field in this list has a non-empty value.
8169	// This may be used to include null fields in Patch requests.
8170	NullFields []string `json:"-"`
8171}
8172
8173func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
8174	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
8175	raw := NoMethod(*s)
8176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8177}
8178
8179// GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject:
8180// Response media object for media content card.
8181type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
8182	// ContentUrl: Required. Url where the media is stored.
8183	ContentUrl string `json:"contentUrl,omitempty"`
8184
8185	// Description: Optional. Description of media card.
8186	Description string `json:"description,omitempty"`
8187
8188	// Icon: Optional. Icon to display above media content.
8189	Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
8190
8191	// LargeImage: Optional. Image to display above media content.
8192	LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
8193
8194	// Name: Required. Name of media card.
8195	Name string `json:"name,omitempty"`
8196
8197	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
8198	// unconditionally include in API requests. By default, fields with
8199	// empty values are omitted from API requests. However, any non-pointer,
8200	// non-interface field appearing in ForceSendFields will be sent to the
8201	// server regardless of whether the field is empty or not. This may be
8202	// used to include empty fields in Patch requests.
8203	ForceSendFields []string `json:"-"`
8204
8205	// NullFields is a list of field names (e.g. "ContentUrl") to include in
8206	// API requests with the JSON null value. By default, fields with empty
8207	// values are omitted from API requests. However, any field with an
8208	// empty value appearing in NullFields will be sent to the server as
8209	// null. It is an error if a field in this list has a non-empty value.
8210	// This may be used to include null fields in Patch requests.
8211	NullFields []string `json:"-"`
8212}
8213
8214func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
8215	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
8216	raw := NoMethod(*s)
8217	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8218}
8219
8220// GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies
8221// response message.
8222type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
8223	// QuickReplies: Optional. The collection of quick replies.
8224	QuickReplies []string `json:"quickReplies,omitempty"`
8225
8226	// Title: Optional. The title of the collection of quick replies.
8227	Title string `json:"title,omitempty"`
8228
8229	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
8230	// unconditionally include in API requests. By default, fields with
8231	// empty values are omitted from API requests. However, any non-pointer,
8232	// non-interface field appearing in ForceSendFields will be sent to the
8233	// server regardless of whether the field is empty or not. This may be
8234	// used to include empty fields in Patch requests.
8235	ForceSendFields []string `json:"-"`
8236
8237	// NullFields is a list of field names (e.g. "QuickReplies") to include
8238	// in API requests with the JSON null value. By default, fields with
8239	// empty values are omitted from API requests. However, any field with
8240	// an empty value appearing in NullFields will be sent to the server as
8241	// null. It is an error if a field in this list has a non-empty value.
8242	// This may be used to include null fields in Patch requests.
8243	NullFields []string `json:"-"`
8244}
8245
8246func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
8247	type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
8248	raw := NoMethod(*s)
8249	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8250}
8251
8252// GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info
8253// about the select item for when it is triggered in a dialog.
8254type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
8255	// Key: Required. A unique key that will be sent back to the agent if
8256	// this response is given.
8257	Key string `json:"key,omitempty"`
8258
8259	// Synonyms: Optional. A list of synonyms that can also be used to
8260	// trigger this item in dialog.
8261	Synonyms []string `json:"synonyms,omitempty"`
8262
8263	// ForceSendFields is a list of field names (e.g. "Key") to
8264	// unconditionally include in API requests. By default, fields with
8265	// empty values are omitted from API requests. However, any non-pointer,
8266	// non-interface field appearing in ForceSendFields will be sent to the
8267	// server regardless of whether the field is empty or not. This may be
8268	// used to include empty fields in Patch requests.
8269	ForceSendFields []string `json:"-"`
8270
8271	// NullFields is a list of field names (e.g. "Key") to include in API
8272	// requests with the JSON null value. By default, fields with empty
8273	// values are omitted from API requests. However, any field with an
8274	// empty value appearing in NullFields will be sent to the server as
8275	// null. It is an error if a field in this list has a non-empty value.
8276	// This may be used to include null fields in Patch requests.
8277	NullFields []string `json:"-"`
8278}
8279
8280func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
8281	type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
8282	raw := NoMethod(*s)
8283	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8284}
8285
8286// GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple
8287// response message containing speech or text.
8288type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
8289	// DisplayText: Optional. The text to display.
8290	DisplayText string `json:"displayText,omitempty"`
8291
8292	// Ssml: One of text_to_speech or ssml must be provided. Structured
8293	// spoken response to the user in the SSML format. Mutually exclusive
8294	// with text_to_speech.
8295	Ssml string `json:"ssml,omitempty"`
8296
8297	// TextToSpeech: One of text_to_speech or ssml must be provided. The
8298	// plain text of the speech output. Mutually exclusive with ssml.
8299	TextToSpeech string `json:"textToSpeech,omitempty"`
8300
8301	// ForceSendFields is a list of field names (e.g. "DisplayText") to
8302	// unconditionally include in API requests. By default, fields with
8303	// empty values are omitted from API requests. However, any non-pointer,
8304	// non-interface field appearing in ForceSendFields will be sent to the
8305	// server regardless of whether the field is empty or not. This may be
8306	// used to include empty fields in Patch requests.
8307	ForceSendFields []string `json:"-"`
8308
8309	// NullFields is a list of field names (e.g. "DisplayText") to include
8310	// in API requests with the JSON null value. By default, fields with
8311	// empty values are omitted from API requests. However, any field with
8312	// an empty value appearing in NullFields will be sent to the server as
8313	// null. It is an error if a field in this list has a non-empty value.
8314	// This may be used to include null fields in Patch requests.
8315	NullFields []string `json:"-"`
8316}
8317
8318func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
8319	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
8320	raw := NoMethod(*s)
8321	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8322}
8323
8324// GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection
8325// of simple response candidates. This message in
8326// `QueryResult.fulfillment_messages` and
8327// `WebhookResponse.fulfillment_messages` should contain only one
8328// `SimpleResponse`.
8329type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
8330	// SimpleResponses: Required. The list of simple responses.
8331	SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
8332
8333	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
8334	// unconditionally include in API requests. By default, fields with
8335	// empty values are omitted from API requests. However, any non-pointer,
8336	// non-interface field appearing in ForceSendFields will be sent to the
8337	// server regardless of whether the field is empty or not. This may be
8338	// used to include empty fields in Patch requests.
8339	ForceSendFields []string `json:"-"`
8340
8341	// NullFields is a list of field names (e.g. "SimpleResponses") to
8342	// include in API requests with the JSON null value. By default, fields
8343	// with empty values are omitted from API requests. However, any field
8344	// with an empty value appearing in NullFields will be sent to the
8345	// server as null. It is an error if a field in this list has a
8346	// non-empty value. This may be used to include null fields in Patch
8347	// requests.
8348	NullFields []string `json:"-"`
8349}
8350
8351func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
8352	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
8353	raw := NoMethod(*s)
8354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8355}
8356
8357// GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip
8358// message that the user can tap to quickly post a reply to the
8359// conversation.
8360type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
8361	// Title: Required. The text shown the in the suggestion chip.
8362	Title string `json:"title,omitempty"`
8363
8364	// ForceSendFields is a list of field names (e.g. "Title") to
8365	// unconditionally include in API requests. By default, fields with
8366	// empty values are omitted from API requests. However, any non-pointer,
8367	// non-interface field appearing in ForceSendFields will be sent to the
8368	// server regardless of whether the field is empty or not. This may be
8369	// used to include empty fields in Patch requests.
8370	ForceSendFields []string `json:"-"`
8371
8372	// NullFields is a list of field names (e.g. "Title") to include in API
8373	// requests with the JSON null value. By default, fields with empty
8374	// values are omitted from API requests. However, any field with an
8375	// empty value appearing in NullFields will be sent to the server as
8376	// null. It is an error if a field in this list has a non-empty value.
8377	// This may be used to include null fields in Patch requests.
8378	NullFields []string `json:"-"`
8379}
8380
8381func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
8382	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
8383	raw := NoMethod(*s)
8384	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8385}
8386
8387// GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of
8388// suggestions.
8389type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
8390	// Suggestions: Required. The list of suggested replies.
8391	Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
8392
8393	// ForceSendFields is a list of field names (e.g. "Suggestions") to
8394	// unconditionally include in API requests. By default, fields with
8395	// empty values are omitted from API requests. However, any non-pointer,
8396	// non-interface field appearing in ForceSendFields will be sent to the
8397	// server regardless of whether the field is empty or not. This may be
8398	// used to include empty fields in Patch requests.
8399	ForceSendFields []string `json:"-"`
8400
8401	// NullFields is a list of field names (e.g. "Suggestions") to include
8402	// in API requests with the JSON null value. By default, fields with
8403	// empty values are omitted from API requests. However, any field with
8404	// an empty value appearing in NullFields will be sent to the server as
8405	// null. It is an error if a field in this list has a non-empty value.
8406	// This may be used to include null fields in Patch requests.
8407	NullFields []string `json:"-"`
8408}
8409
8410func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
8411	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
8412	raw := NoMethod(*s)
8413	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8414}
8415
8416// GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions
8417// on Google.
8418type GoogleCloudDialogflowV2IntentMessageTableCard struct {
8419	// Buttons: Optional. List of buttons for the card.
8420	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
8421
8422	// ColumnProperties: Optional. Display properties for the columns in
8423	// this table.
8424	ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
8425
8426	// Image: Optional. Image which should be displayed on the card.
8427	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
8428
8429	// Rows: Optional. Rows in this table of data.
8430	Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
8431
8432	// Subtitle: Optional. Subtitle to the title.
8433	Subtitle string `json:"subtitle,omitempty"`
8434
8435	// Title: Required. Title of the card.
8436	Title string `json:"title,omitempty"`
8437
8438	// ForceSendFields is a list of field names (e.g. "Buttons") to
8439	// unconditionally include in API requests. By default, fields with
8440	// empty values are omitted from API requests. However, any non-pointer,
8441	// non-interface field appearing in ForceSendFields will be sent to the
8442	// server regardless of whether the field is empty or not. This may be
8443	// used to include empty fields in Patch requests.
8444	ForceSendFields []string `json:"-"`
8445
8446	// NullFields is a list of field names (e.g. "Buttons") to include in
8447	// API requests with the JSON null value. By default, fields with empty
8448	// values are omitted from API requests. However, any field with an
8449	// empty value appearing in NullFields will be sent to the server as
8450	// null. It is an error if a field in this list has a non-empty value.
8451	// This may be used to include null fields in Patch requests.
8452	NullFields []string `json:"-"`
8453}
8454
8455func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
8456	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
8457	raw := NoMethod(*s)
8458	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8459}
8460
8461// GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of
8462// TableCardRow.
8463type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
8464	// Text: Required. Text in this cell.
8465	Text string `json:"text,omitempty"`
8466
8467	// ForceSendFields is a list of field names (e.g. "Text") to
8468	// unconditionally include in API requests. By default, fields with
8469	// empty values are omitted from API requests. However, any non-pointer,
8470	// non-interface field appearing in ForceSendFields will be sent to the
8471	// server regardless of whether the field is empty or not. This may be
8472	// used to include empty fields in Patch requests.
8473	ForceSendFields []string `json:"-"`
8474
8475	// NullFields is a list of field names (e.g. "Text") to include in API
8476	// requests with the JSON null value. By default, fields with empty
8477	// values are omitted from API requests. However, any field with an
8478	// empty value appearing in NullFields will be sent to the server as
8479	// null. It is an error if a field in this list has a non-empty value.
8480	// This may be used to include null fields in Patch requests.
8481	NullFields []string `json:"-"`
8482}
8483
8484func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
8485	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
8486	raw := NoMethod(*s)
8487	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8488}
8489
8490// GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.
8491type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
8492	// Cells: Optional. List of cells that make up this row.
8493	Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
8494
8495	// DividerAfter: Optional. Whether to add a visual divider after this
8496	// row.
8497	DividerAfter bool `json:"dividerAfter,omitempty"`
8498
8499	// ForceSendFields is a list of field names (e.g. "Cells") to
8500	// unconditionally include in API requests. By default, fields with
8501	// empty values are omitted from API requests. However, any non-pointer,
8502	// non-interface field appearing in ForceSendFields will be sent to the
8503	// server regardless of whether the field is empty or not. This may be
8504	// used to include empty fields in Patch requests.
8505	ForceSendFields []string `json:"-"`
8506
8507	// NullFields is a list of field names (e.g. "Cells") to include in API
8508	// requests with the JSON null value. By default, fields with empty
8509	// values are omitted from API requests. However, any field with an
8510	// empty value appearing in NullFields will be sent to the server as
8511	// null. It is an error if a field in this list has a non-empty value.
8512	// This may be used to include null fields in Patch requests.
8513	NullFields []string `json:"-"`
8514}
8515
8516func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
8517	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
8518	raw := NoMethod(*s)
8519	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8520}
8521
8522// GoogleCloudDialogflowV2IntentMessageText: The text response message.
8523type GoogleCloudDialogflowV2IntentMessageText struct {
8524	// Text: Optional. The collection of the agent's responses.
8525	Text []string `json:"text,omitempty"`
8526
8527	// ForceSendFields is a list of field names (e.g. "Text") to
8528	// unconditionally include in API requests. By default, fields with
8529	// empty values are omitted from API requests. However, any non-pointer,
8530	// non-interface field appearing in ForceSendFields will be sent to the
8531	// server regardless of whether the field is empty or not. This may be
8532	// used to include empty fields in Patch requests.
8533	ForceSendFields []string `json:"-"`
8534
8535	// NullFields is a list of field names (e.g. "Text") to include in API
8536	// requests with the JSON null value. By default, fields with empty
8537	// values are omitted from API requests. However, any field with an
8538	// empty value appearing in NullFields will be sent to the server as
8539	// null. It is an error if a field in this list has a non-empty value.
8540	// This may be used to include null fields in Patch requests.
8541	NullFields []string `json:"-"`
8542}
8543
8544func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
8545	type NoMethod GoogleCloudDialogflowV2IntentMessageText
8546	raw := NoMethod(*s)
8547	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8548}
8549
8550// GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.
8551type GoogleCloudDialogflowV2IntentParameter struct {
8552	// DefaultValue: Optional. The default value to use when the `value`
8553	// yields an empty result. Default values can be extracted from contexts
8554	// by using the following syntax: `#context_name.parameter_name`.
8555	DefaultValue string `json:"defaultValue,omitempty"`
8556
8557	// DisplayName: Required. The name of the parameter.
8558	DisplayName string `json:"displayName,omitempty"`
8559
8560	// EntityTypeDisplayName: Optional. The name of the entity type,
8561	// prefixed with `@`, that describes values of the parameter. If the
8562	// parameter is required, this must be provided.
8563	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
8564
8565	// IsList: Optional. Indicates whether the parameter represents a list
8566	// of values.
8567	IsList bool `json:"isList,omitempty"`
8568
8569	// Mandatory: Optional. Indicates whether the parameter is required.
8570	// That is, whether the intent cannot be completed without collecting
8571	// the parameter value.
8572	Mandatory bool `json:"mandatory,omitempty"`
8573
8574	// Name: The unique identifier of this parameter.
8575	Name string `json:"name,omitempty"`
8576
8577	// Prompts: Optional. The collection of prompts that the agent can
8578	// present to the user in order to collect a value for the parameter.
8579	Prompts []string `json:"prompts,omitempty"`
8580
8581	// Value: Optional. The definition of the parameter value. It can be: -
8582	// a constant string, - a parameter value defined as `$parameter_name`,
8583	// - an original parameter value defined as `$parameter_name.original`,
8584	// - a parameter value from some context defined as
8585	// `#context_name.parameter_name`.
8586	Value string `json:"value,omitempty"`
8587
8588	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
8589	// unconditionally include in API requests. By default, fields with
8590	// empty values are omitted from API requests. However, any non-pointer,
8591	// non-interface field appearing in ForceSendFields will be sent to the
8592	// server regardless of whether the field is empty or not. This may be
8593	// used to include empty fields in Patch requests.
8594	ForceSendFields []string `json:"-"`
8595
8596	// NullFields is a list of field names (e.g. "DefaultValue") to include
8597	// in API requests with the JSON null value. By default, fields with
8598	// empty values are omitted from API requests. However, any field with
8599	// an empty value appearing in NullFields will be sent to the server as
8600	// null. It is an error if a field in this list has a non-empty value.
8601	// This may be used to include null fields in Patch requests.
8602	NullFields []string `json:"-"`
8603}
8604
8605func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
8606	type NoMethod GoogleCloudDialogflowV2IntentParameter
8607	raw := NoMethod(*s)
8608	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8609}
8610
8611// GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example
8612// that the agent is trained on.
8613type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
8614	// Name: Output only. The unique identifier of this training phrase.
8615	Name string `json:"name,omitempty"`
8616
8617	// Parts: Required. The ordered list of training phrase parts. The parts
8618	// are concatenated in order to form the training phrase. Note: The API
8619	// does not automatically annotate training phrases like the Dialogflow
8620	// Console does. Note: Do not forget to include whitespace at part
8621	// boundaries, so the training phrase is well formatted when the parts
8622	// are concatenated. If the training phrase does not need to be
8623	// annotated with parameters, you just need a single part with only the
8624	// Part.text field set. If you want to annotate the training phrase, you
8625	// must create multiple parts, where the fields of each part are
8626	// populated in one of two ways: - `Part.text` is set to a part of the
8627	// phrase that has no parameters. - `Part.text` is set to a part of the
8628	// phrase that you want to annotate, and the `entity_type`, `alias`, and
8629	// `user_defined` fields are all set.
8630	Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
8631
8632	// TimesAddedCount: Optional. Indicates how many times this example was
8633	// added to the intent. Each time a developer adds an existing sample by
8634	// editing an intent or training, this counter is increased.
8635	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
8636
8637	// Type: Required. The type of the training phrase.
8638	//
8639	// Possible values:
8640	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be
8641	// used.
8642	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names,
8643	// but example parts can be annotated with entity types.
8644	//   "TEMPLATE" - Templates are not annotated with entity types, but
8645	// they can contain @-prefixed entity type names as substrings. Template
8646	// mode has been deprecated. Example mode is the only supported way to
8647	// create new training phrases. If you have existing training phrases
8648	// that you've created in template mode, those will continue to work.
8649	Type string `json:"type,omitempty"`
8650
8651	// ForceSendFields is a list of field names (e.g. "Name") to
8652	// unconditionally include in API requests. By default, fields with
8653	// empty values are omitted from API requests. However, any non-pointer,
8654	// non-interface field appearing in ForceSendFields will be sent to the
8655	// server regardless of whether the field is empty or not. This may be
8656	// used to include empty fields in Patch requests.
8657	ForceSendFields []string `json:"-"`
8658
8659	// NullFields is a list of field names (e.g. "Name") to include in API
8660	// requests with the JSON null value. By default, fields with empty
8661	// values are omitted from API requests. However, any field with an
8662	// empty value appearing in NullFields will be sent to the server as
8663	// null. It is an error if a field in this list has a non-empty value.
8664	// This may be used to include null fields in Patch requests.
8665	NullFields []string `json:"-"`
8666}
8667
8668func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
8669	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
8670	raw := NoMethod(*s)
8671	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8672}
8673
8674// GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of
8675// a training phrase.
8676type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
8677	// Alias: Optional. The parameter name for the value extracted from the
8678	// annotated part of the example. This field is required for annotated
8679	// parts of the training phrase.
8680	Alias string `json:"alias,omitempty"`
8681
8682	// EntityType: Optional. The entity type name prefixed with `@`. This
8683	// field is required for annotated parts of the training phrase.
8684	EntityType string `json:"entityType,omitempty"`
8685
8686	// Text: Required. The text for this part.
8687	Text string `json:"text,omitempty"`
8688
8689	// UserDefined: Optional. Indicates whether the text was manually
8690	// annotated. This field is set to true when the Dialogflow Console is
8691	// used to manually annotate the part. When creating an annotated part
8692	// with the API, you must set this to true.
8693	UserDefined bool `json:"userDefined,omitempty"`
8694
8695	// ForceSendFields is a list of field names (e.g. "Alias") to
8696	// unconditionally include in API requests. By default, fields with
8697	// empty values are omitted from API requests. However, any non-pointer,
8698	// non-interface field appearing in ForceSendFields will be sent to the
8699	// server regardless of whether the field is empty or not. This may be
8700	// used to include empty fields in Patch requests.
8701	ForceSendFields []string `json:"-"`
8702
8703	// NullFields is a list of field names (e.g. "Alias") to include in API
8704	// requests with the JSON null value. By default, fields with empty
8705	// values are omitted from API requests. However, any field with an
8706	// empty value appearing in NullFields will be sent to the server as
8707	// null. It is an error if a field in this list has a non-empty value.
8708	// This may be used to include null fields in Patch requests.
8709	NullFields []string `json:"-"`
8710}
8711
8712func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
8713	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
8714	raw := NoMethod(*s)
8715	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8716}
8717
8718// GoogleCloudDialogflowV2KnowledgeOperationMetadata: Metadata in
8719// google::longrunning::Operation for Knowledge operations.
8720type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
8721	// State: Output only. The current state of this operation.
8722	//
8723	// Possible values:
8724	//   "STATE_UNSPECIFIED" - State unspecified.
8725	//   "PENDING" - The operation has been created.
8726	//   "RUNNING" - The operation is currently running.
8727	//   "DONE" - The operation is done, either cancelled or completed.
8728	State string `json:"state,omitempty"`
8729
8730	// ForceSendFields is a list of field names (e.g. "State") to
8731	// unconditionally include in API requests. By default, fields with
8732	// empty values are omitted from API requests. However, any non-pointer,
8733	// non-interface field appearing in ForceSendFields will be sent to the
8734	// server regardless of whether the field is empty or not. This may be
8735	// used to include empty fields in Patch requests.
8736	ForceSendFields []string `json:"-"`
8737
8738	// NullFields is a list of field names (e.g. "State") to include in API
8739	// requests with the JSON null value. By default, fields with empty
8740	// values are omitted from API requests. However, any field with an
8741	// empty value appearing in NullFields will be sent to the server as
8742	// null. It is an error if a field in this list has a non-empty value.
8743	// This may be used to include null fields in Patch requests.
8744	NullFields []string `json:"-"`
8745}
8746
8747func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
8748	type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
8749	raw := NoMethod(*s)
8750	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8751}
8752
8753// GoogleCloudDialogflowV2Message: Represents a message posted into a
8754// conversation.
8755type GoogleCloudDialogflowV2Message struct {
8756	// Content: Required. The message content.
8757	Content string `json:"content,omitempty"`
8758
8759	// CreateTime: Output only. The time when the message was created.
8760	CreateTime string `json:"createTime,omitempty"`
8761
8762	// LanguageCode: Optional. The message language. This should be a BCP-47
8763	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
8764	// "en-US".
8765	LanguageCode string `json:"languageCode,omitempty"`
8766
8767	// MessageAnnotation: Output only. The annotation for the message.
8768	MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
8769
8770	// Name: The unique identifier of the message. Format:
8771	// `projects//locations//conversations//messages/`.
8772	Name string `json:"name,omitempty"`
8773
8774	// Participant: Output only. The participant that sends this message.
8775	Participant string `json:"participant,omitempty"`
8776
8777	// ParticipantRole: Output only. The role of the participant.
8778	//
8779	// Possible values:
8780	//   "ROLE_UNSPECIFIED" - Participant role not set.
8781	//   "HUMAN_AGENT" - Participant is a human agent.
8782	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
8783	// Dialogflow agent.
8784	//   "END_USER" - Participant is an end user that has called or chatted
8785	// with Dialogflow services.
8786	ParticipantRole string `json:"participantRole,omitempty"`
8787
8788	// ForceSendFields is a list of field names (e.g. "Content") to
8789	// unconditionally include in API requests. By default, fields with
8790	// empty values are omitted from API requests. However, any non-pointer,
8791	// non-interface field appearing in ForceSendFields will be sent to the
8792	// server regardless of whether the field is empty or not. This may be
8793	// used to include empty fields in Patch requests.
8794	ForceSendFields []string `json:"-"`
8795
8796	// NullFields is a list of field names (e.g. "Content") to include in
8797	// API requests with the JSON null value. By default, fields with empty
8798	// values are omitted from API requests. However, any field with an
8799	// empty value appearing in NullFields will be sent to the server as
8800	// null. It is an error if a field in this list has a non-empty value.
8801	// This may be used to include null fields in Patch requests.
8802	NullFields []string `json:"-"`
8803}
8804
8805func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
8806	type NoMethod GoogleCloudDialogflowV2Message
8807	raw := NoMethod(*s)
8808	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8809}
8810
8811// GoogleCloudDialogflowV2MessageAnnotation: Represents the result of
8812// annotation for the message.
8813type GoogleCloudDialogflowV2MessageAnnotation struct {
8814	// ContainEntities: Indicates whether the text message contains
8815	// entities.
8816	ContainEntities bool `json:"containEntities,omitempty"`
8817
8818	// Parts: The collection of annotated message parts ordered by their
8819	// position in the message. You can recover the annotated message by
8820	// concatenating [AnnotatedMessagePart.text].
8821	Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
8822
8823	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
8824	// unconditionally include in API requests. By default, fields with
8825	// empty values are omitted from API requests. However, any non-pointer,
8826	// non-interface field appearing in ForceSendFields will be sent to the
8827	// server regardless of whether the field is empty or not. This may be
8828	// used to include empty fields in Patch requests.
8829	ForceSendFields []string `json:"-"`
8830
8831	// NullFields is a list of field names (e.g. "ContainEntities") to
8832	// include in API requests with the JSON null value. By default, fields
8833	// with empty values are omitted from API requests. However, any field
8834	// with an empty value appearing in NullFields will be sent to the
8835	// server as null. It is an error if a field in this list has a
8836	// non-empty value. This may be used to include null fields in Patch
8837	// requests.
8838	NullFields []string `json:"-"`
8839}
8840
8841func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
8842	type NoMethod GoogleCloudDialogflowV2MessageAnnotation
8843	raw := NoMethod(*s)
8844	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8845}
8846
8847// GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the
8848// contents of the original request that was passed to the
8849// `[Streaming]DetectIntent` call.
8850type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
8851	// Payload: Optional. This field is set to the value of the
8852	// `QueryParameters.payload` field passed in the request. Some
8853	// integrations that query a Dialogflow agent may provide additional
8854	// information in the payload. In particular, for the Dialogflow Phone
8855	// Gateway integration, this field has the form: { "telephony": {
8856	// "caller_id": "+18558363987" } } Note: The caller ID field
8857	// (`caller_id`) will be redacted for Trial Edition agents and populated
8858	// with the caller ID in E.164 format
8859	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
8860	Payload googleapi.RawMessage `json:"payload,omitempty"`
8861
8862	// Source: The source of this request, e.g., `google`, `facebook`,
8863	// `slack`. It is set by Dialogflow-owned servers.
8864	Source string `json:"source,omitempty"`
8865
8866	// Version: Optional. The version of the protocol used for this request.
8867	// This field is AoG-specific.
8868	Version string `json:"version,omitempty"`
8869
8870	// ForceSendFields is a list of field names (e.g. "Payload") to
8871	// unconditionally include in API requests. By default, fields with
8872	// empty values are omitted from API requests. However, any non-pointer,
8873	// non-interface field appearing in ForceSendFields will be sent to the
8874	// server regardless of whether the field is empty or not. This may be
8875	// used to include empty fields in Patch requests.
8876	ForceSendFields []string `json:"-"`
8877
8878	// NullFields is a list of field names (e.g. "Payload") to include in
8879	// API requests with the JSON null value. By default, fields with empty
8880	// values are omitted from API requests. However, any field with an
8881	// empty value appearing in NullFields will be sent to the server as
8882	// null. It is an error if a field in this list has a non-empty value.
8883	// This may be used to include null fields in Patch requests.
8884	NullFields []string `json:"-"`
8885}
8886
8887func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
8888	type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
8889	raw := NoMethod(*s)
8890	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8891}
8892
8893// GoogleCloudDialogflowV2QueryResult: Represents the result of
8894// conversational query or event processing.
8895type GoogleCloudDialogflowV2QueryResult struct {
8896	// Action: The action name from the matched intent.
8897	Action string `json:"action,omitempty"`
8898
8899	// AllRequiredParamsPresent: This field is set to: - `false` if the
8900	// matched intent has required parameters and not all of the required
8901	// parameter values have been collected. - `true` if all required
8902	// parameter values have been collected, or if the matched intent
8903	// doesn't contain any required parameters.
8904	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
8905
8906	// CancelsSlotFilling: Indicates whether the conversational query
8907	// triggers a cancellation for slot filling.
8908	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
8909
8910	// DiagnosticInfo: Free-form diagnostic information for the associated
8911	// detect intent request. The fields of this data can change without
8912	// notice, so you should not write code that depends on its structure.
8913	// The data may contain: - webhook call latency - webhook errors
8914	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
8915
8916	// FulfillmentMessages: The collection of rich messages to present to
8917	// the user.
8918	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
8919
8920	// FulfillmentText: The text to be pronounced to the user or shown on
8921	// the screen. Note: This is a legacy field, `fulfillment_messages`
8922	// should be preferred.
8923	FulfillmentText string `json:"fulfillmentText,omitempty"`
8924
8925	// Intent: The intent that matched the conversational query. Some, not
8926	// all fields are filled in this message, including but not limited to:
8927	// `name`, `display_name`, `end_interaction` and `is_fallback`.
8928	Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
8929
8930	// IntentDetectionConfidence: The intent detection confidence. Values
8931	// range from 0.0 (completely uncertain) to 1.0 (completely certain).
8932	// This value is for informational purpose only and is only used to help
8933	// match the best intent within the classification threshold. This value
8934	// may change for the same end-user expression at any time due to a
8935	// model retraining or change in implementation. If there are `multiple
8936	// knowledge_answers` messages, this value is set to the greatest
8937	// `knowledgeAnswers.match_confidence` value in the list.
8938	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
8939
8940	// LanguageCode: The language that was triggered during intent
8941	// detection. See Language Support
8942	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
8943	// list of the currently supported language codes.
8944	LanguageCode string `json:"languageCode,omitempty"`
8945
8946	// OutputContexts: The collection of output contexts. If applicable,
8947	// `output_contexts.parameters` contains entries with name `.original`
8948	// containing the original parameter values before the query.
8949	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
8950
8951	// Parameters: The collection of extracted parameters. Depending on your
8952	// protocol or client library language, this is a map, associative
8953	// array, symbol table, dictionary, or JSON object composed of a
8954	// collection of (MapKey, MapValue) pairs: - MapKey type: string -
8955	// MapKey value: parameter name - MapValue type: - If parameter's entity
8956	// type is a composite entity: map - Else: depending on parameter value
8957	// type, could be one of string, number, boolean, null, list or map -
8958	// MapValue value: - If parameter's entity type is a composite entity:
8959	// map from composite entity property names to property values - Else:
8960	// parameter value
8961	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
8962
8963	// QueryText: The original conversational query text: - If natural
8964	// language text was provided as input, `query_text` contains a copy of
8965	// the input. - If natural language speech audio was provided as input,
8966	// `query_text` contains the speech recognition result. If speech
8967	// recognizer produced multiple alternatives, a particular one is
8968	// picked. - If automatic spell correction is enabled, `query_text` will
8969	// contain the corrected user input.
8970	QueryText string `json:"queryText,omitempty"`
8971
8972	// SentimentAnalysisResult: The sentiment analysis result, which depends
8973	// on the `sentiment_analysis_request_config` specified in the request.
8974	SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
8975
8976	// SpeechRecognitionConfidence: The Speech recognition confidence
8977	// between 0.0 and 1.0. A higher number indicates an estimated greater
8978	// likelihood that the recognized words are correct. The default of 0.0
8979	// is a sentinel value indicating that confidence was not set. This
8980	// field is not guaranteed to be accurate or set. In particular this
8981	// field isn't set for StreamingDetectIntent since the streaming
8982	// endpoint has separate confidence estimates per portion of the audio
8983	// in StreamingRecognitionResult.
8984	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
8985
8986	// WebhookPayload: If the query was fulfilled by a webhook call, this
8987	// field is set to the value of the `payload` field returned in the
8988	// webhook response.
8989	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
8990
8991	// WebhookSource: If the query was fulfilled by a webhook call, this
8992	// field is set to the value of the `source` field returned in the
8993	// webhook response.
8994	WebhookSource string `json:"webhookSource,omitempty"`
8995
8996	// ForceSendFields is a list of field names (e.g. "Action") to
8997	// unconditionally include in API requests. By default, fields with
8998	// empty values are omitted from API requests. However, any non-pointer,
8999	// non-interface field appearing in ForceSendFields will be sent to the
9000	// server regardless of whether the field is empty or not. This may be
9001	// used to include empty fields in Patch requests.
9002	ForceSendFields []string `json:"-"`
9003
9004	// NullFields is a list of field names (e.g. "Action") to include in API
9005	// requests with the JSON null value. By default, fields with empty
9006	// values are omitted from API requests. However, any field with an
9007	// empty value appearing in NullFields will be sent to the server as
9008	// null. It is an error if a field in this list has a non-empty value.
9009	// This may be used to include null fields in Patch requests.
9010	NullFields []string `json:"-"`
9011}
9012
9013func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
9014	type NoMethod GoogleCloudDialogflowV2QueryResult
9015	raw := NoMethod(*s)
9016	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9017}
9018
9019func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
9020	type NoMethod GoogleCloudDialogflowV2QueryResult
9021	var s1 struct {
9022		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
9023		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
9024		*NoMethod
9025	}
9026	s1.NoMethod = (*NoMethod)(s)
9027	if err := json.Unmarshal(data, &s1); err != nil {
9028		return err
9029	}
9030	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
9031	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
9032	return nil
9033}
9034
9035// GoogleCloudDialogflowV2Sentiment: The sentiment, such as
9036// positive/negative feeling or association, for a unit of analysis,
9037// such as the query text.
9038type GoogleCloudDialogflowV2Sentiment struct {
9039	// Magnitude: A non-negative number in the [0, +inf) range, which
9040	// represents the absolute magnitude of sentiment, regardless of score
9041	// (positive or negative).
9042	Magnitude float64 `json:"magnitude,omitempty"`
9043
9044	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
9045	// (positive sentiment).
9046	Score float64 `json:"score,omitempty"`
9047
9048	// ForceSendFields is a list of field names (e.g. "Magnitude") to
9049	// unconditionally include in API requests. By default, fields with
9050	// empty values are omitted from API requests. However, any non-pointer,
9051	// non-interface field appearing in ForceSendFields will be sent to the
9052	// server regardless of whether the field is empty or not. This may be
9053	// used to include empty fields in Patch requests.
9054	ForceSendFields []string `json:"-"`
9055
9056	// NullFields is a list of field names (e.g. "Magnitude") to include in
9057	// API requests with the JSON null value. By default, fields with empty
9058	// values are omitted from API requests. However, any field with an
9059	// empty value appearing in NullFields will be sent to the server as
9060	// null. It is an error if a field in this list has a non-empty value.
9061	// This may be used to include null fields in Patch requests.
9062	NullFields []string `json:"-"`
9063}
9064
9065func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
9066	type NoMethod GoogleCloudDialogflowV2Sentiment
9067	raw := NoMethod(*s)
9068	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9069}
9070
9071func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
9072	type NoMethod GoogleCloudDialogflowV2Sentiment
9073	var s1 struct {
9074		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
9075		Score     gensupport.JSONFloat64 `json:"score"`
9076		*NoMethod
9077	}
9078	s1.NoMethod = (*NoMethod)(s)
9079	if err := json.Unmarshal(data, &s1); err != nil {
9080		return err
9081	}
9082	s.Magnitude = float64(s1.Magnitude)
9083	s.Score = float64(s1.Score)
9084	return nil
9085}
9086
9087// GoogleCloudDialogflowV2SentimentAnalysisResult: The result of
9088// sentiment analysis. Sentiment analysis inspects user input and
9089// identifies the prevailing subjective opinion, especially to determine
9090// a user's attitude as positive, negative, or neutral. For
9091// Participants.DetectIntent, it needs to be configured in
9092// DetectIntentRequest.query_params. For
9093// Participants.StreamingDetectIntent, it needs to be configured in
9094// StreamingDetectIntentRequest.query_params. And for
9095// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent,
9096// it needs to be configured in
9097// ConversationProfile.human_agent_assistant_config
9098type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
9099	// QueryTextSentiment: The sentiment analysis result for `query_text`.
9100	QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
9101
9102	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment")
9103	// to unconditionally include in API requests. By default, fields with
9104	// empty values are omitted from API requests. However, any non-pointer,
9105	// non-interface field appearing in ForceSendFields will be sent to the
9106	// server regardless of whether the field is empty or not. This may be
9107	// used to include empty fields in Patch requests.
9108	ForceSendFields []string `json:"-"`
9109
9110	// NullFields is a list of field names (e.g. "QueryTextSentiment") to
9111	// include in API requests with the JSON null value. By default, fields
9112	// with empty values are omitted from API requests. However, any field
9113	// with an empty value appearing in NullFields will be sent to the
9114	// server as null. It is an error if a field in this list has a
9115	// non-empty value. This may be used to include null fields in Patch
9116	// requests.
9117	NullFields []string `json:"-"`
9118}
9119
9120func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
9121	type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
9122	raw := NoMethod(*s)
9123	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9124}
9125
9126// GoogleCloudDialogflowV2SessionEntityType: A session represents a
9127// conversation between a Dialogflow agent and an end-user. You can
9128// create special entities, called session entities, during a session.
9129// Session entities can extend or replace custom entity types and only
9130// exist during the session that they were created for. All session
9131// data, including session entities, is stored by Dialogflow for 20
9132// minutes. For more information, see the session entity guide
9133// (https://cloud.google.com/dialogflow/docs/entities-session).
9134type GoogleCloudDialogflowV2SessionEntityType struct {
9135	// Entities: Required. The collection of entities associated with this
9136	// session entity type.
9137	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
9138
9139	// EntityOverrideMode: Required. Indicates whether the additional data
9140	// should override or supplement the custom entity type definition.
9141	//
9142	// Possible values:
9143	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value
9144	// should be never used.
9145	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session
9146	// entities overrides the collection of entities in the corresponding
9147	// custom entity type.
9148	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session
9149	// entities extends the collection of entities in the corresponding
9150	// custom entity type. Note: Even in this override mode calls to
9151	// `ListSessionEntityTypes`, `GetSessionEntityType`,
9152	// `CreateSessionEntityType` and `UpdateSessionEntityType` only return
9153	// the additional entities added in this session entity type. If you
9154	// want to get the supplemented list, please call
9155	// EntityTypes.GetEntityType on the custom entity type and merge.
9156	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
9157
9158	// Name: Required. The unique identifier of this session entity type.
9159	// Format: `projects//agent/sessions//entityTypes/`, or
9160	// `projects//agent/environments//users//sessions//entityTypes/`. If
9161	// `Environment ID` is not specified, we assume default 'draft'
9162	// environment. If `User ID` is not specified, we assume default '-'
9163	// user. `` must be the display name of an existing entity type in the
9164	// same agent that will be overridden or supplemented.
9165	Name string `json:"name,omitempty"`
9166
9167	// ForceSendFields is a list of field names (e.g. "Entities") to
9168	// unconditionally include in API requests. By default, fields with
9169	// empty values are omitted from API requests. However, any non-pointer,
9170	// non-interface field appearing in ForceSendFields will be sent to the
9171	// server regardless of whether the field is empty or not. This may be
9172	// used to include empty fields in Patch requests.
9173	ForceSendFields []string `json:"-"`
9174
9175	// NullFields is a list of field names (e.g. "Entities") to include in
9176	// API requests with the JSON null value. By default, fields with empty
9177	// values are omitted from API requests. However, any field with an
9178	// empty value appearing in NullFields will be sent to the server as
9179	// null. It is an error if a field in this list has a non-empty value.
9180	// This may be used to include null fields in Patch requests.
9181	NullFields []string `json:"-"`
9182}
9183
9184func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
9185	type NoMethod GoogleCloudDialogflowV2SessionEntityType
9186	raw := NoMethod(*s)
9187	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9188}
9189
9190// GoogleCloudDialogflowV2SuggestArticlesResponse: The response message
9191// for Participants.SuggestArticles.
9192type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
9193	// ArticleAnswers: Articles ordered by score in descending order.
9194	ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
9195
9196	// ContextSize: Number of messages prior to and including latest_message
9197	// to compile the suggestion. It may be smaller than the
9198	// SuggestArticlesRequest.context_size field in the request if there
9199	// aren't that many messages in the conversation.
9200	ContextSize int64 `json:"contextSize,omitempty"`
9201
9202	// LatestMessage: The name of the latest conversation message used to
9203	// compile suggestion for. Format:
9204	// `projects//locations//conversations//messages/`.
9205	LatestMessage string `json:"latestMessage,omitempty"`
9206
9207	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
9208	// unconditionally include in API requests. By default, fields with
9209	// empty values are omitted from API requests. However, any non-pointer,
9210	// non-interface field appearing in ForceSendFields will be sent to the
9211	// server regardless of whether the field is empty or not. This may be
9212	// used to include empty fields in Patch requests.
9213	ForceSendFields []string `json:"-"`
9214
9215	// NullFields is a list of field names (e.g. "ArticleAnswers") to
9216	// include in API requests with the JSON null value. By default, fields
9217	// with empty values are omitted from API requests. However, any field
9218	// with an empty value appearing in NullFields will be sent to the
9219	// server as null. It is an error if a field in this list has a
9220	// non-empty value. This may be used to include null fields in Patch
9221	// requests.
9222	NullFields []string `json:"-"`
9223}
9224
9225func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
9226	type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
9227	raw := NoMethod(*s)
9228	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9229}
9230
9231// GoogleCloudDialogflowV2SuggestFaqAnswersResponse: The request message
9232// for Participants.SuggestFaqAnswers.
9233type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
9234	// ContextSize: Number of messages prior to and including latest_message
9235	// to compile the suggestion. It may be smaller than the
9236	// SuggestFaqAnswersRequest.context_size field in the request if there
9237	// aren't that many messages in the conversation.
9238	ContextSize int64 `json:"contextSize,omitempty"`
9239
9240	// FaqAnswers: Answers extracted from FAQ documents.
9241	FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
9242
9243	// LatestMessage: The name of the latest conversation message used to
9244	// compile suggestion for. Format:
9245	// `projects//locations//conversations//messages/`.
9246	LatestMessage string `json:"latestMessage,omitempty"`
9247
9248	// ForceSendFields is a list of field names (e.g. "ContextSize") to
9249	// unconditionally include in API requests. By default, fields with
9250	// empty values are omitted from API requests. However, any non-pointer,
9251	// non-interface field appearing in ForceSendFields will be sent to the
9252	// server regardless of whether the field is empty or not. This may be
9253	// used to include empty fields in Patch requests.
9254	ForceSendFields []string `json:"-"`
9255
9256	// NullFields is a list of field names (e.g. "ContextSize") to include
9257	// in API requests with the JSON null value. By default, fields with
9258	// empty values are omitted from API requests. However, any field with
9259	// an empty value appearing in NullFields will be sent to the server as
9260	// null. It is an error if a field in this list has a non-empty value.
9261	// This may be used to include null fields in Patch requests.
9262	NullFields []string `json:"-"`
9263}
9264
9265func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
9266	type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
9267	raw := NoMethod(*s)
9268	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9269}
9270
9271// GoogleCloudDialogflowV2SuggestionResult: One response of different
9272// type of suggestion response which is used in the response of
9273// Participants.AnalyzeContent and Participants.AnalyzeContent, as well
9274// as HumanAgentAssistantEvent.
9275type GoogleCloudDialogflowV2SuggestionResult struct {
9276	// Error: Error status if the request failed.
9277	Error *GoogleRpcStatus `json:"error,omitempty"`
9278
9279	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
9280	// ARTICLE_SUGGESTION.
9281	SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
9282
9283	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is
9284	// for FAQ_ANSWER.
9285	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
9286
9287	// ForceSendFields is a list of field names (e.g. "Error") to
9288	// unconditionally include in API requests. By default, fields with
9289	// empty values are omitted from API requests. However, any non-pointer,
9290	// non-interface field appearing in ForceSendFields will be sent to the
9291	// server regardless of whether the field is empty or not. This may be
9292	// used to include empty fields in Patch requests.
9293	ForceSendFields []string `json:"-"`
9294
9295	// NullFields is a list of field names (e.g. "Error") to include in API
9296	// requests with the JSON null value. By default, fields with empty
9297	// values are omitted from API requests. However, any field with an
9298	// empty value appearing in NullFields will be sent to the server as
9299	// null. It is an error if a field in this list has a non-empty value.
9300	// This may be used to include null fields in Patch requests.
9301	NullFields []string `json:"-"`
9302}
9303
9304func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
9305	type NoMethod GoogleCloudDialogflowV2SuggestionResult
9306	raw := NoMethod(*s)
9307	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9308}
9309
9310// GoogleCloudDialogflowV2WebhookRequest: The request message for a
9311// webhook call.
9312type GoogleCloudDialogflowV2WebhookRequest struct {
9313	// OriginalDetectIntentRequest: Optional. The contents of the original
9314	// request that was passed to `[Streaming]DetectIntent` call.
9315	OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
9316
9317	// QueryResult: The result of the conversational query or event
9318	// processing. Contains the same value as
9319	// `[Streaming]DetectIntentResponse.query_result`.
9320	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
9321
9322	// ResponseId: The unique identifier of the response. Contains the same
9323	// value as `[Streaming]DetectIntentResponse.response_id`.
9324	ResponseId string `json:"responseId,omitempty"`
9325
9326	// Session: The unique identifier of detectIntent request session. Can
9327	// be used to identify end-user inside webhook implementation. Format:
9328	// `projects//agent/sessions/`, or
9329	// `projects//agent/environments//users//sessions/`.
9330	Session string `json:"session,omitempty"`
9331
9332	// ForceSendFields is a list of field names (e.g.
9333	// "OriginalDetectIntentRequest") to unconditionally include in API
9334	// requests. By default, fields with empty values are omitted from API
9335	// requests. However, any non-pointer, non-interface field appearing in
9336	// ForceSendFields will be sent to the server regardless of whether the
9337	// field is empty or not. This may be used to include empty fields in
9338	// Patch requests.
9339	ForceSendFields []string `json:"-"`
9340
9341	// NullFields is a list of field names (e.g.
9342	// "OriginalDetectIntentRequest") to include in API requests with the
9343	// JSON null value. By default, fields with empty values are omitted
9344	// from API requests. However, any field with an empty value appearing
9345	// in NullFields will be sent to the server as null. It is an error if a
9346	// field in this list has a non-empty value. This may be used to include
9347	// null fields in Patch requests.
9348	NullFields []string `json:"-"`
9349}
9350
9351func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
9352	type NoMethod GoogleCloudDialogflowV2WebhookRequest
9353	raw := NoMethod(*s)
9354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9355}
9356
9357// GoogleCloudDialogflowV2WebhookResponse: The response message for a
9358// webhook call. This response is validated by the Dialogflow server. If
9359// validation fails, an error will be returned in the
9360// QueryResult.diagnostic_info field. Setting JSON fields to an empty
9361// value with the wrong type is a common error. To avoid this error: -
9362// Use "" for empty strings - Use `{}` or `null` for empty objects -
9363// Use `[]` or `null` for empty arrays For more information, see the
9364// Protocol Buffers Language Guide
9365// (https://developers.google.com/protocol-buffers/docs/proto3#json).
9366type GoogleCloudDialogflowV2WebhookResponse struct {
9367	// FollowupEventInput: Optional. Invokes the supplied events. When this
9368	// field is set, Dialogflow ignores the `fulfillment_text`,
9369	// `fulfillment_messages`, and `payload` fields.
9370	FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
9371
9372	// FulfillmentMessages: Optional. The rich response messages intended
9373	// for the end-user. When provided, Dialogflow uses this field to
9374	// populate QueryResult.fulfillment_messages sent to the integration or
9375	// API caller.
9376	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
9377
9378	// FulfillmentText: Optional. The text response message intended for the
9379	// end-user. It is recommended to use
9380	// `fulfillment_messages.text.text[0]` instead. When provided,
9381	// Dialogflow uses this field to populate QueryResult.fulfillment_text
9382	// sent to the integration or API caller.
9383	FulfillmentText string `json:"fulfillmentText,omitempty"`
9384
9385	// OutputContexts: Optional. The collection of output contexts that will
9386	// overwrite currently active contexts for the session and reset their
9387	// lifespans. When provided, Dialogflow uses this field to populate
9388	// QueryResult.output_contexts sent to the integration or API caller.
9389	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
9390
9391	// Payload: Optional. This field can be used to pass custom data from
9392	// your webhook to the integration or API caller. Arbitrary JSON objects
9393	// are supported. When provided, Dialogflow uses this field to populate
9394	// QueryResult.webhook_payload sent to the integration or API caller.
9395	// This field is also used by the Google Assistant integration
9396	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
9397	// response messages. See the format definition at Google Assistant
9398	// Dialogflow webhook format
9399	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
9400	Payload googleapi.RawMessage `json:"payload,omitempty"`
9401
9402	// SessionEntityTypes: Optional. Additional session entity types to
9403	// replace or extend developer entity types with. The entity synonyms
9404	// apply to all languages and persist for the session. Setting this data
9405	// from a webhook overwrites the session entity types that have been set
9406	// using `detectIntent`, `streamingDetectIntent` or SessionEntityType
9407	// management methods.
9408	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
9409
9410	// Source: Optional. A custom field used to identify the webhook source.
9411	// Arbitrary strings are supported. When provided, Dialogflow uses this
9412	// field to populate QueryResult.webhook_source sent to the integration
9413	// or API caller.
9414	Source string `json:"source,omitempty"`
9415
9416	// ForceSendFields is a list of field names (e.g. "FollowupEventInput")
9417	// to unconditionally include in API requests. By default, fields with
9418	// empty values are omitted from API requests. However, any non-pointer,
9419	// non-interface field appearing in ForceSendFields will be sent to the
9420	// server regardless of whether the field is empty or not. This may be
9421	// used to include empty fields in Patch requests.
9422	ForceSendFields []string `json:"-"`
9423
9424	// NullFields is a list of field names (e.g. "FollowupEventInput") to
9425	// include in API requests with the JSON null value. By default, fields
9426	// with empty values are omitted from API requests. However, any field
9427	// with an empty value appearing in NullFields will be sent to the
9428	// server as null. It is an error if a field in this list has a
9429	// non-empty value. This may be used to include null fields in Patch
9430	// requests.
9431	NullFields []string `json:"-"`
9432}
9433
9434func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
9435	type NoMethod GoogleCloudDialogflowV2WebhookResponse
9436	raw := NoMethod(*s)
9437	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9438}
9439
9440// GoogleCloudDialogflowV2beta1Agent: A Dialogflow agent is a virtual
9441// agent that handles conversations with your end-users. It is a natural
9442// language understanding module that understands the nuances of human
9443// language. Dialogflow translates end-user text or audio during a
9444// conversation to structured data that your apps and services can
9445// understand. You design and build a Dialogflow agent to handle the
9446// types of conversations required for your system. For more information
9447// about agents, see the Agent guide
9448// (https://cloud.google.com/dialogflow/docs/agents-overview).
9449type GoogleCloudDialogflowV2beta1Agent struct {
9450	// ApiVersion: Optional. API version displayed in Dialogflow console. If
9451	// not specified, V2 API is assumed. Clients are free to query different
9452	// service endpoints for different API versions. However, bots
9453	// connectors and webhook calls will follow the specified API version.
9454	//
9455	// Possible values:
9456	//   "API_VERSION_UNSPECIFIED" - Not specified.
9457	//   "API_VERSION_V1" - Legacy V1 API.
9458	//   "API_VERSION_V2" - V2 API.
9459	//   "API_VERSION_V2_BETA_1" - V2beta1 API.
9460	ApiVersion string `json:"apiVersion,omitempty"`
9461
9462	// AvatarUri: Optional. The URI of the agent's avatar. Avatars are used
9463	// throughout the Dialogflow console and in the self-hosted Web Demo
9464	// (https://cloud.google.com/dialogflow/docs/integrations/web-demo)
9465	// integration.
9466	AvatarUri string `json:"avatarUri,omitempty"`
9467
9468	// ClassificationThreshold: Optional. To filter out false positive
9469	// results and still get variety in matched natural language inputs for
9470	// your agent, you can tune the machine learning classification
9471	// threshold. If the returned score value is less than the threshold
9472	// value, then a fallback intent will be triggered or, if there are no
9473	// fallback intents defined, no intent will be triggered. The score
9474	// values range from 0.0 (completely uncertain) to 1.0 (completely
9475	// certain). If set to 0.0, the default of 0.3 is used.
9476	ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
9477
9478	// DefaultLanguageCode: Required. The default language of the agent as a
9479	// language tag. See Language Support
9480	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
9481	// list of the currently supported language codes. This field cannot be
9482	// set by the `Update` method.
9483	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
9484
9485	// Description: Optional. The description of this agent. The maximum
9486	// length is 500 characters. If exceeded, the request is rejected.
9487	Description string `json:"description,omitempty"`
9488
9489	// DisplayName: Required. The name of this agent.
9490	DisplayName string `json:"displayName,omitempty"`
9491
9492	// EnableLogging: Optional. Determines whether this agent should log
9493	// conversation queries.
9494	EnableLogging bool `json:"enableLogging,omitempty"`
9495
9496	// MatchMode: Optional. Determines how intents are detected from user
9497	// queries.
9498	//
9499	// Possible values:
9500	//   "MATCH_MODE_UNSPECIFIED" - Not specified.
9501	//   "MATCH_MODE_HYBRID" - Best for agents with a small number of
9502	// examples in intents and/or wide use of templates syntax and composite
9503	// entities.
9504	//   "MATCH_MODE_ML_ONLY" - Can be used for agents with a large number
9505	// of examples in intents, especially the ones using @sys.any or very
9506	// large custom entities.
9507	MatchMode string `json:"matchMode,omitempty"`
9508
9509	// Parent: Required. The project of this agent. Format: `projects/` or
9510	// `projects//locations/`
9511	Parent string `json:"parent,omitempty"`
9512
9513	// SupportedLanguageCodes: Optional. The list of all languages supported
9514	// by this agent (except for the `default_language_code`).
9515	SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
9516
9517	// Tier: Optional. The agent tier. If not specified, TIER_STANDARD is
9518	// assumed.
9519	//
9520	// Possible values:
9521	//   "TIER_UNSPECIFIED" - Not specified. This value should never be
9522	// used.
9523	//   "TIER_STANDARD" - Standard tier.
9524	//   "TIER_ENTERPRISE" - Enterprise tier (Essentials).
9525	//   "TIER_ENTERPRISE_PLUS" - Enterprise tier (Plus).
9526	Tier string `json:"tier,omitempty"`
9527
9528	// TimeZone: Required. The time zone of this agent from the time zone
9529	// database (https://www.iana.org/time-zones), e.g., America/New_York,
9530	// Europe/Paris.
9531	TimeZone string `json:"timeZone,omitempty"`
9532
9533	// ServerResponse contains the HTTP response code and headers from the
9534	// server.
9535	googleapi.ServerResponse `json:"-"`
9536
9537	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
9538	// unconditionally include in API requests. By default, fields with
9539	// empty values are omitted from API requests. However, any non-pointer,
9540	// non-interface field appearing in ForceSendFields will be sent to the
9541	// server regardless of whether the field is empty or not. This may be
9542	// used to include empty fields in Patch requests.
9543	ForceSendFields []string `json:"-"`
9544
9545	// NullFields is a list of field names (e.g. "ApiVersion") to include in
9546	// API requests with the JSON null value. By default, fields with empty
9547	// values are omitted from API requests. However, any field with an
9548	// empty value appearing in NullFields will be sent to the server as
9549	// null. It is an error if a field in this list has a non-empty value.
9550	// This may be used to include null fields in Patch requests.
9551	NullFields []string `json:"-"`
9552}
9553
9554func (s *GoogleCloudDialogflowV2beta1Agent) MarshalJSON() ([]byte, error) {
9555	type NoMethod GoogleCloudDialogflowV2beta1Agent
9556	raw := NoMethod(*s)
9557	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9558}
9559
9560func (s *GoogleCloudDialogflowV2beta1Agent) UnmarshalJSON(data []byte) error {
9561	type NoMethod GoogleCloudDialogflowV2beta1Agent
9562	var s1 struct {
9563		ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
9564		*NoMethod
9565	}
9566	s1.NoMethod = (*NoMethod)(s)
9567	if err := json.Unmarshal(data, &s1); err != nil {
9568		return err
9569	}
9570	s.ClassificationThreshold = float64(s1.ClassificationThreshold)
9571	return nil
9572}
9573
9574// GoogleCloudDialogflowV2beta1AgentAssistantFeedback: Detail feedback
9575// of Agent Assistant result.
9576type GoogleCloudDialogflowV2beta1AgentAssistantFeedback struct {
9577	// AnswerRelevance: Optional. Whether or not the suggested answer is
9578	// relevant. For example: * Query: "Can I change my mailing address?" *
9579	// Suggested document says: "Items must be returned/exchanged within 60
9580	// days of the purchase date." * answer_relevance:
9581	// AnswerRelevance.IRRELEVANT
9582	//
9583	// Possible values:
9584	//   "ANSWER_RELEVANCE_UNSPECIFIED" - Answer relevance unspecified.
9585	//   "IRRELEVANT" - Answer is irrelevant to query.
9586	//   "RELEVANT" - Answer is relevant to query.
9587	AnswerRelevance string `json:"answerRelevance,omitempty"`
9588
9589	// DocumentCorrectness: Optional. Whether or not the information in the
9590	// document is correct. For example: * Query: "Can I return the package
9591	// in 2 days once received?" * Suggested document says: "Items must be
9592	// returned/exchanged within 60 days of the purchase date." * Ground
9593	// truth: "No return or exchange is allowed." * [document_correctness]:
9594	// INCORRECT
9595	//
9596	// Possible values:
9597	//   "DOCUMENT_CORRECTNESS_UNSPECIFIED" - Document correctness
9598	// unspecified.
9599	//   "INCORRECT" - Information in document is incorrect.
9600	//   "CORRECT" - Information in document is correct.
9601	DocumentCorrectness string `json:"documentCorrectness,omitempty"`
9602
9603	// DocumentEfficiency: Optional. Whether or not the suggested document
9604	// is efficient. For example, if the document is poorly written, hard to
9605	// understand, hard to use or too long to find useful information,
9606	// document_efficiency is DocumentEfficiency.INEFFICIENT.
9607	//
9608	// Possible values:
9609	//   "DOCUMENT_EFFICIENCY_UNSPECIFIED" - Document efficiency
9610	// unspecified.
9611	//   "INEFFICIENT" - Document is inefficient.
9612	//   "EFFICIENT" - Document is efficient.
9613	DocumentEfficiency string `json:"documentEfficiency,omitempty"`
9614
9615	// SummarizationFeedback: Feedback for conversation summarization.
9616	SummarizationFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"`
9617
9618	// ForceSendFields is a list of field names (e.g. "AnswerRelevance") to
9619	// unconditionally include in API requests. By default, fields with
9620	// empty values are omitted from API requests. However, any non-pointer,
9621	// non-interface field appearing in ForceSendFields will be sent to the
9622	// server regardless of whether the field is empty or not. This may be
9623	// used to include empty fields in Patch requests.
9624	ForceSendFields []string `json:"-"`
9625
9626	// NullFields is a list of field names (e.g. "AnswerRelevance") to
9627	// include in API requests with the JSON null value. By default, fields
9628	// with empty values are omitted from API requests. However, any field
9629	// with an empty value appearing in NullFields will be sent to the
9630	// server as null. It is an error if a field in this list has a
9631	// non-empty value. This may be used to include null fields in Patch
9632	// requests.
9633	NullFields []string `json:"-"`
9634}
9635
9636func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedback) MarshalJSON() ([]byte, error) {
9637	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedback
9638	raw := NoMethod(*s)
9639	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9640}
9641
9642// GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedbac
9643// k: Feedback for conversation summarization.
9644type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback struct {
9645	// StartTimestamp: Timestamp when composing of the summary starts.
9646	StartTimestamp string `json:"startTimestamp,omitempty"`
9647
9648	// SubmitTimestamp: Timestamp when the summary was submitted.
9649	SubmitTimestamp string `json:"submitTimestamp,omitempty"`
9650
9651	// SummaryText: Text of actual submitted summary.
9652	SummaryText string `json:"summaryText,omitempty"`
9653
9654	// ForceSendFields is a list of field names (e.g. "StartTimestamp") to
9655	// unconditionally include in API requests. By default, fields with
9656	// empty values are omitted from API requests. However, any non-pointer,
9657	// non-interface field appearing in ForceSendFields will be sent to the
9658	// server regardless of whether the field is empty or not. This may be
9659	// used to include empty fields in Patch requests.
9660	ForceSendFields []string `json:"-"`
9661
9662	// NullFields is a list of field names (e.g. "StartTimestamp") to
9663	// include in API requests with the JSON null value. By default, fields
9664	// with empty values are omitted from API requests. However, any field
9665	// with an empty value appearing in NullFields will be sent to the
9666	// server as null. It is an error if a field in this list has a
9667	// non-empty value. This may be used to include null fields in Patch
9668	// requests.
9669	NullFields []string `json:"-"`
9670}
9671
9672func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback) MarshalJSON() ([]byte, error) {
9673	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback
9674	raw := NoMethod(*s)
9675	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9676}
9677
9678// GoogleCloudDialogflowV2beta1AgentAssistantRecord: Represents a record
9679// of a human agent assistant answer.
9680type GoogleCloudDialogflowV2beta1AgentAssistantRecord struct {
9681	// ArticleSuggestionAnswer: Output only. The article suggestion answer.
9682	ArticleSuggestionAnswer *GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleSuggestionAnswer,omitempty"`
9683
9684	// FaqAnswer: Output only. The FAQ answer.
9685	FaqAnswer *GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswer,omitempty"`
9686
9687	// ForceSendFields is a list of field names (e.g.
9688	// "ArticleSuggestionAnswer") to unconditionally include in API
9689	// requests. By default, fields with empty values are omitted from API
9690	// requests. However, any non-pointer, non-interface field appearing in
9691	// ForceSendFields will be sent to the server regardless of whether the
9692	// field is empty or not. This may be used to include empty fields in
9693	// Patch requests.
9694	ForceSendFields []string `json:"-"`
9695
9696	// NullFields is a list of field names (e.g. "ArticleSuggestionAnswer")
9697	// to include in API requests with the JSON null value. By default,
9698	// fields with empty values are omitted from API requests. However, any
9699	// field with an empty value appearing in NullFields will be sent to the
9700	// server as null. It is an error if a field in this list has a
9701	// non-empty value. This may be used to include null fields in Patch
9702	// requests.
9703	NullFields []string `json:"-"`
9704}
9705
9706func (s *GoogleCloudDialogflowV2beta1AgentAssistantRecord) MarshalJSON() ([]byte, error) {
9707	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantRecord
9708	raw := NoMethod(*s)
9709	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9710}
9711
9712// GoogleCloudDialogflowV2beta1AnalyzeContentRequest: The request
9713// message for Participants.AnalyzeContent.
9714type GoogleCloudDialogflowV2beta1AnalyzeContentRequest struct {
9715	// EventInput: An input event to send to Dialogflow.
9716	EventInput *GoogleCloudDialogflowV2beta1EventInput `json:"eventInput,omitempty"`
9717
9718	// MessageSendTime: Optional. The send time of the message from end user
9719	// or human agent's perspective. It is used for identifying the same
9720	// message under one participant. Given two messages under the same
9721	// participant: - If send time are different regardless of whether the
9722	// content of the messages are exactly the same, the conversation will
9723	// regard them as two distinct messages sent by the participant. - If
9724	// send time is the same regardless of whether the content of the
9725	// messages are exactly the same, the conversation will regard them as
9726	// same message, and ignore the message received later. If the value is
9727	// not provided, a new request will always be regarded as a new message
9728	// without any de-duplication.
9729	MessageSendTime string `json:"messageSendTime,omitempty"`
9730
9731	// QueryParams: Parameters for a Dialogflow virtual-agent query.
9732	QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
9733
9734	// ReplyAudioConfig: Speech synthesis configuration. The speech
9735	// synthesis settings for a virtual agent that may be configured for the
9736	// associated conversation profile are not used when calling
9737	// AnalyzeContent. If this configuration is not supplied, speech
9738	// synthesis is disabled.
9739	ReplyAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"replyAudioConfig,omitempty"`
9740
9741	// RequestId: A unique identifier for this request. Restricted to 36
9742	// ASCII characters. A random UUID is recommended. This request is only
9743	// idempotent if a `request_id` is provided.
9744	RequestId string `json:"requestId,omitempty"`
9745
9746	// TextInput: The natural language text to be processed.
9747	TextInput *GoogleCloudDialogflowV2beta1TextInput `json:"textInput,omitempty"`
9748
9749	// ForceSendFields is a list of field names (e.g. "EventInput") to
9750	// unconditionally include in API requests. By default, fields with
9751	// empty values are omitted from API requests. However, any non-pointer,
9752	// non-interface field appearing in ForceSendFields will be sent to the
9753	// server regardless of whether the field is empty or not. This may be
9754	// used to include empty fields in Patch requests.
9755	ForceSendFields []string `json:"-"`
9756
9757	// NullFields is a list of field names (e.g. "EventInput") to include in
9758	// API requests with the JSON null value. By default, fields with empty
9759	// values are omitted from API requests. However, any field with an
9760	// empty value appearing in NullFields will be sent to the server as
9761	// null. It is an error if a field in this list has a non-empty value.
9762	// This may be used to include null fields in Patch requests.
9763	NullFields []string `json:"-"`
9764}
9765
9766func (s *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) MarshalJSON() ([]byte, error) {
9767	type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentRequest
9768	raw := NoMethod(*s)
9769	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9770}
9771
9772// GoogleCloudDialogflowV2beta1AnalyzeContentResponse: The response
9773// message for Participants.AnalyzeContent.
9774type GoogleCloudDialogflowV2beta1AnalyzeContentResponse struct {
9775	// AutomatedAgentReply: Optional. Only set if a Dialogflow automated
9776	// agent has responded. Note that:
9777	// AutomatedAgentReply.detect_intent_response.output_audio and
9778	// AutomatedAgentReply.detect_intent_response.output_audio_config are
9779	// always empty, use reply_audio instead.
9780	AutomatedAgentReply *GoogleCloudDialogflowV2beta1AutomatedAgentReply `json:"automatedAgentReply,omitempty"`
9781
9782	// DtmfParameters: Indicates the parameters of DTMF.
9783	DtmfParameters *GoogleCloudDialogflowV2beta1DtmfParameters `json:"dtmfParameters,omitempty"`
9784
9785	// EndUserSuggestionResults: The suggestions for end user. The order is
9786	// the same as
9787	// HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
9788	// HumanAgentAssistantConfig.end_user_suggestion_config.
9789	EndUserSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"endUserSuggestionResults,omitempty"`
9790
9791	// HumanAgentSuggestionResults: The suggestions for most recent human
9792	// agent. The order is the same as
9793	// HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
9794	// HumanAgentAssistantConfig.human_agent_suggestion_config.
9795	HumanAgentSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"humanAgentSuggestionResults,omitempty"`
9796
9797	// Message: Output only. Message analyzed by CCAI.
9798	Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
9799
9800	// ReplyAudio: Optional. The audio data bytes encoded as specified in
9801	// the request. This field is set if: - `reply_audio_config` was
9802	// specified in the request, or - The automated agent responded with
9803	// audio to play to the user. In such case, `reply_audio.config`
9804	// contains settings used to synthesize the speech. In some scenarios,
9805	// multiple output audio fields may be present in the response
9806	// structure. In these cases, only the top-most-level audio output has
9807	// content.
9808	ReplyAudio *GoogleCloudDialogflowV2beta1OutputAudio `json:"replyAudio,omitempty"`
9809
9810	// ReplyText: Output only. The output text content. This field is set if
9811	// the automated agent responded with text to show to the user.
9812	ReplyText string `json:"replyText,omitempty"`
9813
9814	// ServerResponse contains the HTTP response code and headers from the
9815	// server.
9816	googleapi.ServerResponse `json:"-"`
9817
9818	// ForceSendFields is a list of field names (e.g. "AutomatedAgentReply")
9819	// to unconditionally include in API requests. By default, fields with
9820	// empty values are omitted from API requests. However, any non-pointer,
9821	// non-interface field appearing in ForceSendFields will be sent to the
9822	// server regardless of whether the field is empty or not. This may be
9823	// used to include empty fields in Patch requests.
9824	ForceSendFields []string `json:"-"`
9825
9826	// NullFields is a list of field names (e.g. "AutomatedAgentReply") to
9827	// include in API requests with the JSON null value. By default, fields
9828	// with empty values are omitted from API requests. However, any field
9829	// with an empty value appearing in NullFields will be sent to the
9830	// server as null. It is an error if a field in this list has a
9831	// non-empty value. This may be used to include null fields in Patch
9832	// requests.
9833	NullFields []string `json:"-"`
9834}
9835
9836func (s *GoogleCloudDialogflowV2beta1AnalyzeContentResponse) MarshalJSON() ([]byte, error) {
9837	type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentResponse
9838	raw := NoMethod(*s)
9839	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9840}
9841
9842// GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part
9843// of a message possibly annotated with an entity. The part can be an
9844// entity or purely a part of the message between two entities or
9845// message start/end.
9846type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
9847	// EntityType: Optional. The Dialogflow system entity type
9848	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
9849	// of this message part. If this is empty, Dialogflow could not annotate
9850	// the phrase part with a system entity.
9851	EntityType string `json:"entityType,omitempty"`
9852
9853	// FormattedValue: Optional. The Dialogflow system entity formatted
9854	// value
9855	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
9856	// of this message part. For example for a system entity of type
9857	// `@sys.unit-currency`, this may contain: { "amount": 5, "currency":
9858	// "USD" }
9859	FormattedValue interface{} `json:"formattedValue,omitempty"`
9860
9861	// Text: Required. A part of a message possibly annotated with an
9862	// entity.
9863	Text string `json:"text,omitempty"`
9864
9865	// ForceSendFields is a list of field names (e.g. "EntityType") to
9866	// unconditionally include in API requests. By default, fields with
9867	// empty values are omitted from API requests. However, any non-pointer,
9868	// non-interface field appearing in ForceSendFields will be sent to the
9869	// server regardless of whether the field is empty or not. This may be
9870	// used to include empty fields in Patch requests.
9871	ForceSendFields []string `json:"-"`
9872
9873	// NullFields is a list of field names (e.g. "EntityType") to include in
9874	// API requests with the JSON null value. By default, fields with empty
9875	// values are omitted from API requests. However, any field with an
9876	// empty value appearing in NullFields will be sent to the server as
9877	// null. It is an error if a field in this list has a non-empty value.
9878	// This may be used to include null fields in Patch requests.
9879	NullFields []string `json:"-"`
9880}
9881
9882func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
9883	type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
9884	raw := NoMethod(*s)
9885	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9886}
9887
9888// GoogleCloudDialogflowV2beta1AnswerFeedback: Represents feedback the
9889// customer has about the quality & correctness of a certain answer in a
9890// conversation.
9891type GoogleCloudDialogflowV2beta1AnswerFeedback struct {
9892	// AgentAssistantDetailFeedback: Optional. Detail feedback of agent
9893	// assistant suggestions.
9894	AgentAssistantDetailFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedback `json:"agentAssistantDetailFeedback,omitempty"`
9895
9896	// ClickTime: Time when the answer/item was clicked.
9897	ClickTime string `json:"clickTime,omitempty"`
9898
9899	// Clicked: Indicates whether the answer/item was clicked by the human
9900	// agent or not. Default to false.
9901	Clicked bool `json:"clicked,omitempty"`
9902
9903	// CorrectnessLevel: The correctness level of the specific answer.
9904	//
9905	// Possible values:
9906	//   "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified.
9907	//   "NOT_CORRECT" - Answer is totally wrong.
9908	//   "PARTIALLY_CORRECT" - Answer is partially correct.
9909	//   "FULLY_CORRECT" - Answer is fully correct.
9910	CorrectnessLevel string `json:"correctnessLevel,omitempty"`
9911
9912	// DisplayTime: Time when the answer/item was displayed.
9913	DisplayTime string `json:"displayTime,omitempty"`
9914
9915	// Displayed: Indicates whether the answer/item was displayed to the
9916	// human agent in the agent desktop UI. Default to false.
9917	Displayed bool `json:"displayed,omitempty"`
9918
9919	// ForceSendFields is a list of field names (e.g.
9920	// "AgentAssistantDetailFeedback") to unconditionally include in API
9921	// requests. By default, fields with empty values are omitted from API
9922	// requests. However, any non-pointer, non-interface field appearing in
9923	// ForceSendFields will be sent to the server regardless of whether the
9924	// field is empty or not. This may be used to include empty fields in
9925	// Patch requests.
9926	ForceSendFields []string `json:"-"`
9927
9928	// NullFields is a list of field names (e.g.
9929	// "AgentAssistantDetailFeedback") to include in API requests with the
9930	// JSON null value. By default, fields with empty values are omitted
9931	// from API requests. However, any field with an empty value appearing
9932	// in NullFields will be sent to the server as null. It is an error if a
9933	// field in this list has a non-empty value. This may be used to include
9934	// null fields in Patch requests.
9935	NullFields []string `json:"-"`
9936}
9937
9938func (s *GoogleCloudDialogflowV2beta1AnswerFeedback) MarshalJSON() ([]byte, error) {
9939	type NoMethod GoogleCloudDialogflowV2beta1AnswerFeedback
9940	raw := NoMethod(*s)
9941	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9942}
9943
9944// GoogleCloudDialogflowV2beta1AnswerRecord: Answer records are records
9945// to manage answer history and feedbacks for Dialogflow. Currently,
9946// answer record includes: - human agent assistant article suggestion -
9947// human agent assistant faq article It doesn't include: -
9948// `DetectIntent` intent matching - `DetectIntent` knowledge Answer
9949// records are not related to the conversation history in the Dialogflow
9950// Console. A Record is generated even when the end-user disables
9951// conversation history in the console. Records are created when there's
9952// a human agent assistant suggestion generated. A typical workflow for
9953// customers provide feedback to an answer is: 1. For human agent
9954// assistant, customers get suggestion via ListSuggestions API. Together
9955// with the answers, AnswerRecord.name are returned to the customers. 2.
9956// The customer uses the AnswerRecord.name to call the
9957// UpdateAnswerRecord method to send feedback about a specific answer
9958// that they believe is wrong.
9959type GoogleCloudDialogflowV2beta1AnswerRecord struct {
9960	// AgentAssistantRecord: Output only. The record for human agent
9961	// assistant.
9962	AgentAssistantRecord *GoogleCloudDialogflowV2beta1AgentAssistantRecord `json:"agentAssistantRecord,omitempty"`
9963
9964	// AnswerFeedback: Optional. The AnswerFeedback for this record. You can
9965	// set this with AnswerRecords.UpdateAnswerRecord in order to give us
9966	// feedback about this answer.
9967	AnswerFeedback *GoogleCloudDialogflowV2beta1AnswerFeedback `json:"answerFeedback,omitempty"`
9968
9969	// Name: The unique identifier of this answer record. Required for
9970	// AnswerRecords.UpdateAnswerRecord method. Format:
9971	// `projects//locations//answerRecords/`.
9972	Name string `json:"name,omitempty"`
9973
9974	// ServerResponse contains the HTTP response code and headers from the
9975	// server.
9976	googleapi.ServerResponse `json:"-"`
9977
9978	// ForceSendFields is a list of field names (e.g.
9979	// "AgentAssistantRecord") to unconditionally include in API requests.
9980	// By default, fields with empty values are omitted from API requests.
9981	// However, any non-pointer, non-interface field appearing in
9982	// ForceSendFields will be sent to the server regardless of whether the
9983	// field is empty or not. This may be used to include empty fields in
9984	// Patch requests.
9985	ForceSendFields []string `json:"-"`
9986
9987	// NullFields is a list of field names (e.g. "AgentAssistantRecord") to
9988	// include in API requests with the JSON null value. By default, fields
9989	// with empty values are omitted from API requests. However, any field
9990	// with an empty value appearing in NullFields will be sent to the
9991	// server as null. It is an error if a field in this list has a
9992	// non-empty value. This may be used to include null fields in Patch
9993	// requests.
9994	NullFields []string `json:"-"`
9995}
9996
9997func (s *GoogleCloudDialogflowV2beta1AnswerRecord) MarshalJSON() ([]byte, error) {
9998	type NoMethod GoogleCloudDialogflowV2beta1AnswerRecord
9999	raw := NoMethod(*s)
10000	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10001}
10002
10003// GoogleCloudDialogflowV2beta1ArticleAnswer: Represents article answer.
10004type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
10005	// AnswerRecord: The name of answer record, in the format of
10006	// "projects//locations//answerRecords/"
10007	AnswerRecord string `json:"answerRecord,omitempty"`
10008
10009	// Metadata: A map that contains metadata about the answer and the
10010	// document from which it originates.
10011	Metadata map[string]string `json:"metadata,omitempty"`
10012
10013	// Snippets: Output only. Article snippets.
10014	Snippets []string `json:"snippets,omitempty"`
10015
10016	// Title: The article title.
10017	Title string `json:"title,omitempty"`
10018
10019	// Uri: The article URI.
10020	Uri string `json:"uri,omitempty"`
10021
10022	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
10023	// unconditionally include in API requests. By default, fields with
10024	// empty values are omitted from API requests. However, any non-pointer,
10025	// non-interface field appearing in ForceSendFields will be sent to the
10026	// server regardless of whether the field is empty or not. This may be
10027	// used to include empty fields in Patch requests.
10028	ForceSendFields []string `json:"-"`
10029
10030	// NullFields is a list of field names (e.g. "AnswerRecord") to include
10031	// in API requests with the JSON null value. By default, fields with
10032	// empty values are omitted from API requests. However, any field with
10033	// an empty value appearing in NullFields will be sent to the server as
10034	// null. It is an error if a field in this list has a non-empty value.
10035	// This may be used to include null fields in Patch requests.
10036	NullFields []string `json:"-"`
10037}
10038
10039func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
10040	type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
10041	raw := NoMethod(*s)
10042	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10043}
10044
10045// GoogleCloudDialogflowV2beta1AutomatedAgentConfig: Defines the
10046// Automated Agent to connect to a conversation.
10047type GoogleCloudDialogflowV2beta1AutomatedAgentConfig struct {
10048	// Agent: Required. ID of the Dialogflow agent environment to use. This
10049	// project needs to either be the same project as the conversation or
10050	// you need to grant
10051	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow
10052	// API Service Agent` role in this project. - For ES agents, use format:
10053	// `projects//locations//agent/environments/`. If environment is not
10054	// specified, the default `draft` environment is used. Refer to
10055	// DetectIntentRequest
10056	// (/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google
10057	// .cloud.dialogflow.v2beta1.DetectIntentRequest) for more details. -
10058	// For CX agents, use format
10059	// `projects//locations//agents//environments/`. If environment is not
10060	// specified, the default `draft` environment is used.
10061	Agent string `json:"agent,omitempty"`
10062
10063	// ForceSendFields is a list of field names (e.g. "Agent") to
10064	// unconditionally include in API requests. By default, fields with
10065	// empty values are omitted from API requests. However, any non-pointer,
10066	// non-interface field appearing in ForceSendFields will be sent to the
10067	// server regardless of whether the field is empty or not. This may be
10068	// used to include empty fields in Patch requests.
10069	ForceSendFields []string `json:"-"`
10070
10071	// NullFields is a list of field names (e.g. "Agent") to include in API
10072	// requests with the JSON null value. By default, fields with empty
10073	// values are omitted from API requests. However, any field with an
10074	// empty value appearing in NullFields will be sent to the server as
10075	// null. It is an error if a field in this list has a non-empty value.
10076	// This may be used to include null fields in Patch requests.
10077	NullFields []string `json:"-"`
10078}
10079
10080func (s *GoogleCloudDialogflowV2beta1AutomatedAgentConfig) MarshalJSON() ([]byte, error) {
10081	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentConfig
10082	raw := NoMethod(*s)
10083	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10084}
10085
10086// GoogleCloudDialogflowV2beta1AutomatedAgentReply: Represents a
10087// response from an automated agent.
10088type GoogleCloudDialogflowV2beta1AutomatedAgentReply struct {
10089	// AllowCancellation: Indicates whether the partial automated agent
10090	// reply is interruptible when a later reply message arrives. e.g. if
10091	// the agent specified some music as partial response, it can be
10092	// cancelled.
10093	AllowCancellation bool `json:"allowCancellation,omitempty"`
10094
10095	// AutomatedAgentReplyType: AutomatedAgentReply type.
10096	//
10097	// Possible values:
10098	//   "AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED" - Not specified. This
10099	// should never happen.
10100	//   "PARTIAL" - Partial reply. e.g. Aggregated responses in a
10101	// `Fulfillment` that enables `return_partial_response` can be returned
10102	// as partial reply. WARNING: partial reply is not eligible for
10103	// barge-in.
10104	//   "FINAL" - Final reply.
10105	AutomatedAgentReplyType string `json:"automatedAgentReplyType,omitempty"`
10106
10107	// CxSessionParameters: The collection of current Dialogflow CX agent
10108	// session parameters at the time of this response. Deprecated: Use
10109	// `parameters` instead.
10110	CxSessionParameters googleapi.RawMessage `json:"cxSessionParameters,omitempty"`
10111
10112	// DetectIntentResponse: Response of the Dialogflow
10113	// Sessions.DetectIntent call.
10114	DetectIntentResponse *GoogleCloudDialogflowV2beta1DetectIntentResponse `json:"detectIntentResponse,omitempty"`
10115
10116	// Event: Event name if an event is triggered for the query.
10117	Event string `json:"event,omitempty"`
10118
10119	// Intent: Name of the intent if an intent is matched for the query. For
10120	// a V2 query, the value format is `projects//locations/
10121	// /agent/intents/`. For a V3 query, the value format is
10122	// `projects//locations/ /agents//intents/`.
10123	Intent string `json:"intent,omitempty"`
10124
10125	// MatchConfidence: The confidence of the match. Values range from 0.0
10126	// (completely uncertain) to 1.0 (completely certain). This value is for
10127	// informational purpose only and is only used to help match the best
10128	// intent within the classification threshold. This value may change for
10129	// the same end-user expression at any time due to a model retraining or
10130	// change in implementation.
10131	MatchConfidence float64 `json:"matchConfidence,omitempty"`
10132
10133	// Parameters: The collection of current parameters at the time of this
10134	// response.
10135	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
10136
10137	// ResponseMessages: Response messages from the automated agent.
10138	ResponseMessages []*GoogleCloudDialogflowV2beta1ResponseMessage `json:"responseMessages,omitempty"`
10139
10140	// ForceSendFields is a list of field names (e.g. "AllowCancellation")
10141	// to unconditionally include in API requests. By default, fields with
10142	// empty values are omitted from API requests. However, any non-pointer,
10143	// non-interface field appearing in ForceSendFields will be sent to the
10144	// server regardless of whether the field is empty or not. This may be
10145	// used to include empty fields in Patch requests.
10146	ForceSendFields []string `json:"-"`
10147
10148	// NullFields is a list of field names (e.g. "AllowCancellation") to
10149	// include in API requests with the JSON null value. By default, fields
10150	// with empty values are omitted from API requests. However, any field
10151	// with an empty value appearing in NullFields will be sent to the
10152	// server as null. It is an error if a field in this list has a
10153	// non-empty value. This may be used to include null fields in Patch
10154	// requests.
10155	NullFields []string `json:"-"`
10156}
10157
10158func (s *GoogleCloudDialogflowV2beta1AutomatedAgentReply) MarshalJSON() ([]byte, error) {
10159	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentReply
10160	raw := NoMethod(*s)
10161	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10162}
10163
10164func (s *GoogleCloudDialogflowV2beta1AutomatedAgentReply) UnmarshalJSON(data []byte) error {
10165	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentReply
10166	var s1 struct {
10167		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
10168		*NoMethod
10169	}
10170	s1.NoMethod = (*NoMethod)(s)
10171	if err := json.Unmarshal(data, &s1); err != nil {
10172		return err
10173	}
10174	s.MatchConfidence = float64(s1.MatchConfidence)
10175	return nil
10176}
10177
10178// GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest: The request
10179// message for EntityTypes.BatchCreateEntities.
10180type GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest struct {
10181	// Entities: Required. The entities to create.
10182	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
10183
10184	// LanguageCode: Optional. The language used to access language-specific
10185	// data. If not specified, the agent's default language is used. For
10186	// more information, see Multilingual intent and entity data
10187	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10188	LanguageCode string `json:"languageCode,omitempty"`
10189
10190	// ForceSendFields is a list of field names (e.g. "Entities") to
10191	// unconditionally include in API requests. By default, fields with
10192	// empty values are omitted from API requests. However, any non-pointer,
10193	// non-interface field appearing in ForceSendFields will be sent to the
10194	// server regardless of whether the field is empty or not. This may be
10195	// used to include empty fields in Patch requests.
10196	ForceSendFields []string `json:"-"`
10197
10198	// NullFields is a list of field names (e.g. "Entities") to include in
10199	// API requests with the JSON null value. By default, fields with empty
10200	// values are omitted from API requests. However, any field with an
10201	// empty value appearing in NullFields will be sent to the server as
10202	// null. It is an error if a field in this list has a non-empty value.
10203	// This may be used to include null fields in Patch requests.
10204	NullFields []string `json:"-"`
10205}
10206
10207func (s *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error) {
10208	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
10209	raw := NoMethod(*s)
10210	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10211}
10212
10213// GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest: The request
10214// message for Conversations.BatchCreateMessagesRequest.
10215type GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest struct {
10216	// Requests: Required. A maximum of 1000 Messages can be created in a
10217	// batch. CreateMessageRequest.message.send_time is required. All
10218	// created messages will have identical Message.create_time.
10219	Requests []*GoogleCloudDialogflowV2beta1CreateMessageRequest `json:"requests,omitempty"`
10220
10221	// ForceSendFields is a list of field names (e.g. "Requests") to
10222	// unconditionally include in API requests. By default, fields with
10223	// empty values are omitted from API requests. However, any non-pointer,
10224	// non-interface field appearing in ForceSendFields will be sent to the
10225	// server regardless of whether the field is empty or not. This may be
10226	// used to include empty fields in Patch requests.
10227	ForceSendFields []string `json:"-"`
10228
10229	// NullFields is a list of field names (e.g. "Requests") to include in
10230	// API requests with the JSON null value. By default, fields with empty
10231	// values are omitted from API requests. However, any field with an
10232	// empty value appearing in NullFields will be sent to the server as
10233	// null. It is an error if a field in this list has a non-empty value.
10234	// This may be used to include null fields in Patch requests.
10235	NullFields []string `json:"-"`
10236}
10237
10238func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) MarshalJSON() ([]byte, error) {
10239	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
10240	raw := NoMethod(*s)
10241	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10242}
10243
10244// GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse: The request
10245// message for Conversations.BatchCreateMessagesResponse.
10246type GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse struct {
10247	// Messages: Messages created.
10248	Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
10249
10250	// ServerResponse contains the HTTP response code and headers from the
10251	// server.
10252	googleapi.ServerResponse `json:"-"`
10253
10254	// ForceSendFields is a list of field names (e.g. "Messages") to
10255	// unconditionally include in API requests. By default, fields with
10256	// empty values are omitted from API requests. However, any non-pointer,
10257	// non-interface field appearing in ForceSendFields will be sent to the
10258	// server regardless of whether the field is empty or not. This may be
10259	// used to include empty fields in Patch requests.
10260	ForceSendFields []string `json:"-"`
10261
10262	// NullFields is a list of field names (e.g. "Messages") to include in
10263	// API requests with the JSON null value. By default, fields with empty
10264	// values are omitted from API requests. However, any field with an
10265	// empty value appearing in NullFields will be sent to the server as
10266	// null. It is an error if a field in this list has a non-empty value.
10267	// This may be used to include null fields in Patch requests.
10268	NullFields []string `json:"-"`
10269}
10270
10271func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse) MarshalJSON() ([]byte, error) {
10272	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse
10273	raw := NoMethod(*s)
10274	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10275}
10276
10277// GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest: The request
10278// message for EntityTypes.BatchDeleteEntities.
10279type GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest struct {
10280	// EntityValues: Required. The reference `values` of the entities to
10281	// delete. Note that these are not fully-qualified names, i.e. they
10282	// don't start with `projects/`.
10283	EntityValues []string `json:"entityValues,omitempty"`
10284
10285	// LanguageCode: Optional. The language used to access language-specific
10286	// data. If not specified, the agent's default language is used. For
10287	// more information, see Multilingual intent and entity data
10288	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10289	LanguageCode string `json:"languageCode,omitempty"`
10290
10291	// ForceSendFields is a list of field names (e.g. "EntityValues") to
10292	// unconditionally include in API requests. By default, fields with
10293	// empty values are omitted from API requests. However, any non-pointer,
10294	// non-interface field appearing in ForceSendFields will be sent to the
10295	// server regardless of whether the field is empty or not. This may be
10296	// used to include empty fields in Patch requests.
10297	ForceSendFields []string `json:"-"`
10298
10299	// NullFields is a list of field names (e.g. "EntityValues") to include
10300	// in API requests with the JSON null value. By default, fields with
10301	// empty values are omitted from API requests. However, any field with
10302	// an empty value appearing in NullFields will be sent to the server as
10303	// null. It is an error if a field in this list has a non-empty value.
10304	// This may be used to include null fields in Patch requests.
10305	NullFields []string `json:"-"`
10306}
10307
10308func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error) {
10309	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
10310	raw := NoMethod(*s)
10311	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10312}
10313
10314// GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest: The
10315// request message for EntityTypes.BatchDeleteEntityTypes.
10316type GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest struct {
10317	// EntityTypeNames: Required. The names entity types to delete. All
10318	// names must point to the same agent as `parent`.
10319	EntityTypeNames []string `json:"entityTypeNames,omitempty"`
10320
10321	// ForceSendFields is a list of field names (e.g. "EntityTypeNames") to
10322	// unconditionally include in API requests. By default, fields with
10323	// empty values are omitted from API requests. However, any non-pointer,
10324	// non-interface field appearing in ForceSendFields will be sent to the
10325	// server regardless of whether the field is empty or not. This may be
10326	// used to include empty fields in Patch requests.
10327	ForceSendFields []string `json:"-"`
10328
10329	// NullFields is a list of field names (e.g. "EntityTypeNames") to
10330	// include in API requests with the JSON null value. By default, fields
10331	// with empty values are omitted from API requests. However, any field
10332	// with an empty value appearing in NullFields will be sent to the
10333	// server as null. It is an error if a field in this list has a
10334	// non-empty value. This may be used to include null fields in Patch
10335	// requests.
10336	NullFields []string `json:"-"`
10337}
10338
10339func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error) {
10340	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
10341	raw := NoMethod(*s)
10342	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10343}
10344
10345// GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest: The request
10346// message for Intents.BatchDeleteIntents.
10347type GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest struct {
10348	// Intents: Required. The collection of intents to delete. Only intent
10349	// `name` must be filled in.
10350	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
10351
10352	// ForceSendFields is a list of field names (e.g. "Intents") to
10353	// unconditionally include in API requests. By default, fields with
10354	// empty values are omitted from API requests. However, any non-pointer,
10355	// non-interface field appearing in ForceSendFields will be sent to the
10356	// server regardless of whether the field is empty or not. This may be
10357	// used to include empty fields in Patch requests.
10358	ForceSendFields []string `json:"-"`
10359
10360	// NullFields is a list of field names (e.g. "Intents") to include in
10361	// API requests with the JSON null value. By default, fields with empty
10362	// values are omitted from API requests. However, any field with an
10363	// empty value appearing in NullFields will be sent to the server as
10364	// null. It is an error if a field in this list has a non-empty value.
10365	// This may be used to include null fields in Patch requests.
10366	NullFields []string `json:"-"`
10367}
10368
10369func (s *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error) {
10370	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
10371	raw := NoMethod(*s)
10372	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10373}
10374
10375// GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest: The request
10376// message for EntityTypes.BatchUpdateEntities.
10377type GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest struct {
10378	// Entities: Required. The entities to update or create.
10379	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
10380
10381	// LanguageCode: Optional. The language used to access language-specific
10382	// data. If not specified, the agent's default language is used. For
10383	// more information, see Multilingual intent and entity data
10384	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10385	LanguageCode string `json:"languageCode,omitempty"`
10386
10387	// UpdateMask: Optional. The mask to control which fields get updated.
10388	UpdateMask string `json:"updateMask,omitempty"`
10389
10390	// ForceSendFields is a list of field names (e.g. "Entities") to
10391	// unconditionally include in API requests. By default, fields with
10392	// empty values are omitted from API requests. However, any non-pointer,
10393	// non-interface field appearing in ForceSendFields will be sent to the
10394	// server regardless of whether the field is empty or not. This may be
10395	// used to include empty fields in Patch requests.
10396	ForceSendFields []string `json:"-"`
10397
10398	// NullFields is a list of field names (e.g. "Entities") to include in
10399	// API requests with the JSON null value. By default, fields with empty
10400	// values are omitted from API requests. However, any field with an
10401	// empty value appearing in NullFields will be sent to the server as
10402	// null. It is an error if a field in this list has a non-empty value.
10403	// This may be used to include null fields in Patch requests.
10404	NullFields []string `json:"-"`
10405}
10406
10407func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error) {
10408	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
10409	raw := NoMethod(*s)
10410	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10411}
10412
10413// GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest: The
10414// request message for EntityTypes.BatchUpdateEntityTypes.
10415type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest struct {
10416	// EntityTypeBatchInline: The collection of entity types to update or
10417	// create.
10418	EntityTypeBatchInline *GoogleCloudDialogflowV2beta1EntityTypeBatch `json:"entityTypeBatchInline,omitempty"`
10419
10420	// EntityTypeBatchUri: The URI to a Google Cloud Storage file containing
10421	// entity types to update or create. The file format can either be a
10422	// serialized proto (of EntityBatch type) or a JSON object. Note: The
10423	// URI must start with "gs://".
10424	EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"`
10425
10426	// LanguageCode: Optional. The language used to access language-specific
10427	// data. If not specified, the agent's default language is used. For
10428	// more information, see Multilingual intent and entity data
10429	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10430	LanguageCode string `json:"languageCode,omitempty"`
10431
10432	// UpdateMask: Optional. The mask to control which fields get updated.
10433	UpdateMask string `json:"updateMask,omitempty"`
10434
10435	// ForceSendFields is a list of field names (e.g.
10436	// "EntityTypeBatchInline") to unconditionally include in API requests.
10437	// By default, fields with empty values are omitted from API requests.
10438	// However, any non-pointer, non-interface field appearing in
10439	// ForceSendFields will be sent to the server regardless of whether the
10440	// field is empty or not. This may be used to include empty fields in
10441	// Patch requests.
10442	ForceSendFields []string `json:"-"`
10443
10444	// NullFields is a list of field names (e.g. "EntityTypeBatchInline") to
10445	// include in API requests with the JSON null value. By default, fields
10446	// with empty values are omitted from API requests. However, any field
10447	// with an empty value appearing in NullFields will be sent to the
10448	// server as null. It is an error if a field in this list has a
10449	// non-empty value. This may be used to include null fields in Patch
10450	// requests.
10451	NullFields []string `json:"-"`
10452}
10453
10454func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error) {
10455	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
10456	raw := NoMethod(*s)
10457	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10458}
10459
10460// GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The
10461// response message for EntityTypes.BatchUpdateEntityTypes.
10462type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
10463	// EntityTypes: The collection of updated or created entity types.
10464	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
10465
10466	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
10467	// unconditionally include in API requests. By default, fields with
10468	// empty values are omitted from API requests. However, any non-pointer,
10469	// non-interface field appearing in ForceSendFields will be sent to the
10470	// server regardless of whether the field is empty or not. This may be
10471	// used to include empty fields in Patch requests.
10472	ForceSendFields []string `json:"-"`
10473
10474	// NullFields is a list of field names (e.g. "EntityTypes") to include
10475	// in API requests with the JSON null value. By default, fields with
10476	// empty values are omitted from API requests. However, any field with
10477	// an empty value appearing in NullFields will be sent to the server as
10478	// null. It is an error if a field in this list has a non-empty value.
10479	// This may be used to include null fields in Patch requests.
10480	NullFields []string `json:"-"`
10481}
10482
10483func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
10484	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
10485	raw := NoMethod(*s)
10486	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10487}
10488
10489// GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest: The request
10490// message for Intents.BatchUpdateIntents.
10491type GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest struct {
10492	// IntentBatchInline: The collection of intents to update or create.
10493	IntentBatchInline *GoogleCloudDialogflowV2beta1IntentBatch `json:"intentBatchInline,omitempty"`
10494
10495	// IntentBatchUri: The URI to a Google Cloud Storage file containing
10496	// intents to update or create. The file format can either be a
10497	// serialized proto (of IntentBatch type) or JSON object. Note: The URI
10498	// must start with "gs://".
10499	IntentBatchUri string `json:"intentBatchUri,omitempty"`
10500
10501	// IntentView: Optional. The resource view to apply to the returned
10502	// intent.
10503	//
10504	// Possible values:
10505	//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
10506	// in the response.
10507	//   "INTENT_VIEW_FULL" - All fields are populated.
10508	IntentView string `json:"intentView,omitempty"`
10509
10510	// LanguageCode: Optional. The language used to access language-specific
10511	// data. If not specified, the agent's default language is used. For
10512	// more information, see Multilingual intent and entity data
10513	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10514	LanguageCode string `json:"languageCode,omitempty"`
10515
10516	// UpdateMask: Optional. The mask to control which fields get updated.
10517	UpdateMask string `json:"updateMask,omitempty"`
10518
10519	// ForceSendFields is a list of field names (e.g. "IntentBatchInline")
10520	// to unconditionally include in API requests. By default, fields with
10521	// empty values are omitted from API requests. However, any non-pointer,
10522	// non-interface field appearing in ForceSendFields will be sent to the
10523	// server regardless of whether the field is empty or not. This may be
10524	// used to include empty fields in Patch requests.
10525	ForceSendFields []string `json:"-"`
10526
10527	// NullFields is a list of field names (e.g. "IntentBatchInline") to
10528	// include in API requests with the JSON null value. By default, fields
10529	// with empty values are omitted from API requests. However, any field
10530	// with an empty value appearing in NullFields will be sent to the
10531	// server as null. It is an error if a field in this list has a
10532	// non-empty value. This may be used to include null fields in Patch
10533	// requests.
10534	NullFields []string `json:"-"`
10535}
10536
10537func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error) {
10538	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
10539	raw := NoMethod(*s)
10540	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10541}
10542
10543// GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response
10544// message for Intents.BatchUpdateIntents.
10545type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
10546	// Intents: The collection of updated or created intents.
10547	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
10548
10549	// ForceSendFields is a list of field names (e.g. "Intents") to
10550	// unconditionally include in API requests. By default, fields with
10551	// empty values are omitted from API requests. However, any non-pointer,
10552	// non-interface field appearing in ForceSendFields will be sent to the
10553	// server regardless of whether the field is empty or not. This may be
10554	// used to include empty fields in Patch requests.
10555	ForceSendFields []string `json:"-"`
10556
10557	// NullFields is a list of field names (e.g. "Intents") to include in
10558	// API requests with the JSON null value. By default, fields with empty
10559	// values are omitted from API requests. However, any field with an
10560	// empty value appearing in NullFields will be sent to the server as
10561	// null. It is an error if a field in this list has a non-empty value.
10562	// This may be used to include null fields in Patch requests.
10563	NullFields []string `json:"-"`
10564}
10565
10566func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
10567	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
10568	raw := NoMethod(*s)
10569	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10570}
10571
10572// GoogleCloudDialogflowV2beta1CompileSuggestionRequest: The request
10573// message for Participants.CompileSuggestion.
10574type GoogleCloudDialogflowV2beta1CompileSuggestionRequest struct {
10575	// ContextSize: Optional. Max number of messages prior to and including
10576	// [latest_message] to use as context when compiling the suggestion. If
10577	// zero or less than zero, 20 is used.
10578	ContextSize int64 `json:"contextSize,omitempty"`
10579
10580	// LatestMessage: Optional. The name of the latest conversation message
10581	// to compile suggestion for. If empty, it will be the latest message of
10582	// the conversation. Format:
10583	// `projects//locations//conversations//messages/`.
10584	LatestMessage string `json:"latestMessage,omitempty"`
10585
10586	// ForceSendFields is a list of field names (e.g. "ContextSize") to
10587	// unconditionally include in API requests. By default, fields with
10588	// empty values are omitted from API requests. However, any non-pointer,
10589	// non-interface field appearing in ForceSendFields will be sent to the
10590	// server regardless of whether the field is empty or not. This may be
10591	// used to include empty fields in Patch requests.
10592	ForceSendFields []string `json:"-"`
10593
10594	// NullFields is a list of field names (e.g. "ContextSize") to include
10595	// in API requests with the JSON null value. By default, fields with
10596	// empty values are omitted from API requests. However, any field with
10597	// an empty value appearing in NullFields will be sent to the server as
10598	// null. It is an error if a field in this list has a non-empty value.
10599	// This may be used to include null fields in Patch requests.
10600	NullFields []string `json:"-"`
10601}
10602
10603func (s *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) MarshalJSON() ([]byte, error) {
10604	type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionRequest
10605	raw := NoMethod(*s)
10606	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10607}
10608
10609// GoogleCloudDialogflowV2beta1CompileSuggestionResponse: The response
10610// message for Participants.CompileSuggestion.
10611type GoogleCloudDialogflowV2beta1CompileSuggestionResponse struct {
10612	// ContextSize: Number of messages prior to and including latest_message
10613	// to compile the suggestion. It may be smaller than the
10614	// CompileSuggestionRequest.context_size field in the request if there
10615	// aren't that many messages in the conversation.
10616	ContextSize int64 `json:"contextSize,omitempty"`
10617
10618	// LatestMessage: The name of the latest conversation message used to
10619	// compile suggestion for. Format:
10620	// `projects//locations//conversations//messages/`.
10621	LatestMessage string `json:"latestMessage,omitempty"`
10622
10623	// Suggestion: The compiled suggestion.
10624	Suggestion *GoogleCloudDialogflowV2beta1Suggestion `json:"suggestion,omitempty"`
10625
10626	// ServerResponse contains the HTTP response code and headers from the
10627	// server.
10628	googleapi.ServerResponse `json:"-"`
10629
10630	// ForceSendFields is a list of field names (e.g. "ContextSize") to
10631	// unconditionally include in API requests. By default, fields with
10632	// empty values are omitted from API requests. However, any non-pointer,
10633	// non-interface field appearing in ForceSendFields will be sent to the
10634	// server regardless of whether the field is empty or not. This may be
10635	// used to include empty fields in Patch requests.
10636	ForceSendFields []string `json:"-"`
10637
10638	// NullFields is a list of field names (e.g. "ContextSize") to include
10639	// in API requests with the JSON null value. By default, fields with
10640	// empty values are omitted from API requests. However, any field with
10641	// an empty value appearing in NullFields will be sent to the server as
10642	// null. It is an error if a field in this list has a non-empty value.
10643	// This may be used to include null fields in Patch requests.
10644	NullFields []string `json:"-"`
10645}
10646
10647func (s *GoogleCloudDialogflowV2beta1CompileSuggestionResponse) MarshalJSON() ([]byte, error) {
10648	type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionResponse
10649	raw := NoMethod(*s)
10650	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10651}
10652
10653// GoogleCloudDialogflowV2beta1CompleteConversationRequest: The request
10654// message for Conversations.CompleteConversation.
10655type GoogleCloudDialogflowV2beta1CompleteConversationRequest struct {
10656}
10657
10658// GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar
10659// to natural language context. If a person says to you "they are
10660// orange", you need context in order to understand what "they" is
10661// referring to. Similarly, for Dialogflow to handle an end-user
10662// expression like that, it needs to be provided with context in order
10663// to correctly match an intent. Using contexts, you can control the
10664// flow of a conversation. You can configure contexts for an intent by
10665// setting input and output contexts, which are identified by string
10666// names. When an intent is matched, any configured output contexts for
10667// that intent become active. While any contexts are active, Dialogflow
10668// is more likely to match intents that are configured with input
10669// contexts that correspond to the currently active contexts. For more
10670// information about context, see the Contexts guide
10671// (https://cloud.google.com/dialogflow/docs/contexts-overview).
10672type GoogleCloudDialogflowV2beta1Context struct {
10673	// LifespanCount: Optional. The number of conversational query requests
10674	// after which the context expires. The default is `0`. If set to `0`,
10675	// the context expires immediately. Contexts expire automatically after
10676	// 20 minutes if there are no matching queries.
10677	LifespanCount int64 `json:"lifespanCount,omitempty"`
10678
10679	// Name: Required. The unique identifier of the context. Supported
10680	// formats: - `projects//agent/sessions//contexts/`, -
10681	// `projects//locations//agent/sessions//contexts/`, -
10682	// `projects//agent/environments//users//sessions//contexts/`, -
10683	// `projects//locations//agent/environments//users//sessions//contexts/`,
10684	//  The `Context ID` is always converted to lowercase, may only contain
10685	// characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If
10686	// `Environment ID` is not specified, we assume default 'draft'
10687	// environment. If `User ID` is not specified, we assume default '-'
10688	// user. The following context names are reserved for internal use by
10689	// Dialogflow. You should not use these contexts or create contexts with
10690	// these names: * `__system_counters__` * `*_id_dialog_context` *
10691	// `*_dialog_params_size`
10692	Name string `json:"name,omitempty"`
10693
10694	// Parameters: Optional. The collection of parameters associated with
10695	// this context. Depending on your protocol or client library language,
10696	// this is a map, associative array, symbol table, dictionary, or JSON
10697	// object composed of a collection of (MapKey, MapValue) pairs: - MapKey
10698	// type: string - MapKey value: parameter name - MapValue type: - If
10699	// parameter's entity type is a composite entity: map - Else: depending
10700	// on parameter value type, could be one of string, number, boolean,
10701	// null, list or map - MapValue value: - If parameter's entity type is a
10702	// composite entity: map from composite entity property names to
10703	// property values - Else: parameter value
10704	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
10705
10706	// ServerResponse contains the HTTP response code and headers from the
10707	// server.
10708	googleapi.ServerResponse `json:"-"`
10709
10710	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
10711	// unconditionally include in API requests. By default, fields with
10712	// empty values are omitted from API requests. However, any non-pointer,
10713	// non-interface field appearing in ForceSendFields will be sent to the
10714	// server regardless of whether the field is empty or not. This may be
10715	// used to include empty fields in Patch requests.
10716	ForceSendFields []string `json:"-"`
10717
10718	// NullFields is a list of field names (e.g. "LifespanCount") to include
10719	// in API requests with the JSON null value. By default, fields with
10720	// empty values are omitted from API requests. However, any field with
10721	// an empty value appearing in NullFields will be sent to the server as
10722	// null. It is an error if a field in this list has a non-empty value.
10723	// This may be used to include null fields in Patch requests.
10724	NullFields []string `json:"-"`
10725}
10726
10727func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
10728	type NoMethod GoogleCloudDialogflowV2beta1Context
10729	raw := NoMethod(*s)
10730	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10731}
10732
10733// GoogleCloudDialogflowV2beta1Conversation: Represents a conversation.
10734// A conversation is an interaction between an agent, including live
10735// agents and Dialogflow agents, and a support customer. Conversations
10736// can include phone calls and text-based chat sessions.
10737type GoogleCloudDialogflowV2beta1Conversation struct {
10738	// ConversationProfile: Required. The Conversation Profile to be used to
10739	// configure this Conversation. This field cannot be updated. Format:
10740	// `projects//locations//conversationProfiles/`.
10741	ConversationProfile string `json:"conversationProfile,omitempty"`
10742
10743	// ConversationStage: The stage of a conversation. It indicates whether
10744	// the virtual agent or a human agent is handling the conversation. If
10745	// the conversation is created with the conversation profile that has
10746	// Dialogflow config set, defaults to
10747	// ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise, defaults to
10748	// ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is created
10749	// with the conversation profile that has Dialogflow config set but
10750	// explicitly sets conversation_stage to
10751	// ConversationStage.HUMAN_ASSIST_STAGE, it skips
10752	// ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to
10753	// ConversationStage.HUMAN_ASSIST_STAGE.
10754	//
10755	// Possible values:
10756	//   "CONVERSATION_STAGE_UNSPECIFIED" - Unknown. Should never be used
10757	// after a conversation is successfully created.
10758	//   "VIRTUAL_AGENT_STAGE" - The conversation should return virtual
10759	// agent responses into the conversation.
10760	//   "HUMAN_ASSIST_STAGE" - The conversation should not provide
10761	// responses, just listen and provide suggestions.
10762	ConversationStage string `json:"conversationStage,omitempty"`
10763
10764	// EndTime: Output only. The time the conversation was finished.
10765	EndTime string `json:"endTime,omitempty"`
10766
10767	// LifecycleState: Output only. The current state of the Conversation.
10768	//
10769	// Possible values:
10770	//   "LIFECYCLE_STATE_UNSPECIFIED" - Unknown.
10771	//   "IN_PROGRESS" - Conversation is currently open for media analysis.
10772	//   "COMPLETED" - Conversation has been completed.
10773	LifecycleState string `json:"lifecycleState,omitempty"`
10774
10775	// Name: Output only. The unique identifier of this conversation.
10776	// Format: `projects//locations//conversations/`.
10777	Name string `json:"name,omitempty"`
10778
10779	// PhoneNumber: Output only. Required if the conversation is to be
10780	// connected over telephony.
10781	PhoneNumber *GoogleCloudDialogflowV2beta1ConversationPhoneNumber `json:"phoneNumber,omitempty"`
10782
10783	// StartTime: Output only. The time the conversation was started.
10784	StartTime string `json:"startTime,omitempty"`
10785
10786	// ServerResponse contains the HTTP response code and headers from the
10787	// server.
10788	googleapi.ServerResponse `json:"-"`
10789
10790	// ForceSendFields is a list of field names (e.g. "ConversationProfile")
10791	// to unconditionally include in API requests. By default, fields with
10792	// empty values are omitted from API requests. However, any non-pointer,
10793	// non-interface field appearing in ForceSendFields will be sent to the
10794	// server regardless of whether the field is empty or not. This may be
10795	// used to include empty fields in Patch requests.
10796	ForceSendFields []string `json:"-"`
10797
10798	// NullFields is a list of field names (e.g. "ConversationProfile") to
10799	// include in API requests with the JSON null value. By default, fields
10800	// with empty values are omitted from API requests. However, any field
10801	// with an empty value appearing in NullFields will be sent to the
10802	// server as null. It is an error if a field in this list has a
10803	// non-empty value. This may be used to include null fields in Patch
10804	// requests.
10805	NullFields []string `json:"-"`
10806}
10807
10808func (s *GoogleCloudDialogflowV2beta1Conversation) MarshalJSON() ([]byte, error) {
10809	type NoMethod GoogleCloudDialogflowV2beta1Conversation
10810	raw := NoMethod(*s)
10811	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10812}
10813
10814// GoogleCloudDialogflowV2beta1ConversationEvent: Represents a
10815// notification sent to Pub/Sub subscribers for conversation lifecycle
10816// events.
10817type GoogleCloudDialogflowV2beta1ConversationEvent struct {
10818	// Conversation: Required. The unique identifier of the conversation
10819	// this notification refers to. Format: `projects//conversations/`.
10820	Conversation string `json:"conversation,omitempty"`
10821
10822	// ErrorStatus: Optional. More detailed information about an error. Only
10823	// set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
10824	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
10825
10826	// NewMessagePayload: Payload of NEW_MESSAGE event.
10827	NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
10828
10829	// Type: Required. The type of the event that this notification refers
10830	// to.
10831	//
10832	// Possible values:
10833	//   "TYPE_UNSPECIFIED" - Type not set.
10834	//   "CONVERSATION_STARTED" - A new conversation has been opened. This
10835	// is fired when a telephone call is answered, or a conversation is
10836	// created via the API.
10837	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This
10838	// is fired when a telephone call is terminated, or a conversation is
10839	// closed via the API.
10840	//   "NEW_MESSAGE" - An existing conversation has received a new
10841	// message, either from API or telephony. It is configured in
10842	// ConversationProfile.new_message_event_notification_config
10843	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone
10844	// call. In general non-recoverable errors only occur if something was
10845	// misconfigured in the ConversationProfile corresponding to the call.
10846	// After a non-recoverable error, Dialogflow may stop responding. We
10847	// don't fire this event: * in an API call because we can directly
10848	// return the error, or, * when we can recover from an error.
10849	Type string `json:"type,omitempty"`
10850
10851	// ForceSendFields is a list of field names (e.g. "Conversation") to
10852	// unconditionally include in API requests. By default, fields with
10853	// empty values are omitted from API requests. However, any non-pointer,
10854	// non-interface field appearing in ForceSendFields will be sent to the
10855	// server regardless of whether the field is empty or not. This may be
10856	// used to include empty fields in Patch requests.
10857	ForceSendFields []string `json:"-"`
10858
10859	// NullFields is a list of field names (e.g. "Conversation") to include
10860	// in API requests with the JSON null value. By default, fields with
10861	// empty values are omitted from API requests. However, any field with
10862	// an empty value appearing in NullFields will be sent to the server as
10863	// null. It is an error if a field in this list has a non-empty value.
10864	// This may be used to include null fields in Patch requests.
10865	NullFields []string `json:"-"`
10866}
10867
10868func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
10869	type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
10870	raw := NoMethod(*s)
10871	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10872}
10873
10874// GoogleCloudDialogflowV2beta1ConversationPhoneNumber: Represents a
10875// phone number for telephony integration. It allows for connecting a
10876// particular conversation over telephony.
10877type GoogleCloudDialogflowV2beta1ConversationPhoneNumber struct {
10878	// PhoneNumber: Output only. The phone number to connect to this
10879	// conversation.
10880	PhoneNumber string `json:"phoneNumber,omitempty"`
10881
10882	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
10883	// unconditionally include in API requests. By default, fields with
10884	// empty values are omitted from API requests. However, any non-pointer,
10885	// non-interface field appearing in ForceSendFields will be sent to the
10886	// server regardless of whether the field is empty or not. This may be
10887	// used to include empty fields in Patch requests.
10888	ForceSendFields []string `json:"-"`
10889
10890	// NullFields is a list of field names (e.g. "PhoneNumber") to include
10891	// in API requests with the JSON null value. By default, fields with
10892	// empty values are omitted from API requests. However, any field with
10893	// an empty value appearing in NullFields will be sent to the server as
10894	// null. It is an error if a field in this list has a non-empty value.
10895	// This may be used to include null fields in Patch requests.
10896	NullFields []string `json:"-"`
10897}
10898
10899func (s *GoogleCloudDialogflowV2beta1ConversationPhoneNumber) MarshalJSON() ([]byte, error) {
10900	type NoMethod GoogleCloudDialogflowV2beta1ConversationPhoneNumber
10901	raw := NoMethod(*s)
10902	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10903}
10904
10905// GoogleCloudDialogflowV2beta1ConversationProfile: Defines the services
10906// to connect to incoming Dialogflow conversations.
10907type GoogleCloudDialogflowV2beta1ConversationProfile struct {
10908	// AutomatedAgentConfig: Configuration for an automated agent to use
10909	// with this profile.
10910	AutomatedAgentConfig *GoogleCloudDialogflowV2beta1AutomatedAgentConfig `json:"automatedAgentConfig,omitempty"`
10911
10912	// CreateTime: Output only. Create time of the conversation profile.
10913	CreateTime string `json:"createTime,omitempty"`
10914
10915	// DisplayName: Required. Human readable name for this profile. Max
10916	// length 1024 bytes.
10917	DisplayName string `json:"displayName,omitempty"`
10918
10919	// HumanAgentAssistantConfig: Configuration for agent assistance to use
10920	// with this profile.
10921	HumanAgentAssistantConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig `json:"humanAgentAssistantConfig,omitempty"`
10922
10923	// HumanAgentHandoffConfig: Configuration for connecting to a live
10924	// agent. Currently, this feature is not general available, please
10925	// contact Google to get access.
10926	HumanAgentHandoffConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig `json:"humanAgentHandoffConfig,omitempty"`
10927
10928	// LanguageCode: Language code for the conversation profile. If not
10929	// specified, the language is en-US. Language at ConversationProfile
10930	// should be set for all non en-us languages.
10931	LanguageCode string `json:"languageCode,omitempty"`
10932
10933	// LoggingConfig: Configuration for logging conversation lifecycle
10934	// events.
10935	LoggingConfig *GoogleCloudDialogflowV2beta1LoggingConfig `json:"loggingConfig,omitempty"`
10936
10937	// Name: The unique identifier of this conversation profile. Format:
10938	// `projects//locations//conversationProfiles/`.
10939	Name string `json:"name,omitempty"`
10940
10941	// NewMessageEventNotificationConfig: Configuration for publishing new
10942	// message events. Event will be sent in format of ConversationEvent
10943	NewMessageEventNotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"newMessageEventNotificationConfig,omitempty"`
10944
10945	// NotificationConfig: Configuration for publishing conversation
10946	// lifecycle events.
10947	NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
10948
10949	// SttConfig: Settings for speech transcription.
10950	SttConfig *GoogleCloudDialogflowV2beta1SpeechToTextConfig `json:"sttConfig,omitempty"`
10951
10952	// UpdateTime: Output only. Update time of the conversation profile.
10953	UpdateTime string `json:"updateTime,omitempty"`
10954
10955	// ServerResponse contains the HTTP response code and headers from the
10956	// server.
10957	googleapi.ServerResponse `json:"-"`
10958
10959	// ForceSendFields is a list of field names (e.g.
10960	// "AutomatedAgentConfig") to unconditionally include in API requests.
10961	// By default, fields with empty values are omitted from API requests.
10962	// However, any non-pointer, non-interface field appearing in
10963	// ForceSendFields will be sent to the server regardless of whether the
10964	// field is empty or not. This may be used to include empty fields in
10965	// Patch requests.
10966	ForceSendFields []string `json:"-"`
10967
10968	// NullFields is a list of field names (e.g. "AutomatedAgentConfig") to
10969	// include in API requests with the JSON null value. By default, fields
10970	// with empty values are omitted from API requests. However, any field
10971	// with an empty value appearing in NullFields will be sent to the
10972	// server as null. It is an error if a field in this list has a
10973	// non-empty value. This may be used to include null fields in Patch
10974	// requests.
10975	NullFields []string `json:"-"`
10976}
10977
10978func (s *GoogleCloudDialogflowV2beta1ConversationProfile) MarshalJSON() ([]byte, error) {
10979	type NoMethod GoogleCloudDialogflowV2beta1ConversationProfile
10980	raw := NoMethod(*s)
10981	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10982}
10983
10984// GoogleCloudDialogflowV2beta1CreateMessageRequest: The request message
10985// to create one Message. Currently it is only used in
10986// BatchCreateMessagesRequest.
10987type GoogleCloudDialogflowV2beta1CreateMessageRequest struct {
10988	// Message: Required. The message to create. Message.participant is
10989	// required.
10990	Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
10991
10992	// Parent: Required. Resource identifier of the conversation to create
10993	// message. Format: `projects//locations//conversations/`.
10994	Parent string `json:"parent,omitempty"`
10995
10996	// ForceSendFields is a list of field names (e.g. "Message") to
10997	// unconditionally include in API requests. By default, fields with
10998	// empty values are omitted from API requests. However, any non-pointer,
10999	// non-interface field appearing in ForceSendFields will be sent to the
11000	// server regardless of whether the field is empty or not. This may be
11001	// used to include empty fields in Patch requests.
11002	ForceSendFields []string `json:"-"`
11003
11004	// NullFields is a list of field names (e.g. "Message") to include in
11005	// API requests with the JSON null value. By default, fields with empty
11006	// values are omitted from API requests. However, any field with an
11007	// empty value appearing in NullFields will be sent to the server as
11008	// null. It is an error if a field in this list has a non-empty value.
11009	// This may be used to include null fields in Patch requests.
11010	NullFields []string `json:"-"`
11011}
11012
11013func (s *GoogleCloudDialogflowV2beta1CreateMessageRequest) MarshalJSON() ([]byte, error) {
11014	type NoMethod GoogleCloudDialogflowV2beta1CreateMessageRequest
11015	raw := NoMethod(*s)
11016	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11017}
11018
11019// GoogleCloudDialogflowV2beta1DetectIntentRequest: The request to
11020// detect user's intent.
11021type GoogleCloudDialogflowV2beta1DetectIntentRequest struct {
11022	// InputAudio: The natural language speech audio to be processed. This
11023	// field should be populated iff `query_input` is set to an input audio
11024	// config. A single request can contain up to 1 minute of speech audio
11025	// data.
11026	InputAudio string `json:"inputAudio,omitempty"`
11027
11028	// OutputAudioConfig: Instructs the speech synthesizer how to generate
11029	// the output audio. If this field is not set and agent-level speech
11030	// synthesizer is not configured, no output audio is generated.
11031	OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
11032
11033	// OutputAudioConfigMask: Mask for output_audio_config indicating which
11034	// settings in this request-level config should override speech
11035	// synthesizer settings defined at agent-level. If unspecified or empty,
11036	// output_audio_config replaces the agent-level config in its entirety.
11037	OutputAudioConfigMask string `json:"outputAudioConfigMask,omitempty"`
11038
11039	// QueryInput: Required. The input specification. It can be set to: 1.
11040	// an audio config which instructs the speech recognizer how to process
11041	// the speech audio, 2. a conversational query in the form of text, or
11042	// 3. an event that specifies which intent to trigger.
11043	QueryInput *GoogleCloudDialogflowV2beta1QueryInput `json:"queryInput,omitempty"`
11044
11045	// QueryParams: The parameters of this query.
11046	QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
11047
11048	// ForceSendFields is a list of field names (e.g. "InputAudio") to
11049	// unconditionally include in API requests. By default, fields with
11050	// empty values are omitted from API requests. However, any non-pointer,
11051	// non-interface field appearing in ForceSendFields will be sent to the
11052	// server regardless of whether the field is empty or not. This may be
11053	// used to include empty fields in Patch requests.
11054	ForceSendFields []string `json:"-"`
11055
11056	// NullFields is a list of field names (e.g. "InputAudio") to include in
11057	// API requests with the JSON null value. By default, fields with empty
11058	// values are omitted from API requests. However, any field with an
11059	// empty value appearing in NullFields will be sent to the server as
11060	// null. It is an error if a field in this list has a non-empty value.
11061	// This may be used to include null fields in Patch requests.
11062	NullFields []string `json:"-"`
11063}
11064
11065func (s *GoogleCloudDialogflowV2beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
11066	type NoMethod GoogleCloudDialogflowV2beta1DetectIntentRequest
11067	raw := NoMethod(*s)
11068	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11069}
11070
11071// GoogleCloudDialogflowV2beta1DetectIntentResponse: The message
11072// returned from the DetectIntent method.
11073type GoogleCloudDialogflowV2beta1DetectIntentResponse struct {
11074	// AlternativeQueryResults: If Knowledge Connectors are enabled, there
11075	// could be more than one result returned for a given query or event,
11076	// and this field will contain all results except for the top one, which
11077	// is captured in query_result. The alternative results are ordered by
11078	// decreasing `QueryResult.intent_detection_confidence`. If Knowledge
11079	// Connectors are disabled, this field will be empty until multiple
11080	// responses for regular intents are supported, at which point those
11081	// additional results will be surfaced here.
11082	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
11083
11084	// OutputAudio: The audio data bytes encoded as specified in the
11085	// request. Note: The output audio is generated based on the values of
11086	// default platform text responses found in the
11087	// `query_result.fulfillment_messages` field. If multiple default text
11088	// responses exist, they will be concatenated when generating audio. If
11089	// no default platform text responses exist, the generated audio content
11090	// will be empty. In some scenarios, multiple output audio fields may be
11091	// present in the response structure. In these cases, only the
11092	// top-most-level audio output has content.
11093	OutputAudio string `json:"outputAudio,omitempty"`
11094
11095	// OutputAudioConfig: The config used by the speech synthesizer to
11096	// generate the output audio.
11097	OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
11098
11099	// QueryResult: The selected results of the conversational query or
11100	// event processing. See `alternative_query_results` for additional
11101	// potential results.
11102	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
11103
11104	// ResponseId: The unique identifier of the response. It can be used to
11105	// locate a response in the training example set or for reporting
11106	// issues.
11107	ResponseId string `json:"responseId,omitempty"`
11108
11109	// WebhookStatus: Specifies the status of the webhook request.
11110	WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"`
11111
11112	// ServerResponse contains the HTTP response code and headers from the
11113	// server.
11114	googleapi.ServerResponse `json:"-"`
11115
11116	// ForceSendFields is a list of field names (e.g.
11117	// "AlternativeQueryResults") to unconditionally include in API
11118	// requests. By default, fields with empty values are omitted from API
11119	// requests. However, any non-pointer, non-interface field appearing in
11120	// ForceSendFields will be sent to the server regardless of whether the
11121	// field is empty or not. This may be used to include empty fields in
11122	// Patch requests.
11123	ForceSendFields []string `json:"-"`
11124
11125	// NullFields is a list of field names (e.g. "AlternativeQueryResults")
11126	// to include in API requests with the JSON null value. By default,
11127	// fields with empty values are omitted from API requests. However, any
11128	// field with an empty value appearing in NullFields will be sent to the
11129	// server as null. It is an error if a field in this list has a
11130	// non-empty value. This may be used to include null fields in Patch
11131	// requests.
11132	NullFields []string `json:"-"`
11133}
11134
11135func (s *GoogleCloudDialogflowV2beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
11136	type NoMethod GoogleCloudDialogflowV2beta1DetectIntentResponse
11137	raw := NoMethod(*s)
11138	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11139}
11140
11141// GoogleCloudDialogflowV2beta1Document: A knowledge document to be used
11142// by a KnowledgeBase. For more information, see the knowledge base
11143// guide (https://cloud.google.com/dialogflow/docs/how/knowledge-bases).
11144// Note: The `projects.agent.knowledgeBases.documents` resource is
11145// deprecated; only use `projects.knowledgeBases.documents`.
11146type GoogleCloudDialogflowV2beta1Document struct {
11147	// Content: The raw content of the document. This field is only
11148	// permitted for EXTRACTIVE_QA and FAQ knowledge types. Note: This field
11149	// is in the process of being deprecated, please use raw_content
11150	// instead.
11151	Content string `json:"content,omitempty"`
11152
11153	// ContentUri: The URI where the file content is located. For documents
11154	// stored in Google Cloud Storage, these URIs must have the form
11155	// `gs:///`. NOTE: External URLs must correspond to public webpages,
11156	// i.e., they must be indexed by Google Search. In particular, URLs for
11157	// showing documents in Google Cloud Storage (i.e. the URL in your
11158	// browser) are not supported. Instead use the `gs://` format URI
11159	// described above.
11160	ContentUri string `json:"contentUri,omitempty"`
11161
11162	// DisplayName: Required. The display name of the document. The name
11163	// must be 1024 bytes or less; otherwise, the creation request fails.
11164	DisplayName string `json:"displayName,omitempty"`
11165
11166	// EnableAutoReload: Optional. If true, we try to automatically reload
11167	// the document every day (at a time picked by the system). If false or
11168	// unspecified, we don't try to automatically reload the document.
11169	// Currently you can only enable automatic reload for documents sourced
11170	// from a public url, see `source` field for the source types. Reload
11171	// status can be tracked in `latest_reload_status`. If a reload fails,
11172	// we will keep the document unchanged. If a reload fails with internal
11173	// errors, the system will try to reload the document on the next day.
11174	// If a reload fails with non-retriable errors (e.g. PERMISION_DENIED),
11175	// the system will not try to reload the document anymore. You need to
11176	// manually reload the document successfully by calling `ReloadDocument`
11177	// and clear the errors.
11178	EnableAutoReload bool `json:"enableAutoReload,omitempty"`
11179
11180	// KnowledgeTypes: Required. The knowledge type of document content.
11181	//
11182	// Possible values:
11183	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or
11184	// arbitrary.
11185	//   "FAQ" - The document content contains question and answer pairs as
11186	// either HTML or CSV. Typical FAQ HTML formats are parsed accurately,
11187	// but unusual formats may fail to be parsed. CSV must have questions in
11188	// the first column and answers in the second, with no header. Because
11189	// of this explicit format, they are always parsed accurately.
11190	//   "EXTRACTIVE_QA" - Documents for which unstructured text is
11191	// extracted and used for question answering.
11192	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can
11193	// be used for query results. Only for Contact Center Solutions on
11194	// Dialogflow.
11195	//   "SMART_REPLY" - The legacy enum for agent-facing smart reply
11196	// feature.
11197	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
11198
11199	// LatestReloadStatus: Output only. The time and status of the latest
11200	// reload. This reload may have been triggered automatically or manually
11201	// and may not have succeeded.
11202	LatestReloadStatus *GoogleCloudDialogflowV2beta1DocumentReloadStatus `json:"latestReloadStatus,omitempty"`
11203
11204	// Metadata: Optional. Metadata for the document. The metadata supports
11205	// arbitrary key-value pairs. Suggested use cases include storing a
11206	// document's title, an external URL distinct from the document's
11207	// content_uri, etc. The max size of a `key` or a `value` of the
11208	// metadata is 1024 bytes.
11209	Metadata map[string]string `json:"metadata,omitempty"`
11210
11211	// MimeType: Required. The MIME type of this document.
11212	MimeType string `json:"mimeType,omitempty"`
11213
11214	// Name: Optional. The document resource name. The name must be empty
11215	// when creating a document. Format:
11216	// `projects//locations//knowledgeBases//documents/`.
11217	Name string `json:"name,omitempty"`
11218
11219	// RawContent: The raw content of the document. This field is only
11220	// permitted for EXTRACTIVE_QA and FAQ knowledge types.
11221	RawContent string `json:"rawContent,omitempty"`
11222
11223	// ServerResponse contains the HTTP response code and headers from the
11224	// server.
11225	googleapi.ServerResponse `json:"-"`
11226
11227	// ForceSendFields is a list of field names (e.g. "Content") to
11228	// unconditionally include in API requests. By default, fields with
11229	// empty values are omitted from API requests. However, any non-pointer,
11230	// non-interface field appearing in ForceSendFields will be sent to the
11231	// server regardless of whether the field is empty or not. This may be
11232	// used to include empty fields in Patch requests.
11233	ForceSendFields []string `json:"-"`
11234
11235	// NullFields is a list of field names (e.g. "Content") to include in
11236	// API requests with the JSON null value. By default, fields with empty
11237	// values are omitted from API requests. However, any field with an
11238	// empty value appearing in NullFields will be sent to the server as
11239	// null. It is an error if a field in this list has a non-empty value.
11240	// This may be used to include null fields in Patch requests.
11241	NullFields []string `json:"-"`
11242}
11243
11244func (s *GoogleCloudDialogflowV2beta1Document) MarshalJSON() ([]byte, error) {
11245	type NoMethod GoogleCloudDialogflowV2beta1Document
11246	raw := NoMethod(*s)
11247	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11248}
11249
11250// GoogleCloudDialogflowV2beta1DocumentReloadStatus: The status of a
11251// reload attempt.
11252type GoogleCloudDialogflowV2beta1DocumentReloadStatus struct {
11253	// Status: Output only. The status of a reload attempt or the initial
11254	// load.
11255	Status *GoogleRpcStatus `json:"status,omitempty"`
11256
11257	// Time: Output only. The time of a reload attempt. This reload may have
11258	// been triggered automatically or manually and may not have succeeded.
11259	Time string `json:"time,omitempty"`
11260
11261	// ForceSendFields is a list of field names (e.g. "Status") to
11262	// unconditionally include in API requests. By default, fields with
11263	// empty values are omitted from API requests. However, any non-pointer,
11264	// non-interface field appearing in ForceSendFields will be sent to the
11265	// server regardless of whether the field is empty or not. This may be
11266	// used to include empty fields in Patch requests.
11267	ForceSendFields []string `json:"-"`
11268
11269	// NullFields is a list of field names (e.g. "Status") to include in API
11270	// requests with the JSON null value. By default, fields with empty
11271	// values are omitted from API requests. However, any field with an
11272	// empty value appearing in NullFields will be sent to the server as
11273	// null. It is an error if a field in this list has a non-empty value.
11274	// This may be used to include null fields in Patch requests.
11275	NullFields []string `json:"-"`
11276}
11277
11278func (s *GoogleCloudDialogflowV2beta1DocumentReloadStatus) MarshalJSON() ([]byte, error) {
11279	type NoMethod GoogleCloudDialogflowV2beta1DocumentReloadStatus
11280	raw := NoMethod(*s)
11281	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11282}
11283
11284// GoogleCloudDialogflowV2beta1DtmfParameters: The message in the
11285// response that indicates the parameters of DTMF.
11286type GoogleCloudDialogflowV2beta1DtmfParameters struct {
11287	// AcceptsDtmfInput: Indicates whether DTMF input can be handled in the
11288	// next request.
11289	AcceptsDtmfInput bool `json:"acceptsDtmfInput,omitempty"`
11290
11291	// ForceSendFields is a list of field names (e.g. "AcceptsDtmfInput") to
11292	// unconditionally include in API requests. By default, fields with
11293	// empty values are omitted from API requests. However, any non-pointer,
11294	// non-interface field appearing in ForceSendFields will be sent to the
11295	// server regardless of whether the field is empty or not. This may be
11296	// used to include empty fields in Patch requests.
11297	ForceSendFields []string `json:"-"`
11298
11299	// NullFields is a list of field names (e.g. "AcceptsDtmfInput") to
11300	// include in API requests with the JSON null value. By default, fields
11301	// with empty values are omitted from API requests. However, any field
11302	// with an empty value appearing in NullFields will be sent to the
11303	// server as null. It is an error if a field in this list has a
11304	// non-empty value. This may be used to include null fields in Patch
11305	// requests.
11306	NullFields []string `json:"-"`
11307}
11308
11309func (s *GoogleCloudDialogflowV2beta1DtmfParameters) MarshalJSON() ([]byte, error) {
11310	type NoMethod GoogleCloudDialogflowV2beta1DtmfParameters
11311	raw := NoMethod(*s)
11312	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11313}
11314
11315// GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a
11316// type, called the entity type, which dictates exactly how data from an
11317// end-user expression is extracted. Dialogflow provides predefined
11318// system entities that can match many common types of data. For
11319// example, there are system entities for matching dates, times, colors,
11320// email addresses, and so on. You can also create your own custom
11321// entities for matching custom data. For example, you could define a
11322// vegetable entity that can match the types of vegetables available for
11323// purchase with a grocery store agent. For more information, see the
11324// Entity guide
11325// (https://cloud.google.com/dialogflow/docs/entities-overview).
11326type GoogleCloudDialogflowV2beta1EntityType struct {
11327	// AutoExpansionMode: Optional. Indicates whether the entity type can be
11328	// automatically expanded.
11329	//
11330	// Possible values:
11331	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
11332	// entity.
11333	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
11334	// that have not been explicitly listed in the entity.
11335	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
11336
11337	// DisplayName: Required. The name of the entity type.
11338	DisplayName string `json:"displayName,omitempty"`
11339
11340	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction
11341	// during classification.
11342	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
11343
11344	// Entities: Optional. The collection of entity entries associated with
11345	// the entity type.
11346	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
11347
11348	// Kind: Required. Indicates the kind of entity type.
11349	//
11350	// Possible values:
11351	//   "KIND_UNSPECIFIED" - Not specified. This value should be never
11352	// used.
11353	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms
11354	// to a reference value.
11355	//   "KIND_LIST" - List entity types contain a set of entries that do
11356	// not map to reference values. However, list entity types can contain
11357	// references to other entity types (with or without aliases).
11358	//   "KIND_REGEXP" - Regexp entity types allow to specify regular
11359	// expressions in entries values.
11360	Kind string `json:"kind,omitempty"`
11361
11362	// Name: The unique identifier of the entity type. Required for
11363	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
11364	// methods. Supported formats: - `projects//agent/entityTypes/` -
11365	// `projects//locations//agent/entityTypes/`
11366	Name string `json:"name,omitempty"`
11367
11368	// ServerResponse contains the HTTP response code and headers from the
11369	// server.
11370	googleapi.ServerResponse `json:"-"`
11371
11372	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
11373	// to unconditionally include in API requests. By default, fields with
11374	// empty values are omitted from API requests. However, any non-pointer,
11375	// non-interface field appearing in ForceSendFields will be sent to the
11376	// server regardless of whether the field is empty or not. This may be
11377	// used to include empty fields in Patch requests.
11378	ForceSendFields []string `json:"-"`
11379
11380	// NullFields is a list of field names (e.g. "AutoExpansionMode") to
11381	// include in API requests with the JSON null value. By default, fields
11382	// with empty values are omitted from API requests. However, any field
11383	// with an empty value appearing in NullFields will be sent to the
11384	// server as null. It is an error if a field in this list has a
11385	// non-empty value. This may be used to include null fields in Patch
11386	// requests.
11387	NullFields []string `json:"-"`
11388}
11389
11390func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
11391	type NoMethod GoogleCloudDialogflowV2beta1EntityType
11392	raw := NoMethod(*s)
11393	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11394}
11395
11396// GoogleCloudDialogflowV2beta1EntityTypeBatch: This message is a
11397// wrapper around a collection of entity types.
11398type GoogleCloudDialogflowV2beta1EntityTypeBatch struct {
11399	// EntityTypes: A collection of entity types.
11400	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
11401
11402	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
11403	// unconditionally include in API requests. By default, fields with
11404	// empty values are omitted from API requests. However, any non-pointer,
11405	// non-interface field appearing in ForceSendFields will be sent to the
11406	// server regardless of whether the field is empty or not. This may be
11407	// used to include empty fields in Patch requests.
11408	ForceSendFields []string `json:"-"`
11409
11410	// NullFields is a list of field names (e.g. "EntityTypes") to include
11411	// in API requests with the JSON null value. By default, fields with
11412	// empty values are omitted from API requests. However, any field with
11413	// an empty value appearing in NullFields will be sent to the server as
11414	// null. It is an error if a field in this list has a non-empty value.
11415	// This may be used to include null fields in Patch requests.
11416	NullFields []string `json:"-"`
11417}
11418
11419func (s *GoogleCloudDialogflowV2beta1EntityTypeBatch) MarshalJSON() ([]byte, error) {
11420	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeBatch
11421	raw := NoMethod(*s)
11422	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11423}
11424
11425// GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for
11426// an associated entity type.
11427type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
11428	// Synonyms: Required. A collection of value synonyms. For example, if
11429	// the entity type is *vegetable*, and `value` is *scallions*, a synonym
11430	// could be *green onions*. For `KIND_LIST` entity types: * This
11431	// collection must contain exactly one synonym equal to `value`.
11432	Synonyms []string `json:"synonyms,omitempty"`
11433
11434	// Value: Required. The primary value associated with this entity entry.
11435	// For example, if the entity type is *vegetable*, the value could be
11436	// *scallions*. For `KIND_MAP` entity types: * A reference value to be
11437	// used in place of synonyms. For `KIND_LIST` entity types: * A string
11438	// that can contain references to other entity types (with or without
11439	// aliases).
11440	Value string `json:"value,omitempty"`
11441
11442	// ForceSendFields is a list of field names (e.g. "Synonyms") to
11443	// unconditionally include in API requests. By default, fields with
11444	// empty values are omitted from API requests. However, any non-pointer,
11445	// non-interface field appearing in ForceSendFields will be sent to the
11446	// server regardless of whether the field is empty or not. This may be
11447	// used to include empty fields in Patch requests.
11448	ForceSendFields []string `json:"-"`
11449
11450	// NullFields is a list of field names (e.g. "Synonyms") to include in
11451	// API requests with the JSON null value. By default, fields with empty
11452	// values are omitted from API requests. However, any field with an
11453	// empty value appearing in NullFields will be sent to the server as
11454	// null. It is an error if a field in this list has a non-empty value.
11455	// This may be used to include null fields in Patch requests.
11456	NullFields []string `json:"-"`
11457}
11458
11459func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
11460	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
11461	raw := NoMethod(*s)
11462	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11463}
11464
11465// GoogleCloudDialogflowV2beta1Environment: You can create multiple
11466// versions of your agent and publish them to separate environments.
11467// When you edit an agent, you are editing the draft agent. At any
11468// point, you can save the draft agent as an agent version, which is an
11469// immutable snapshot of your agent. When you save the draft agent, it
11470// is published to the default environment. When you create agent
11471// versions, you can publish them to custom environments. You can create
11472// a variety of custom environments for: - testing - development -
11473// production - etc. For more information, see the versions and
11474// environments guide
11475// (https://cloud.google.com/dialogflow/docs/agents-versions).
11476type GoogleCloudDialogflowV2beta1Environment struct {
11477	// AgentVersion: Required. The agent version loaded into this
11478	// environment. Supported formats: - `projects//agent/versions/` -
11479	// `projects//locations//agent/versions/`
11480	AgentVersion string `json:"agentVersion,omitempty"`
11481
11482	// Description: Optional. The developer-provided description for this
11483	// environment. The maximum length is 500 characters. If exceeded, the
11484	// request is rejected.
11485	Description string `json:"description,omitempty"`
11486
11487	// Fulfillment: Optional. The fulfillment settings to use for this
11488	// environment.
11489	Fulfillment *GoogleCloudDialogflowV2beta1Fulfillment `json:"fulfillment,omitempty"`
11490
11491	// Name: Output only. The unique identifier of this agent environment.
11492	// Supported formats: - `projects//agent/environments/` -
11493	// `projects//locations//agent/environments/`
11494	Name string `json:"name,omitempty"`
11495
11496	// State: Output only. The state of this environment. This field is
11497	// read-only, i.e., it cannot be set by create and update methods.
11498	//
11499	// Possible values:
11500	//   "STATE_UNSPECIFIED" - Not specified. This value is not used.
11501	//   "STOPPED" - Stopped.
11502	//   "LOADING" - Loading.
11503	//   "RUNNING" - Running.
11504	State string `json:"state,omitempty"`
11505
11506	// TextToSpeechSettings: Optional. Text to speech settings for this
11507	// environment.
11508	TextToSpeechSettings *GoogleCloudDialogflowV2beta1TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
11509
11510	// UpdateTime: Output only. The last update time of this environment.
11511	// This field is read-only, i.e., it cannot be set by create and update
11512	// methods.
11513	UpdateTime string `json:"updateTime,omitempty"`
11514
11515	// ServerResponse contains the HTTP response code and headers from the
11516	// server.
11517	googleapi.ServerResponse `json:"-"`
11518
11519	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
11520	// unconditionally include in API requests. By default, fields with
11521	// empty values are omitted from API requests. However, any non-pointer,
11522	// non-interface field appearing in ForceSendFields will be sent to the
11523	// server regardless of whether the field is empty or not. This may be
11524	// used to include empty fields in Patch requests.
11525	ForceSendFields []string `json:"-"`
11526
11527	// NullFields is a list of field names (e.g. "AgentVersion") to include
11528	// in API requests with the JSON null value. By default, fields with
11529	// empty values are omitted from API requests. However, any field with
11530	// an empty value appearing in NullFields will be sent to the server as
11531	// null. It is an error if a field in this list has a non-empty value.
11532	// This may be used to include null fields in Patch requests.
11533	NullFields []string `json:"-"`
11534}
11535
11536func (s *GoogleCloudDialogflowV2beta1Environment) MarshalJSON() ([]byte, error) {
11537	type NoMethod GoogleCloudDialogflowV2beta1Environment
11538	raw := NoMethod(*s)
11539	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11540}
11541
11542// GoogleCloudDialogflowV2beta1EnvironmentHistory: The response message
11543// for Environments.GetEnvironmentHistory.
11544type GoogleCloudDialogflowV2beta1EnvironmentHistory struct {
11545	// Entries: Output only. The list of agent environments. There will be a
11546	// maximum number of items returned based on the page_size field in the
11547	// request.
11548	Entries []*GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry `json:"entries,omitempty"`
11549
11550	// NextPageToken: Output only. Token to retrieve the next page of
11551	// results, or empty if there are no more results in the list.
11552	NextPageToken string `json:"nextPageToken,omitempty"`
11553
11554	// Parent: Output only. The name of the environment this history is for.
11555	// Supported formats: - `projects//agent/environments/` -
11556	// `projects//locations//agent/environments/`
11557	Parent string `json:"parent,omitempty"`
11558
11559	// ServerResponse contains the HTTP response code and headers from the
11560	// server.
11561	googleapi.ServerResponse `json:"-"`
11562
11563	// ForceSendFields is a list of field names (e.g. "Entries") to
11564	// unconditionally include in API requests. By default, fields with
11565	// empty values are omitted from API requests. However, any non-pointer,
11566	// non-interface field appearing in ForceSendFields will be sent to the
11567	// server regardless of whether the field is empty or not. This may be
11568	// used to include empty fields in Patch requests.
11569	ForceSendFields []string `json:"-"`
11570
11571	// NullFields is a list of field names (e.g. "Entries") to include in
11572	// API requests with the JSON null value. By default, fields with empty
11573	// values are omitted from API requests. However, any field with an
11574	// empty value appearing in NullFields will be sent to the server as
11575	// null. It is an error if a field in this list has a non-empty value.
11576	// This may be used to include null fields in Patch requests.
11577	NullFields []string `json:"-"`
11578}
11579
11580func (s *GoogleCloudDialogflowV2beta1EnvironmentHistory) MarshalJSON() ([]byte, error) {
11581	type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistory
11582	raw := NoMethod(*s)
11583	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11584}
11585
11586// GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry: Represents an
11587// environment history entry.
11588type GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry struct {
11589	// AgentVersion: The agent version loaded into this environment history
11590	// entry.
11591	AgentVersion string `json:"agentVersion,omitempty"`
11592
11593	// CreateTime: The creation time of this environment history entry.
11594	CreateTime string `json:"createTime,omitempty"`
11595
11596	// Description: The developer-provided description for this environment
11597	// history entry.
11598	Description string `json:"description,omitempty"`
11599
11600	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
11601	// unconditionally include in API requests. By default, fields with
11602	// empty values are omitted from API requests. However, any non-pointer,
11603	// non-interface field appearing in ForceSendFields will be sent to the
11604	// server regardless of whether the field is empty or not. This may be
11605	// used to include empty fields in Patch requests.
11606	ForceSendFields []string `json:"-"`
11607
11608	// NullFields is a list of field names (e.g. "AgentVersion") to include
11609	// in API requests with the JSON null value. By default, fields with
11610	// empty values are omitted from API requests. However, any field with
11611	// an empty value appearing in NullFields will be sent to the server as
11612	// null. It is an error if a field in this list has a non-empty value.
11613	// This may be used to include null fields in Patch requests.
11614	NullFields []string `json:"-"`
11615}
11616
11617func (s *GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry) MarshalJSON() ([]byte, error) {
11618	type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
11619	raw := NoMethod(*s)
11620	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11621}
11622
11623// GoogleCloudDialogflowV2beta1EventInput: Events allow for matching
11624// intents by event name instead of the natural language input. For
11625// instance, input `` can trigger a personalized welcome response. The
11626// parameter `name` may be used by the agent in the response: "Hello
11627// #welcome_event.name! What can I do for you today?".
11628type GoogleCloudDialogflowV2beta1EventInput struct {
11629	// LanguageCode: Required. The language of this query. See Language
11630	// Support (https://cloud.google.com/dialogflow/docs/reference/language)
11631	// for a list of the currently supported language codes. Note that
11632	// queries in the same session do not necessarily need to specify the
11633	// same language.
11634	LanguageCode string `json:"languageCode,omitempty"`
11635
11636	// Name: Required. The unique identifier of the event.
11637	Name string `json:"name,omitempty"`
11638
11639	// Parameters: The collection of parameters associated with the event.
11640	// Depending on your protocol or client library language, this is a map,
11641	// associative array, symbol table, dictionary, or JSON object composed
11642	// of a collection of (MapKey, MapValue) pairs: - MapKey type: string -
11643	// MapKey value: parameter name - MapValue type: - If parameter's entity
11644	// type is a composite entity: map - Else: depending on parameter value
11645	// type, could be one of string, number, boolean, null, list or map -
11646	// MapValue value: - If parameter's entity type is a composite entity:
11647	// map from composite entity property names to property values - Else:
11648	// parameter value
11649	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
11650
11651	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
11652	// unconditionally include in API requests. By default, fields with
11653	// empty values are omitted from API requests. However, any non-pointer,
11654	// non-interface field appearing in ForceSendFields will be sent to the
11655	// server regardless of whether the field is empty or not. This may be
11656	// used to include empty fields in Patch requests.
11657	ForceSendFields []string `json:"-"`
11658
11659	// NullFields is a list of field names (e.g. "LanguageCode") to include
11660	// in API requests with the JSON null value. By default, fields with
11661	// empty values are omitted from API requests. However, any field with
11662	// an empty value appearing in NullFields will be sent to the server as
11663	// null. It is an error if a field in this list has a non-empty value.
11664	// This may be used to include null fields in Patch requests.
11665	NullFields []string `json:"-"`
11666}
11667
11668func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
11669	type NoMethod GoogleCloudDialogflowV2beta1EventInput
11670	raw := NoMethod(*s)
11671	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11672}
11673
11674// GoogleCloudDialogflowV2beta1ExportAgentRequest: The request message
11675// for Agents.ExportAgent.
11676type GoogleCloudDialogflowV2beta1ExportAgentRequest struct {
11677	// AgentUri: Optional. The Google Cloud Storage
11678	// (https://cloud.google.com/storage/docs/) URI to export the agent to.
11679	// The format of this URI must be `gs:///`. If left unspecified, the
11680	// serialized agent is returned inline.
11681	AgentUri string `json:"agentUri,omitempty"`
11682
11683	// ForceSendFields is a list of field names (e.g. "AgentUri") to
11684	// unconditionally include in API requests. By default, fields with
11685	// empty values are omitted from API requests. However, any non-pointer,
11686	// non-interface field appearing in ForceSendFields will be sent to the
11687	// server regardless of whether the field is empty or not. This may be
11688	// used to include empty fields in Patch requests.
11689	ForceSendFields []string `json:"-"`
11690
11691	// NullFields is a list of field names (e.g. "AgentUri") to include in
11692	// API requests with the JSON null value. By default, fields with empty
11693	// values are omitted from API requests. However, any field with an
11694	// empty value appearing in NullFields will be sent to the server as
11695	// null. It is an error if a field in this list has a non-empty value.
11696	// This may be used to include null fields in Patch requests.
11697	NullFields []string `json:"-"`
11698}
11699
11700func (s *GoogleCloudDialogflowV2beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
11701	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentRequest
11702	raw := NoMethod(*s)
11703	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11704}
11705
11706// GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message
11707// for Agents.ExportAgent.
11708type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
11709	// AgentContent: Zip compressed raw byte content for agent.
11710	AgentContent string `json:"agentContent,omitempty"`
11711
11712	// AgentUri: The URI to a file containing the exported agent. This field
11713	// is populated only if `agent_uri` is specified in
11714	// `ExportAgentRequest`.
11715	AgentUri string `json:"agentUri,omitempty"`
11716
11717	// ForceSendFields is a list of field names (e.g. "AgentContent") to
11718	// unconditionally include in API requests. By default, fields with
11719	// empty values are omitted from API requests. However, any non-pointer,
11720	// non-interface field appearing in ForceSendFields will be sent to the
11721	// server regardless of whether the field is empty or not. This may be
11722	// used to include empty fields in Patch requests.
11723	ForceSendFields []string `json:"-"`
11724
11725	// NullFields is a list of field names (e.g. "AgentContent") to include
11726	// in API requests with the JSON null value. By default, fields with
11727	// empty values are omitted from API requests. However, any field with
11728	// an empty value appearing in NullFields will be sent to the server as
11729	// null. It is an error if a field in this list has a non-empty value.
11730	// This may be used to include null fields in Patch requests.
11731	NullFields []string `json:"-"`
11732}
11733
11734func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
11735	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
11736	raw := NoMethod(*s)
11737	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11738}
11739
11740// GoogleCloudDialogflowV2beta1FaqAnswer: Represents answer from
11741// "frequently asked questions".
11742type GoogleCloudDialogflowV2beta1FaqAnswer struct {
11743	// Answer: The piece of text from the `source` knowledge base document.
11744	Answer string `json:"answer,omitempty"`
11745
11746	// AnswerRecord: The name of answer record, in the format of
11747	// "projects//locations//answerRecords/"
11748	AnswerRecord string `json:"answerRecord,omitempty"`
11749
11750	// Confidence: The system's confidence score that this Knowledge answer
11751	// is a good match for this conversational query, range from 0.0
11752	// (completely uncertain) to 1.0 (completely certain).
11753	Confidence float64 `json:"confidence,omitempty"`
11754
11755	// Metadata: A map that contains metadata about the answer and the
11756	// document from which it originates.
11757	Metadata map[string]string `json:"metadata,omitempty"`
11758
11759	// Question: The corresponding FAQ question.
11760	Question string `json:"question,omitempty"`
11761
11762	// Source: Indicates which Knowledge Document this answer was extracted
11763	// from. Format:
11764	// `projects//locations//agent/knowledgeBases//documents/`.
11765	Source string `json:"source,omitempty"`
11766
11767	// ForceSendFields is a list of field names (e.g. "Answer") to
11768	// unconditionally include in API requests. By default, fields with
11769	// empty values are omitted from API requests. However, any non-pointer,
11770	// non-interface field appearing in ForceSendFields will be sent to the
11771	// server regardless of whether the field is empty or not. This may be
11772	// used to include empty fields in Patch requests.
11773	ForceSendFields []string `json:"-"`
11774
11775	// NullFields is a list of field names (e.g. "Answer") to include in API
11776	// requests with the JSON null value. By default, fields with empty
11777	// values are omitted from API requests. However, any field with an
11778	// empty value appearing in NullFields will be sent to the server as
11779	// null. It is an error if a field in this list has a non-empty value.
11780	// This may be used to include null fields in Patch requests.
11781	NullFields []string `json:"-"`
11782}
11783
11784func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
11785	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
11786	raw := NoMethod(*s)
11787	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11788}
11789
11790func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
11791	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
11792	var s1 struct {
11793		Confidence gensupport.JSONFloat64 `json:"confidence"`
11794		*NoMethod
11795	}
11796	s1.NoMethod = (*NoMethod)(s)
11797	if err := json.Unmarshal(data, &s1); err != nil {
11798		return err
11799	}
11800	s.Confidence = float64(s1.Confidence)
11801	return nil
11802}
11803
11804// GoogleCloudDialogflowV2beta1Fulfillment: By default, your agent
11805// responds to a matched intent with a static response. As an
11806// alternative, you can provide a more dynamic response by using
11807// fulfillment. When you enable fulfillment for an intent, Dialogflow
11808// responds to that intent by calling a service that you define. For
11809// example, if an end-user wants to schedule a haircut on Friday, your
11810// service can check your database and respond to the end-user with
11811// availability information for Friday. For more information, see the
11812// fulfillment guide
11813// (https://cloud.google.com/dialogflow/docs/fulfillment-overview).
11814type GoogleCloudDialogflowV2beta1Fulfillment struct {
11815	// DisplayName: The human-readable name of the fulfillment, unique
11816	// within the agent. This field is not used for Fulfillment in an
11817	// Environment.
11818	DisplayName string `json:"displayName,omitempty"`
11819
11820	// Enabled: Whether fulfillment is enabled.
11821	Enabled bool `json:"enabled,omitempty"`
11822
11823	// Features: The field defines whether the fulfillment is enabled for
11824	// certain features.
11825	Features []*GoogleCloudDialogflowV2beta1FulfillmentFeature `json:"features,omitempty"`
11826
11827	// GenericWebService: Configuration for a generic web service.
11828	GenericWebService *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService `json:"genericWebService,omitempty"`
11829
11830	// Name: Required. The unique identifier of the fulfillment. Supported
11831	// formats: - `projects//agent/fulfillment` -
11832	// `projects//locations//agent/fulfillment` This field is not used for
11833	// Fulfillment in an Environment.
11834	Name string `json:"name,omitempty"`
11835
11836	// ServerResponse contains the HTTP response code and headers from the
11837	// server.
11838	googleapi.ServerResponse `json:"-"`
11839
11840	// ForceSendFields is a list of field names (e.g. "DisplayName") to
11841	// unconditionally include in API requests. By default, fields with
11842	// empty values are omitted from API requests. However, any non-pointer,
11843	// non-interface field appearing in ForceSendFields will be sent to the
11844	// server regardless of whether the field is empty or not. This may be
11845	// used to include empty fields in Patch requests.
11846	ForceSendFields []string `json:"-"`
11847
11848	// NullFields is a list of field names (e.g. "DisplayName") to include
11849	// in API requests with the JSON null value. By default, fields with
11850	// empty values are omitted from API requests. However, any field with
11851	// an empty value appearing in NullFields will be sent to the server as
11852	// null. It is an error if a field in this list has a non-empty value.
11853	// This may be used to include null fields in Patch requests.
11854	NullFields []string `json:"-"`
11855}
11856
11857func (s *GoogleCloudDialogflowV2beta1Fulfillment) MarshalJSON() ([]byte, error) {
11858	type NoMethod GoogleCloudDialogflowV2beta1Fulfillment
11859	raw := NoMethod(*s)
11860	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11861}
11862
11863// GoogleCloudDialogflowV2beta1FulfillmentFeature: Whether fulfillment
11864// is enabled for the specific feature.
11865type GoogleCloudDialogflowV2beta1FulfillmentFeature struct {
11866	// Type: The type of the feature that enabled for fulfillment.
11867	//
11868	// Possible values:
11869	//   "TYPE_UNSPECIFIED" - Feature type not specified.
11870	//   "SMALLTALK" - Fulfillment is enabled for SmallTalk.
11871	Type string `json:"type,omitempty"`
11872
11873	// ForceSendFields is a list of field names (e.g. "Type") to
11874	// unconditionally include in API requests. By default, fields with
11875	// empty values are omitted from API requests. However, any non-pointer,
11876	// non-interface field appearing in ForceSendFields will be sent to the
11877	// server regardless of whether the field is empty or not. This may be
11878	// used to include empty fields in Patch requests.
11879	ForceSendFields []string `json:"-"`
11880
11881	// NullFields is a list of field names (e.g. "Type") to include in API
11882	// requests with the JSON null value. By default, fields with empty
11883	// values are omitted from API requests. However, any field with an
11884	// empty value appearing in NullFields will be sent to the server as
11885	// null. It is an error if a field in this list has a non-empty value.
11886	// This may be used to include null fields in Patch requests.
11887	NullFields []string `json:"-"`
11888}
11889
11890func (s *GoogleCloudDialogflowV2beta1FulfillmentFeature) MarshalJSON() ([]byte, error) {
11891	type NoMethod GoogleCloudDialogflowV2beta1FulfillmentFeature
11892	raw := NoMethod(*s)
11893	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11894}
11895
11896// GoogleCloudDialogflowV2beta1FulfillmentGenericWebService: Represents
11897// configuration for a generic web service. Dialogflow supports two
11898// mechanisms for authentications: - Basic authentication with username
11899// and password. - Authentication with additional authentication
11900// headers. More information could be found at:
11901// https://cloud.google.com/dialogflow/docs/fulfillment-configure.
11902type GoogleCloudDialogflowV2beta1FulfillmentGenericWebService struct {
11903	// IsCloudFunction: Optional. Indicates if generic web service is
11904	// created through Cloud Functions integration. Defaults to false.
11905	// is_cloud_function is deprecated. Cloud functions can be configured by
11906	// its uri as a regular web service now.
11907	IsCloudFunction bool `json:"isCloudFunction,omitempty"`
11908
11909	// Password: The password for HTTP Basic authentication.
11910	Password string `json:"password,omitempty"`
11911
11912	// RequestHeaders: The HTTP request headers to send together with
11913	// fulfillment requests.
11914	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
11915
11916	// Uri: Required. The fulfillment URI for receiving POST requests. It
11917	// must use https protocol.
11918	Uri string `json:"uri,omitempty"`
11919
11920	// Username: The user name for HTTP Basic authentication.
11921	Username string `json:"username,omitempty"`
11922
11923	// ForceSendFields is a list of field names (e.g. "IsCloudFunction") to
11924	// unconditionally include in API requests. By default, fields with
11925	// empty values are omitted from API requests. However, any non-pointer,
11926	// non-interface field appearing in ForceSendFields will be sent to the
11927	// server regardless of whether the field is empty or not. This may be
11928	// used to include empty fields in Patch requests.
11929	ForceSendFields []string `json:"-"`
11930
11931	// NullFields is a list of field names (e.g. "IsCloudFunction") to
11932	// include in API requests with the JSON null value. By default, fields
11933	// with empty values are omitted from API requests. However, any field
11934	// with an empty value appearing in NullFields will be sent to the
11935	// server as null. It is an error if a field in this list has a
11936	// non-empty value. This may be used to include null fields in Patch
11937	// requests.
11938	NullFields []string `json:"-"`
11939}
11940
11941func (s *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService) MarshalJSON() ([]byte, error) {
11942	type NoMethod GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
11943	raw := NoMethod(*s)
11944	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11945}
11946
11947// GoogleCloudDialogflowV2beta1GcsSource: Google Cloud Storage location
11948// for single input.
11949type GoogleCloudDialogflowV2beta1GcsSource struct {
11950	// Uri: Required. The Google Cloud Storage URIs for the inputs. A URI is
11951	// of the form: gs://bucket/object-prefix-or-name Whether a prefix or
11952	// name is used depends on the use case.
11953	Uri string `json:"uri,omitempty"`
11954
11955	// ForceSendFields is a list of field names (e.g. "Uri") to
11956	// unconditionally include in API requests. By default, fields with
11957	// empty values are omitted from API requests. However, any non-pointer,
11958	// non-interface field appearing in ForceSendFields will be sent to the
11959	// server regardless of whether the field is empty or not. This may be
11960	// used to include empty fields in Patch requests.
11961	ForceSendFields []string `json:"-"`
11962
11963	// NullFields is a list of field names (e.g. "Uri") to include in API
11964	// requests with the JSON null value. By default, fields with empty
11965	// values are omitted from API requests. However, any field with an
11966	// empty value appearing in NullFields will be sent to the server as
11967	// null. It is an error if a field in this list has a non-empty value.
11968	// This may be used to include null fields in Patch requests.
11969	NullFields []string `json:"-"`
11970}
11971
11972func (s *GoogleCloudDialogflowV2beta1GcsSource) MarshalJSON() ([]byte, error) {
11973	type NoMethod GoogleCloudDialogflowV2beta1GcsSource
11974	raw := NoMethod(*s)
11975	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11976}
11977
11978// GoogleCloudDialogflowV2beta1GcsSources: Google Cloud Storage
11979// locations for the inputs.
11980type GoogleCloudDialogflowV2beta1GcsSources struct {
11981	// Uris: Required. Google Cloud Storage URIs for the inputs. A URI is of
11982	// the form: gs://bucket/object-prefix-or-name Whether a prefix or name
11983	// is used depends on the use case.
11984	Uris []string `json:"uris,omitempty"`
11985
11986	// ForceSendFields is a list of field names (e.g. "Uris") to
11987	// unconditionally include in API requests. By default, fields with
11988	// empty values are omitted from API requests. However, any non-pointer,
11989	// non-interface field appearing in ForceSendFields will be sent to the
11990	// server regardless of whether the field is empty or not. This may be
11991	// used to include empty fields in Patch requests.
11992	ForceSendFields []string `json:"-"`
11993
11994	// NullFields is a list of field names (e.g. "Uris") to include in API
11995	// requests with the JSON null value. By default, fields with empty
11996	// values are omitted from API requests. However, any field with an
11997	// empty value appearing in NullFields will be sent to the server as
11998	// null. It is an error if a field in this list has a non-empty value.
11999	// This may be used to include null fields in Patch requests.
12000	NullFields []string `json:"-"`
12001}
12002
12003func (s *GoogleCloudDialogflowV2beta1GcsSources) MarshalJSON() ([]byte, error) {
12004	type NoMethod GoogleCloudDialogflowV2beta1GcsSources
12005	raw := NoMethod(*s)
12006	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12007}
12008
12009// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig: Defines the
12010// Human Agent Assistant to connect to a conversation.
12011type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig struct {
12012	// EndUserSuggestionConfig: Configuration for agent assistance of end
12013	// user participant. Currently, this feature is not general available,
12014	// please contact Google to get access.
12015	EndUserSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"endUserSuggestionConfig,omitempty"`
12016
12017	// HumanAgentSuggestionConfig: Configuration for agent assistance of
12018	// human agent participant.
12019	HumanAgentSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"humanAgentSuggestionConfig,omitempty"`
12020
12021	// MessageAnalysisConfig: Configuration for message analysis.
12022	MessageAnalysisConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig `json:"messageAnalysisConfig,omitempty"`
12023
12024	// NotificationConfig: Pub/Sub topic on which to publish new agent
12025	// assistant events.
12026	NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
12027
12028	// ForceSendFields is a list of field names (e.g.
12029	// "EndUserSuggestionConfig") to unconditionally include in API
12030	// requests. By default, fields with empty values are omitted from API
12031	// requests. However, any non-pointer, non-interface field appearing in
12032	// ForceSendFields will be sent to the server regardless of whether the
12033	// field is empty or not. This may be used to include empty fields in
12034	// Patch requests.
12035	ForceSendFields []string `json:"-"`
12036
12037	// NullFields is a list of field names (e.g. "EndUserSuggestionConfig")
12038	// to include in API requests with the JSON null value. By default,
12039	// fields with empty values are omitted from API requests. However, any
12040	// field with an empty value appearing in NullFields will be sent to the
12041	// server as null. It is an error if a field in this list has a
12042	// non-empty value. This may be used to include null fields in Patch
12043	// requests.
12044	NullFields []string `json:"-"`
12045}
12046
12047func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig) MarshalJSON() ([]byte, error) {
12048	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
12049	raw := NoMethod(*s)
12050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12051}
12052
12053// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModel
12054// Config: Custom conversation models used in agent assist feature.
12055// Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
12056type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig struct {
12057	// Model: Conversation model resource name. Format:
12058	// `projects//conversationModels/`.
12059	Model string `json:"model,omitempty"`
12060
12061	// ForceSendFields is a list of field names (e.g. "Model") to
12062	// unconditionally include in API requests. By default, fields with
12063	// empty values are omitted from API requests. However, any non-pointer,
12064	// non-interface field appearing in ForceSendFields will be sent to the
12065	// server regardless of whether the field is empty or not. This may be
12066	// used to include empty fields in Patch requests.
12067	ForceSendFields []string `json:"-"`
12068
12069	// NullFields is a list of field names (e.g. "Model") to include in API
12070	// requests with the JSON null value. By default, fields with empty
12071	// values are omitted from API requests. However, any field with an
12072	// empty value appearing in NullFields will be sent to the server as
12073	// null. It is an error if a field in this list has a non-empty value.
12074	// This may be used to include null fields in Patch requests.
12075	NullFields []string `json:"-"`
12076}
12077
12078func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig) MarshalJSON() ([]byte, error) {
12079	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
12080	raw := NoMethod(*s)
12081	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12082}
12083
12084// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisCo
12085// nfig: Configuration for analyses to run on each conversation message.
12086type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig struct {
12087	// EnableEntityExtraction: Enable entity extraction in conversation
12088	// messages on agent assist stage
12089	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
12090	// If unspecified, defaults to false. Currently, this feature is not
12091	// general available, please contact Google to get access.
12092	EnableEntityExtraction bool `json:"enableEntityExtraction,omitempty"`
12093
12094	// EnableSentimentAnalysis: Enable sentiment analysis in conversation
12095	// messages on agent assist stage
12096	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
12097	// If unspecified, defaults to false. Sentiment analysis inspects user
12098	// input and identifies the prevailing subjective opinion, especially to
12099	// determine a user's attitude as positive, negative, or neutral:
12100	// https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
12101	// For Participants.StreamingAnalyzeContent method, result will be in
12102	// StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For
12103	// Participants.AnalyzeContent method, result will be in
12104	// AnalyzeContentResponse.message.SentimentAnalysisResult For
12105	// Conversations.ListMessages method, result will be in
12106	// ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub
12107	// notification is configured, result will be in
12108	// ConversationEvent.new_message_payload.SentimentAnalysisResult.
12109	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
12110
12111	// ForceSendFields is a list of field names (e.g.
12112	// "EnableEntityExtraction") to unconditionally include in API requests.
12113	// By default, fields with empty values are omitted from API requests.
12114	// However, any non-pointer, non-interface field appearing in
12115	// ForceSendFields will be sent to the server regardless of whether the
12116	// field is empty or not. This may be used to include empty fields in
12117	// Patch requests.
12118	ForceSendFields []string `json:"-"`
12119
12120	// NullFields is a list of field names (e.g. "EnableEntityExtraction")
12121	// to include in API requests with the JSON null value. By default,
12122	// fields with empty values are omitted from API requests. However, any
12123	// field with an empty value appearing in NullFields will be sent to the
12124	// server as null. It is an error if a field in this list has a
12125	// non-empty value. This may be used to include null fields in Patch
12126	// requests.
12127	NullFields []string `json:"-"`
12128}
12129
12130func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig) MarshalJSON() ([]byte, error) {
12131	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
12132	raw := NoMethod(*s)
12133	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12134}
12135
12136// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig:
12137//  Detail human agent assistant config.
12138type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig struct {
12139	// FeatureConfigs: Configuration of different suggestion features. One
12140	// feature can have only one config.
12141	FeatureConfigs []*GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"featureConfigs,omitempty"`
12142
12143	// GroupSuggestionResponses: If `group_suggestion_responses` is false,
12144	// and there are multiple `feature_configs` in `event based suggestion`
12145	// or StreamingAnalyzeContent, we will try to deliver suggestions to
12146	// customers as soon as we get new suggestion. Different type of
12147	// suggestions based on the same context will be in separate Pub/Sub
12148	// event or `StreamingAnalyzeContentResponse`. If
12149	// `group_suggestion_responses` set to true. All the suggestions to the
12150	// same participant based on the same context will be grouped into a
12151	// single Pub/Sub event or StreamingAnalyzeContentResponse.
12152	GroupSuggestionResponses bool `json:"groupSuggestionResponses,omitempty"`
12153
12154	// ForceSendFields is a list of field names (e.g. "FeatureConfigs") to
12155	// unconditionally include in API requests. By default, fields with
12156	// empty values are omitted from API requests. However, any non-pointer,
12157	// non-interface field appearing in ForceSendFields will be sent to the
12158	// server regardless of whether the field is empty or not. This may be
12159	// used to include empty fields in Patch requests.
12160	ForceSendFields []string `json:"-"`
12161
12162	// NullFields is a list of field names (e.g. "FeatureConfigs") to
12163	// include in API requests with the JSON null value. By default, fields
12164	// with empty values are omitted from API requests. However, any field
12165	// with an empty value appearing in NullFields will be sent to the
12166	// server as null. It is an error if a field in this list has a
12167	// non-empty value. This may be used to include null fields in Patch
12168	// requests.
12169	NullFields []string `json:"-"`
12170}
12171
12172func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig) MarshalJSON() ([]byte, error) {
12173	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig
12174	raw := NoMethod(*s)
12175	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12176}
12177
12178// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeature
12179// Config: Config for suggestion features.
12180type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig struct {
12181	// ConversationModelConfig: Configs of custom conversation model.
12182	ConversationModelConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig `json:"conversationModelConfig,omitempty"`
12183
12184	// EnableEventBasedSuggestion: Automatically iterates all participants
12185	// and tries to compile suggestions. Supported features:
12186	// ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST.
12187	EnableEventBasedSuggestion bool `json:"enableEventBasedSuggestion,omitempty"`
12188
12189	// QueryConfig: Configs of query.
12190	QueryConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig `json:"queryConfig,omitempty"`
12191
12192	// SuggestionFeature: The suggestion feature.
12193	SuggestionFeature *GoogleCloudDialogflowV2beta1SuggestionFeature `json:"suggestionFeature,omitempty"`
12194
12195	// SuggestionTriggerSettings: Settings of suggestion trigger. Currently,
12196	// only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use this
12197	// field.
12198	SuggestionTriggerSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings `json:"suggestionTriggerSettings,omitempty"`
12199
12200	// ForceSendFields is a list of field names (e.g.
12201	// "ConversationModelConfig") to unconditionally include in API
12202	// requests. By default, fields with empty values are omitted from API
12203	// requests. However, any non-pointer, non-interface field appearing in
12204	// ForceSendFields will be sent to the server regardless of whether the
12205	// field is empty or not. This may be used to include empty fields in
12206	// Patch requests.
12207	ForceSendFields []string `json:"-"`
12208
12209	// NullFields is a list of field names (e.g. "ConversationModelConfig")
12210	// to include in API requests with the JSON null value. By default,
12211	// fields with empty values are omitted from API requests. However, any
12212	// field with an empty value appearing in NullFields will be sent to the
12213	// server as null. It is an error if a field in this list has a
12214	// non-empty value. This may be used to include null fields in Patch
12215	// requests.
12216	NullFields []string `json:"-"`
12217}
12218
12219func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig) MarshalJSON() ([]byte, error) {
12220	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig
12221	raw := NoMethod(*s)
12222	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12223}
12224
12225// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12226// nfig: Config for suggestion query.
12227type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig struct {
12228	// ConfidenceThreshold: Confidence threshold of query result. Agent
12229	// Assist gives each suggestion a score in the range [0.0, 1.0], based
12230	// on the relevance between the suggestion and the current conversation
12231	// context. A score of 0.0 has no relevance, while a score of 1.0 has
12232	// high relevance. Only suggestions with a score greater than or equal
12233	// to the value of this field are included in the results. For a
12234	// baseline model (the default), the recommended value is in the range
12235	// [0.05, 0.1]. For a custom model, there is no recommended value. Tune
12236	// this value by starting from a very low value and slowly increasing
12237	// until you have desired results. If this field is not set, it is
12238	// default to 0.0, which means that all suggestions are returned.
12239	// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY,
12240	// SMART_COMPOSE.
12241	ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
12242
12243	// ContextFilterSettings: Determines how recent conversation context is
12244	// filtered when generating suggestions. If unspecified, no messages
12245	// will be dropped.
12246	ContextFilterSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings `json:"contextFilterSettings,omitempty"`
12247
12248	// DialogflowQuerySource: Query from Dialogflow agent. It is used by
12249	// DIALOGFLOW_ASSIST.
12250	DialogflowQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource `json:"dialogflowQuerySource,omitempty"`
12251
12252	// DocumentQuerySource: Query from knowledge base document. It is used
12253	// by: SMART_REPLY, SMART_COMPOSE.
12254	DocumentQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource `json:"documentQuerySource,omitempty"`
12255
12256	// KnowledgeBaseQuerySource: Query from knowledgebase. It is used by:
12257	// ARTICLE_SUGGESTION, FAQ.
12258	KnowledgeBaseQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource `json:"knowledgeBaseQuerySource,omitempty"`
12259
12260	// MaxResults: Maximum number of results to return. Currently, if unset,
12261	// defaults to 10. And the max number is 20.
12262	MaxResults int64 `json:"maxResults,omitempty"`
12263
12264	// ForceSendFields is a list of field names (e.g. "ConfidenceThreshold")
12265	// to unconditionally include in API requests. By default, fields with
12266	// empty values are omitted from API requests. However, any non-pointer,
12267	// non-interface field appearing in ForceSendFields will be sent to the
12268	// server regardless of whether the field is empty or not. This may be
12269	// used to include empty fields in Patch requests.
12270	ForceSendFields []string `json:"-"`
12271
12272	// NullFields is a list of field names (e.g. "ConfidenceThreshold") to
12273	// include in API requests with the JSON null value. By default, fields
12274	// with empty values are omitted from API requests. However, any field
12275	// with an empty value appearing in NullFields will be sent to the
12276	// server as null. It is an error if a field in this list has a
12277	// non-empty value. This may be used to include null fields in Patch
12278	// requests.
12279	NullFields []string `json:"-"`
12280}
12281
12282func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) MarshalJSON() ([]byte, error) {
12283	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
12284	raw := NoMethod(*s)
12285	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12286}
12287
12288func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) UnmarshalJSON(data []byte) error {
12289	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
12290	var s1 struct {
12291		ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
12292		*NoMethod
12293	}
12294	s1.NoMethod = (*NoMethod)(s)
12295	if err := json.Unmarshal(data, &s1); err != nil {
12296		return err
12297	}
12298	s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
12299	return nil
12300}
12301
12302// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12303// nfigContextFilterSettings: Settings that determine how to filter
12304// recent conversation context when generating suggestions.
12305type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings struct {
12306	// DropHandoffMessages: If set to true, the last message from virtual
12307	// agent (hand off message) and the message before it (trigger message
12308	// of hand off) are dropped.
12309	DropHandoffMessages bool `json:"dropHandoffMessages,omitempty"`
12310
12311	// DropIvrMessages: If set to true, all messages from ivr stage are
12312	// dropped.
12313	DropIvrMessages bool `json:"dropIvrMessages,omitempty"`
12314
12315	// DropVirtualAgentMessages: If set to true, all messages from virtual
12316	// agent are dropped.
12317	DropVirtualAgentMessages bool `json:"dropVirtualAgentMessages,omitempty"`
12318
12319	// ForceSendFields is a list of field names (e.g. "DropHandoffMessages")
12320	// to unconditionally include in API requests. By default, fields with
12321	// empty values are omitted from API requests. However, any non-pointer,
12322	// non-interface field appearing in ForceSendFields will be sent to the
12323	// server regardless of whether the field is empty or not. This may be
12324	// used to include empty fields in Patch requests.
12325	ForceSendFields []string `json:"-"`
12326
12327	// NullFields is a list of field names (e.g. "DropHandoffMessages") to
12328	// include in API requests with the JSON null value. By default, fields
12329	// with empty values are omitted from API requests. However, any field
12330	// with an empty value appearing in NullFields will be sent to the
12331	// server as null. It is an error if a field in this list has a
12332	// non-empty value. This may be used to include null fields in Patch
12333	// requests.
12334	NullFields []string `json:"-"`
12335}
12336
12337func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings) MarshalJSON() ([]byte, error) {
12338	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
12339	raw := NoMethod(*s)
12340	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12341}
12342
12343// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12344// nfigDialogflowQuerySource: Dialogflow source setting. Supported
12345// feature: DIALOGFLOW_ASSIST.
12346type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource struct {
12347	// Agent: Required. The name of a dialogflow virtual agent used for end
12348	// user side intent detection and suggestion. Format:
12349	// `projects//locations//agent`. When multiple agents are allowed in the
12350	// same Dialogflow project.
12351	Agent string `json:"agent,omitempty"`
12352
12353	// ForceSendFields is a list of field names (e.g. "Agent") to
12354	// unconditionally include in API requests. By default, fields with
12355	// empty values are omitted from API requests. However, any non-pointer,
12356	// non-interface field appearing in ForceSendFields will be sent to the
12357	// server regardless of whether the field is empty or not. This may be
12358	// used to include empty fields in Patch requests.
12359	ForceSendFields []string `json:"-"`
12360
12361	// NullFields is a list of field names (e.g. "Agent") to include in API
12362	// requests with the JSON null value. By default, fields with empty
12363	// values are omitted from API requests. However, any field with an
12364	// empty value appearing in NullFields will be sent to the server as
12365	// null. It is an error if a field in this list has a non-empty value.
12366	// This may be used to include null fields in Patch requests.
12367	NullFields []string `json:"-"`
12368}
12369
12370func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource) MarshalJSON() ([]byte, error) {
12371	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
12372	raw := NoMethod(*s)
12373	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12374}
12375
12376// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12377// nfigDocumentQuerySource: Document source settings. Supported
12378// features: SMART_REPLY, SMART_COMPOSE.
12379type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource struct {
12380	// Documents: Required. Knowledge documents to query from. Format:
12381	// `projects//locations//knowledgeBases//documents/`. Currently, only
12382	// one document is supported.
12383	Documents []string `json:"documents,omitempty"`
12384
12385	// ForceSendFields is a list of field names (e.g. "Documents") to
12386	// unconditionally include in API requests. By default, fields with
12387	// empty values are omitted from API requests. However, any non-pointer,
12388	// non-interface field appearing in ForceSendFields will be sent to the
12389	// server regardless of whether the field is empty or not. This may be
12390	// used to include empty fields in Patch requests.
12391	ForceSendFields []string `json:"-"`
12392
12393	// NullFields is a list of field names (e.g. "Documents") to include in
12394	// API requests with the JSON null value. By default, fields with empty
12395	// values are omitted from API requests. However, any field with an
12396	// empty value appearing in NullFields will be sent to the server as
12397	// null. It is an error if a field in this list has a non-empty value.
12398	// This may be used to include null fields in Patch requests.
12399	NullFields []string `json:"-"`
12400}
12401
12402func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource) MarshalJSON() ([]byte, error) {
12403	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
12404	raw := NoMethod(*s)
12405	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12406}
12407
12408// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12409// nfigKnowledgeBaseQuerySource: Knowledge base source settings.
12410// Supported features: ARTICLE_SUGGESTION, FAQ.
12411type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource struct {
12412	// KnowledgeBases: Required. Knowledge bases to query. Format:
12413	// `projects//locations//knowledgeBases/`. Currently, only one knowledge
12414	// base is supported.
12415	KnowledgeBases []string `json:"knowledgeBases,omitempty"`
12416
12417	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
12418	// unconditionally include in API requests. By default, fields with
12419	// empty values are omitted from API requests. However, any non-pointer,
12420	// non-interface field appearing in ForceSendFields will be sent to the
12421	// server regardless of whether the field is empty or not. This may be
12422	// used to include empty fields in Patch requests.
12423	ForceSendFields []string `json:"-"`
12424
12425	// NullFields is a list of field names (e.g. "KnowledgeBases") to
12426	// include in API requests with the JSON null value. By default, fields
12427	// with empty values are omitted from API requests. However, any field
12428	// with an empty value appearing in NullFields will be sent to the
12429	// server as null. It is an error if a field in this list has a
12430	// non-empty value. This may be used to include null fields in Patch
12431	// requests.
12432	NullFields []string `json:"-"`
12433}
12434
12435func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource) MarshalJSON() ([]byte, error) {
12436	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
12437	raw := NoMethod(*s)
12438	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12439}
12440
12441// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTrigger
12442// Settings: Settings of suggestion trigger.
12443type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings struct {
12444	// NoSmallTalk: Do not trigger if last utterance is small talk.
12445	NoSmallTalk bool `json:"noSmallTalk,omitempty"`
12446
12447	// OnlyEndUser: Only trigger suggestion if participant role of last
12448	// utterance is END_USER.
12449	OnlyEndUser bool `json:"onlyEndUser,omitempty"`
12450
12451	// ForceSendFields is a list of field names (e.g. "NoSmallTalk") to
12452	// unconditionally include in API requests. By default, fields with
12453	// empty values are omitted from API requests. However, any non-pointer,
12454	// non-interface field appearing in ForceSendFields will be sent to the
12455	// server regardless of whether the field is empty or not. This may be
12456	// used to include empty fields in Patch requests.
12457	ForceSendFields []string `json:"-"`
12458
12459	// NullFields is a list of field names (e.g. "NoSmallTalk") to include
12460	// in API requests with the JSON null value. By default, fields with
12461	// empty values are omitted from API requests. However, any field with
12462	// an empty value appearing in NullFields will be sent to the server as
12463	// null. It is an error if a field in this list has a non-empty value.
12464	// This may be used to include null fields in Patch requests.
12465	NullFields []string `json:"-"`
12466}
12467
12468func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings) MarshalJSON() ([]byte, error) {
12469	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings
12470	raw := NoMethod(*s)
12471	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12472}
12473
12474// GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent: Output only.
12475// Represents a notification sent to Pub/Sub subscribers for agent
12476// assistant events in a specific conversation.
12477type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
12478	// Conversation: The conversation this notification refers to. Format:
12479	// `projects//conversations/`.
12480	Conversation string `json:"conversation,omitempty"`
12481
12482	// Participant: The participant that the suggestion is compiled for. And
12483	// This field is used to call Participants.ListSuggestions API. Format:
12484	// `projects//conversations//participants/`. It will not be set in
12485	// legacy workflow. HumanAgentAssistantConfig.name for more information.
12486	Participant string `json:"participant,omitempty"`
12487
12488	// SuggestionResults: The suggestion results payload that this
12489	// notification refers to. It will only be set when
12490	// HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses
12491	// sets to true.
12492	SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
12493
12494	// ForceSendFields is a list of field names (e.g. "Conversation") to
12495	// unconditionally include in API requests. By default, fields with
12496	// empty values are omitted from API requests. However, any non-pointer,
12497	// non-interface field appearing in ForceSendFields will be sent to the
12498	// server regardless of whether the field is empty or not. This may be
12499	// used to include empty fields in Patch requests.
12500	ForceSendFields []string `json:"-"`
12501
12502	// NullFields is a list of field names (e.g. "Conversation") to include
12503	// in API requests with the JSON null value. By default, fields with
12504	// empty values are omitted from API requests. However, any field with
12505	// an empty value appearing in NullFields will be sent to the server as
12506	// null. It is an error if a field in this list has a non-empty value.
12507	// This may be used to include null fields in Patch requests.
12508	NullFields []string `json:"-"`
12509}
12510
12511func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
12512	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
12513	raw := NoMethod(*s)
12514	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12515}
12516
12517// GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig: Defines the hand
12518// off to a live agent, typically on which external agent service
12519// provider to connect to a conversation. Currently, this feature is not
12520// general available, please contact Google to get access.
12521type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig struct {
12522	// LivePersonConfig: Uses LivePerson (https://www.liveperson.com).
12523	LivePersonConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig `json:"livePersonConfig,omitempty"`
12524
12525	// SalesforceLiveAgentConfig: Uses Salesforce Live Agent.
12526	SalesforceLiveAgentConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig `json:"salesforceLiveAgentConfig,omitempty"`
12527
12528	// ForceSendFields is a list of field names (e.g. "LivePersonConfig") to
12529	// unconditionally include in API requests. By default, fields with
12530	// empty values are omitted from API requests. However, any non-pointer,
12531	// non-interface field appearing in ForceSendFields will be sent to the
12532	// server regardless of whether the field is empty or not. This may be
12533	// used to include empty fields in Patch requests.
12534	ForceSendFields []string `json:"-"`
12535
12536	// NullFields is a list of field names (e.g. "LivePersonConfig") to
12537	// include in API requests with the JSON null value. By default, fields
12538	// with empty values are omitted from API requests. However, any field
12539	// with an empty value appearing in NullFields will be sent to the
12540	// server as null. It is an error if a field in this list has a
12541	// non-empty value. This may be used to include null fields in Patch
12542	// requests.
12543	NullFields []string `json:"-"`
12544}
12545
12546func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig) MarshalJSON() ([]byte, error) {
12547	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
12548	raw := NoMethod(*s)
12549	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12550}
12551
12552// GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig:
12553// Configuration specific to LivePerson (https://www.liveperson.com).
12554type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig struct {
12555	// AccountNumber: Required. Account number of the LivePerson account to
12556	// connect. This is the account number you input at the login page.
12557	AccountNumber string `json:"accountNumber,omitempty"`
12558
12559	// ForceSendFields is a list of field names (e.g. "AccountNumber") to
12560	// unconditionally include in API requests. By default, fields with
12561	// empty values are omitted from API requests. However, any non-pointer,
12562	// non-interface field appearing in ForceSendFields will be sent to the
12563	// server regardless of whether the field is empty or not. This may be
12564	// used to include empty fields in Patch requests.
12565	ForceSendFields []string `json:"-"`
12566
12567	// NullFields is a list of field names (e.g. "AccountNumber") to include
12568	// in API requests with the JSON null value. By default, fields with
12569	// empty values are omitted from API requests. However, any field with
12570	// an empty value appearing in NullFields will be sent to the server as
12571	// null. It is an error if a field in this list has a non-empty value.
12572	// This may be used to include null fields in Patch requests.
12573	NullFields []string `json:"-"`
12574}
12575
12576func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig) MarshalJSON() ([]byte, error) {
12577	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
12578	raw := NoMethod(*s)
12579	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12580}
12581
12582// GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgent
12583// Config: Configuration specific to Salesforce Live Agent.
12584type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig struct {
12585	// ButtonId: Required. Live Agent chat button ID.
12586	ButtonId string `json:"buttonId,omitempty"`
12587
12588	// DeploymentId: Required. Live Agent deployment ID.
12589	DeploymentId string `json:"deploymentId,omitempty"`
12590
12591	// EndpointDomain: Required. Domain of the Live Agent endpoint for this
12592	// agent. You can find the endpoint URL in the `Live Agent settings`
12593	// page. For example if URL has the form
12594	// https://d.la4-c2-phx.salesforceliveagent.com/..., you should fill in
12595	// d.la4-c2-phx.salesforceliveagent.com.
12596	EndpointDomain string `json:"endpointDomain,omitempty"`
12597
12598	// OrganizationId: Required. The organization ID of the Salesforce
12599	// account.
12600	OrganizationId string `json:"organizationId,omitempty"`
12601
12602	// ForceSendFields is a list of field names (e.g. "ButtonId") to
12603	// unconditionally include in API requests. By default, fields with
12604	// empty values are omitted from API requests. However, any non-pointer,
12605	// non-interface field appearing in ForceSendFields will be sent to the
12606	// server regardless of whether the field is empty or not. This may be
12607	// used to include empty fields in Patch requests.
12608	ForceSendFields []string `json:"-"`
12609
12610	// NullFields is a list of field names (e.g. "ButtonId") to include in
12611	// API requests with the JSON null value. By default, fields with empty
12612	// values are omitted from API requests. However, any field with an
12613	// empty value appearing in NullFields will be sent to the server as
12614	// null. It is an error if a field in this list has a non-empty value.
12615	// This may be used to include null fields in Patch requests.
12616	NullFields []string `json:"-"`
12617}
12618
12619func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig) MarshalJSON() ([]byte, error) {
12620	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig
12621	raw := NoMethod(*s)
12622	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12623}
12624
12625// GoogleCloudDialogflowV2beta1ImportAgentRequest: The request message
12626// for Agents.ImportAgent.
12627type GoogleCloudDialogflowV2beta1ImportAgentRequest struct {
12628	// AgentContent: Zip compressed raw byte content for agent.
12629	AgentContent string `json:"agentContent,omitempty"`
12630
12631	// AgentUri: The URI to a Google Cloud Storage file containing the agent
12632	// to import. Note: The URI must start with "gs://".
12633	AgentUri string `json:"agentUri,omitempty"`
12634
12635	// ForceSendFields is a list of field names (e.g. "AgentContent") to
12636	// unconditionally include in API requests. By default, fields with
12637	// empty values are omitted from API requests. However, any non-pointer,
12638	// non-interface field appearing in ForceSendFields will be sent to the
12639	// server regardless of whether the field is empty or not. This may be
12640	// used to include empty fields in Patch requests.
12641	ForceSendFields []string `json:"-"`
12642
12643	// NullFields is a list of field names (e.g. "AgentContent") to include
12644	// in API requests with the JSON null value. By default, fields with
12645	// empty values are omitted from API requests. However, any field with
12646	// an empty value appearing in NullFields will be sent to the server as
12647	// null. It is an error if a field in this list has a non-empty value.
12648	// This may be used to include null fields in Patch requests.
12649	NullFields []string `json:"-"`
12650}
12651
12652func (s *GoogleCloudDialogflowV2beta1ImportAgentRequest) MarshalJSON() ([]byte, error) {
12653	type NoMethod GoogleCloudDialogflowV2beta1ImportAgentRequest
12654	raw := NoMethod(*s)
12655	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12656}
12657
12658// GoogleCloudDialogflowV2beta1ImportDocumentTemplate: The template used
12659// for importing documents.
12660type GoogleCloudDialogflowV2beta1ImportDocumentTemplate struct {
12661	// KnowledgeTypes: Required. The knowledge type of document content.
12662	//
12663	// Possible values:
12664	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or
12665	// arbitrary.
12666	//   "FAQ" - The document content contains question and answer pairs as
12667	// either HTML or CSV. Typical FAQ HTML formats are parsed accurately,
12668	// but unusual formats may fail to be parsed. CSV must have questions in
12669	// the first column and answers in the second, with no header. Because
12670	// of this explicit format, they are always parsed accurately.
12671	//   "EXTRACTIVE_QA" - Documents for which unstructured text is
12672	// extracted and used for question answering.
12673	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can
12674	// be used for query results. Only for Contact Center Solutions on
12675	// Dialogflow.
12676	//   "SMART_REPLY" - The legacy enum for agent-facing smart reply
12677	// feature.
12678	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
12679
12680	// Metadata: Metadata for the document. The metadata supports arbitrary
12681	// key-value pairs. Suggested use cases include storing a document's
12682	// title, an external URL distinct from the document's content_uri, etc.
12683	// The max size of a `key` or a `value` of the metadata is 1024 bytes.
12684	Metadata map[string]string `json:"metadata,omitempty"`
12685
12686	// MimeType: Required. The MIME type of the document.
12687	MimeType string `json:"mimeType,omitempty"`
12688
12689	// ForceSendFields is a list of field names (e.g. "KnowledgeTypes") to
12690	// unconditionally include in API requests. By default, fields with
12691	// empty values are omitted from API requests. However, any non-pointer,
12692	// non-interface field appearing in ForceSendFields will be sent to the
12693	// server regardless of whether the field is empty or not. This may be
12694	// used to include empty fields in Patch requests.
12695	ForceSendFields []string `json:"-"`
12696
12697	// NullFields is a list of field names (e.g. "KnowledgeTypes") to
12698	// include in API requests with the JSON null value. By default, fields
12699	// with empty values are omitted from API requests. However, any field
12700	// with an empty value appearing in NullFields will be sent to the
12701	// server as null. It is an error if a field in this list has a
12702	// non-empty value. This may be used to include null fields in Patch
12703	// requests.
12704	NullFields []string `json:"-"`
12705}
12706
12707func (s *GoogleCloudDialogflowV2beta1ImportDocumentTemplate) MarshalJSON() ([]byte, error) {
12708	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentTemplate
12709	raw := NoMethod(*s)
12710	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12711}
12712
12713// GoogleCloudDialogflowV2beta1ImportDocumentsRequest: Request message
12714// for Documents.ImportDocuments.
12715type GoogleCloudDialogflowV2beta1ImportDocumentsRequest struct {
12716	// DocumentTemplate: Required. Document template used for importing all
12717	// the documents.
12718	DocumentTemplate *GoogleCloudDialogflowV2beta1ImportDocumentTemplate `json:"documentTemplate,omitempty"`
12719
12720	// GcsSource: The Google Cloud Storage location for the documents. The
12721	// path can include a wildcard. These URIs may have the forms `gs:///`.
12722	// `gs:////*.`.
12723	GcsSource *GoogleCloudDialogflowV2beta1GcsSources `json:"gcsSource,omitempty"`
12724
12725	// ImportGcsCustomMetadata: Whether to import custom metadata from
12726	// Google Cloud Storage. Only valid when the document source is Google
12727	// Cloud Storage URI.
12728	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
12729
12730	// ForceSendFields is a list of field names (e.g. "DocumentTemplate") to
12731	// unconditionally include in API requests. By default, fields with
12732	// empty values are omitted from API requests. However, any non-pointer,
12733	// non-interface field appearing in ForceSendFields will be sent to the
12734	// server regardless of whether the field is empty or not. This may be
12735	// used to include empty fields in Patch requests.
12736	ForceSendFields []string `json:"-"`
12737
12738	// NullFields is a list of field names (e.g. "DocumentTemplate") to
12739	// include in API requests with the JSON null value. By default, fields
12740	// with empty values are omitted from API requests. However, any field
12741	// with an empty value appearing in NullFields will be sent to the
12742	// server as null. It is an error if a field in this list has a
12743	// non-empty value. This may be used to include null fields in Patch
12744	// requests.
12745	NullFields []string `json:"-"`
12746}
12747
12748func (s *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
12749	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsRequest
12750	raw := NoMethod(*s)
12751	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12752}
12753
12754// GoogleCloudDialogflowV2beta1ImportDocumentsResponse: Response message
12755// for Documents.ImportDocuments.
12756type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
12757	// Warnings: Includes details about skipped documents or any other
12758	// warnings.
12759	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
12760
12761	// ForceSendFields is a list of field names (e.g. "Warnings") to
12762	// unconditionally include in API requests. By default, fields with
12763	// empty values are omitted from API requests. However, any non-pointer,
12764	// non-interface field appearing in ForceSendFields will be sent to the
12765	// server regardless of whether the field is empty or not. This may be
12766	// used to include empty fields in Patch requests.
12767	ForceSendFields []string `json:"-"`
12768
12769	// NullFields is a list of field names (e.g. "Warnings") to include in
12770	// API requests with the JSON null value. By default, fields with empty
12771	// values are omitted from API requests. However, any field with an
12772	// empty value appearing in NullFields will be sent to the server as
12773	// null. It is an error if a field in this list has a non-empty value.
12774	// This may be used to include null fields in Patch requests.
12775	NullFields []string `json:"-"`
12776}
12777
12778func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
12779	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
12780	raw := NoMethod(*s)
12781	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12782}
12783
12784// GoogleCloudDialogflowV2beta1InputAudioConfig: Instructs the speech
12785// recognizer on how to process the audio content.
12786type GoogleCloudDialogflowV2beta1InputAudioConfig struct {
12787	// AudioEncoding: Required. Audio encoding of the audio content to
12788	// process.
12789	//
12790	// Possible values:
12791	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
12792	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
12793	// little-endian samples (Linear PCM).
12794	//   "AUDIO_ENCODING_FLAC" -
12795	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
12796	// Audio Codec) is the recommended encoding because it is lossless
12797	// (therefore recognition is not compromised) and requires only about
12798	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
12799	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
12800	// are supported.
12801	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
12802	// samples using G.711 PCMU/mu-law.
12803	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
12804	// `sample_rate_hertz` must be 8000.
12805	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
12806	// `sample_rate_hertz` must be 16000.
12807	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
12808	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
12809	// `sample_rate_hertz` must be 16000.
12810	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
12811	// encodings is not recommended, if a very low bitrate encoding is
12812	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
12813	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
12814	// a header byte in each block, as in MIME type
12815	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
12816	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
12817	// The stream is a sequence of blocks, one block per RTP packet. Each
12818	// block starts with a byte containing the length of the block, in
12819	// bytes, followed by one or more frames of Speex data, padded to an
12820	// integral number of bytes (octets) as specified in RFC 5574. In other
12821	// words, each RTP header is replaced with a single byte containing the
12822	// block length. Only Speex wideband is supported. `sample_rate_hertz`
12823	// must be 16000.
12824	AudioEncoding string `json:"audioEncoding,omitempty"`
12825
12826	// DisableNoSpeechRecognizedEvent: Only used in
12827	// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent.
12828	// If `false` and recognition doesn't return any result, trigger
12829	// `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
12830	DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"`
12831
12832	// EnableWordInfo: If `true`, Dialogflow returns SpeechWordInfo in
12833	// StreamingRecognitionResult with information about the recognized
12834	// speech words, e.g. start and end time offsets. If false or
12835	// unspecified, Speech doesn't return any word-level information.
12836	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
12837
12838	// LanguageCode: Required. The language of the supplied audio.
12839	// Dialogflow does not do translations. See Language Support
12840	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
12841	// list of the currently supported language codes. Note that queries in
12842	// the same session do not necessarily need to specify the same
12843	// language.
12844	LanguageCode string `json:"languageCode,omitempty"`
12845
12846	// Model: Which Speech model to select for the given request. Select the
12847	// model best suited to your domain to get best results. If a model is
12848	// not explicitly specified, then we auto-select a model based on the
12849	// parameters in the InputAudioConfig. If enhanced speech model is
12850	// enabled for the agent and an enhanced version of the specified model
12851	// for the language does not exist, then the speech is recognized using
12852	// the standard version of the specified model. Refer to Cloud Speech
12853	// API documentation
12854	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
12855	// for more details.
12856	Model string `json:"model,omitempty"`
12857
12858	// ModelVariant: Which variant of the Speech model to use.
12859	//
12860	// Possible values:
12861	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
12862	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
12863	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
12864	// model that the caller is eligible for. Please see the [Dialogflow
12865	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
12866	// to make your project eligible for enhanced models.
12867	//   "USE_STANDARD" - Use standard model variant even if an enhanced
12868	// model is available. See the [Cloud Speech
12869	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
12870	// odels) for details about enhanced models.
12871	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
12872	// variant does not exist for the given model and request language,
12873	// Dialogflow falls back to the standard variant. The [Cloud Speech
12874	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
12875	// odels) describes which models have enhanced variants. * If the API
12876	// caller isn't eligible for enhanced models, Dialogflow returns an
12877	// error. Please see the [Dialogflow
12878	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
12879	// to make your project eligible.
12880	ModelVariant string `json:"modelVariant,omitempty"`
12881
12882	// PhraseHints: A list of strings containing words and phrases that the
12883	// speech recognizer should recognize with higher likelihood. See the
12884	// Cloud Speech documentation
12885	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
12886	// for more details. This field is deprecated. Please use
12887	// speech_contexts () instead. If you specify both phrase_hints () and
12888	// speech_contexts (), Dialogflow will treat the phrase_hints () as a
12889	// single additional SpeechContext ().
12890	PhraseHints []string `json:"phraseHints,omitempty"`
12891
12892	// SampleRateHertz: Required. Sample rate (in Hertz) of the audio
12893	// content sent in the query. Refer to Cloud Speech API documentation
12894	// (https://cloud.google.com/speech-to-text/docs/basics) for more
12895	// details.
12896	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
12897
12898	// SingleUtterance: If `false` (default), recognition does not cease
12899	// until the client closes the stream. If `true`, the recognizer will
12900	// detect a single spoken utterance in input audio. Recognition ceases
12901	// when it detects the audio's voice has stopped or paused. In this
12902	// case, once a detected intent is received, the client should close the
12903	// stream and start a new request with a new stream as needed. Note:
12904	// This setting is relevant only for streaming methods. Note: When
12905	// specified, InputAudioConfig.single_utterance takes precedence over
12906	// StreamingDetectIntentRequest.single_utterance.
12907	SingleUtterance bool `json:"singleUtterance,omitempty"`
12908
12909	// SpeechContexts: Context information to assist speech recognition. See
12910	// the Cloud Speech documentation
12911	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
12912	// for more details.
12913	SpeechContexts []*GoogleCloudDialogflowV2beta1SpeechContext `json:"speechContexts,omitempty"`
12914
12915	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
12916	// unconditionally include in API requests. By default, fields with
12917	// empty values are omitted from API requests. However, any non-pointer,
12918	// non-interface field appearing in ForceSendFields will be sent to the
12919	// server regardless of whether the field is empty or not. This may be
12920	// used to include empty fields in Patch requests.
12921	ForceSendFields []string `json:"-"`
12922
12923	// NullFields is a list of field names (e.g. "AudioEncoding") to include
12924	// in API requests with the JSON null value. By default, fields with
12925	// empty values are omitted from API requests. However, any field with
12926	// an empty value appearing in NullFields will be sent to the server as
12927	// null. It is an error if a field in this list has a non-empty value.
12928	// This may be used to include null fields in Patch requests.
12929	NullFields []string `json:"-"`
12930}
12931
12932func (s *GoogleCloudDialogflowV2beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
12933	type NoMethod GoogleCloudDialogflowV2beta1InputAudioConfig
12934	raw := NoMethod(*s)
12935	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12936}
12937
12938// GoogleCloudDialogflowV2beta1Intent: An intent categorizes an
12939// end-user's intention for one conversation turn. For each agent, you
12940// define many intents, where your combined intents can handle a
12941// complete conversation. When an end-user writes or says something,
12942// referred to as an end-user expression or end-user input, Dialogflow
12943// matches the end-user input to the best intent in your agent. Matching
12944// an intent is also known as intent classification. For more
12945// information, see the intent guide
12946// (https://cloud.google.com/dialogflow/docs/intents-overview).
12947type GoogleCloudDialogflowV2beta1Intent struct {
12948	// Action: Optional. The name of the action associated with the intent.
12949	// Note: The action name must not contain whitespaces.
12950	Action string `json:"action,omitempty"`
12951
12952	// DefaultResponsePlatforms: Optional. The list of platforms for which
12953	// the first responses will be copied from the messages in
12954	// PLATFORM_UNSPECIFIED (i.e. default platform).
12955	//
12956	// Possible values:
12957	//   "PLATFORM_UNSPECIFIED" - Not specified.
12958	//   "FACEBOOK" - Facebook.
12959	//   "SLACK" - Slack.
12960	//   "TELEGRAM" - Telegram.
12961	//   "KIK" - Kik.
12962	//   "SKYPE" - Skype.
12963	//   "LINE" - Line.
12964	//   "VIBER" - Viber.
12965	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
12966	// format](https://developers.google.com/assistant/actions/build/json/dia
12967	// logflow-webhook-json)
12968	//   "TELEPHONY" - Telephony Gateway.
12969	//   "GOOGLE_HANGOUTS" - Google Hangouts.
12970	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
12971
12972	// DisplayName: Required. The name of this intent.
12973	DisplayName string `json:"displayName,omitempty"`
12974
12975	// EndInteraction: Optional. Indicates that this intent ends an
12976	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
12977	// phone gateway) use this information to close interaction with an end
12978	// user. Default is false.
12979	EndInteraction bool `json:"endInteraction,omitempty"`
12980
12981	// Events: Optional. The collection of event names that trigger the
12982	// intent. If the collection of input contexts is not empty, all of the
12983	// contexts must be present in the active user session for an event to
12984	// trigger this intent. Event names are limited to 150 characters.
12985	Events []string `json:"events,omitempty"`
12986
12987	// FollowupIntentInfo: Output only. Information about all followup
12988	// intents that have this intent as a direct or indirect parent. We
12989	// populate this field only in the output.
12990	FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
12991
12992	// InputContextNames: Optional. The list of context names required for
12993	// this intent to be triggered. Formats: -
12994	// `projects//agent/sessions/-/contexts/` -
12995	// `projects//locations//agent/sessions/-/contexts/`
12996	InputContextNames []string `json:"inputContextNames,omitempty"`
12997
12998	// IsFallback: Optional. Indicates whether this is a fallback intent.
12999	IsFallback bool `json:"isFallback,omitempty"`
13000
13001	// LiveAgentHandoff: Optional. Indicates that a live agent should be
13002	// brought in to handle the interaction with the user. In most cases,
13003	// when you set this flag to true, you would also want to set
13004	// end_interaction to true as well. Default is false.
13005	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
13006
13007	// Messages: Optional. The collection of rich messages corresponding to
13008	// the `Response` field in the Dialogflow console.
13009	Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
13010
13011	// MlDisabled: Optional. Indicates whether Machine Learning is disabled
13012	// for the intent. Note: If `ml_disabled` setting is set to true, then
13013	// this intent is not taken into account during inference in `ML ONLY`
13014	// match mode. Also, auto-markup in the UI is turned off.
13015	MlDisabled bool `json:"mlDisabled,omitempty"`
13016
13017	// MlEnabled: Optional. Indicates whether Machine Learning is enabled
13018	// for the intent. Note: If `ml_enabled` setting is set to false, then
13019	// this intent is not taken into account during inference in `ML ONLY`
13020	// match mode. Also, auto-markup in the UI is turned off. DEPRECATED!
13021	// Please use `ml_disabled` field instead. NOTE: If both `ml_enabled`
13022	// and `ml_disabled` are either not set or false, then the default value
13023	// is determined as follows: - Before April 15th, 2018 the default is:
13024	// ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the
13025	// default is: ml_enabled = true / ml_disabled = false.
13026	MlEnabled bool `json:"mlEnabled,omitempty"`
13027
13028	// Name: Optional. The unique identifier of this intent. Required for
13029	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods.
13030	// Supported formats: - `projects//agent/intents/` -
13031	// `projects//locations//agent/intents/`
13032	Name string `json:"name,omitempty"`
13033
13034	// OutputContexts: Optional. The collection of contexts that are
13035	// activated when the intent is matched. Context messages in this
13036	// collection should not set the parameters field. Setting the
13037	// `lifespan_count` to 0 will reset the context when the intent is
13038	// matched. Format: `projects//agent/sessions/-/contexts/`.
13039	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
13040
13041	// Parameters: Optional. The collection of parameters associated with
13042	// the intent.
13043	Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
13044
13045	// ParentFollowupIntentName: Optional. The unique identifier of the
13046	// parent intent in the chain of followup intents. You can set this
13047	// field when creating an intent, for example with CreateIntent or
13048	// BatchUpdateIntents, in order to make this intent a followup intent.
13049	// It identifies the parent followup intent. Format:
13050	// `projects//agent/intents/`.
13051	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13052
13053	// Priority: Optional. The priority of this intent. Higher numbers
13054	// represent higher priorities. - If the supplied value is unspecified
13055	// or 0, the service translates the value to 500,000, which corresponds
13056	// to the `Normal` priority in the console. - If the supplied value is
13057	// negative, the intent is ignored in runtime detect intent requests.
13058	Priority int64 `json:"priority,omitempty"`
13059
13060	// ResetContexts: Optional. Indicates whether to delete all contexts in
13061	// the current session when this intent is matched.
13062	ResetContexts bool `json:"resetContexts,omitempty"`
13063
13064	// RootFollowupIntentName: Output only. The unique identifier of the
13065	// root intent in the chain of followup intents. It identifies the
13066	// correct followup intents chain for this intent. Format:
13067	// `projects//agent/intents/`.
13068	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
13069
13070	// TrainingPhrases: Optional. The collection of examples that the agent
13071	// is trained on.
13072	TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
13073
13074	// WebhookState: Optional. Indicates whether webhooks are enabled for
13075	// the intent.
13076	//
13077	// Possible values:
13078	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and
13079	// in the intent.
13080	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in
13081	// the intent.
13082	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in
13083	// the agent and in the intent. Also, each slot filling prompt is
13084	// forwarded to the webhook.
13085	WebhookState string `json:"webhookState,omitempty"`
13086
13087	// ServerResponse contains the HTTP response code and headers from the
13088	// server.
13089	googleapi.ServerResponse `json:"-"`
13090
13091	// ForceSendFields is a list of field names (e.g. "Action") to
13092	// unconditionally include in API requests. By default, fields with
13093	// empty values are omitted from API requests. However, any non-pointer,
13094	// non-interface field appearing in ForceSendFields will be sent to the
13095	// server regardless of whether the field is empty or not. This may be
13096	// used to include empty fields in Patch requests.
13097	ForceSendFields []string `json:"-"`
13098
13099	// NullFields is a list of field names (e.g. "Action") to include in API
13100	// requests with the JSON null value. By default, fields with empty
13101	// values are omitted from API requests. However, any field with an
13102	// empty value appearing in NullFields will be sent to the server as
13103	// null. It is an error if a field in this list has a non-empty value.
13104	// This may be used to include null fields in Patch requests.
13105	NullFields []string `json:"-"`
13106}
13107
13108func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
13109	type NoMethod GoogleCloudDialogflowV2beta1Intent
13110	raw := NoMethod(*s)
13111	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13112}
13113
13114// GoogleCloudDialogflowV2beta1IntentBatch: This message is a wrapper
13115// around a collection of intents.
13116type GoogleCloudDialogflowV2beta1IntentBatch struct {
13117	// Intents: A collection of intents.
13118	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
13119
13120	// ForceSendFields is a list of field names (e.g. "Intents") to
13121	// unconditionally include in API requests. By default, fields with
13122	// empty values are omitted from API requests. However, any non-pointer,
13123	// non-interface field appearing in ForceSendFields will be sent to the
13124	// server regardless of whether the field is empty or not. This may be
13125	// used to include empty fields in Patch requests.
13126	ForceSendFields []string `json:"-"`
13127
13128	// NullFields is a list of field names (e.g. "Intents") to include in
13129	// API requests with the JSON null value. By default, fields with empty
13130	// values are omitted from API requests. However, any field with an
13131	// empty value appearing in NullFields will be sent to the server as
13132	// null. It is an error if a field in this list has a non-empty value.
13133	// This may be used to include null fields in Patch requests.
13134	NullFields []string `json:"-"`
13135}
13136
13137func (s *GoogleCloudDialogflowV2beta1IntentBatch) MarshalJSON() ([]byte, error) {
13138	type NoMethod GoogleCloudDialogflowV2beta1IntentBatch
13139	raw := NoMethod(*s)
13140	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13141}
13142
13143// GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a
13144// single followup intent in the chain.
13145type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
13146	// FollowupIntentName: The unique identifier of the followup intent.
13147	// Format: `projects//agent/intents/`.
13148	FollowupIntentName string `json:"followupIntentName,omitempty"`
13149
13150	// ParentFollowupIntentName: The unique identifier of the followup
13151	// intent's parent. Format: `projects//agent/intents/`.
13152	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13153
13154	// ForceSendFields is a list of field names (e.g. "FollowupIntentName")
13155	// to unconditionally include in API requests. By default, fields with
13156	// empty values are omitted from API requests. However, any non-pointer,
13157	// non-interface field appearing in ForceSendFields will be sent to the
13158	// server regardless of whether the field is empty or not. This may be
13159	// used to include empty fields in Patch requests.
13160	ForceSendFields []string `json:"-"`
13161
13162	// NullFields is a list of field names (e.g. "FollowupIntentName") to
13163	// include in API requests with the JSON null value. By default, fields
13164	// with empty values are omitted from API requests. However, any field
13165	// with an empty value appearing in NullFields will be sent to the
13166	// server as null. It is an error if a field in this list has a
13167	// non-empty value. This may be used to include null fields in Patch
13168	// requests.
13169	NullFields []string `json:"-"`
13170}
13171
13172func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
13173	type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
13174	raw := NoMethod(*s)
13175	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13176}
13177
13178// GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the
13179// `Response` field in the Dialogflow console.
13180type GoogleCloudDialogflowV2beta1IntentMessage struct {
13181	// BasicCard: Displays a basic card for Actions on Google.
13182	BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
13183
13184	// BrowseCarouselCard: Browse carousel card for Actions on Google.
13185	BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
13186
13187	// Card: Displays a card.
13188	Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
13189
13190	// CarouselSelect: Displays a carousel card for Actions on Google.
13191	CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
13192
13193	// Image: Displays an image.
13194	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13195
13196	// LinkOutSuggestion: Displays a link out suggestion chip for Actions on
13197	// Google.
13198	LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
13199
13200	// ListSelect: Displays a list card for Actions on Google.
13201	ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
13202
13203	// MediaContent: The media content card for Actions on Google.
13204	MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
13205
13206	// Payload: A custom platform-specific response.
13207	Payload googleapi.RawMessage `json:"payload,omitempty"`
13208
13209	// Platform: Optional. The platform that this message is intended for.
13210	//
13211	// Possible values:
13212	//   "PLATFORM_UNSPECIFIED" - Not specified.
13213	//   "FACEBOOK" - Facebook.
13214	//   "SLACK" - Slack.
13215	//   "TELEGRAM" - Telegram.
13216	//   "KIK" - Kik.
13217	//   "SKYPE" - Skype.
13218	//   "LINE" - Line.
13219	//   "VIBER" - Viber.
13220	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
13221	// format](https://developers.google.com/assistant/actions/build/json/dia
13222	// logflow-webhook-json)
13223	//   "TELEPHONY" - Telephony Gateway.
13224	//   "GOOGLE_HANGOUTS" - Google Hangouts.
13225	Platform string `json:"platform,omitempty"`
13226
13227	// QuickReplies: Displays quick replies.
13228	QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
13229
13230	// RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card
13231	// response.
13232	RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
13233
13234	// RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich
13235	// card response.
13236	RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
13237
13238	// RbmText: Rich Business Messaging (RBM) text response. RBM allows
13239	// businesses to send enriched and branded versions of SMS. See
13240	// https://jibe.google.com/business-messaging.
13241	RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
13242
13243	// SimpleResponses: Returns a voice or text-only response for Actions on
13244	// Google.
13245	SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
13246
13247	// Suggestions: Displays suggestion chips for Actions on Google.
13248	Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
13249
13250	// TableCard: Table card for Actions on Google.
13251	TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
13252
13253	// TelephonyPlayAudio: Plays audio from a file in Telephony Gateway.
13254	TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
13255
13256	// TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway.
13257	TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
13258
13259	// TelephonyTransferCall: Transfers the call in Telephony Gateway.
13260	TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
13261
13262	// Text: Returns a text response.
13263	Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
13264
13265	// ForceSendFields is a list of field names (e.g. "BasicCard") to
13266	// unconditionally include in API requests. By default, fields with
13267	// empty values are omitted from API requests. However, any non-pointer,
13268	// non-interface field appearing in ForceSendFields will be sent to the
13269	// server regardless of whether the field is empty or not. This may be
13270	// used to include empty fields in Patch requests.
13271	ForceSendFields []string `json:"-"`
13272
13273	// NullFields is a list of field names (e.g. "BasicCard") to include in
13274	// API requests with the JSON null value. By default, fields with empty
13275	// values are omitted from API requests. However, any field with an
13276	// empty value appearing in NullFields will be sent to the server as
13277	// null. It is an error if a field in this list has a non-empty value.
13278	// This may be used to include null fields in Patch requests.
13279	NullFields []string `json:"-"`
13280}
13281
13282func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
13283	type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
13284	raw := NoMethod(*s)
13285	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13286}
13287
13288// GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card
13289// message. Useful for displaying information.
13290type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
13291	// Buttons: Optional. The collection of card buttons.
13292	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
13293
13294	// FormattedText: Required, unless image is present. The body text of
13295	// the card.
13296	FormattedText string `json:"formattedText,omitempty"`
13297
13298	// Image: Optional. The image for the card.
13299	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13300
13301	// Subtitle: Optional. The subtitle of the card.
13302	Subtitle string `json:"subtitle,omitempty"`
13303
13304	// Title: Optional. The title of the card.
13305	Title string `json:"title,omitempty"`
13306
13307	// ForceSendFields is a list of field names (e.g. "Buttons") to
13308	// unconditionally include in API requests. By default, fields with
13309	// empty values are omitted from API requests. However, any non-pointer,
13310	// non-interface field appearing in ForceSendFields will be sent to the
13311	// server regardless of whether the field is empty or not. This may be
13312	// used to include empty fields in Patch requests.
13313	ForceSendFields []string `json:"-"`
13314
13315	// NullFields is a list of field names (e.g. "Buttons") to include in
13316	// API requests with the JSON null value. By default, fields with empty
13317	// values are omitted from API requests. However, any field with an
13318	// empty value appearing in NullFields will be sent to the server as
13319	// null. It is an error if a field in this list has a non-empty value.
13320	// This may be used to include null fields in Patch requests.
13321	NullFields []string `json:"-"`
13322}
13323
13324func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
13325	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
13326	raw := NoMethod(*s)
13327	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13328}
13329
13330// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button
13331// object that appears at the bottom of a card.
13332type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
13333	// OpenUriAction: Required. Action to take when a user taps on the
13334	// button.
13335	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
13336
13337	// Title: Required. The title of the button.
13338	Title string `json:"title,omitempty"`
13339
13340	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
13341	// unconditionally include in API requests. By default, fields with
13342	// empty values are omitted from API requests. However, any non-pointer,
13343	// non-interface field appearing in ForceSendFields will be sent to the
13344	// server regardless of whether the field is empty or not. This may be
13345	// used to include empty fields in Patch requests.
13346	ForceSendFields []string `json:"-"`
13347
13348	// NullFields is a list of field names (e.g. "OpenUriAction") to include
13349	// in API requests with the JSON null value. By default, fields with
13350	// empty values are omitted from API requests. However, any field with
13351	// an empty value appearing in NullFields will be sent to the server as
13352	// null. It is an error if a field in this list has a non-empty value.
13353	// This may be used to include null fields in Patch requests.
13354	NullFields []string `json:"-"`
13355}
13356
13357func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
13358	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
13359	raw := NoMethod(*s)
13360	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13361}
13362
13363// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction:
13364//  Opens the given URI.
13365type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
13366	// Uri: Required. The HTTP or HTTPS scheme URI.
13367	Uri string `json:"uri,omitempty"`
13368
13369	// ForceSendFields is a list of field names (e.g. "Uri") to
13370	// unconditionally include in API requests. By default, fields with
13371	// empty values are omitted from API requests. However, any non-pointer,
13372	// non-interface field appearing in ForceSendFields will be sent to the
13373	// server regardless of whether the field is empty or not. This may be
13374	// used to include empty fields in Patch requests.
13375	ForceSendFields []string `json:"-"`
13376
13377	// NullFields is a list of field names (e.g. "Uri") to include in API
13378	// requests with the JSON null value. By default, fields with empty
13379	// values are omitted from API requests. However, any field with an
13380	// empty value appearing in NullFields will be sent to the server as
13381	// null. It is an error if a field in this list has a non-empty value.
13382	// This may be used to include null fields in Patch requests.
13383	NullFields []string `json:"-"`
13384}
13385
13386func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
13387	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
13388	raw := NoMethod(*s)
13389	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13390}
13391
13392// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse
13393// Carousel Card for Actions on Google.
13394// https://developers.google.com/actions/assistant/responses#browsing_carousel
13395type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
13396	// ImageDisplayOptions: Optional. Settings for displaying the image.
13397	// Applies to every image in items.
13398	//
13399	// Possible values:
13400	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the
13401	// image and the image container with gray bars.
13402	//   "GRAY" - Fill the gaps between the image and the image container
13403	// with gray bars.
13404	//   "WHITE" - Fill the gaps between the image and the image container
13405	// with white bars.
13406	//   "CROPPED" - Image is scaled such that the image width and height
13407	// match or exceed the container dimensions. This may crop the top and
13408	// bottom of the image if the scaled image height is greater than the
13409	// container height, or crop the left and right of the image if the
13410	// scaled image width is greater than the container width. This is
13411	// similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video.
13412	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame
13413	// with a blurred copy of the same image.
13414	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
13415
13416	// Items: Required. List of items in the Browse Carousel Card. Minimum
13417	// of two items, maximum of ten.
13418	Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
13419
13420	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions")
13421	// to unconditionally include in API requests. By default, fields with
13422	// empty values are omitted from API requests. However, any non-pointer,
13423	// non-interface field appearing in ForceSendFields will be sent to the
13424	// server regardless of whether the field is empty or not. This may be
13425	// used to include empty fields in Patch requests.
13426	ForceSendFields []string `json:"-"`
13427
13428	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to
13429	// include in API requests with the JSON null value. By default, fields
13430	// with empty values are omitted from API requests. However, any field
13431	// with an empty value appearing in NullFields will be sent to the
13432	// server as null. It is an error if a field in this list has a
13433	// non-empty value. This may be used to include null fields in Patch
13434	// requests.
13435	NullFields []string `json:"-"`
13436}
13437
13438func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
13439	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
13440	raw := NoMethod(*s)
13441	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13442}
13443
13444// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou
13445// selCardItem: Browsing carousel tile
13446type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
13447	// Description: Optional. Description of the carousel item. Maximum of
13448	// four lines of text.
13449	Description string `json:"description,omitempty"`
13450
13451	// Footer: Optional. Text that appears at the bottom of the Browse
13452	// Carousel Card. Maximum of one line of text.
13453	Footer string `json:"footer,omitempty"`
13454
13455	// Image: Optional. Hero image for the carousel item.
13456	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13457
13458	// OpenUriAction: Required. Action to present to the user.
13459	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
13460
13461	// Title: Required. Title of the carousel item. Maximum of two lines of
13462	// text.
13463	Title string `json:"title,omitempty"`
13464
13465	// ForceSendFields is a list of field names (e.g. "Description") to
13466	// unconditionally include in API requests. By default, fields with
13467	// empty values are omitted from API requests. However, any non-pointer,
13468	// non-interface field appearing in ForceSendFields will be sent to the
13469	// server regardless of whether the field is empty or not. This may be
13470	// used to include empty fields in Patch requests.
13471	ForceSendFields []string `json:"-"`
13472
13473	// NullFields is a list of field names (e.g. "Description") to include
13474	// in API requests with the JSON null value. By default, fields with
13475	// empty values are omitted from API requests. However, any field with
13476	// an empty value appearing in NullFields will be sent to the server as
13477	// null. It is an error if a field in this list has a non-empty value.
13478	// This may be used to include null fields in Patch requests.
13479	NullFields []string `json:"-"`
13480}
13481
13482func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
13483	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
13484	raw := NoMethod(*s)
13485	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13486}
13487
13488// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou
13489// selCardItemOpenUrlAction: Actions on Google action to open a given
13490// url.
13491type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
13492	// Url: Required. URL
13493	Url string `json:"url,omitempty"`
13494
13495	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
13496	// opening the URL. Defaults to opening via web browser.
13497	//
13498	// Possible values:
13499	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
13500	//   "AMP_ACTION" - Url would be an amp action
13501	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a
13502	// canonical URL which refers to AMP content via .
13503	UrlTypeHint string `json:"urlTypeHint,omitempty"`
13504
13505	// ForceSendFields is a list of field names (e.g. "Url") to
13506	// unconditionally include in API requests. By default, fields with
13507	// empty values are omitted from API requests. However, any non-pointer,
13508	// non-interface field appearing in ForceSendFields will be sent to the
13509	// server regardless of whether the field is empty or not. This may be
13510	// used to include empty fields in Patch requests.
13511	ForceSendFields []string `json:"-"`
13512
13513	// NullFields is a list of field names (e.g. "Url") to include in API
13514	// requests with the JSON null value. By default, fields with empty
13515	// values are omitted from API requests. However, any field with an
13516	// empty value appearing in NullFields will be sent to the server as
13517	// null. It is an error if a field in this list has a non-empty value.
13518	// This may be used to include null fields in Patch requests.
13519	NullFields []string `json:"-"`
13520}
13521
13522func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
13523	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
13524	raw := NoMethod(*s)
13525	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13526}
13527
13528// GoogleCloudDialogflowV2beta1IntentMessageCard: The card response
13529// message.
13530type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
13531	// Buttons: Optional. The collection of card buttons.
13532	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
13533
13534	// ImageUri: Optional. The public URI to an image file for the card.
13535	ImageUri string `json:"imageUri,omitempty"`
13536
13537	// Subtitle: Optional. The subtitle of the card.
13538	Subtitle string `json:"subtitle,omitempty"`
13539
13540	// Title: Optional. The title of the card.
13541	Title string `json:"title,omitempty"`
13542
13543	// ForceSendFields is a list of field names (e.g. "Buttons") to
13544	// unconditionally include in API requests. By default, fields with
13545	// empty values are omitted from API requests. However, any non-pointer,
13546	// non-interface field appearing in ForceSendFields will be sent to the
13547	// server regardless of whether the field is empty or not. This may be
13548	// used to include empty fields in Patch requests.
13549	ForceSendFields []string `json:"-"`
13550
13551	// NullFields is a list of field names (e.g. "Buttons") to include in
13552	// API requests with the JSON null value. By default, fields with empty
13553	// values are omitted from API requests. However, any field with an
13554	// empty value appearing in NullFields will be sent to the server as
13555	// null. It is an error if a field in this list has a non-empty value.
13556	// This may be used to include null fields in Patch requests.
13557	NullFields []string `json:"-"`
13558}
13559
13560func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
13561	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
13562	raw := NoMethod(*s)
13563	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13564}
13565
13566// GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional.
13567// Contains information about a button.
13568type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
13569	// Postback: Optional. The text to send back to the Dialogflow API or a
13570	// URI to open.
13571	Postback string `json:"postback,omitempty"`
13572
13573	// Text: Optional. The text to show on the button.
13574	Text string `json:"text,omitempty"`
13575
13576	// ForceSendFields is a list of field names (e.g. "Postback") to
13577	// unconditionally include in API requests. By default, fields with
13578	// empty values are omitted from API requests. However, any non-pointer,
13579	// non-interface field appearing in ForceSendFields will be sent to the
13580	// server regardless of whether the field is empty or not. This may be
13581	// used to include empty fields in Patch requests.
13582	ForceSendFields []string `json:"-"`
13583
13584	// NullFields is a list of field names (e.g. "Postback") to include in
13585	// API requests with the JSON null value. By default, fields with empty
13586	// values are omitted from API requests. However, any field with an
13587	// empty value appearing in NullFields will be sent to the server as
13588	// null. It is an error if a field in this list has a non-empty value.
13589	// This may be used to include null fields in Patch requests.
13590	NullFields []string `json:"-"`
13591}
13592
13593func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
13594	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
13595	raw := NoMethod(*s)
13596	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13597}
13598
13599// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for
13600// presenting a carousel of options to select from.
13601type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
13602	// Items: Required. Carousel items.
13603	Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
13604
13605	// ForceSendFields is a list of field names (e.g. "Items") to
13606	// unconditionally include in API requests. By default, fields with
13607	// empty values are omitted from API requests. However, any non-pointer,
13608	// non-interface field appearing in ForceSendFields will be sent to the
13609	// server regardless of whether the field is empty or not. This may be
13610	// used to include empty fields in Patch requests.
13611	ForceSendFields []string `json:"-"`
13612
13613	// NullFields is a list of field names (e.g. "Items") to include in API
13614	// requests with the JSON null value. By default, fields with empty
13615	// values are omitted from API requests. However, any field with an
13616	// empty value appearing in NullFields will be sent to the server as
13617	// null. It is an error if a field in this list has a non-empty value.
13618	// This may be used to include null fields in Patch requests.
13619	NullFields []string `json:"-"`
13620}
13621
13622func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
13623	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
13624	raw := NoMethod(*s)
13625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13626}
13627
13628// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item
13629// in the carousel.
13630type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
13631	// Description: Optional. The body text of the card.
13632	Description string `json:"description,omitempty"`
13633
13634	// Image: Optional. The image to display.
13635	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13636
13637	// Info: Required. Additional info about the option item.
13638	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
13639
13640	// Title: Required. Title of the carousel item.
13641	Title string `json:"title,omitempty"`
13642
13643	// ForceSendFields is a list of field names (e.g. "Description") to
13644	// unconditionally include in API requests. By default, fields with
13645	// empty values are omitted from API requests. However, any non-pointer,
13646	// non-interface field appearing in ForceSendFields will be sent to the
13647	// server regardless of whether the field is empty or not. This may be
13648	// used to include empty fields in Patch requests.
13649	ForceSendFields []string `json:"-"`
13650
13651	// NullFields is a list of field names (e.g. "Description") to include
13652	// in API requests with the JSON null value. By default, fields with
13653	// empty values are omitted from API requests. However, any field with
13654	// an empty value appearing in NullFields will be sent to the server as
13655	// null. It is an error if a field in this list has a non-empty value.
13656	// This may be used to include null fields in Patch requests.
13657	NullFields []string `json:"-"`
13658}
13659
13660func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
13661	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
13662	raw := NoMethod(*s)
13663	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13664}
13665
13666// GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column
13667// properties for TableCard.
13668type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
13669	// Header: Required. Column heading.
13670	Header string `json:"header,omitempty"`
13671
13672	// HorizontalAlignment: Optional. Defines text alignment for all cells
13673	// in this column.
13674	//
13675	// Possible values:
13676	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading
13677	// edge of the column.
13678	//   "LEADING" - Text is aligned to the leading edge of the column.
13679	//   "CENTER" - Text is centered in the column.
13680	//   "TRAILING" - Text is aligned to the trailing edge of the column.
13681	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
13682
13683	// ForceSendFields is a list of field names (e.g. "Header") to
13684	// unconditionally include in API requests. By default, fields with
13685	// empty values are omitted from API requests. However, any non-pointer,
13686	// non-interface field appearing in ForceSendFields will be sent to the
13687	// server regardless of whether the field is empty or not. This may be
13688	// used to include empty fields in Patch requests.
13689	ForceSendFields []string `json:"-"`
13690
13691	// NullFields is a list of field names (e.g. "Header") to include in API
13692	// requests with the JSON null value. By default, fields with empty
13693	// values are omitted from API requests. However, any field with an
13694	// empty value appearing in NullFields will be sent to the server as
13695	// null. It is an error if a field in this list has a non-empty value.
13696	// This may be used to include null fields in Patch requests.
13697	NullFields []string `json:"-"`
13698}
13699
13700func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
13701	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
13702	raw := NoMethod(*s)
13703	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13704}
13705
13706// GoogleCloudDialogflowV2beta1IntentMessageImage: The image response
13707// message.
13708type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
13709	// AccessibilityText: A text description of the image to be used for
13710	// accessibility, e.g., screen readers. Required if image_uri is set for
13711	// CarouselSelect.
13712	AccessibilityText string `json:"accessibilityText,omitempty"`
13713
13714	// ImageUri: Optional. The public URI to an image file.
13715	ImageUri string `json:"imageUri,omitempty"`
13716
13717	// ForceSendFields is a list of field names (e.g. "AccessibilityText")
13718	// to unconditionally include in API requests. By default, fields with
13719	// empty values are omitted from API requests. However, any non-pointer,
13720	// non-interface field appearing in ForceSendFields will be sent to the
13721	// server regardless of whether the field is empty or not. This may be
13722	// used to include empty fields in Patch requests.
13723	ForceSendFields []string `json:"-"`
13724
13725	// NullFields is a list of field names (e.g. "AccessibilityText") to
13726	// include in API requests with the JSON null value. By default, fields
13727	// with empty values are omitted from API requests. However, any field
13728	// with an empty value appearing in NullFields will be sent to the
13729	// server as null. It is an error if a field in this list has a
13730	// non-empty value. This may be used to include null fields in Patch
13731	// requests.
13732	NullFields []string `json:"-"`
13733}
13734
13735func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
13736	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
13737	raw := NoMethod(*s)
13738	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13739}
13740
13741// GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The
13742// suggestion chip message that allows the user to jump out to the app
13743// or website associated with this agent.
13744type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
13745	// DestinationName: Required. The name of the app or site this chip is
13746	// linking to.
13747	DestinationName string `json:"destinationName,omitempty"`
13748
13749	// Uri: Required. The URI of the app or site to open when the user taps
13750	// the suggestion chip.
13751	Uri string `json:"uri,omitempty"`
13752
13753	// ForceSendFields is a list of field names (e.g. "DestinationName") to
13754	// unconditionally include in API requests. By default, fields with
13755	// empty values are omitted from API requests. However, any non-pointer,
13756	// non-interface field appearing in ForceSendFields will be sent to the
13757	// server regardless of whether the field is empty or not. This may be
13758	// used to include empty fields in Patch requests.
13759	ForceSendFields []string `json:"-"`
13760
13761	// NullFields is a list of field names (e.g. "DestinationName") to
13762	// include in API requests with the JSON null value. By default, fields
13763	// with empty values are omitted from API requests. However, any field
13764	// with an empty value appearing in NullFields will be sent to the
13765	// server as null. It is an error if a field in this list has a
13766	// non-empty value. This may be used to include null fields in Patch
13767	// requests.
13768	NullFields []string `json:"-"`
13769}
13770
13771func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
13772	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
13773	raw := NoMethod(*s)
13774	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13775}
13776
13777// GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for
13778// presenting a list of options to select from.
13779type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
13780	// Items: Required. List items.
13781	Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
13782
13783	// Subtitle: Optional. Subtitle of the list.
13784	Subtitle string `json:"subtitle,omitempty"`
13785
13786	// Title: Optional. The overall title of the list.
13787	Title string `json:"title,omitempty"`
13788
13789	// ForceSendFields is a list of field names (e.g. "Items") to
13790	// unconditionally include in API requests. By default, fields with
13791	// empty values are omitted from API requests. However, any non-pointer,
13792	// non-interface field appearing in ForceSendFields will be sent to the
13793	// server regardless of whether the field is empty or not. This may be
13794	// used to include empty fields in Patch requests.
13795	ForceSendFields []string `json:"-"`
13796
13797	// NullFields is a list of field names (e.g. "Items") to include in API
13798	// requests with the JSON null value. By default, fields with empty
13799	// values are omitted from API requests. However, any field with an
13800	// empty value appearing in NullFields will be sent to the server as
13801	// null. It is an error if a field in this list has a non-empty value.
13802	// This may be used to include null fields in Patch requests.
13803	NullFields []string `json:"-"`
13804}
13805
13806func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
13807	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
13808	raw := NoMethod(*s)
13809	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13810}
13811
13812// GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in
13813// the list.
13814type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
13815	// Description: Optional. The main text describing the item.
13816	Description string `json:"description,omitempty"`
13817
13818	// Image: Optional. The image to display.
13819	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13820
13821	// Info: Required. Additional information about this option.
13822	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
13823
13824	// Title: Required. The title of the list item.
13825	Title string `json:"title,omitempty"`
13826
13827	// ForceSendFields is a list of field names (e.g. "Description") to
13828	// unconditionally include in API requests. By default, fields with
13829	// empty values are omitted from API requests. However, any non-pointer,
13830	// non-interface field appearing in ForceSendFields will be sent to the
13831	// server regardless of whether the field is empty or not. This may be
13832	// used to include empty fields in Patch requests.
13833	ForceSendFields []string `json:"-"`
13834
13835	// NullFields is a list of field names (e.g. "Description") to include
13836	// in API requests with the JSON null value. By default, fields with
13837	// empty values are omitted from API requests. However, any field with
13838	// an empty value appearing in NullFields will be sent to the server as
13839	// null. It is an error if a field in this list has a non-empty value.
13840	// This may be used to include null fields in Patch requests.
13841	NullFields []string `json:"-"`
13842}
13843
13844func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
13845	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
13846	raw := NoMethod(*s)
13847	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13848}
13849
13850// GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media
13851// content card for Actions on Google.
13852type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
13853	// MediaObjects: Required. List of media objects.
13854	MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
13855
13856	// MediaType: Optional. What type of media is the content (ie "audio").
13857	//
13858	// Possible values:
13859	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
13860	//   "AUDIO" - Response media type is audio.
13861	MediaType string `json:"mediaType,omitempty"`
13862
13863	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
13864	// unconditionally include in API requests. By default, fields with
13865	// empty values are omitted from API requests. However, any non-pointer,
13866	// non-interface field appearing in ForceSendFields will be sent to the
13867	// server regardless of whether the field is empty or not. This may be
13868	// used to include empty fields in Patch requests.
13869	ForceSendFields []string `json:"-"`
13870
13871	// NullFields is a list of field names (e.g. "MediaObjects") to include
13872	// in API requests with the JSON null value. By default, fields with
13873	// empty values are omitted from API requests. However, any field with
13874	// an empty value appearing in NullFields will be sent to the server as
13875	// null. It is an error if a field in this list has a non-empty value.
13876	// This may be used to include null fields in Patch requests.
13877	NullFields []string `json:"-"`
13878}
13879
13880func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
13881	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
13882	raw := NoMethod(*s)
13883	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13884}
13885
13886// GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObje
13887// ct: Response media object for media content card.
13888type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
13889	// ContentUrl: Required. Url where the media is stored.
13890	ContentUrl string `json:"contentUrl,omitempty"`
13891
13892	// Description: Optional. Description of media card.
13893	Description string `json:"description,omitempty"`
13894
13895	// Icon: Optional. Icon to display above media content.
13896	Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
13897
13898	// LargeImage: Optional. Image to display above media content.
13899	LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
13900
13901	// Name: Required. Name of media card.
13902	Name string `json:"name,omitempty"`
13903
13904	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
13905	// unconditionally include in API requests. By default, fields with
13906	// empty values are omitted from API requests. However, any non-pointer,
13907	// non-interface field appearing in ForceSendFields will be sent to the
13908	// server regardless of whether the field is empty or not. This may be
13909	// used to include empty fields in Patch requests.
13910	ForceSendFields []string `json:"-"`
13911
13912	// NullFields is a list of field names (e.g. "ContentUrl") to include in
13913	// API requests with the JSON null value. By default, fields with empty
13914	// values are omitted from API requests. However, any field with an
13915	// empty value appearing in NullFields will be sent to the server as
13916	// null. It is an error if a field in this list has a non-empty value.
13917	// This may be used to include null fields in Patch requests.
13918	NullFields []string `json:"-"`
13919}
13920
13921func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
13922	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
13923	raw := NoMethod(*s)
13924	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13925}
13926
13927// GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick
13928// replies response message.
13929type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
13930	// QuickReplies: Optional. The collection of quick replies.
13931	QuickReplies []string `json:"quickReplies,omitempty"`
13932
13933	// Title: Optional. The title of the collection of quick replies.
13934	Title string `json:"title,omitempty"`
13935
13936	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
13937	// unconditionally include in API requests. By default, fields with
13938	// empty values are omitted from API requests. However, any non-pointer,
13939	// non-interface field appearing in ForceSendFields will be sent to the
13940	// server regardless of whether the field is empty or not. This may be
13941	// used to include empty fields in Patch requests.
13942	ForceSendFields []string `json:"-"`
13943
13944	// NullFields is a list of field names (e.g. "QuickReplies") to include
13945	// in API requests with the JSON null value. By default, fields with
13946	// empty values are omitted from API requests. However, any field with
13947	// an empty value appearing in NullFields will be sent to the server as
13948	// null. It is an error if a field in this list has a non-empty value.
13949	// This may be used to include null fields in Patch requests.
13950	NullFields []string `json:"-"`
13951}
13952
13953func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
13954	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
13955	raw := NoMethod(*s)
13956	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13957}
13958
13959// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich
13960// Business Messaging (RBM) Card content
13961type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
13962	// Description: Optional. Description of the card (at most 2000 bytes).
13963	// At least one of the title, description or media must be set.
13964	Description string `json:"description,omitempty"`
13965
13966	// Media: Optional. However at least one of the title, description or
13967	// media must be set. Media (image, GIF or a video) to include in the
13968	// card.
13969	Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
13970
13971	// Suggestions: Optional. List of suggestions to include in the card.
13972	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
13973
13974	// Title: Optional. Title of the card (at most 200 bytes). At least one
13975	// of the title, description or media must be set.
13976	Title string `json:"title,omitempty"`
13977
13978	// ForceSendFields is a list of field names (e.g. "Description") to
13979	// unconditionally include in API requests. By default, fields with
13980	// empty values are omitted from API requests. However, any non-pointer,
13981	// non-interface field appearing in ForceSendFields will be sent to the
13982	// server regardless of whether the field is empty or not. This may be
13983	// used to include empty fields in Patch requests.
13984	ForceSendFields []string `json:"-"`
13985
13986	// NullFields is a list of field names (e.g. "Description") to include
13987	// in API requests with the JSON null value. By default, fields with
13988	// empty values are omitted from API requests. However, any field with
13989	// an empty value appearing in NullFields will be sent to the server as
13990	// null. It is an error if a field in this list has a non-empty value.
13991	// This may be used to include null fields in Patch requests.
13992	NullFields []string `json:"-"`
13993}
13994
13995func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
13996	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
13997	raw := NoMethod(*s)
13998	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13999}
14000
14001// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich
14002// Business Messaging (RBM) Media displayed in Cards The following
14003// media-types are currently supported: Image Types * image/jpeg *
14004// image/jpg' * image/gif * image/png Video Types * video/h263 *
14005// video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm
14006type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
14007	// FileUri: Required. Publicly reachable URI of the file. The RBM
14008	// platform determines the MIME type of the file from the content-type
14009	// field in the HTTP headers when the platform fetches the file. The
14010	// content-type field must be present and accurate in the HTTP response
14011	// from the URL.
14012	FileUri string `json:"fileUri,omitempty"`
14013
14014	// Height: Required for cards with vertical orientation. The height of
14015	// the media within a rich card with a vertical layout. For a standalone
14016	// card with horizontal layout, height is not customizable, and this
14017	// field is ignored.
14018	//
14019	// Possible values:
14020	//   "HEIGHT_UNSPECIFIED" - Not specified.
14021	//   "SHORT" - 112 DP.
14022	//   "MEDIUM" - 168 DP.
14023	//   "TALL" - 264 DP. Not available for rich card carousels when the
14024	// card width is set to small.
14025	Height string `json:"height,omitempty"`
14026
14027	// ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If
14028	// you don't provide a thumbnail URI, the RBM platform displays a blank
14029	// placeholder thumbnail until the user's device downloads the file.
14030	// Depending on the user's setting, the file may not download
14031	// automatically and may require the user to tap a download button.
14032	ThumbnailUri string `json:"thumbnailUri,omitempty"`
14033
14034	// ForceSendFields is a list of field names (e.g. "FileUri") to
14035	// unconditionally include in API requests. By default, fields with
14036	// empty values are omitted from API requests. However, any non-pointer,
14037	// non-interface field appearing in ForceSendFields will be sent to the
14038	// server regardless of whether the field is empty or not. This may be
14039	// used to include empty fields in Patch requests.
14040	ForceSendFields []string `json:"-"`
14041
14042	// NullFields is a list of field names (e.g. "FileUri") to include in
14043	// API requests with the JSON null value. By default, fields with empty
14044	// values are omitted from API requests. However, any field with an
14045	// empty value appearing in NullFields will be sent to the server as
14046	// null. It is an error if a field in this list has a non-empty value.
14047	// This may be used to include null fields in Patch requests.
14048	NullFields []string `json:"-"`
14049}
14050
14051func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
14052	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
14053	raw := NoMethod(*s)
14054	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14055}
14056
14057// GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel
14058// Rich Business Messaging (RBM) rich card. Rich cards allow you to
14059// respond to users with more vivid content, e.g. with media and
14060// suggestions. If you want to show a single card with more control over
14061// the layout, please use RbmStandaloneCard instead.
14062type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
14063	// CardContents: Required. The cards in the carousel. A carousel must
14064	// have at least 2 cards and at most 10.
14065	CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
14066
14067	// CardWidth: Required. The width of the cards in the carousel.
14068	//
14069	// Possible values:
14070	//   "CARD_WIDTH_UNSPECIFIED" - Not specified.
14071	//   "SMALL" - 120 DP. Note that tall media cannot be used.
14072	//   "MEDIUM" - 232 DP.
14073	CardWidth string `json:"cardWidth,omitempty"`
14074
14075	// ForceSendFields is a list of field names (e.g. "CardContents") to
14076	// unconditionally include in API requests. By default, fields with
14077	// empty values are omitted from API requests. However, any non-pointer,
14078	// non-interface field appearing in ForceSendFields will be sent to the
14079	// server regardless of whether the field is empty or not. This may be
14080	// used to include empty fields in Patch requests.
14081	ForceSendFields []string `json:"-"`
14082
14083	// NullFields is a list of field names (e.g. "CardContents") to include
14084	// in API requests with the JSON null value. By default, fields with
14085	// empty values are omitted from API requests. However, any field with
14086	// an empty value appearing in NullFields will be sent to the server as
14087	// null. It is an error if a field in this list has a non-empty value.
14088	// This may be used to include null fields in Patch requests.
14089	NullFields []string `json:"-"`
14090}
14091
14092func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
14093	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
14094	raw := NoMethod(*s)
14095	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14096}
14097
14098// GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard:
14099// Standalone Rich Business Messaging (RBM) rich card. Rich cards allow
14100// you to respond to users with more vivid content, e.g. with media and
14101// suggestions. You can group multiple rich cards into one using
14102// RbmCarouselCard but carousel cards will give you less control over
14103// the card layout.
14104type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
14105	// CardContent: Required. Card content.
14106	CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
14107
14108	// CardOrientation: Required. Orientation of the card.
14109	//
14110	// Possible values:
14111	//   "CARD_ORIENTATION_UNSPECIFIED" - Not specified.
14112	//   "HORIZONTAL" - Horizontal layout.
14113	//   "VERTICAL" - Vertical layout.
14114	CardOrientation string `json:"cardOrientation,omitempty"`
14115
14116	// ThumbnailImageAlignment: Required if orientation is horizontal. Image
14117	// preview alignment for standalone cards with horizontal layout.
14118	//
14119	// Possible values:
14120	//   "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified.
14121	//   "LEFT" - Thumbnail preview is left-aligned.
14122	//   "RIGHT" - Thumbnail preview is right-aligned.
14123	ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
14124
14125	// ForceSendFields is a list of field names (e.g. "CardContent") to
14126	// unconditionally include in API requests. By default, fields with
14127	// empty values are omitted from API requests. However, any non-pointer,
14128	// non-interface field appearing in ForceSendFields will be sent to the
14129	// server regardless of whether the field is empty or not. This may be
14130	// used to include empty fields in Patch requests.
14131	ForceSendFields []string `json:"-"`
14132
14133	// NullFields is a list of field names (e.g. "CardContent") to include
14134	// in API requests with the JSON null value. By default, fields with
14135	// empty values are omitted from API requests. However, any field with
14136	// an empty value appearing in NullFields will be sent to the server as
14137	// null. It is an error if a field in this list has a non-empty value.
14138	// This may be used to include null fields in Patch requests.
14139	NullFields []string `json:"-"`
14140}
14141
14142func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
14143	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
14144	raw := NoMethod(*s)
14145	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14146}
14147
14148// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich
14149// Business Messaging (RBM) suggested client-side action that the user
14150// can choose from the card.
14151type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
14152	// Dial: Suggested client side action: Dial a phone number
14153	Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
14154
14155	// OpenUrl: Suggested client side action: Open a URI on device
14156	OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
14157
14158	// PostbackData: Opaque payload that the Dialogflow receives in a user
14159	// event when the user taps the suggested action. This data will be also
14160	// forwarded to webhook to allow performing custom business logic.
14161	PostbackData string `json:"postbackData,omitempty"`
14162
14163	// ShareLocation: Suggested client side action: Share user location
14164	ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
14165
14166	// Text: Text to display alongside the action.
14167	Text string `json:"text,omitempty"`
14168
14169	// ForceSendFields is a list of field names (e.g. "Dial") to
14170	// unconditionally include in API requests. By default, fields with
14171	// empty values are omitted from API requests. However, any non-pointer,
14172	// non-interface field appearing in ForceSendFields will be sent to the
14173	// server regardless of whether the field is empty or not. This may be
14174	// used to include empty fields in Patch requests.
14175	ForceSendFields []string `json:"-"`
14176
14177	// NullFields is a list of field names (e.g. "Dial") to include in API
14178	// requests with the JSON null value. By default, fields with empty
14179	// values are omitted from API requests. However, any field with an
14180	// empty value appearing in NullFields will be sent to the server as
14181	// null. It is an error if a field in this list has a non-empty value.
14182	// This may be used to include null fields in Patch requests.
14183	NullFields []string `json:"-"`
14184}
14185
14186func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
14187	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
14188	raw := NoMethod(*s)
14189	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14190}
14191
14192// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
14193// dActionDial: Opens the user's default dialer app with the specified
14194// phone number but does not dial automatically.
14195type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
14196	// PhoneNumber: Required. The phone number to fill in the default dialer
14197	// app. This field should be in E.164
14198	// (https://en.wikipedia.org/wiki/E.164) format. An example of a
14199	// correctly formatted phone number: +15556767888.
14200	PhoneNumber string `json:"phoneNumber,omitempty"`
14201
14202	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
14203	// unconditionally include in API requests. By default, fields with
14204	// empty values are omitted from API requests. However, any non-pointer,
14205	// non-interface field appearing in ForceSendFields will be sent to the
14206	// server regardless of whether the field is empty or not. This may be
14207	// used to include empty fields in Patch requests.
14208	ForceSendFields []string `json:"-"`
14209
14210	// NullFields is a list of field names (e.g. "PhoneNumber") to include
14211	// in API requests with the JSON null value. By default, fields with
14212	// empty values are omitted from API requests. However, any field with
14213	// an empty value appearing in NullFields will be sent to the server as
14214	// null. It is an error if a field in this list has a non-empty value.
14215	// This may be used to include null fields in Patch requests.
14216	NullFields []string `json:"-"`
14217}
14218
14219func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
14220	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
14221	raw := NoMethod(*s)
14222	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14223}
14224
14225// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
14226// dActionOpenUri: Opens the user's default web browser app to the
14227// specified uri If the user has an app installed that is registered as
14228// the default handler for the URL, then this app will be opened
14229// instead, and its icon will be used in the suggested action UI.
14230type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
14231	// Uri: Required. The uri to open on the user device
14232	Uri string `json:"uri,omitempty"`
14233
14234	// ForceSendFields is a list of field names (e.g. "Uri") to
14235	// unconditionally include in API requests. By default, fields with
14236	// empty values are omitted from API requests. However, any non-pointer,
14237	// non-interface field appearing in ForceSendFields will be sent to the
14238	// server regardless of whether the field is empty or not. This may be
14239	// used to include empty fields in Patch requests.
14240	ForceSendFields []string `json:"-"`
14241
14242	// NullFields is a list of field names (e.g. "Uri") to include in API
14243	// requests with the JSON null value. By default, fields with empty
14244	// values are omitted from API requests. However, any field with an
14245	// empty value appearing in NullFields will be sent to the server as
14246	// null. It is an error if a field in this list has a non-empty value.
14247	// This may be used to include null fields in Patch requests.
14248	NullFields []string `json:"-"`
14249}
14250
14251func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
14252	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
14253	raw := NoMethod(*s)
14254	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14255}
14256
14257// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
14258// dActionShareLocation: Opens the device's location chooser so the user
14259// can pick a location to send back to the agent.
14260type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
14261}
14262
14263// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich
14264// Business Messaging (RBM) suggested reply that the user can click
14265// instead of typing in their own response.
14266type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
14267	// PostbackData: Opaque payload that the Dialogflow receives in a user
14268	// event when the user taps the suggested reply. This data will be also
14269	// forwarded to webhook to allow performing custom business logic.
14270	PostbackData string `json:"postbackData,omitempty"`
14271
14272	// Text: Suggested reply text.
14273	Text string `json:"text,omitempty"`
14274
14275	// ForceSendFields is a list of field names (e.g. "PostbackData") to
14276	// unconditionally include in API requests. By default, fields with
14277	// empty values are omitted from API requests. However, any non-pointer,
14278	// non-interface field appearing in ForceSendFields will be sent to the
14279	// server regardless of whether the field is empty or not. This may be
14280	// used to include empty fields in Patch requests.
14281	ForceSendFields []string `json:"-"`
14282
14283	// NullFields is a list of field names (e.g. "PostbackData") to include
14284	// in API requests with the JSON null value. By default, fields with
14285	// empty values are omitted from API requests. However, any field with
14286	// an empty value appearing in NullFields will be sent to the server as
14287	// null. It is an error if a field in this list has a non-empty value.
14288	// This may be used to include null fields in Patch requests.
14289	NullFields []string `json:"-"`
14290}
14291
14292func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
14293	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
14294	raw := NoMethod(*s)
14295	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14296}
14297
14298// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business
14299// Messaging (RBM) suggestion. Suggestions allow user to easily
14300// select/click a predefined response or perform an action (like opening
14301// a web uri).
14302type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
14303	// Action: Predefined client side actions that user can choose
14304	Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
14305
14306	// Reply: Predefined replies for user to select instead of typing
14307	Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
14308
14309	// ForceSendFields is a list of field names (e.g. "Action") to
14310	// unconditionally include in API requests. By default, fields with
14311	// empty values are omitted from API requests. However, any non-pointer,
14312	// non-interface field appearing in ForceSendFields will be sent to the
14313	// server regardless of whether the field is empty or not. This may be
14314	// used to include empty fields in Patch requests.
14315	ForceSendFields []string `json:"-"`
14316
14317	// NullFields is a list of field names (e.g. "Action") to include in API
14318	// requests with the JSON null value. By default, fields with empty
14319	// values are omitted from API requests. However, any field with an
14320	// empty value appearing in NullFields will be sent to the server as
14321	// null. It is an error if a field in this list has a non-empty value.
14322	// This may be used to include null fields in Patch requests.
14323	NullFields []string `json:"-"`
14324}
14325
14326func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
14327	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
14328	raw := NoMethod(*s)
14329	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14330}
14331
14332// GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business
14333// Messaging (RBM) text response with suggestions.
14334type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
14335	// RbmSuggestion: Optional. One or more suggestions to show to the user.
14336	RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
14337
14338	// Text: Required. Text sent and displayed to the user.
14339	Text string `json:"text,omitempty"`
14340
14341	// ForceSendFields is a list of field names (e.g. "RbmSuggestion") to
14342	// unconditionally include in API requests. By default, fields with
14343	// empty values are omitted from API requests. However, any non-pointer,
14344	// non-interface field appearing in ForceSendFields will be sent to the
14345	// server regardless of whether the field is empty or not. This may be
14346	// used to include empty fields in Patch requests.
14347	ForceSendFields []string `json:"-"`
14348
14349	// NullFields is a list of field names (e.g. "RbmSuggestion") to include
14350	// in API requests with the JSON null value. By default, fields with
14351	// empty values are omitted from API requests. However, any field with
14352	// an empty value appearing in NullFields will be sent to the server as
14353	// null. It is an error if a field in this list has a non-empty value.
14354	// This may be used to include null fields in Patch requests.
14355	NullFields []string `json:"-"`
14356}
14357
14358func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
14359	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
14360	raw := NoMethod(*s)
14361	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14362}
14363
14364// GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional
14365// info about the select item for when it is triggered in a dialog.
14366type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
14367	// Key: Required. A unique key that will be sent back to the agent if
14368	// this response is given.
14369	Key string `json:"key,omitempty"`
14370
14371	// Synonyms: Optional. A list of synonyms that can also be used to
14372	// trigger this item in dialog.
14373	Synonyms []string `json:"synonyms,omitempty"`
14374
14375	// ForceSendFields is a list of field names (e.g. "Key") to
14376	// unconditionally include in API requests. By default, fields with
14377	// empty values are omitted from API requests. However, any non-pointer,
14378	// non-interface field appearing in ForceSendFields will be sent to the
14379	// server regardless of whether the field is empty or not. This may be
14380	// used to include empty fields in Patch requests.
14381	ForceSendFields []string `json:"-"`
14382
14383	// NullFields is a list of field names (e.g. "Key") to include in API
14384	// requests with the JSON null value. By default, fields with empty
14385	// values are omitted from API requests. However, any field with an
14386	// empty value appearing in NullFields will be sent to the server as
14387	// null. It is an error if a field in this list has a non-empty value.
14388	// This may be used to include null fields in Patch requests.
14389	NullFields []string `json:"-"`
14390}
14391
14392func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
14393	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
14394	raw := NoMethod(*s)
14395	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14396}
14397
14398// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple
14399// response message containing speech or text.
14400type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
14401	// DisplayText: Optional. The text to display.
14402	DisplayText string `json:"displayText,omitempty"`
14403
14404	// Ssml: One of text_to_speech or ssml must be provided. Structured
14405	// spoken response to the user in the SSML format. Mutually exclusive
14406	// with text_to_speech.
14407	Ssml string `json:"ssml,omitempty"`
14408
14409	// TextToSpeech: One of text_to_speech or ssml must be provided. The
14410	// plain text of the speech output. Mutually exclusive with ssml.
14411	TextToSpeech string `json:"textToSpeech,omitempty"`
14412
14413	// ForceSendFields is a list of field names (e.g. "DisplayText") to
14414	// unconditionally include in API requests. By default, fields with
14415	// empty values are omitted from API requests. However, any non-pointer,
14416	// non-interface field appearing in ForceSendFields will be sent to the
14417	// server regardless of whether the field is empty or not. This may be
14418	// used to include empty fields in Patch requests.
14419	ForceSendFields []string `json:"-"`
14420
14421	// NullFields is a list of field names (e.g. "DisplayText") to include
14422	// in API requests with the JSON null value. By default, fields with
14423	// empty values are omitted from API requests. However, any field with
14424	// an empty value appearing in NullFields will be sent to the server as
14425	// null. It is an error if a field in this list has a non-empty value.
14426	// This may be used to include null fields in Patch requests.
14427	NullFields []string `json:"-"`
14428}
14429
14430func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
14431	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
14432	raw := NoMethod(*s)
14433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14434}
14435
14436// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The
14437// collection of simple response candidates. This message in
14438// `QueryResult.fulfillment_messages` and
14439// `WebhookResponse.fulfillment_messages` should contain only one
14440// `SimpleResponse`.
14441type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
14442	// SimpleResponses: Required. The list of simple responses.
14443	SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
14444
14445	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
14446	// unconditionally include in API requests. By default, fields with
14447	// empty values are omitted from API requests. However, any non-pointer,
14448	// non-interface field appearing in ForceSendFields will be sent to the
14449	// server regardless of whether the field is empty or not. This may be
14450	// used to include empty fields in Patch requests.
14451	ForceSendFields []string `json:"-"`
14452
14453	// NullFields is a list of field names (e.g. "SimpleResponses") to
14454	// include in API requests with the JSON null value. By default, fields
14455	// with empty values are omitted from API requests. However, any field
14456	// with an empty value appearing in NullFields will be sent to the
14457	// server as null. It is an error if a field in this list has a
14458	// non-empty value. This may be used to include null fields in Patch
14459	// requests.
14460	NullFields []string `json:"-"`
14461}
14462
14463func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
14464	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
14465	raw := NoMethod(*s)
14466	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14467}
14468
14469// GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion
14470// chip message that the user can tap to quickly post a reply to the
14471// conversation.
14472type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
14473	// Title: Required. The text shown the in the suggestion chip.
14474	Title string `json:"title,omitempty"`
14475
14476	// ForceSendFields is a list of field names (e.g. "Title") to
14477	// unconditionally include in API requests. By default, fields with
14478	// empty values are omitted from API requests. However, any non-pointer,
14479	// non-interface field appearing in ForceSendFields will be sent to the
14480	// server regardless of whether the field is empty or not. This may be
14481	// used to include empty fields in Patch requests.
14482	ForceSendFields []string `json:"-"`
14483
14484	// NullFields is a list of field names (e.g. "Title") to include in API
14485	// requests with the JSON null value. By default, fields with empty
14486	// values are omitted from API requests. However, any field with an
14487	// empty value appearing in NullFields will be sent to the server as
14488	// null. It is an error if a field in this list has a non-empty value.
14489	// This may be used to include null fields in Patch requests.
14490	NullFields []string `json:"-"`
14491}
14492
14493func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
14494	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
14495	raw := NoMethod(*s)
14496	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14497}
14498
14499// GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection
14500// of suggestions.
14501type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
14502	// Suggestions: Required. The list of suggested replies.
14503	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
14504
14505	// ForceSendFields is a list of field names (e.g. "Suggestions") to
14506	// unconditionally include in API requests. By default, fields with
14507	// empty values are omitted from API requests. However, any non-pointer,
14508	// non-interface field appearing in ForceSendFields will be sent to the
14509	// server regardless of whether the field is empty or not. This may be
14510	// used to include empty fields in Patch requests.
14511	ForceSendFields []string `json:"-"`
14512
14513	// NullFields is a list of field names (e.g. "Suggestions") to include
14514	// in API requests with the JSON null value. By default, fields with
14515	// empty values are omitted from API requests. However, any field with
14516	// an empty value appearing in NullFields will be sent to the server as
14517	// null. It is an error if a field in this list has a non-empty value.
14518	// This may be used to include null fields in Patch requests.
14519	NullFields []string `json:"-"`
14520}
14521
14522func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
14523	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
14524	raw := NoMethod(*s)
14525	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14526}
14527
14528// GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for
14529// Actions on Google.
14530type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
14531	// Buttons: Optional. List of buttons for the card.
14532	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
14533
14534	// ColumnProperties: Optional. Display properties for the columns in
14535	// this table.
14536	ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
14537
14538	// Image: Optional. Image which should be displayed on the card.
14539	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14540
14541	// Rows: Optional. Rows in this table of data.
14542	Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
14543
14544	// Subtitle: Optional. Subtitle to the title.
14545	Subtitle string `json:"subtitle,omitempty"`
14546
14547	// Title: Required. Title of the card.
14548	Title string `json:"title,omitempty"`
14549
14550	// ForceSendFields is a list of field names (e.g. "Buttons") to
14551	// unconditionally include in API requests. By default, fields with
14552	// empty values are omitted from API requests. However, any non-pointer,
14553	// non-interface field appearing in ForceSendFields will be sent to the
14554	// server regardless of whether the field is empty or not. This may be
14555	// used to include empty fields in Patch requests.
14556	ForceSendFields []string `json:"-"`
14557
14558	// NullFields is a list of field names (e.g. "Buttons") to include in
14559	// API requests with the JSON null value. By default, fields with empty
14560	// values are omitted from API requests. However, any field with an
14561	// empty value appearing in NullFields will be sent to the server as
14562	// null. It is an error if a field in this list has a non-empty value.
14563	// This may be used to include null fields in Patch requests.
14564	NullFields []string `json:"-"`
14565}
14566
14567func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
14568	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
14569	raw := NoMethod(*s)
14570	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14571}
14572
14573// GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of
14574// TableCardRow.
14575type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
14576	// Text: Required. Text in this cell.
14577	Text string `json:"text,omitempty"`
14578
14579	// ForceSendFields is a list of field names (e.g. "Text") to
14580	// unconditionally include in API requests. By default, fields with
14581	// empty values are omitted from API requests. However, any non-pointer,
14582	// non-interface field appearing in ForceSendFields will be sent to the
14583	// server regardless of whether the field is empty or not. This may be
14584	// used to include empty fields in Patch requests.
14585	ForceSendFields []string `json:"-"`
14586
14587	// NullFields is a list of field names (e.g. "Text") to include in API
14588	// requests with the JSON null value. By default, fields with empty
14589	// values are omitted from API requests. However, any field with an
14590	// empty value appearing in NullFields will be sent to the server as
14591	// null. It is an error if a field in this list has a non-empty value.
14592	// This may be used to include null fields in Patch requests.
14593	NullFields []string `json:"-"`
14594}
14595
14596func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
14597	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
14598	raw := NoMethod(*s)
14599	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14600}
14601
14602// GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of
14603// TableCard.
14604type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
14605	// Cells: Optional. List of cells that make up this row.
14606	Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
14607
14608	// DividerAfter: Optional. Whether to add a visual divider after this
14609	// row.
14610	DividerAfter bool `json:"dividerAfter,omitempty"`
14611
14612	// ForceSendFields is a list of field names (e.g. "Cells") to
14613	// unconditionally include in API requests. By default, fields with
14614	// empty values are omitted from API requests. However, any non-pointer,
14615	// non-interface field appearing in ForceSendFields will be sent to the
14616	// server regardless of whether the field is empty or not. This may be
14617	// used to include empty fields in Patch requests.
14618	ForceSendFields []string `json:"-"`
14619
14620	// NullFields is a list of field names (e.g. "Cells") to include in API
14621	// requests with the JSON null value. By default, fields with empty
14622	// values are omitted from API requests. However, any field with an
14623	// empty value appearing in NullFields will be sent to the server as
14624	// null. It is an error if a field in this list has a non-empty value.
14625	// This may be used to include null fields in Patch requests.
14626	NullFields []string `json:"-"`
14627}
14628
14629func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
14630	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
14631	raw := NoMethod(*s)
14632	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14633}
14634
14635// GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays
14636// audio from a file in Telephony Gateway.
14637type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
14638	// AudioUri: Required. URI to a Google Cloud Storage object containing
14639	// the audio to play, e.g., "gs://bucket/object". The object must
14640	// contain a single channel (mono) of linear PCM audio (2 bytes /
14641	// sample) at 8kHz. This object must be readable by the
14642	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
14643	// where is the number of the Telephony Gateway project (usually the
14644	// same as the Dialogflow agent project). If the Google Cloud Storage
14645	// bucket is in the Telephony Gateway project, this permission is added
14646	// by default when enabling the Dialogflow V2 API. For audio from other
14647	// sources, consider using the `TelephonySynthesizeSpeech` message with
14648	// SSML.
14649	AudioUri string `json:"audioUri,omitempty"`
14650
14651	// ForceSendFields is a list of field names (e.g. "AudioUri") to
14652	// unconditionally include in API requests. By default, fields with
14653	// empty values are omitted from API requests. However, any non-pointer,
14654	// non-interface field appearing in ForceSendFields will be sent to the
14655	// server regardless of whether the field is empty or not. This may be
14656	// used to include empty fields in Patch requests.
14657	ForceSendFields []string `json:"-"`
14658
14659	// NullFields is a list of field names (e.g. "AudioUri") to include in
14660	// API requests with the JSON null value. By default, fields with empty
14661	// values are omitted from API requests. However, any field with an
14662	// empty value appearing in NullFields will be sent to the server as
14663	// null. It is an error if a field in this list has a non-empty value.
14664	// This may be used to include null fields in Patch requests.
14665	NullFields []string `json:"-"`
14666}
14667
14668func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
14669	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
14670	raw := NoMethod(*s)
14671	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14672}
14673
14674// GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech:
14675// Synthesizes speech and plays back the synthesized audio to the caller
14676// in Telephony Gateway. Telephony Gateway takes the synthesizer
14677// settings from `DetectIntentResponse.output_audio_config` which can
14678// either be set at request-level or can come from the agent-level
14679// synthesizer config.
14680type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
14681	// Ssml: The SSML to be synthesized. For more information, see SSML
14682	// (https://developers.google.com/actions/reference/ssml).
14683	Ssml string `json:"ssml,omitempty"`
14684
14685	// Text: The raw text to be synthesized.
14686	Text string `json:"text,omitempty"`
14687
14688	// ForceSendFields is a list of field names (e.g. "Ssml") to
14689	// unconditionally include in API requests. By default, fields with
14690	// empty values are omitted from API requests. However, any non-pointer,
14691	// non-interface field appearing in ForceSendFields will be sent to the
14692	// server regardless of whether the field is empty or not. This may be
14693	// used to include empty fields in Patch requests.
14694	ForceSendFields []string `json:"-"`
14695
14696	// NullFields is a list of field names (e.g. "Ssml") to include in API
14697	// requests with the JSON null value. By default, fields with empty
14698	// values are omitted from API requests. However, any field with an
14699	// empty value appearing in NullFields will be sent to the server as
14700	// null. It is an error if a field in this list has a non-empty value.
14701	// This may be used to include null fields in Patch requests.
14702	NullFields []string `json:"-"`
14703}
14704
14705func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
14706	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
14707	raw := NoMethod(*s)
14708	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14709}
14710
14711// GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall:
14712// Transfers the call in Telephony Gateway.
14713type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
14714	// PhoneNumber: Required. The phone number to transfer the call to in
14715	// E.164 format (https://en.wikipedia.org/wiki/E.164). We currently only
14716	// allow transferring to US numbers (+1xxxyyyzzzz).
14717	PhoneNumber string `json:"phoneNumber,omitempty"`
14718
14719	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
14720	// unconditionally include in API requests. By default, fields with
14721	// empty values are omitted from API requests. However, any non-pointer,
14722	// non-interface field appearing in ForceSendFields will be sent to the
14723	// server regardless of whether the field is empty or not. This may be
14724	// used to include empty fields in Patch requests.
14725	ForceSendFields []string `json:"-"`
14726
14727	// NullFields is a list of field names (e.g. "PhoneNumber") to include
14728	// in API requests with the JSON null value. By default, fields with
14729	// empty values are omitted from API requests. However, any field with
14730	// an empty value appearing in NullFields will be sent to the server as
14731	// null. It is an error if a field in this list has a non-empty value.
14732	// This may be used to include null fields in Patch requests.
14733	NullFields []string `json:"-"`
14734}
14735
14736func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
14737	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
14738	raw := NoMethod(*s)
14739	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14740}
14741
14742// GoogleCloudDialogflowV2beta1IntentMessageText: The text response
14743// message.
14744type GoogleCloudDialogflowV2beta1IntentMessageText struct {
14745	// Text: Optional. The collection of the agent's responses.
14746	Text []string `json:"text,omitempty"`
14747
14748	// ForceSendFields is a list of field names (e.g. "Text") to
14749	// unconditionally include in API requests. By default, fields with
14750	// empty values are omitted from API requests. However, any non-pointer,
14751	// non-interface field appearing in ForceSendFields will be sent to the
14752	// server regardless of whether the field is empty or not. This may be
14753	// used to include empty fields in Patch requests.
14754	ForceSendFields []string `json:"-"`
14755
14756	// NullFields is a list of field names (e.g. "Text") to include in API
14757	// requests with the JSON null value. By default, fields with empty
14758	// values are omitted from API requests. However, any field with an
14759	// empty value appearing in NullFields will be sent to the server as
14760	// null. It is an error if a field in this list has a non-empty value.
14761	// This may be used to include null fields in Patch requests.
14762	NullFields []string `json:"-"`
14763}
14764
14765func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
14766	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
14767	raw := NoMethod(*s)
14768	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14769}
14770
14771// GoogleCloudDialogflowV2beta1IntentParameter: Represents intent
14772// parameters.
14773type GoogleCloudDialogflowV2beta1IntentParameter struct {
14774	// DefaultValue: Optional. The default value to use when the `value`
14775	// yields an empty result. Default values can be extracted from contexts
14776	// by using the following syntax: `#context_name.parameter_name`.
14777	DefaultValue string `json:"defaultValue,omitempty"`
14778
14779	// DisplayName: Required. The name of the parameter.
14780	DisplayName string `json:"displayName,omitempty"`
14781
14782	// EntityTypeDisplayName: Optional. The name of the entity type,
14783	// prefixed with `@`, that describes values of the parameter. If the
14784	// parameter is required, this must be provided.
14785	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
14786
14787	// IsList: Optional. Indicates whether the parameter represents a list
14788	// of values.
14789	IsList bool `json:"isList,omitempty"`
14790
14791	// Mandatory: Optional. Indicates whether the parameter is required.
14792	// That is, whether the intent cannot be completed without collecting
14793	// the parameter value.
14794	Mandatory bool `json:"mandatory,omitempty"`
14795
14796	// Name: The unique identifier of this parameter.
14797	Name string `json:"name,omitempty"`
14798
14799	// Prompts: Optional. The collection of prompts that the agent can
14800	// present to the user in order to collect a value for the parameter.
14801	Prompts []string `json:"prompts,omitempty"`
14802
14803	// Value: Optional. The definition of the parameter value. It can be: -
14804	// a constant string, - a parameter value defined as `$parameter_name`,
14805	// - an original parameter value defined as `$parameter_name.original`,
14806	// - a parameter value from some context defined as
14807	// `#context_name.parameter_name`.
14808	Value string `json:"value,omitempty"`
14809
14810	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
14811	// unconditionally include in API requests. By default, fields with
14812	// empty values are omitted from API requests. However, any non-pointer,
14813	// non-interface field appearing in ForceSendFields will be sent to the
14814	// server regardless of whether the field is empty or not. This may be
14815	// used to include empty fields in Patch requests.
14816	ForceSendFields []string `json:"-"`
14817
14818	// NullFields is a list of field names (e.g. "DefaultValue") to include
14819	// in API requests with the JSON null value. By default, fields with
14820	// empty values are omitted from API requests. However, any field with
14821	// an empty value appearing in NullFields will be sent to the server as
14822	// null. It is an error if a field in this list has a non-empty value.
14823	// This may be used to include null fields in Patch requests.
14824	NullFields []string `json:"-"`
14825}
14826
14827func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
14828	type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
14829	raw := NoMethod(*s)
14830	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14831}
14832
14833// GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an
14834// example that the agent is trained on.
14835type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
14836	// Name: Output only. The unique identifier of this training phrase.
14837	Name string `json:"name,omitempty"`
14838
14839	// Parts: Required. The ordered list of training phrase parts. The parts
14840	// are concatenated in order to form the training phrase. Note: The API
14841	// does not automatically annotate training phrases like the Dialogflow
14842	// Console does. Note: Do not forget to include whitespace at part
14843	// boundaries, so the training phrase is well formatted when the parts
14844	// are concatenated. If the training phrase does not need to be
14845	// annotated with parameters, you just need a single part with only the
14846	// Part.text field set. If you want to annotate the training phrase, you
14847	// must create multiple parts, where the fields of each part are
14848	// populated in one of two ways: - `Part.text` is set to a part of the
14849	// phrase that has no parameters. - `Part.text` is set to a part of the
14850	// phrase that you want to annotate, and the `entity_type`, `alias`, and
14851	// `user_defined` fields are all set.
14852	Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
14853
14854	// TimesAddedCount: Optional. Indicates how many times this example was
14855	// added to the intent. Each time a developer adds an existing sample by
14856	// editing an intent or training, this counter is increased.
14857	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
14858
14859	// Type: Required. The type of the training phrase.
14860	//
14861	// Possible values:
14862	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be
14863	// used.
14864	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names,
14865	// but example parts can be annotated with entity types.
14866	//   "TEMPLATE" - Templates are not annotated with entity types, but
14867	// they can contain @-prefixed entity type names as substrings. Template
14868	// mode has been deprecated. Example mode is the only supported way to
14869	// create new training phrases. If you have existing training phrases
14870	// that you've created in template mode, those will continue to work.
14871	Type string `json:"type,omitempty"`
14872
14873	// ForceSendFields is a list of field names (e.g. "Name") to
14874	// unconditionally include in API requests. By default, fields with
14875	// empty values are omitted from API requests. However, any non-pointer,
14876	// non-interface field appearing in ForceSendFields will be sent to the
14877	// server regardless of whether the field is empty or not. This may be
14878	// used to include empty fields in Patch requests.
14879	ForceSendFields []string `json:"-"`
14880
14881	// NullFields is a list of field names (e.g. "Name") to include in API
14882	// requests with the JSON null value. By default, fields with empty
14883	// values are omitted from API requests. However, any field with an
14884	// empty value appearing in NullFields will be sent to the server as
14885	// null. It is an error if a field in this list has a non-empty value.
14886	// This may be used to include null fields in Patch requests.
14887	NullFields []string `json:"-"`
14888}
14889
14890func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
14891	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
14892	raw := NoMethod(*s)
14893	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14894}
14895
14896// GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a
14897// part of a training phrase.
14898type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
14899	// Alias: Optional. The parameter name for the value extracted from the
14900	// annotated part of the example. This field is required for annotated
14901	// parts of the training phrase.
14902	Alias string `json:"alias,omitempty"`
14903
14904	// EntityType: Optional. The entity type name prefixed with `@`. This
14905	// field is required for annotated parts of the training phrase.
14906	EntityType string `json:"entityType,omitempty"`
14907
14908	// Text: Required. The text for this part.
14909	Text string `json:"text,omitempty"`
14910
14911	// UserDefined: Optional. Indicates whether the text was manually
14912	// annotated. This field is set to true when the Dialogflow Console is
14913	// used to manually annotate the part. When creating an annotated part
14914	// with the API, you must set this to true.
14915	UserDefined bool `json:"userDefined,omitempty"`
14916
14917	// ForceSendFields is a list of field names (e.g. "Alias") to
14918	// unconditionally include in API requests. By default, fields with
14919	// empty values are omitted from API requests. However, any non-pointer,
14920	// non-interface field appearing in ForceSendFields will be sent to the
14921	// server regardless of whether the field is empty or not. This may be
14922	// used to include empty fields in Patch requests.
14923	ForceSendFields []string `json:"-"`
14924
14925	// NullFields is a list of field names (e.g. "Alias") to include in API
14926	// requests with the JSON null value. By default, fields with empty
14927	// values are omitted from API requests. However, any field with an
14928	// empty value appearing in NullFields will be sent to the server as
14929	// null. It is an error if a field in this list has a non-empty value.
14930	// This may be used to include null fields in Patch requests.
14931	NullFields []string `json:"-"`
14932}
14933
14934func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
14935	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
14936	raw := NoMethod(*s)
14937	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14938}
14939
14940// GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result
14941// of querying a Knowledge base.
14942type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
14943	// Answers: A list of answers from Knowledge Connector.
14944	Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
14945
14946	// ForceSendFields is a list of field names (e.g. "Answers") to
14947	// unconditionally include in API requests. By default, fields with
14948	// empty values are omitted from API requests. However, any non-pointer,
14949	// non-interface field appearing in ForceSendFields will be sent to the
14950	// server regardless of whether the field is empty or not. This may be
14951	// used to include empty fields in Patch requests.
14952	ForceSendFields []string `json:"-"`
14953
14954	// NullFields is a list of field names (e.g. "Answers") to include in
14955	// API requests with the JSON null value. By default, fields with empty
14956	// values are omitted from API requests. However, any field with an
14957	// empty value appearing in NullFields will be sent to the server as
14958	// null. It is an error if a field in this list has a non-empty value.
14959	// This may be used to include null fields in Patch requests.
14960	NullFields []string `json:"-"`
14961}
14962
14963func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
14964	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
14965	raw := NoMethod(*s)
14966	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14967}
14968
14969// GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from
14970// Knowledge Connector.
14971type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
14972	// Answer: The piece of text from the `source` knowledge base document
14973	// that answers this conversational query.
14974	Answer string `json:"answer,omitempty"`
14975
14976	// FaqQuestion: The corresponding FAQ question if the answer was
14977	// extracted from a FAQ Document, empty otherwise.
14978	FaqQuestion string `json:"faqQuestion,omitempty"`
14979
14980	// MatchConfidence: The system's confidence score that this Knowledge
14981	// answer is a good match for this conversational query. The range is
14982	// from 0.0 (completely uncertain) to 1.0 (completely certain). Note:
14983	// The confidence score is likely to vary somewhat (possibly even for
14984	// identical requests), as the underlying model is under constant
14985	// improvement. It may be deprecated in the future. We recommend using
14986	// `match_confidence_level` which should be generally more stable.
14987	MatchConfidence float64 `json:"matchConfidence,omitempty"`
14988
14989	// MatchConfidenceLevel: The system's confidence level that this
14990	// knowledge answer is a good match for this conversational query. NOTE:
14991	// The confidence level for a given `` pair may change without notice,
14992	// as it depends on models that are constantly being improved. However,
14993	// it will change less frequently than the confidence score below, and
14994	// should be preferred for referencing the quality of an answer.
14995	//
14996	// Possible values:
14997	//   "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified.
14998	//   "LOW" - Indicates that the confidence is low.
14999	//   "MEDIUM" - Indicates our confidence is medium.
15000	//   "HIGH" - Indicates our confidence is high.
15001	MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
15002
15003	// Source: Indicates which Knowledge Document this answer was extracted
15004	// from. Format: `projects//knowledgeBases//documents/`.
15005	Source string `json:"source,omitempty"`
15006
15007	// ForceSendFields is a list of field names (e.g. "Answer") to
15008	// unconditionally include in API requests. By default, fields with
15009	// empty values are omitted from API requests. However, any non-pointer,
15010	// non-interface field appearing in ForceSendFields will be sent to the
15011	// server regardless of whether the field is empty or not. This may be
15012	// used to include empty fields in Patch requests.
15013	ForceSendFields []string `json:"-"`
15014
15015	// NullFields is a list of field names (e.g. "Answer") to include in API
15016	// requests with the JSON null value. By default, fields with empty
15017	// values are omitted from API requests. However, any field with an
15018	// empty value appearing in NullFields will be sent to the server as
15019	// null. It is an error if a field in this list has a non-empty value.
15020	// This may be used to include null fields in Patch requests.
15021	NullFields []string `json:"-"`
15022}
15023
15024func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
15025	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
15026	raw := NoMethod(*s)
15027	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15028}
15029
15030func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
15031	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
15032	var s1 struct {
15033		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
15034		*NoMethod
15035	}
15036	s1.NoMethod = (*NoMethod)(s)
15037	if err := json.Unmarshal(data, &s1); err != nil {
15038		return err
15039	}
15040	s.MatchConfidence = float64(s1.MatchConfidence)
15041	return nil
15042}
15043
15044// GoogleCloudDialogflowV2beta1KnowledgeBase: A knowledge base
15045// represents a collection of knowledge documents that you provide to
15046// Dialogflow. Your knowledge documents contain information that may be
15047// useful during conversations with end-users. Some Dialogflow features
15048// use knowledge bases when looking for a response to an end-user input.
15049// For more information, see the knowledge base guide
15050// (https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note:
15051// The `projects.agent.knowledgeBases` resource is deprecated; only use
15052// `projects.knowledgeBases`.
15053type GoogleCloudDialogflowV2beta1KnowledgeBase struct {
15054	// DisplayName: Required. The display name of the knowledge base. The
15055	// name must be 1024 bytes or less; otherwise, the creation request
15056	// fails.
15057	DisplayName string `json:"displayName,omitempty"`
15058
15059	// LanguageCode: Language which represents the KnowledgeBase. When the
15060	// KnowledgeBase is created/updated, this is populated for all non en-us
15061	// languages. If not populated, the default language en-us applies.
15062	LanguageCode string `json:"languageCode,omitempty"`
15063
15064	// Name: The knowledge base resource name. The name must be empty when
15065	// creating a knowledge base. Format:
15066	// `projects//locations//knowledgeBases/`.
15067	Name string `json:"name,omitempty"`
15068
15069	// ServerResponse contains the HTTP response code and headers from the
15070	// server.
15071	googleapi.ServerResponse `json:"-"`
15072
15073	// ForceSendFields is a list of field names (e.g. "DisplayName") to
15074	// unconditionally include in API requests. By default, fields with
15075	// empty values are omitted from API requests. However, any non-pointer,
15076	// non-interface field appearing in ForceSendFields will be sent to the
15077	// server regardless of whether the field is empty or not. This may be
15078	// used to include empty fields in Patch requests.
15079	ForceSendFields []string `json:"-"`
15080
15081	// NullFields is a list of field names (e.g. "DisplayName") to include
15082	// in API requests with the JSON null value. By default, fields with
15083	// empty values are omitted from API requests. However, any field with
15084	// an empty value appearing in NullFields will be sent to the server as
15085	// null. It is an error if a field in this list has a non-empty value.
15086	// This may be used to include null fields in Patch requests.
15087	NullFields []string `json:"-"`
15088}
15089
15090func (s *GoogleCloudDialogflowV2beta1KnowledgeBase) MarshalJSON() ([]byte, error) {
15091	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeBase
15092	raw := NoMethod(*s)
15093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15094}
15095
15096// GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in
15097// google::longrunning::Operation for Knowledge operations.
15098type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
15099	// State: Required. Output only. The current state of this operation.
15100	//
15101	// Possible values:
15102	//   "STATE_UNSPECIFIED" - State unspecified.
15103	//   "PENDING" - The operation has been created.
15104	//   "RUNNING" - The operation is currently running.
15105	//   "DONE" - The operation is done, either cancelled or completed.
15106	State string `json:"state,omitempty"`
15107
15108	// ForceSendFields is a list of field names (e.g. "State") to
15109	// unconditionally include in API requests. By default, fields with
15110	// empty values are omitted from API requests. However, any non-pointer,
15111	// non-interface field appearing in ForceSendFields will be sent to the
15112	// server regardless of whether the field is empty or not. This may be
15113	// used to include empty fields in Patch requests.
15114	ForceSendFields []string `json:"-"`
15115
15116	// NullFields is a list of field names (e.g. "State") to include in API
15117	// requests with the JSON null value. By default, fields with empty
15118	// values are omitted from API requests. However, any field with an
15119	// empty value appearing in NullFields will be sent to the server as
15120	// null. It is an error if a field in this list has a non-empty value.
15121	// This may be used to include null fields in Patch requests.
15122	NullFields []string `json:"-"`
15123}
15124
15125func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
15126	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
15127	raw := NoMethod(*s)
15128	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15129}
15130
15131// GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse: Response
15132// message for AnswerRecords.ListAnswerRecords.
15133type GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse struct {
15134	// AnswerRecords: The list of answer records.
15135	AnswerRecords []*GoogleCloudDialogflowV2beta1AnswerRecord `json:"answerRecords,omitempty"`
15136
15137	// NextPageToken: A token to retrieve next page of results. Or empty if
15138	// there are no more results. Pass this value in the
15139	// ListAnswerRecordsRequest.page_token field in the subsequent call to
15140	// `ListAnswerRecords` method to retrieve the next page of results.
15141	NextPageToken string `json:"nextPageToken,omitempty"`
15142
15143	// ServerResponse contains the HTTP response code and headers from the
15144	// server.
15145	googleapi.ServerResponse `json:"-"`
15146
15147	// ForceSendFields is a list of field names (e.g. "AnswerRecords") to
15148	// unconditionally include in API requests. By default, fields with
15149	// empty values are omitted from API requests. However, any non-pointer,
15150	// non-interface field appearing in ForceSendFields will be sent to the
15151	// server regardless of whether the field is empty or not. This may be
15152	// used to include empty fields in Patch requests.
15153	ForceSendFields []string `json:"-"`
15154
15155	// NullFields is a list of field names (e.g. "AnswerRecords") to include
15156	// in API requests with the JSON null value. By default, fields with
15157	// empty values are omitted from API requests. However, any field with
15158	// an empty value appearing in NullFields will be sent to the server as
15159	// null. It is an error if a field in this list has a non-empty value.
15160	// This may be used to include null fields in Patch requests.
15161	NullFields []string `json:"-"`
15162}
15163
15164func (s *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) MarshalJSON() ([]byte, error) {
15165	type NoMethod GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
15166	raw := NoMethod(*s)
15167	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15168}
15169
15170// GoogleCloudDialogflowV2beta1ListContextsResponse: The response
15171// message for Contexts.ListContexts.
15172type GoogleCloudDialogflowV2beta1ListContextsResponse struct {
15173	// Contexts: The list of contexts. There will be a maximum number of
15174	// items returned based on the page_size field in the request.
15175	Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
15176
15177	// NextPageToken: Token to retrieve the next page of results, or empty
15178	// if there are no more results in the list.
15179	NextPageToken string `json:"nextPageToken,omitempty"`
15180
15181	// ServerResponse contains the HTTP response code and headers from the
15182	// server.
15183	googleapi.ServerResponse `json:"-"`
15184
15185	// ForceSendFields is a list of field names (e.g. "Contexts") to
15186	// unconditionally include in API requests. By default, fields with
15187	// empty values are omitted from API requests. However, any non-pointer,
15188	// non-interface field appearing in ForceSendFields will be sent to the
15189	// server regardless of whether the field is empty or not. This may be
15190	// used to include empty fields in Patch requests.
15191	ForceSendFields []string `json:"-"`
15192
15193	// NullFields is a list of field names (e.g. "Contexts") to include in
15194	// API requests with the JSON null value. By default, fields with empty
15195	// values are omitted from API requests. However, any field with an
15196	// empty value appearing in NullFields will be sent to the server as
15197	// null. It is an error if a field in this list has a non-empty value.
15198	// This may be used to include null fields in Patch requests.
15199	NullFields []string `json:"-"`
15200}
15201
15202func (s *GoogleCloudDialogflowV2beta1ListContextsResponse) MarshalJSON() ([]byte, error) {
15203	type NoMethod GoogleCloudDialogflowV2beta1ListContextsResponse
15204	raw := NoMethod(*s)
15205	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15206}
15207
15208// GoogleCloudDialogflowV2beta1ListConversationProfilesResponse: The
15209// response message for ConversationProfiles.ListConversationProfiles.
15210type GoogleCloudDialogflowV2beta1ListConversationProfilesResponse struct {
15211	// ConversationProfiles: The list of project conversation profiles.
15212	// There is a maximum number of items returned based on the page_size
15213	// field in the request.
15214	ConversationProfiles []*GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfiles,omitempty"`
15215
15216	// NextPageToken: Token to retrieve the next page of results, or empty
15217	// if there are no more results in the list.
15218	NextPageToken string `json:"nextPageToken,omitempty"`
15219
15220	// ServerResponse contains the HTTP response code and headers from the
15221	// server.
15222	googleapi.ServerResponse `json:"-"`
15223
15224	// ForceSendFields is a list of field names (e.g.
15225	// "ConversationProfiles") to unconditionally include in API requests.
15226	// By default, fields with empty values are omitted from API requests.
15227	// However, any non-pointer, non-interface field appearing in
15228	// ForceSendFields will be sent to the server regardless of whether the
15229	// field is empty or not. This may be used to include empty fields in
15230	// Patch requests.
15231	ForceSendFields []string `json:"-"`
15232
15233	// NullFields is a list of field names (e.g. "ConversationProfiles") to
15234	// include in API requests with the JSON null value. By default, fields
15235	// with empty values are omitted from API requests. However, any field
15236	// with an empty value appearing in NullFields will be sent to the
15237	// server as null. It is an error if a field in this list has a
15238	// non-empty value. This may be used to include null fields in Patch
15239	// requests.
15240	NullFields []string `json:"-"`
15241}
15242
15243func (s *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) MarshalJSON() ([]byte, error) {
15244	type NoMethod GoogleCloudDialogflowV2beta1ListConversationProfilesResponse
15245	raw := NoMethod(*s)
15246	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15247}
15248
15249// GoogleCloudDialogflowV2beta1ListConversationsResponse: The response
15250// message for Conversations.ListConversations.
15251type GoogleCloudDialogflowV2beta1ListConversationsResponse struct {
15252	// Conversations: The list of conversations. There will be a maximum
15253	// number of items returned based on the page_size field in the request.
15254	Conversations []*GoogleCloudDialogflowV2beta1Conversation `json:"conversations,omitempty"`
15255
15256	// NextPageToken: Token to retrieve the next page of results, or empty
15257	// if there are no more results in the list.
15258	NextPageToken string `json:"nextPageToken,omitempty"`
15259
15260	// ServerResponse contains the HTTP response code and headers from the
15261	// server.
15262	googleapi.ServerResponse `json:"-"`
15263
15264	// ForceSendFields is a list of field names (e.g. "Conversations") to
15265	// unconditionally include in API requests. By default, fields with
15266	// empty values are omitted from API requests. However, any non-pointer,
15267	// non-interface field appearing in ForceSendFields will be sent to the
15268	// server regardless of whether the field is empty or not. This may be
15269	// used to include empty fields in Patch requests.
15270	ForceSendFields []string `json:"-"`
15271
15272	// NullFields is a list of field names (e.g. "Conversations") to include
15273	// in API requests with the JSON null value. By default, fields with
15274	// empty values are omitted from API requests. However, any field with
15275	// an empty value appearing in NullFields will be sent to the server as
15276	// null. It is an error if a field in this list has a non-empty value.
15277	// This may be used to include null fields in Patch requests.
15278	NullFields []string `json:"-"`
15279}
15280
15281func (s *GoogleCloudDialogflowV2beta1ListConversationsResponse) MarshalJSON() ([]byte, error) {
15282	type NoMethod GoogleCloudDialogflowV2beta1ListConversationsResponse
15283	raw := NoMethod(*s)
15284	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15285}
15286
15287// GoogleCloudDialogflowV2beta1ListDocumentsResponse: Response message
15288// for Documents.ListDocuments.
15289type GoogleCloudDialogflowV2beta1ListDocumentsResponse struct {
15290	// Documents: The list of documents.
15291	Documents []*GoogleCloudDialogflowV2beta1Document `json:"documents,omitempty"`
15292
15293	// NextPageToken: Token to retrieve the next page of results, or empty
15294	// if there are no more results in the list.
15295	NextPageToken string `json:"nextPageToken,omitempty"`
15296
15297	// ServerResponse contains the HTTP response code and headers from the
15298	// server.
15299	googleapi.ServerResponse `json:"-"`
15300
15301	// ForceSendFields is a list of field names (e.g. "Documents") to
15302	// unconditionally include in API requests. By default, fields with
15303	// empty values are omitted from API requests. However, any non-pointer,
15304	// non-interface field appearing in ForceSendFields will be sent to the
15305	// server regardless of whether the field is empty or not. This may be
15306	// used to include empty fields in Patch requests.
15307	ForceSendFields []string `json:"-"`
15308
15309	// NullFields is a list of field names (e.g. "Documents") to include in
15310	// API requests with the JSON null value. By default, fields with empty
15311	// values are omitted from API requests. However, any field with an
15312	// empty value appearing in NullFields will be sent to the server as
15313	// null. It is an error if a field in this list has a non-empty value.
15314	// This may be used to include null fields in Patch requests.
15315	NullFields []string `json:"-"`
15316}
15317
15318func (s *GoogleCloudDialogflowV2beta1ListDocumentsResponse) MarshalJSON() ([]byte, error) {
15319	type NoMethod GoogleCloudDialogflowV2beta1ListDocumentsResponse
15320	raw := NoMethod(*s)
15321	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15322}
15323
15324// GoogleCloudDialogflowV2beta1ListEntityTypesResponse: The response
15325// message for EntityTypes.ListEntityTypes.
15326type GoogleCloudDialogflowV2beta1ListEntityTypesResponse struct {
15327	// EntityTypes: The list of agent entity types. There will be a maximum
15328	// number of items returned based on the page_size field in the request.
15329	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
15330
15331	// NextPageToken: Token to retrieve the next page of results, or empty
15332	// if there are no more results in the list.
15333	NextPageToken string `json:"nextPageToken,omitempty"`
15334
15335	// ServerResponse contains the HTTP response code and headers from the
15336	// server.
15337	googleapi.ServerResponse `json:"-"`
15338
15339	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
15340	// unconditionally include in API requests. By default, fields with
15341	// empty values are omitted from API requests. However, any non-pointer,
15342	// non-interface field appearing in ForceSendFields will be sent to the
15343	// server regardless of whether the field is empty or not. This may be
15344	// used to include empty fields in Patch requests.
15345	ForceSendFields []string `json:"-"`
15346
15347	// NullFields is a list of field names (e.g. "EntityTypes") to include
15348	// in API requests with the JSON null value. By default, fields with
15349	// empty values are omitted from API requests. However, any field with
15350	// an empty value appearing in NullFields will be sent to the server as
15351	// null. It is an error if a field in this list has a non-empty value.
15352	// This may be used to include null fields in Patch requests.
15353	NullFields []string `json:"-"`
15354}
15355
15356func (s *GoogleCloudDialogflowV2beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
15357	type NoMethod GoogleCloudDialogflowV2beta1ListEntityTypesResponse
15358	raw := NoMethod(*s)
15359	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15360}
15361
15362// GoogleCloudDialogflowV2beta1ListEnvironmentsResponse: The response
15363// message for Environments.ListEnvironments.
15364type GoogleCloudDialogflowV2beta1ListEnvironmentsResponse struct {
15365	// Environments: The list of agent environments. There will be a maximum
15366	// number of items returned based on the page_size field in the request.
15367	Environments []*GoogleCloudDialogflowV2beta1Environment `json:"environments,omitempty"`
15368
15369	// NextPageToken: Token to retrieve the next page of results, or empty
15370	// if there are no more results in the list.
15371	NextPageToken string `json:"nextPageToken,omitempty"`
15372
15373	// ServerResponse contains the HTTP response code and headers from the
15374	// server.
15375	googleapi.ServerResponse `json:"-"`
15376
15377	// ForceSendFields is a list of field names (e.g. "Environments") to
15378	// unconditionally include in API requests. By default, fields with
15379	// empty values are omitted from API requests. However, any non-pointer,
15380	// non-interface field appearing in ForceSendFields will be sent to the
15381	// server regardless of whether the field is empty or not. This may be
15382	// used to include empty fields in Patch requests.
15383	ForceSendFields []string `json:"-"`
15384
15385	// NullFields is a list of field names (e.g. "Environments") to include
15386	// in API requests with the JSON null value. By default, fields with
15387	// empty values are omitted from API requests. However, any field with
15388	// an empty value appearing in NullFields will be sent to the server as
15389	// null. It is an error if a field in this list has a non-empty value.
15390	// This may be used to include null fields in Patch requests.
15391	NullFields []string `json:"-"`
15392}
15393
15394func (s *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
15395	type NoMethod GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
15396	raw := NoMethod(*s)
15397	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15398}
15399
15400// GoogleCloudDialogflowV2beta1ListIntentsResponse: The response message
15401// for Intents.ListIntents.
15402type GoogleCloudDialogflowV2beta1ListIntentsResponse struct {
15403	// Intents: The list of agent intents. There will be a maximum number of
15404	// items returned based on the page_size field in the request.
15405	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
15406
15407	// NextPageToken: Token to retrieve the next page of results, or empty
15408	// if there are no more results in the list.
15409	NextPageToken string `json:"nextPageToken,omitempty"`
15410
15411	// ServerResponse contains the HTTP response code and headers from the
15412	// server.
15413	googleapi.ServerResponse `json:"-"`
15414
15415	// ForceSendFields is a list of field names (e.g. "Intents") to
15416	// unconditionally include in API requests. By default, fields with
15417	// empty values are omitted from API requests. However, any non-pointer,
15418	// non-interface field appearing in ForceSendFields will be sent to the
15419	// server regardless of whether the field is empty or not. This may be
15420	// used to include empty fields in Patch requests.
15421	ForceSendFields []string `json:"-"`
15422
15423	// NullFields is a list of field names (e.g. "Intents") to include in
15424	// API requests with the JSON null value. By default, fields with empty
15425	// values are omitted from API requests. However, any field with an
15426	// empty value appearing in NullFields will be sent to the server as
15427	// null. It is an error if a field in this list has a non-empty value.
15428	// This may be used to include null fields in Patch requests.
15429	NullFields []string `json:"-"`
15430}
15431
15432func (s *GoogleCloudDialogflowV2beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
15433	type NoMethod GoogleCloudDialogflowV2beta1ListIntentsResponse
15434	raw := NoMethod(*s)
15435	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15436}
15437
15438// GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse: Response
15439// message for KnowledgeBases.ListKnowledgeBases.
15440type GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse struct {
15441	// KnowledgeBases: The list of knowledge bases.
15442	KnowledgeBases []*GoogleCloudDialogflowV2beta1KnowledgeBase `json:"knowledgeBases,omitempty"`
15443
15444	// NextPageToken: Token to retrieve the next page of results, or empty
15445	// if there are no more results in the list.
15446	NextPageToken string `json:"nextPageToken,omitempty"`
15447
15448	// ServerResponse contains the HTTP response code and headers from the
15449	// server.
15450	googleapi.ServerResponse `json:"-"`
15451
15452	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
15453	// unconditionally include in API requests. By default, fields with
15454	// empty values are omitted from API requests. However, any non-pointer,
15455	// non-interface field appearing in ForceSendFields will be sent to the
15456	// server regardless of whether the field is empty or not. This may be
15457	// used to include empty fields in Patch requests.
15458	ForceSendFields []string `json:"-"`
15459
15460	// NullFields is a list of field names (e.g. "KnowledgeBases") to
15461	// include in API requests with the JSON null value. By default, fields
15462	// with empty values are omitted from API requests. However, any field
15463	// with an empty value appearing in NullFields will be sent to the
15464	// server as null. It is an error if a field in this list has a
15465	// non-empty value. This may be used to include null fields in Patch
15466	// requests.
15467	NullFields []string `json:"-"`
15468}
15469
15470func (s *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) MarshalJSON() ([]byte, error) {
15471	type NoMethod GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse
15472	raw := NoMethod(*s)
15473	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15474}
15475
15476// GoogleCloudDialogflowV2beta1ListMessagesResponse: The response
15477// message for Conversations.ListMessages.
15478type GoogleCloudDialogflowV2beta1ListMessagesResponse struct {
15479	// Messages: Required. The list of messages. There will be a maximum
15480	// number of items returned based on the page_size field in the request.
15481	// `messages` is sorted by `create_time` in descending order.
15482	Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
15483
15484	// NextPageToken: Optional. Token to retrieve the next page of results,
15485	// or empty if there are no more results in the list.
15486	NextPageToken string `json:"nextPageToken,omitempty"`
15487
15488	// ServerResponse contains the HTTP response code and headers from the
15489	// server.
15490	googleapi.ServerResponse `json:"-"`
15491
15492	// ForceSendFields is a list of field names (e.g. "Messages") to
15493	// unconditionally include in API requests. By default, fields with
15494	// empty values are omitted from API requests. However, any non-pointer,
15495	// non-interface field appearing in ForceSendFields will be sent to the
15496	// server regardless of whether the field is empty or not. This may be
15497	// used to include empty fields in Patch requests.
15498	ForceSendFields []string `json:"-"`
15499
15500	// NullFields is a list of field names (e.g. "Messages") to include in
15501	// API requests with the JSON null value. By default, fields with empty
15502	// values are omitted from API requests. However, any field with an
15503	// empty value appearing in NullFields will be sent to the server as
15504	// null. It is an error if a field in this list has a non-empty value.
15505	// This may be used to include null fields in Patch requests.
15506	NullFields []string `json:"-"`
15507}
15508
15509func (s *GoogleCloudDialogflowV2beta1ListMessagesResponse) MarshalJSON() ([]byte, error) {
15510	type NoMethod GoogleCloudDialogflowV2beta1ListMessagesResponse
15511	raw := NoMethod(*s)
15512	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15513}
15514
15515// GoogleCloudDialogflowV2beta1ListParticipantsResponse: The response
15516// message for Participants.ListParticipants.
15517type GoogleCloudDialogflowV2beta1ListParticipantsResponse struct {
15518	// NextPageToken: Token to retrieve the next page of results or empty if
15519	// there are no more results in the list.
15520	NextPageToken string `json:"nextPageToken,omitempty"`
15521
15522	// Participants: The list of participants. There is a maximum number of
15523	// items returned based on the page_size field in the request.
15524	Participants []*GoogleCloudDialogflowV2beta1Participant `json:"participants,omitempty"`
15525
15526	// ServerResponse contains the HTTP response code and headers from the
15527	// server.
15528	googleapi.ServerResponse `json:"-"`
15529
15530	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15531	// unconditionally include in API requests. By default, fields with
15532	// empty values are omitted from API requests. However, any non-pointer,
15533	// non-interface field appearing in ForceSendFields will be sent to the
15534	// server regardless of whether the field is empty or not. This may be
15535	// used to include empty fields in Patch requests.
15536	ForceSendFields []string `json:"-"`
15537
15538	// NullFields is a list of field names (e.g. "NextPageToken") to include
15539	// in API requests with the JSON null value. By default, fields with
15540	// empty values are omitted from API requests. However, any field with
15541	// an empty value appearing in NullFields will be sent to the server as
15542	// null. It is an error if a field in this list has a non-empty value.
15543	// This may be used to include null fields in Patch requests.
15544	NullFields []string `json:"-"`
15545}
15546
15547func (s *GoogleCloudDialogflowV2beta1ListParticipantsResponse) MarshalJSON() ([]byte, error) {
15548	type NoMethod GoogleCloudDialogflowV2beta1ListParticipantsResponse
15549	raw := NoMethod(*s)
15550	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15551}
15552
15553// GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse: The
15554// response message for SessionEntityTypes.ListSessionEntityTypes.
15555type GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse struct {
15556	// NextPageToken: Token to retrieve the next page of results, or empty
15557	// if there are no more results in the list.
15558	NextPageToken string `json:"nextPageToken,omitempty"`
15559
15560	// SessionEntityTypes: The list of session entity types. There will be a
15561	// maximum number of items returned based on the page_size field in the
15562	// request.
15563	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
15564
15565	// ServerResponse contains the HTTP response code and headers from the
15566	// server.
15567	googleapi.ServerResponse `json:"-"`
15568
15569	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15570	// unconditionally include in API requests. By default, fields with
15571	// empty values are omitted from API requests. However, any non-pointer,
15572	// non-interface field appearing in ForceSendFields will be sent to the
15573	// server regardless of whether the field is empty or not. This may be
15574	// used to include empty fields in Patch requests.
15575	ForceSendFields []string `json:"-"`
15576
15577	// NullFields is a list of field names (e.g. "NextPageToken") to include
15578	// in API requests with the JSON null value. By default, fields with
15579	// empty values are omitted from API requests. However, any field with
15580	// an empty value appearing in NullFields will be sent to the server as
15581	// null. It is an error if a field in this list has a non-empty value.
15582	// This may be used to include null fields in Patch requests.
15583	NullFields []string `json:"-"`
15584}
15585
15586func (s *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
15587	type NoMethod GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
15588	raw := NoMethod(*s)
15589	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15590}
15591
15592// GoogleCloudDialogflowV2beta1ListSuggestionsResponse: The response
15593// message for Participants.ListSuggestions.
15594type GoogleCloudDialogflowV2beta1ListSuggestionsResponse struct {
15595	// NextPageToken: Optional. Token to retrieve the next page of results
15596	// or empty if there are no more results in the list.
15597	NextPageToken string `json:"nextPageToken,omitempty"`
15598
15599	// Suggestions: Required. The list of suggestions. There will be a
15600	// maximum number of items returned based on the page_size field in the
15601	// request. `suggestions` is sorted by `create_time` in descending
15602	// order.
15603	Suggestions []*GoogleCloudDialogflowV2beta1Suggestion `json:"suggestions,omitempty"`
15604
15605	// ServerResponse contains the HTTP response code and headers from the
15606	// server.
15607	googleapi.ServerResponse `json:"-"`
15608
15609	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15610	// unconditionally include in API requests. By default, fields with
15611	// empty values are omitted from API requests. However, any non-pointer,
15612	// non-interface field appearing in ForceSendFields will be sent to the
15613	// server regardless of whether the field is empty or not. This may be
15614	// used to include empty fields in Patch requests.
15615	ForceSendFields []string `json:"-"`
15616
15617	// NullFields is a list of field names (e.g. "NextPageToken") to include
15618	// in API requests with the JSON null value. By default, fields with
15619	// empty values are omitted from API requests. However, any field with
15620	// an empty value appearing in NullFields will be sent to the server as
15621	// null. It is an error if a field in this list has a non-empty value.
15622	// This may be used to include null fields in Patch requests.
15623	NullFields []string `json:"-"`
15624}
15625
15626func (s *GoogleCloudDialogflowV2beta1ListSuggestionsResponse) MarshalJSON() ([]byte, error) {
15627	type NoMethod GoogleCloudDialogflowV2beta1ListSuggestionsResponse
15628	raw := NoMethod(*s)
15629	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15630}
15631
15632// GoogleCloudDialogflowV2beta1ListVersionsResponse: The response
15633// message for Versions.ListVersions.
15634type GoogleCloudDialogflowV2beta1ListVersionsResponse struct {
15635	// NextPageToken: Token to retrieve the next page of results, or empty
15636	// if there are no more results in the list.
15637	NextPageToken string `json:"nextPageToken,omitempty"`
15638
15639	// Versions: The list of agent versions. There will be a maximum number
15640	// of items returned based on the page_size field in the request.
15641	Versions []*GoogleCloudDialogflowV2beta1Version `json:"versions,omitempty"`
15642
15643	// ServerResponse contains the HTTP response code and headers from the
15644	// server.
15645	googleapi.ServerResponse `json:"-"`
15646
15647	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15648	// unconditionally include in API requests. By default, fields with
15649	// empty values are omitted from API requests. However, any non-pointer,
15650	// non-interface field appearing in ForceSendFields will be sent to the
15651	// server regardless of whether the field is empty or not. This may be
15652	// used to include empty fields in Patch requests.
15653	ForceSendFields []string `json:"-"`
15654
15655	// NullFields is a list of field names (e.g. "NextPageToken") to include
15656	// in API requests with the JSON null value. By default, fields with
15657	// empty values are omitted from API requests. However, any field with
15658	// an empty value appearing in NullFields will be sent to the server as
15659	// null. It is an error if a field in this list has a non-empty value.
15660	// This may be used to include null fields in Patch requests.
15661	NullFields []string `json:"-"`
15662}
15663
15664func (s *GoogleCloudDialogflowV2beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
15665	type NoMethod GoogleCloudDialogflowV2beta1ListVersionsResponse
15666	raw := NoMethod(*s)
15667	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15668}
15669
15670// GoogleCloudDialogflowV2beta1LoggingConfig: Defines logging behavior
15671// for conversation lifecycle events.
15672type GoogleCloudDialogflowV2beta1LoggingConfig struct {
15673	// EnableStackdriverLogging: Whether to log conversation events like
15674	// CONVERSATION_STARTED to Stackdriver in the conversation project as
15675	// JSON format ConversationEvent protos.
15676	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
15677
15678	// ForceSendFields is a list of field names (e.g.
15679	// "EnableStackdriverLogging") to unconditionally include in API
15680	// requests. By default, fields with empty values are omitted from API
15681	// requests. However, any non-pointer, non-interface field appearing in
15682	// ForceSendFields will be sent to the server regardless of whether the
15683	// field is empty or not. This may be used to include empty fields in
15684	// Patch requests.
15685	ForceSendFields []string `json:"-"`
15686
15687	// NullFields is a list of field names (e.g. "EnableStackdriverLogging")
15688	// to include in API requests with the JSON null value. By default,
15689	// fields with empty values are omitted from API requests. However, any
15690	// field with an empty value appearing in NullFields will be sent to the
15691	// server as null. It is an error if a field in this list has a
15692	// non-empty value. This may be used to include null fields in Patch
15693	// requests.
15694	NullFields []string `json:"-"`
15695}
15696
15697func (s *GoogleCloudDialogflowV2beta1LoggingConfig) MarshalJSON() ([]byte, error) {
15698	type NoMethod GoogleCloudDialogflowV2beta1LoggingConfig
15699	raw := NoMethod(*s)
15700	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15701}
15702
15703// GoogleCloudDialogflowV2beta1Message: Represents a message posted into
15704// a conversation.
15705type GoogleCloudDialogflowV2beta1Message struct {
15706	// Content: Required. The message content.
15707	Content string `json:"content,omitempty"`
15708
15709	// CreateTime: Output only. The time when the message was created in
15710	// Contact Center AI.
15711	CreateTime string `json:"createTime,omitempty"`
15712
15713	// LanguageCode: Optional. The message language. This should be a BCP-47
15714	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
15715	// "en-US".
15716	LanguageCode string `json:"languageCode,omitempty"`
15717
15718	// MessageAnnotation: Output only. The annotation for the message.
15719	MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
15720
15721	// Name: Optional. The unique identifier of the message. Format:
15722	// `projects//locations//conversations//messages/`.
15723	Name string `json:"name,omitempty"`
15724
15725	// Participant: Output only. The participant that sends this message.
15726	Participant string `json:"participant,omitempty"`
15727
15728	// ParticipantRole: Output only. The role of the participant.
15729	//
15730	// Possible values:
15731	//   "ROLE_UNSPECIFIED" - Participant role not set.
15732	//   "HUMAN_AGENT" - Participant is a human agent.
15733	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
15734	// Dialogflow agent.
15735	//   "END_USER" - Participant is an end user that has called or chatted
15736	// with Dialogflow services.
15737	ParticipantRole string `json:"participantRole,omitempty"`
15738
15739	// SendTime: Optional. The time when the message was sent.
15740	SendTime string `json:"sendTime,omitempty"`
15741
15742	// SentimentAnalysis: Output only. The sentiment analysis result for the
15743	// message.
15744	SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
15745
15746	// ForceSendFields is a list of field names (e.g. "Content") to
15747	// unconditionally include in API requests. By default, fields with
15748	// empty values are omitted from API requests. However, any non-pointer,
15749	// non-interface field appearing in ForceSendFields will be sent to the
15750	// server regardless of whether the field is empty or not. This may be
15751	// used to include empty fields in Patch requests.
15752	ForceSendFields []string `json:"-"`
15753
15754	// NullFields is a list of field names (e.g. "Content") to include in
15755	// API requests with the JSON null value. By default, fields with empty
15756	// values are omitted from API requests. However, any field with an
15757	// empty value appearing in NullFields will be sent to the server as
15758	// null. It is an error if a field in this list has a non-empty value.
15759	// This may be used to include null fields in Patch requests.
15760	NullFields []string `json:"-"`
15761}
15762
15763func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
15764	type NoMethod GoogleCloudDialogflowV2beta1Message
15765	raw := NoMethod(*s)
15766	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15767}
15768
15769// GoogleCloudDialogflowV2beta1MessageAnnotation: Represents the result
15770// of annotation for the message.
15771type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
15772	// ContainEntities: Required. Indicates whether the text message
15773	// contains entities.
15774	ContainEntities bool `json:"containEntities,omitempty"`
15775
15776	// Parts: Optional. The collection of annotated message parts ordered by
15777	// their position in the message. You can recover the annotated message
15778	// by concatenating [AnnotatedMessagePart.text].
15779	Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
15780
15781	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
15782	// unconditionally include in API requests. By default, fields with
15783	// empty values are omitted from API requests. However, any non-pointer,
15784	// non-interface field appearing in ForceSendFields will be sent to the
15785	// server regardless of whether the field is empty or not. This may be
15786	// used to include empty fields in Patch requests.
15787	ForceSendFields []string `json:"-"`
15788
15789	// NullFields is a list of field names (e.g. "ContainEntities") to
15790	// include in API requests with the JSON null value. By default, fields
15791	// with empty values are omitted from API requests. However, any field
15792	// with an empty value appearing in NullFields will be sent to the
15793	// server as null. It is an error if a field in this list has a
15794	// non-empty value. This may be used to include null fields in Patch
15795	// requests.
15796	NullFields []string `json:"-"`
15797}
15798
15799func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
15800	type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
15801	raw := NoMethod(*s)
15802	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15803}
15804
15805// GoogleCloudDialogflowV2beta1NotificationConfig: Defines notification
15806// behavior.
15807type GoogleCloudDialogflowV2beta1NotificationConfig struct {
15808	// MessageFormat: Format of message.
15809	//
15810	// Possible values:
15811	//   "MESSAGE_FORMAT_UNSPECIFIED" - If it is unspecified, PROTO will be
15812	// used.
15813	//   "PROTO" - Pubsub message will be serialized proto.
15814	//   "JSON" - Pubsub message will be json.
15815	MessageFormat string `json:"messageFormat,omitempty"`
15816
15817	// Topic: Name of the Pub/Sub topic to publish conversation events like
15818	// CONVERSATION_STARTED as serialized ConversationEvent protos.
15819	// Notification works for phone calls, if this topic either is in the
15820	// same project as the conversation or you grant
15821	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow
15822	// Service Agent` role in the topic project. Format:
15823	// `projects//locations//topics/`.
15824	Topic string `json:"topic,omitempty"`
15825
15826	// ForceSendFields is a list of field names (e.g. "MessageFormat") to
15827	// unconditionally include in API requests. By default, fields with
15828	// empty values are omitted from API requests. However, any non-pointer,
15829	// non-interface field appearing in ForceSendFields will be sent to the
15830	// server regardless of whether the field is empty or not. This may be
15831	// used to include empty fields in Patch requests.
15832	ForceSendFields []string `json:"-"`
15833
15834	// NullFields is a list of field names (e.g. "MessageFormat") to include
15835	// in API requests with the JSON null value. By default, fields with
15836	// empty values are omitted from API requests. However, any field with
15837	// an empty value appearing in NullFields will be sent to the server as
15838	// null. It is an error if a field in this list has a non-empty value.
15839	// This may be used to include null fields in Patch requests.
15840	NullFields []string `json:"-"`
15841}
15842
15843func (s *GoogleCloudDialogflowV2beta1NotificationConfig) MarshalJSON() ([]byte, error) {
15844	type NoMethod GoogleCloudDialogflowV2beta1NotificationConfig
15845	raw := NoMethod(*s)
15846	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15847}
15848
15849// GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents
15850// the contents of the original request that was passed to the
15851// `[Streaming]DetectIntent` call.
15852type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
15853	// Payload: Optional. This field is set to the value of the
15854	// `QueryParameters.payload` field passed in the request. Some
15855	// integrations that query a Dialogflow agent may provide additional
15856	// information in the payload. In particular, for the Dialogflow Phone
15857	// Gateway integration, this field has the form: { "telephony": {
15858	// "caller_id": "+18558363987" } } Note: The caller ID field
15859	// (`caller_id`) will be redacted for Trial Edition agents and populated
15860	// with the caller ID in E.164 format
15861	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
15862	Payload googleapi.RawMessage `json:"payload,omitempty"`
15863
15864	// Source: The source of this request, e.g., `google`, `facebook`,
15865	// `slack`. It is set by Dialogflow-owned servers.
15866	Source string `json:"source,omitempty"`
15867
15868	// Version: Optional. The version of the protocol used for this request.
15869	// This field is AoG-specific.
15870	Version string `json:"version,omitempty"`
15871
15872	// ForceSendFields is a list of field names (e.g. "Payload") to
15873	// unconditionally include in API requests. By default, fields with
15874	// empty values are omitted from API requests. However, any non-pointer,
15875	// non-interface field appearing in ForceSendFields will be sent to the
15876	// server regardless of whether the field is empty or not. This may be
15877	// used to include empty fields in Patch requests.
15878	ForceSendFields []string `json:"-"`
15879
15880	// NullFields is a list of field names (e.g. "Payload") to include in
15881	// API requests with the JSON null value. By default, fields with empty
15882	// values are omitted from API requests. However, any field with an
15883	// empty value appearing in NullFields will be sent to the server as
15884	// null. It is an error if a field in this list has a non-empty value.
15885	// This may be used to include null fields in Patch requests.
15886	NullFields []string `json:"-"`
15887}
15888
15889func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
15890	type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
15891	raw := NoMethod(*s)
15892	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15893}
15894
15895// GoogleCloudDialogflowV2beta1OutputAudio: Represents the natural
15896// language speech audio to be played to the end user.
15897type GoogleCloudDialogflowV2beta1OutputAudio struct {
15898	// Audio: Required. The natural language speech audio.
15899	Audio string `json:"audio,omitempty"`
15900
15901	// Config: Required. Instructs the speech synthesizer how to generate
15902	// the speech audio.
15903	Config *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"config,omitempty"`
15904
15905	// ForceSendFields is a list of field names (e.g. "Audio") to
15906	// unconditionally include in API requests. By default, fields with
15907	// empty values are omitted from API requests. However, any non-pointer,
15908	// non-interface field appearing in ForceSendFields will be sent to the
15909	// server regardless of whether the field is empty or not. This may be
15910	// used to include empty fields in Patch requests.
15911	ForceSendFields []string `json:"-"`
15912
15913	// NullFields is a list of field names (e.g. "Audio") to include in API
15914	// requests with the JSON null value. By default, fields with empty
15915	// values are omitted from API requests. However, any field with an
15916	// empty value appearing in NullFields will be sent to the server as
15917	// null. It is an error if a field in this list has a non-empty value.
15918	// This may be used to include null fields in Patch requests.
15919	NullFields []string `json:"-"`
15920}
15921
15922func (s *GoogleCloudDialogflowV2beta1OutputAudio) MarshalJSON() ([]byte, error) {
15923	type NoMethod GoogleCloudDialogflowV2beta1OutputAudio
15924	raw := NoMethod(*s)
15925	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15926}
15927
15928// GoogleCloudDialogflowV2beta1OutputAudioConfig: Instructs the speech
15929// synthesizer how to generate the output audio content. If this audio
15930// config is supplied in a request, it overrides all existing
15931// text-to-speech settings applied to the agent.
15932type GoogleCloudDialogflowV2beta1OutputAudioConfig struct {
15933	// AudioEncoding: Required. Audio encoding of the synthesized audio
15934	// content.
15935	//
15936	// Possible values:
15937	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
15938	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
15939	// little-endian samples (Linear PCM). Audio content returned as
15940	// LINEAR16 also contains a WAV header.
15941	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
15942	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
15943	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an
15944	// ogg container. The result will be a file which can be played natively
15945	// on Android, and in browsers (at least Chrome and Firefox). The
15946	// quality of the encoding is considerably higher than MP3 while using
15947	// approximately the same bitrate.
15948	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit
15949	// audio samples using G.711 PCMU/mu-law.
15950	AudioEncoding string `json:"audioEncoding,omitempty"`
15951
15952	// SampleRateHertz: The synthesis sample rate (in hertz) for this audio.
15953	// If not provided, then the synthesizer will use the default sample
15954	// rate based on the audio encoding. If this is different from the
15955	// voice's natural sample rate, then the synthesizer will honor this
15956	// request by converting to the desired sample rate (which might result
15957	// in worse audio quality).
15958	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
15959
15960	// SynthesizeSpeechConfig: Configuration of how speech should be
15961	// synthesized.
15962	SynthesizeSpeechConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
15963
15964	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
15965	// unconditionally include in API requests. By default, fields with
15966	// empty values are omitted from API requests. However, any non-pointer,
15967	// non-interface field appearing in ForceSendFields will be sent to the
15968	// server regardless of whether the field is empty or not. This may be
15969	// used to include empty fields in Patch requests.
15970	ForceSendFields []string `json:"-"`
15971
15972	// NullFields is a list of field names (e.g. "AudioEncoding") to include
15973	// in API requests with the JSON null value. By default, fields with
15974	// empty values are omitted from API requests. However, any field with
15975	// an empty value appearing in NullFields will be sent to the server as
15976	// null. It is an error if a field in this list has a non-empty value.
15977	// This may be used to include null fields in Patch requests.
15978	NullFields []string `json:"-"`
15979}
15980
15981func (s *GoogleCloudDialogflowV2beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
15982	type NoMethod GoogleCloudDialogflowV2beta1OutputAudioConfig
15983	raw := NoMethod(*s)
15984	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15985}
15986
15987// GoogleCloudDialogflowV2beta1Participant: Represents a conversation
15988// participant (human agent, virtual agent, end-user).
15989type GoogleCloudDialogflowV2beta1Participant struct {
15990	// Name: Optional. The unique identifier of this participant. Format:
15991	// `projects//locations//conversations//participants/`.
15992	Name string `json:"name,omitempty"`
15993
15994	// ObfuscatedExternalUserId: Optional. Obfuscated user id that should be
15995	// associated with the created participant. You can specify a user id as
15996	// follows: 1. If you set this field in CreateParticipantRequest or
15997	// UpdateParticipantRequest, Dialogflow adds the obfuscated user id with
15998	// the participant. 2. If you set this field in AnalyzeContent or
15999	// StreamingAnalyzeContent, Dialogflow will update
16000	// Participant.obfuscated_external_user_id. Dialogflow uses this user id
16001	// for following purposes: 1) Billing and measurement. If user with the
16002	// same obfuscated_external_user_id is created in a later conversation,
16003	// dialogflow will know it's the same user. 2) Agent assist suggestion
16004	// personalization. For example, Dialogflow can use it to provide
16005	// personalized smart reply suggestions for this user. Note: * Please
16006	// never pass raw user ids to Dialogflow. Always obfuscate your user id
16007	// first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex
16008	// digest of a hash function like SHA-512. * The length of the user id
16009	// must be <= 256 characters.
16010	ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
16011
16012	// Role: Immutable. The role this participant plays in the conversation.
16013	// This field must be set during participant creation and is then
16014	// immutable.
16015	//
16016	// Possible values:
16017	//   "ROLE_UNSPECIFIED" - Participant role not set.
16018	//   "HUMAN_AGENT" - Participant is a human agent.
16019	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
16020	// Dialogflow agent.
16021	//   "END_USER" - Participant is an end user that has called or chatted
16022	// with Dialogflow services.
16023	Role string `json:"role,omitempty"`
16024
16025	// ServerResponse contains the HTTP response code and headers from the
16026	// server.
16027	googleapi.ServerResponse `json:"-"`
16028
16029	// ForceSendFields is a list of field names (e.g. "Name") to
16030	// unconditionally include in API requests. By default, fields with
16031	// empty values are omitted from API requests. However, any non-pointer,
16032	// non-interface field appearing in ForceSendFields will be sent to the
16033	// server regardless of whether the field is empty or not. This may be
16034	// used to include empty fields in Patch requests.
16035	ForceSendFields []string `json:"-"`
16036
16037	// NullFields is a list of field names (e.g. "Name") to include in API
16038	// requests with the JSON null value. By default, fields with empty
16039	// values are omitted from API requests. However, any field with an
16040	// empty value appearing in NullFields will be sent to the server as
16041	// null. It is an error if a field in this list has a non-empty value.
16042	// This may be used to include null fields in Patch requests.
16043	NullFields []string `json:"-"`
16044}
16045
16046func (s *GoogleCloudDialogflowV2beta1Participant) MarshalJSON() ([]byte, error) {
16047	type NoMethod GoogleCloudDialogflowV2beta1Participant
16048	raw := NoMethod(*s)
16049	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16050}
16051
16052// GoogleCloudDialogflowV2beta1QueryInput: Represents the query input.
16053// It can contain either: 1. An audio config which instructs the speech
16054// recognizer how to process the speech audio. 2. A conversational query
16055// in the form of text. 3. An event that specifies which intent to
16056// trigger.
16057type GoogleCloudDialogflowV2beta1QueryInput struct {
16058	// AudioConfig: Instructs the speech recognizer how to process the
16059	// speech audio.
16060	AudioConfig *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"audioConfig,omitempty"`
16061
16062	// Dtmf: The DTMF digits used to invoke intent and fill in parameter
16063	// value.
16064	Dtmf *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents `json:"dtmf,omitempty"`
16065
16066	// Event: The event to be processed.
16067	Event *GoogleCloudDialogflowV2beta1EventInput `json:"event,omitempty"`
16068
16069	// Text: The natural language text to be processed.
16070	Text *GoogleCloudDialogflowV2beta1TextInput `json:"text,omitempty"`
16071
16072	// ForceSendFields is a list of field names (e.g. "AudioConfig") to
16073	// unconditionally include in API requests. By default, fields with
16074	// empty values are omitted from API requests. However, any non-pointer,
16075	// non-interface field appearing in ForceSendFields will be sent to the
16076	// server regardless of whether the field is empty or not. This may be
16077	// used to include empty fields in Patch requests.
16078	ForceSendFields []string `json:"-"`
16079
16080	// NullFields is a list of field names (e.g. "AudioConfig") to include
16081	// in API requests with the JSON null value. By default, fields with
16082	// empty values are omitted from API requests. However, any field with
16083	// an empty value appearing in NullFields will be sent to the server as
16084	// null. It is an error if a field in this list has a non-empty value.
16085	// This may be used to include null fields in Patch requests.
16086	NullFields []string `json:"-"`
16087}
16088
16089func (s *GoogleCloudDialogflowV2beta1QueryInput) MarshalJSON() ([]byte, error) {
16090	type NoMethod GoogleCloudDialogflowV2beta1QueryInput
16091	raw := NoMethod(*s)
16092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16093}
16094
16095// GoogleCloudDialogflowV2beta1QueryParameters: Represents the
16096// parameters of the conversational query.
16097type GoogleCloudDialogflowV2beta1QueryParameters struct {
16098	// Contexts: The collection of contexts to be activated before this
16099	// query is executed.
16100	Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
16101
16102	// GeoLocation: The geo location of this conversational query.
16103	GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
16104
16105	// KnowledgeBaseNames: KnowledgeBases to get alternative results from.
16106	// If not set, the KnowledgeBases enabled in the agent (through UI) will
16107	// be used. Format: `projects//knowledgeBases/`.
16108	KnowledgeBaseNames []string `json:"knowledgeBaseNames,omitempty"`
16109
16110	// Payload: This field can be used to pass custom data to your webhook.
16111	// Arbitrary JSON objects are supported. If supplied, the value is used
16112	// to populate the
16113	// `WebhookRequest.original_detect_intent_request.payload` field sent to
16114	// your webhook.
16115	Payload googleapi.RawMessage `json:"payload,omitempty"`
16116
16117	// ResetContexts: Specifies whether to delete all contexts in the
16118	// current session before the new ones are activated.
16119	ResetContexts bool `json:"resetContexts,omitempty"`
16120
16121	// SentimentAnalysisRequestConfig: Configures the type of sentiment
16122	// analysis to perform. If not provided, sentiment analysis is not
16123	// performed. Note: Sentiment Analysis is only currently available for
16124	// Essentials Edition agents.
16125	SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig `json:"sentimentAnalysisRequestConfig,omitempty"`
16126
16127	// SessionEntityTypes: Additional session entity types to replace or
16128	// extend developer entity types with. The entity synonyms apply to all
16129	// languages and persist for the session of this query.
16130	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
16131
16132	// SubAgents: For mega agent query, directly specify which sub agents to
16133	// query. If any specified sub agent is not linked to the mega agent, an
16134	// error will be returned. If empty, Dialogflow will decide which sub
16135	// agents to query. If specified for a non-mega-agent query, will be
16136	// silently ignored.
16137	SubAgents []*GoogleCloudDialogflowV2beta1SubAgent `json:"subAgents,omitempty"`
16138
16139	// TimeZone: The time zone of this conversational query from the time
16140	// zone database (https://www.iana.org/time-zones), e.g.,
16141	// America/New_York, Europe/Paris. If not provided, the time zone
16142	// specified in agent settings is used.
16143	TimeZone string `json:"timeZone,omitempty"`
16144
16145	// WebhookHeaders: This field can be used to pass HTTP headers for a
16146	// webhook call. These headers will be sent to webhook along with the
16147	// headers that have been configured through Dialogflow web console. The
16148	// headers defined within this field will overwrite the headers
16149	// configured through Dialogflow console if there is a conflict. Header
16150	// names are case-insensitive. Google's specified headers are not
16151	// allowed. Including: "Host", "Content-Length", "Connection", "From",
16152	// "User-Agent", "Accept-Encoding", "If-Modified-Since",
16153	// "If-None-Match", "X-Forwarded-For", etc.
16154	WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
16155
16156	// ForceSendFields is a list of field names (e.g. "Contexts") to
16157	// unconditionally include in API requests. By default, fields with
16158	// empty values are omitted from API requests. However, any non-pointer,
16159	// non-interface field appearing in ForceSendFields will be sent to the
16160	// server regardless of whether the field is empty or not. This may be
16161	// used to include empty fields in Patch requests.
16162	ForceSendFields []string `json:"-"`
16163
16164	// NullFields is a list of field names (e.g. "Contexts") to include in
16165	// API requests with the JSON null value. By default, fields with empty
16166	// values are omitted from API requests. However, any field with an
16167	// empty value appearing in NullFields will be sent to the server as
16168	// null. It is an error if a field in this list has a non-empty value.
16169	// This may be used to include null fields in Patch requests.
16170	NullFields []string `json:"-"`
16171}
16172
16173func (s *GoogleCloudDialogflowV2beta1QueryParameters) MarshalJSON() ([]byte, error) {
16174	type NoMethod GoogleCloudDialogflowV2beta1QueryParameters
16175	raw := NoMethod(*s)
16176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16177}
16178
16179// GoogleCloudDialogflowV2beta1QueryResult: Represents the result of
16180// conversational query or event processing.
16181type GoogleCloudDialogflowV2beta1QueryResult struct {
16182	// Action: The action name from the matched intent.
16183	Action string `json:"action,omitempty"`
16184
16185	// AllRequiredParamsPresent: This field is set to: - `false` if the
16186	// matched intent has required parameters and not all of the required
16187	// parameter values have been collected. - `true` if all required
16188	// parameter values have been collected, or if the matched intent
16189	// doesn't contain any required parameters.
16190	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
16191
16192	// CancelsSlotFilling: Indicates whether the conversational query
16193	// triggers a cancellation for slot filling.
16194	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
16195
16196	// DiagnosticInfo: Free-form diagnostic information for the associated
16197	// detect intent request. The fields of this data can change without
16198	// notice, so you should not write code that depends on its structure.
16199	// The data may contain: - webhook call latency - webhook errors
16200	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
16201
16202	// FulfillmentMessages: The collection of rich messages to present to
16203	// the user.
16204	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
16205
16206	// FulfillmentText: The text to be pronounced to the user or shown on
16207	// the screen. Note: This is a legacy field, `fulfillment_messages`
16208	// should be preferred.
16209	FulfillmentText string `json:"fulfillmentText,omitempty"`
16210
16211	// Intent: The intent that matched the conversational query. Some, not
16212	// all fields are filled in this message, including but not limited to:
16213	// `name`, `display_name`, `end_interaction` and `is_fallback`.
16214	Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
16215
16216	// IntentDetectionConfidence: The intent detection confidence. Values
16217	// range from 0.0 (completely uncertain) to 1.0 (completely certain).
16218	// This value is for informational purpose only and is only used to help
16219	// match the best intent within the classification threshold. This value
16220	// may change for the same end-user expression at any time due to a
16221	// model retraining or change in implementation. If there are `multiple
16222	// knowledge_answers` messages, this value is set to the greatest
16223	// `knowledgeAnswers.match_confidence` value in the list.
16224	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
16225
16226	// KnowledgeAnswers: The result from Knowledge Connector (if any),
16227	// ordered by decreasing `KnowledgeAnswers.match_confidence`.
16228	KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
16229
16230	// LanguageCode: The language that was triggered during intent
16231	// detection. See Language Support
16232	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
16233	// list of the currently supported language codes.
16234	LanguageCode string `json:"languageCode,omitempty"`
16235
16236	// OutputContexts: The collection of output contexts. If applicable,
16237	// `output_contexts.parameters` contains entries with name `.original`
16238	// containing the original parameter values before the query.
16239	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
16240
16241	// Parameters: The collection of extracted parameters. Depending on your
16242	// protocol or client library language, this is a map, associative
16243	// array, symbol table, dictionary, or JSON object composed of a
16244	// collection of (MapKey, MapValue) pairs: - MapKey type: string -
16245	// MapKey value: parameter name - MapValue type: - If parameter's entity
16246	// type is a composite entity: map - Else: depending on parameter value
16247	// type, could be one of string, number, boolean, null, list or map -
16248	// MapValue value: - If parameter's entity type is a composite entity:
16249	// map from composite entity property names to property values - Else:
16250	// parameter value
16251	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
16252
16253	// QueryText: The original conversational query text: - If natural
16254	// language text was provided as input, `query_text` contains a copy of
16255	// the input. - If natural language speech audio was provided as input,
16256	// `query_text` contains the speech recognition result. If speech
16257	// recognizer produced multiple alternatives, a particular one is
16258	// picked. - If automatic spell correction is enabled, `query_text` will
16259	// contain the corrected user input.
16260	QueryText string `json:"queryText,omitempty"`
16261
16262	// SentimentAnalysisResult: The sentiment analysis result, which depends
16263	// on the `sentiment_analysis_request_config` specified in the request.
16264	SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
16265
16266	// SpeechRecognitionConfidence: The Speech recognition confidence
16267	// between 0.0 and 1.0. A higher number indicates an estimated greater
16268	// likelihood that the recognized words are correct. The default of 0.0
16269	// is a sentinel value indicating that confidence was not set. This
16270	// field is not guaranteed to be accurate or set. In particular this
16271	// field isn't set for StreamingDetectIntent since the streaming
16272	// endpoint has separate confidence estimates per portion of the audio
16273	// in StreamingRecognitionResult.
16274	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
16275
16276	// WebhookPayload: If the query was fulfilled by a webhook call, this
16277	// field is set to the value of the `payload` field returned in the
16278	// webhook response.
16279	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
16280
16281	// WebhookSource: If the query was fulfilled by a webhook call, this
16282	// field is set to the value of the `source` field returned in the
16283	// webhook response.
16284	WebhookSource string `json:"webhookSource,omitempty"`
16285
16286	// ForceSendFields is a list of field names (e.g. "Action") to
16287	// unconditionally include in API requests. By default, fields with
16288	// empty values are omitted from API requests. However, any non-pointer,
16289	// non-interface field appearing in ForceSendFields will be sent to the
16290	// server regardless of whether the field is empty or not. This may be
16291	// used to include empty fields in Patch requests.
16292	ForceSendFields []string `json:"-"`
16293
16294	// NullFields is a list of field names (e.g. "Action") to include in API
16295	// requests with the JSON null value. By default, fields with empty
16296	// values are omitted from API requests. However, any field with an
16297	// empty value appearing in NullFields will be sent to the server as
16298	// null. It is an error if a field in this list has a non-empty value.
16299	// This may be used to include null fields in Patch requests.
16300	NullFields []string `json:"-"`
16301}
16302
16303func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
16304	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
16305	raw := NoMethod(*s)
16306	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16307}
16308
16309func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
16310	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
16311	var s1 struct {
16312		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
16313		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
16314		*NoMethod
16315	}
16316	s1.NoMethod = (*NoMethod)(s)
16317	if err := json.Unmarshal(data, &s1); err != nil {
16318		return err
16319	}
16320	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
16321	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
16322	return nil
16323}
16324
16325// GoogleCloudDialogflowV2beta1ReloadDocumentRequest: Request message
16326// for Documents.ReloadDocument.
16327type GoogleCloudDialogflowV2beta1ReloadDocumentRequest struct {
16328	// GcsSource: The path for a Cloud Storage source file for reloading
16329	// document content. If not provided, the Document's existing source
16330	// will be reloaded.
16331	GcsSource *GoogleCloudDialogflowV2beta1GcsSource `json:"gcsSource,omitempty"`
16332
16333	// ImportGcsCustomMetadata: Whether to import custom metadata from
16334	// Google Cloud Storage. Only valid when the document source is Google
16335	// Cloud Storage URI.
16336	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
16337
16338	// ForceSendFields is a list of field names (e.g. "GcsSource") to
16339	// unconditionally include in API requests. By default, fields with
16340	// empty values are omitted from API requests. However, any non-pointer,
16341	// non-interface field appearing in ForceSendFields will be sent to the
16342	// server regardless of whether the field is empty or not. This may be
16343	// used to include empty fields in Patch requests.
16344	ForceSendFields []string `json:"-"`
16345
16346	// NullFields is a list of field names (e.g. "GcsSource") to include in
16347	// API requests with the JSON null value. By default, fields with empty
16348	// values are omitted from API requests. However, any field with an
16349	// empty value appearing in NullFields will be sent to the server as
16350	// null. It is an error if a field in this list has a non-empty value.
16351	// This may be used to include null fields in Patch requests.
16352	NullFields []string `json:"-"`
16353}
16354
16355func (s *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) MarshalJSON() ([]byte, error) {
16356	type NoMethod GoogleCloudDialogflowV2beta1ReloadDocumentRequest
16357	raw := NoMethod(*s)
16358	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16359}
16360
16361// GoogleCloudDialogflowV2beta1ResponseMessage: Response messages from
16362// an automated agent.
16363type GoogleCloudDialogflowV2beta1ResponseMessage struct {
16364	// EndInteraction: A signal that indicates the interaction with the
16365	// Dialogflow agent has ended.
16366	EndInteraction *GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
16367
16368	// LiveAgentHandoff: Hands off conversation to a live agent.
16369	LiveAgentHandoff *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
16370
16371	// Payload: Returns a response containing a custom, platform-specific
16372	// payload.
16373	Payload googleapi.RawMessage `json:"payload,omitempty"`
16374
16375	// Text: Returns a text response.
16376	Text *GoogleCloudDialogflowV2beta1ResponseMessageText `json:"text,omitempty"`
16377
16378	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
16379	// unconditionally include in API requests. By default, fields with
16380	// empty values are omitted from API requests. However, any non-pointer,
16381	// non-interface field appearing in ForceSendFields will be sent to the
16382	// server regardless of whether the field is empty or not. This may be
16383	// used to include empty fields in Patch requests.
16384	ForceSendFields []string `json:"-"`
16385
16386	// NullFields is a list of field names (e.g. "EndInteraction") to
16387	// include in API requests with the JSON null value. By default, fields
16388	// with empty values are omitted from API requests. However, any field
16389	// with an empty value appearing in NullFields will be sent to the
16390	// server as null. It is an error if a field in this list has a
16391	// non-empty value. This may be used to include null fields in Patch
16392	// requests.
16393	NullFields []string `json:"-"`
16394}
16395
16396func (s *GoogleCloudDialogflowV2beta1ResponseMessage) MarshalJSON() ([]byte, error) {
16397	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessage
16398	raw := NoMethod(*s)
16399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16400}
16401
16402// GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction: Indicates
16403// that interaction with the Dialogflow agent has ended.
16404type GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction struct {
16405}
16406
16407// GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff:
16408// Indicates that the conversation should be handed off to a human
16409// agent. Dialogflow only uses this to determine which conversations
16410// were handed off to a human agent for measurement purposes. What else
16411// to do with this signal is up to you and your handoff procedures. You
16412// may set this, for example: * In the entry fulfillment of a CX Page if
16413// entering the page indicates something went extremely wrong in the
16414// conversation. * In a webhook response when you determine that the
16415// customer issue can only be handled by a human.
16416type GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff struct {
16417	// Metadata: Custom metadata for your handoff procedure. Dialogflow
16418	// doesn't impose any structure on this.
16419	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
16420
16421	// ForceSendFields is a list of field names (e.g. "Metadata") to
16422	// unconditionally include in API requests. By default, fields with
16423	// empty values are omitted from API requests. However, any non-pointer,
16424	// non-interface field appearing in ForceSendFields will be sent to the
16425	// server regardless of whether the field is empty or not. This may be
16426	// used to include empty fields in Patch requests.
16427	ForceSendFields []string `json:"-"`
16428
16429	// NullFields is a list of field names (e.g. "Metadata") to include in
16430	// API requests with the JSON null value. By default, fields with empty
16431	// values are omitted from API requests. However, any field with an
16432	// empty value appearing in NullFields will be sent to the server as
16433	// null. It is an error if a field in this list has a non-empty value.
16434	// This may be used to include null fields in Patch requests.
16435	NullFields []string `json:"-"`
16436}
16437
16438func (s *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
16439	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff
16440	raw := NoMethod(*s)
16441	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16442}
16443
16444// GoogleCloudDialogflowV2beta1ResponseMessageText: The text response
16445// message.
16446type GoogleCloudDialogflowV2beta1ResponseMessageText struct {
16447	// Text: A collection of text responses.
16448	Text []string `json:"text,omitempty"`
16449
16450	// ForceSendFields is a list of field names (e.g. "Text") to
16451	// unconditionally include in API requests. By default, fields with
16452	// empty values are omitted from API requests. However, any non-pointer,
16453	// non-interface field appearing in ForceSendFields will be sent to the
16454	// server regardless of whether the field is empty or not. This may be
16455	// used to include empty fields in Patch requests.
16456	ForceSendFields []string `json:"-"`
16457
16458	// NullFields is a list of field names (e.g. "Text") to include in API
16459	// requests with the JSON null value. By default, fields with empty
16460	// values are omitted from API requests. However, any field with an
16461	// empty value appearing in NullFields will be sent to the server as
16462	// null. It is an error if a field in this list has a non-empty value.
16463	// This may be used to include null fields in Patch requests.
16464	NullFields []string `json:"-"`
16465}
16466
16467func (s *GoogleCloudDialogflowV2beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
16468	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageText
16469	raw := NoMethod(*s)
16470	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16471}
16472
16473// GoogleCloudDialogflowV2beta1RestoreAgentRequest: The request message
16474// for Agents.RestoreAgent.
16475type GoogleCloudDialogflowV2beta1RestoreAgentRequest struct {
16476	// AgentContent: Zip compressed raw byte content for agent.
16477	AgentContent string `json:"agentContent,omitempty"`
16478
16479	// AgentUri: The URI to a Google Cloud Storage file containing the agent
16480	// to restore. Note: The URI must start with "gs://".
16481	AgentUri string `json:"agentUri,omitempty"`
16482
16483	// ForceSendFields is a list of field names (e.g. "AgentContent") to
16484	// unconditionally include in API requests. By default, fields with
16485	// empty values are omitted from API requests. However, any non-pointer,
16486	// non-interface field appearing in ForceSendFields will be sent to the
16487	// server regardless of whether the field is empty or not. This may be
16488	// used to include empty fields in Patch requests.
16489	ForceSendFields []string `json:"-"`
16490
16491	// NullFields is a list of field names (e.g. "AgentContent") to include
16492	// in API requests with the JSON null value. By default, fields with
16493	// empty values are omitted from API requests. However, any field with
16494	// an empty value appearing in NullFields will be sent to the server as
16495	// null. It is an error if a field in this list has a non-empty value.
16496	// This may be used to include null fields in Patch requests.
16497	NullFields []string `json:"-"`
16498}
16499
16500func (s *GoogleCloudDialogflowV2beta1RestoreAgentRequest) MarshalJSON() ([]byte, error) {
16501	type NoMethod GoogleCloudDialogflowV2beta1RestoreAgentRequest
16502	raw := NoMethod(*s)
16503	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16504}
16505
16506// GoogleCloudDialogflowV2beta1SearchAgentsResponse: The response
16507// message for Agents.SearchAgents.
16508type GoogleCloudDialogflowV2beta1SearchAgentsResponse struct {
16509	// Agents: The list of agents. There will be a maximum number of items
16510	// returned based on the page_size field in the request.
16511	Agents []*GoogleCloudDialogflowV2beta1Agent `json:"agents,omitempty"`
16512
16513	// NextPageToken: Token to retrieve the next page of results, or empty
16514	// if there are no more results in the list.
16515	NextPageToken string `json:"nextPageToken,omitempty"`
16516
16517	// ServerResponse contains the HTTP response code and headers from the
16518	// server.
16519	googleapi.ServerResponse `json:"-"`
16520
16521	// ForceSendFields is a list of field names (e.g. "Agents") to
16522	// unconditionally include in API requests. By default, fields with
16523	// empty values are omitted from API requests. However, any non-pointer,
16524	// non-interface field appearing in ForceSendFields will be sent to the
16525	// server regardless of whether the field is empty or not. This may be
16526	// used to include empty fields in Patch requests.
16527	ForceSendFields []string `json:"-"`
16528
16529	// NullFields is a list of field names (e.g. "Agents") to include in API
16530	// requests with the JSON null value. By default, fields with empty
16531	// values are omitted from API requests. However, any field with an
16532	// empty value appearing in NullFields will be sent to the server as
16533	// null. It is an error if a field in this list has a non-empty value.
16534	// This may be used to include null fields in Patch requests.
16535	NullFields []string `json:"-"`
16536}
16537
16538func (s *GoogleCloudDialogflowV2beta1SearchAgentsResponse) MarshalJSON() ([]byte, error) {
16539	type NoMethod GoogleCloudDialogflowV2beta1SearchAgentsResponse
16540	raw := NoMethod(*s)
16541	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16542}
16543
16544// GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as
16545// positive/negative feeling or association, for a unit of analysis,
16546// such as the query text.
16547type GoogleCloudDialogflowV2beta1Sentiment struct {
16548	// Magnitude: A non-negative number in the [0, +inf) range, which
16549	// represents the absolute magnitude of sentiment, regardless of score
16550	// (positive or negative).
16551	Magnitude float64 `json:"magnitude,omitempty"`
16552
16553	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
16554	// (positive sentiment).
16555	Score float64 `json:"score,omitempty"`
16556
16557	// ForceSendFields is a list of field names (e.g. "Magnitude") to
16558	// unconditionally include in API requests. By default, fields with
16559	// empty values are omitted from API requests. However, any non-pointer,
16560	// non-interface field appearing in ForceSendFields will be sent to the
16561	// server regardless of whether the field is empty or not. This may be
16562	// used to include empty fields in Patch requests.
16563	ForceSendFields []string `json:"-"`
16564
16565	// NullFields is a list of field names (e.g. "Magnitude") to include in
16566	// API requests with the JSON null value. By default, fields with empty
16567	// values are omitted from API requests. However, any field with an
16568	// empty value appearing in NullFields will be sent to the server as
16569	// null. It is an error if a field in this list has a non-empty value.
16570	// This may be used to include null fields in Patch requests.
16571	NullFields []string `json:"-"`
16572}
16573
16574func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
16575	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
16576	raw := NoMethod(*s)
16577	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16578}
16579
16580func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
16581	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
16582	var s1 struct {
16583		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
16584		Score     gensupport.JSONFloat64 `json:"score"`
16585		*NoMethod
16586	}
16587	s1.NoMethod = (*NoMethod)(s)
16588	if err := json.Unmarshal(data, &s1); err != nil {
16589		return err
16590	}
16591	s.Magnitude = float64(s1.Magnitude)
16592	s.Score = float64(s1.Score)
16593	return nil
16594}
16595
16596// GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig:
16597// Configures the types of sentiment analysis to perform.
16598type GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig struct {
16599	// AnalyzeQueryTextSentiment: Instructs the service to perform sentiment
16600	// analysis on `query_text`. If not provided, sentiment analysis is not
16601	// performed on `query_text`.
16602	AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
16603
16604	// ForceSendFields is a list of field names (e.g.
16605	// "AnalyzeQueryTextSentiment") to unconditionally include in API
16606	// requests. By default, fields with empty values are omitted from API
16607	// requests. However, any non-pointer, non-interface field appearing in
16608	// ForceSendFields will be sent to the server regardless of whether the
16609	// field is empty or not. This may be used to include empty fields in
16610	// Patch requests.
16611	ForceSendFields []string `json:"-"`
16612
16613	// NullFields is a list of field names (e.g.
16614	// "AnalyzeQueryTextSentiment") to include in API requests with the JSON
16615	// null value. By default, fields with empty values are omitted from API
16616	// requests. However, any field with an empty value appearing in
16617	// NullFields will be sent to the server as null. It is an error if a
16618	// field in this list has a non-empty value. This may be used to include
16619	// null fields in Patch requests.
16620	NullFields []string `json:"-"`
16621}
16622
16623func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig) MarshalJSON() ([]byte, error) {
16624	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
16625	raw := NoMethod(*s)
16626	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16627}
16628
16629// GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of
16630// sentiment analysis. Sentiment analysis inspects user input and
16631// identifies the prevailing subjective opinion, especially to determine
16632// a user's attitude as positive, negative, or neutral. For
16633// Participants.DetectIntent, it needs to be configured in
16634// DetectIntentRequest.query_params. For
16635// Participants.StreamingDetectIntent, it needs to be configured in
16636// StreamingDetectIntentRequest.query_params. And for
16637// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent,
16638// it needs to be configured in
16639// ConversationProfile.human_agent_assistant_config
16640type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
16641	// QueryTextSentiment: The sentiment analysis result for `query_text`.
16642	QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
16643
16644	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment")
16645	// to unconditionally include in API requests. By default, fields with
16646	// empty values are omitted from API requests. However, any non-pointer,
16647	// non-interface field appearing in ForceSendFields will be sent to the
16648	// server regardless of whether the field is empty or not. This may be
16649	// used to include empty fields in Patch requests.
16650	ForceSendFields []string `json:"-"`
16651
16652	// NullFields is a list of field names (e.g. "QueryTextSentiment") to
16653	// include in API requests with the JSON null value. By default, fields
16654	// with empty values are omitted from API requests. However, any field
16655	// with an empty value appearing in NullFields will be sent to the
16656	// server as null. It is an error if a field in this list has a
16657	// non-empty value. This may be used to include null fields in Patch
16658	// requests.
16659	NullFields []string `json:"-"`
16660}
16661
16662func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
16663	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
16664	raw := NoMethod(*s)
16665	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16666}
16667
16668// GoogleCloudDialogflowV2beta1SessionEntityType: A session represents a
16669// conversation between a Dialogflow agent and an end-user. You can
16670// create special entities, called session entities, during a session.
16671// Session entities can extend or replace custom entity types and only
16672// exist during the session that they were created for. All session
16673// data, including session entities, is stored by Dialogflow for 20
16674// minutes. For more information, see the session entity guide
16675// (https://cloud.google.com/dialogflow/docs/entities-session).
16676type GoogleCloudDialogflowV2beta1SessionEntityType struct {
16677	// Entities: Required. The collection of entities associated with this
16678	// session entity type.
16679	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
16680
16681	// EntityOverrideMode: Required. Indicates whether the additional data
16682	// should override or supplement the custom entity type definition.
16683	//
16684	// Possible values:
16685	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value
16686	// should be never used.
16687	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session
16688	// entities overrides the collection of entities in the corresponding
16689	// custom entity type.
16690	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session
16691	// entities extends the collection of entities in the corresponding
16692	// custom entity type. Note: Even in this override mode calls to
16693	// `ListSessionEntityTypes`, `GetSessionEntityType`,
16694	// `CreateSessionEntityType` and `UpdateSessionEntityType` only return
16695	// the additional entities added in this session entity type. If you
16696	// want to get the supplemented list, please call
16697	// EntityTypes.GetEntityType on the custom entity type and merge.
16698	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
16699
16700	// Name: Required. The unique identifier of this session entity type.
16701	// Supported formats: - `projects//agent/sessions//entityTypes/` -
16702	// `projects//locations//agent/sessions//entityTypes/` -
16703	// `projects//agent/environments//users//sessions//entityTypes/` -
16704	// `projects//locations//agent/environments/
16705	// /users//sessions//entityTypes/` If `Location ID` is not specified we
16706	// assume default 'us' location. If `Environment ID` is not specified,
16707	// we assume default 'draft' environment. If `User ID` is not specified,
16708	// we assume default '-' user. `` must be the display name of an
16709	// existing entity type in the same agent that will be overridden or
16710	// supplemented.
16711	Name string `json:"name,omitempty"`
16712
16713	// ServerResponse contains the HTTP response code and headers from the
16714	// server.
16715	googleapi.ServerResponse `json:"-"`
16716
16717	// ForceSendFields is a list of field names (e.g. "Entities") to
16718	// unconditionally include in API requests. By default, fields with
16719	// empty values are omitted from API requests. However, any non-pointer,
16720	// non-interface field appearing in ForceSendFields will be sent to the
16721	// server regardless of whether the field is empty or not. This may be
16722	// used to include empty fields in Patch requests.
16723	ForceSendFields []string `json:"-"`
16724
16725	// NullFields is a list of field names (e.g. "Entities") to include in
16726	// API requests with the JSON null value. By default, fields with empty
16727	// values are omitted from API requests. However, any field with an
16728	// empty value appearing in NullFields will be sent to the server as
16729	// null. It is an error if a field in this list has a non-empty value.
16730	// This may be used to include null fields in Patch requests.
16731	NullFields []string `json:"-"`
16732}
16733
16734func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
16735	type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
16736	raw := NoMethod(*s)
16737	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16738}
16739
16740// GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart
16741// reply answer.
16742type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
16743	// AnswerRecord: The name of answer record, in the format of
16744	// "projects//locations//answerRecords/"
16745	AnswerRecord string `json:"answerRecord,omitempty"`
16746
16747	// Confidence: Smart reply confidence. The system's confidence score
16748	// that this reply is a good match for this conversation, as a value
16749	// from 0.0 (completely uncertain) to 1.0 (completely certain).
16750	Confidence float64 `json:"confidence,omitempty"`
16751
16752	// Reply: The content of the reply.
16753	Reply string `json:"reply,omitempty"`
16754
16755	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
16756	// unconditionally include in API requests. By default, fields with
16757	// empty values are omitted from API requests. However, any non-pointer,
16758	// non-interface field appearing in ForceSendFields will be sent to the
16759	// server regardless of whether the field is empty or not. This may be
16760	// used to include empty fields in Patch requests.
16761	ForceSendFields []string `json:"-"`
16762
16763	// NullFields is a list of field names (e.g. "AnswerRecord") to include
16764	// in API requests with the JSON null value. By default, fields with
16765	// empty values are omitted from API requests. However, any field with
16766	// an empty value appearing in NullFields will be sent to the server as
16767	// null. It is an error if a field in this list has a non-empty value.
16768	// This may be used to include null fields in Patch requests.
16769	NullFields []string `json:"-"`
16770}
16771
16772func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
16773	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
16774	raw := NoMethod(*s)
16775	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16776}
16777
16778func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
16779	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
16780	var s1 struct {
16781		Confidence gensupport.JSONFloat64 `json:"confidence"`
16782		*NoMethod
16783	}
16784	s1.NoMethod = (*NoMethod)(s)
16785	if err := json.Unmarshal(data, &s1); err != nil {
16786		return err
16787	}
16788	s.Confidence = float64(s1.Confidence)
16789	return nil
16790}
16791
16792// GoogleCloudDialogflowV2beta1SpeechContext: Hints for the speech
16793// recognizer to help with recognition in a specific conversation state.
16794type GoogleCloudDialogflowV2beta1SpeechContext struct {
16795	// Boost: Optional. Boost for this context compared to other contexts: *
16796	// If the boost is positive, Dialogflow will increase the probability
16797	// that the phrases in this context are recognized over similar sounding
16798	// phrases. * If the boost is unspecified or non-positive, Dialogflow
16799	// will not apply any boost. Dialogflow recommends that you use boosts
16800	// in the range (0, 20] and that you find a value that fits your use
16801	// case with binary search.
16802	Boost float64 `json:"boost,omitempty"`
16803
16804	// Phrases: Optional. A list of strings containing words and phrases
16805	// that the speech recognizer should recognize with higher likelihood.
16806	// This list can be used to: * improve accuracy for words and phrases
16807	// you expect the user to say, e.g. typical commands for your Dialogflow
16808	// agent * add additional words to the speech recognizer vocabulary *
16809	// ... See the Cloud Speech documentation
16810	// (https://cloud.google.com/speech-to-text/quotas) for usage limits.
16811	Phrases []string `json:"phrases,omitempty"`
16812
16813	// ForceSendFields is a list of field names (e.g. "Boost") to
16814	// unconditionally include in API requests. By default, fields with
16815	// empty values are omitted from API requests. However, any non-pointer,
16816	// non-interface field appearing in ForceSendFields will be sent to the
16817	// server regardless of whether the field is empty or not. This may be
16818	// used to include empty fields in Patch requests.
16819	ForceSendFields []string `json:"-"`
16820
16821	// NullFields is a list of field names (e.g. "Boost") to include in API
16822	// requests with the JSON null value. By default, fields with empty
16823	// values are omitted from API requests. However, any field with an
16824	// empty value appearing in NullFields will be sent to the server as
16825	// null. It is an error if a field in this list has a non-empty value.
16826	// This may be used to include null fields in Patch requests.
16827	NullFields []string `json:"-"`
16828}
16829
16830func (s *GoogleCloudDialogflowV2beta1SpeechContext) MarshalJSON() ([]byte, error) {
16831	type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
16832	raw := NoMethod(*s)
16833	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16834}
16835
16836func (s *GoogleCloudDialogflowV2beta1SpeechContext) UnmarshalJSON(data []byte) error {
16837	type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
16838	var s1 struct {
16839		Boost gensupport.JSONFloat64 `json:"boost"`
16840		*NoMethod
16841	}
16842	s1.NoMethod = (*NoMethod)(s)
16843	if err := json.Unmarshal(data, &s1); err != nil {
16844		return err
16845	}
16846	s.Boost = float64(s1.Boost)
16847	return nil
16848}
16849
16850// GoogleCloudDialogflowV2beta1SpeechToTextConfig: Configures speech
16851// transcription for ConversationProfile.
16852type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct {
16853	// SpeechModelVariant: Optional. The speech model used in speech to
16854	// text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will
16855	// be treated as `USE_ENHANCED`. It can be overridden in
16856	// AnalyzeContentRequest and StreamingAnalyzeContentRequest request.
16857	//
16858	// Possible values:
16859	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
16860	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
16861	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
16862	// model that the caller is eligible for. Please see the [Dialogflow
16863	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
16864	// to make your project eligible for enhanced models.
16865	//   "USE_STANDARD" - Use standard model variant even if an enhanced
16866	// model is available. See the [Cloud Speech
16867	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
16868	// odels) for details about enhanced models.
16869	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
16870	// variant does not exist for the given model and request language,
16871	// Dialogflow falls back to the standard variant. The [Cloud Speech
16872	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
16873	// odels) describes which models have enhanced variants. * If the API
16874	// caller isn't eligible for enhanced models, Dialogflow returns an
16875	// error. Please see the [Dialogflow
16876	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
16877	// to make your project eligible.
16878	SpeechModelVariant string `json:"speechModelVariant,omitempty"`
16879
16880	// ForceSendFields is a list of field names (e.g. "SpeechModelVariant")
16881	// to unconditionally include in API requests. By default, fields with
16882	// empty values are omitted from API requests. However, any non-pointer,
16883	// non-interface field appearing in ForceSendFields will be sent to the
16884	// server regardless of whether the field is empty or not. This may be
16885	// used to include empty fields in Patch requests.
16886	ForceSendFields []string `json:"-"`
16887
16888	// NullFields is a list of field names (e.g. "SpeechModelVariant") to
16889	// include in API requests with the JSON null value. By default, fields
16890	// with empty values are omitted from API requests. However, any field
16891	// with an empty value appearing in NullFields will be sent to the
16892	// server as null. It is an error if a field in this list has a
16893	// non-empty value. This may be used to include null fields in Patch
16894	// requests.
16895	NullFields []string `json:"-"`
16896}
16897
16898func (s *GoogleCloudDialogflowV2beta1SpeechToTextConfig) MarshalJSON() ([]byte, error) {
16899	type NoMethod GoogleCloudDialogflowV2beta1SpeechToTextConfig
16900	raw := NoMethod(*s)
16901	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16902}
16903
16904// GoogleCloudDialogflowV2beta1SubAgent: Contains basic configuration
16905// for a sub-agent.
16906type GoogleCloudDialogflowV2beta1SubAgent struct {
16907	// Environment: Optional. The unique identifier (`environment name` in
16908	// dialogflow console) of this sub-agent environment. Assumes draft
16909	// environment if `environment` is not set.
16910	Environment string `json:"environment,omitempty"`
16911
16912	// Project: Required. The project of this agent. Format: `projects/` or
16913	// `projects//locations/`.
16914	Project string `json:"project,omitempty"`
16915
16916	// ForceSendFields is a list of field names (e.g. "Environment") to
16917	// unconditionally include in API requests. By default, fields with
16918	// empty values are omitted from API requests. However, any non-pointer,
16919	// non-interface field appearing in ForceSendFields will be sent to the
16920	// server regardless of whether the field is empty or not. This may be
16921	// used to include empty fields in Patch requests.
16922	ForceSendFields []string `json:"-"`
16923
16924	// NullFields is a list of field names (e.g. "Environment") to include
16925	// in API requests with the JSON null value. By default, fields with
16926	// empty values are omitted from API requests. However, any field with
16927	// an empty value appearing in NullFields will be sent to the server as
16928	// null. It is an error if a field in this list has a non-empty value.
16929	// This may be used to include null fields in Patch requests.
16930	NullFields []string `json:"-"`
16931}
16932
16933func (s *GoogleCloudDialogflowV2beta1SubAgent) MarshalJSON() ([]byte, error) {
16934	type NoMethod GoogleCloudDialogflowV2beta1SubAgent
16935	raw := NoMethod(*s)
16936	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16937}
16938
16939// GoogleCloudDialogflowV2beta1SuggestArticlesRequest: The request
16940// message for Participants.SuggestArticles.
16941type GoogleCloudDialogflowV2beta1SuggestArticlesRequest struct {
16942	// ContextSize: Optional. Max number of messages prior to and including
16943	// latest_message to use as context when compiling the suggestion. By
16944	// default 20 and at most 50.
16945	ContextSize int64 `json:"contextSize,omitempty"`
16946
16947	// LatestMessage: Optional. The name of the latest conversation message
16948	// to compile suggestion for. If empty, it will be the latest message of
16949	// the conversation. Format:
16950	// `projects//locations//conversations//messages/`.
16951	LatestMessage string `json:"latestMessage,omitempty"`
16952
16953	// ForceSendFields is a list of field names (e.g. "ContextSize") to
16954	// unconditionally include in API requests. By default, fields with
16955	// empty values are omitted from API requests. However, any non-pointer,
16956	// non-interface field appearing in ForceSendFields will be sent to the
16957	// server regardless of whether the field is empty or not. This may be
16958	// used to include empty fields in Patch requests.
16959	ForceSendFields []string `json:"-"`
16960
16961	// NullFields is a list of field names (e.g. "ContextSize") to include
16962	// in API requests with the JSON null value. By default, fields with
16963	// empty values are omitted from API requests. However, any field with
16964	// an empty value appearing in NullFields will be sent to the server as
16965	// null. It is an error if a field in this list has a non-empty value.
16966	// This may be used to include null fields in Patch requests.
16967	NullFields []string `json:"-"`
16968}
16969
16970func (s *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) MarshalJSON() ([]byte, error) {
16971	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesRequest
16972	raw := NoMethod(*s)
16973	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16974}
16975
16976// GoogleCloudDialogflowV2beta1SuggestArticlesResponse: The response
16977// message for Participants.SuggestArticles.
16978type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
16979	// ArticleAnswers: Output only. Articles ordered by score in descending
16980	// order.
16981	ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
16982
16983	// ContextSize: Number of messages prior to and including latest_message
16984	// to compile the suggestion. It may be smaller than the
16985	// SuggestArticlesResponse.context_size field in the request if there
16986	// aren't that many messages in the conversation.
16987	ContextSize int64 `json:"contextSize,omitempty"`
16988
16989	// LatestMessage: The name of the latest conversation message used to
16990	// compile suggestion for. Format:
16991	// `projects//locations//conversations//messages/`.
16992	LatestMessage string `json:"latestMessage,omitempty"`
16993
16994	// ServerResponse contains the HTTP response code and headers from the
16995	// server.
16996	googleapi.ServerResponse `json:"-"`
16997
16998	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
16999	// unconditionally include in API requests. By default, fields with
17000	// empty values are omitted from API requests. However, any non-pointer,
17001	// non-interface field appearing in ForceSendFields will be sent to the
17002	// server regardless of whether the field is empty or not. This may be
17003	// used to include empty fields in Patch requests.
17004	ForceSendFields []string `json:"-"`
17005
17006	// NullFields is a list of field names (e.g. "ArticleAnswers") to
17007	// include in API requests with the JSON null value. By default, fields
17008	// with empty values are omitted from API requests. However, any field
17009	// with an empty value appearing in NullFields will be sent to the
17010	// server as null. It is an error if a field in this list has a
17011	// non-empty value. This may be used to include null fields in Patch
17012	// requests.
17013	NullFields []string `json:"-"`
17014}
17015
17016func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
17017	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
17018	raw := NoMethod(*s)
17019	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17020}
17021
17022// GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest: The request
17023// message for Participants.SuggestFaqAnswers.
17024type GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest struct {
17025	// ContextSize: Optional. Max number of messages prior to and including
17026	// [latest_message] to use as context when compiling the suggestion. By
17027	// default 20 and at most 50.
17028	ContextSize int64 `json:"contextSize,omitempty"`
17029
17030	// LatestMessage: Optional. The name of the latest conversation message
17031	// to compile suggestion for. If empty, it will be the latest message of
17032	// the conversation. Format:
17033	// `projects//locations//conversations//messages/`.
17034	LatestMessage string `json:"latestMessage,omitempty"`
17035
17036	// ForceSendFields is a list of field names (e.g. "ContextSize") to
17037	// unconditionally include in API requests. By default, fields with
17038	// empty values are omitted from API requests. However, any non-pointer,
17039	// non-interface field appearing in ForceSendFields will be sent to the
17040	// server regardless of whether the field is empty or not. This may be
17041	// used to include empty fields in Patch requests.
17042	ForceSendFields []string `json:"-"`
17043
17044	// NullFields is a list of field names (e.g. "ContextSize") to include
17045	// in API requests with the JSON null value. By default, fields with
17046	// empty values are omitted from API requests. However, any field with
17047	// an empty value appearing in NullFields will be sent to the server as
17048	// null. It is an error if a field in this list has a non-empty value.
17049	// This may be used to include null fields in Patch requests.
17050	NullFields []string `json:"-"`
17051}
17052
17053func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) MarshalJSON() ([]byte, error) {
17054	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
17055	raw := NoMethod(*s)
17056	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17057}
17058
17059// GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: The request
17060// message for Participants.SuggestFaqAnswers.
17061type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
17062	// ContextSize: Number of messages prior to and including latest_message
17063	// to compile the suggestion. It may be smaller than the
17064	// SuggestFaqAnswersRequest.context_size field in the request if there
17065	// aren't that many messages in the conversation.
17066	ContextSize int64 `json:"contextSize,omitempty"`
17067
17068	// FaqAnswers: Output only. Answers extracted from FAQ documents.
17069	FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
17070
17071	// LatestMessage: The name of the latest conversation message used to
17072	// compile suggestion for. Format:
17073	// `projects//locations//conversations//messages/`.
17074	LatestMessage string `json:"latestMessage,omitempty"`
17075
17076	// ServerResponse contains the HTTP response code and headers from the
17077	// server.
17078	googleapi.ServerResponse `json:"-"`
17079
17080	// ForceSendFields is a list of field names (e.g. "ContextSize") to
17081	// unconditionally include in API requests. By default, fields with
17082	// empty values are omitted from API requests. However, any non-pointer,
17083	// non-interface field appearing in ForceSendFields will be sent to the
17084	// server regardless of whether the field is empty or not. This may be
17085	// used to include empty fields in Patch requests.
17086	ForceSendFields []string `json:"-"`
17087
17088	// NullFields is a list of field names (e.g. "ContextSize") to include
17089	// in API requests with the JSON null value. By default, fields with
17090	// empty values are omitted from API requests. However, any field with
17091	// an empty value appearing in NullFields will be sent to the server as
17092	// null. It is an error if a field in this list has a non-empty value.
17093	// This may be used to include null fields in Patch requests.
17094	NullFields []string `json:"-"`
17095}
17096
17097func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
17098	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
17099	raw := NoMethod(*s)
17100	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17101}
17102
17103// GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest: The request
17104// message for Participants.SuggestSmartReplies.
17105type GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest struct {
17106	// ContextSize: Optional. Max number of messages prior to and including
17107	// [latest_message] to use as context when compiling the suggestion. By
17108	// default 20 and at most 50.
17109	ContextSize int64 `json:"contextSize,omitempty"`
17110
17111	// CurrentTextInput: The current natural language text segment to
17112	// compile suggestion for. This provides a way for user to get follow up
17113	// smart reply suggestion after a smart reply selection, without sending
17114	// a text message.
17115	CurrentTextInput *GoogleCloudDialogflowV2beta1TextInput `json:"currentTextInput,omitempty"`
17116
17117	// LatestMessage: The name of the latest conversation message to compile
17118	// suggestion for. If empty, it will be the latest message of the
17119	// conversation. Format:
17120	// `projects//locations//conversations//messages/`.
17121	LatestMessage string `json:"latestMessage,omitempty"`
17122
17123	// ForceSendFields is a list of field names (e.g. "ContextSize") to
17124	// unconditionally include in API requests. By default, fields with
17125	// empty values are omitted from API requests. However, any non-pointer,
17126	// non-interface field appearing in ForceSendFields will be sent to the
17127	// server regardless of whether the field is empty or not. This may be
17128	// used to include empty fields in Patch requests.
17129	ForceSendFields []string `json:"-"`
17130
17131	// NullFields is a list of field names (e.g. "ContextSize") to include
17132	// in API requests with the JSON null value. By default, fields with
17133	// empty values are omitted from API requests. However, any field with
17134	// an empty value appearing in NullFields will be sent to the server as
17135	// null. It is an error if a field in this list has a non-empty value.
17136	// This may be used to include null fields in Patch requests.
17137	NullFields []string `json:"-"`
17138}
17139
17140func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) MarshalJSON() ([]byte, error) {
17141	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
17142	raw := NoMethod(*s)
17143	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17144}
17145
17146// GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse: The response
17147// message for Participants.SuggestSmartReplies.
17148type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
17149	// ContextSize: Number of messages prior to and including latest_message
17150	// to compile the suggestion. It may be smaller than the
17151	// SuggestSmartRepliesRequest.context_size field in the request if there
17152	// aren't that many messages in the conversation.
17153	ContextSize int64 `json:"contextSize,omitempty"`
17154
17155	// LatestMessage: The name of the latest conversation message used to
17156	// compile suggestion for. Format:
17157	// `projects//locations//conversations//messages/`.
17158	LatestMessage string `json:"latestMessage,omitempty"`
17159
17160	// SmartReplyAnswers: Output only. Multiple reply options provided by
17161	// smart reply service. The order is based on the rank of the model
17162	// prediction. The maximum number of the returned replies is set in
17163	// SmartReplyConfig.
17164	SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
17165
17166	// ServerResponse contains the HTTP response code and headers from the
17167	// server.
17168	googleapi.ServerResponse `json:"-"`
17169
17170	// ForceSendFields is a list of field names (e.g. "ContextSize") to
17171	// unconditionally include in API requests. By default, fields with
17172	// empty values are omitted from API requests. However, any non-pointer,
17173	// non-interface field appearing in ForceSendFields will be sent to the
17174	// server regardless of whether the field is empty or not. This may be
17175	// used to include empty fields in Patch requests.
17176	ForceSendFields []string `json:"-"`
17177
17178	// NullFields is a list of field names (e.g. "ContextSize") to include
17179	// in API requests with the JSON null value. By default, fields with
17180	// empty values are omitted from API requests. However, any field with
17181	// an empty value appearing in NullFields will be sent to the server as
17182	// null. It is an error if a field in this list has a non-empty value.
17183	// This may be used to include null fields in Patch requests.
17184	NullFields []string `json:"-"`
17185}
17186
17187func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
17188	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
17189	raw := NoMethod(*s)
17190	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17191}
17192
17193// GoogleCloudDialogflowV2beta1Suggestion: Represents a suggestion for a
17194// human agent.
17195type GoogleCloudDialogflowV2beta1Suggestion struct {
17196	// Articles: Output only. Articles ordered by score in descending order.
17197	Articles []*GoogleCloudDialogflowV2beta1SuggestionArticle `json:"articles,omitempty"`
17198
17199	// CreateTime: Output only. The time the suggestion was created.
17200	CreateTime string `json:"createTime,omitempty"`
17201
17202	// FaqAnswers: Output only. Answers extracted from FAQ documents.
17203	FaqAnswers []*GoogleCloudDialogflowV2beta1SuggestionFaqAnswer `json:"faqAnswers,omitempty"`
17204
17205	// LatestMessage: Output only. Latest message used as context to compile
17206	// this suggestion. Format:
17207	// `projects//locations//conversations//messages/`.
17208	LatestMessage string `json:"latestMessage,omitempty"`
17209
17210	// Name: Output only. The name of this suggestion. Format:
17211	// `projects//locations//conversations//participants/*/suggestions/`.
17212	Name string `json:"name,omitempty"`
17213
17214	// ForceSendFields is a list of field names (e.g. "Articles") to
17215	// unconditionally include in API requests. By default, fields with
17216	// empty values are omitted from API requests. However, any non-pointer,
17217	// non-interface field appearing in ForceSendFields will be sent to the
17218	// server regardless of whether the field is empty or not. This may be
17219	// used to include empty fields in Patch requests.
17220	ForceSendFields []string `json:"-"`
17221
17222	// NullFields is a list of field names (e.g. "Articles") to include in
17223	// API requests with the JSON null value. By default, fields with empty
17224	// values are omitted from API requests. However, any field with an
17225	// empty value appearing in NullFields will be sent to the server as
17226	// null. It is an error if a field in this list has a non-empty value.
17227	// This may be used to include null fields in Patch requests.
17228	NullFields []string `json:"-"`
17229}
17230
17231func (s *GoogleCloudDialogflowV2beta1Suggestion) MarshalJSON() ([]byte, error) {
17232	type NoMethod GoogleCloudDialogflowV2beta1Suggestion
17233	raw := NoMethod(*s)
17234	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17235}
17236
17237// GoogleCloudDialogflowV2beta1SuggestionArticle: Represents suggested
17238// article.
17239type GoogleCloudDialogflowV2beta1SuggestionArticle struct {
17240	// AnswerRecord: Output only. The name of answer record, in the format
17241	// of "projects//locations//answerRecords/"
17242	AnswerRecord string `json:"answerRecord,omitempty"`
17243
17244	// Metadata: Output only. A map that contains metadata about the answer
17245	// and the document from which it originates.
17246	Metadata map[string]string `json:"metadata,omitempty"`
17247
17248	// Snippets: Output only. Article snippets.
17249	Snippets []string `json:"snippets,omitempty"`
17250
17251	// Title: Output only. The article title.
17252	Title string `json:"title,omitempty"`
17253
17254	// Uri: Output only. The article URI.
17255	Uri string `json:"uri,omitempty"`
17256
17257	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
17258	// unconditionally include in API requests. By default, fields with
17259	// empty values are omitted from API requests. However, any non-pointer,
17260	// non-interface field appearing in ForceSendFields will be sent to the
17261	// server regardless of whether the field is empty or not. This may be
17262	// used to include empty fields in Patch requests.
17263	ForceSendFields []string `json:"-"`
17264
17265	// NullFields is a list of field names (e.g. "AnswerRecord") to include
17266	// in API requests with the JSON null value. By default, fields with
17267	// empty values are omitted from API requests. However, any field with
17268	// an empty value appearing in NullFields will be sent to the server as
17269	// null. It is an error if a field in this list has a non-empty value.
17270	// This may be used to include null fields in Patch requests.
17271	NullFields []string `json:"-"`
17272}
17273
17274func (s *GoogleCloudDialogflowV2beta1SuggestionArticle) MarshalJSON() ([]byte, error) {
17275	type NoMethod GoogleCloudDialogflowV2beta1SuggestionArticle
17276	raw := NoMethod(*s)
17277	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17278}
17279
17280// GoogleCloudDialogflowV2beta1SuggestionFaqAnswer: Represents suggested
17281// answer from "frequently asked questions".
17282type GoogleCloudDialogflowV2beta1SuggestionFaqAnswer struct {
17283	// Answer: Output only. The piece of text from the `source` knowledge
17284	// base document.
17285	Answer string `json:"answer,omitempty"`
17286
17287	// AnswerRecord: Output only. The name of answer record, in the format
17288	// of "projects//locations//answerRecords/"
17289	AnswerRecord string `json:"answerRecord,omitempty"`
17290
17291	// Confidence: The system's confidence score that this Knowledge answer
17292	// is a good match for this conversational query, range from 0.0
17293	// (completely uncertain) to 1.0 (completely certain).
17294	Confidence float64 `json:"confidence,omitempty"`
17295
17296	// Metadata: Output only. A map that contains metadata about the answer
17297	// and the document from which it originates.
17298	Metadata map[string]string `json:"metadata,omitempty"`
17299
17300	// Question: Output only. The corresponding FAQ question.
17301	Question string `json:"question,omitempty"`
17302
17303	// Source: Output only. Indicates which Knowledge Document this answer
17304	// was extracted from. Format:
17305	// `projects//locations//agent/knowledgeBases//documents/`.
17306	Source string `json:"source,omitempty"`
17307
17308	// ForceSendFields is a list of field names (e.g. "Answer") to
17309	// unconditionally include in API requests. By default, fields with
17310	// empty values are omitted from API requests. However, any non-pointer,
17311	// non-interface field appearing in ForceSendFields will be sent to the
17312	// server regardless of whether the field is empty or not. This may be
17313	// used to include empty fields in Patch requests.
17314	ForceSendFields []string `json:"-"`
17315
17316	// NullFields is a list of field names (e.g. "Answer") to include in API
17317	// requests with the JSON null value. By default, fields with empty
17318	// values are omitted from API requests. However, any field with an
17319	// empty value appearing in NullFields will be sent to the server as
17320	// null. It is an error if a field in this list has a non-empty value.
17321	// This may be used to include null fields in Patch requests.
17322	NullFields []string `json:"-"`
17323}
17324
17325func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) MarshalJSON() ([]byte, error) {
17326	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
17327	raw := NoMethod(*s)
17328	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17329}
17330
17331func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) UnmarshalJSON(data []byte) error {
17332	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
17333	var s1 struct {
17334		Confidence gensupport.JSONFloat64 `json:"confidence"`
17335		*NoMethod
17336	}
17337	s1.NoMethod = (*NoMethod)(s)
17338	if err := json.Unmarshal(data, &s1); err != nil {
17339		return err
17340	}
17341	s.Confidence = float64(s1.Confidence)
17342	return nil
17343}
17344
17345// GoogleCloudDialogflowV2beta1SuggestionFeature: The type of Human
17346// Agent Assistant API suggestion to perform, and the maximum number of
17347// results to return for that type. Multiple `Feature` objects can be
17348// specified in the `features` list.
17349type GoogleCloudDialogflowV2beta1SuggestionFeature struct {
17350	// Type: Type of Human Agent Assistant API feature to request.
17351	//
17352	// Possible values:
17353	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
17354	//   "ARTICLE_SUGGESTION" - Run article suggestion model.
17355	//   "FAQ" - Run FAQ model.
17356	//   "SMART_REPLY" - Run smart reply model.
17357	Type string `json:"type,omitempty"`
17358
17359	// ForceSendFields is a list of field names (e.g. "Type") to
17360	// unconditionally include in API requests. By default, fields with
17361	// empty values are omitted from API requests. However, any non-pointer,
17362	// non-interface field appearing in ForceSendFields will be sent to the
17363	// server regardless of whether the field is empty or not. This may be
17364	// used to include empty fields in Patch requests.
17365	ForceSendFields []string `json:"-"`
17366
17367	// NullFields is a list of field names (e.g. "Type") to include in API
17368	// requests with the JSON null value. By default, fields with empty
17369	// values are omitted from API requests. However, any field with an
17370	// empty value appearing in NullFields will be sent to the server as
17371	// null. It is an error if a field in this list has a non-empty value.
17372	// This may be used to include null fields in Patch requests.
17373	NullFields []string `json:"-"`
17374}
17375
17376func (s *GoogleCloudDialogflowV2beta1SuggestionFeature) MarshalJSON() ([]byte, error) {
17377	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFeature
17378	raw := NoMethod(*s)
17379	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17380}
17381
17382// GoogleCloudDialogflowV2beta1SuggestionResult: One response of
17383// different type of suggestion response which is used in the response
17384// of Participants.AnalyzeContent and Participants.AnalyzeContent, as
17385// well as HumanAgentAssistantEvent.
17386type GoogleCloudDialogflowV2beta1SuggestionResult struct {
17387	// Error: Error status if the request failed.
17388	Error *GoogleRpcStatus `json:"error,omitempty"`
17389
17390	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
17391	// ARTICLE_SUGGESTION.
17392	SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
17393
17394	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is
17395	// for FAQ_ANSWER.
17396	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
17397
17398	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request
17399	// is for SMART_REPLY.
17400	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
17401
17402	// ForceSendFields is a list of field names (e.g. "Error") to
17403	// unconditionally include in API requests. By default, fields with
17404	// empty values are omitted from API requests. However, any non-pointer,
17405	// non-interface field appearing in ForceSendFields will be sent to the
17406	// server regardless of whether the field is empty or not. This may be
17407	// used to include empty fields in Patch requests.
17408	ForceSendFields []string `json:"-"`
17409
17410	// NullFields is a list of field names (e.g. "Error") to include in API
17411	// requests with the JSON null value. By default, fields with empty
17412	// values are omitted from API requests. However, any field with an
17413	// empty value appearing in NullFields will be sent to the server as
17414	// null. It is an error if a field in this list has a non-empty value.
17415	// This may be used to include null fields in Patch requests.
17416	NullFields []string `json:"-"`
17417}
17418
17419func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
17420	type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
17421	raw := NoMethod(*s)
17422	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17423}
17424
17425// GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig: Configuration of
17426// how speech should be synthesized.
17427type GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig struct {
17428	// EffectsProfileId: Optional. An identifier which selects 'audio
17429	// effects' profiles that are applied on (post synthesized) text to
17430	// speech. Effects are applied on top of each other in the order they
17431	// are given.
17432	EffectsProfileId []string `json:"effectsProfileId,omitempty"`
17433
17434	// Pitch: Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means
17435	// increase 20 semitones from the original pitch. -20 means decrease 20
17436	// semitones from the original pitch.
17437	Pitch float64 `json:"pitch,omitempty"`
17438
17439	// SpeakingRate: Optional. Speaking rate/speed, in the range [0.25,
17440	// 4.0]. 1.0 is the normal native speed supported by the specific voice.
17441	// 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0),
17442	// defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0
17443	// will return an error.
17444	SpeakingRate float64 `json:"speakingRate,omitempty"`
17445
17446	// Voice: Optional. The desired voice of the synthesized audio.
17447	Voice *GoogleCloudDialogflowV2beta1VoiceSelectionParams `json:"voice,omitempty"`
17448
17449	// VolumeGainDb: Optional. Volume gain (in dB) of the normal native
17450	// volume supported by the specific voice, in the range [-96.0, 16.0].
17451	// If unset, or set to a value of 0.0 (dB), will play at normal native
17452	// signal amplitude. A value of -6.0 (dB) will play at approximately
17453	// half the amplitude of the normal native signal amplitude. A value of
17454	// +6.0 (dB) will play at approximately twice the amplitude of the
17455	// normal native signal amplitude. We strongly recommend not to exceed
17456	// +10 (dB) as there's usually no effective increase in loudness for any
17457	// value greater than that.
17458	VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
17459
17460	// ForceSendFields is a list of field names (e.g. "EffectsProfileId") to
17461	// unconditionally include in API requests. By default, fields with
17462	// empty values are omitted from API requests. However, any non-pointer,
17463	// non-interface field appearing in ForceSendFields will be sent to the
17464	// server regardless of whether the field is empty or not. This may be
17465	// used to include empty fields in Patch requests.
17466	ForceSendFields []string `json:"-"`
17467
17468	// NullFields is a list of field names (e.g. "EffectsProfileId") to
17469	// include in API requests with the JSON null value. By default, fields
17470	// with empty values are omitted from API requests. However, any field
17471	// with an empty value appearing in NullFields will be sent to the
17472	// server as null. It is an error if a field in this list has a
17473	// non-empty value. This may be used to include null fields in Patch
17474	// requests.
17475	NullFields []string `json:"-"`
17476}
17477
17478func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
17479	type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
17480	raw := NoMethod(*s)
17481	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17482}
17483
17484func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
17485	type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
17486	var s1 struct {
17487		Pitch        gensupport.JSONFloat64 `json:"pitch"`
17488		SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
17489		VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
17490		*NoMethod
17491	}
17492	s1.NoMethod = (*NoMethod)(s)
17493	if err := json.Unmarshal(data, &s1); err != nil {
17494		return err
17495	}
17496	s.Pitch = float64(s1.Pitch)
17497	s.SpeakingRate = float64(s1.SpeakingRate)
17498	s.VolumeGainDb = float64(s1.VolumeGainDb)
17499	return nil
17500}
17501
17502// GoogleCloudDialogflowV2beta1TelephonyDtmfEvents: A wrapper of
17503// repeated TelephonyDtmf digits.
17504type GoogleCloudDialogflowV2beta1TelephonyDtmfEvents struct {
17505	// DtmfEvents: A sequence of TelephonyDtmf digits.
17506	//
17507	// Possible values:
17508	//   "TELEPHONY_DTMF_UNSPECIFIED" - Not specified. This value may be
17509	// used to indicate an absent digit.
17510	//   "DTMF_ONE" - Number: '1'.
17511	//   "DTMF_TWO" - Number: '2'.
17512	//   "DTMF_THREE" - Number: '3'.
17513	//   "DTMF_FOUR" - Number: '4'.
17514	//   "DTMF_FIVE" - Number: '5'.
17515	//   "DTMF_SIX" - Number: '6'.
17516	//   "DTMF_SEVEN" - Number: '7'.
17517	//   "DTMF_EIGHT" - Number: '8'.
17518	//   "DTMF_NINE" - Number: '9'.
17519	//   "DTMF_ZERO" - Number: '0'.
17520	//   "DTMF_A" - Letter: 'A'.
17521	//   "DTMF_B" - Letter: 'B'.
17522	//   "DTMF_C" - Letter: 'C'.
17523	//   "DTMF_D" - Letter: 'D'.
17524	//   "DTMF_STAR" - Asterisk/star: '*'.
17525	//   "DTMF_POUND" - Pound/diamond/hash/square/gate/octothorpe: '#'.
17526	DtmfEvents []string `json:"dtmfEvents,omitempty"`
17527
17528	// ForceSendFields is a list of field names (e.g. "DtmfEvents") to
17529	// unconditionally include in API requests. By default, fields with
17530	// empty values are omitted from API requests. However, any non-pointer,
17531	// non-interface field appearing in ForceSendFields will be sent to the
17532	// server regardless of whether the field is empty or not. This may be
17533	// used to include empty fields in Patch requests.
17534	ForceSendFields []string `json:"-"`
17535
17536	// NullFields is a list of field names (e.g. "DtmfEvents") to include in
17537	// API requests with the JSON null value. By default, fields with empty
17538	// values are omitted from API requests. However, any field with an
17539	// empty value appearing in NullFields will be sent to the server as
17540	// null. It is an error if a field in this list has a non-empty value.
17541	// This may be used to include null fields in Patch requests.
17542	NullFields []string `json:"-"`
17543}
17544
17545func (s *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents) MarshalJSON() ([]byte, error) {
17546	type NoMethod GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
17547	raw := NoMethod(*s)
17548	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17549}
17550
17551// GoogleCloudDialogflowV2beta1TextInput: Represents the natural
17552// language text to be processed.
17553type GoogleCloudDialogflowV2beta1TextInput struct {
17554	// LanguageCode: Required. The language of this conversational query.
17555	// See Language Support
17556	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
17557	// list of the currently supported language codes. Note that queries in
17558	// the same session do not necessarily need to specify the same
17559	// language.
17560	LanguageCode string `json:"languageCode,omitempty"`
17561
17562	// Text: Required. The UTF-8 encoded natural language text to be
17563	// processed. Text length must not exceed 256 characters.
17564	Text string `json:"text,omitempty"`
17565
17566	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
17567	// unconditionally include in API requests. By default, fields with
17568	// empty values are omitted from API requests. However, any non-pointer,
17569	// non-interface field appearing in ForceSendFields will be sent to the
17570	// server regardless of whether the field is empty or not. This may be
17571	// used to include empty fields in Patch requests.
17572	ForceSendFields []string `json:"-"`
17573
17574	// NullFields is a list of field names (e.g. "LanguageCode") to include
17575	// in API requests with the JSON null value. By default, fields with
17576	// empty values are omitted from API requests. However, any field with
17577	// an empty value appearing in NullFields will be sent to the server as
17578	// null. It is an error if a field in this list has a non-empty value.
17579	// This may be used to include null fields in Patch requests.
17580	NullFields []string `json:"-"`
17581}
17582
17583func (s *GoogleCloudDialogflowV2beta1TextInput) MarshalJSON() ([]byte, error) {
17584	type NoMethod GoogleCloudDialogflowV2beta1TextInput
17585	raw := NoMethod(*s)
17586	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17587}
17588
17589// GoogleCloudDialogflowV2beta1TextToSpeechSettings: Instructs the
17590// speech synthesizer on how to generate the output audio content.
17591type GoogleCloudDialogflowV2beta1TextToSpeechSettings struct {
17592	// EnableTextToSpeech: Optional. Indicates whether text to speech is
17593	// enabled. Even when this field is false, other settings in this proto
17594	// are still retained.
17595	EnableTextToSpeech bool `json:"enableTextToSpeech,omitempty"`
17596
17597	// OutputAudioEncoding: Required. Audio encoding of the synthesized
17598	// audio content.
17599	//
17600	// Possible values:
17601	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
17602	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
17603	// little-endian samples (Linear PCM). Audio content returned as
17604	// LINEAR16 also contains a WAV header.
17605	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
17606	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
17607	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an
17608	// ogg container. The result will be a file which can be played natively
17609	// on Android, and in browsers (at least Chrome and Firefox). The
17610	// quality of the encoding is considerably higher than MP3 while using
17611	// approximately the same bitrate.
17612	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit
17613	// audio samples using G.711 PCMU/mu-law.
17614	OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"`
17615
17616	// SampleRateHertz: Optional. The synthesis sample rate (in hertz) for
17617	// this audio. If not provided, then the synthesizer will use the
17618	// default sample rate based on the audio encoding. If this is different
17619	// from the voice's natural sample rate, then the synthesizer will honor
17620	// this request by converting to the desired sample rate (which might
17621	// result in worse audio quality).
17622	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
17623
17624	// SynthesizeSpeechConfigs: Optional. Configuration of how speech should
17625	// be synthesized, mapping from language
17626	// (https://cloud.google.com/dialogflow/docs/reference/language) to
17627	// SynthesizeSpeechConfig.
17628	SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
17629
17630	// ForceSendFields is a list of field names (e.g. "EnableTextToSpeech")
17631	// to unconditionally include in API requests. By default, fields with
17632	// empty values are omitted from API requests. However, any non-pointer,
17633	// non-interface field appearing in ForceSendFields will be sent to the
17634	// server regardless of whether the field is empty or not. This may be
17635	// used to include empty fields in Patch requests.
17636	ForceSendFields []string `json:"-"`
17637
17638	// NullFields is a list of field names (e.g. "EnableTextToSpeech") to
17639	// include in API requests with the JSON null value. By default, fields
17640	// with empty values are omitted from API requests. However, any field
17641	// with an empty value appearing in NullFields will be sent to the
17642	// server as null. It is an error if a field in this list has a
17643	// non-empty value. This may be used to include null fields in Patch
17644	// requests.
17645	NullFields []string `json:"-"`
17646}
17647
17648func (s *GoogleCloudDialogflowV2beta1TextToSpeechSettings) MarshalJSON() ([]byte, error) {
17649	type NoMethod GoogleCloudDialogflowV2beta1TextToSpeechSettings
17650	raw := NoMethod(*s)
17651	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17652}
17653
17654// GoogleCloudDialogflowV2beta1TrainAgentRequest: The request message
17655// for Agents.TrainAgent.
17656type GoogleCloudDialogflowV2beta1TrainAgentRequest struct {
17657}
17658
17659// GoogleCloudDialogflowV2beta1ValidationError: Represents a single
17660// validation error.
17661type GoogleCloudDialogflowV2beta1ValidationError struct {
17662	// Entries: The names of the entries that the error is associated with.
17663	// Format: - "projects//agent", if the error is associated with the
17664	// entire agent. - "projects//agent/intents/", if the error is
17665	// associated with certain intents. -
17666	// "projects//agent/intents//trainingPhrases/", if the error is
17667	// associated with certain intent training phrases. -
17668	// "projects//agent/intents//parameters/", if the error is associated
17669	// with certain intent parameters. - "projects//agent/entities/", if the
17670	// error is associated with certain entities.
17671	Entries []string `json:"entries,omitempty"`
17672
17673	// ErrorMessage: The detailed error messsage.
17674	ErrorMessage string `json:"errorMessage,omitempty"`
17675
17676	// Severity: The severity of the error.
17677	//
17678	// Possible values:
17679	//   "SEVERITY_UNSPECIFIED" - Not specified. This value should never be
17680	// used.
17681	//   "INFO" - The agent doesn't follow Dialogflow best practices.
17682	//   "WARNING" - The agent may not behave as expected.
17683	//   "ERROR" - The agent may experience partial failures.
17684	//   "CRITICAL" - The agent may completely fail.
17685	Severity string `json:"severity,omitempty"`
17686
17687	// ForceSendFields is a list of field names (e.g. "Entries") to
17688	// unconditionally include in API requests. By default, fields with
17689	// empty values are omitted from API requests. However, any non-pointer,
17690	// non-interface field appearing in ForceSendFields will be sent to the
17691	// server regardless of whether the field is empty or not. This may be
17692	// used to include empty fields in Patch requests.
17693	ForceSendFields []string `json:"-"`
17694
17695	// NullFields is a list of field names (e.g. "Entries") to include in
17696	// API requests with the JSON null value. By default, fields with empty
17697	// values are omitted from API requests. However, any field with an
17698	// empty value appearing in NullFields will be sent to the server as
17699	// null. It is an error if a field in this list has a non-empty value.
17700	// This may be used to include null fields in Patch requests.
17701	NullFields []string `json:"-"`
17702}
17703
17704func (s *GoogleCloudDialogflowV2beta1ValidationError) MarshalJSON() ([]byte, error) {
17705	type NoMethod GoogleCloudDialogflowV2beta1ValidationError
17706	raw := NoMethod(*s)
17707	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17708}
17709
17710// GoogleCloudDialogflowV2beta1ValidationResult: Represents the output
17711// of agent validation.
17712type GoogleCloudDialogflowV2beta1ValidationResult struct {
17713	// ValidationErrors: Contains all validation errors.
17714	ValidationErrors []*GoogleCloudDialogflowV2beta1ValidationError `json:"validationErrors,omitempty"`
17715
17716	// ServerResponse contains the HTTP response code and headers from the
17717	// server.
17718	googleapi.ServerResponse `json:"-"`
17719
17720	// ForceSendFields is a list of field names (e.g. "ValidationErrors") to
17721	// unconditionally include in API requests. By default, fields with
17722	// empty values are omitted from API requests. However, any non-pointer,
17723	// non-interface field appearing in ForceSendFields will be sent to the
17724	// server regardless of whether the field is empty or not. This may be
17725	// used to include empty fields in Patch requests.
17726	ForceSendFields []string `json:"-"`
17727
17728	// NullFields is a list of field names (e.g. "ValidationErrors") to
17729	// include in API requests with the JSON null value. By default, fields
17730	// with empty values are omitted from API requests. However, any field
17731	// with an empty value appearing in NullFields will be sent to the
17732	// server as null. It is an error if a field in this list has a
17733	// non-empty value. This may be used to include null fields in Patch
17734	// requests.
17735	NullFields []string `json:"-"`
17736}
17737
17738func (s *GoogleCloudDialogflowV2beta1ValidationResult) MarshalJSON() ([]byte, error) {
17739	type NoMethod GoogleCloudDialogflowV2beta1ValidationResult
17740	raw := NoMethod(*s)
17741	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17742}
17743
17744// GoogleCloudDialogflowV2beta1Version: You can create multiple versions
17745// of your agent and publish them to separate environments. When you
17746// edit an agent, you are editing the draft agent. At any point, you can
17747// save the draft agent as an agent version, which is an immutable
17748// snapshot of your agent. When you save the draft agent, it is
17749// published to the default environment. When you create agent versions,
17750// you can publish them to custom environments. You can create a variety
17751// of custom environments for: - testing - development - production -
17752// etc. For more information, see the versions and environments guide
17753// (https://cloud.google.com/dialogflow/docs/agents-versions).
17754type GoogleCloudDialogflowV2beta1Version struct {
17755	// CreateTime: Output only. The creation time of this version. This
17756	// field is read-only, i.e., it cannot be set by create and update
17757	// methods.
17758	CreateTime string `json:"createTime,omitempty"`
17759
17760	// Description: Optional. The developer-provided description of this
17761	// version.
17762	Description string `json:"description,omitempty"`
17763
17764	// Name: Output only. The unique identifier of this agent version.
17765	// Supported formats: - `projects//agent/versions/` -
17766	// `projects//locations//agent/versions/`
17767	Name string `json:"name,omitempty"`
17768
17769	// Status: Output only. The status of this version. This field is
17770	// read-only and cannot be set by create and update methods.
17771	//
17772	// Possible values:
17773	//   "VERSION_STATUS_UNSPECIFIED" - Not specified. This value is not
17774	// used.
17775	//   "IN_PROGRESS" - Version is not ready to serve (e.g. training is in
17776	// progress).
17777	//   "READY" - Version is ready to serve.
17778	//   "FAILED" - Version training failed.
17779	Status string `json:"status,omitempty"`
17780
17781	// VersionNumber: Output only. The sequential number of this version.
17782	// This field is read-only which means it cannot be set by create and
17783	// update methods.
17784	VersionNumber int64 `json:"versionNumber,omitempty"`
17785
17786	// ServerResponse contains the HTTP response code and headers from the
17787	// server.
17788	googleapi.ServerResponse `json:"-"`
17789
17790	// ForceSendFields is a list of field names (e.g. "CreateTime") to
17791	// unconditionally include in API requests. By default, fields with
17792	// empty values are omitted from API requests. However, any non-pointer,
17793	// non-interface field appearing in ForceSendFields will be sent to the
17794	// server regardless of whether the field is empty or not. This may be
17795	// used to include empty fields in Patch requests.
17796	ForceSendFields []string `json:"-"`
17797
17798	// NullFields is a list of field names (e.g. "CreateTime") to include in
17799	// API requests with the JSON null value. By default, fields with empty
17800	// values are omitted from API requests. However, any field with an
17801	// empty value appearing in NullFields will be sent to the server as
17802	// null. It is an error if a field in this list has a non-empty value.
17803	// This may be used to include null fields in Patch requests.
17804	NullFields []string `json:"-"`
17805}
17806
17807func (s *GoogleCloudDialogflowV2beta1Version) MarshalJSON() ([]byte, error) {
17808	type NoMethod GoogleCloudDialogflowV2beta1Version
17809	raw := NoMethod(*s)
17810	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17811}
17812
17813// GoogleCloudDialogflowV2beta1VoiceSelectionParams: Description of
17814// which voice to use for speech synthesis.
17815type GoogleCloudDialogflowV2beta1VoiceSelectionParams struct {
17816	// Name: Optional. The name of the voice. If not set, the service will
17817	// choose a voice based on the other parameters such as language_code
17818	// and ssml_gender. For the list of available voices, please refer to
17819	// Supported voices and languages
17820	// (https://cloud.google.com/text-to-speech/docs/voices).
17821	Name string `json:"name,omitempty"`
17822
17823	// SsmlGender: Optional. The preferred gender of the voice. If not set,
17824	// the service will choose a voice based on the other parameters such as
17825	// language_code and name. Note that this is only a preference, not
17826	// requirement. If a voice of the appropriate gender is not available,
17827	// the synthesizer should substitute a voice with a different gender
17828	// rather than failing the request.
17829	//
17830	// Possible values:
17831	//   "SSML_VOICE_GENDER_UNSPECIFIED" - An unspecified gender, which
17832	// means that the client doesn't care which gender the selected voice
17833	// will have.
17834	//   "SSML_VOICE_GENDER_MALE" - A male voice.
17835	//   "SSML_VOICE_GENDER_FEMALE" - A female voice.
17836	//   "SSML_VOICE_GENDER_NEUTRAL" - A gender-neutral voice.
17837	SsmlGender string `json:"ssmlGender,omitempty"`
17838
17839	// ForceSendFields is a list of field names (e.g. "Name") to
17840	// unconditionally include in API requests. By default, fields with
17841	// empty values are omitted from API requests. However, any non-pointer,
17842	// non-interface field appearing in ForceSendFields will be sent to the
17843	// server regardless of whether the field is empty or not. This may be
17844	// used to include empty fields in Patch requests.
17845	ForceSendFields []string `json:"-"`
17846
17847	// NullFields is a list of field names (e.g. "Name") to include in API
17848	// requests with the JSON null value. By default, fields with empty
17849	// values are omitted from API requests. However, any field with an
17850	// empty value appearing in NullFields will be sent to the server as
17851	// null. It is an error if a field in this list has a non-empty value.
17852	// This may be used to include null fields in Patch requests.
17853	NullFields []string `json:"-"`
17854}
17855
17856func (s *GoogleCloudDialogflowV2beta1VoiceSelectionParams) MarshalJSON() ([]byte, error) {
17857	type NoMethod GoogleCloudDialogflowV2beta1VoiceSelectionParams
17858	raw := NoMethod(*s)
17859	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17860}
17861
17862// GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a
17863// webhook call.
17864type GoogleCloudDialogflowV2beta1WebhookRequest struct {
17865	// AlternativeQueryResults: Alternative query results from
17866	// KnowledgeService.
17867	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
17868
17869	// OriginalDetectIntentRequest: Optional. The contents of the original
17870	// request that was passed to `[Streaming]DetectIntent` call.
17871	OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
17872
17873	// QueryResult: The result of the conversational query or event
17874	// processing. Contains the same value as
17875	// `[Streaming]DetectIntentResponse.query_result`.
17876	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
17877
17878	// ResponseId: The unique identifier of the response. Contains the same
17879	// value as `[Streaming]DetectIntentResponse.response_id`.
17880	ResponseId string `json:"responseId,omitempty"`
17881
17882	// Session: The unique identifier of detectIntent request session. Can
17883	// be used to identify end-user inside webhook implementation. Supported
17884	// formats: - `projects//agent/sessions/, -
17885	// `projects//locations//agent/sessions/`, -
17886	// `projects//agent/environments//users//sessions/`, -
17887	// `projects//locations//agent/environments//users//sessions/`,
17888	Session string `json:"session,omitempty"`
17889
17890	// ForceSendFields is a list of field names (e.g.
17891	// "AlternativeQueryResults") to unconditionally include in API
17892	// requests. By default, fields with empty values are omitted from API
17893	// requests. However, any non-pointer, non-interface field appearing in
17894	// ForceSendFields will be sent to the server regardless of whether the
17895	// field is empty or not. This may be used to include empty fields in
17896	// Patch requests.
17897	ForceSendFields []string `json:"-"`
17898
17899	// NullFields is a list of field names (e.g. "AlternativeQueryResults")
17900	// to include in API requests with the JSON null value. By default,
17901	// fields with empty values are omitted from API requests. However, any
17902	// field with an empty value appearing in NullFields will be sent to the
17903	// server as null. It is an error if a field in this list has a
17904	// non-empty value. This may be used to include null fields in Patch
17905	// requests.
17906	NullFields []string `json:"-"`
17907}
17908
17909func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
17910	type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
17911	raw := NoMethod(*s)
17912	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17913}
17914
17915// GoogleCloudDialogflowV2beta1WebhookResponse: The response message for
17916// a webhook call. This response is validated by the Dialogflow server.
17917// If validation fails, an error will be returned in the
17918// QueryResult.diagnostic_info field. Setting JSON fields to an empty
17919// value with the wrong type is a common error. To avoid this error: -
17920// Use "" for empty strings - Use `{}` or `null` for empty objects -
17921// Use `[]` or `null` for empty arrays For more information, see the
17922// Protocol Buffers Language Guide
17923// (https://developers.google.com/protocol-buffers/docs/proto3#json).
17924type GoogleCloudDialogflowV2beta1WebhookResponse struct {
17925	// EndInteraction: Optional. Indicates that this intent ends an
17926	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
17927	// phone gateway) use this information to close interaction with an end
17928	// user. Default is false.
17929	EndInteraction bool `json:"endInteraction,omitempty"`
17930
17931	// FollowupEventInput: Optional. Invokes the supplied events. When this
17932	// field is set, Dialogflow ignores the `fulfillment_text`,
17933	// `fulfillment_messages`, and `payload` fields.
17934	FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
17935
17936	// FulfillmentMessages: Optional. The rich response messages intended
17937	// for the end-user. When provided, Dialogflow uses this field to
17938	// populate QueryResult.fulfillment_messages sent to the integration or
17939	// API caller.
17940	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
17941
17942	// FulfillmentText: Optional. The text response message intended for the
17943	// end-user. It is recommended to use
17944	// `fulfillment_messages.text.text[0]` instead. When provided,
17945	// Dialogflow uses this field to populate QueryResult.fulfillment_text
17946	// sent to the integration or API caller.
17947	FulfillmentText string `json:"fulfillmentText,omitempty"`
17948
17949	// LiveAgentHandoff: Indicates that a live agent should be brought in to
17950	// handle the interaction with the user. In most cases, when you set
17951	// this flag to true, you would also want to set end_interaction to true
17952	// as well. Default is false.
17953	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
17954
17955	// OutputContexts: Optional. The collection of output contexts that will
17956	// overwrite currently active contexts for the session and reset their
17957	// lifespans. When provided, Dialogflow uses this field to populate
17958	// QueryResult.output_contexts sent to the integration or API caller.
17959	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
17960
17961	// Payload: Optional. This field can be used to pass custom data from
17962	// your webhook to the integration or API caller. Arbitrary JSON objects
17963	// are supported. When provided, Dialogflow uses this field to populate
17964	// QueryResult.webhook_payload sent to the integration or API caller.
17965	// This field is also used by the Google Assistant integration
17966	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
17967	// response messages. See the format definition at Google Assistant
17968	// Dialogflow webhook format
17969	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
17970	Payload googleapi.RawMessage `json:"payload,omitempty"`
17971
17972	// SessionEntityTypes: Optional. Additional session entity types to
17973	// replace or extend developer entity types with. The entity synonyms
17974	// apply to all languages and persist for the session. Setting this data
17975	// from a webhook overwrites the session entity types that have been set
17976	// using `detectIntent`, `streamingDetectIntent` or SessionEntityType
17977	// management methods.
17978	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
17979
17980	// Source: Optional. A custom field used to identify the webhook source.
17981	// Arbitrary strings are supported. When provided, Dialogflow uses this
17982	// field to populate QueryResult.webhook_source sent to the integration
17983	// or API caller.
17984	Source string `json:"source,omitempty"`
17985
17986	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
17987	// unconditionally include in API requests. By default, fields with
17988	// empty values are omitted from API requests. However, any non-pointer,
17989	// non-interface field appearing in ForceSendFields will be sent to the
17990	// server regardless of whether the field is empty or not. This may be
17991	// used to include empty fields in Patch requests.
17992	ForceSendFields []string `json:"-"`
17993
17994	// NullFields is a list of field names (e.g. "EndInteraction") to
17995	// include in API requests with the JSON null value. By default, fields
17996	// with empty values are omitted from API requests. However, any field
17997	// with an empty value appearing in NullFields will be sent to the
17998	// server as null. It is an error if a field in this list has a
17999	// non-empty value. This may be used to include null fields in Patch
18000	// requests.
18001	NullFields []string `json:"-"`
18002}
18003
18004func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
18005	type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
18006	raw := NoMethod(*s)
18007	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18008}
18009
18010// GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata:
18011// Metadata for CreateDocument operation.
18012type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
18013	// GenericMetadata: The generic information of the operation.
18014	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18015
18016	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
18017	// unconditionally include in API requests. By default, fields with
18018	// empty values are omitted from API requests. However, any non-pointer,
18019	// non-interface field appearing in ForceSendFields will be sent to the
18020	// server regardless of whether the field is empty or not. This may be
18021	// used to include empty fields in Patch requests.
18022	ForceSendFields []string `json:"-"`
18023
18024	// NullFields is a list of field names (e.g. "GenericMetadata") to
18025	// include in API requests with the JSON null value. By default, fields
18026	// with empty values are omitted from API requests. However, any field
18027	// with an empty value appearing in NullFields will be sent to the
18028	// server as null. It is an error if a field in this list has a
18029	// non-empty value. This may be used to include null fields in Patch
18030	// requests.
18031	NullFields []string `json:"-"`
18032}
18033
18034func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18035	type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
18036	raw := NoMethod(*s)
18037	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18038}
18039
18040// GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata:
18041// Metadata for DeleteDocument operation.
18042type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
18043	// GenericMetadata: The generic information of the operation.
18044	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18045
18046	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
18047	// unconditionally include in API requests. By default, fields with
18048	// empty values are omitted from API requests. However, any non-pointer,
18049	// non-interface field appearing in ForceSendFields will be sent to the
18050	// server regardless of whether the field is empty or not. This may be
18051	// used to include empty fields in Patch requests.
18052	ForceSendFields []string `json:"-"`
18053
18054	// NullFields is a list of field names (e.g. "GenericMetadata") to
18055	// include in API requests with the JSON null value. By default, fields
18056	// with empty values are omitted from API requests. However, any field
18057	// with an empty value appearing in NullFields will be sent to the
18058	// server as null. It is an error if a field in this list has a
18059	// non-empty value. This may be used to include null fields in Patch
18060	// requests.
18061	NullFields []string `json:"-"`
18062}
18063
18064func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18065	type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
18066	raw := NoMethod(*s)
18067	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18068}
18069
18070// GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata:
18071// Metadata in google::longrunning::Operation for Knowledge operations.
18072type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
18073	// State: Required. Output only. The current state of this operation.
18074	//
18075	// Possible values:
18076	//   "STATE_UNSPECIFIED" - State unspecified.
18077	//   "PENDING" - The operation has been created.
18078	//   "RUNNING" - The operation is currently running.
18079	//   "DONE" - The operation is done, either cancelled or completed.
18080	State string `json:"state,omitempty"`
18081
18082	// ForceSendFields is a list of field names (e.g. "State") to
18083	// unconditionally include in API requests. By default, fields with
18084	// empty values are omitted from API requests. However, any non-pointer,
18085	// non-interface field appearing in ForceSendFields will be sent to the
18086	// server regardless of whether the field is empty or not. This may be
18087	// used to include empty fields in Patch requests.
18088	ForceSendFields []string `json:"-"`
18089
18090	// NullFields is a list of field names (e.g. "State") to include in API
18091	// requests with the JSON null value. By default, fields with empty
18092	// values are omitted from API requests. However, any field with an
18093	// empty value appearing in NullFields will be sent to the server as
18094	// null. It is an error if a field in this list has a non-empty value.
18095	// This may be used to include null fields in Patch requests.
18096	NullFields []string `json:"-"`
18097}
18098
18099func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
18100	type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
18101	raw := NoMethod(*s)
18102	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18103}
18104
18105// GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata:
18106// Metadata for ImportDocuments operation.
18107type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
18108	// GenericMetadata: The generic information of the operation.
18109	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18110
18111	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
18112	// unconditionally include in API requests. By default, fields with
18113	// empty values are omitted from API requests. However, any non-pointer,
18114	// non-interface field appearing in ForceSendFields will be sent to the
18115	// server regardless of whether the field is empty or not. This may be
18116	// used to include empty fields in Patch requests.
18117	ForceSendFields []string `json:"-"`
18118
18119	// NullFields is a list of field names (e.g. "GenericMetadata") to
18120	// include in API requests with the JSON null value. By default, fields
18121	// with empty values are omitted from API requests. However, any field
18122	// with an empty value appearing in NullFields will be sent to the
18123	// server as null. It is an error if a field in this list has a
18124	// non-empty value. This may be used to include null fields in Patch
18125	// requests.
18126	NullFields []string `json:"-"`
18127}
18128
18129func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
18130	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
18131	raw := NoMethod(*s)
18132	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18133}
18134
18135// GoogleCloudDialogflowV3alpha1ImportDocumentsResponse: Response
18136// message for Documents.ImportDocuments.
18137type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
18138	// Warnings: Includes details about skipped documents or any other
18139	// warnings.
18140	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
18141
18142	// ForceSendFields is a list of field names (e.g. "Warnings") to
18143	// unconditionally include in API requests. By default, fields with
18144	// empty values are omitted from API requests. However, any non-pointer,
18145	// non-interface field appearing in ForceSendFields will be sent to the
18146	// server regardless of whether the field is empty or not. This may be
18147	// used to include empty fields in Patch requests.
18148	ForceSendFields []string `json:"-"`
18149
18150	// NullFields is a list of field names (e.g. "Warnings") to include in
18151	// API requests with the JSON null value. By default, fields with empty
18152	// values are omitted from API requests. However, any field with an
18153	// empty value appearing in NullFields will be sent to the server as
18154	// null. It is an error if a field in this list has a non-empty value.
18155	// This may be used to include null fields in Patch requests.
18156	NullFields []string `json:"-"`
18157}
18158
18159func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
18160	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
18161	raw := NoMethod(*s)
18162	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18163}
18164
18165// GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata:
18166// Metadata for ReloadDocument operation.
18167type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
18168	// GenericMetadata: The generic information of the operation.
18169	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18170
18171	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
18172	// unconditionally include in API requests. By default, fields with
18173	// empty values are omitted from API requests. However, any non-pointer,
18174	// non-interface field appearing in ForceSendFields will be sent to the
18175	// server regardless of whether the field is empty or not. This may be
18176	// used to include empty fields in Patch requests.
18177	ForceSendFields []string `json:"-"`
18178
18179	// NullFields is a list of field names (e.g. "GenericMetadata") to
18180	// include in API requests with the JSON null value. By default, fields
18181	// with empty values are omitted from API requests. However, any field
18182	// with an empty value appearing in NullFields will be sent to the
18183	// server as null. It is an error if a field in this list has a
18184	// non-empty value. This may be used to include null fields in Patch
18185	// requests.
18186	NullFields []string `json:"-"`
18187}
18188
18189func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18190	type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
18191	raw := NoMethod(*s)
18192	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18193}
18194
18195// GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata:
18196// Metadata for UpdateDocument operation.
18197type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
18198	// GenericMetadata: The generic information of the operation.
18199	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18200
18201	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
18202	// unconditionally include in API requests. By default, fields with
18203	// empty values are omitted from API requests. However, any non-pointer,
18204	// non-interface field appearing in ForceSendFields will be sent to the
18205	// server regardless of whether the field is empty or not. This may be
18206	// used to include empty fields in Patch requests.
18207	ForceSendFields []string `json:"-"`
18208
18209	// NullFields is a list of field names (e.g. "GenericMetadata") to
18210	// include in API requests with the JSON null value. By default, fields
18211	// with empty values are omitted from API requests. However, any field
18212	// with an empty value appearing in NullFields will be sent to the
18213	// server as null. It is an error if a field in this list has a
18214	// non-empty value. This may be used to include null fields in Patch
18215	// requests.
18216	NullFields []string `json:"-"`
18217}
18218
18219func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18220	type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
18221	raw := NoMethod(*s)
18222	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18223}
18224
18225// GoogleLongrunningListOperationsResponse: The response message for
18226// Operations.ListOperations.
18227type GoogleLongrunningListOperationsResponse struct {
18228	// NextPageToken: The standard List next-page token.
18229	NextPageToken string `json:"nextPageToken,omitempty"`
18230
18231	// Operations: A list of operations that matches the specified filter in
18232	// the request.
18233	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
18234
18235	// ServerResponse contains the HTTP response code and headers from the
18236	// server.
18237	googleapi.ServerResponse `json:"-"`
18238
18239	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
18240	// unconditionally include in API requests. By default, fields with
18241	// empty values are omitted from API requests. However, any non-pointer,
18242	// non-interface field appearing in ForceSendFields will be sent to the
18243	// server regardless of whether the field is empty or not. This may be
18244	// used to include empty fields in Patch requests.
18245	ForceSendFields []string `json:"-"`
18246
18247	// NullFields is a list of field names (e.g. "NextPageToken") to include
18248	// in API requests with the JSON null value. By default, fields with
18249	// empty values are omitted from API requests. However, any field with
18250	// an empty value appearing in NullFields will be sent to the server as
18251	// null. It is an error if a field in this list has a non-empty value.
18252	// This may be used to include null fields in Patch requests.
18253	NullFields []string `json:"-"`
18254}
18255
18256func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
18257	type NoMethod GoogleLongrunningListOperationsResponse
18258	raw := NoMethod(*s)
18259	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18260}
18261
18262// GoogleLongrunningOperation: This resource represents a long-running
18263// operation that is the result of a network API call.
18264type GoogleLongrunningOperation struct {
18265	// Done: If the value is `false`, it means the operation is still in
18266	// progress. If `true`, the operation is completed, and either `error`
18267	// or `response` is available.
18268	Done bool `json:"done,omitempty"`
18269
18270	// Error: The error result of the operation in case of failure or
18271	// cancellation.
18272	Error *GoogleRpcStatus `json:"error,omitempty"`
18273
18274	// Metadata: Service-specific metadata associated with the operation. It
18275	// typically contains progress information and common metadata such as
18276	// create time. Some services might not provide such metadata. Any
18277	// method that returns a long-running operation should document the
18278	// metadata type, if any.
18279	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18280
18281	// Name: The server-assigned name, which is only unique within the same
18282	// service that originally returns it. If you use the default HTTP
18283	// mapping, the `name` should be a resource name ending with
18284	// `operations/{unique_id}`.
18285	Name string `json:"name,omitempty"`
18286
18287	// Response: The normal response of the operation in case of success. If
18288	// the original method returns no data on success, such as `Delete`, the
18289	// response is `google.protobuf.Empty`. If the original method is
18290	// standard `Get`/`Create`/`Update`, the response should be the
18291	// resource. For other methods, the response should have the type
18292	// `XxxResponse`, where `Xxx` is the original method name. For example,
18293	// if the original method name is `TakeSnapshot()`, the inferred
18294	// response type is `TakeSnapshotResponse`.
18295	Response googleapi.RawMessage `json:"response,omitempty"`
18296
18297	// ServerResponse contains the HTTP response code and headers from the
18298	// server.
18299	googleapi.ServerResponse `json:"-"`
18300
18301	// ForceSendFields is a list of field names (e.g. "Done") to
18302	// unconditionally include in API requests. By default, fields with
18303	// empty values are omitted from API requests. However, any non-pointer,
18304	// non-interface field appearing in ForceSendFields will be sent to the
18305	// server regardless of whether the field is empty or not. This may be
18306	// used to include empty fields in Patch requests.
18307	ForceSendFields []string `json:"-"`
18308
18309	// NullFields is a list of field names (e.g. "Done") to include in API
18310	// requests with the JSON null value. By default, fields with empty
18311	// values are omitted from API requests. However, any field with an
18312	// empty value appearing in NullFields will be sent to the server as
18313	// null. It is an error if a field in this list has a non-empty value.
18314	// This may be used to include null fields in Patch requests.
18315	NullFields []string `json:"-"`
18316}
18317
18318func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
18319	type NoMethod GoogleLongrunningOperation
18320	raw := NoMethod(*s)
18321	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18322}
18323
18324// GoogleProtobufEmpty: A generic empty message that you can re-use to
18325// avoid defining duplicated empty messages in your APIs. A typical
18326// example is to use it as the request or the response type of an API
18327// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
18328// returns (google.protobuf.Empty); } The JSON representation for
18329// `Empty` is empty JSON object `{}`.
18330type GoogleProtobufEmpty struct {
18331	// ServerResponse contains the HTTP response code and headers from the
18332	// server.
18333	googleapi.ServerResponse `json:"-"`
18334}
18335
18336// GoogleRpcStatus: The `Status` type defines a logical error model that
18337// is suitable for different programming environments, including REST
18338// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
18339// `Status` message contains three pieces of data: error code, error
18340// message, and error details. You can find out more about this error
18341// model and how to work with it in the API Design Guide
18342// (https://cloud.google.com/apis/design/errors).
18343type GoogleRpcStatus struct {
18344	// Code: The status code, which should be an enum value of
18345	// google.rpc.Code.
18346	Code int64 `json:"code,omitempty"`
18347
18348	// Details: A list of messages that carry the error details. There is a
18349	// common set of message types for APIs to use.
18350	Details []googleapi.RawMessage `json:"details,omitempty"`
18351
18352	// Message: A developer-facing error message, which should be in
18353	// English. Any user-facing error message should be localized and sent
18354	// in the google.rpc.Status.details field, or localized by the client.
18355	Message string `json:"message,omitempty"`
18356
18357	// ForceSendFields is a list of field names (e.g. "Code") to
18358	// unconditionally include in API requests. By default, fields with
18359	// empty values are omitted from API requests. However, any non-pointer,
18360	// non-interface field appearing in ForceSendFields will be sent to the
18361	// server regardless of whether the field is empty or not. This may be
18362	// used to include empty fields in Patch requests.
18363	ForceSendFields []string `json:"-"`
18364
18365	// NullFields is a list of field names (e.g. "Code") to include in API
18366	// requests with the JSON null value. By default, fields with empty
18367	// values are omitted from API requests. However, any field with an
18368	// empty value appearing in NullFields will be sent to the server as
18369	// null. It is an error if a field in this list has a non-empty value.
18370	// This may be used to include null fields in Patch requests.
18371	NullFields []string `json:"-"`
18372}
18373
18374func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
18375	type NoMethod GoogleRpcStatus
18376	raw := NoMethod(*s)
18377	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18378}
18379
18380// GoogleTypeLatLng: An object that represents a latitude/longitude
18381// pair. This is expressed as a pair of doubles to represent degrees
18382// latitude and degrees longitude. Unless specified otherwise, this
18383// object must conform to the WGS84 standard. Values must be within
18384// normalized ranges.
18385type GoogleTypeLatLng struct {
18386	// Latitude: The latitude in degrees. It must be in the range [-90.0,
18387	// +90.0].
18388	Latitude float64 `json:"latitude,omitempty"`
18389
18390	// Longitude: The longitude in degrees. It must be in the range [-180.0,
18391	// +180.0].
18392	Longitude float64 `json:"longitude,omitempty"`
18393
18394	// ForceSendFields is a list of field names (e.g. "Latitude") to
18395	// unconditionally include in API requests. By default, fields with
18396	// empty values are omitted from API requests. However, any non-pointer,
18397	// non-interface field appearing in ForceSendFields will be sent to the
18398	// server regardless of whether the field is empty or not. This may be
18399	// used to include empty fields in Patch requests.
18400	ForceSendFields []string `json:"-"`
18401
18402	// NullFields is a list of field names (e.g. "Latitude") to include in
18403	// API requests with the JSON null value. By default, fields with empty
18404	// values are omitted from API requests. However, any field with an
18405	// empty value appearing in NullFields will be sent to the server as
18406	// null. It is an error if a field in this list has a non-empty value.
18407	// This may be used to include null fields in Patch requests.
18408	NullFields []string `json:"-"`
18409}
18410
18411func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
18412	type NoMethod GoogleTypeLatLng
18413	raw := NoMethod(*s)
18414	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18415}
18416
18417func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
18418	type NoMethod GoogleTypeLatLng
18419	var s1 struct {
18420		Latitude  gensupport.JSONFloat64 `json:"latitude"`
18421		Longitude gensupport.JSONFloat64 `json:"longitude"`
18422		*NoMethod
18423	}
18424	s1.NoMethod = (*NoMethod)(s)
18425	if err := json.Unmarshal(data, &s1); err != nil {
18426		return err
18427	}
18428	s.Latitude = float64(s1.Latitude)
18429	s.Longitude = float64(s1.Longitude)
18430	return nil
18431}
18432
18433// method id "dialogflow.projects.deleteAgent":
18434
18435type ProjectsDeleteAgentCall struct {
18436	s          *Service
18437	parent     string
18438	urlParams_ gensupport.URLParams
18439	ctx_       context.Context
18440	header_    http.Header
18441}
18442
18443// DeleteAgent: Deletes the specified agent.
18444//
18445// - parent: The project that the agent to delete is associated with.
18446//   Format: `projects/` or `projects//locations/`.
18447func (r *ProjectsService) DeleteAgent(parent string) *ProjectsDeleteAgentCall {
18448	c := &ProjectsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18449	c.parent = parent
18450	return c
18451}
18452
18453// Fields allows partial responses to be retrieved. See
18454// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18455// for more information.
18456func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall {
18457	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18458	return c
18459}
18460
18461// Context sets the context to be used in this call's Do method. Any
18462// pending HTTP request will be aborted if the provided context is
18463// canceled.
18464func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall {
18465	c.ctx_ = ctx
18466	return c
18467}
18468
18469// Header returns an http.Header that can be modified by the caller to
18470// add HTTP headers to the request.
18471func (c *ProjectsDeleteAgentCall) Header() http.Header {
18472	if c.header_ == nil {
18473		c.header_ = make(http.Header)
18474	}
18475	return c.header_
18476}
18477
18478func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
18479	reqHeaders := make(http.Header)
18480	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18481	for k, v := range c.header_ {
18482		reqHeaders[k] = v
18483	}
18484	reqHeaders.Set("User-Agent", c.s.userAgent())
18485	var body io.Reader = nil
18486	c.urlParams_.Set("alt", alt)
18487	c.urlParams_.Set("prettyPrint", "false")
18488	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
18489	urls += "?" + c.urlParams_.Encode()
18490	req, err := http.NewRequest("DELETE", urls, body)
18491	if err != nil {
18492		return nil, err
18493	}
18494	req.Header = reqHeaders
18495	googleapi.Expand(req.URL, map[string]string{
18496		"parent": c.parent,
18497	})
18498	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18499}
18500
18501// Do executes the "dialogflow.projects.deleteAgent" call.
18502// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
18503// non-2xx status code is an error. Response headers are in either
18504// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
18505// returned at all) in error.(*googleapi.Error).Header. Use
18506// googleapi.IsNotModified to check whether the returned error was
18507// because http.StatusNotModified was returned.
18508func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18509	gensupport.SetOptions(c.urlParams_, opts...)
18510	res, err := c.doRequest("json")
18511	if res != nil && res.StatusCode == http.StatusNotModified {
18512		if res.Body != nil {
18513			res.Body.Close()
18514		}
18515		return nil, &googleapi.Error{
18516			Code:   res.StatusCode,
18517			Header: res.Header,
18518		}
18519	}
18520	if err != nil {
18521		return nil, err
18522	}
18523	defer googleapi.CloseBody(res)
18524	if err := googleapi.CheckResponse(res); err != nil {
18525		return nil, err
18526	}
18527	ret := &GoogleProtobufEmpty{
18528		ServerResponse: googleapi.ServerResponse{
18529			Header:         res.Header,
18530			HTTPStatusCode: res.StatusCode,
18531		},
18532	}
18533	target := &ret
18534	if err := gensupport.DecodeResponse(target, res); err != nil {
18535		return nil, err
18536	}
18537	return ret, nil
18538	// {
18539	//   "description": "Deletes the specified agent.",
18540	//   "flatPath": "v2beta1/projects/{projectsId}/agent",
18541	//   "httpMethod": "DELETE",
18542	//   "id": "dialogflow.projects.deleteAgent",
18543	//   "parameterOrder": [
18544	//     "parent"
18545	//   ],
18546	//   "parameters": {
18547	//     "parent": {
18548	//       "description": "Required. The project that the agent to delete is associated with. Format: `projects/` or `projects//locations/`.",
18549	//       "location": "path",
18550	//       "pattern": "^projects/[^/]+$",
18551	//       "required": true,
18552	//       "type": "string"
18553	//     }
18554	//   },
18555	//   "path": "v2beta1/{+parent}/agent",
18556	//   "response": {
18557	//     "$ref": "GoogleProtobufEmpty"
18558	//   },
18559	//   "scopes": [
18560	//     "https://www.googleapis.com/auth/cloud-platform",
18561	//     "https://www.googleapis.com/auth/dialogflow"
18562	//   ]
18563	// }
18564
18565}
18566
18567// method id "dialogflow.projects.getAgent":
18568
18569type ProjectsGetAgentCall struct {
18570	s            *Service
18571	parent       string
18572	urlParams_   gensupport.URLParams
18573	ifNoneMatch_ string
18574	ctx_         context.Context
18575	header_      http.Header
18576}
18577
18578// GetAgent: Retrieves the specified agent.
18579//
18580// - parent: The project that the agent to fetch is associated with.
18581//   Format: `projects/` or `projects//locations/`.
18582func (r *ProjectsService) GetAgent(parent string) *ProjectsGetAgentCall {
18583	c := &ProjectsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18584	c.parent = parent
18585	return c
18586}
18587
18588// Fields allows partial responses to be retrieved. See
18589// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18590// for more information.
18591func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall {
18592	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18593	return c
18594}
18595
18596// IfNoneMatch sets the optional parameter which makes the operation
18597// fail if the object's ETag matches the given value. This is useful for
18598// getting updates only after the object has changed since the last
18599// request. Use googleapi.IsNotModified to check whether the response
18600// error from Do is the result of In-None-Match.
18601func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall {
18602	c.ifNoneMatch_ = entityTag
18603	return c
18604}
18605
18606// Context sets the context to be used in this call's Do method. Any
18607// pending HTTP request will be aborted if the provided context is
18608// canceled.
18609func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall {
18610	c.ctx_ = ctx
18611	return c
18612}
18613
18614// Header returns an http.Header that can be modified by the caller to
18615// add HTTP headers to the request.
18616func (c *ProjectsGetAgentCall) Header() http.Header {
18617	if c.header_ == nil {
18618		c.header_ = make(http.Header)
18619	}
18620	return c.header_
18621}
18622
18623func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) {
18624	reqHeaders := make(http.Header)
18625	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18626	for k, v := range c.header_ {
18627		reqHeaders[k] = v
18628	}
18629	reqHeaders.Set("User-Agent", c.s.userAgent())
18630	if c.ifNoneMatch_ != "" {
18631		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18632	}
18633	var body io.Reader = nil
18634	c.urlParams_.Set("alt", alt)
18635	c.urlParams_.Set("prettyPrint", "false")
18636	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
18637	urls += "?" + c.urlParams_.Encode()
18638	req, err := http.NewRequest("GET", urls, body)
18639	if err != nil {
18640		return nil, err
18641	}
18642	req.Header = reqHeaders
18643	googleapi.Expand(req.URL, map[string]string{
18644		"parent": c.parent,
18645	})
18646	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18647}
18648
18649// Do executes the "dialogflow.projects.getAgent" call.
18650// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
18651// non-nil. Any non-2xx status code is an error. Response headers are in
18652// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
18653// (if a response was returned at all) in
18654// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18655// whether the returned error was because http.StatusNotModified was
18656// returned.
18657func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
18658	gensupport.SetOptions(c.urlParams_, opts...)
18659	res, err := c.doRequest("json")
18660	if res != nil && res.StatusCode == http.StatusNotModified {
18661		if res.Body != nil {
18662			res.Body.Close()
18663		}
18664		return nil, &googleapi.Error{
18665			Code:   res.StatusCode,
18666			Header: res.Header,
18667		}
18668	}
18669	if err != nil {
18670		return nil, err
18671	}
18672	defer googleapi.CloseBody(res)
18673	if err := googleapi.CheckResponse(res); err != nil {
18674		return nil, err
18675	}
18676	ret := &GoogleCloudDialogflowV2beta1Agent{
18677		ServerResponse: googleapi.ServerResponse{
18678			Header:         res.Header,
18679			HTTPStatusCode: res.StatusCode,
18680		},
18681	}
18682	target := &ret
18683	if err := gensupport.DecodeResponse(target, res); err != nil {
18684		return nil, err
18685	}
18686	return ret, nil
18687	// {
18688	//   "description": "Retrieves the specified agent.",
18689	//   "flatPath": "v2beta1/projects/{projectsId}/agent",
18690	//   "httpMethod": "GET",
18691	//   "id": "dialogflow.projects.getAgent",
18692	//   "parameterOrder": [
18693	//     "parent"
18694	//   ],
18695	//   "parameters": {
18696	//     "parent": {
18697	//       "description": "Required. The project that the agent to fetch is associated with. Format: `projects/` or `projects//locations/`.",
18698	//       "location": "path",
18699	//       "pattern": "^projects/[^/]+$",
18700	//       "required": true,
18701	//       "type": "string"
18702	//     }
18703	//   },
18704	//   "path": "v2beta1/{+parent}/agent",
18705	//   "response": {
18706	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
18707	//   },
18708	//   "scopes": [
18709	//     "https://www.googleapis.com/auth/cloud-platform",
18710	//     "https://www.googleapis.com/auth/dialogflow"
18711	//   ]
18712	// }
18713
18714}
18715
18716// method id "dialogflow.projects.setAgent":
18717
18718type ProjectsSetAgentCall struct {
18719	s                                 *Service
18720	parent                            string
18721	googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
18722	urlParams_                        gensupport.URLParams
18723	ctx_                              context.Context
18724	header_                           http.Header
18725}
18726
18727// SetAgent: Creates/updates the specified agent. Note: You should
18728// always train an agent prior to sending it queries. See the training
18729// documentation (https://cloud.google.com/dialogflow/es/docs/training).
18730//
18731// - parent: The project of this agent. Format: `projects/` or
18732//   `projects//locations/`.
18733func (r *ProjectsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsSetAgentCall {
18734	c := &ProjectsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18735	c.parent = parent
18736	c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
18737	return c
18738}
18739
18740// UpdateMask sets the optional parameter "updateMask": The mask to
18741// control which fields get updated.
18742func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall {
18743	c.urlParams_.Set("updateMask", updateMask)
18744	return c
18745}
18746
18747// Fields allows partial responses to be retrieved. See
18748// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18749// for more information.
18750func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall {
18751	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18752	return c
18753}
18754
18755// Context sets the context to be used in this call's Do method. Any
18756// pending HTTP request will be aborted if the provided context is
18757// canceled.
18758func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall {
18759	c.ctx_ = ctx
18760	return c
18761}
18762
18763// Header returns an http.Header that can be modified by the caller to
18764// add HTTP headers to the request.
18765func (c *ProjectsSetAgentCall) Header() http.Header {
18766	if c.header_ == nil {
18767		c.header_ = make(http.Header)
18768	}
18769	return c.header_
18770}
18771
18772func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) {
18773	reqHeaders := make(http.Header)
18774	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18775	for k, v := range c.header_ {
18776		reqHeaders[k] = v
18777	}
18778	reqHeaders.Set("User-Agent", c.s.userAgent())
18779	var body io.Reader = nil
18780	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
18781	if err != nil {
18782		return nil, err
18783	}
18784	reqHeaders.Set("Content-Type", "application/json")
18785	c.urlParams_.Set("alt", alt)
18786	c.urlParams_.Set("prettyPrint", "false")
18787	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
18788	urls += "?" + c.urlParams_.Encode()
18789	req, err := http.NewRequest("POST", urls, body)
18790	if err != nil {
18791		return nil, err
18792	}
18793	req.Header = reqHeaders
18794	googleapi.Expand(req.URL, map[string]string{
18795		"parent": c.parent,
18796	})
18797	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18798}
18799
18800// Do executes the "dialogflow.projects.setAgent" call.
18801// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
18802// non-nil. Any non-2xx status code is an error. Response headers are in
18803// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
18804// (if a response was returned at all) in
18805// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18806// whether the returned error was because http.StatusNotModified was
18807// returned.
18808func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
18809	gensupport.SetOptions(c.urlParams_, opts...)
18810	res, err := c.doRequest("json")
18811	if res != nil && res.StatusCode == http.StatusNotModified {
18812		if res.Body != nil {
18813			res.Body.Close()
18814		}
18815		return nil, &googleapi.Error{
18816			Code:   res.StatusCode,
18817			Header: res.Header,
18818		}
18819	}
18820	if err != nil {
18821		return nil, err
18822	}
18823	defer googleapi.CloseBody(res)
18824	if err := googleapi.CheckResponse(res); err != nil {
18825		return nil, err
18826	}
18827	ret := &GoogleCloudDialogflowV2beta1Agent{
18828		ServerResponse: googleapi.ServerResponse{
18829			Header:         res.Header,
18830			HTTPStatusCode: res.StatusCode,
18831		},
18832	}
18833	target := &ret
18834	if err := gensupport.DecodeResponse(target, res); err != nil {
18835		return nil, err
18836	}
18837	return ret, nil
18838	// {
18839	//   "description": "Creates/updates the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
18840	//   "flatPath": "v2beta1/projects/{projectsId}/agent",
18841	//   "httpMethod": "POST",
18842	//   "id": "dialogflow.projects.setAgent",
18843	//   "parameterOrder": [
18844	//     "parent"
18845	//   ],
18846	//   "parameters": {
18847	//     "parent": {
18848	//       "description": "Required. The project of this agent. Format: `projects/` or `projects//locations/`",
18849	//       "location": "path",
18850	//       "pattern": "^projects/[^/]+$",
18851	//       "required": true,
18852	//       "type": "string"
18853	//     },
18854	//     "updateMask": {
18855	//       "description": "Optional. The mask to control which fields get updated.",
18856	//       "format": "google-fieldmask",
18857	//       "location": "query",
18858	//       "type": "string"
18859	//     }
18860	//   },
18861	//   "path": "v2beta1/{+parent}/agent",
18862	//   "request": {
18863	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
18864	//   },
18865	//   "response": {
18866	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
18867	//   },
18868	//   "scopes": [
18869	//     "https://www.googleapis.com/auth/cloud-platform",
18870	//     "https://www.googleapis.com/auth/dialogflow"
18871	//   ]
18872	// }
18873
18874}
18875
18876// method id "dialogflow.projects.agent.export":
18877
18878type ProjectsAgentExportCall struct {
18879	s                                              *Service
18880	parent                                         string
18881	googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
18882	urlParams_                                     gensupport.URLParams
18883	ctx_                                           context.Context
18884	header_                                        http.Header
18885}
18886
18887// Export: Exports the specified agent to a ZIP file.
18888//
18889// - parent: The project that the agent to export is associated with.
18890//   Format: `projects/` or `projects//locations/`.
18891func (r *ProjectsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsAgentExportCall {
18892	c := &ProjectsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18893	c.parent = parent
18894	c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
18895	return c
18896}
18897
18898// Fields allows partial responses to be retrieved. See
18899// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18900// for more information.
18901func (c *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall {
18902	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18903	return c
18904}
18905
18906// Context sets the context to be used in this call's Do method. Any
18907// pending HTTP request will be aborted if the provided context is
18908// canceled.
18909func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall {
18910	c.ctx_ = ctx
18911	return c
18912}
18913
18914// Header returns an http.Header that can be modified by the caller to
18915// add HTTP headers to the request.
18916func (c *ProjectsAgentExportCall) Header() http.Header {
18917	if c.header_ == nil {
18918		c.header_ = make(http.Header)
18919	}
18920	return c.header_
18921}
18922
18923func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) {
18924	reqHeaders := make(http.Header)
18925	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18926	for k, v := range c.header_ {
18927		reqHeaders[k] = v
18928	}
18929	reqHeaders.Set("User-Agent", c.s.userAgent())
18930	var body io.Reader = nil
18931	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
18932	if err != nil {
18933		return nil, err
18934	}
18935	reqHeaders.Set("Content-Type", "application/json")
18936	c.urlParams_.Set("alt", alt)
18937	c.urlParams_.Set("prettyPrint", "false")
18938	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
18939	urls += "?" + c.urlParams_.Encode()
18940	req, err := http.NewRequest("POST", urls, body)
18941	if err != nil {
18942		return nil, err
18943	}
18944	req.Header = reqHeaders
18945	googleapi.Expand(req.URL, map[string]string{
18946		"parent": c.parent,
18947	})
18948	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18949}
18950
18951// Do executes the "dialogflow.projects.agent.export" call.
18952// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
18953// Any non-2xx status code is an error. Response headers are in either
18954// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
18955// was returned at all) in error.(*googleapi.Error).Header. Use
18956// googleapi.IsNotModified to check whether the returned error was
18957// because http.StatusNotModified was returned.
18958func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18959	gensupport.SetOptions(c.urlParams_, opts...)
18960	res, err := c.doRequest("json")
18961	if res != nil && res.StatusCode == http.StatusNotModified {
18962		if res.Body != nil {
18963			res.Body.Close()
18964		}
18965		return nil, &googleapi.Error{
18966			Code:   res.StatusCode,
18967			Header: res.Header,
18968		}
18969	}
18970	if err != nil {
18971		return nil, err
18972	}
18973	defer googleapi.CloseBody(res)
18974	if err := googleapi.CheckResponse(res); err != nil {
18975		return nil, err
18976	}
18977	ret := &GoogleLongrunningOperation{
18978		ServerResponse: googleapi.ServerResponse{
18979			Header:         res.Header,
18980			HTTPStatusCode: res.StatusCode,
18981		},
18982	}
18983	target := &ret
18984	if err := gensupport.DecodeResponse(target, res); err != nil {
18985		return nil, err
18986	}
18987	return ret, nil
18988	// {
18989	//   "description": "Exports the specified agent to a ZIP file.",
18990	//   "flatPath": "v2beta1/projects/{projectsId}/agent:export",
18991	//   "httpMethod": "POST",
18992	//   "id": "dialogflow.projects.agent.export",
18993	//   "parameterOrder": [
18994	//     "parent"
18995	//   ],
18996	//   "parameters": {
18997	//     "parent": {
18998	//       "description": "Required. The project that the agent to export is associated with. Format: `projects/` or `projects//locations/`.",
18999	//       "location": "path",
19000	//       "pattern": "^projects/[^/]+$",
19001	//       "required": true,
19002	//       "type": "string"
19003	//     }
19004	//   },
19005	//   "path": "v2beta1/{+parent}/agent:export",
19006	//   "request": {
19007	//     "$ref": "GoogleCloudDialogflowV2beta1ExportAgentRequest"
19008	//   },
19009	//   "response": {
19010	//     "$ref": "GoogleLongrunningOperation"
19011	//   },
19012	//   "scopes": [
19013	//     "https://www.googleapis.com/auth/cloud-platform",
19014	//     "https://www.googleapis.com/auth/dialogflow"
19015	//   ]
19016	// }
19017
19018}
19019
19020// method id "dialogflow.projects.agent.getFulfillment":
19021
19022type ProjectsAgentGetFulfillmentCall struct {
19023	s            *Service
19024	name         string
19025	urlParams_   gensupport.URLParams
19026	ifNoneMatch_ string
19027	ctx_         context.Context
19028	header_      http.Header
19029}
19030
19031// GetFulfillment: Retrieves the fulfillment.
19032//
19033// - name: The name of the fulfillment. Supported formats: -
19034//   `projects//agent/fulfillment` -
19035//   `projects//locations//agent/fulfillment`.
19036func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall {
19037	c := &ProjectsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19038	c.name = name
19039	return c
19040}
19041
19042// Fields allows partial responses to be retrieved. See
19043// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19044// for more information.
19045func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall {
19046	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19047	return c
19048}
19049
19050// IfNoneMatch sets the optional parameter which makes the operation
19051// fail if the object's ETag matches the given value. This is useful for
19052// getting updates only after the object has changed since the last
19053// request. Use googleapi.IsNotModified to check whether the response
19054// error from Do is the result of In-None-Match.
19055func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall {
19056	c.ifNoneMatch_ = entityTag
19057	return c
19058}
19059
19060// Context sets the context to be used in this call's Do method. Any
19061// pending HTTP request will be aborted if the provided context is
19062// canceled.
19063func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall {
19064	c.ctx_ = ctx
19065	return c
19066}
19067
19068// Header returns an http.Header that can be modified by the caller to
19069// add HTTP headers to the request.
19070func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header {
19071	if c.header_ == nil {
19072		c.header_ = make(http.Header)
19073	}
19074	return c.header_
19075}
19076
19077func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
19078	reqHeaders := make(http.Header)
19079	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19080	for k, v := range c.header_ {
19081		reqHeaders[k] = v
19082	}
19083	reqHeaders.Set("User-Agent", c.s.userAgent())
19084	if c.ifNoneMatch_ != "" {
19085		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19086	}
19087	var body io.Reader = nil
19088	c.urlParams_.Set("alt", alt)
19089	c.urlParams_.Set("prettyPrint", "false")
19090	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
19091	urls += "?" + c.urlParams_.Encode()
19092	req, err := http.NewRequest("GET", urls, body)
19093	if err != nil {
19094		return nil, err
19095	}
19096	req.Header = reqHeaders
19097	googleapi.Expand(req.URL, map[string]string{
19098		"name": c.name,
19099	})
19100	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19101}
19102
19103// Do executes the "dialogflow.projects.agent.getFulfillment" call.
19104// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
19105// be non-nil. Any non-2xx status code is an error. Response headers are
19106// in either
19107// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
19108// a response was returned at all) in error.(*googleapi.Error).Header.
19109// Use googleapi.IsNotModified to check whether the returned error was
19110// because http.StatusNotModified was returned.
19111func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
19112	gensupport.SetOptions(c.urlParams_, opts...)
19113	res, err := c.doRequest("json")
19114	if res != nil && res.StatusCode == http.StatusNotModified {
19115		if res.Body != nil {
19116			res.Body.Close()
19117		}
19118		return nil, &googleapi.Error{
19119			Code:   res.StatusCode,
19120			Header: res.Header,
19121		}
19122	}
19123	if err != nil {
19124		return nil, err
19125	}
19126	defer googleapi.CloseBody(res)
19127	if err := googleapi.CheckResponse(res); err != nil {
19128		return nil, err
19129	}
19130	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
19131		ServerResponse: googleapi.ServerResponse{
19132			Header:         res.Header,
19133			HTTPStatusCode: res.StatusCode,
19134		},
19135	}
19136	target := &ret
19137	if err := gensupport.DecodeResponse(target, res); err != nil {
19138		return nil, err
19139	}
19140	return ret, nil
19141	// {
19142	//   "description": "Retrieves the fulfillment.",
19143	//   "flatPath": "v2beta1/projects/{projectsId}/agent/fulfillment",
19144	//   "httpMethod": "GET",
19145	//   "id": "dialogflow.projects.agent.getFulfillment",
19146	//   "parameterOrder": [
19147	//     "name"
19148	//   ],
19149	//   "parameters": {
19150	//     "name": {
19151	//       "description": "Required. The name of the fulfillment. Supported formats: - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`",
19152	//       "location": "path",
19153	//       "pattern": "^projects/[^/]+/agent/fulfillment$",
19154	//       "required": true,
19155	//       "type": "string"
19156	//     }
19157	//   },
19158	//   "path": "v2beta1/{+name}",
19159	//   "response": {
19160	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
19161	//   },
19162	//   "scopes": [
19163	//     "https://www.googleapis.com/auth/cloud-platform",
19164	//     "https://www.googleapis.com/auth/dialogflow"
19165	//   ]
19166	// }
19167
19168}
19169
19170// method id "dialogflow.projects.agent.getValidationResult":
19171
19172type ProjectsAgentGetValidationResultCall struct {
19173	s            *Service
19174	parent       string
19175	urlParams_   gensupport.URLParams
19176	ifNoneMatch_ string
19177	ctx_         context.Context
19178	header_      http.Header
19179}
19180
19181// GetValidationResult: Gets agent validation result. Agent validation
19182// is performed during training time and is updated automatically when
19183// training is completed.
19184//
19185// - parent: The project that the agent is associated with. Format:
19186//   `projects/` or `projects//locations/`.
19187func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall {
19188	c := &ProjectsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19189	c.parent = parent
19190	return c
19191}
19192
19193// LanguageCode sets the optional parameter "languageCode": The language
19194// for which you want a validation result. If not specified, the agent's
19195// default language is used. Many languages
19196// (https://cloud.google.com/dialogflow/docs/reference/language) are
19197// supported. Note: languages must be enabled in the agent before they
19198// can be used.
19199func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall {
19200	c.urlParams_.Set("languageCode", languageCode)
19201	return c
19202}
19203
19204// Fields allows partial responses to be retrieved. See
19205// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19206// for more information.
19207func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall {
19208	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19209	return c
19210}
19211
19212// IfNoneMatch sets the optional parameter which makes the operation
19213// fail if the object's ETag matches the given value. This is useful for
19214// getting updates only after the object has changed since the last
19215// request. Use googleapi.IsNotModified to check whether the response
19216// error from Do is the result of In-None-Match.
19217func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall {
19218	c.ifNoneMatch_ = entityTag
19219	return c
19220}
19221
19222// Context sets the context to be used in this call's Do method. Any
19223// pending HTTP request will be aborted if the provided context is
19224// canceled.
19225func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall {
19226	c.ctx_ = ctx
19227	return c
19228}
19229
19230// Header returns an http.Header that can be modified by the caller to
19231// add HTTP headers to the request.
19232func (c *ProjectsAgentGetValidationResultCall) Header() http.Header {
19233	if c.header_ == nil {
19234		c.header_ = make(http.Header)
19235	}
19236	return c.header_
19237}
19238
19239func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
19240	reqHeaders := make(http.Header)
19241	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19242	for k, v := range c.header_ {
19243		reqHeaders[k] = v
19244	}
19245	reqHeaders.Set("User-Agent", c.s.userAgent())
19246	if c.ifNoneMatch_ != "" {
19247		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19248	}
19249	var body io.Reader = nil
19250	c.urlParams_.Set("alt", alt)
19251	c.urlParams_.Set("prettyPrint", "false")
19252	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
19253	urls += "?" + c.urlParams_.Encode()
19254	req, err := http.NewRequest("GET", urls, body)
19255	if err != nil {
19256		return nil, err
19257	}
19258	req.Header = reqHeaders
19259	googleapi.Expand(req.URL, map[string]string{
19260		"parent": c.parent,
19261	})
19262	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19263}
19264
19265// Do executes the "dialogflow.projects.agent.getValidationResult" call.
19266// Exactly one of *GoogleCloudDialogflowV2beta1ValidationResult or error
19267// will be non-nil. Any non-2xx status code is an error. Response
19268// headers are in either
19269// *GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header
19270// or (if a response was returned at all) in
19271// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19272// whether the returned error was because http.StatusNotModified was
19273// returned.
19274func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
19275	gensupport.SetOptions(c.urlParams_, opts...)
19276	res, err := c.doRequest("json")
19277	if res != nil && res.StatusCode == http.StatusNotModified {
19278		if res.Body != nil {
19279			res.Body.Close()
19280		}
19281		return nil, &googleapi.Error{
19282			Code:   res.StatusCode,
19283			Header: res.Header,
19284		}
19285	}
19286	if err != nil {
19287		return nil, err
19288	}
19289	defer googleapi.CloseBody(res)
19290	if err := googleapi.CheckResponse(res); err != nil {
19291		return nil, err
19292	}
19293	ret := &GoogleCloudDialogflowV2beta1ValidationResult{
19294		ServerResponse: googleapi.ServerResponse{
19295			Header:         res.Header,
19296			HTTPStatusCode: res.StatusCode,
19297		},
19298	}
19299	target := &ret
19300	if err := gensupport.DecodeResponse(target, res); err != nil {
19301		return nil, err
19302	}
19303	return ret, nil
19304	// {
19305	//   "description": "Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.",
19306	//   "flatPath": "v2beta1/projects/{projectsId}/agent/validationResult",
19307	//   "httpMethod": "GET",
19308	//   "id": "dialogflow.projects.agent.getValidationResult",
19309	//   "parameterOrder": [
19310	//     "parent"
19311	//   ],
19312	//   "parameters": {
19313	//     "languageCode": {
19314	//       "description": "Optional. The language for which you want a validation result. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
19315	//       "location": "query",
19316	//       "type": "string"
19317	//     },
19318	//     "parent": {
19319	//       "description": "Required. The project that the agent is associated with. Format: `projects/` or `projects//locations/`.",
19320	//       "location": "path",
19321	//       "pattern": "^projects/[^/]+$",
19322	//       "required": true,
19323	//       "type": "string"
19324	//     }
19325	//   },
19326	//   "path": "v2beta1/{+parent}/agent/validationResult",
19327	//   "response": {
19328	//     "$ref": "GoogleCloudDialogflowV2beta1ValidationResult"
19329	//   },
19330	//   "scopes": [
19331	//     "https://www.googleapis.com/auth/cloud-platform",
19332	//     "https://www.googleapis.com/auth/dialogflow"
19333	//   ]
19334	// }
19335
19336}
19337
19338// method id "dialogflow.projects.agent.import":
19339
19340type ProjectsAgentImportCall struct {
19341	s                                              *Service
19342	parent                                         string
19343	googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
19344	urlParams_                                     gensupport.URLParams
19345	ctx_                                           context.Context
19346	header_                                        http.Header
19347}
19348
19349// Import: Imports the specified agent from a ZIP file. Uploads new
19350// intents and entity types without deleting the existing ones. Intents
19351// and entity types with the same name are replaced with the new
19352// versions from ImportAgentRequest. After the import, the imported
19353// draft agent will be trained automatically (unless disabled in agent
19354// settings). However, once the import is done, training may not be
19355// completed yet. Please call TrainAgent and wait for the operation it
19356// returns in order to train explicitly. Note: You should always train
19357// an agent prior to sending it queries. See the training documentation
19358// (https://cloud.google.com/dialogflow/es/docs/training).
19359//
19360// - parent: The project that the agent to import is associated with.
19361//   Format: `projects/` or `projects//locations/`.
19362func (r *ProjectsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsAgentImportCall {
19363	c := &ProjectsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19364	c.parent = parent
19365	c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
19366	return c
19367}
19368
19369// Fields allows partial responses to be retrieved. See
19370// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19371// for more information.
19372func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall {
19373	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19374	return c
19375}
19376
19377// Context sets the context to be used in this call's Do method. Any
19378// pending HTTP request will be aborted if the provided context is
19379// canceled.
19380func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall {
19381	c.ctx_ = ctx
19382	return c
19383}
19384
19385// Header returns an http.Header that can be modified by the caller to
19386// add HTTP headers to the request.
19387func (c *ProjectsAgentImportCall) Header() http.Header {
19388	if c.header_ == nil {
19389		c.header_ = make(http.Header)
19390	}
19391	return c.header_
19392}
19393
19394func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) {
19395	reqHeaders := make(http.Header)
19396	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19397	for k, v := range c.header_ {
19398		reqHeaders[k] = v
19399	}
19400	reqHeaders.Set("User-Agent", c.s.userAgent())
19401	var body io.Reader = nil
19402	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
19403	if err != nil {
19404		return nil, err
19405	}
19406	reqHeaders.Set("Content-Type", "application/json")
19407	c.urlParams_.Set("alt", alt)
19408	c.urlParams_.Set("prettyPrint", "false")
19409	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
19410	urls += "?" + c.urlParams_.Encode()
19411	req, err := http.NewRequest("POST", urls, body)
19412	if err != nil {
19413		return nil, err
19414	}
19415	req.Header = reqHeaders
19416	googleapi.Expand(req.URL, map[string]string{
19417		"parent": c.parent,
19418	})
19419	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19420}
19421
19422// Do executes the "dialogflow.projects.agent.import" call.
19423// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19424// Any non-2xx status code is an error. Response headers are in either
19425// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19426// was returned at all) in error.(*googleapi.Error).Header. Use
19427// googleapi.IsNotModified to check whether the returned error was
19428// because http.StatusNotModified was returned.
19429func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19430	gensupport.SetOptions(c.urlParams_, opts...)
19431	res, err := c.doRequest("json")
19432	if res != nil && res.StatusCode == http.StatusNotModified {
19433		if res.Body != nil {
19434			res.Body.Close()
19435		}
19436		return nil, &googleapi.Error{
19437			Code:   res.StatusCode,
19438			Header: res.Header,
19439		}
19440	}
19441	if err != nil {
19442		return nil, err
19443	}
19444	defer googleapi.CloseBody(res)
19445	if err := googleapi.CheckResponse(res); err != nil {
19446		return nil, err
19447	}
19448	ret := &GoogleLongrunningOperation{
19449		ServerResponse: googleapi.ServerResponse{
19450			Header:         res.Header,
19451			HTTPStatusCode: res.StatusCode,
19452		},
19453	}
19454	target := &ret
19455	if err := gensupport.DecodeResponse(target, res); err != nil {
19456		return nil, err
19457	}
19458	return ret, nil
19459	// {
19460	//   "description": "Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
19461	//   "flatPath": "v2beta1/projects/{projectsId}/agent:import",
19462	//   "httpMethod": "POST",
19463	//   "id": "dialogflow.projects.agent.import",
19464	//   "parameterOrder": [
19465	//     "parent"
19466	//   ],
19467	//   "parameters": {
19468	//     "parent": {
19469	//       "description": "Required. The project that the agent to import is associated with. Format: `projects/` or `projects//locations/`.",
19470	//       "location": "path",
19471	//       "pattern": "^projects/[^/]+$",
19472	//       "required": true,
19473	//       "type": "string"
19474	//     }
19475	//   },
19476	//   "path": "v2beta1/{+parent}/agent:import",
19477	//   "request": {
19478	//     "$ref": "GoogleCloudDialogflowV2beta1ImportAgentRequest"
19479	//   },
19480	//   "response": {
19481	//     "$ref": "GoogleLongrunningOperation"
19482	//   },
19483	//   "scopes": [
19484	//     "https://www.googleapis.com/auth/cloud-platform",
19485	//     "https://www.googleapis.com/auth/dialogflow"
19486	//   ]
19487	// }
19488
19489}
19490
19491// method id "dialogflow.projects.agent.restore":
19492
19493type ProjectsAgentRestoreCall struct {
19494	s                                               *Service
19495	parent                                          string
19496	googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
19497	urlParams_                                      gensupport.URLParams
19498	ctx_                                            context.Context
19499	header_                                         http.Header
19500}
19501
19502// Restore: Restores the specified agent from a ZIP file. Replaces the
19503// current agent version with a new one. All the intents and entity
19504// types in the older version are deleted. After the restore, the
19505// restored draft agent will be trained automatically (unless disabled
19506// in agent settings). However, once the restore is done, training may
19507// not be completed yet. Please call TrainAgent and wait for the
19508// operation it returns in order to train explicitly. Note: You should
19509// always train an agent prior to sending it queries. See the training
19510// documentation (https://cloud.google.com/dialogflow/es/docs/training).
19511//
19512// - parent: The project that the agent to restore is associated with.
19513//   Format: `projects/` or `projects//locations/`.
19514func (r *ProjectsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsAgentRestoreCall {
19515	c := &ProjectsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19516	c.parent = parent
19517	c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
19518	return c
19519}
19520
19521// Fields allows partial responses to be retrieved. See
19522// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19523// for more information.
19524func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall {
19525	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19526	return c
19527}
19528
19529// Context sets the context to be used in this call's Do method. Any
19530// pending HTTP request will be aborted if the provided context is
19531// canceled.
19532func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall {
19533	c.ctx_ = ctx
19534	return c
19535}
19536
19537// Header returns an http.Header that can be modified by the caller to
19538// add HTTP headers to the request.
19539func (c *ProjectsAgentRestoreCall) Header() http.Header {
19540	if c.header_ == nil {
19541		c.header_ = make(http.Header)
19542	}
19543	return c.header_
19544}
19545
19546func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
19547	reqHeaders := make(http.Header)
19548	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19549	for k, v := range c.header_ {
19550		reqHeaders[k] = v
19551	}
19552	reqHeaders.Set("User-Agent", c.s.userAgent())
19553	var body io.Reader = nil
19554	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
19555	if err != nil {
19556		return nil, err
19557	}
19558	reqHeaders.Set("Content-Type", "application/json")
19559	c.urlParams_.Set("alt", alt)
19560	c.urlParams_.Set("prettyPrint", "false")
19561	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
19562	urls += "?" + c.urlParams_.Encode()
19563	req, err := http.NewRequest("POST", urls, body)
19564	if err != nil {
19565		return nil, err
19566	}
19567	req.Header = reqHeaders
19568	googleapi.Expand(req.URL, map[string]string{
19569		"parent": c.parent,
19570	})
19571	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19572}
19573
19574// Do executes the "dialogflow.projects.agent.restore" call.
19575// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19576// Any non-2xx status code is an error. Response headers are in either
19577// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19578// was returned at all) in error.(*googleapi.Error).Header. Use
19579// googleapi.IsNotModified to check whether the returned error was
19580// because http.StatusNotModified was returned.
19581func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19582	gensupport.SetOptions(c.urlParams_, opts...)
19583	res, err := c.doRequest("json")
19584	if res != nil && res.StatusCode == http.StatusNotModified {
19585		if res.Body != nil {
19586			res.Body.Close()
19587		}
19588		return nil, &googleapi.Error{
19589			Code:   res.StatusCode,
19590			Header: res.Header,
19591		}
19592	}
19593	if err != nil {
19594		return nil, err
19595	}
19596	defer googleapi.CloseBody(res)
19597	if err := googleapi.CheckResponse(res); err != nil {
19598		return nil, err
19599	}
19600	ret := &GoogleLongrunningOperation{
19601		ServerResponse: googleapi.ServerResponse{
19602			Header:         res.Header,
19603			HTTPStatusCode: res.StatusCode,
19604		},
19605	}
19606	target := &ret
19607	if err := gensupport.DecodeResponse(target, res); err != nil {
19608		return nil, err
19609	}
19610	return ret, nil
19611	// {
19612	//   "description": "Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
19613	//   "flatPath": "v2beta1/projects/{projectsId}/agent:restore",
19614	//   "httpMethod": "POST",
19615	//   "id": "dialogflow.projects.agent.restore",
19616	//   "parameterOrder": [
19617	//     "parent"
19618	//   ],
19619	//   "parameters": {
19620	//     "parent": {
19621	//       "description": "Required. The project that the agent to restore is associated with. Format: `projects/` or `projects//locations/`.",
19622	//       "location": "path",
19623	//       "pattern": "^projects/[^/]+$",
19624	//       "required": true,
19625	//       "type": "string"
19626	//     }
19627	//   },
19628	//   "path": "v2beta1/{+parent}/agent:restore",
19629	//   "request": {
19630	//     "$ref": "GoogleCloudDialogflowV2beta1RestoreAgentRequest"
19631	//   },
19632	//   "response": {
19633	//     "$ref": "GoogleLongrunningOperation"
19634	//   },
19635	//   "scopes": [
19636	//     "https://www.googleapis.com/auth/cloud-platform",
19637	//     "https://www.googleapis.com/auth/dialogflow"
19638	//   ]
19639	// }
19640
19641}
19642
19643// method id "dialogflow.projects.agent.search":
19644
19645type ProjectsAgentSearchCall struct {
19646	s            *Service
19647	parent       string
19648	urlParams_   gensupport.URLParams
19649	ifNoneMatch_ string
19650	ctx_         context.Context
19651	header_      http.Header
19652}
19653
19654// Search: Returns the list of agents. Since there is at most one
19655// conversational agent per project, this method is useful primarily for
19656// listing all agents across projects the caller has access to. One can
19657// achieve that with a wildcard project collection id "-". Refer to List
19658// Sub-Collections
19659// (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
19660//
19661// - parent: The project to list agents from. Format: `projects/` or
19662//   `projects//locations/`.
19663func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall {
19664	c := &ProjectsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19665	c.parent = parent
19666	return c
19667}
19668
19669// PageSize sets the optional parameter "pageSize": The maximum number
19670// of items to return in a single page. By default 100 and at most 1000.
19671func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall {
19672	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19673	return c
19674}
19675
19676// PageToken sets the optional parameter "pageToken": The
19677// next_page_token value returned from a previous list request.
19678func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall {
19679	c.urlParams_.Set("pageToken", pageToken)
19680	return c
19681}
19682
19683// Fields allows partial responses to be retrieved. See
19684// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19685// for more information.
19686func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall {
19687	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19688	return c
19689}
19690
19691// IfNoneMatch sets the optional parameter which makes the operation
19692// fail if the object's ETag matches the given value. This is useful for
19693// getting updates only after the object has changed since the last
19694// request. Use googleapi.IsNotModified to check whether the response
19695// error from Do is the result of In-None-Match.
19696func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall {
19697	c.ifNoneMatch_ = entityTag
19698	return c
19699}
19700
19701// Context sets the context to be used in this call's Do method. Any
19702// pending HTTP request will be aborted if the provided context is
19703// canceled.
19704func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall {
19705	c.ctx_ = ctx
19706	return c
19707}
19708
19709// Header returns an http.Header that can be modified by the caller to
19710// add HTTP headers to the request.
19711func (c *ProjectsAgentSearchCall) Header() http.Header {
19712	if c.header_ == nil {
19713		c.header_ = make(http.Header)
19714	}
19715	return c.header_
19716}
19717
19718func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
19719	reqHeaders := make(http.Header)
19720	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19721	for k, v := range c.header_ {
19722		reqHeaders[k] = v
19723	}
19724	reqHeaders.Set("User-Agent", c.s.userAgent())
19725	if c.ifNoneMatch_ != "" {
19726		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19727	}
19728	var body io.Reader = nil
19729	c.urlParams_.Set("alt", alt)
19730	c.urlParams_.Set("prettyPrint", "false")
19731	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
19732	urls += "?" + c.urlParams_.Encode()
19733	req, err := http.NewRequest("GET", urls, body)
19734	if err != nil {
19735		return nil, err
19736	}
19737	req.Header = reqHeaders
19738	googleapi.Expand(req.URL, map[string]string{
19739		"parent": c.parent,
19740	})
19741	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19742}
19743
19744// Do executes the "dialogflow.projects.agent.search" call.
19745// Exactly one of *GoogleCloudDialogflowV2beta1SearchAgentsResponse or
19746// error will be non-nil. Any non-2xx status code is an error. Response
19747// headers are in either
19748// *GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Heade
19749// r or (if a response was returned at all) in
19750// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19751// whether the returned error was because http.StatusNotModified was
19752// returned.
19753func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
19754	gensupport.SetOptions(c.urlParams_, opts...)
19755	res, err := c.doRequest("json")
19756	if res != nil && res.StatusCode == http.StatusNotModified {
19757		if res.Body != nil {
19758			res.Body.Close()
19759		}
19760		return nil, &googleapi.Error{
19761			Code:   res.StatusCode,
19762			Header: res.Header,
19763		}
19764	}
19765	if err != nil {
19766		return nil, err
19767	}
19768	defer googleapi.CloseBody(res)
19769	if err := googleapi.CheckResponse(res); err != nil {
19770		return nil, err
19771	}
19772	ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
19773		ServerResponse: googleapi.ServerResponse{
19774			Header:         res.Header,
19775			HTTPStatusCode: res.StatusCode,
19776		},
19777	}
19778	target := &ret
19779	if err := gensupport.DecodeResponse(target, res); err != nil {
19780		return nil, err
19781	}
19782	return ret, nil
19783	// {
19784	//   "description": "Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id \"-\". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).",
19785	//   "flatPath": "v2beta1/projects/{projectsId}/agent:search",
19786	//   "httpMethod": "GET",
19787	//   "id": "dialogflow.projects.agent.search",
19788	//   "parameterOrder": [
19789	//     "parent"
19790	//   ],
19791	//   "parameters": {
19792	//     "pageSize": {
19793	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
19794	//       "format": "int32",
19795	//       "location": "query",
19796	//       "type": "integer"
19797	//     },
19798	//     "pageToken": {
19799	//       "description": "Optional. The next_page_token value returned from a previous list request.",
19800	//       "location": "query",
19801	//       "type": "string"
19802	//     },
19803	//     "parent": {
19804	//       "description": "Required. The project to list agents from. Format: `projects/` or `projects//locations/`.",
19805	//       "location": "path",
19806	//       "pattern": "^projects/[^/]+$",
19807	//       "required": true,
19808	//       "type": "string"
19809	//     }
19810	//   },
19811	//   "path": "v2beta1/{+parent}/agent:search",
19812	//   "response": {
19813	//     "$ref": "GoogleCloudDialogflowV2beta1SearchAgentsResponse"
19814	//   },
19815	//   "scopes": [
19816	//     "https://www.googleapis.com/auth/cloud-platform",
19817	//     "https://www.googleapis.com/auth/dialogflow"
19818	//   ]
19819	// }
19820
19821}
19822
19823// Pages invokes f for each page of results.
19824// A non-nil error returned from f will halt the iteration.
19825// The provided context supersedes any context provided to the Context method.
19826func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
19827	c.ctx_ = ctx
19828	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
19829	for {
19830		x, err := c.Do()
19831		if err != nil {
19832			return err
19833		}
19834		if err := f(x); err != nil {
19835			return err
19836		}
19837		if x.NextPageToken == "" {
19838			return nil
19839		}
19840		c.PageToken(x.NextPageToken)
19841	}
19842}
19843
19844// method id "dialogflow.projects.agent.train":
19845
19846type ProjectsAgentTrainCall struct {
19847	s                                             *Service
19848	parent                                        string
19849	googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
19850	urlParams_                                    gensupport.URLParams
19851	ctx_                                          context.Context
19852	header_                                       http.Header
19853}
19854
19855// Train: Trains the specified agent. Note: You should always train an
19856// agent prior to sending it queries. See the training documentation
19857// (https://cloud.google.com/dialogflow/es/docs/training).
19858//
19859// - parent: The project that the agent to train is associated with.
19860//   Format: `projects/` or `projects//locations/`.
19861func (r *ProjectsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsAgentTrainCall {
19862	c := &ProjectsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19863	c.parent = parent
19864	c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
19865	return c
19866}
19867
19868// Fields allows partial responses to be retrieved. See
19869// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19870// for more information.
19871func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall {
19872	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19873	return c
19874}
19875
19876// Context sets the context to be used in this call's Do method. Any
19877// pending HTTP request will be aborted if the provided context is
19878// canceled.
19879func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall {
19880	c.ctx_ = ctx
19881	return c
19882}
19883
19884// Header returns an http.Header that can be modified by the caller to
19885// add HTTP headers to the request.
19886func (c *ProjectsAgentTrainCall) Header() http.Header {
19887	if c.header_ == nil {
19888		c.header_ = make(http.Header)
19889	}
19890	return c.header_
19891}
19892
19893func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
19894	reqHeaders := make(http.Header)
19895	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19896	for k, v := range c.header_ {
19897		reqHeaders[k] = v
19898	}
19899	reqHeaders.Set("User-Agent", c.s.userAgent())
19900	var body io.Reader = nil
19901	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
19902	if err != nil {
19903		return nil, err
19904	}
19905	reqHeaders.Set("Content-Type", "application/json")
19906	c.urlParams_.Set("alt", alt)
19907	c.urlParams_.Set("prettyPrint", "false")
19908	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
19909	urls += "?" + c.urlParams_.Encode()
19910	req, err := http.NewRequest("POST", urls, body)
19911	if err != nil {
19912		return nil, err
19913	}
19914	req.Header = reqHeaders
19915	googleapi.Expand(req.URL, map[string]string{
19916		"parent": c.parent,
19917	})
19918	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19919}
19920
19921// Do executes the "dialogflow.projects.agent.train" call.
19922// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19923// Any non-2xx status code is an error. Response headers are in either
19924// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19925// was returned at all) in error.(*googleapi.Error).Header. Use
19926// googleapi.IsNotModified to check whether the returned error was
19927// because http.StatusNotModified was returned.
19928func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19929	gensupport.SetOptions(c.urlParams_, opts...)
19930	res, err := c.doRequest("json")
19931	if res != nil && res.StatusCode == http.StatusNotModified {
19932		if res.Body != nil {
19933			res.Body.Close()
19934		}
19935		return nil, &googleapi.Error{
19936			Code:   res.StatusCode,
19937			Header: res.Header,
19938		}
19939	}
19940	if err != nil {
19941		return nil, err
19942	}
19943	defer googleapi.CloseBody(res)
19944	if err := googleapi.CheckResponse(res); err != nil {
19945		return nil, err
19946	}
19947	ret := &GoogleLongrunningOperation{
19948		ServerResponse: googleapi.ServerResponse{
19949			Header:         res.Header,
19950			HTTPStatusCode: res.StatusCode,
19951		},
19952	}
19953	target := &ret
19954	if err := gensupport.DecodeResponse(target, res); err != nil {
19955		return nil, err
19956	}
19957	return ret, nil
19958	// {
19959	//   "description": "Trains the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
19960	//   "flatPath": "v2beta1/projects/{projectsId}/agent:train",
19961	//   "httpMethod": "POST",
19962	//   "id": "dialogflow.projects.agent.train",
19963	//   "parameterOrder": [
19964	//     "parent"
19965	//   ],
19966	//   "parameters": {
19967	//     "parent": {
19968	//       "description": "Required. The project that the agent to train is associated with. Format: `projects/` or `projects//locations/`.",
19969	//       "location": "path",
19970	//       "pattern": "^projects/[^/]+$",
19971	//       "required": true,
19972	//       "type": "string"
19973	//     }
19974	//   },
19975	//   "path": "v2beta1/{+parent}/agent:train",
19976	//   "request": {
19977	//     "$ref": "GoogleCloudDialogflowV2beta1TrainAgentRequest"
19978	//   },
19979	//   "response": {
19980	//     "$ref": "GoogleLongrunningOperation"
19981	//   },
19982	//   "scopes": [
19983	//     "https://www.googleapis.com/auth/cloud-platform",
19984	//     "https://www.googleapis.com/auth/dialogflow"
19985	//   ]
19986	// }
19987
19988}
19989
19990// method id "dialogflow.projects.agent.updateFulfillment":
19991
19992type ProjectsAgentUpdateFulfillmentCall struct {
19993	s                                       *Service
19994	nameid                                  string
19995	googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
19996	urlParams_                              gensupport.URLParams
19997	ctx_                                    context.Context
19998	header_                                 http.Header
19999}
20000
20001// UpdateFulfillment: Updates the fulfillment.
20002//
20003// - name: The unique identifier of the fulfillment. Supported formats:
20004//   - `projects//agent/fulfillment` -
20005//   `projects//locations//agent/fulfillment` This field is not used for
20006//   Fulfillment in an Environment.
20007func (r *ProjectsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsAgentUpdateFulfillmentCall {
20008	c := &ProjectsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20009	c.nameid = nameid
20010	c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
20011	return c
20012}
20013
20014// UpdateMask sets the optional parameter "updateMask": Required. The
20015// mask to control which fields get updated. If the mask is not present,
20016// all fields will be updated.
20017func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall {
20018	c.urlParams_.Set("updateMask", updateMask)
20019	return c
20020}
20021
20022// Fields allows partial responses to be retrieved. See
20023// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20024// for more information.
20025func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall {
20026	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20027	return c
20028}
20029
20030// Context sets the context to be used in this call's Do method. Any
20031// pending HTTP request will be aborted if the provided context is
20032// canceled.
20033func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall {
20034	c.ctx_ = ctx
20035	return c
20036}
20037
20038// Header returns an http.Header that can be modified by the caller to
20039// add HTTP headers to the request.
20040func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header {
20041	if c.header_ == nil {
20042		c.header_ = make(http.Header)
20043	}
20044	return c.header_
20045}
20046
20047func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
20048	reqHeaders := make(http.Header)
20049	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20050	for k, v := range c.header_ {
20051		reqHeaders[k] = v
20052	}
20053	reqHeaders.Set("User-Agent", c.s.userAgent())
20054	var body io.Reader = nil
20055	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
20056	if err != nil {
20057		return nil, err
20058	}
20059	reqHeaders.Set("Content-Type", "application/json")
20060	c.urlParams_.Set("alt", alt)
20061	c.urlParams_.Set("prettyPrint", "false")
20062	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20063	urls += "?" + c.urlParams_.Encode()
20064	req, err := http.NewRequest("PATCH", urls, body)
20065	if err != nil {
20066		return nil, err
20067	}
20068	req.Header = reqHeaders
20069	googleapi.Expand(req.URL, map[string]string{
20070		"name": c.nameid,
20071	})
20072	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20073}
20074
20075// Do executes the "dialogflow.projects.agent.updateFulfillment" call.
20076// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
20077// be non-nil. Any non-2xx status code is an error. Response headers are
20078// in either
20079// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
20080// a response was returned at all) in error.(*googleapi.Error).Header.
20081// Use googleapi.IsNotModified to check whether the returned error was
20082// because http.StatusNotModified was returned.
20083func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
20084	gensupport.SetOptions(c.urlParams_, opts...)
20085	res, err := c.doRequest("json")
20086	if res != nil && res.StatusCode == http.StatusNotModified {
20087		if res.Body != nil {
20088			res.Body.Close()
20089		}
20090		return nil, &googleapi.Error{
20091			Code:   res.StatusCode,
20092			Header: res.Header,
20093		}
20094	}
20095	if err != nil {
20096		return nil, err
20097	}
20098	defer googleapi.CloseBody(res)
20099	if err := googleapi.CheckResponse(res); err != nil {
20100		return nil, err
20101	}
20102	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
20103		ServerResponse: googleapi.ServerResponse{
20104			Header:         res.Header,
20105			HTTPStatusCode: res.StatusCode,
20106		},
20107	}
20108	target := &ret
20109	if err := gensupport.DecodeResponse(target, res); err != nil {
20110		return nil, err
20111	}
20112	return ret, nil
20113	// {
20114	//   "description": "Updates the fulfillment.",
20115	//   "flatPath": "v2beta1/projects/{projectsId}/agent/fulfillment",
20116	//   "httpMethod": "PATCH",
20117	//   "id": "dialogflow.projects.agent.updateFulfillment",
20118	//   "parameterOrder": [
20119	//     "name"
20120	//   ],
20121	//   "parameters": {
20122	//     "name": {
20123	//       "description": "Required. The unique identifier of the fulfillment. Supported formats: - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This field is not used for Fulfillment in an Environment.",
20124	//       "location": "path",
20125	//       "pattern": "^projects/[^/]+/agent/fulfillment$",
20126	//       "required": true,
20127	//       "type": "string"
20128	//     },
20129	//     "updateMask": {
20130	//       "description": "Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
20131	//       "format": "google-fieldmask",
20132	//       "location": "query",
20133	//       "type": "string"
20134	//     }
20135	//   },
20136	//   "path": "v2beta1/{+name}",
20137	//   "request": {
20138	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
20139	//   },
20140	//   "response": {
20141	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
20142	//   },
20143	//   "scopes": [
20144	//     "https://www.googleapis.com/auth/cloud-platform",
20145	//     "https://www.googleapis.com/auth/dialogflow"
20146	//   ]
20147	// }
20148
20149}
20150
20151// method id "dialogflow.projects.agent.entityTypes.batchDelete":
20152
20153type ProjectsAgentEntityTypesBatchDeleteCall struct {
20154	s                                                         *Service
20155	parent                                                    string
20156	googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
20157	urlParams_                                                gensupport.URLParams
20158	ctx_                                                      context.Context
20159	header_                                                   http.Header
20160}
20161
20162// BatchDelete: Deletes entity types in the specified agent. Note: You
20163// should always train an agent prior to sending it queries. See the
20164// training documentation
20165// (https://cloud.google.com/dialogflow/es/docs/training).
20166//
20167// - parent: The name of the agent to delete all entities types for.
20168//   Supported formats: - `projects//agent`, -
20169//   `projects//locations//agent`.
20170func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall {
20171	c := &ProjectsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20172	c.parent = parent
20173	c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
20174	return c
20175}
20176
20177// Fields allows partial responses to be retrieved. See
20178// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20179// for more information.
20180func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall {
20181	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20182	return c
20183}
20184
20185// Context sets the context to be used in this call's Do method. Any
20186// pending HTTP request will be aborted if the provided context is
20187// canceled.
20188func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall {
20189	c.ctx_ = ctx
20190	return c
20191}
20192
20193// Header returns an http.Header that can be modified by the caller to
20194// add HTTP headers to the request.
20195func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header {
20196	if c.header_ == nil {
20197		c.header_ = make(http.Header)
20198	}
20199	return c.header_
20200}
20201
20202func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
20203	reqHeaders := make(http.Header)
20204	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20205	for k, v := range c.header_ {
20206		reqHeaders[k] = v
20207	}
20208	reqHeaders.Set("User-Agent", c.s.userAgent())
20209	var body io.Reader = nil
20210	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
20211	if err != nil {
20212		return nil, err
20213	}
20214	reqHeaders.Set("Content-Type", "application/json")
20215	c.urlParams_.Set("alt", alt)
20216	c.urlParams_.Set("prettyPrint", "false")
20217	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
20218	urls += "?" + c.urlParams_.Encode()
20219	req, err := http.NewRequest("POST", urls, body)
20220	if err != nil {
20221		return nil, err
20222	}
20223	req.Header = reqHeaders
20224	googleapi.Expand(req.URL, map[string]string{
20225		"parent": c.parent,
20226	})
20227	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20228}
20229
20230// Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call.
20231// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20232// Any non-2xx status code is an error. Response headers are in either
20233// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20234// was returned at all) in error.(*googleapi.Error).Header. Use
20235// googleapi.IsNotModified to check whether the returned error was
20236// because http.StatusNotModified was returned.
20237func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20238	gensupport.SetOptions(c.urlParams_, opts...)
20239	res, err := c.doRequest("json")
20240	if res != nil && res.StatusCode == http.StatusNotModified {
20241		if res.Body != nil {
20242			res.Body.Close()
20243		}
20244		return nil, &googleapi.Error{
20245			Code:   res.StatusCode,
20246			Header: res.Header,
20247		}
20248	}
20249	if err != nil {
20250		return nil, err
20251	}
20252	defer googleapi.CloseBody(res)
20253	if err := googleapi.CheckResponse(res); err != nil {
20254		return nil, err
20255	}
20256	ret := &GoogleLongrunningOperation{
20257		ServerResponse: googleapi.ServerResponse{
20258			Header:         res.Header,
20259			HTTPStatusCode: res.StatusCode,
20260		},
20261	}
20262	target := &ret
20263	if err := gensupport.DecodeResponse(target, res); err != nil {
20264		return nil, err
20265	}
20266	return ret, nil
20267	// {
20268	//   "description": "Deletes entity types in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
20269	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes:batchDelete",
20270	//   "httpMethod": "POST",
20271	//   "id": "dialogflow.projects.agent.entityTypes.batchDelete",
20272	//   "parameterOrder": [
20273	//     "parent"
20274	//   ],
20275	//   "parameters": {
20276	//     "parent": {
20277	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent`, - `projects//locations//agent`.",
20278	//       "location": "path",
20279	//       "pattern": "^projects/[^/]+/agent$",
20280	//       "required": true,
20281	//       "type": "string"
20282	//     }
20283	//   },
20284	//   "path": "v2beta1/{+parent}/entityTypes:batchDelete",
20285	//   "request": {
20286	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest"
20287	//   },
20288	//   "response": {
20289	//     "$ref": "GoogleLongrunningOperation"
20290	//   },
20291	//   "scopes": [
20292	//     "https://www.googleapis.com/auth/cloud-platform",
20293	//     "https://www.googleapis.com/auth/dialogflow"
20294	//   ]
20295	// }
20296
20297}
20298
20299// method id "dialogflow.projects.agent.entityTypes.batchUpdate":
20300
20301type ProjectsAgentEntityTypesBatchUpdateCall struct {
20302	s                                                         *Service
20303	parent                                                    string
20304	googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
20305	urlParams_                                                gensupport.URLParams
20306	ctx_                                                      context.Context
20307	header_                                                   http.Header
20308}
20309
20310// BatchUpdate: Updates/Creates multiple entity types in the specified
20311// agent. Note: You should always train an agent prior to sending it
20312// queries. See the training documentation
20313// (https://cloud.google.com/dialogflow/es/docs/training).
20314//
20315// - parent: The name of the agent to update or create entity types in.
20316//   Supported formats: - `projects//agent` -
20317//   `projects//locations//agent`.
20318func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall {
20319	c := &ProjectsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20320	c.parent = parent
20321	c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
20322	return c
20323}
20324
20325// Fields allows partial responses to be retrieved. See
20326// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20327// for more information.
20328func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall {
20329	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20330	return c
20331}
20332
20333// Context sets the context to be used in this call's Do method. Any
20334// pending HTTP request will be aborted if the provided context is
20335// canceled.
20336func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall {
20337	c.ctx_ = ctx
20338	return c
20339}
20340
20341// Header returns an http.Header that can be modified by the caller to
20342// add HTTP headers to the request.
20343func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header {
20344	if c.header_ == nil {
20345		c.header_ = make(http.Header)
20346	}
20347	return c.header_
20348}
20349
20350func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
20351	reqHeaders := make(http.Header)
20352	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20353	for k, v := range c.header_ {
20354		reqHeaders[k] = v
20355	}
20356	reqHeaders.Set("User-Agent", c.s.userAgent())
20357	var body io.Reader = nil
20358	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
20359	if err != nil {
20360		return nil, err
20361	}
20362	reqHeaders.Set("Content-Type", "application/json")
20363	c.urlParams_.Set("alt", alt)
20364	c.urlParams_.Set("prettyPrint", "false")
20365	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
20366	urls += "?" + c.urlParams_.Encode()
20367	req, err := http.NewRequest("POST", urls, body)
20368	if err != nil {
20369		return nil, err
20370	}
20371	req.Header = reqHeaders
20372	googleapi.Expand(req.URL, map[string]string{
20373		"parent": c.parent,
20374	})
20375	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20376}
20377
20378// Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call.
20379// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20380// Any non-2xx status code is an error. Response headers are in either
20381// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20382// was returned at all) in error.(*googleapi.Error).Header. Use
20383// googleapi.IsNotModified to check whether the returned error was
20384// because http.StatusNotModified was returned.
20385func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20386	gensupport.SetOptions(c.urlParams_, opts...)
20387	res, err := c.doRequest("json")
20388	if res != nil && res.StatusCode == http.StatusNotModified {
20389		if res.Body != nil {
20390			res.Body.Close()
20391		}
20392		return nil, &googleapi.Error{
20393			Code:   res.StatusCode,
20394			Header: res.Header,
20395		}
20396	}
20397	if err != nil {
20398		return nil, err
20399	}
20400	defer googleapi.CloseBody(res)
20401	if err := googleapi.CheckResponse(res); err != nil {
20402		return nil, err
20403	}
20404	ret := &GoogleLongrunningOperation{
20405		ServerResponse: googleapi.ServerResponse{
20406			Header:         res.Header,
20407			HTTPStatusCode: res.StatusCode,
20408		},
20409	}
20410	target := &ret
20411	if err := gensupport.DecodeResponse(target, res); err != nil {
20412		return nil, err
20413	}
20414	return ret, nil
20415	// {
20416	//   "description": "Updates/Creates multiple entity types in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
20417	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes:batchUpdate",
20418	//   "httpMethod": "POST",
20419	//   "id": "dialogflow.projects.agent.entityTypes.batchUpdate",
20420	//   "parameterOrder": [
20421	//     "parent"
20422	//   ],
20423	//   "parameters": {
20424	//     "parent": {
20425	//       "description": "Required. The name of the agent to update or create entity types in. Supported formats: - `projects//agent` - `projects//locations//agent`",
20426	//       "location": "path",
20427	//       "pattern": "^projects/[^/]+/agent$",
20428	//       "required": true,
20429	//       "type": "string"
20430	//     }
20431	//   },
20432	//   "path": "v2beta1/{+parent}/entityTypes:batchUpdate",
20433	//   "request": {
20434	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest"
20435	//   },
20436	//   "response": {
20437	//     "$ref": "GoogleLongrunningOperation"
20438	//   },
20439	//   "scopes": [
20440	//     "https://www.googleapis.com/auth/cloud-platform",
20441	//     "https://www.googleapis.com/auth/dialogflow"
20442	//   ]
20443	// }
20444
20445}
20446
20447// method id "dialogflow.projects.agent.entityTypes.create":
20448
20449type ProjectsAgentEntityTypesCreateCall struct {
20450	s                                      *Service
20451	parent                                 string
20452	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
20453	urlParams_                             gensupport.URLParams
20454	ctx_                                   context.Context
20455	header_                                http.Header
20456}
20457
20458// Create: Creates an entity type in the specified agent. Note: You
20459// should always train an agent prior to sending it queries. See the
20460// training documentation
20461// (https://cloud.google.com/dialogflow/es/docs/training).
20462//
20463// - parent: The agent to create a entity type for. Supported formats: -
20464//   `projects//agent` - `projects//locations//agent`.
20465func (r *ProjectsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesCreateCall {
20466	c := &ProjectsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20467	c.parent = parent
20468	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
20469	return c
20470}
20471
20472// LanguageCode sets the optional parameter "languageCode": The language
20473// used to access language-specific data. If not specified, the agent's
20474// default language is used. For more information, see Multilingual
20475// intent and entity data
20476// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
20477func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall {
20478	c.urlParams_.Set("languageCode", languageCode)
20479	return c
20480}
20481
20482// Fields allows partial responses to be retrieved. See
20483// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20484// for more information.
20485func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall {
20486	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20487	return c
20488}
20489
20490// Context sets the context to be used in this call's Do method. Any
20491// pending HTTP request will be aborted if the provided context is
20492// canceled.
20493func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall {
20494	c.ctx_ = ctx
20495	return c
20496}
20497
20498// Header returns an http.Header that can be modified by the caller to
20499// add HTTP headers to the request.
20500func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header {
20501	if c.header_ == nil {
20502		c.header_ = make(http.Header)
20503	}
20504	return c.header_
20505}
20506
20507func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
20508	reqHeaders := make(http.Header)
20509	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20510	for k, v := range c.header_ {
20511		reqHeaders[k] = v
20512	}
20513	reqHeaders.Set("User-Agent", c.s.userAgent())
20514	var body io.Reader = nil
20515	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
20516	if err != nil {
20517		return nil, err
20518	}
20519	reqHeaders.Set("Content-Type", "application/json")
20520	c.urlParams_.Set("alt", alt)
20521	c.urlParams_.Set("prettyPrint", "false")
20522	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
20523	urls += "?" + c.urlParams_.Encode()
20524	req, err := http.NewRequest("POST", urls, body)
20525	if err != nil {
20526		return nil, err
20527	}
20528	req.Header = reqHeaders
20529	googleapi.Expand(req.URL, map[string]string{
20530		"parent": c.parent,
20531	})
20532	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20533}
20534
20535// Do executes the "dialogflow.projects.agent.entityTypes.create" call.
20536// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
20537// be non-nil. Any non-2xx status code is an error. Response headers are
20538// in either
20539// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
20540// a response was returned at all) in error.(*googleapi.Error).Header.
20541// Use googleapi.IsNotModified to check whether the returned error was
20542// because http.StatusNotModified was returned.
20543func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
20544	gensupport.SetOptions(c.urlParams_, opts...)
20545	res, err := c.doRequest("json")
20546	if res != nil && res.StatusCode == http.StatusNotModified {
20547		if res.Body != nil {
20548			res.Body.Close()
20549		}
20550		return nil, &googleapi.Error{
20551			Code:   res.StatusCode,
20552			Header: res.Header,
20553		}
20554	}
20555	if err != nil {
20556		return nil, err
20557	}
20558	defer googleapi.CloseBody(res)
20559	if err := googleapi.CheckResponse(res); err != nil {
20560		return nil, err
20561	}
20562	ret := &GoogleCloudDialogflowV2beta1EntityType{
20563		ServerResponse: googleapi.ServerResponse{
20564			Header:         res.Header,
20565			HTTPStatusCode: res.StatusCode,
20566		},
20567	}
20568	target := &ret
20569	if err := gensupport.DecodeResponse(target, res); err != nil {
20570		return nil, err
20571	}
20572	return ret, nil
20573	// {
20574	//   "description": "Creates an entity type in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
20575	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes",
20576	//   "httpMethod": "POST",
20577	//   "id": "dialogflow.projects.agent.entityTypes.create",
20578	//   "parameterOrder": [
20579	//     "parent"
20580	//   ],
20581	//   "parameters": {
20582	//     "languageCode": {
20583	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
20584	//       "location": "query",
20585	//       "type": "string"
20586	//     },
20587	//     "parent": {
20588	//       "description": "Required. The agent to create a entity type for. Supported formats: - `projects//agent` - `projects//locations//agent`",
20589	//       "location": "path",
20590	//       "pattern": "^projects/[^/]+/agent$",
20591	//       "required": true,
20592	//       "type": "string"
20593	//     }
20594	//   },
20595	//   "path": "v2beta1/{+parent}/entityTypes",
20596	//   "request": {
20597	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20598	//   },
20599	//   "response": {
20600	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20601	//   },
20602	//   "scopes": [
20603	//     "https://www.googleapis.com/auth/cloud-platform",
20604	//     "https://www.googleapis.com/auth/dialogflow"
20605	//   ]
20606	// }
20607
20608}
20609
20610// method id "dialogflow.projects.agent.entityTypes.delete":
20611
20612type ProjectsAgentEntityTypesDeleteCall struct {
20613	s          *Service
20614	name       string
20615	urlParams_ gensupport.URLParams
20616	ctx_       context.Context
20617	header_    http.Header
20618}
20619
20620// Delete: Deletes the specified entity type. Note: You should always
20621// train an agent prior to sending it queries. See the training
20622// documentation (https://cloud.google.com/dialogflow/es/docs/training).
20623//
20624// - name: The name of the entity type to delete. Supported formats: -
20625//   `projects//agent/entityTypes/` -
20626//   `projects//locations//agent/entityTypes/`.
20627func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall {
20628	c := &ProjectsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20629	c.name = name
20630	return c
20631}
20632
20633// Fields allows partial responses to be retrieved. See
20634// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20635// for more information.
20636func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall {
20637	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20638	return c
20639}
20640
20641// Context sets the context to be used in this call's Do method. Any
20642// pending HTTP request will be aborted if the provided context is
20643// canceled.
20644func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall {
20645	c.ctx_ = ctx
20646	return c
20647}
20648
20649// Header returns an http.Header that can be modified by the caller to
20650// add HTTP headers to the request.
20651func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header {
20652	if c.header_ == nil {
20653		c.header_ = make(http.Header)
20654	}
20655	return c.header_
20656}
20657
20658func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
20659	reqHeaders := make(http.Header)
20660	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20661	for k, v := range c.header_ {
20662		reqHeaders[k] = v
20663	}
20664	reqHeaders.Set("User-Agent", c.s.userAgent())
20665	var body io.Reader = nil
20666	c.urlParams_.Set("alt", alt)
20667	c.urlParams_.Set("prettyPrint", "false")
20668	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20669	urls += "?" + c.urlParams_.Encode()
20670	req, err := http.NewRequest("DELETE", urls, body)
20671	if err != nil {
20672		return nil, err
20673	}
20674	req.Header = reqHeaders
20675	googleapi.Expand(req.URL, map[string]string{
20676		"name": c.name,
20677	})
20678	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20679}
20680
20681// Do executes the "dialogflow.projects.agent.entityTypes.delete" call.
20682// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
20683// non-2xx status code is an error. Response headers are in either
20684// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
20685// returned at all) in error.(*googleapi.Error).Header. Use
20686// googleapi.IsNotModified to check whether the returned error was
20687// because http.StatusNotModified was returned.
20688func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20689	gensupport.SetOptions(c.urlParams_, opts...)
20690	res, err := c.doRequest("json")
20691	if res != nil && res.StatusCode == http.StatusNotModified {
20692		if res.Body != nil {
20693			res.Body.Close()
20694		}
20695		return nil, &googleapi.Error{
20696			Code:   res.StatusCode,
20697			Header: res.Header,
20698		}
20699	}
20700	if err != nil {
20701		return nil, err
20702	}
20703	defer googleapi.CloseBody(res)
20704	if err := googleapi.CheckResponse(res); err != nil {
20705		return nil, err
20706	}
20707	ret := &GoogleProtobufEmpty{
20708		ServerResponse: googleapi.ServerResponse{
20709			Header:         res.Header,
20710			HTTPStatusCode: res.StatusCode,
20711		},
20712	}
20713	target := &ret
20714	if err := gensupport.DecodeResponse(target, res); err != nil {
20715		return nil, err
20716	}
20717	return ret, nil
20718	// {
20719	//   "description": "Deletes the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
20720	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}",
20721	//   "httpMethod": "DELETE",
20722	//   "id": "dialogflow.projects.agent.entityTypes.delete",
20723	//   "parameterOrder": [
20724	//     "name"
20725	//   ],
20726	//   "parameters": {
20727	//     "name": {
20728	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
20729	//       "location": "path",
20730	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
20731	//       "required": true,
20732	//       "type": "string"
20733	//     }
20734	//   },
20735	//   "path": "v2beta1/{+name}",
20736	//   "response": {
20737	//     "$ref": "GoogleProtobufEmpty"
20738	//   },
20739	//   "scopes": [
20740	//     "https://www.googleapis.com/auth/cloud-platform",
20741	//     "https://www.googleapis.com/auth/dialogflow"
20742	//   ]
20743	// }
20744
20745}
20746
20747// method id "dialogflow.projects.agent.entityTypes.get":
20748
20749type ProjectsAgentEntityTypesGetCall struct {
20750	s            *Service
20751	name         string
20752	urlParams_   gensupport.URLParams
20753	ifNoneMatch_ string
20754	ctx_         context.Context
20755	header_      http.Header
20756}
20757
20758// Get: Retrieves the specified entity type.
20759//
20760// - name: The name of the entity type. Supported formats: -
20761//   `projects//agent/entityTypes/` -
20762//   `projects//locations//agent/entityTypes/`.
20763func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall {
20764	c := &ProjectsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20765	c.name = name
20766	return c
20767}
20768
20769// LanguageCode sets the optional parameter "languageCode": The language
20770// used to access language-specific data. If not specified, the agent's
20771// default language is used. For more information, see Multilingual
20772// intent and entity data
20773// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
20774func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall {
20775	c.urlParams_.Set("languageCode", languageCode)
20776	return c
20777}
20778
20779// Fields allows partial responses to be retrieved. See
20780// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20781// for more information.
20782func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall {
20783	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20784	return c
20785}
20786
20787// IfNoneMatch sets the optional parameter which makes the operation
20788// fail if the object's ETag matches the given value. This is useful for
20789// getting updates only after the object has changed since the last
20790// request. Use googleapi.IsNotModified to check whether the response
20791// error from Do is the result of In-None-Match.
20792func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall {
20793	c.ifNoneMatch_ = entityTag
20794	return c
20795}
20796
20797// Context sets the context to be used in this call's Do method. Any
20798// pending HTTP request will be aborted if the provided context is
20799// canceled.
20800func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall {
20801	c.ctx_ = ctx
20802	return c
20803}
20804
20805// Header returns an http.Header that can be modified by the caller to
20806// add HTTP headers to the request.
20807func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header {
20808	if c.header_ == nil {
20809		c.header_ = make(http.Header)
20810	}
20811	return c.header_
20812}
20813
20814func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
20815	reqHeaders := make(http.Header)
20816	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20817	for k, v := range c.header_ {
20818		reqHeaders[k] = v
20819	}
20820	reqHeaders.Set("User-Agent", c.s.userAgent())
20821	if c.ifNoneMatch_ != "" {
20822		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20823	}
20824	var body io.Reader = nil
20825	c.urlParams_.Set("alt", alt)
20826	c.urlParams_.Set("prettyPrint", "false")
20827	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20828	urls += "?" + c.urlParams_.Encode()
20829	req, err := http.NewRequest("GET", urls, body)
20830	if err != nil {
20831		return nil, err
20832	}
20833	req.Header = reqHeaders
20834	googleapi.Expand(req.URL, map[string]string{
20835		"name": c.name,
20836	})
20837	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20838}
20839
20840// Do executes the "dialogflow.projects.agent.entityTypes.get" call.
20841// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
20842// be non-nil. Any non-2xx status code is an error. Response headers are
20843// in either
20844// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
20845// a response was returned at all) in error.(*googleapi.Error).Header.
20846// Use googleapi.IsNotModified to check whether the returned error was
20847// because http.StatusNotModified was returned.
20848func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
20849	gensupport.SetOptions(c.urlParams_, opts...)
20850	res, err := c.doRequest("json")
20851	if res != nil && res.StatusCode == http.StatusNotModified {
20852		if res.Body != nil {
20853			res.Body.Close()
20854		}
20855		return nil, &googleapi.Error{
20856			Code:   res.StatusCode,
20857			Header: res.Header,
20858		}
20859	}
20860	if err != nil {
20861		return nil, err
20862	}
20863	defer googleapi.CloseBody(res)
20864	if err := googleapi.CheckResponse(res); err != nil {
20865		return nil, err
20866	}
20867	ret := &GoogleCloudDialogflowV2beta1EntityType{
20868		ServerResponse: googleapi.ServerResponse{
20869			Header:         res.Header,
20870			HTTPStatusCode: res.StatusCode,
20871		},
20872	}
20873	target := &ret
20874	if err := gensupport.DecodeResponse(target, res); err != nil {
20875		return nil, err
20876	}
20877	return ret, nil
20878	// {
20879	//   "description": "Retrieves the specified entity type.",
20880	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}",
20881	//   "httpMethod": "GET",
20882	//   "id": "dialogflow.projects.agent.entityTypes.get",
20883	//   "parameterOrder": [
20884	//     "name"
20885	//   ],
20886	//   "parameters": {
20887	//     "languageCode": {
20888	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
20889	//       "location": "query",
20890	//       "type": "string"
20891	//     },
20892	//     "name": {
20893	//       "description": "Required. The name of the entity type. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
20894	//       "location": "path",
20895	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
20896	//       "required": true,
20897	//       "type": "string"
20898	//     }
20899	//   },
20900	//   "path": "v2beta1/{+name}",
20901	//   "response": {
20902	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20903	//   },
20904	//   "scopes": [
20905	//     "https://www.googleapis.com/auth/cloud-platform",
20906	//     "https://www.googleapis.com/auth/dialogflow"
20907	//   ]
20908	// }
20909
20910}
20911
20912// method id "dialogflow.projects.agent.entityTypes.list":
20913
20914type ProjectsAgentEntityTypesListCall struct {
20915	s            *Service
20916	parent       string
20917	urlParams_   gensupport.URLParams
20918	ifNoneMatch_ string
20919	ctx_         context.Context
20920	header_      http.Header
20921}
20922
20923// List: Returns the list of all entity types in the specified agent.
20924//
20925// - parent: The agent to list all entity types from. Supported formats:
20926//   - `projects//agent` - `projects//locations//agent`.
20927func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall {
20928	c := &ProjectsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20929	c.parent = parent
20930	return c
20931}
20932
20933// LanguageCode sets the optional parameter "languageCode": The language
20934// used to access language-specific data. If not specified, the agent's
20935// default language is used. For more information, see Multilingual
20936// intent and entity data
20937// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
20938func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall {
20939	c.urlParams_.Set("languageCode", languageCode)
20940	return c
20941}
20942
20943// PageSize sets the optional parameter "pageSize": The maximum number
20944// of items to return in a single page. By default 100 and at most 1000.
20945func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall {
20946	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20947	return c
20948}
20949
20950// PageToken sets the optional parameter "pageToken": The
20951// next_page_token value returned from a previous list request.
20952func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall {
20953	c.urlParams_.Set("pageToken", pageToken)
20954	return c
20955}
20956
20957// Fields allows partial responses to be retrieved. See
20958// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20959// for more information.
20960func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall {
20961	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20962	return c
20963}
20964
20965// IfNoneMatch sets the optional parameter which makes the operation
20966// fail if the object's ETag matches the given value. This is useful for
20967// getting updates only after the object has changed since the last
20968// request. Use googleapi.IsNotModified to check whether the response
20969// error from Do is the result of In-None-Match.
20970func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall {
20971	c.ifNoneMatch_ = entityTag
20972	return c
20973}
20974
20975// Context sets the context to be used in this call's Do method. Any
20976// pending HTTP request will be aborted if the provided context is
20977// canceled.
20978func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall {
20979	c.ctx_ = ctx
20980	return c
20981}
20982
20983// Header returns an http.Header that can be modified by the caller to
20984// add HTTP headers to the request.
20985func (c *ProjectsAgentEntityTypesListCall) Header() http.Header {
20986	if c.header_ == nil {
20987		c.header_ = make(http.Header)
20988	}
20989	return c.header_
20990}
20991
20992func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
20993	reqHeaders := make(http.Header)
20994	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20995	for k, v := range c.header_ {
20996		reqHeaders[k] = v
20997	}
20998	reqHeaders.Set("User-Agent", c.s.userAgent())
20999	if c.ifNoneMatch_ != "" {
21000		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21001	}
21002	var body io.Reader = nil
21003	c.urlParams_.Set("alt", alt)
21004	c.urlParams_.Set("prettyPrint", "false")
21005	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
21006	urls += "?" + c.urlParams_.Encode()
21007	req, err := http.NewRequest("GET", urls, body)
21008	if err != nil {
21009		return nil, err
21010	}
21011	req.Header = reqHeaders
21012	googleapi.Expand(req.URL, map[string]string{
21013		"parent": c.parent,
21014	})
21015	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21016}
21017
21018// Do executes the "dialogflow.projects.agent.entityTypes.list" call.
21019// Exactly one of *GoogleCloudDialogflowV2beta1ListEntityTypesResponse
21020// or error will be non-nil. Any non-2xx status code is an error.
21021// Response headers are in either
21022// *GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.He
21023// ader or (if a response was returned at all) in
21024// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21025// whether the returned error was because http.StatusNotModified was
21026// returned.
21027func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
21028	gensupport.SetOptions(c.urlParams_, opts...)
21029	res, err := c.doRequest("json")
21030	if res != nil && res.StatusCode == http.StatusNotModified {
21031		if res.Body != nil {
21032			res.Body.Close()
21033		}
21034		return nil, &googleapi.Error{
21035			Code:   res.StatusCode,
21036			Header: res.Header,
21037		}
21038	}
21039	if err != nil {
21040		return nil, err
21041	}
21042	defer googleapi.CloseBody(res)
21043	if err := googleapi.CheckResponse(res); err != nil {
21044		return nil, err
21045	}
21046	ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
21047		ServerResponse: googleapi.ServerResponse{
21048			Header:         res.Header,
21049			HTTPStatusCode: res.StatusCode,
21050		},
21051	}
21052	target := &ret
21053	if err := gensupport.DecodeResponse(target, res); err != nil {
21054		return nil, err
21055	}
21056	return ret, nil
21057	// {
21058	//   "description": "Returns the list of all entity types in the specified agent.",
21059	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes",
21060	//   "httpMethod": "GET",
21061	//   "id": "dialogflow.projects.agent.entityTypes.list",
21062	//   "parameterOrder": [
21063	//     "parent"
21064	//   ],
21065	//   "parameters": {
21066	//     "languageCode": {
21067	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
21068	//       "location": "query",
21069	//       "type": "string"
21070	//     },
21071	//     "pageSize": {
21072	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
21073	//       "format": "int32",
21074	//       "location": "query",
21075	//       "type": "integer"
21076	//     },
21077	//     "pageToken": {
21078	//       "description": "Optional. The next_page_token value returned from a previous list request.",
21079	//       "location": "query",
21080	//       "type": "string"
21081	//     },
21082	//     "parent": {
21083	//       "description": "Required. The agent to list all entity types from. Supported formats: - `projects//agent` - `projects//locations//agent`",
21084	//       "location": "path",
21085	//       "pattern": "^projects/[^/]+/agent$",
21086	//       "required": true,
21087	//       "type": "string"
21088	//     }
21089	//   },
21090	//   "path": "v2beta1/{+parent}/entityTypes",
21091	//   "response": {
21092	//     "$ref": "GoogleCloudDialogflowV2beta1ListEntityTypesResponse"
21093	//   },
21094	//   "scopes": [
21095	//     "https://www.googleapis.com/auth/cloud-platform",
21096	//     "https://www.googleapis.com/auth/dialogflow"
21097	//   ]
21098	// }
21099
21100}
21101
21102// Pages invokes f for each page of results.
21103// A non-nil error returned from f will halt the iteration.
21104// The provided context supersedes any context provided to the Context method.
21105func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
21106	c.ctx_ = ctx
21107	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
21108	for {
21109		x, err := c.Do()
21110		if err != nil {
21111			return err
21112		}
21113		if err := f(x); err != nil {
21114			return err
21115		}
21116		if x.NextPageToken == "" {
21117			return nil
21118		}
21119		c.PageToken(x.NextPageToken)
21120	}
21121}
21122
21123// method id "dialogflow.projects.agent.entityTypes.patch":
21124
21125type ProjectsAgentEntityTypesPatchCall struct {
21126	s                                      *Service
21127	nameid                                 string
21128	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
21129	urlParams_                             gensupport.URLParams
21130	ctx_                                   context.Context
21131	header_                                http.Header
21132}
21133
21134// Patch: Updates the specified entity type. Note: You should always
21135// train an agent prior to sending it queries. See the training
21136// documentation (https://cloud.google.com/dialogflow/es/docs/training).
21137//
21138// - name: The unique identifier of the entity type. Required for
21139//   EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
21140//   methods. Supported formats: - `projects//agent/entityTypes/` -
21141//   `projects//locations//agent/entityTypes/`.
21142func (r *ProjectsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesPatchCall {
21143	c := &ProjectsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21144	c.nameid = nameid
21145	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
21146	return c
21147}
21148
21149// LanguageCode sets the optional parameter "languageCode": The language
21150// used to access language-specific data. If not specified, the agent's
21151// default language is used. For more information, see Multilingual
21152// intent and entity data
21153// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
21154func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall {
21155	c.urlParams_.Set("languageCode", languageCode)
21156	return c
21157}
21158
21159// UpdateMask sets the optional parameter "updateMask": The mask to
21160// control which fields get updated.
21161func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall {
21162	c.urlParams_.Set("updateMask", updateMask)
21163	return c
21164}
21165
21166// Fields allows partial responses to be retrieved. See
21167// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21168// for more information.
21169func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall {
21170	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21171	return c
21172}
21173
21174// Context sets the context to be used in this call's Do method. Any
21175// pending HTTP request will be aborted if the provided context is
21176// canceled.
21177func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall {
21178	c.ctx_ = ctx
21179	return c
21180}
21181
21182// Header returns an http.Header that can be modified by the caller to
21183// add HTTP headers to the request.
21184func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header {
21185	if c.header_ == nil {
21186		c.header_ = make(http.Header)
21187	}
21188	return c.header_
21189}
21190
21191func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
21192	reqHeaders := make(http.Header)
21193	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21194	for k, v := range c.header_ {
21195		reqHeaders[k] = v
21196	}
21197	reqHeaders.Set("User-Agent", c.s.userAgent())
21198	var body io.Reader = nil
21199	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
21200	if err != nil {
21201		return nil, err
21202	}
21203	reqHeaders.Set("Content-Type", "application/json")
21204	c.urlParams_.Set("alt", alt)
21205	c.urlParams_.Set("prettyPrint", "false")
21206	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
21207	urls += "?" + c.urlParams_.Encode()
21208	req, err := http.NewRequest("PATCH", urls, body)
21209	if err != nil {
21210		return nil, err
21211	}
21212	req.Header = reqHeaders
21213	googleapi.Expand(req.URL, map[string]string{
21214		"name": c.nameid,
21215	})
21216	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21217}
21218
21219// Do executes the "dialogflow.projects.agent.entityTypes.patch" call.
21220// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
21221// be non-nil. Any non-2xx status code is an error. Response headers are
21222// in either
21223// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
21224// a response was returned at all) in error.(*googleapi.Error).Header.
21225// Use googleapi.IsNotModified to check whether the returned error was
21226// because http.StatusNotModified was returned.
21227func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
21228	gensupport.SetOptions(c.urlParams_, opts...)
21229	res, err := c.doRequest("json")
21230	if res != nil && res.StatusCode == http.StatusNotModified {
21231		if res.Body != nil {
21232			res.Body.Close()
21233		}
21234		return nil, &googleapi.Error{
21235			Code:   res.StatusCode,
21236			Header: res.Header,
21237		}
21238	}
21239	if err != nil {
21240		return nil, err
21241	}
21242	defer googleapi.CloseBody(res)
21243	if err := googleapi.CheckResponse(res); err != nil {
21244		return nil, err
21245	}
21246	ret := &GoogleCloudDialogflowV2beta1EntityType{
21247		ServerResponse: googleapi.ServerResponse{
21248			Header:         res.Header,
21249			HTTPStatusCode: res.StatusCode,
21250		},
21251	}
21252	target := &ret
21253	if err := gensupport.DecodeResponse(target, res); err != nil {
21254		return nil, err
21255	}
21256	return ret, nil
21257	// {
21258	//   "description": "Updates the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
21259	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}",
21260	//   "httpMethod": "PATCH",
21261	//   "id": "dialogflow.projects.agent.entityTypes.patch",
21262	//   "parameterOrder": [
21263	//     "name"
21264	//   ],
21265	//   "parameters": {
21266	//     "languageCode": {
21267	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
21268	//       "location": "query",
21269	//       "type": "string"
21270	//     },
21271	//     "name": {
21272	//       "description": "The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
21273	//       "location": "path",
21274	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
21275	//       "required": true,
21276	//       "type": "string"
21277	//     },
21278	//     "updateMask": {
21279	//       "description": "Optional. The mask to control which fields get updated.",
21280	//       "format": "google-fieldmask",
21281	//       "location": "query",
21282	//       "type": "string"
21283	//     }
21284	//   },
21285	//   "path": "v2beta1/{+name}",
21286	//   "request": {
21287	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
21288	//   },
21289	//   "response": {
21290	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
21291	//   },
21292	//   "scopes": [
21293	//     "https://www.googleapis.com/auth/cloud-platform",
21294	//     "https://www.googleapis.com/auth/dialogflow"
21295	//   ]
21296	// }
21297
21298}
21299
21300// method id "dialogflow.projects.agent.entityTypes.entities.batchCreate":
21301
21302type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {
21303	s                                                      *Service
21304	parent                                                 string
21305	googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
21306	urlParams_                                             gensupport.URLParams
21307	ctx_                                                   context.Context
21308	header_                                                http.Header
21309}
21310
21311// BatchCreate: Creates multiple new entities in the specified entity
21312// type. Note: You should always train an agent prior to sending it
21313// queries. See the training documentation
21314// (https://cloud.google.com/dialogflow/es/docs/training).
21315//
21316// - parent: The name of the entity type to create entities in.
21317//   Supported formats: - `projects//agent/entityTypes/` -
21318//   `projects//locations//agent/entityTypes/`.
21319func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21320	c := &ProjectsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21321	c.parent = parent
21322	c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
21323	return c
21324}
21325
21326// Fields allows partial responses to be retrieved. See
21327// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21328// for more information.
21329func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21330	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21331	return c
21332}
21333
21334// Context sets the context to be used in this call's Do method. Any
21335// pending HTTP request will be aborted if the provided context is
21336// canceled.
21337func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21338	c.ctx_ = ctx
21339	return c
21340}
21341
21342// Header returns an http.Header that can be modified by the caller to
21343// add HTTP headers to the request.
21344func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
21345	if c.header_ == nil {
21346		c.header_ = make(http.Header)
21347	}
21348	return c.header_
21349}
21350
21351func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
21352	reqHeaders := make(http.Header)
21353	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21354	for k, v := range c.header_ {
21355		reqHeaders[k] = v
21356	}
21357	reqHeaders.Set("User-Agent", c.s.userAgent())
21358	var body io.Reader = nil
21359	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
21360	if err != nil {
21361		return nil, err
21362	}
21363	reqHeaders.Set("Content-Type", "application/json")
21364	c.urlParams_.Set("alt", alt)
21365	c.urlParams_.Set("prettyPrint", "false")
21366	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
21367	urls += "?" + c.urlParams_.Encode()
21368	req, err := http.NewRequest("POST", urls, body)
21369	if err != nil {
21370		return nil, err
21371	}
21372	req.Header = reqHeaders
21373	googleapi.Expand(req.URL, map[string]string{
21374		"parent": c.parent,
21375	})
21376	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21377}
21378
21379// Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call.
21380// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21381// Any non-2xx status code is an error. Response headers are in either
21382// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21383// was returned at all) in error.(*googleapi.Error).Header. Use
21384// googleapi.IsNotModified to check whether the returned error was
21385// because http.StatusNotModified was returned.
21386func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21387	gensupport.SetOptions(c.urlParams_, opts...)
21388	res, err := c.doRequest("json")
21389	if res != nil && res.StatusCode == http.StatusNotModified {
21390		if res.Body != nil {
21391			res.Body.Close()
21392		}
21393		return nil, &googleapi.Error{
21394			Code:   res.StatusCode,
21395			Header: res.Header,
21396		}
21397	}
21398	if err != nil {
21399		return nil, err
21400	}
21401	defer googleapi.CloseBody(res)
21402	if err := googleapi.CheckResponse(res); err != nil {
21403		return nil, err
21404	}
21405	ret := &GoogleLongrunningOperation{
21406		ServerResponse: googleapi.ServerResponse{
21407			Header:         res.Header,
21408			HTTPStatusCode: res.StatusCode,
21409		},
21410	}
21411	target := &ret
21412	if err := gensupport.DecodeResponse(target, res); err != nil {
21413		return nil, err
21414	}
21415	return ret, nil
21416	// {
21417	//   "description": "Creates multiple new entities in the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
21418	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}/entities:batchCreate",
21419	//   "httpMethod": "POST",
21420	//   "id": "dialogflow.projects.agent.entityTypes.entities.batchCreate",
21421	//   "parameterOrder": [
21422	//     "parent"
21423	//   ],
21424	//   "parameters": {
21425	//     "parent": {
21426	//       "description": "Required. The name of the entity type to create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
21427	//       "location": "path",
21428	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
21429	//       "required": true,
21430	//       "type": "string"
21431	//     }
21432	//   },
21433	//   "path": "v2beta1/{+parent}/entities:batchCreate",
21434	//   "request": {
21435	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest"
21436	//   },
21437	//   "response": {
21438	//     "$ref": "GoogleLongrunningOperation"
21439	//   },
21440	//   "scopes": [
21441	//     "https://www.googleapis.com/auth/cloud-platform",
21442	//     "https://www.googleapis.com/auth/dialogflow"
21443	//   ]
21444	// }
21445
21446}
21447
21448// method id "dialogflow.projects.agent.entityTypes.entities.batchDelete":
21449
21450type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {
21451	s                                                      *Service
21452	parent                                                 string
21453	googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
21454	urlParams_                                             gensupport.URLParams
21455	ctx_                                                   context.Context
21456	header_                                                http.Header
21457}
21458
21459// BatchDelete: Deletes entities in the specified entity type. Note: You
21460// should always train an agent prior to sending it queries. See the
21461// training documentation
21462// (https://cloud.google.com/dialogflow/es/docs/training).
21463//
21464// - parent: The name of the entity type to delete entries for.
21465//   Supported formats: - `projects//agent/entityTypes/` -
21466//   `projects//locations//agent/entityTypes/`.
21467func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21468	c := &ProjectsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21469	c.parent = parent
21470	c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
21471	return c
21472}
21473
21474// Fields allows partial responses to be retrieved. See
21475// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21476// for more information.
21477func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21478	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21479	return c
21480}
21481
21482// Context sets the context to be used in this call's Do method. Any
21483// pending HTTP request will be aborted if the provided context is
21484// canceled.
21485func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21486	c.ctx_ = ctx
21487	return c
21488}
21489
21490// Header returns an http.Header that can be modified by the caller to
21491// add HTTP headers to the request.
21492func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
21493	if c.header_ == nil {
21494		c.header_ = make(http.Header)
21495	}
21496	return c.header_
21497}
21498
21499func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
21500	reqHeaders := make(http.Header)
21501	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21502	for k, v := range c.header_ {
21503		reqHeaders[k] = v
21504	}
21505	reqHeaders.Set("User-Agent", c.s.userAgent())
21506	var body io.Reader = nil
21507	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
21508	if err != nil {
21509		return nil, err
21510	}
21511	reqHeaders.Set("Content-Type", "application/json")
21512	c.urlParams_.Set("alt", alt)
21513	c.urlParams_.Set("prettyPrint", "false")
21514	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
21515	urls += "?" + c.urlParams_.Encode()
21516	req, err := http.NewRequest("POST", urls, body)
21517	if err != nil {
21518		return nil, err
21519	}
21520	req.Header = reqHeaders
21521	googleapi.Expand(req.URL, map[string]string{
21522		"parent": c.parent,
21523	})
21524	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21525}
21526
21527// Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call.
21528// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21529// Any non-2xx status code is an error. Response headers are in either
21530// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21531// was returned at all) in error.(*googleapi.Error).Header. Use
21532// googleapi.IsNotModified to check whether the returned error was
21533// because http.StatusNotModified was returned.
21534func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21535	gensupport.SetOptions(c.urlParams_, opts...)
21536	res, err := c.doRequest("json")
21537	if res != nil && res.StatusCode == http.StatusNotModified {
21538		if res.Body != nil {
21539			res.Body.Close()
21540		}
21541		return nil, &googleapi.Error{
21542			Code:   res.StatusCode,
21543			Header: res.Header,
21544		}
21545	}
21546	if err != nil {
21547		return nil, err
21548	}
21549	defer googleapi.CloseBody(res)
21550	if err := googleapi.CheckResponse(res); err != nil {
21551		return nil, err
21552	}
21553	ret := &GoogleLongrunningOperation{
21554		ServerResponse: googleapi.ServerResponse{
21555			Header:         res.Header,
21556			HTTPStatusCode: res.StatusCode,
21557		},
21558	}
21559	target := &ret
21560	if err := gensupport.DecodeResponse(target, res); err != nil {
21561		return nil, err
21562	}
21563	return ret, nil
21564	// {
21565	//   "description": "Deletes entities in the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
21566	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}/entities:batchDelete",
21567	//   "httpMethod": "POST",
21568	//   "id": "dialogflow.projects.agent.entityTypes.entities.batchDelete",
21569	//   "parameterOrder": [
21570	//     "parent"
21571	//   ],
21572	//   "parameters": {
21573	//     "parent": {
21574	//       "description": "Required. The name of the entity type to delete entries for. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
21575	//       "location": "path",
21576	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
21577	//       "required": true,
21578	//       "type": "string"
21579	//     }
21580	//   },
21581	//   "path": "v2beta1/{+parent}/entities:batchDelete",
21582	//   "request": {
21583	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest"
21584	//   },
21585	//   "response": {
21586	//     "$ref": "GoogleLongrunningOperation"
21587	//   },
21588	//   "scopes": [
21589	//     "https://www.googleapis.com/auth/cloud-platform",
21590	//     "https://www.googleapis.com/auth/dialogflow"
21591	//   ]
21592	// }
21593
21594}
21595
21596// method id "dialogflow.projects.agent.entityTypes.entities.batchUpdate":
21597
21598type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {
21599	s                                                      *Service
21600	parent                                                 string
21601	googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
21602	urlParams_                                             gensupport.URLParams
21603	ctx_                                                   context.Context
21604	header_                                                http.Header
21605}
21606
21607// BatchUpdate: Updates or creates multiple entities in the specified
21608// entity type. This method does not affect entities in the entity type
21609// that aren't explicitly specified in the request. Note: You should
21610// always train an agent prior to sending it queries. See the training
21611// documentation (https://cloud.google.com/dialogflow/es/docs/training).
21612//
21613// - parent: The name of the entity type to update or create entities
21614//   in. Supported formats: - `projects//agent/entityTypes/` -
21615//   `projects//locations//agent/entityTypes/`.
21616func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21617	c := &ProjectsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21618	c.parent = parent
21619	c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
21620	return c
21621}
21622
21623// Fields allows partial responses to be retrieved. See
21624// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21625// for more information.
21626func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21627	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21628	return c
21629}
21630
21631// Context sets the context to be used in this call's Do method. Any
21632// pending HTTP request will be aborted if the provided context is
21633// canceled.
21634func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21635	c.ctx_ = ctx
21636	return c
21637}
21638
21639// Header returns an http.Header that can be modified by the caller to
21640// add HTTP headers to the request.
21641func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
21642	if c.header_ == nil {
21643		c.header_ = make(http.Header)
21644	}
21645	return c.header_
21646}
21647
21648func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
21649	reqHeaders := make(http.Header)
21650	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21651	for k, v := range c.header_ {
21652		reqHeaders[k] = v
21653	}
21654	reqHeaders.Set("User-Agent", c.s.userAgent())
21655	var body io.Reader = nil
21656	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
21657	if err != nil {
21658		return nil, err
21659	}
21660	reqHeaders.Set("Content-Type", "application/json")
21661	c.urlParams_.Set("alt", alt)
21662	c.urlParams_.Set("prettyPrint", "false")
21663	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
21664	urls += "?" + c.urlParams_.Encode()
21665	req, err := http.NewRequest("POST", urls, body)
21666	if err != nil {
21667		return nil, err
21668	}
21669	req.Header = reqHeaders
21670	googleapi.Expand(req.URL, map[string]string{
21671		"parent": c.parent,
21672	})
21673	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21674}
21675
21676// Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call.
21677// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21678// Any non-2xx status code is an error. Response headers are in either
21679// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21680// was returned at all) in error.(*googleapi.Error).Header. Use
21681// googleapi.IsNotModified to check whether the returned error was
21682// because http.StatusNotModified was returned.
21683func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21684	gensupport.SetOptions(c.urlParams_, opts...)
21685	res, err := c.doRequest("json")
21686	if res != nil && res.StatusCode == http.StatusNotModified {
21687		if res.Body != nil {
21688			res.Body.Close()
21689		}
21690		return nil, &googleapi.Error{
21691			Code:   res.StatusCode,
21692			Header: res.Header,
21693		}
21694	}
21695	if err != nil {
21696		return nil, err
21697	}
21698	defer googleapi.CloseBody(res)
21699	if err := googleapi.CheckResponse(res); err != nil {
21700		return nil, err
21701	}
21702	ret := &GoogleLongrunningOperation{
21703		ServerResponse: googleapi.ServerResponse{
21704			Header:         res.Header,
21705			HTTPStatusCode: res.StatusCode,
21706		},
21707	}
21708	target := &ret
21709	if err := gensupport.DecodeResponse(target, res); err != nil {
21710		return nil, err
21711	}
21712	return ret, nil
21713	// {
21714	//   "description": "Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
21715	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}/entities:batchUpdate",
21716	//   "httpMethod": "POST",
21717	//   "id": "dialogflow.projects.agent.entityTypes.entities.batchUpdate",
21718	//   "parameterOrder": [
21719	//     "parent"
21720	//   ],
21721	//   "parameters": {
21722	//     "parent": {
21723	//       "description": "Required. The name of the entity type to update or create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
21724	//       "location": "path",
21725	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
21726	//       "required": true,
21727	//       "type": "string"
21728	//     }
21729	//   },
21730	//   "path": "v2beta1/{+parent}/entities:batchUpdate",
21731	//   "request": {
21732	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest"
21733	//   },
21734	//   "response": {
21735	//     "$ref": "GoogleLongrunningOperation"
21736	//   },
21737	//   "scopes": [
21738	//     "https://www.googleapis.com/auth/cloud-platform",
21739	//     "https://www.googleapis.com/auth/dialogflow"
21740	//   ]
21741	// }
21742
21743}
21744
21745// method id "dialogflow.projects.agent.environments.create":
21746
21747type ProjectsAgentEnvironmentsCreateCall struct {
21748	s                                       *Service
21749	parent                                  string
21750	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
21751	urlParams_                              gensupport.URLParams
21752	ctx_                                    context.Context
21753	header_                                 http.Header
21754}
21755
21756// Create: Creates an agent environment.
21757//
21758// - parent: The agent to create an environment for. Supported formats:
21759//   - `projects//agent` - `projects//locations//agent`.
21760func (r *ProjectsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsCreateCall {
21761	c := &ProjectsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21762	c.parent = parent
21763	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
21764	return c
21765}
21766
21767// EnvironmentId sets the optional parameter "environmentId": Required.
21768// The unique id of the new environment.
21769func (c *ProjectsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsAgentEnvironmentsCreateCall {
21770	c.urlParams_.Set("environmentId", environmentId)
21771	return c
21772}
21773
21774// Fields allows partial responses to be retrieved. See
21775// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21776// for more information.
21777func (c *ProjectsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsCreateCall {
21778	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21779	return c
21780}
21781
21782// Context sets the context to be used in this call's Do method. Any
21783// pending HTTP request will be aborted if the provided context is
21784// canceled.
21785func (c *ProjectsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsCreateCall {
21786	c.ctx_ = ctx
21787	return c
21788}
21789
21790// Header returns an http.Header that can be modified by the caller to
21791// add HTTP headers to the request.
21792func (c *ProjectsAgentEnvironmentsCreateCall) Header() http.Header {
21793	if c.header_ == nil {
21794		c.header_ = make(http.Header)
21795	}
21796	return c.header_
21797}
21798
21799func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
21800	reqHeaders := make(http.Header)
21801	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21802	for k, v := range c.header_ {
21803		reqHeaders[k] = v
21804	}
21805	reqHeaders.Set("User-Agent", c.s.userAgent())
21806	var body io.Reader = nil
21807	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
21808	if err != nil {
21809		return nil, err
21810	}
21811	reqHeaders.Set("Content-Type", "application/json")
21812	c.urlParams_.Set("alt", alt)
21813	c.urlParams_.Set("prettyPrint", "false")
21814	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
21815	urls += "?" + c.urlParams_.Encode()
21816	req, err := http.NewRequest("POST", urls, body)
21817	if err != nil {
21818		return nil, err
21819	}
21820	req.Header = reqHeaders
21821	googleapi.Expand(req.URL, map[string]string{
21822		"parent": c.parent,
21823	})
21824	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21825}
21826
21827// Do executes the "dialogflow.projects.agent.environments.create" call.
21828// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
21829// be non-nil. Any non-2xx status code is an error. Response headers are
21830// in either
21831// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
21832// a response was returned at all) in error.(*googleapi.Error).Header.
21833// Use googleapi.IsNotModified to check whether the returned error was
21834// because http.StatusNotModified was returned.
21835func (c *ProjectsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
21836	gensupport.SetOptions(c.urlParams_, opts...)
21837	res, err := c.doRequest("json")
21838	if res != nil && res.StatusCode == http.StatusNotModified {
21839		if res.Body != nil {
21840			res.Body.Close()
21841		}
21842		return nil, &googleapi.Error{
21843			Code:   res.StatusCode,
21844			Header: res.Header,
21845		}
21846	}
21847	if err != nil {
21848		return nil, err
21849	}
21850	defer googleapi.CloseBody(res)
21851	if err := googleapi.CheckResponse(res); err != nil {
21852		return nil, err
21853	}
21854	ret := &GoogleCloudDialogflowV2beta1Environment{
21855		ServerResponse: googleapi.ServerResponse{
21856			Header:         res.Header,
21857			HTTPStatusCode: res.StatusCode,
21858		},
21859	}
21860	target := &ret
21861	if err := gensupport.DecodeResponse(target, res); err != nil {
21862		return nil, err
21863	}
21864	return ret, nil
21865	// {
21866	//   "description": "Creates an agent environment.",
21867	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments",
21868	//   "httpMethod": "POST",
21869	//   "id": "dialogflow.projects.agent.environments.create",
21870	//   "parameterOrder": [
21871	//     "parent"
21872	//   ],
21873	//   "parameters": {
21874	//     "environmentId": {
21875	//       "description": "Required. The unique id of the new environment.",
21876	//       "location": "query",
21877	//       "type": "string"
21878	//     },
21879	//     "parent": {
21880	//       "description": "Required. The agent to create an environment for. Supported formats: - `projects//agent` - `projects//locations//agent`",
21881	//       "location": "path",
21882	//       "pattern": "^projects/[^/]+/agent$",
21883	//       "required": true,
21884	//       "type": "string"
21885	//     }
21886	//   },
21887	//   "path": "v2beta1/{+parent}/environments",
21888	//   "request": {
21889	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
21890	//   },
21891	//   "response": {
21892	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
21893	//   },
21894	//   "scopes": [
21895	//     "https://www.googleapis.com/auth/cloud-platform",
21896	//     "https://www.googleapis.com/auth/dialogflow"
21897	//   ]
21898	// }
21899
21900}
21901
21902// method id "dialogflow.projects.agent.environments.delete":
21903
21904type ProjectsAgentEnvironmentsDeleteCall struct {
21905	s          *Service
21906	name       string
21907	urlParams_ gensupport.URLParams
21908	ctx_       context.Context
21909	header_    http.Header
21910}
21911
21912// Delete: Deletes the specified agent environment.
21913//
21914// - name: The name of the environment to delete. / Format: -
21915//   `projects//agent/environments/` -
21916//   `projects//locations//agent/environments/`.
21917func (r *ProjectsAgentEnvironmentsService) Delete(name string) *ProjectsAgentEnvironmentsDeleteCall {
21918	c := &ProjectsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21919	c.name = name
21920	return c
21921}
21922
21923// Fields allows partial responses to be retrieved. See
21924// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21925// for more information.
21926func (c *ProjectsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsDeleteCall {
21927	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21928	return c
21929}
21930
21931// Context sets the context to be used in this call's Do method. Any
21932// pending HTTP request will be aborted if the provided context is
21933// canceled.
21934func (c *ProjectsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsDeleteCall {
21935	c.ctx_ = ctx
21936	return c
21937}
21938
21939// Header returns an http.Header that can be modified by the caller to
21940// add HTTP headers to the request.
21941func (c *ProjectsAgentEnvironmentsDeleteCall) Header() http.Header {
21942	if c.header_ == nil {
21943		c.header_ = make(http.Header)
21944	}
21945	return c.header_
21946}
21947
21948func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
21949	reqHeaders := make(http.Header)
21950	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21951	for k, v := range c.header_ {
21952		reqHeaders[k] = v
21953	}
21954	reqHeaders.Set("User-Agent", c.s.userAgent())
21955	var body io.Reader = nil
21956	c.urlParams_.Set("alt", alt)
21957	c.urlParams_.Set("prettyPrint", "false")
21958	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
21959	urls += "?" + c.urlParams_.Encode()
21960	req, err := http.NewRequest("DELETE", urls, body)
21961	if err != nil {
21962		return nil, err
21963	}
21964	req.Header = reqHeaders
21965	googleapi.Expand(req.URL, map[string]string{
21966		"name": c.name,
21967	})
21968	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21969}
21970
21971// Do executes the "dialogflow.projects.agent.environments.delete" call.
21972// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21973// non-2xx status code is an error. Response headers are in either
21974// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21975// returned at all) in error.(*googleapi.Error).Header. Use
21976// googleapi.IsNotModified to check whether the returned error was
21977// because http.StatusNotModified was returned.
21978func (c *ProjectsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21979	gensupport.SetOptions(c.urlParams_, opts...)
21980	res, err := c.doRequest("json")
21981	if res != nil && res.StatusCode == http.StatusNotModified {
21982		if res.Body != nil {
21983			res.Body.Close()
21984		}
21985		return nil, &googleapi.Error{
21986			Code:   res.StatusCode,
21987			Header: res.Header,
21988		}
21989	}
21990	if err != nil {
21991		return nil, err
21992	}
21993	defer googleapi.CloseBody(res)
21994	if err := googleapi.CheckResponse(res); err != nil {
21995		return nil, err
21996	}
21997	ret := &GoogleProtobufEmpty{
21998		ServerResponse: googleapi.ServerResponse{
21999			Header:         res.Header,
22000			HTTPStatusCode: res.StatusCode,
22001		},
22002	}
22003	target := &ret
22004	if err := gensupport.DecodeResponse(target, res); err != nil {
22005		return nil, err
22006	}
22007	return ret, nil
22008	// {
22009	//   "description": "Deletes the specified agent environment.",
22010	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}",
22011	//   "httpMethod": "DELETE",
22012	//   "id": "dialogflow.projects.agent.environments.delete",
22013	//   "parameterOrder": [
22014	//     "name"
22015	//   ],
22016	//   "parameters": {
22017	//     "name": {
22018	//       "description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
22019	//       "location": "path",
22020	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22021	//       "required": true,
22022	//       "type": "string"
22023	//     }
22024	//   },
22025	//   "path": "v2beta1/{+name}",
22026	//   "response": {
22027	//     "$ref": "GoogleProtobufEmpty"
22028	//   },
22029	//   "scopes": [
22030	//     "https://www.googleapis.com/auth/cloud-platform",
22031	//     "https://www.googleapis.com/auth/dialogflow"
22032	//   ]
22033	// }
22034
22035}
22036
22037// method id "dialogflow.projects.agent.environments.get":
22038
22039type ProjectsAgentEnvironmentsGetCall struct {
22040	s            *Service
22041	name         string
22042	urlParams_   gensupport.URLParams
22043	ifNoneMatch_ string
22044	ctx_         context.Context
22045	header_      http.Header
22046}
22047
22048// Get: Retrieves the specified agent environment.
22049//
22050// - name: The name of the environment. Supported formats: -
22051//   `projects//agent/environments/` -
22052//   `projects//locations//agent/environments/`.
22053func (r *ProjectsAgentEnvironmentsService) Get(name string) *ProjectsAgentEnvironmentsGetCall {
22054	c := &ProjectsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22055	c.name = name
22056	return c
22057}
22058
22059// Fields allows partial responses to be retrieved. See
22060// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22061// for more information.
22062func (c *ProjectsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetCall {
22063	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22064	return c
22065}
22066
22067// IfNoneMatch sets the optional parameter which makes the operation
22068// fail if the object's ETag matches the given value. This is useful for
22069// getting updates only after the object has changed since the last
22070// request. Use googleapi.IsNotModified to check whether the response
22071// error from Do is the result of In-None-Match.
22072func (c *ProjectsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetCall {
22073	c.ifNoneMatch_ = entityTag
22074	return c
22075}
22076
22077// Context sets the context to be used in this call's Do method. Any
22078// pending HTTP request will be aborted if the provided context is
22079// canceled.
22080func (c *ProjectsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetCall {
22081	c.ctx_ = ctx
22082	return c
22083}
22084
22085// Header returns an http.Header that can be modified by the caller to
22086// add HTTP headers to the request.
22087func (c *ProjectsAgentEnvironmentsGetCall) Header() http.Header {
22088	if c.header_ == nil {
22089		c.header_ = make(http.Header)
22090	}
22091	return c.header_
22092}
22093
22094func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
22095	reqHeaders := make(http.Header)
22096	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22097	for k, v := range c.header_ {
22098		reqHeaders[k] = v
22099	}
22100	reqHeaders.Set("User-Agent", c.s.userAgent())
22101	if c.ifNoneMatch_ != "" {
22102		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22103	}
22104	var body io.Reader = nil
22105	c.urlParams_.Set("alt", alt)
22106	c.urlParams_.Set("prettyPrint", "false")
22107	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
22108	urls += "?" + c.urlParams_.Encode()
22109	req, err := http.NewRequest("GET", urls, body)
22110	if err != nil {
22111		return nil, err
22112	}
22113	req.Header = reqHeaders
22114	googleapi.Expand(req.URL, map[string]string{
22115		"name": c.name,
22116	})
22117	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22118}
22119
22120// Do executes the "dialogflow.projects.agent.environments.get" call.
22121// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
22122// be non-nil. Any non-2xx status code is an error. Response headers are
22123// in either
22124// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
22125// a response was returned at all) in error.(*googleapi.Error).Header.
22126// Use googleapi.IsNotModified to check whether the returned error was
22127// because http.StatusNotModified was returned.
22128func (c *ProjectsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
22129	gensupport.SetOptions(c.urlParams_, opts...)
22130	res, err := c.doRequest("json")
22131	if res != nil && res.StatusCode == http.StatusNotModified {
22132		if res.Body != nil {
22133			res.Body.Close()
22134		}
22135		return nil, &googleapi.Error{
22136			Code:   res.StatusCode,
22137			Header: res.Header,
22138		}
22139	}
22140	if err != nil {
22141		return nil, err
22142	}
22143	defer googleapi.CloseBody(res)
22144	if err := googleapi.CheckResponse(res); err != nil {
22145		return nil, err
22146	}
22147	ret := &GoogleCloudDialogflowV2beta1Environment{
22148		ServerResponse: googleapi.ServerResponse{
22149			Header:         res.Header,
22150			HTTPStatusCode: res.StatusCode,
22151		},
22152	}
22153	target := &ret
22154	if err := gensupport.DecodeResponse(target, res); err != nil {
22155		return nil, err
22156	}
22157	return ret, nil
22158	// {
22159	//   "description": "Retrieves the specified agent environment.",
22160	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}",
22161	//   "httpMethod": "GET",
22162	//   "id": "dialogflow.projects.agent.environments.get",
22163	//   "parameterOrder": [
22164	//     "name"
22165	//   ],
22166	//   "parameters": {
22167	//     "name": {
22168	//       "description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
22169	//       "location": "path",
22170	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22171	//       "required": true,
22172	//       "type": "string"
22173	//     }
22174	//   },
22175	//   "path": "v2beta1/{+name}",
22176	//   "response": {
22177	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
22178	//   },
22179	//   "scopes": [
22180	//     "https://www.googleapis.com/auth/cloud-platform",
22181	//     "https://www.googleapis.com/auth/dialogflow"
22182	//   ]
22183	// }
22184
22185}
22186
22187// method id "dialogflow.projects.agent.environments.getHistory":
22188
22189type ProjectsAgentEnvironmentsGetHistoryCall struct {
22190	s            *Service
22191	parent       string
22192	urlParams_   gensupport.URLParams
22193	ifNoneMatch_ string
22194	ctx_         context.Context
22195	header_      http.Header
22196}
22197
22198// GetHistory: Gets the history of the specified environment.
22199//
22200// - parent: The name of the environment to retrieve history for.
22201//   Supported formats: - `projects//agent/environments/` -
22202//   `projects//locations//agent/environments/`.
22203func (r *ProjectsAgentEnvironmentsService) GetHistory(parent string) *ProjectsAgentEnvironmentsGetHistoryCall {
22204	c := &ProjectsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22205	c.parent = parent
22206	return c
22207}
22208
22209// PageSize sets the optional parameter "pageSize": The maximum number
22210// of items to return in a single page. By default 100 and at most 1000.
22211func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsGetHistoryCall {
22212	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22213	return c
22214}
22215
22216// PageToken sets the optional parameter "pageToken": The
22217// next_page_token value returned from a previous list request.
22218func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsGetHistoryCall {
22219	c.urlParams_.Set("pageToken", pageToken)
22220	return c
22221}
22222
22223// Fields allows partial responses to be retrieved. See
22224// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22225// for more information.
22226func (c *ProjectsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetHistoryCall {
22227	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22228	return c
22229}
22230
22231// IfNoneMatch sets the optional parameter which makes the operation
22232// fail if the object's ETag matches the given value. This is useful for
22233// getting updates only after the object has changed since the last
22234// request. Use googleapi.IsNotModified to check whether the response
22235// error from Do is the result of In-None-Match.
22236func (c *ProjectsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetHistoryCall {
22237	c.ifNoneMatch_ = entityTag
22238	return c
22239}
22240
22241// Context sets the context to be used in this call's Do method. Any
22242// pending HTTP request will be aborted if the provided context is
22243// canceled.
22244func (c *ProjectsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetHistoryCall {
22245	c.ctx_ = ctx
22246	return c
22247}
22248
22249// Header returns an http.Header that can be modified by the caller to
22250// add HTTP headers to the request.
22251func (c *ProjectsAgentEnvironmentsGetHistoryCall) Header() http.Header {
22252	if c.header_ == nil {
22253		c.header_ = make(http.Header)
22254	}
22255	return c.header_
22256}
22257
22258func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
22259	reqHeaders := make(http.Header)
22260	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22261	for k, v := range c.header_ {
22262		reqHeaders[k] = v
22263	}
22264	reqHeaders.Set("User-Agent", c.s.userAgent())
22265	if c.ifNoneMatch_ != "" {
22266		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22267	}
22268	var body io.Reader = nil
22269	c.urlParams_.Set("alt", alt)
22270	c.urlParams_.Set("prettyPrint", "false")
22271	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
22272	urls += "?" + c.urlParams_.Encode()
22273	req, err := http.NewRequest("GET", urls, body)
22274	if err != nil {
22275		return nil, err
22276	}
22277	req.Header = reqHeaders
22278	googleapi.Expand(req.URL, map[string]string{
22279		"parent": c.parent,
22280	})
22281	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22282}
22283
22284// Do executes the "dialogflow.projects.agent.environments.getHistory" call.
22285// Exactly one of *GoogleCloudDialogflowV2beta1EnvironmentHistory or
22286// error will be non-nil. Any non-2xx status code is an error. Response
22287// headers are in either
22288// *GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header
22289// or (if a response was returned at all) in
22290// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22291// whether the returned error was because http.StatusNotModified was
22292// returned.
22293func (c *ProjectsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
22294	gensupport.SetOptions(c.urlParams_, opts...)
22295	res, err := c.doRequest("json")
22296	if res != nil && res.StatusCode == http.StatusNotModified {
22297		if res.Body != nil {
22298			res.Body.Close()
22299		}
22300		return nil, &googleapi.Error{
22301			Code:   res.StatusCode,
22302			Header: res.Header,
22303		}
22304	}
22305	if err != nil {
22306		return nil, err
22307	}
22308	defer googleapi.CloseBody(res)
22309	if err := googleapi.CheckResponse(res); err != nil {
22310		return nil, err
22311	}
22312	ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
22313		ServerResponse: googleapi.ServerResponse{
22314			Header:         res.Header,
22315			HTTPStatusCode: res.StatusCode,
22316		},
22317	}
22318	target := &ret
22319	if err := gensupport.DecodeResponse(target, res); err != nil {
22320		return nil, err
22321	}
22322	return ret, nil
22323	// {
22324	//   "description": "Gets the history of the specified environment.",
22325	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/history",
22326	//   "httpMethod": "GET",
22327	//   "id": "dialogflow.projects.agent.environments.getHistory",
22328	//   "parameterOrder": [
22329	//     "parent"
22330	//   ],
22331	//   "parameters": {
22332	//     "pageSize": {
22333	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
22334	//       "format": "int32",
22335	//       "location": "query",
22336	//       "type": "integer"
22337	//     },
22338	//     "pageToken": {
22339	//       "description": "Optional. The next_page_token value returned from a previous list request.",
22340	//       "location": "query",
22341	//       "type": "string"
22342	//     },
22343	//     "parent": {
22344	//       "description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
22345	//       "location": "path",
22346	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22347	//       "required": true,
22348	//       "type": "string"
22349	//     }
22350	//   },
22351	//   "path": "v2beta1/{+parent}/history",
22352	//   "response": {
22353	//     "$ref": "GoogleCloudDialogflowV2beta1EnvironmentHistory"
22354	//   },
22355	//   "scopes": [
22356	//     "https://www.googleapis.com/auth/cloud-platform",
22357	//     "https://www.googleapis.com/auth/dialogflow"
22358	//   ]
22359	// }
22360
22361}
22362
22363// Pages invokes f for each page of results.
22364// A non-nil error returned from f will halt the iteration.
22365// The provided context supersedes any context provided to the Context method.
22366func (c *ProjectsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
22367	c.ctx_ = ctx
22368	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
22369	for {
22370		x, err := c.Do()
22371		if err != nil {
22372			return err
22373		}
22374		if err := f(x); err != nil {
22375			return err
22376		}
22377		if x.NextPageToken == "" {
22378			return nil
22379		}
22380		c.PageToken(x.NextPageToken)
22381	}
22382}
22383
22384// method id "dialogflow.projects.agent.environments.list":
22385
22386type ProjectsAgentEnvironmentsListCall struct {
22387	s            *Service
22388	parent       string
22389	urlParams_   gensupport.URLParams
22390	ifNoneMatch_ string
22391	ctx_         context.Context
22392	header_      http.Header
22393}
22394
22395// List: Returns the list of all non-draft environments of the specified
22396// agent.
22397//
22398// - parent: The agent to list all environments from. Format: -
22399//   `projects//agent` - `projects//locations//agent`.
22400func (r *ProjectsAgentEnvironmentsService) List(parent string) *ProjectsAgentEnvironmentsListCall {
22401	c := &ProjectsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22402	c.parent = parent
22403	return c
22404}
22405
22406// PageSize sets the optional parameter "pageSize": The maximum number
22407// of items to return in a single page. By default 100 and at most 1000.
22408func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall {
22409	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22410	return c
22411}
22412
22413// PageToken sets the optional parameter "pageToken": The
22414// next_page_token value returned from a previous list request.
22415func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall {
22416	c.urlParams_.Set("pageToken", pageToken)
22417	return c
22418}
22419
22420// Fields allows partial responses to be retrieved. See
22421// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22422// for more information.
22423func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall {
22424	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22425	return c
22426}
22427
22428// IfNoneMatch sets the optional parameter which makes the operation
22429// fail if the object's ETag matches the given value. This is useful for
22430// getting updates only after the object has changed since the last
22431// request. Use googleapi.IsNotModified to check whether the response
22432// error from Do is the result of In-None-Match.
22433func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall {
22434	c.ifNoneMatch_ = entityTag
22435	return c
22436}
22437
22438// Context sets the context to be used in this call's Do method. Any
22439// pending HTTP request will be aborted if the provided context is
22440// canceled.
22441func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall {
22442	c.ctx_ = ctx
22443	return c
22444}
22445
22446// Header returns an http.Header that can be modified by the caller to
22447// add HTTP headers to the request.
22448func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header {
22449	if c.header_ == nil {
22450		c.header_ = make(http.Header)
22451	}
22452	return c.header_
22453}
22454
22455func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
22456	reqHeaders := make(http.Header)
22457	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22458	for k, v := range c.header_ {
22459		reqHeaders[k] = v
22460	}
22461	reqHeaders.Set("User-Agent", c.s.userAgent())
22462	if c.ifNoneMatch_ != "" {
22463		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22464	}
22465	var body io.Reader = nil
22466	c.urlParams_.Set("alt", alt)
22467	c.urlParams_.Set("prettyPrint", "false")
22468	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
22469	urls += "?" + c.urlParams_.Encode()
22470	req, err := http.NewRequest("GET", urls, body)
22471	if err != nil {
22472		return nil, err
22473	}
22474	req.Header = reqHeaders
22475	googleapi.Expand(req.URL, map[string]string{
22476		"parent": c.parent,
22477	})
22478	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22479}
22480
22481// Do executes the "dialogflow.projects.agent.environments.list" call.
22482// Exactly one of *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
22483// or error will be non-nil. Any non-2xx status code is an error.
22484// Response headers are in either
22485// *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.H
22486// eader or (if a response was returned at all) in
22487// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22488// whether the returned error was because http.StatusNotModified was
22489// returned.
22490func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
22491	gensupport.SetOptions(c.urlParams_, opts...)
22492	res, err := c.doRequest("json")
22493	if res != nil && res.StatusCode == http.StatusNotModified {
22494		if res.Body != nil {
22495			res.Body.Close()
22496		}
22497		return nil, &googleapi.Error{
22498			Code:   res.StatusCode,
22499			Header: res.Header,
22500		}
22501	}
22502	if err != nil {
22503		return nil, err
22504	}
22505	defer googleapi.CloseBody(res)
22506	if err := googleapi.CheckResponse(res); err != nil {
22507		return nil, err
22508	}
22509	ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
22510		ServerResponse: googleapi.ServerResponse{
22511			Header:         res.Header,
22512			HTTPStatusCode: res.StatusCode,
22513		},
22514	}
22515	target := &ret
22516	if err := gensupport.DecodeResponse(target, res); err != nil {
22517		return nil, err
22518	}
22519	return ret, nil
22520	// {
22521	//   "description": "Returns the list of all non-draft environments of the specified agent.",
22522	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments",
22523	//   "httpMethod": "GET",
22524	//   "id": "dialogflow.projects.agent.environments.list",
22525	//   "parameterOrder": [
22526	//     "parent"
22527	//   ],
22528	//   "parameters": {
22529	//     "pageSize": {
22530	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
22531	//       "format": "int32",
22532	//       "location": "query",
22533	//       "type": "integer"
22534	//     },
22535	//     "pageToken": {
22536	//       "description": "Optional. The next_page_token value returned from a previous list request.",
22537	//       "location": "query",
22538	//       "type": "string"
22539	//     },
22540	//     "parent": {
22541	//       "description": "Required. The agent to list all environments from. Format: - `projects//agent` - `projects//locations//agent`",
22542	//       "location": "path",
22543	//       "pattern": "^projects/[^/]+/agent$",
22544	//       "required": true,
22545	//       "type": "string"
22546	//     }
22547	//   },
22548	//   "path": "v2beta1/{+parent}/environments",
22549	//   "response": {
22550	//     "$ref": "GoogleCloudDialogflowV2beta1ListEnvironmentsResponse"
22551	//   },
22552	//   "scopes": [
22553	//     "https://www.googleapis.com/auth/cloud-platform",
22554	//     "https://www.googleapis.com/auth/dialogflow"
22555	//   ]
22556	// }
22557
22558}
22559
22560// Pages invokes f for each page of results.
22561// A non-nil error returned from f will halt the iteration.
22562// The provided context supersedes any context provided to the Context method.
22563func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
22564	c.ctx_ = ctx
22565	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
22566	for {
22567		x, err := c.Do()
22568		if err != nil {
22569			return err
22570		}
22571		if err := f(x); err != nil {
22572			return err
22573		}
22574		if x.NextPageToken == "" {
22575			return nil
22576		}
22577		c.PageToken(x.NextPageToken)
22578	}
22579}
22580
22581// method id "dialogflow.projects.agent.environments.patch":
22582
22583type ProjectsAgentEnvironmentsPatchCall struct {
22584	s                                       *Service
22585	nameid                                  string
22586	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
22587	urlParams_                              gensupport.URLParams
22588	ctx_                                    context.Context
22589	header_                                 http.Header
22590}
22591
22592// Patch: Updates the specified agent environment. This method allows
22593// you to deploy new agent versions into the environment. When an
22594// environment is pointed to a new agent version by setting
22595// `environment.agent_version`, the environment is temporarily set to
22596// the `LOADING` state. During that time, the environment keeps on
22597// serving the previous version of the agent. After the new agent
22598// version is done loading, the environment is set back to the `RUNNING`
22599// state. You can use "-" as Environment ID in environment name to
22600// update version in "draft" environment. WARNING: this will negate all
22601// recent changes to draft and can't be undone. You may want to save the
22602// draft to a version before calling this function.
22603//
22604// - name: Output only. The unique identifier of this agent environment.
22605//   Supported formats: - `projects//agent/environments/` -
22606//   `projects//locations//agent/environments/`.
22607func (r *ProjectsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsPatchCall {
22608	c := &ProjectsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22609	c.nameid = nameid
22610	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
22611	return c
22612}
22613
22614// AllowLoadToDraftAndDiscardChanges sets the optional parameter
22615// "allowLoadToDraftAndDiscardChanges": This field is used to prevent
22616// accidental overwrite of the draft environment, which is an operation
22617// that cannot be undone. To confirm that the caller desires this
22618// overwrite, this field must be explicitly set to true when updating
22619// the draft environment (environment ID = `-`).
22620func (c *ProjectsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsAgentEnvironmentsPatchCall {
22621	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
22622	return c
22623}
22624
22625// UpdateMask sets the optional parameter "updateMask": Required. The
22626// mask to control which fields get updated.
22627func (c *ProjectsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsPatchCall {
22628	c.urlParams_.Set("updateMask", updateMask)
22629	return c
22630}
22631
22632// Fields allows partial responses to be retrieved. See
22633// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22634// for more information.
22635func (c *ProjectsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsPatchCall {
22636	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22637	return c
22638}
22639
22640// Context sets the context to be used in this call's Do method. Any
22641// pending HTTP request will be aborted if the provided context is
22642// canceled.
22643func (c *ProjectsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsPatchCall {
22644	c.ctx_ = ctx
22645	return c
22646}
22647
22648// Header returns an http.Header that can be modified by the caller to
22649// add HTTP headers to the request.
22650func (c *ProjectsAgentEnvironmentsPatchCall) Header() http.Header {
22651	if c.header_ == nil {
22652		c.header_ = make(http.Header)
22653	}
22654	return c.header_
22655}
22656
22657func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
22658	reqHeaders := make(http.Header)
22659	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22660	for k, v := range c.header_ {
22661		reqHeaders[k] = v
22662	}
22663	reqHeaders.Set("User-Agent", c.s.userAgent())
22664	var body io.Reader = nil
22665	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
22666	if err != nil {
22667		return nil, err
22668	}
22669	reqHeaders.Set("Content-Type", "application/json")
22670	c.urlParams_.Set("alt", alt)
22671	c.urlParams_.Set("prettyPrint", "false")
22672	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
22673	urls += "?" + c.urlParams_.Encode()
22674	req, err := http.NewRequest("PATCH", urls, body)
22675	if err != nil {
22676		return nil, err
22677	}
22678	req.Header = reqHeaders
22679	googleapi.Expand(req.URL, map[string]string{
22680		"name": c.nameid,
22681	})
22682	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22683}
22684
22685// Do executes the "dialogflow.projects.agent.environments.patch" call.
22686// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
22687// be non-nil. Any non-2xx status code is an error. Response headers are
22688// in either
22689// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
22690// a response was returned at all) in error.(*googleapi.Error).Header.
22691// Use googleapi.IsNotModified to check whether the returned error was
22692// because http.StatusNotModified was returned.
22693func (c *ProjectsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
22694	gensupport.SetOptions(c.urlParams_, opts...)
22695	res, err := c.doRequest("json")
22696	if res != nil && res.StatusCode == http.StatusNotModified {
22697		if res.Body != nil {
22698			res.Body.Close()
22699		}
22700		return nil, &googleapi.Error{
22701			Code:   res.StatusCode,
22702			Header: res.Header,
22703		}
22704	}
22705	if err != nil {
22706		return nil, err
22707	}
22708	defer googleapi.CloseBody(res)
22709	if err := googleapi.CheckResponse(res); err != nil {
22710		return nil, err
22711	}
22712	ret := &GoogleCloudDialogflowV2beta1Environment{
22713		ServerResponse: googleapi.ServerResponse{
22714			Header:         res.Header,
22715			HTTPStatusCode: res.StatusCode,
22716		},
22717	}
22718	target := &ret
22719	if err := gensupport.DecodeResponse(target, res); err != nil {
22720		return nil, err
22721	}
22722	return ret, nil
22723	// {
22724	//   "description": "Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update version in \"draft\" environment. WARNING: this will negate all recent changes to draft and can't be undone. You may want to save the draft to a version before calling this function.",
22725	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}",
22726	//   "httpMethod": "PATCH",
22727	//   "id": "dialogflow.projects.agent.environments.patch",
22728	//   "parameterOrder": [
22729	//     "name"
22730	//   ],
22731	//   "parameters": {
22732	//     "allowLoadToDraftAndDiscardChanges": {
22733	//       "description": "Optional. This field is used to prevent accidental overwrite of the draft environment, which is an operation that cannot be undone. To confirm that the caller desires this overwrite, this field must be explicitly set to true when updating the draft environment (environment ID = `-`).",
22734	//       "location": "query",
22735	//       "type": "boolean"
22736	//     },
22737	//     "name": {
22738	//       "description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
22739	//       "location": "path",
22740	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22741	//       "required": true,
22742	//       "type": "string"
22743	//     },
22744	//     "updateMask": {
22745	//       "description": "Required. The mask to control which fields get updated.",
22746	//       "format": "google-fieldmask",
22747	//       "location": "query",
22748	//       "type": "string"
22749	//     }
22750	//   },
22751	//   "path": "v2beta1/{+name}",
22752	//   "request": {
22753	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
22754	//   },
22755	//   "response": {
22756	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
22757	//   },
22758	//   "scopes": [
22759	//     "https://www.googleapis.com/auth/cloud-platform",
22760	//     "https://www.googleapis.com/auth/dialogflow"
22761	//   ]
22762	// }
22763
22764}
22765
22766// method id "dialogflow.projects.agent.environments.intents.list":
22767
22768type ProjectsAgentEnvironmentsIntentsListCall struct {
22769	s            *Service
22770	parent       string
22771	urlParams_   gensupport.URLParams
22772	ifNoneMatch_ string
22773	ctx_         context.Context
22774	header_      http.Header
22775}
22776
22777// List: Returns the list of all intents in the specified agent.
22778//
22779// - parent: The agent to list all intents from. Format:
22780//   `projects//agent` or `projects//locations//agent`. Alternatively,
22781//   you can specify the environment to list intents for. Format:
22782//   `projects//agent/environments/` or
22783//   `projects//locations//agent/environments/`. Note: training phrases
22784//   of the intents will not be returned for non-draft environment.
22785func (r *ProjectsAgentEnvironmentsIntentsService) List(parent string) *ProjectsAgentEnvironmentsIntentsListCall {
22786	c := &ProjectsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22787	c.parent = parent
22788	return c
22789}
22790
22791// IntentView sets the optional parameter "intentView": The resource
22792// view to apply to the returned intent.
22793//
22794// Possible values:
22795//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
22796// in the response.
22797//   "INTENT_VIEW_FULL" - All fields are populated.
22798func (c *ProjectsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsAgentEnvironmentsIntentsListCall {
22799	c.urlParams_.Set("intentView", intentView)
22800	return c
22801}
22802
22803// LanguageCode sets the optional parameter "languageCode": The language
22804// used to access language-specific data. If not specified, the agent's
22805// default language is used. For more information, see Multilingual
22806// intent and entity data
22807// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
22808func (c *ProjectsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentEnvironmentsIntentsListCall {
22809	c.urlParams_.Set("languageCode", languageCode)
22810	return c
22811}
22812
22813// PageSize sets the optional parameter "pageSize": The maximum number
22814// of items to return in a single page. By default 100 and at most 1000.
22815func (c *ProjectsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsIntentsListCall {
22816	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22817	return c
22818}
22819
22820// PageToken sets the optional parameter "pageToken": The
22821// next_page_token value returned from a previous list request.
22822func (c *ProjectsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsIntentsListCall {
22823	c.urlParams_.Set("pageToken", pageToken)
22824	return c
22825}
22826
22827// Fields allows partial responses to be retrieved. See
22828// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22829// for more information.
22830func (c *ProjectsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsIntentsListCall {
22831	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22832	return c
22833}
22834
22835// IfNoneMatch sets the optional parameter which makes the operation
22836// fail if the object's ETag matches the given value. This is useful for
22837// getting updates only after the object has changed since the last
22838// request. Use googleapi.IsNotModified to check whether the response
22839// error from Do is the result of In-None-Match.
22840func (c *ProjectsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsIntentsListCall {
22841	c.ifNoneMatch_ = entityTag
22842	return c
22843}
22844
22845// Context sets the context to be used in this call's Do method. Any
22846// pending HTTP request will be aborted if the provided context is
22847// canceled.
22848func (c *ProjectsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsIntentsListCall {
22849	c.ctx_ = ctx
22850	return c
22851}
22852
22853// Header returns an http.Header that can be modified by the caller to
22854// add HTTP headers to the request.
22855func (c *ProjectsAgentEnvironmentsIntentsListCall) Header() http.Header {
22856	if c.header_ == nil {
22857		c.header_ = make(http.Header)
22858	}
22859	return c.header_
22860}
22861
22862func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
22863	reqHeaders := make(http.Header)
22864	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22865	for k, v := range c.header_ {
22866		reqHeaders[k] = v
22867	}
22868	reqHeaders.Set("User-Agent", c.s.userAgent())
22869	if c.ifNoneMatch_ != "" {
22870		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22871	}
22872	var body io.Reader = nil
22873	c.urlParams_.Set("alt", alt)
22874	c.urlParams_.Set("prettyPrint", "false")
22875	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
22876	urls += "?" + c.urlParams_.Encode()
22877	req, err := http.NewRequest("GET", urls, body)
22878	if err != nil {
22879		return nil, err
22880	}
22881	req.Header = reqHeaders
22882	googleapi.Expand(req.URL, map[string]string{
22883		"parent": c.parent,
22884	})
22885	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22886}
22887
22888// Do executes the "dialogflow.projects.agent.environments.intents.list" call.
22889// Exactly one of *GoogleCloudDialogflowV2beta1ListIntentsResponse or
22890// error will be non-nil. Any non-2xx status code is an error. Response
22891// headers are in either
22892// *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header
22893//  or (if a response was returned at all) in
22894// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22895// whether the returned error was because http.StatusNotModified was
22896// returned.
22897func (c *ProjectsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
22898	gensupport.SetOptions(c.urlParams_, opts...)
22899	res, err := c.doRequest("json")
22900	if res != nil && res.StatusCode == http.StatusNotModified {
22901		if res.Body != nil {
22902			res.Body.Close()
22903		}
22904		return nil, &googleapi.Error{
22905			Code:   res.StatusCode,
22906			Header: res.Header,
22907		}
22908	}
22909	if err != nil {
22910		return nil, err
22911	}
22912	defer googleapi.CloseBody(res)
22913	if err := googleapi.CheckResponse(res); err != nil {
22914		return nil, err
22915	}
22916	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
22917		ServerResponse: googleapi.ServerResponse{
22918			Header:         res.Header,
22919			HTTPStatusCode: res.StatusCode,
22920		},
22921	}
22922	target := &ret
22923	if err := gensupport.DecodeResponse(target, res); err != nil {
22924		return nil, err
22925	}
22926	return ret, nil
22927	// {
22928	//   "description": "Returns the list of all intents in the specified agent.",
22929	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/intents",
22930	//   "httpMethod": "GET",
22931	//   "id": "dialogflow.projects.agent.environments.intents.list",
22932	//   "parameterOrder": [
22933	//     "parent"
22934	//   ],
22935	//   "parameters": {
22936	//     "intentView": {
22937	//       "description": "Optional. The resource view to apply to the returned intent.",
22938	//       "enum": [
22939	//         "INTENT_VIEW_UNSPECIFIED",
22940	//         "INTENT_VIEW_FULL"
22941	//       ],
22942	//       "enumDescriptions": [
22943	//         "Training phrases field is not populated in the response.",
22944	//         "All fields are populated."
22945	//       ],
22946	//       "location": "query",
22947	//       "type": "string"
22948	//     },
22949	//     "languageCode": {
22950	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
22951	//       "location": "query",
22952	//       "type": "string"
22953	//     },
22954	//     "pageSize": {
22955	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
22956	//       "format": "int32",
22957	//       "location": "query",
22958	//       "type": "integer"
22959	//     },
22960	//     "pageToken": {
22961	//       "description": "Optional. The next_page_token value returned from a previous list request.",
22962	//       "location": "query",
22963	//       "type": "string"
22964	//     },
22965	//     "parent": {
22966	//       "description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
22967	//       "location": "path",
22968	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22969	//       "required": true,
22970	//       "type": "string"
22971	//     }
22972	//   },
22973	//   "path": "v2beta1/{+parent}/intents",
22974	//   "response": {
22975	//     "$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
22976	//   },
22977	//   "scopes": [
22978	//     "https://www.googleapis.com/auth/cloud-platform",
22979	//     "https://www.googleapis.com/auth/dialogflow"
22980	//   ]
22981	// }
22982
22983}
22984
22985// Pages invokes f for each page of results.
22986// A non-nil error returned from f will halt the iteration.
22987// The provided context supersedes any context provided to the Context method.
22988func (c *ProjectsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
22989	c.ctx_ = ctx
22990	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
22991	for {
22992		x, err := c.Do()
22993		if err != nil {
22994			return err
22995		}
22996		if err := f(x); err != nil {
22997			return err
22998		}
22999		if x.NextPageToken == "" {
23000			return nil
23001		}
23002		c.PageToken(x.NextPageToken)
23003	}
23004}
23005
23006// method id "dialogflow.projects.agent.environments.users.sessions.deleteContexts":
23007
23008type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
23009	s          *Service
23010	parent     string
23011	urlParams_ gensupport.URLParams
23012	ctx_       context.Context
23013	header_    http.Header
23014}
23015
23016// DeleteContexts: Deletes all active contexts in the specified session.
23017//
23018// - parent: The name of the session to delete all contexts from.
23019//   Supported formats: - `projects//agent/sessions/, -
23020//   `projects//locations//agent/sessions/`, -
23021//   `projects//agent/environments//users//sessions/`, -
23022//   `projects//locations//agent/environments//users//sessions/`, If
23023//   `Location ID` is not specified we assume default 'us' location. If
23024//   `Environment ID` is not specified we assume default 'draft'
23025//   environment. If `User ID` is not specified, we assume default '-'
23026//   user.
23027func (r *ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
23028	c := &ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23029	c.parent = parent
23030	return c
23031}
23032
23033// Fields allows partial responses to be retrieved. See
23034// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23035// for more information.
23036func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
23037	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23038	return c
23039}
23040
23041// Context sets the context to be used in this call's Do method. Any
23042// pending HTTP request will be aborted if the provided context is
23043// canceled.
23044func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
23045	c.ctx_ = ctx
23046	return c
23047}
23048
23049// Header returns an http.Header that can be modified by the caller to
23050// add HTTP headers to the request.
23051func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
23052	if c.header_ == nil {
23053		c.header_ = make(http.Header)
23054	}
23055	return c.header_
23056}
23057
23058func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
23059	reqHeaders := make(http.Header)
23060	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23061	for k, v := range c.header_ {
23062		reqHeaders[k] = v
23063	}
23064	reqHeaders.Set("User-Agent", c.s.userAgent())
23065	var body io.Reader = nil
23066	c.urlParams_.Set("alt", alt)
23067	c.urlParams_.Set("prettyPrint", "false")
23068	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
23069	urls += "?" + c.urlParams_.Encode()
23070	req, err := http.NewRequest("DELETE", urls, body)
23071	if err != nil {
23072		return nil, err
23073	}
23074	req.Header = reqHeaders
23075	googleapi.Expand(req.URL, map[string]string{
23076		"parent": c.parent,
23077	})
23078	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23079}
23080
23081// Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call.
23082// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
23083// non-2xx status code is an error. Response headers are in either
23084// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
23085// returned at all) in error.(*googleapi.Error).Header. Use
23086// googleapi.IsNotModified to check whether the returned error was
23087// because http.StatusNotModified was returned.
23088func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23089	gensupport.SetOptions(c.urlParams_, opts...)
23090	res, err := c.doRequest("json")
23091	if res != nil && res.StatusCode == http.StatusNotModified {
23092		if res.Body != nil {
23093			res.Body.Close()
23094		}
23095		return nil, &googleapi.Error{
23096			Code:   res.StatusCode,
23097			Header: res.Header,
23098		}
23099	}
23100	if err != nil {
23101		return nil, err
23102	}
23103	defer googleapi.CloseBody(res)
23104	if err := googleapi.CheckResponse(res); err != nil {
23105		return nil, err
23106	}
23107	ret := &GoogleProtobufEmpty{
23108		ServerResponse: googleapi.ServerResponse{
23109			Header:         res.Header,
23110			HTTPStatusCode: res.StatusCode,
23111		},
23112	}
23113	target := &ret
23114	if err := gensupport.DecodeResponse(target, res); err != nil {
23115		return nil, err
23116	}
23117	return ret, nil
23118	// {
23119	//   "description": "Deletes all active contexts in the specified session.",
23120	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
23121	//   "httpMethod": "DELETE",
23122	//   "id": "dialogflow.projects.agent.environments.users.sessions.deleteContexts",
23123	//   "parameterOrder": [
23124	//     "parent"
23125	//   ],
23126	//   "parameters": {
23127	//     "parent": {
23128	//       "description": "Required. The name of the session to delete all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
23129	//       "location": "path",
23130	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
23131	//       "required": true,
23132	//       "type": "string"
23133	//     }
23134	//   },
23135	//   "path": "v2beta1/{+parent}/contexts",
23136	//   "response": {
23137	//     "$ref": "GoogleProtobufEmpty"
23138	//   },
23139	//   "scopes": [
23140	//     "https://www.googleapis.com/auth/cloud-platform",
23141	//     "https://www.googleapis.com/auth/dialogflow"
23142	//   ]
23143	// }
23144
23145}
23146
23147// method id "dialogflow.projects.agent.environments.users.sessions.detectIntent":
23148
23149type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
23150	s                                               *Service
23151	sessionid                                       string
23152	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
23153	urlParams_                                      gensupport.URLParams
23154	ctx_                                            context.Context
23155	header_                                         http.Header
23156}
23157
23158// DetectIntent: Processes a natural language query and returns
23159// structured, actionable data as a result. This method is not
23160// idempotent, because it may cause contexts and session entity types to
23161// be updated, which in turn might affect results of future queries.
23162// Note: Always use agent versions for production traffic. See Versions
23163// and environments
23164// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
23165//
23166// - session: The name of the session this query is sent to. Supported
23167//   formats: - `projects//agent/sessions/, -
23168//   `projects//locations//agent/sessions/`, -
23169//   `projects//agent/environments//users//sessions/`, -
23170//   `projects//locations//agent/environments//users//sessions/`, If
23171//   `Location ID` is not specified we assume default 'us' location. If
23172//   `Environment ID` is not specified, we assume default 'draft'
23173//   environment (`Environment ID` might be referred to as environment
23174//   name at some places). If `User ID` is not specified, we are using
23175//   "-". It's up to the API caller to choose an appropriate `Session
23176//   ID` and `User Id`. They can be a random number or some type of user
23177//   and session identifiers (preferably hashed). The length of the
23178//   `Session ID` and `User ID` must not exceed 36 characters. For more
23179//   information, see the API interactions guide
23180//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
23181//   Always use agent versions for production traffic. See Versions and
23182//   environments
23183//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
23184func (r *ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
23185	c := &ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23186	c.sessionid = sessionid
23187	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
23188	return c
23189}
23190
23191// Fields allows partial responses to be retrieved. See
23192// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23193// for more information.
23194func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
23195	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23196	return c
23197}
23198
23199// Context sets the context to be used in this call's Do method. Any
23200// pending HTTP request will be aborted if the provided context is
23201// canceled.
23202func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
23203	c.ctx_ = ctx
23204	return c
23205}
23206
23207// Header returns an http.Header that can be modified by the caller to
23208// add HTTP headers to the request.
23209func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
23210	if c.header_ == nil {
23211		c.header_ = make(http.Header)
23212	}
23213	return c.header_
23214}
23215
23216func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
23217	reqHeaders := make(http.Header)
23218	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23219	for k, v := range c.header_ {
23220		reqHeaders[k] = v
23221	}
23222	reqHeaders.Set("User-Agent", c.s.userAgent())
23223	var body io.Reader = nil
23224	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
23225	if err != nil {
23226		return nil, err
23227	}
23228	reqHeaders.Set("Content-Type", "application/json")
23229	c.urlParams_.Set("alt", alt)
23230	c.urlParams_.Set("prettyPrint", "false")
23231	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
23232	urls += "?" + c.urlParams_.Encode()
23233	req, err := http.NewRequest("POST", urls, body)
23234	if err != nil {
23235		return nil, err
23236	}
23237	req.Header = reqHeaders
23238	googleapi.Expand(req.URL, map[string]string{
23239		"session": c.sessionid,
23240	})
23241	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23242}
23243
23244// Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call.
23245// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
23246// error will be non-nil. Any non-2xx status code is an error. Response
23247// headers are in either
23248// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
23249// r or (if a response was returned at all) in
23250// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23251// whether the returned error was because http.StatusNotModified was
23252// returned.
23253func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
23254	gensupport.SetOptions(c.urlParams_, opts...)
23255	res, err := c.doRequest("json")
23256	if res != nil && res.StatusCode == http.StatusNotModified {
23257		if res.Body != nil {
23258			res.Body.Close()
23259		}
23260		return nil, &googleapi.Error{
23261			Code:   res.StatusCode,
23262			Header: res.Header,
23263		}
23264	}
23265	if err != nil {
23266		return nil, err
23267	}
23268	defer googleapi.CloseBody(res)
23269	if err := googleapi.CheckResponse(res); err != nil {
23270		return nil, err
23271	}
23272	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
23273		ServerResponse: googleapi.ServerResponse{
23274			Header:         res.Header,
23275			HTTPStatusCode: res.StatusCode,
23276		},
23277	}
23278	target := &ret
23279	if err := gensupport.DecodeResponse(target, res); err != nil {
23280		return nil, err
23281	}
23282	return ret, nil
23283	// {
23284	//   "description": "Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
23285	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}:detectIntent",
23286	//   "httpMethod": "POST",
23287	//   "id": "dialogflow.projects.agent.environments.users.sessions.detectIntent",
23288	//   "parameterOrder": [
23289	//     "session"
23290	//   ],
23291	//   "parameters": {
23292	//     "session": {
23293	//       "description": "Required. The name of the session this query is sent to. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment (`Environment ID` might be referred to as environment name at some places). If `User ID` is not specified, we are using \"-\". It's up to the API caller to choose an appropriate `Session ID` and `User Id`. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the `Session ID` and `User ID` must not exceed 36 characters. For more information, see the [API interactions guide](https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
23294	//       "location": "path",
23295	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
23296	//       "required": true,
23297	//       "type": "string"
23298	//     }
23299	//   },
23300	//   "path": "v2beta1/{+session}:detectIntent",
23301	//   "request": {
23302	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
23303	//   },
23304	//   "response": {
23305	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
23306	//   },
23307	//   "scopes": [
23308	//     "https://www.googleapis.com/auth/cloud-platform",
23309	//     "https://www.googleapis.com/auth/dialogflow"
23310	//   ]
23311	// }
23312
23313}
23314
23315// method id "dialogflow.projects.agent.environments.users.sessions.contexts.create":
23316
23317type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
23318	s                                   *Service
23319	parent                              string
23320	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
23321	urlParams_                          gensupport.URLParams
23322	ctx_                                context.Context
23323	header_                             http.Header
23324}
23325
23326// Create: Creates a context. If the specified context already exists,
23327// overrides the context.
23328//
23329// - parent: The session to create a context for. Supported formats: -
23330//   `projects//agent/sessions/, -
23331//   `projects//locations//agent/sessions/`, -
23332//   `projects//agent/environments//users//sessions/`, -
23333//   `projects//locations//agent/environments//users//sessions/`, If
23334//   `Location ID` is not specified we assume default 'us' location. If
23335//   `Environment ID` is not specified, we assume default 'draft'
23336//   environment. If `User ID` is not specified, we assume default '-'
23337//   user.
23338func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
23339	c := &ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23340	c.parent = parent
23341	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
23342	return c
23343}
23344
23345// Fields allows partial responses to be retrieved. See
23346// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23347// for more information.
23348func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
23349	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23350	return c
23351}
23352
23353// Context sets the context to be used in this call's Do method. Any
23354// pending HTTP request will be aborted if the provided context is
23355// canceled.
23356func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
23357	c.ctx_ = ctx
23358	return c
23359}
23360
23361// Header returns an http.Header that can be modified by the caller to
23362// add HTTP headers to the request.
23363func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
23364	if c.header_ == nil {
23365		c.header_ = make(http.Header)
23366	}
23367	return c.header_
23368}
23369
23370func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
23371	reqHeaders := make(http.Header)
23372	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23373	for k, v := range c.header_ {
23374		reqHeaders[k] = v
23375	}
23376	reqHeaders.Set("User-Agent", c.s.userAgent())
23377	var body io.Reader = nil
23378	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
23379	if err != nil {
23380		return nil, err
23381	}
23382	reqHeaders.Set("Content-Type", "application/json")
23383	c.urlParams_.Set("alt", alt)
23384	c.urlParams_.Set("prettyPrint", "false")
23385	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
23386	urls += "?" + c.urlParams_.Encode()
23387	req, err := http.NewRequest("POST", urls, body)
23388	if err != nil {
23389		return nil, err
23390	}
23391	req.Header = reqHeaders
23392	googleapi.Expand(req.URL, map[string]string{
23393		"parent": c.parent,
23394	})
23395	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23396}
23397
23398// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call.
23399// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
23400// non-nil. Any non-2xx status code is an error. Response headers are in
23401// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
23402// (if a response was returned at all) in
23403// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23404// whether the returned error was because http.StatusNotModified was
23405// returned.
23406func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
23407	gensupport.SetOptions(c.urlParams_, opts...)
23408	res, err := c.doRequest("json")
23409	if res != nil && res.StatusCode == http.StatusNotModified {
23410		if res.Body != nil {
23411			res.Body.Close()
23412		}
23413		return nil, &googleapi.Error{
23414			Code:   res.StatusCode,
23415			Header: res.Header,
23416		}
23417	}
23418	if err != nil {
23419		return nil, err
23420	}
23421	defer googleapi.CloseBody(res)
23422	if err := googleapi.CheckResponse(res); err != nil {
23423		return nil, err
23424	}
23425	ret := &GoogleCloudDialogflowV2beta1Context{
23426		ServerResponse: googleapi.ServerResponse{
23427			Header:         res.Header,
23428			HTTPStatusCode: res.StatusCode,
23429		},
23430	}
23431	target := &ret
23432	if err := gensupport.DecodeResponse(target, res); err != nil {
23433		return nil, err
23434	}
23435	return ret, nil
23436	// {
23437	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
23438	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
23439	//   "httpMethod": "POST",
23440	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.create",
23441	//   "parameterOrder": [
23442	//     "parent"
23443	//   ],
23444	//   "parameters": {
23445	//     "parent": {
23446	//       "description": "Required. The session to create a context for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
23447	//       "location": "path",
23448	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
23449	//       "required": true,
23450	//       "type": "string"
23451	//     }
23452	//   },
23453	//   "path": "v2beta1/{+parent}/contexts",
23454	//   "request": {
23455	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23456	//   },
23457	//   "response": {
23458	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23459	//   },
23460	//   "scopes": [
23461	//     "https://www.googleapis.com/auth/cloud-platform",
23462	//     "https://www.googleapis.com/auth/dialogflow"
23463	//   ]
23464	// }
23465
23466}
23467
23468// method id "dialogflow.projects.agent.environments.users.sessions.contexts.delete":
23469
23470type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
23471	s          *Service
23472	name       string
23473	urlParams_ gensupport.URLParams
23474	ctx_       context.Context
23475	header_    http.Header
23476}
23477
23478// Delete: Deletes the specified context.
23479//
23480// - name: The name of the context to delete. Supported formats: -
23481//   `projects//agent/sessions//contexts/`, -
23482//   `projects//locations//agent/sessions//contexts/`, -
23483//   `projects//agent/environments//users//sessions//contexts/`, -
23484//   `projects//locations//agent/environments//users//sessions//contexts/
23485//   `, If `Location ID` is not specified we assume default 'us'
23486//   location. If `Environment ID` is not specified, we assume default
23487//   'draft' environment. If `User ID` is not specified, we assume
23488//   default '-' user.
23489func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
23490	c := &ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23491	c.name = name
23492	return c
23493}
23494
23495// Fields allows partial responses to be retrieved. See
23496// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23497// for more information.
23498func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
23499	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23500	return c
23501}
23502
23503// Context sets the context to be used in this call's Do method. Any
23504// pending HTTP request will be aborted if the provided context is
23505// canceled.
23506func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
23507	c.ctx_ = ctx
23508	return c
23509}
23510
23511// Header returns an http.Header that can be modified by the caller to
23512// add HTTP headers to the request.
23513func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
23514	if c.header_ == nil {
23515		c.header_ = make(http.Header)
23516	}
23517	return c.header_
23518}
23519
23520func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
23521	reqHeaders := make(http.Header)
23522	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23523	for k, v := range c.header_ {
23524		reqHeaders[k] = v
23525	}
23526	reqHeaders.Set("User-Agent", c.s.userAgent())
23527	var body io.Reader = nil
23528	c.urlParams_.Set("alt", alt)
23529	c.urlParams_.Set("prettyPrint", "false")
23530	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23531	urls += "?" + c.urlParams_.Encode()
23532	req, err := http.NewRequest("DELETE", urls, body)
23533	if err != nil {
23534		return nil, err
23535	}
23536	req.Header = reqHeaders
23537	googleapi.Expand(req.URL, map[string]string{
23538		"name": c.name,
23539	})
23540	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23541}
23542
23543// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call.
23544// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
23545// non-2xx status code is an error. Response headers are in either
23546// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
23547// returned at all) in error.(*googleapi.Error).Header. Use
23548// googleapi.IsNotModified to check whether the returned error was
23549// because http.StatusNotModified was returned.
23550func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23551	gensupport.SetOptions(c.urlParams_, opts...)
23552	res, err := c.doRequest("json")
23553	if res != nil && res.StatusCode == http.StatusNotModified {
23554		if res.Body != nil {
23555			res.Body.Close()
23556		}
23557		return nil, &googleapi.Error{
23558			Code:   res.StatusCode,
23559			Header: res.Header,
23560		}
23561	}
23562	if err != nil {
23563		return nil, err
23564	}
23565	defer googleapi.CloseBody(res)
23566	if err := googleapi.CheckResponse(res); err != nil {
23567		return nil, err
23568	}
23569	ret := &GoogleProtobufEmpty{
23570		ServerResponse: googleapi.ServerResponse{
23571			Header:         res.Header,
23572			HTTPStatusCode: res.StatusCode,
23573		},
23574	}
23575	target := &ret
23576	if err := gensupport.DecodeResponse(target, res); err != nil {
23577		return nil, err
23578	}
23579	return ret, nil
23580	// {
23581	//   "description": "Deletes the specified context.",
23582	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
23583	//   "httpMethod": "DELETE",
23584	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.delete",
23585	//   "parameterOrder": [
23586	//     "name"
23587	//   ],
23588	//   "parameters": {
23589	//     "name": {
23590	//       "description": "Required. The name of the context to delete. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
23591	//       "location": "path",
23592	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
23593	//       "required": true,
23594	//       "type": "string"
23595	//     }
23596	//   },
23597	//   "path": "v2beta1/{+name}",
23598	//   "response": {
23599	//     "$ref": "GoogleProtobufEmpty"
23600	//   },
23601	//   "scopes": [
23602	//     "https://www.googleapis.com/auth/cloud-platform",
23603	//     "https://www.googleapis.com/auth/dialogflow"
23604	//   ]
23605	// }
23606
23607}
23608
23609// method id "dialogflow.projects.agent.environments.users.sessions.contexts.get":
23610
23611type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {
23612	s            *Service
23613	name         string
23614	urlParams_   gensupport.URLParams
23615	ifNoneMatch_ string
23616	ctx_         context.Context
23617	header_      http.Header
23618}
23619
23620// Get: Retrieves the specified context.
23621//
23622// - name: The name of the context. Supported formats: -
23623//   `projects//agent/sessions//contexts/`, -
23624//   `projects//locations//agent/sessions//contexts/`, -
23625//   `projects//agent/environments//users//sessions//contexts/`, -
23626//   `projects//locations//agent/environments//users//sessions//contexts/
23627//   `, If `Location ID` is not specified we assume default 'us'
23628//   location. If `Environment ID` is not specified, we assume default
23629//   'draft' environment. If `User ID` is not specified, we assume
23630//   default '-' user.
23631func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23632	c := &ProjectsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23633	c.name = name
23634	return c
23635}
23636
23637// Fields allows partial responses to be retrieved. See
23638// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23639// for more information.
23640func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23641	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23642	return c
23643}
23644
23645// IfNoneMatch sets the optional parameter which makes the operation
23646// fail if the object's ETag matches the given value. This is useful for
23647// getting updates only after the object has changed since the last
23648// request. Use googleapi.IsNotModified to check whether the response
23649// error from Do is the result of In-None-Match.
23650func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23651	c.ifNoneMatch_ = entityTag
23652	return c
23653}
23654
23655// Context sets the context to be used in this call's Do method. Any
23656// pending HTTP request will be aborted if the provided context is
23657// canceled.
23658func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23659	c.ctx_ = ctx
23660	return c
23661}
23662
23663// Header returns an http.Header that can be modified by the caller to
23664// add HTTP headers to the request.
23665func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
23666	if c.header_ == nil {
23667		c.header_ = make(http.Header)
23668	}
23669	return c.header_
23670}
23671
23672func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
23673	reqHeaders := make(http.Header)
23674	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23675	for k, v := range c.header_ {
23676		reqHeaders[k] = v
23677	}
23678	reqHeaders.Set("User-Agent", c.s.userAgent())
23679	if c.ifNoneMatch_ != "" {
23680		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23681	}
23682	var body io.Reader = nil
23683	c.urlParams_.Set("alt", alt)
23684	c.urlParams_.Set("prettyPrint", "false")
23685	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23686	urls += "?" + c.urlParams_.Encode()
23687	req, err := http.NewRequest("GET", urls, body)
23688	if err != nil {
23689		return nil, err
23690	}
23691	req.Header = reqHeaders
23692	googleapi.Expand(req.URL, map[string]string{
23693		"name": c.name,
23694	})
23695	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23696}
23697
23698// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call.
23699// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
23700// non-nil. Any non-2xx status code is an error. Response headers are in
23701// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
23702// (if a response was returned at all) in
23703// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23704// whether the returned error was because http.StatusNotModified was
23705// returned.
23706func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
23707	gensupport.SetOptions(c.urlParams_, opts...)
23708	res, err := c.doRequest("json")
23709	if res != nil && res.StatusCode == http.StatusNotModified {
23710		if res.Body != nil {
23711			res.Body.Close()
23712		}
23713		return nil, &googleapi.Error{
23714			Code:   res.StatusCode,
23715			Header: res.Header,
23716		}
23717	}
23718	if err != nil {
23719		return nil, err
23720	}
23721	defer googleapi.CloseBody(res)
23722	if err := googleapi.CheckResponse(res); err != nil {
23723		return nil, err
23724	}
23725	ret := &GoogleCloudDialogflowV2beta1Context{
23726		ServerResponse: googleapi.ServerResponse{
23727			Header:         res.Header,
23728			HTTPStatusCode: res.StatusCode,
23729		},
23730	}
23731	target := &ret
23732	if err := gensupport.DecodeResponse(target, res); err != nil {
23733		return nil, err
23734	}
23735	return ret, nil
23736	// {
23737	//   "description": "Retrieves the specified context.",
23738	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
23739	//   "httpMethod": "GET",
23740	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.get",
23741	//   "parameterOrder": [
23742	//     "name"
23743	//   ],
23744	//   "parameters": {
23745	//     "name": {
23746	//       "description": "Required. The name of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
23747	//       "location": "path",
23748	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
23749	//       "required": true,
23750	//       "type": "string"
23751	//     }
23752	//   },
23753	//   "path": "v2beta1/{+name}",
23754	//   "response": {
23755	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23756	//   },
23757	//   "scopes": [
23758	//     "https://www.googleapis.com/auth/cloud-platform",
23759	//     "https://www.googleapis.com/auth/dialogflow"
23760	//   ]
23761	// }
23762
23763}
23764
23765// method id "dialogflow.projects.agent.environments.users.sessions.contexts.list":
23766
23767type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {
23768	s            *Service
23769	parent       string
23770	urlParams_   gensupport.URLParams
23771	ifNoneMatch_ string
23772	ctx_         context.Context
23773	header_      http.Header
23774}
23775
23776// List: Returns the list of all contexts in the specified session.
23777//
23778// - parent: The session to list all contexts from. Supported formats: -
23779//   `projects//agent/sessions/, -
23780//   `projects//locations//agent/sessions/`, -
23781//   `projects//agent/environments//users//sessions/`, -
23782//   `projects//locations//agent/environments//users//sessions/`, If
23783//   `Location ID` is not specified we assume default 'us' location. If
23784//   `Environment ID` is not specified, we assume default 'draft'
23785//   environment. If `User ID` is not specified, we assume default '-'
23786//   user.
23787func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23788	c := &ProjectsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23789	c.parent = parent
23790	return c
23791}
23792
23793// PageSize sets the optional parameter "pageSize": The maximum number
23794// of items to return in a single page. By default 100 and at most 1000.
23795func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23796	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23797	return c
23798}
23799
23800// PageToken sets the optional parameter "pageToken": The
23801// next_page_token value returned from a previous list request.
23802func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23803	c.urlParams_.Set("pageToken", pageToken)
23804	return c
23805}
23806
23807// Fields allows partial responses to be retrieved. See
23808// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23809// for more information.
23810func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23811	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23812	return c
23813}
23814
23815// IfNoneMatch sets the optional parameter which makes the operation
23816// fail if the object's ETag matches the given value. This is useful for
23817// getting updates only after the object has changed since the last
23818// request. Use googleapi.IsNotModified to check whether the response
23819// error from Do is the result of In-None-Match.
23820func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23821	c.ifNoneMatch_ = entityTag
23822	return c
23823}
23824
23825// Context sets the context to be used in this call's Do method. Any
23826// pending HTTP request will be aborted if the provided context is
23827// canceled.
23828func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23829	c.ctx_ = ctx
23830	return c
23831}
23832
23833// Header returns an http.Header that can be modified by the caller to
23834// add HTTP headers to the request.
23835func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
23836	if c.header_ == nil {
23837		c.header_ = make(http.Header)
23838	}
23839	return c.header_
23840}
23841
23842func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
23843	reqHeaders := make(http.Header)
23844	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23845	for k, v := range c.header_ {
23846		reqHeaders[k] = v
23847	}
23848	reqHeaders.Set("User-Agent", c.s.userAgent())
23849	if c.ifNoneMatch_ != "" {
23850		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23851	}
23852	var body io.Reader = nil
23853	c.urlParams_.Set("alt", alt)
23854	c.urlParams_.Set("prettyPrint", "false")
23855	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
23856	urls += "?" + c.urlParams_.Encode()
23857	req, err := http.NewRequest("GET", urls, body)
23858	if err != nil {
23859		return nil, err
23860	}
23861	req.Header = reqHeaders
23862	googleapi.Expand(req.URL, map[string]string{
23863		"parent": c.parent,
23864	})
23865	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23866}
23867
23868// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call.
23869// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
23870// error will be non-nil. Any non-2xx status code is an error. Response
23871// headers are in either
23872// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
23873// r or (if a response was returned at all) in
23874// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23875// whether the returned error was because http.StatusNotModified was
23876// returned.
23877func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
23878	gensupport.SetOptions(c.urlParams_, opts...)
23879	res, err := c.doRequest("json")
23880	if res != nil && res.StatusCode == http.StatusNotModified {
23881		if res.Body != nil {
23882			res.Body.Close()
23883		}
23884		return nil, &googleapi.Error{
23885			Code:   res.StatusCode,
23886			Header: res.Header,
23887		}
23888	}
23889	if err != nil {
23890		return nil, err
23891	}
23892	defer googleapi.CloseBody(res)
23893	if err := googleapi.CheckResponse(res); err != nil {
23894		return nil, err
23895	}
23896	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
23897		ServerResponse: googleapi.ServerResponse{
23898			Header:         res.Header,
23899			HTTPStatusCode: res.StatusCode,
23900		},
23901	}
23902	target := &ret
23903	if err := gensupport.DecodeResponse(target, res); err != nil {
23904		return nil, err
23905	}
23906	return ret, nil
23907	// {
23908	//   "description": "Returns the list of all contexts in the specified session.",
23909	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
23910	//   "httpMethod": "GET",
23911	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.list",
23912	//   "parameterOrder": [
23913	//     "parent"
23914	//   ],
23915	//   "parameters": {
23916	//     "pageSize": {
23917	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
23918	//       "format": "int32",
23919	//       "location": "query",
23920	//       "type": "integer"
23921	//     },
23922	//     "pageToken": {
23923	//       "description": "Optional. The next_page_token value returned from a previous list request.",
23924	//       "location": "query",
23925	//       "type": "string"
23926	//     },
23927	//     "parent": {
23928	//       "description": "Required. The session to list all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
23929	//       "location": "path",
23930	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
23931	//       "required": true,
23932	//       "type": "string"
23933	//     }
23934	//   },
23935	//   "path": "v2beta1/{+parent}/contexts",
23936	//   "response": {
23937	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
23938	//   },
23939	//   "scopes": [
23940	//     "https://www.googleapis.com/auth/cloud-platform",
23941	//     "https://www.googleapis.com/auth/dialogflow"
23942	//   ]
23943	// }
23944
23945}
23946
23947// Pages invokes f for each page of results.
23948// A non-nil error returned from f will halt the iteration.
23949// The provided context supersedes any context provided to the Context method.
23950func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
23951	c.ctx_ = ctx
23952	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
23953	for {
23954		x, err := c.Do()
23955		if err != nil {
23956			return err
23957		}
23958		if err := f(x); err != nil {
23959			return err
23960		}
23961		if x.NextPageToken == "" {
23962			return nil
23963		}
23964		c.PageToken(x.NextPageToken)
23965	}
23966}
23967
23968// method id "dialogflow.projects.agent.environments.users.sessions.contexts.patch":
23969
23970type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
23971	s                                   *Service
23972	nameid                              string
23973	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
23974	urlParams_                          gensupport.URLParams
23975	ctx_                                context.Context
23976	header_                             http.Header
23977}
23978
23979// Patch: Updates the specified context.
23980//
23981// - name: The unique identifier of the context. Supported formats: -
23982//   `projects//agent/sessions//contexts/`, -
23983//   `projects//locations//agent/sessions//contexts/`, -
23984//   `projects//agent/environments//users//sessions//contexts/`, -
23985//   `projects//locations//agent/environments//users//sessions//contexts/
23986//   `, The `Context ID` is always converted to lowercase, may only
23987//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
23988//   long. If `Environment ID` is not specified, we assume default
23989//   'draft' environment. If `User ID` is not specified, we assume
23990//   default '-' user. The following context names are reserved for
23991//   internal use by Dialogflow. You should not use these contexts or
23992//   create contexts with these names: * `__system_counters__` *
23993//   `*_id_dialog_context` * `*_dialog_params_size`.
23994func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23995	c := &ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23996	c.nameid = nameid
23997	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
23998	return c
23999}
24000
24001// UpdateMask sets the optional parameter "updateMask": The mask to
24002// control which fields get updated.
24003func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
24004	c.urlParams_.Set("updateMask", updateMask)
24005	return c
24006}
24007
24008// Fields allows partial responses to be retrieved. See
24009// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24010// for more information.
24011func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
24012	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24013	return c
24014}
24015
24016// Context sets the context to be used in this call's Do method. Any
24017// pending HTTP request will be aborted if the provided context is
24018// canceled.
24019func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
24020	c.ctx_ = ctx
24021	return c
24022}
24023
24024// Header returns an http.Header that can be modified by the caller to
24025// add HTTP headers to the request.
24026func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
24027	if c.header_ == nil {
24028		c.header_ = make(http.Header)
24029	}
24030	return c.header_
24031}
24032
24033func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
24034	reqHeaders := make(http.Header)
24035	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24036	for k, v := range c.header_ {
24037		reqHeaders[k] = v
24038	}
24039	reqHeaders.Set("User-Agent", c.s.userAgent())
24040	var body io.Reader = nil
24041	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
24042	if err != nil {
24043		return nil, err
24044	}
24045	reqHeaders.Set("Content-Type", "application/json")
24046	c.urlParams_.Set("alt", alt)
24047	c.urlParams_.Set("prettyPrint", "false")
24048	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24049	urls += "?" + c.urlParams_.Encode()
24050	req, err := http.NewRequest("PATCH", urls, body)
24051	if err != nil {
24052		return nil, err
24053	}
24054	req.Header = reqHeaders
24055	googleapi.Expand(req.URL, map[string]string{
24056		"name": c.nameid,
24057	})
24058	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24059}
24060
24061// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call.
24062// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
24063// non-nil. Any non-2xx status code is an error. Response headers are in
24064// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
24065// (if a response was returned at all) in
24066// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24067// whether the returned error was because http.StatusNotModified was
24068// returned.
24069func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
24070	gensupport.SetOptions(c.urlParams_, opts...)
24071	res, err := c.doRequest("json")
24072	if res != nil && res.StatusCode == http.StatusNotModified {
24073		if res.Body != nil {
24074			res.Body.Close()
24075		}
24076		return nil, &googleapi.Error{
24077			Code:   res.StatusCode,
24078			Header: res.Header,
24079		}
24080	}
24081	if err != nil {
24082		return nil, err
24083	}
24084	defer googleapi.CloseBody(res)
24085	if err := googleapi.CheckResponse(res); err != nil {
24086		return nil, err
24087	}
24088	ret := &GoogleCloudDialogflowV2beta1Context{
24089		ServerResponse: googleapi.ServerResponse{
24090			Header:         res.Header,
24091			HTTPStatusCode: res.StatusCode,
24092		},
24093	}
24094	target := &ret
24095	if err := gensupport.DecodeResponse(target, res); err != nil {
24096		return nil, err
24097	}
24098	return ret, nil
24099	// {
24100	//   "description": "Updates the specified context.",
24101	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
24102	//   "httpMethod": "PATCH",
24103	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.patch",
24104	//   "parameterOrder": [
24105	//     "name"
24106	//   ],
24107	//   "parameters": {
24108	//     "name": {
24109	//       "description": "Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`",
24110	//       "location": "path",
24111	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
24112	//       "required": true,
24113	//       "type": "string"
24114	//     },
24115	//     "updateMask": {
24116	//       "description": "Optional. The mask to control which fields get updated.",
24117	//       "format": "google-fieldmask",
24118	//       "location": "query",
24119	//       "type": "string"
24120	//     }
24121	//   },
24122	//   "path": "v2beta1/{+name}",
24123	//   "request": {
24124	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
24125	//   },
24126	//   "response": {
24127	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
24128	//   },
24129	//   "scopes": [
24130	//     "https://www.googleapis.com/auth/cloud-platform",
24131	//     "https://www.googleapis.com/auth/dialogflow"
24132	//   ]
24133	// }
24134
24135}
24136
24137// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.create":
24138
24139type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
24140	s                                             *Service
24141	parent                                        string
24142	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
24143	urlParams_                                    gensupport.URLParams
24144	ctx_                                          context.Context
24145	header_                                       http.Header
24146}
24147
24148// Create: Creates a session entity type. If the specified session
24149// entity type already exists, overrides the session entity type. This
24150// method doesn't work with Google Assistant integration. Contact
24151// Dialogflow support if you need to use session entities with Google
24152// Assistant integration.
24153//
24154// - parent: The session to create a session entity type for. Supported
24155//   formats: - `projects//agent/sessions/, -
24156//   `projects//locations//agent/sessions/`, -
24157//   `projects//agent/environments//users//sessions/`, -
24158//   `projects//locations//agent/environments//users//sessions/`, If
24159//   `Location ID` is not specified we assume default 'us' location. If
24160//   `Environment ID` is not specified, we assume default 'draft'
24161//   environment. If `User ID` is not specified, we assume default '-'
24162//   user.
24163func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
24164	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24165	c.parent = parent
24166	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
24167	return c
24168}
24169
24170// Fields allows partial responses to be retrieved. See
24171// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24172// for more information.
24173func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
24174	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24175	return c
24176}
24177
24178// Context sets the context to be used in this call's Do method. Any
24179// pending HTTP request will be aborted if the provided context is
24180// canceled.
24181func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
24182	c.ctx_ = ctx
24183	return c
24184}
24185
24186// Header returns an http.Header that can be modified by the caller to
24187// add HTTP headers to the request.
24188func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
24189	if c.header_ == nil {
24190		c.header_ = make(http.Header)
24191	}
24192	return c.header_
24193}
24194
24195func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
24196	reqHeaders := make(http.Header)
24197	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24198	for k, v := range c.header_ {
24199		reqHeaders[k] = v
24200	}
24201	reqHeaders.Set("User-Agent", c.s.userAgent())
24202	var body io.Reader = nil
24203	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
24204	if err != nil {
24205		return nil, err
24206	}
24207	reqHeaders.Set("Content-Type", "application/json")
24208	c.urlParams_.Set("alt", alt)
24209	c.urlParams_.Set("prettyPrint", "false")
24210	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
24211	urls += "?" + c.urlParams_.Encode()
24212	req, err := http.NewRequest("POST", urls, body)
24213	if err != nil {
24214		return nil, err
24215	}
24216	req.Header = reqHeaders
24217	googleapi.Expand(req.URL, map[string]string{
24218		"parent": c.parent,
24219	})
24220	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24221}
24222
24223// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call.
24224// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
24225// error will be non-nil. Any non-2xx status code is an error. Response
24226// headers are in either
24227// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
24228// or (if a response was returned at all) in
24229// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24230// whether the returned error was because http.StatusNotModified was
24231// returned.
24232func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
24233	gensupport.SetOptions(c.urlParams_, opts...)
24234	res, err := c.doRequest("json")
24235	if res != nil && res.StatusCode == http.StatusNotModified {
24236		if res.Body != nil {
24237			res.Body.Close()
24238		}
24239		return nil, &googleapi.Error{
24240			Code:   res.StatusCode,
24241			Header: res.Header,
24242		}
24243	}
24244	if err != nil {
24245		return nil, err
24246	}
24247	defer googleapi.CloseBody(res)
24248	if err := googleapi.CheckResponse(res); err != nil {
24249		return nil, err
24250	}
24251	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
24252		ServerResponse: googleapi.ServerResponse{
24253			Header:         res.Header,
24254			HTTPStatusCode: res.StatusCode,
24255		},
24256	}
24257	target := &ret
24258	if err := gensupport.DecodeResponse(target, res); err != nil {
24259		return nil, err
24260	}
24261	return ret, nil
24262	// {
24263	//   "description": "Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
24264	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
24265	//   "httpMethod": "POST",
24266	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.create",
24267	//   "parameterOrder": [
24268	//     "parent"
24269	//   ],
24270	//   "parameters": {
24271	//     "parent": {
24272	//       "description": "Required. The session to create a session entity type for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
24273	//       "location": "path",
24274	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
24275	//       "required": true,
24276	//       "type": "string"
24277	//     }
24278	//   },
24279	//   "path": "v2beta1/{+parent}/entityTypes",
24280	//   "request": {
24281	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24282	//   },
24283	//   "response": {
24284	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24285	//   },
24286	//   "scopes": [
24287	//     "https://www.googleapis.com/auth/cloud-platform",
24288	//     "https://www.googleapis.com/auth/dialogflow"
24289	//   ]
24290	// }
24291
24292}
24293
24294// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete":
24295
24296type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
24297	s          *Service
24298	name       string
24299	urlParams_ gensupport.URLParams
24300	ctx_       context.Context
24301	header_    http.Header
24302}
24303
24304// Delete: Deletes the specified session entity type. This method
24305// doesn't work with Google Assistant integration. Contact Dialogflow
24306// support if you need to use session entities with Google Assistant
24307// integration.
24308//
24309// - name: The name of the entity type to delete. Supported formats: -
24310//   `projects//agent/sessions//entityTypes/` -
24311//   `projects//locations//agent/sessions//entityTypes/` -
24312//   `projects//agent/environments//users//sessions//entityTypes/` -
24313//   `projects//locations//agent/environments/
24314//   /users//sessions//entityTypes/` If `Location ID` is not specified
24315//   we assume default 'us' location. If `Environment ID` is not
24316//   specified, we assume default 'draft' environment. If `User ID` is
24317//   not specified, we assume default '-' user.
24318func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
24319	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24320	c.name = name
24321	return c
24322}
24323
24324// Fields allows partial responses to be retrieved. See
24325// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24326// for more information.
24327func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
24328	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24329	return c
24330}
24331
24332// Context sets the context to be used in this call's Do method. Any
24333// pending HTTP request will be aborted if the provided context is
24334// canceled.
24335func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
24336	c.ctx_ = ctx
24337	return c
24338}
24339
24340// Header returns an http.Header that can be modified by the caller to
24341// add HTTP headers to the request.
24342func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
24343	if c.header_ == nil {
24344		c.header_ = make(http.Header)
24345	}
24346	return c.header_
24347}
24348
24349func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
24350	reqHeaders := make(http.Header)
24351	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24352	for k, v := range c.header_ {
24353		reqHeaders[k] = v
24354	}
24355	reqHeaders.Set("User-Agent", c.s.userAgent())
24356	var body io.Reader = nil
24357	c.urlParams_.Set("alt", alt)
24358	c.urlParams_.Set("prettyPrint", "false")
24359	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24360	urls += "?" + c.urlParams_.Encode()
24361	req, err := http.NewRequest("DELETE", urls, body)
24362	if err != nil {
24363		return nil, err
24364	}
24365	req.Header = reqHeaders
24366	googleapi.Expand(req.URL, map[string]string{
24367		"name": c.name,
24368	})
24369	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24370}
24371
24372// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call.
24373// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
24374// non-2xx status code is an error. Response headers are in either
24375// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
24376// returned at all) in error.(*googleapi.Error).Header. Use
24377// googleapi.IsNotModified to check whether the returned error was
24378// because http.StatusNotModified was returned.
24379func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24380	gensupport.SetOptions(c.urlParams_, opts...)
24381	res, err := c.doRequest("json")
24382	if res != nil && res.StatusCode == http.StatusNotModified {
24383		if res.Body != nil {
24384			res.Body.Close()
24385		}
24386		return nil, &googleapi.Error{
24387			Code:   res.StatusCode,
24388			Header: res.Header,
24389		}
24390	}
24391	if err != nil {
24392		return nil, err
24393	}
24394	defer googleapi.CloseBody(res)
24395	if err := googleapi.CheckResponse(res); err != nil {
24396		return nil, err
24397	}
24398	ret := &GoogleProtobufEmpty{
24399		ServerResponse: googleapi.ServerResponse{
24400			Header:         res.Header,
24401			HTTPStatusCode: res.StatusCode,
24402		},
24403	}
24404	target := &ret
24405	if err := gensupport.DecodeResponse(target, res); err != nil {
24406		return nil, err
24407	}
24408	return ret, nil
24409	// {
24410	//   "description": "Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
24411	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
24412	//   "httpMethod": "DELETE",
24413	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete",
24414	//   "parameterOrder": [
24415	//     "name"
24416	//   ],
24417	//   "parameters": {
24418	//     "name": {
24419	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
24420	//       "location": "path",
24421	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
24422	//       "required": true,
24423	//       "type": "string"
24424	//     }
24425	//   },
24426	//   "path": "v2beta1/{+name}",
24427	//   "response": {
24428	//     "$ref": "GoogleProtobufEmpty"
24429	//   },
24430	//   "scopes": [
24431	//     "https://www.googleapis.com/auth/cloud-platform",
24432	//     "https://www.googleapis.com/auth/dialogflow"
24433	//   ]
24434	// }
24435
24436}
24437
24438// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.get":
24439
24440type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
24441	s            *Service
24442	name         string
24443	urlParams_   gensupport.URLParams
24444	ifNoneMatch_ string
24445	ctx_         context.Context
24446	header_      http.Header
24447}
24448
24449// Get: Retrieves the specified session entity type. This method doesn't
24450// work with Google Assistant integration. Contact Dialogflow support if
24451// you need to use session entities with Google Assistant integration.
24452//
24453// - name: The name of the session entity type. Supported formats: -
24454//   `projects//agent/sessions//entityTypes/` -
24455//   `projects//locations//agent/sessions//entityTypes/` -
24456//   `projects//agent/environments//users//sessions//entityTypes/` -
24457//   `projects//locations//agent/environments/
24458//   /users//sessions//entityTypes/` If `Location ID` is not specified
24459//   we assume default 'us' location. If `Environment ID` is not
24460//   specified, we assume default 'draft' environment. If `User ID` is
24461//   not specified, we assume default '-' user.
24462func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24463	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24464	c.name = name
24465	return c
24466}
24467
24468// Fields allows partial responses to be retrieved. See
24469// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24470// for more information.
24471func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24472	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24473	return c
24474}
24475
24476// IfNoneMatch sets the optional parameter which makes the operation
24477// fail if the object's ETag matches the given value. This is useful for
24478// getting updates only after the object has changed since the last
24479// request. Use googleapi.IsNotModified to check whether the response
24480// error from Do is the result of In-None-Match.
24481func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24482	c.ifNoneMatch_ = entityTag
24483	return c
24484}
24485
24486// Context sets the context to be used in this call's Do method. Any
24487// pending HTTP request will be aborted if the provided context is
24488// canceled.
24489func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24490	c.ctx_ = ctx
24491	return c
24492}
24493
24494// Header returns an http.Header that can be modified by the caller to
24495// add HTTP headers to the request.
24496func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
24497	if c.header_ == nil {
24498		c.header_ = make(http.Header)
24499	}
24500	return c.header_
24501}
24502
24503func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
24504	reqHeaders := make(http.Header)
24505	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24506	for k, v := range c.header_ {
24507		reqHeaders[k] = v
24508	}
24509	reqHeaders.Set("User-Agent", c.s.userAgent())
24510	if c.ifNoneMatch_ != "" {
24511		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24512	}
24513	var body io.Reader = nil
24514	c.urlParams_.Set("alt", alt)
24515	c.urlParams_.Set("prettyPrint", "false")
24516	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24517	urls += "?" + c.urlParams_.Encode()
24518	req, err := http.NewRequest("GET", urls, body)
24519	if err != nil {
24520		return nil, err
24521	}
24522	req.Header = reqHeaders
24523	googleapi.Expand(req.URL, map[string]string{
24524		"name": c.name,
24525	})
24526	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24527}
24528
24529// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call.
24530// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
24531// error will be non-nil. Any non-2xx status code is an error. Response
24532// headers are in either
24533// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
24534// or (if a response was returned at all) in
24535// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24536// whether the returned error was because http.StatusNotModified was
24537// returned.
24538func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
24539	gensupport.SetOptions(c.urlParams_, opts...)
24540	res, err := c.doRequest("json")
24541	if res != nil && res.StatusCode == http.StatusNotModified {
24542		if res.Body != nil {
24543			res.Body.Close()
24544		}
24545		return nil, &googleapi.Error{
24546			Code:   res.StatusCode,
24547			Header: res.Header,
24548		}
24549	}
24550	if err != nil {
24551		return nil, err
24552	}
24553	defer googleapi.CloseBody(res)
24554	if err := googleapi.CheckResponse(res); err != nil {
24555		return nil, err
24556	}
24557	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
24558		ServerResponse: googleapi.ServerResponse{
24559			Header:         res.Header,
24560			HTTPStatusCode: res.StatusCode,
24561		},
24562	}
24563	target := &ret
24564	if err := gensupport.DecodeResponse(target, res); err != nil {
24565		return nil, err
24566	}
24567	return ret, nil
24568	// {
24569	//   "description": "Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
24570	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
24571	//   "httpMethod": "GET",
24572	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.get",
24573	//   "parameterOrder": [
24574	//     "name"
24575	//   ],
24576	//   "parameters": {
24577	//     "name": {
24578	//       "description": "Required. The name of the session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
24579	//       "location": "path",
24580	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
24581	//       "required": true,
24582	//       "type": "string"
24583	//     }
24584	//   },
24585	//   "path": "v2beta1/{+name}",
24586	//   "response": {
24587	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24588	//   },
24589	//   "scopes": [
24590	//     "https://www.googleapis.com/auth/cloud-platform",
24591	//     "https://www.googleapis.com/auth/dialogflow"
24592	//   ]
24593	// }
24594
24595}
24596
24597// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.list":
24598
24599type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
24600	s            *Service
24601	parent       string
24602	urlParams_   gensupport.URLParams
24603	ifNoneMatch_ string
24604	ctx_         context.Context
24605	header_      http.Header
24606}
24607
24608// List: Returns the list of all session entity types in the specified
24609// session. This method doesn't work with Google Assistant integration.
24610// Contact Dialogflow support if you need to use session entities with
24611// Google Assistant integration.
24612//
24613// - parent: The session to list all session entity types from.
24614//   Supported formats: - `projects//agent/sessions/, -
24615//   `projects//locations//agent/sessions/`, -
24616//   `projects//agent/environments//users//sessions/`, -
24617//   `projects//locations//agent/environments//users//sessions/`, If
24618//   `Location ID` is not specified we assume default 'us' location. If
24619//   `Environment ID` is not specified, we assume default 'draft'
24620//   environment. If `User ID` is not specified, we assume default '-'
24621//   user.
24622func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24623	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24624	c.parent = parent
24625	return c
24626}
24627
24628// PageSize sets the optional parameter "pageSize": The maximum number
24629// of items to return in a single page. By default 100 and at most 1000.
24630func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24631	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24632	return c
24633}
24634
24635// PageToken sets the optional parameter "pageToken": The
24636// next_page_token value returned from a previous list request.
24637func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24638	c.urlParams_.Set("pageToken", pageToken)
24639	return c
24640}
24641
24642// Fields allows partial responses to be retrieved. See
24643// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24644// for more information.
24645func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24646	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24647	return c
24648}
24649
24650// IfNoneMatch sets the optional parameter which makes the operation
24651// fail if the object's ETag matches the given value. This is useful for
24652// getting updates only after the object has changed since the last
24653// request. Use googleapi.IsNotModified to check whether the response
24654// error from Do is the result of In-None-Match.
24655func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24656	c.ifNoneMatch_ = entityTag
24657	return c
24658}
24659
24660// Context sets the context to be used in this call's Do method. Any
24661// pending HTTP request will be aborted if the provided context is
24662// canceled.
24663func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24664	c.ctx_ = ctx
24665	return c
24666}
24667
24668// Header returns an http.Header that can be modified by the caller to
24669// add HTTP headers to the request.
24670func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
24671	if c.header_ == nil {
24672		c.header_ = make(http.Header)
24673	}
24674	return c.header_
24675}
24676
24677func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
24678	reqHeaders := make(http.Header)
24679	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24680	for k, v := range c.header_ {
24681		reqHeaders[k] = v
24682	}
24683	reqHeaders.Set("User-Agent", c.s.userAgent())
24684	if c.ifNoneMatch_ != "" {
24685		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24686	}
24687	var body io.Reader = nil
24688	c.urlParams_.Set("alt", alt)
24689	c.urlParams_.Set("prettyPrint", "false")
24690	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
24691	urls += "?" + c.urlParams_.Encode()
24692	req, err := http.NewRequest("GET", urls, body)
24693	if err != nil {
24694		return nil, err
24695	}
24696	req.Header = reqHeaders
24697	googleapi.Expand(req.URL, map[string]string{
24698		"parent": c.parent,
24699	})
24700	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24701}
24702
24703// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call.
24704// Exactly one of
24705// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
24706// will be non-nil. Any non-2xx status code is an error. Response
24707// headers are in either
24708// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
24709// onse.Header or (if a response was returned at all) in
24710// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24711// whether the returned error was because http.StatusNotModified was
24712// returned.
24713func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
24714	gensupport.SetOptions(c.urlParams_, opts...)
24715	res, err := c.doRequest("json")
24716	if res != nil && res.StatusCode == http.StatusNotModified {
24717		if res.Body != nil {
24718			res.Body.Close()
24719		}
24720		return nil, &googleapi.Error{
24721			Code:   res.StatusCode,
24722			Header: res.Header,
24723		}
24724	}
24725	if err != nil {
24726		return nil, err
24727	}
24728	defer googleapi.CloseBody(res)
24729	if err := googleapi.CheckResponse(res); err != nil {
24730		return nil, err
24731	}
24732	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
24733		ServerResponse: googleapi.ServerResponse{
24734			Header:         res.Header,
24735			HTTPStatusCode: res.StatusCode,
24736		},
24737	}
24738	target := &ret
24739	if err := gensupport.DecodeResponse(target, res); err != nil {
24740		return nil, err
24741	}
24742	return ret, nil
24743	// {
24744	//   "description": "Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
24745	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
24746	//   "httpMethod": "GET",
24747	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.list",
24748	//   "parameterOrder": [
24749	//     "parent"
24750	//   ],
24751	//   "parameters": {
24752	//     "pageSize": {
24753	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
24754	//       "format": "int32",
24755	//       "location": "query",
24756	//       "type": "integer"
24757	//     },
24758	//     "pageToken": {
24759	//       "description": "Optional. The next_page_token value returned from a previous list request.",
24760	//       "location": "query",
24761	//       "type": "string"
24762	//     },
24763	//     "parent": {
24764	//       "description": "Required. The session to list all session entity types from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
24765	//       "location": "path",
24766	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
24767	//       "required": true,
24768	//       "type": "string"
24769	//     }
24770	//   },
24771	//   "path": "v2beta1/{+parent}/entityTypes",
24772	//   "response": {
24773	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
24774	//   },
24775	//   "scopes": [
24776	//     "https://www.googleapis.com/auth/cloud-platform",
24777	//     "https://www.googleapis.com/auth/dialogflow"
24778	//   ]
24779	// }
24780
24781}
24782
24783// Pages invokes f for each page of results.
24784// A non-nil error returned from f will halt the iteration.
24785// The provided context supersedes any context provided to the Context method.
24786func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
24787	c.ctx_ = ctx
24788	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
24789	for {
24790		x, err := c.Do()
24791		if err != nil {
24792			return err
24793		}
24794		if err := f(x); err != nil {
24795			return err
24796		}
24797		if x.NextPageToken == "" {
24798			return nil
24799		}
24800		c.PageToken(x.NextPageToken)
24801	}
24802}
24803
24804// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch":
24805
24806type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
24807	s                                             *Service
24808	nameid                                        string
24809	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
24810	urlParams_                                    gensupport.URLParams
24811	ctx_                                          context.Context
24812	header_                                       http.Header
24813}
24814
24815// Patch: Updates the specified session entity type. This method doesn't
24816// work with Google Assistant integration. Contact Dialogflow support if
24817// you need to use session entities with Google Assistant integration.
24818//
24819// - name: The unique identifier of this session entity type. Supported
24820//   formats: - `projects//agent/sessions//entityTypes/` -
24821//   `projects//locations//agent/sessions//entityTypes/` -
24822//   `projects//agent/environments//users//sessions//entityTypes/` -
24823//   `projects//locations//agent/environments/
24824//   /users//sessions//entityTypes/` If `Location ID` is not specified
24825//   we assume default 'us' location. If `Environment ID` is not
24826//   specified, we assume default 'draft' environment. If `User ID` is
24827//   not specified, we assume default '-' user. `` must be the display
24828//   name of an existing entity type in the same agent that will be
24829//   overridden or supplemented.
24830func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24831	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24832	c.nameid = nameid
24833	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
24834	return c
24835}
24836
24837// UpdateMask sets the optional parameter "updateMask": The mask to
24838// control which fields get updated.
24839func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24840	c.urlParams_.Set("updateMask", updateMask)
24841	return c
24842}
24843
24844// Fields allows partial responses to be retrieved. See
24845// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24846// for more information.
24847func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24848	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24849	return c
24850}
24851
24852// Context sets the context to be used in this call's Do method. Any
24853// pending HTTP request will be aborted if the provided context is
24854// canceled.
24855func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24856	c.ctx_ = ctx
24857	return c
24858}
24859
24860// Header returns an http.Header that can be modified by the caller to
24861// add HTTP headers to the request.
24862func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
24863	if c.header_ == nil {
24864		c.header_ = make(http.Header)
24865	}
24866	return c.header_
24867}
24868
24869func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
24870	reqHeaders := make(http.Header)
24871	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24872	for k, v := range c.header_ {
24873		reqHeaders[k] = v
24874	}
24875	reqHeaders.Set("User-Agent", c.s.userAgent())
24876	var body io.Reader = nil
24877	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
24878	if err != nil {
24879		return nil, err
24880	}
24881	reqHeaders.Set("Content-Type", "application/json")
24882	c.urlParams_.Set("alt", alt)
24883	c.urlParams_.Set("prettyPrint", "false")
24884	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24885	urls += "?" + c.urlParams_.Encode()
24886	req, err := http.NewRequest("PATCH", urls, body)
24887	if err != nil {
24888		return nil, err
24889	}
24890	req.Header = reqHeaders
24891	googleapi.Expand(req.URL, map[string]string{
24892		"name": c.nameid,
24893	})
24894	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24895}
24896
24897// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call.
24898// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
24899// error will be non-nil. Any non-2xx status code is an error. Response
24900// headers are in either
24901// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
24902// or (if a response was returned at all) in
24903// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24904// whether the returned error was because http.StatusNotModified was
24905// returned.
24906func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
24907	gensupport.SetOptions(c.urlParams_, opts...)
24908	res, err := c.doRequest("json")
24909	if res != nil && res.StatusCode == http.StatusNotModified {
24910		if res.Body != nil {
24911			res.Body.Close()
24912		}
24913		return nil, &googleapi.Error{
24914			Code:   res.StatusCode,
24915			Header: res.Header,
24916		}
24917	}
24918	if err != nil {
24919		return nil, err
24920	}
24921	defer googleapi.CloseBody(res)
24922	if err := googleapi.CheckResponse(res); err != nil {
24923		return nil, err
24924	}
24925	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
24926		ServerResponse: googleapi.ServerResponse{
24927			Header:         res.Header,
24928			HTTPStatusCode: res.StatusCode,
24929		},
24930	}
24931	target := &ret
24932	if err := gensupport.DecodeResponse(target, res); err != nil {
24933		return nil, err
24934	}
24935	return ret, nil
24936	// {
24937	//   "description": "Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
24938	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
24939	//   "httpMethod": "PATCH",
24940	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch",
24941	//   "parameterOrder": [
24942	//     "name"
24943	//   ],
24944	//   "parameters": {
24945	//     "name": {
24946	//       "description": "Required. The unique identifier of this session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.",
24947	//       "location": "path",
24948	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
24949	//       "required": true,
24950	//       "type": "string"
24951	//     },
24952	//     "updateMask": {
24953	//       "description": "Optional. The mask to control which fields get updated.",
24954	//       "format": "google-fieldmask",
24955	//       "location": "query",
24956	//       "type": "string"
24957	//     }
24958	//   },
24959	//   "path": "v2beta1/{+name}",
24960	//   "request": {
24961	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24962	//   },
24963	//   "response": {
24964	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24965	//   },
24966	//   "scopes": [
24967	//     "https://www.googleapis.com/auth/cloud-platform",
24968	//     "https://www.googleapis.com/auth/dialogflow"
24969	//   ]
24970	// }
24971
24972}
24973
24974// method id "dialogflow.projects.agent.intents.batchDelete":
24975
24976type ProjectsAgentIntentsBatchDeleteCall struct {
24977	s                                                     *Service
24978	parent                                                string
24979	googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
24980	urlParams_                                            gensupport.URLParams
24981	ctx_                                                  context.Context
24982	header_                                               http.Header
24983}
24984
24985// BatchDelete: Deletes intents in the specified agent. Note: You should
24986// always train an agent prior to sending it queries. See the training
24987// documentation (https://cloud.google.com/dialogflow/es/docs/training).
24988//
24989// - parent: The name of the agent to delete all entities types for.
24990//   Supported formats: - `projects//agent` -
24991//   `projects//locations//agent`.
24992func (r *ProjectsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall {
24993	c := &ProjectsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24994	c.parent = parent
24995	c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
24996	return c
24997}
24998
24999// Fields allows partial responses to be retrieved. See
25000// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25001// for more information.
25002func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall {
25003	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25004	return c
25005}
25006
25007// Context sets the context to be used in this call's Do method. Any
25008// pending HTTP request will be aborted if the provided context is
25009// canceled.
25010func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall {
25011	c.ctx_ = ctx
25012	return c
25013}
25014
25015// Header returns an http.Header that can be modified by the caller to
25016// add HTTP headers to the request.
25017func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header {
25018	if c.header_ == nil {
25019		c.header_ = make(http.Header)
25020	}
25021	return c.header_
25022}
25023
25024func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
25025	reqHeaders := make(http.Header)
25026	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25027	for k, v := range c.header_ {
25028		reqHeaders[k] = v
25029	}
25030	reqHeaders.Set("User-Agent", c.s.userAgent())
25031	var body io.Reader = nil
25032	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
25033	if err != nil {
25034		return nil, err
25035	}
25036	reqHeaders.Set("Content-Type", "application/json")
25037	c.urlParams_.Set("alt", alt)
25038	c.urlParams_.Set("prettyPrint", "false")
25039	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
25040	urls += "?" + c.urlParams_.Encode()
25041	req, err := http.NewRequest("POST", urls, body)
25042	if err != nil {
25043		return nil, err
25044	}
25045	req.Header = reqHeaders
25046	googleapi.Expand(req.URL, map[string]string{
25047		"parent": c.parent,
25048	})
25049	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25050}
25051
25052// Do executes the "dialogflow.projects.agent.intents.batchDelete" call.
25053// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
25054// Any non-2xx status code is an error. Response headers are in either
25055// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
25056// was returned at all) in error.(*googleapi.Error).Header. Use
25057// googleapi.IsNotModified to check whether the returned error was
25058// because http.StatusNotModified was returned.
25059func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25060	gensupport.SetOptions(c.urlParams_, opts...)
25061	res, err := c.doRequest("json")
25062	if res != nil && res.StatusCode == http.StatusNotModified {
25063		if res.Body != nil {
25064			res.Body.Close()
25065		}
25066		return nil, &googleapi.Error{
25067			Code:   res.StatusCode,
25068			Header: res.Header,
25069		}
25070	}
25071	if err != nil {
25072		return nil, err
25073	}
25074	defer googleapi.CloseBody(res)
25075	if err := googleapi.CheckResponse(res); err != nil {
25076		return nil, err
25077	}
25078	ret := &GoogleLongrunningOperation{
25079		ServerResponse: googleapi.ServerResponse{
25080			Header:         res.Header,
25081			HTTPStatusCode: res.StatusCode,
25082		},
25083	}
25084	target := &ret
25085	if err := gensupport.DecodeResponse(target, res); err != nil {
25086		return nil, err
25087	}
25088	return ret, nil
25089	// {
25090	//   "description": "Deletes intents in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
25091	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents:batchDelete",
25092	//   "httpMethod": "POST",
25093	//   "id": "dialogflow.projects.agent.intents.batchDelete",
25094	//   "parameterOrder": [
25095	//     "parent"
25096	//   ],
25097	//   "parameters": {
25098	//     "parent": {
25099	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent`",
25100	//       "location": "path",
25101	//       "pattern": "^projects/[^/]+/agent$",
25102	//       "required": true,
25103	//       "type": "string"
25104	//     }
25105	//   },
25106	//   "path": "v2beta1/{+parent}/intents:batchDelete",
25107	//   "request": {
25108	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest"
25109	//   },
25110	//   "response": {
25111	//     "$ref": "GoogleLongrunningOperation"
25112	//   },
25113	//   "scopes": [
25114	//     "https://www.googleapis.com/auth/cloud-platform",
25115	//     "https://www.googleapis.com/auth/dialogflow"
25116	//   ]
25117	// }
25118
25119}
25120
25121// method id "dialogflow.projects.agent.intents.batchUpdate":
25122
25123type ProjectsAgentIntentsBatchUpdateCall struct {
25124	s                                                     *Service
25125	parent                                                string
25126	googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
25127	urlParams_                                            gensupport.URLParams
25128	ctx_                                                  context.Context
25129	header_                                               http.Header
25130}
25131
25132// BatchUpdate: Updates/Creates multiple intents in the specified agent.
25133// Note: You should always train an agent prior to sending it queries.
25134// See the training documentation
25135// (https://cloud.google.com/dialogflow/es/docs/training).
25136//
25137// - parent: The name of the agent to update or create intents in.
25138//   Supported formats: - `projects//agent` -
25139//   `projects//locations//agent`.
25140func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall {
25141	c := &ProjectsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25142	c.parent = parent
25143	c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
25144	return c
25145}
25146
25147// Fields allows partial responses to be retrieved. See
25148// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25149// for more information.
25150func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall {
25151	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25152	return c
25153}
25154
25155// Context sets the context to be used in this call's Do method. Any
25156// pending HTTP request will be aborted if the provided context is
25157// canceled.
25158func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall {
25159	c.ctx_ = ctx
25160	return c
25161}
25162
25163// Header returns an http.Header that can be modified by the caller to
25164// add HTTP headers to the request.
25165func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header {
25166	if c.header_ == nil {
25167		c.header_ = make(http.Header)
25168	}
25169	return c.header_
25170}
25171
25172func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
25173	reqHeaders := make(http.Header)
25174	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25175	for k, v := range c.header_ {
25176		reqHeaders[k] = v
25177	}
25178	reqHeaders.Set("User-Agent", c.s.userAgent())
25179	var body io.Reader = nil
25180	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
25181	if err != nil {
25182		return nil, err
25183	}
25184	reqHeaders.Set("Content-Type", "application/json")
25185	c.urlParams_.Set("alt", alt)
25186	c.urlParams_.Set("prettyPrint", "false")
25187	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
25188	urls += "?" + c.urlParams_.Encode()
25189	req, err := http.NewRequest("POST", urls, body)
25190	if err != nil {
25191		return nil, err
25192	}
25193	req.Header = reqHeaders
25194	googleapi.Expand(req.URL, map[string]string{
25195		"parent": c.parent,
25196	})
25197	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25198}
25199
25200// Do executes the "dialogflow.projects.agent.intents.batchUpdate" call.
25201// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
25202// Any non-2xx status code is an error. Response headers are in either
25203// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
25204// was returned at all) in error.(*googleapi.Error).Header. Use
25205// googleapi.IsNotModified to check whether the returned error was
25206// because http.StatusNotModified was returned.
25207func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25208	gensupport.SetOptions(c.urlParams_, opts...)
25209	res, err := c.doRequest("json")
25210	if res != nil && res.StatusCode == http.StatusNotModified {
25211		if res.Body != nil {
25212			res.Body.Close()
25213		}
25214		return nil, &googleapi.Error{
25215			Code:   res.StatusCode,
25216			Header: res.Header,
25217		}
25218	}
25219	if err != nil {
25220		return nil, err
25221	}
25222	defer googleapi.CloseBody(res)
25223	if err := googleapi.CheckResponse(res); err != nil {
25224		return nil, err
25225	}
25226	ret := &GoogleLongrunningOperation{
25227		ServerResponse: googleapi.ServerResponse{
25228			Header:         res.Header,
25229			HTTPStatusCode: res.StatusCode,
25230		},
25231	}
25232	target := &ret
25233	if err := gensupport.DecodeResponse(target, res); err != nil {
25234		return nil, err
25235	}
25236	return ret, nil
25237	// {
25238	//   "description": "Updates/Creates multiple intents in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
25239	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents:batchUpdate",
25240	//   "httpMethod": "POST",
25241	//   "id": "dialogflow.projects.agent.intents.batchUpdate",
25242	//   "parameterOrder": [
25243	//     "parent"
25244	//   ],
25245	//   "parameters": {
25246	//     "parent": {
25247	//       "description": "Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent`",
25248	//       "location": "path",
25249	//       "pattern": "^projects/[^/]+/agent$",
25250	//       "required": true,
25251	//       "type": "string"
25252	//     }
25253	//   },
25254	//   "path": "v2beta1/{+parent}/intents:batchUpdate",
25255	//   "request": {
25256	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest"
25257	//   },
25258	//   "response": {
25259	//     "$ref": "GoogleLongrunningOperation"
25260	//   },
25261	//   "scopes": [
25262	//     "https://www.googleapis.com/auth/cloud-platform",
25263	//     "https://www.googleapis.com/auth/dialogflow"
25264	//   ]
25265	// }
25266
25267}
25268
25269// method id "dialogflow.projects.agent.intents.create":
25270
25271type ProjectsAgentIntentsCreateCall struct {
25272	s                                  *Service
25273	parent                             string
25274	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
25275	urlParams_                         gensupport.URLParams
25276	ctx_                               context.Context
25277	header_                            http.Header
25278}
25279
25280// Create: Creates an intent in the specified agent. Note: You should
25281// always train an agent prior to sending it queries. See the training
25282// documentation (https://cloud.google.com/dialogflow/es/docs/training).
25283//
25284// - parent: The agent to create a intent for. Supported formats: -
25285//   `projects//agent` - `projects//locations//agent`.
25286func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsCreateCall {
25287	c := &ProjectsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25288	c.parent = parent
25289	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
25290	return c
25291}
25292
25293// IntentView sets the optional parameter "intentView": The resource
25294// view to apply to the returned intent.
25295//
25296// Possible values:
25297//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
25298// in the response.
25299//   "INTENT_VIEW_FULL" - All fields are populated.
25300func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall {
25301	c.urlParams_.Set("intentView", intentView)
25302	return c
25303}
25304
25305// LanguageCode sets the optional parameter "languageCode": The language
25306// used to access language-specific data. If not specified, the agent's
25307// default language is used. For more information, see Multilingual
25308// intent and entity data
25309// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
25310func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall {
25311	c.urlParams_.Set("languageCode", languageCode)
25312	return c
25313}
25314
25315// Fields allows partial responses to be retrieved. See
25316// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25317// for more information.
25318func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall {
25319	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25320	return c
25321}
25322
25323// Context sets the context to be used in this call's Do method. Any
25324// pending HTTP request will be aborted if the provided context is
25325// canceled.
25326func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall {
25327	c.ctx_ = ctx
25328	return c
25329}
25330
25331// Header returns an http.Header that can be modified by the caller to
25332// add HTTP headers to the request.
25333func (c *ProjectsAgentIntentsCreateCall) Header() http.Header {
25334	if c.header_ == nil {
25335		c.header_ = make(http.Header)
25336	}
25337	return c.header_
25338}
25339
25340func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
25341	reqHeaders := make(http.Header)
25342	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25343	for k, v := range c.header_ {
25344		reqHeaders[k] = v
25345	}
25346	reqHeaders.Set("User-Agent", c.s.userAgent())
25347	var body io.Reader = nil
25348	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
25349	if err != nil {
25350		return nil, err
25351	}
25352	reqHeaders.Set("Content-Type", "application/json")
25353	c.urlParams_.Set("alt", alt)
25354	c.urlParams_.Set("prettyPrint", "false")
25355	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
25356	urls += "?" + c.urlParams_.Encode()
25357	req, err := http.NewRequest("POST", urls, body)
25358	if err != nil {
25359		return nil, err
25360	}
25361	req.Header = reqHeaders
25362	googleapi.Expand(req.URL, map[string]string{
25363		"parent": c.parent,
25364	})
25365	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25366}
25367
25368// Do executes the "dialogflow.projects.agent.intents.create" call.
25369// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
25370// non-nil. Any non-2xx status code is an error. Response headers are in
25371// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
25372// (if a response was returned at all) in
25373// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25374// whether the returned error was because http.StatusNotModified was
25375// returned.
25376func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
25377	gensupport.SetOptions(c.urlParams_, opts...)
25378	res, err := c.doRequest("json")
25379	if res != nil && res.StatusCode == http.StatusNotModified {
25380		if res.Body != nil {
25381			res.Body.Close()
25382		}
25383		return nil, &googleapi.Error{
25384			Code:   res.StatusCode,
25385			Header: res.Header,
25386		}
25387	}
25388	if err != nil {
25389		return nil, err
25390	}
25391	defer googleapi.CloseBody(res)
25392	if err := googleapi.CheckResponse(res); err != nil {
25393		return nil, err
25394	}
25395	ret := &GoogleCloudDialogflowV2beta1Intent{
25396		ServerResponse: googleapi.ServerResponse{
25397			Header:         res.Header,
25398			HTTPStatusCode: res.StatusCode,
25399		},
25400	}
25401	target := &ret
25402	if err := gensupport.DecodeResponse(target, res); err != nil {
25403		return nil, err
25404	}
25405	return ret, nil
25406	// {
25407	//   "description": "Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
25408	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents",
25409	//   "httpMethod": "POST",
25410	//   "id": "dialogflow.projects.agent.intents.create",
25411	//   "parameterOrder": [
25412	//     "parent"
25413	//   ],
25414	//   "parameters": {
25415	//     "intentView": {
25416	//       "description": "Optional. The resource view to apply to the returned intent.",
25417	//       "enum": [
25418	//         "INTENT_VIEW_UNSPECIFIED",
25419	//         "INTENT_VIEW_FULL"
25420	//       ],
25421	//       "enumDescriptions": [
25422	//         "Training phrases field is not populated in the response.",
25423	//         "All fields are populated."
25424	//       ],
25425	//       "location": "query",
25426	//       "type": "string"
25427	//     },
25428	//     "languageCode": {
25429	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
25430	//       "location": "query",
25431	//       "type": "string"
25432	//     },
25433	//     "parent": {
25434	//       "description": "Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent`",
25435	//       "location": "path",
25436	//       "pattern": "^projects/[^/]+/agent$",
25437	//       "required": true,
25438	//       "type": "string"
25439	//     }
25440	//   },
25441	//   "path": "v2beta1/{+parent}/intents",
25442	//   "request": {
25443	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25444	//   },
25445	//   "response": {
25446	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25447	//   },
25448	//   "scopes": [
25449	//     "https://www.googleapis.com/auth/cloud-platform",
25450	//     "https://www.googleapis.com/auth/dialogflow"
25451	//   ]
25452	// }
25453
25454}
25455
25456// method id "dialogflow.projects.agent.intents.delete":
25457
25458type ProjectsAgentIntentsDeleteCall struct {
25459	s          *Service
25460	name       string
25461	urlParams_ gensupport.URLParams
25462	ctx_       context.Context
25463	header_    http.Header
25464}
25465
25466// Delete: Deletes the specified intent and its direct or indirect
25467// followup intents. Note: You should always train an agent prior to
25468// sending it queries. See the training documentation
25469// (https://cloud.google.com/dialogflow/es/docs/training).
25470//
25471// - name: The name of the intent to delete. If this intent has direct
25472//   or indirect followup intents, we also delete them. Supported
25473//   formats: - `projects//agent/intents/` -
25474//   `projects//locations//agent/intents/`.
25475func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall {
25476	c := &ProjectsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25477	c.name = name
25478	return c
25479}
25480
25481// Fields allows partial responses to be retrieved. See
25482// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25483// for more information.
25484func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall {
25485	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25486	return c
25487}
25488
25489// Context sets the context to be used in this call's Do method. Any
25490// pending HTTP request will be aborted if the provided context is
25491// canceled.
25492func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall {
25493	c.ctx_ = ctx
25494	return c
25495}
25496
25497// Header returns an http.Header that can be modified by the caller to
25498// add HTTP headers to the request.
25499func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header {
25500	if c.header_ == nil {
25501		c.header_ = make(http.Header)
25502	}
25503	return c.header_
25504}
25505
25506func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25507	reqHeaders := make(http.Header)
25508	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25509	for k, v := range c.header_ {
25510		reqHeaders[k] = v
25511	}
25512	reqHeaders.Set("User-Agent", c.s.userAgent())
25513	var body io.Reader = nil
25514	c.urlParams_.Set("alt", alt)
25515	c.urlParams_.Set("prettyPrint", "false")
25516	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25517	urls += "?" + c.urlParams_.Encode()
25518	req, err := http.NewRequest("DELETE", urls, body)
25519	if err != nil {
25520		return nil, err
25521	}
25522	req.Header = reqHeaders
25523	googleapi.Expand(req.URL, map[string]string{
25524		"name": c.name,
25525	})
25526	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25527}
25528
25529// Do executes the "dialogflow.projects.agent.intents.delete" call.
25530// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
25531// non-2xx status code is an error. Response headers are in either
25532// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
25533// returned at all) in error.(*googleapi.Error).Header. Use
25534// googleapi.IsNotModified to check whether the returned error was
25535// because http.StatusNotModified was returned.
25536func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25537	gensupport.SetOptions(c.urlParams_, opts...)
25538	res, err := c.doRequest("json")
25539	if res != nil && res.StatusCode == http.StatusNotModified {
25540		if res.Body != nil {
25541			res.Body.Close()
25542		}
25543		return nil, &googleapi.Error{
25544			Code:   res.StatusCode,
25545			Header: res.Header,
25546		}
25547	}
25548	if err != nil {
25549		return nil, err
25550	}
25551	defer googleapi.CloseBody(res)
25552	if err := googleapi.CheckResponse(res); err != nil {
25553		return nil, err
25554	}
25555	ret := &GoogleProtobufEmpty{
25556		ServerResponse: googleapi.ServerResponse{
25557			Header:         res.Header,
25558			HTTPStatusCode: res.StatusCode,
25559		},
25560	}
25561	target := &ret
25562	if err := gensupport.DecodeResponse(target, res); err != nil {
25563		return nil, err
25564	}
25565	return ret, nil
25566	// {
25567	//   "description": "Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
25568	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents/{intentsId}",
25569	//   "httpMethod": "DELETE",
25570	//   "id": "dialogflow.projects.agent.intents.delete",
25571	//   "parameterOrder": [
25572	//     "name"
25573	//   ],
25574	//   "parameters": {
25575	//     "name": {
25576	//       "description": "Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
25577	//       "location": "path",
25578	//       "pattern": "^projects/[^/]+/agent/intents/[^/]+$",
25579	//       "required": true,
25580	//       "type": "string"
25581	//     }
25582	//   },
25583	//   "path": "v2beta1/{+name}",
25584	//   "response": {
25585	//     "$ref": "GoogleProtobufEmpty"
25586	//   },
25587	//   "scopes": [
25588	//     "https://www.googleapis.com/auth/cloud-platform",
25589	//     "https://www.googleapis.com/auth/dialogflow"
25590	//   ]
25591	// }
25592
25593}
25594
25595// method id "dialogflow.projects.agent.intents.get":
25596
25597type ProjectsAgentIntentsGetCall struct {
25598	s            *Service
25599	name         string
25600	urlParams_   gensupport.URLParams
25601	ifNoneMatch_ string
25602	ctx_         context.Context
25603	header_      http.Header
25604}
25605
25606// Get: Retrieves the specified intent.
25607//
25608// - name: The name of the intent. Supported formats: -
25609//   `projects//agent/intents/` - `projects//locations//agent/intents/`.
25610func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall {
25611	c := &ProjectsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25612	c.name = name
25613	return c
25614}
25615
25616// IntentView sets the optional parameter "intentView": The resource
25617// view to apply to the returned intent.
25618//
25619// Possible values:
25620//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
25621// in the response.
25622//   "INTENT_VIEW_FULL" - All fields are populated.
25623func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall {
25624	c.urlParams_.Set("intentView", intentView)
25625	return c
25626}
25627
25628// LanguageCode sets the optional parameter "languageCode": The language
25629// used to access language-specific data. If not specified, the agent's
25630// default language is used. For more information, see Multilingual
25631// intent and entity data
25632// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
25633func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall {
25634	c.urlParams_.Set("languageCode", languageCode)
25635	return c
25636}
25637
25638// Fields allows partial responses to be retrieved. See
25639// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25640// for more information.
25641func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall {
25642	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25643	return c
25644}
25645
25646// IfNoneMatch sets the optional parameter which makes the operation
25647// fail if the object's ETag matches the given value. This is useful for
25648// getting updates only after the object has changed since the last
25649// request. Use googleapi.IsNotModified to check whether the response
25650// error from Do is the result of In-None-Match.
25651func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall {
25652	c.ifNoneMatch_ = entityTag
25653	return c
25654}
25655
25656// Context sets the context to be used in this call's Do method. Any
25657// pending HTTP request will be aborted if the provided context is
25658// canceled.
25659func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall {
25660	c.ctx_ = ctx
25661	return c
25662}
25663
25664// Header returns an http.Header that can be modified by the caller to
25665// add HTTP headers to the request.
25666func (c *ProjectsAgentIntentsGetCall) Header() http.Header {
25667	if c.header_ == nil {
25668		c.header_ = make(http.Header)
25669	}
25670	return c.header_
25671}
25672
25673func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
25674	reqHeaders := make(http.Header)
25675	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25676	for k, v := range c.header_ {
25677		reqHeaders[k] = v
25678	}
25679	reqHeaders.Set("User-Agent", c.s.userAgent())
25680	if c.ifNoneMatch_ != "" {
25681		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25682	}
25683	var body io.Reader = nil
25684	c.urlParams_.Set("alt", alt)
25685	c.urlParams_.Set("prettyPrint", "false")
25686	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25687	urls += "?" + c.urlParams_.Encode()
25688	req, err := http.NewRequest("GET", urls, body)
25689	if err != nil {
25690		return nil, err
25691	}
25692	req.Header = reqHeaders
25693	googleapi.Expand(req.URL, map[string]string{
25694		"name": c.name,
25695	})
25696	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25697}
25698
25699// Do executes the "dialogflow.projects.agent.intents.get" call.
25700// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
25701// non-nil. Any non-2xx status code is an error. Response headers are in
25702// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
25703// (if a response was returned at all) in
25704// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25705// whether the returned error was because http.StatusNotModified was
25706// returned.
25707func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
25708	gensupport.SetOptions(c.urlParams_, opts...)
25709	res, err := c.doRequest("json")
25710	if res != nil && res.StatusCode == http.StatusNotModified {
25711		if res.Body != nil {
25712			res.Body.Close()
25713		}
25714		return nil, &googleapi.Error{
25715			Code:   res.StatusCode,
25716			Header: res.Header,
25717		}
25718	}
25719	if err != nil {
25720		return nil, err
25721	}
25722	defer googleapi.CloseBody(res)
25723	if err := googleapi.CheckResponse(res); err != nil {
25724		return nil, err
25725	}
25726	ret := &GoogleCloudDialogflowV2beta1Intent{
25727		ServerResponse: googleapi.ServerResponse{
25728			Header:         res.Header,
25729			HTTPStatusCode: res.StatusCode,
25730		},
25731	}
25732	target := &ret
25733	if err := gensupport.DecodeResponse(target, res); err != nil {
25734		return nil, err
25735	}
25736	return ret, nil
25737	// {
25738	//   "description": "Retrieves the specified intent.",
25739	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents/{intentsId}",
25740	//   "httpMethod": "GET",
25741	//   "id": "dialogflow.projects.agent.intents.get",
25742	//   "parameterOrder": [
25743	//     "name"
25744	//   ],
25745	//   "parameters": {
25746	//     "intentView": {
25747	//       "description": "Optional. The resource view to apply to the returned intent.",
25748	//       "enum": [
25749	//         "INTENT_VIEW_UNSPECIFIED",
25750	//         "INTENT_VIEW_FULL"
25751	//       ],
25752	//       "enumDescriptions": [
25753	//         "Training phrases field is not populated in the response.",
25754	//         "All fields are populated."
25755	//       ],
25756	//       "location": "query",
25757	//       "type": "string"
25758	//     },
25759	//     "languageCode": {
25760	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
25761	//       "location": "query",
25762	//       "type": "string"
25763	//     },
25764	//     "name": {
25765	//       "description": "Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
25766	//       "location": "path",
25767	//       "pattern": "^projects/[^/]+/agent/intents/[^/]+$",
25768	//       "required": true,
25769	//       "type": "string"
25770	//     }
25771	//   },
25772	//   "path": "v2beta1/{+name}",
25773	//   "response": {
25774	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25775	//   },
25776	//   "scopes": [
25777	//     "https://www.googleapis.com/auth/cloud-platform",
25778	//     "https://www.googleapis.com/auth/dialogflow"
25779	//   ]
25780	// }
25781
25782}
25783
25784// method id "dialogflow.projects.agent.intents.list":
25785
25786type ProjectsAgentIntentsListCall struct {
25787	s            *Service
25788	parent       string
25789	urlParams_   gensupport.URLParams
25790	ifNoneMatch_ string
25791	ctx_         context.Context
25792	header_      http.Header
25793}
25794
25795// List: Returns the list of all intents in the specified agent.
25796//
25797// - parent: The agent to list all intents from. Format:
25798//   `projects//agent` or `projects//locations//agent`. Alternatively,
25799//   you can specify the environment to list intents for. Format:
25800//   `projects//agent/environments/` or
25801//   `projects//locations//agent/environments/`. Note: training phrases
25802//   of the intents will not be returned for non-draft environment.
25803func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall {
25804	c := &ProjectsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25805	c.parent = parent
25806	return c
25807}
25808
25809// IntentView sets the optional parameter "intentView": The resource
25810// view to apply to the returned intent.
25811//
25812// Possible values:
25813//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
25814// in the response.
25815//   "INTENT_VIEW_FULL" - All fields are populated.
25816func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall {
25817	c.urlParams_.Set("intentView", intentView)
25818	return c
25819}
25820
25821// LanguageCode sets the optional parameter "languageCode": The language
25822// used to access language-specific data. If not specified, the agent's
25823// default language is used. For more information, see Multilingual
25824// intent and entity data
25825// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
25826func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall {
25827	c.urlParams_.Set("languageCode", languageCode)
25828	return c
25829}
25830
25831// PageSize sets the optional parameter "pageSize": The maximum number
25832// of items to return in a single page. By default 100 and at most 1000.
25833func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall {
25834	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25835	return c
25836}
25837
25838// PageToken sets the optional parameter "pageToken": The
25839// next_page_token value returned from a previous list request.
25840func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall {
25841	c.urlParams_.Set("pageToken", pageToken)
25842	return c
25843}
25844
25845// Fields allows partial responses to be retrieved. See
25846// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25847// for more information.
25848func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall {
25849	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25850	return c
25851}
25852
25853// IfNoneMatch sets the optional parameter which makes the operation
25854// fail if the object's ETag matches the given value. This is useful for
25855// getting updates only after the object has changed since the last
25856// request. Use googleapi.IsNotModified to check whether the response
25857// error from Do is the result of In-None-Match.
25858func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall {
25859	c.ifNoneMatch_ = entityTag
25860	return c
25861}
25862
25863// Context sets the context to be used in this call's Do method. Any
25864// pending HTTP request will be aborted if the provided context is
25865// canceled.
25866func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall {
25867	c.ctx_ = ctx
25868	return c
25869}
25870
25871// Header returns an http.Header that can be modified by the caller to
25872// add HTTP headers to the request.
25873func (c *ProjectsAgentIntentsListCall) Header() http.Header {
25874	if c.header_ == nil {
25875		c.header_ = make(http.Header)
25876	}
25877	return c.header_
25878}
25879
25880func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
25881	reqHeaders := make(http.Header)
25882	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25883	for k, v := range c.header_ {
25884		reqHeaders[k] = v
25885	}
25886	reqHeaders.Set("User-Agent", c.s.userAgent())
25887	if c.ifNoneMatch_ != "" {
25888		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25889	}
25890	var body io.Reader = nil
25891	c.urlParams_.Set("alt", alt)
25892	c.urlParams_.Set("prettyPrint", "false")
25893	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
25894	urls += "?" + c.urlParams_.Encode()
25895	req, err := http.NewRequest("GET", urls, body)
25896	if err != nil {
25897		return nil, err
25898	}
25899	req.Header = reqHeaders
25900	googleapi.Expand(req.URL, map[string]string{
25901		"parent": c.parent,
25902	})
25903	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25904}
25905
25906// Do executes the "dialogflow.projects.agent.intents.list" call.
25907// Exactly one of *GoogleCloudDialogflowV2beta1ListIntentsResponse or
25908// error will be non-nil. Any non-2xx status code is an error. Response
25909// headers are in either
25910// *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header
25911//  or (if a response was returned at all) in
25912// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25913// whether the returned error was because http.StatusNotModified was
25914// returned.
25915func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
25916	gensupport.SetOptions(c.urlParams_, opts...)
25917	res, err := c.doRequest("json")
25918	if res != nil && res.StatusCode == http.StatusNotModified {
25919		if res.Body != nil {
25920			res.Body.Close()
25921		}
25922		return nil, &googleapi.Error{
25923			Code:   res.StatusCode,
25924			Header: res.Header,
25925		}
25926	}
25927	if err != nil {
25928		return nil, err
25929	}
25930	defer googleapi.CloseBody(res)
25931	if err := googleapi.CheckResponse(res); err != nil {
25932		return nil, err
25933	}
25934	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
25935		ServerResponse: googleapi.ServerResponse{
25936			Header:         res.Header,
25937			HTTPStatusCode: res.StatusCode,
25938		},
25939	}
25940	target := &ret
25941	if err := gensupport.DecodeResponse(target, res); err != nil {
25942		return nil, err
25943	}
25944	return ret, nil
25945	// {
25946	//   "description": "Returns the list of all intents in the specified agent.",
25947	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents",
25948	//   "httpMethod": "GET",
25949	//   "id": "dialogflow.projects.agent.intents.list",
25950	//   "parameterOrder": [
25951	//     "parent"
25952	//   ],
25953	//   "parameters": {
25954	//     "intentView": {
25955	//       "description": "Optional. The resource view to apply to the returned intent.",
25956	//       "enum": [
25957	//         "INTENT_VIEW_UNSPECIFIED",
25958	//         "INTENT_VIEW_FULL"
25959	//       ],
25960	//       "enumDescriptions": [
25961	//         "Training phrases field is not populated in the response.",
25962	//         "All fields are populated."
25963	//       ],
25964	//       "location": "query",
25965	//       "type": "string"
25966	//     },
25967	//     "languageCode": {
25968	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
25969	//       "location": "query",
25970	//       "type": "string"
25971	//     },
25972	//     "pageSize": {
25973	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
25974	//       "format": "int32",
25975	//       "location": "query",
25976	//       "type": "integer"
25977	//     },
25978	//     "pageToken": {
25979	//       "description": "Optional. The next_page_token value returned from a previous list request.",
25980	//       "location": "query",
25981	//       "type": "string"
25982	//     },
25983	//     "parent": {
25984	//       "description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
25985	//       "location": "path",
25986	//       "pattern": "^projects/[^/]+/agent$",
25987	//       "required": true,
25988	//       "type": "string"
25989	//     }
25990	//   },
25991	//   "path": "v2beta1/{+parent}/intents",
25992	//   "response": {
25993	//     "$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
25994	//   },
25995	//   "scopes": [
25996	//     "https://www.googleapis.com/auth/cloud-platform",
25997	//     "https://www.googleapis.com/auth/dialogflow"
25998	//   ]
25999	// }
26000
26001}
26002
26003// Pages invokes f for each page of results.
26004// A non-nil error returned from f will halt the iteration.
26005// The provided context supersedes any context provided to the Context method.
26006func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
26007	c.ctx_ = ctx
26008	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
26009	for {
26010		x, err := c.Do()
26011		if err != nil {
26012			return err
26013		}
26014		if err := f(x); err != nil {
26015			return err
26016		}
26017		if x.NextPageToken == "" {
26018			return nil
26019		}
26020		c.PageToken(x.NextPageToken)
26021	}
26022}
26023
26024// method id "dialogflow.projects.agent.intents.patch":
26025
26026type ProjectsAgentIntentsPatchCall struct {
26027	s                                  *Service
26028	nameid                             string
26029	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
26030	urlParams_                         gensupport.URLParams
26031	ctx_                               context.Context
26032	header_                            http.Header
26033}
26034
26035// Patch: Updates the specified intent. Note: You should always train an
26036// agent prior to sending it queries. See the training documentation
26037// (https://cloud.google.com/dialogflow/es/docs/training).
26038//
26039// - name: Optional. The unique identifier of this intent. Required for
26040//   Intents.UpdateIntent and Intents.BatchUpdateIntents methods.
26041//   Supported formats: - `projects//agent/intents/` -
26042//   `projects//locations//agent/intents/`.
26043func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsPatchCall {
26044	c := &ProjectsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26045	c.nameid = nameid
26046	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
26047	return c
26048}
26049
26050// IntentView sets the optional parameter "intentView": The resource
26051// view to apply to the returned intent.
26052//
26053// Possible values:
26054//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
26055// in the response.
26056//   "INTENT_VIEW_FULL" - All fields are populated.
26057func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall {
26058	c.urlParams_.Set("intentView", intentView)
26059	return c
26060}
26061
26062// LanguageCode sets the optional parameter "languageCode": The language
26063// used to access language-specific data. If not specified, the agent's
26064// default language is used. For more information, see Multilingual
26065// intent and entity data
26066// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
26067func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall {
26068	c.urlParams_.Set("languageCode", languageCode)
26069	return c
26070}
26071
26072// UpdateMask sets the optional parameter "updateMask": The mask to
26073// control which fields get updated.
26074func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall {
26075	c.urlParams_.Set("updateMask", updateMask)
26076	return c
26077}
26078
26079// Fields allows partial responses to be retrieved. See
26080// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26081// for more information.
26082func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall {
26083	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26084	return c
26085}
26086
26087// Context sets the context to be used in this call's Do method. Any
26088// pending HTTP request will be aborted if the provided context is
26089// canceled.
26090func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall {
26091	c.ctx_ = ctx
26092	return c
26093}
26094
26095// Header returns an http.Header that can be modified by the caller to
26096// add HTTP headers to the request.
26097func (c *ProjectsAgentIntentsPatchCall) Header() http.Header {
26098	if c.header_ == nil {
26099		c.header_ = make(http.Header)
26100	}
26101	return c.header_
26102}
26103
26104func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
26105	reqHeaders := make(http.Header)
26106	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26107	for k, v := range c.header_ {
26108		reqHeaders[k] = v
26109	}
26110	reqHeaders.Set("User-Agent", c.s.userAgent())
26111	var body io.Reader = nil
26112	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
26113	if err != nil {
26114		return nil, err
26115	}
26116	reqHeaders.Set("Content-Type", "application/json")
26117	c.urlParams_.Set("alt", alt)
26118	c.urlParams_.Set("prettyPrint", "false")
26119	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26120	urls += "?" + c.urlParams_.Encode()
26121	req, err := http.NewRequest("PATCH", urls, body)
26122	if err != nil {
26123		return nil, err
26124	}
26125	req.Header = reqHeaders
26126	googleapi.Expand(req.URL, map[string]string{
26127		"name": c.nameid,
26128	})
26129	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26130}
26131
26132// Do executes the "dialogflow.projects.agent.intents.patch" call.
26133// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
26134// non-nil. Any non-2xx status code is an error. Response headers are in
26135// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
26136// (if a response was returned at all) in
26137// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26138// whether the returned error was because http.StatusNotModified was
26139// returned.
26140func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
26141	gensupport.SetOptions(c.urlParams_, opts...)
26142	res, err := c.doRequest("json")
26143	if res != nil && res.StatusCode == http.StatusNotModified {
26144		if res.Body != nil {
26145			res.Body.Close()
26146		}
26147		return nil, &googleapi.Error{
26148			Code:   res.StatusCode,
26149			Header: res.Header,
26150		}
26151	}
26152	if err != nil {
26153		return nil, err
26154	}
26155	defer googleapi.CloseBody(res)
26156	if err := googleapi.CheckResponse(res); err != nil {
26157		return nil, err
26158	}
26159	ret := &GoogleCloudDialogflowV2beta1Intent{
26160		ServerResponse: googleapi.ServerResponse{
26161			Header:         res.Header,
26162			HTTPStatusCode: res.StatusCode,
26163		},
26164	}
26165	target := &ret
26166	if err := gensupport.DecodeResponse(target, res); err != nil {
26167		return nil, err
26168	}
26169	return ret, nil
26170	// {
26171	//   "description": "Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
26172	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents/{intentsId}",
26173	//   "httpMethod": "PATCH",
26174	//   "id": "dialogflow.projects.agent.intents.patch",
26175	//   "parameterOrder": [
26176	//     "name"
26177	//   ],
26178	//   "parameters": {
26179	//     "intentView": {
26180	//       "description": "Optional. The resource view to apply to the returned intent.",
26181	//       "enum": [
26182	//         "INTENT_VIEW_UNSPECIFIED",
26183	//         "INTENT_VIEW_FULL"
26184	//       ],
26185	//       "enumDescriptions": [
26186	//         "Training phrases field is not populated in the response.",
26187	//         "All fields are populated."
26188	//       ],
26189	//       "location": "query",
26190	//       "type": "string"
26191	//     },
26192	//     "languageCode": {
26193	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
26194	//       "location": "query",
26195	//       "type": "string"
26196	//     },
26197	//     "name": {
26198	//       "description": "Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
26199	//       "location": "path",
26200	//       "pattern": "^projects/[^/]+/agent/intents/[^/]+$",
26201	//       "required": true,
26202	//       "type": "string"
26203	//     },
26204	//     "updateMask": {
26205	//       "description": "Optional. The mask to control which fields get updated.",
26206	//       "format": "google-fieldmask",
26207	//       "location": "query",
26208	//       "type": "string"
26209	//     }
26210	//   },
26211	//   "path": "v2beta1/{+name}",
26212	//   "request": {
26213	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
26214	//   },
26215	//   "response": {
26216	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
26217	//   },
26218	//   "scopes": [
26219	//     "https://www.googleapis.com/auth/cloud-platform",
26220	//     "https://www.googleapis.com/auth/dialogflow"
26221	//   ]
26222	// }
26223
26224}
26225
26226// method id "dialogflow.projects.agent.knowledgeBases.create":
26227
26228type ProjectsAgentKnowledgeBasesCreateCall struct {
26229	s                                         *Service
26230	parent                                    string
26231	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
26232	urlParams_                                gensupport.URLParams
26233	ctx_                                      context.Context
26234	header_                                   http.Header
26235}
26236
26237// Create: Creates a knowledge base. Note: The
26238// `projects.agent.knowledgeBases` resource is deprecated; only use
26239// `projects.knowledgeBases`.
26240//
26241// - parent: The project to create a knowledge base for. Format:
26242//   `projects//locations/`.
26243func (r *ProjectsAgentKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesCreateCall {
26244	c := &ProjectsAgentKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26245	c.parent = parent
26246	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
26247	return c
26248}
26249
26250// Fields allows partial responses to be retrieved. See
26251// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26252// for more information.
26253func (c *ProjectsAgentKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesCreateCall {
26254	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26255	return c
26256}
26257
26258// Context sets the context to be used in this call's Do method. Any
26259// pending HTTP request will be aborted if the provided context is
26260// canceled.
26261func (c *ProjectsAgentKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesCreateCall {
26262	c.ctx_ = ctx
26263	return c
26264}
26265
26266// Header returns an http.Header that can be modified by the caller to
26267// add HTTP headers to the request.
26268func (c *ProjectsAgentKnowledgeBasesCreateCall) Header() http.Header {
26269	if c.header_ == nil {
26270		c.header_ = make(http.Header)
26271	}
26272	return c.header_
26273}
26274
26275func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
26276	reqHeaders := make(http.Header)
26277	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26278	for k, v := range c.header_ {
26279		reqHeaders[k] = v
26280	}
26281	reqHeaders.Set("User-Agent", c.s.userAgent())
26282	var body io.Reader = nil
26283	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
26284	if err != nil {
26285		return nil, err
26286	}
26287	reqHeaders.Set("Content-Type", "application/json")
26288	c.urlParams_.Set("alt", alt)
26289	c.urlParams_.Set("prettyPrint", "false")
26290	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
26291	urls += "?" + c.urlParams_.Encode()
26292	req, err := http.NewRequest("POST", urls, body)
26293	if err != nil {
26294		return nil, err
26295	}
26296	req.Header = reqHeaders
26297	googleapi.Expand(req.URL, map[string]string{
26298		"parent": c.parent,
26299	})
26300	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26301}
26302
26303// Do executes the "dialogflow.projects.agent.knowledgeBases.create" call.
26304// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
26305// will be non-nil. Any non-2xx status code is an error. Response
26306// headers are in either
26307// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
26308// (if a response was returned at all) in
26309// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26310// whether the returned error was because http.StatusNotModified was
26311// returned.
26312func (c *ProjectsAgentKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
26313	gensupport.SetOptions(c.urlParams_, opts...)
26314	res, err := c.doRequest("json")
26315	if res != nil && res.StatusCode == http.StatusNotModified {
26316		if res.Body != nil {
26317			res.Body.Close()
26318		}
26319		return nil, &googleapi.Error{
26320			Code:   res.StatusCode,
26321			Header: res.Header,
26322		}
26323	}
26324	if err != nil {
26325		return nil, err
26326	}
26327	defer googleapi.CloseBody(res)
26328	if err := googleapi.CheckResponse(res); err != nil {
26329		return nil, err
26330	}
26331	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
26332		ServerResponse: googleapi.ServerResponse{
26333			Header:         res.Header,
26334			HTTPStatusCode: res.StatusCode,
26335		},
26336	}
26337	target := &ret
26338	if err := gensupport.DecodeResponse(target, res); err != nil {
26339		return nil, err
26340	}
26341	return ret, nil
26342	// {
26343	//   "description": "Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26344	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases",
26345	//   "httpMethod": "POST",
26346	//   "id": "dialogflow.projects.agent.knowledgeBases.create",
26347	//   "parameterOrder": [
26348	//     "parent"
26349	//   ],
26350	//   "parameters": {
26351	//     "parent": {
26352	//       "description": "Required. The project to create a knowledge base for. Format: `projects//locations/`.",
26353	//       "location": "path",
26354	//       "pattern": "^projects/[^/]+/agent$",
26355	//       "required": true,
26356	//       "type": "string"
26357	//     }
26358	//   },
26359	//   "path": "v2beta1/{+parent}/knowledgeBases",
26360	//   "request": {
26361	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26362	//   },
26363	//   "response": {
26364	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26365	//   },
26366	//   "scopes": [
26367	//     "https://www.googleapis.com/auth/cloud-platform",
26368	//     "https://www.googleapis.com/auth/dialogflow"
26369	//   ]
26370	// }
26371
26372}
26373
26374// method id "dialogflow.projects.agent.knowledgeBases.delete":
26375
26376type ProjectsAgentKnowledgeBasesDeleteCall struct {
26377	s          *Service
26378	name       string
26379	urlParams_ gensupport.URLParams
26380	ctx_       context.Context
26381	header_    http.Header
26382}
26383
26384// Delete: Deletes the specified knowledge base. Note: The
26385// `projects.agent.knowledgeBases` resource is deprecated; only use
26386// `projects.knowledgeBases`.
26387//
26388// - name: The name of the knowledge base to delete. Format:
26389//   `projects//locations//knowledgeBases/`.
26390func (r *ProjectsAgentKnowledgeBasesService) Delete(name string) *ProjectsAgentKnowledgeBasesDeleteCall {
26391	c := &ProjectsAgentKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26392	c.name = name
26393	return c
26394}
26395
26396// Force sets the optional parameter "force": Force deletes the
26397// knowledge base. When set to true, any documents in the knowledge base
26398// are also deleted.
26399func (c *ProjectsAgentKnowledgeBasesDeleteCall) Force(force bool) *ProjectsAgentKnowledgeBasesDeleteCall {
26400	c.urlParams_.Set("force", fmt.Sprint(force))
26401	return c
26402}
26403
26404// Fields allows partial responses to be retrieved. See
26405// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26406// for more information.
26407func (c *ProjectsAgentKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDeleteCall {
26408	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26409	return c
26410}
26411
26412// Context sets the context to be used in this call's Do method. Any
26413// pending HTTP request will be aborted if the provided context is
26414// canceled.
26415func (c *ProjectsAgentKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDeleteCall {
26416	c.ctx_ = ctx
26417	return c
26418}
26419
26420// Header returns an http.Header that can be modified by the caller to
26421// add HTTP headers to the request.
26422func (c *ProjectsAgentKnowledgeBasesDeleteCall) Header() http.Header {
26423	if c.header_ == nil {
26424		c.header_ = make(http.Header)
26425	}
26426	return c.header_
26427}
26428
26429func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
26430	reqHeaders := make(http.Header)
26431	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26432	for k, v := range c.header_ {
26433		reqHeaders[k] = v
26434	}
26435	reqHeaders.Set("User-Agent", c.s.userAgent())
26436	var body io.Reader = nil
26437	c.urlParams_.Set("alt", alt)
26438	c.urlParams_.Set("prettyPrint", "false")
26439	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26440	urls += "?" + c.urlParams_.Encode()
26441	req, err := http.NewRequest("DELETE", urls, body)
26442	if err != nil {
26443		return nil, err
26444	}
26445	req.Header = reqHeaders
26446	googleapi.Expand(req.URL, map[string]string{
26447		"name": c.name,
26448	})
26449	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26450}
26451
26452// Do executes the "dialogflow.projects.agent.knowledgeBases.delete" call.
26453// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
26454// non-2xx status code is an error. Response headers are in either
26455// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
26456// returned at all) in error.(*googleapi.Error).Header. Use
26457// googleapi.IsNotModified to check whether the returned error was
26458// because http.StatusNotModified was returned.
26459func (c *ProjectsAgentKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26460	gensupport.SetOptions(c.urlParams_, opts...)
26461	res, err := c.doRequest("json")
26462	if res != nil && res.StatusCode == http.StatusNotModified {
26463		if res.Body != nil {
26464			res.Body.Close()
26465		}
26466		return nil, &googleapi.Error{
26467			Code:   res.StatusCode,
26468			Header: res.Header,
26469		}
26470	}
26471	if err != nil {
26472		return nil, err
26473	}
26474	defer googleapi.CloseBody(res)
26475	if err := googleapi.CheckResponse(res); err != nil {
26476		return nil, err
26477	}
26478	ret := &GoogleProtobufEmpty{
26479		ServerResponse: googleapi.ServerResponse{
26480			Header:         res.Header,
26481			HTTPStatusCode: res.StatusCode,
26482		},
26483	}
26484	target := &ret
26485	if err := gensupport.DecodeResponse(target, res); err != nil {
26486		return nil, err
26487	}
26488	return ret, nil
26489	// {
26490	//   "description": "Deletes the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26491	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}",
26492	//   "httpMethod": "DELETE",
26493	//   "id": "dialogflow.projects.agent.knowledgeBases.delete",
26494	//   "parameterOrder": [
26495	//     "name"
26496	//   ],
26497	//   "parameters": {
26498	//     "force": {
26499	//       "description": "Optional. Force deletes the knowledge base. When set to true, any documents in the knowledge base are also deleted.",
26500	//       "location": "query",
26501	//       "type": "boolean"
26502	//     },
26503	//     "name": {
26504	//       "description": "Required. The name of the knowledge base to delete. Format: `projects//locations//knowledgeBases/`.",
26505	//       "location": "path",
26506	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
26507	//       "required": true,
26508	//       "type": "string"
26509	//     }
26510	//   },
26511	//   "path": "v2beta1/{+name}",
26512	//   "response": {
26513	//     "$ref": "GoogleProtobufEmpty"
26514	//   },
26515	//   "scopes": [
26516	//     "https://www.googleapis.com/auth/cloud-platform",
26517	//     "https://www.googleapis.com/auth/dialogflow"
26518	//   ]
26519	// }
26520
26521}
26522
26523// method id "dialogflow.projects.agent.knowledgeBases.get":
26524
26525type ProjectsAgentKnowledgeBasesGetCall struct {
26526	s            *Service
26527	name         string
26528	urlParams_   gensupport.URLParams
26529	ifNoneMatch_ string
26530	ctx_         context.Context
26531	header_      http.Header
26532}
26533
26534// Get: Retrieves the specified knowledge base. Note: The
26535// `projects.agent.knowledgeBases` resource is deprecated; only use
26536// `projects.knowledgeBases`.
26537//
26538// - name: The name of the knowledge base to retrieve. Format
26539//   `projects//locations//knowledgeBases/`.
26540func (r *ProjectsAgentKnowledgeBasesService) Get(name string) *ProjectsAgentKnowledgeBasesGetCall {
26541	c := &ProjectsAgentKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26542	c.name = name
26543	return c
26544}
26545
26546// Fields allows partial responses to be retrieved. See
26547// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26548// for more information.
26549func (c *ProjectsAgentKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesGetCall {
26550	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26551	return c
26552}
26553
26554// IfNoneMatch sets the optional parameter which makes the operation
26555// fail if the object's ETag matches the given value. This is useful for
26556// getting updates only after the object has changed since the last
26557// request. Use googleapi.IsNotModified to check whether the response
26558// error from Do is the result of In-None-Match.
26559func (c *ProjectsAgentKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesGetCall {
26560	c.ifNoneMatch_ = entityTag
26561	return c
26562}
26563
26564// Context sets the context to be used in this call's Do method. Any
26565// pending HTTP request will be aborted if the provided context is
26566// canceled.
26567func (c *ProjectsAgentKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesGetCall {
26568	c.ctx_ = ctx
26569	return c
26570}
26571
26572// Header returns an http.Header that can be modified by the caller to
26573// add HTTP headers to the request.
26574func (c *ProjectsAgentKnowledgeBasesGetCall) Header() http.Header {
26575	if c.header_ == nil {
26576		c.header_ = make(http.Header)
26577	}
26578	return c.header_
26579}
26580
26581func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
26582	reqHeaders := make(http.Header)
26583	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26584	for k, v := range c.header_ {
26585		reqHeaders[k] = v
26586	}
26587	reqHeaders.Set("User-Agent", c.s.userAgent())
26588	if c.ifNoneMatch_ != "" {
26589		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26590	}
26591	var body io.Reader = nil
26592	c.urlParams_.Set("alt", alt)
26593	c.urlParams_.Set("prettyPrint", "false")
26594	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26595	urls += "?" + c.urlParams_.Encode()
26596	req, err := http.NewRequest("GET", urls, body)
26597	if err != nil {
26598		return nil, err
26599	}
26600	req.Header = reqHeaders
26601	googleapi.Expand(req.URL, map[string]string{
26602		"name": c.name,
26603	})
26604	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26605}
26606
26607// Do executes the "dialogflow.projects.agent.knowledgeBases.get" call.
26608// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
26609// will be non-nil. Any non-2xx status code is an error. Response
26610// headers are in either
26611// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
26612// (if a response was returned at all) in
26613// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26614// whether the returned error was because http.StatusNotModified was
26615// returned.
26616func (c *ProjectsAgentKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
26617	gensupport.SetOptions(c.urlParams_, opts...)
26618	res, err := c.doRequest("json")
26619	if res != nil && res.StatusCode == http.StatusNotModified {
26620		if res.Body != nil {
26621			res.Body.Close()
26622		}
26623		return nil, &googleapi.Error{
26624			Code:   res.StatusCode,
26625			Header: res.Header,
26626		}
26627	}
26628	if err != nil {
26629		return nil, err
26630	}
26631	defer googleapi.CloseBody(res)
26632	if err := googleapi.CheckResponse(res); err != nil {
26633		return nil, err
26634	}
26635	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
26636		ServerResponse: googleapi.ServerResponse{
26637			Header:         res.Header,
26638			HTTPStatusCode: res.StatusCode,
26639		},
26640	}
26641	target := &ret
26642	if err := gensupport.DecodeResponse(target, res); err != nil {
26643		return nil, err
26644	}
26645	return ret, nil
26646	// {
26647	//   "description": "Retrieves the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26648	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}",
26649	//   "httpMethod": "GET",
26650	//   "id": "dialogflow.projects.agent.knowledgeBases.get",
26651	//   "parameterOrder": [
26652	//     "name"
26653	//   ],
26654	//   "parameters": {
26655	//     "name": {
26656	//       "description": "Required. The name of the knowledge base to retrieve. Format `projects//locations//knowledgeBases/`.",
26657	//       "location": "path",
26658	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
26659	//       "required": true,
26660	//       "type": "string"
26661	//     }
26662	//   },
26663	//   "path": "v2beta1/{+name}",
26664	//   "response": {
26665	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26666	//   },
26667	//   "scopes": [
26668	//     "https://www.googleapis.com/auth/cloud-platform",
26669	//     "https://www.googleapis.com/auth/dialogflow"
26670	//   ]
26671	// }
26672
26673}
26674
26675// method id "dialogflow.projects.agent.knowledgeBases.list":
26676
26677type ProjectsAgentKnowledgeBasesListCall struct {
26678	s            *Service
26679	parent       string
26680	urlParams_   gensupport.URLParams
26681	ifNoneMatch_ string
26682	ctx_         context.Context
26683	header_      http.Header
26684}
26685
26686// List: Returns the list of all knowledge bases of the specified agent.
26687// Note: The `projects.agent.knowledgeBases` resource is deprecated;
26688// only use `projects.knowledgeBases`.
26689//
26690// - parent: The project to list of knowledge bases for. Format:
26691//   `projects//locations/`.
26692func (r *ProjectsAgentKnowledgeBasesService) List(parent string) *ProjectsAgentKnowledgeBasesListCall {
26693	c := &ProjectsAgentKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26694	c.parent = parent
26695	return c
26696}
26697
26698// Filter sets the optional parameter "filter": The filter expression
26699// used to filter knowledge bases returned by the list method. The
26700// expression has the following syntax: [AND ] ... The following fields
26701// and operators are supported: * display_name with has(:) operator *
26702// language_code with equals(=) operator Examples: *
26703// 'language_code=en-us' matches knowledge bases with en-us language
26704// code. * 'display_name:articles' matches knowledge bases whose display
26705// name contains "articles". * 'display_name:"Best Articles"' matches
26706// knowledge bases whose display name contains "Best Articles". *
26707// 'language_code=en-gb AND display_name=articles' matches all knowledge
26708// bases whose display name contains "articles" and whose language code
26709// is "en-gb". Note: An empty filter string (i.e. "") is a no-op and
26710// will result in no filtering. For more information about filtering,
26711// see API Filtering (https://aip.dev/160).
26712func (c *ProjectsAgentKnowledgeBasesListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesListCall {
26713	c.urlParams_.Set("filter", filter)
26714	return c
26715}
26716
26717// PageSize sets the optional parameter "pageSize": The maximum number
26718// of items to return in a single page. By default 10 and at most 100.
26719func (c *ProjectsAgentKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesListCall {
26720	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26721	return c
26722}
26723
26724// PageToken sets the optional parameter "pageToken": The
26725// next_page_token value returned from a previous list request.
26726func (c *ProjectsAgentKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesListCall {
26727	c.urlParams_.Set("pageToken", pageToken)
26728	return c
26729}
26730
26731// Fields allows partial responses to be retrieved. See
26732// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26733// for more information.
26734func (c *ProjectsAgentKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesListCall {
26735	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26736	return c
26737}
26738
26739// IfNoneMatch sets the optional parameter which makes the operation
26740// fail if the object's ETag matches the given value. This is useful for
26741// getting updates only after the object has changed since the last
26742// request. Use googleapi.IsNotModified to check whether the response
26743// error from Do is the result of In-None-Match.
26744func (c *ProjectsAgentKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesListCall {
26745	c.ifNoneMatch_ = entityTag
26746	return c
26747}
26748
26749// Context sets the context to be used in this call's Do method. Any
26750// pending HTTP request will be aborted if the provided context is
26751// canceled.
26752func (c *ProjectsAgentKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesListCall {
26753	c.ctx_ = ctx
26754	return c
26755}
26756
26757// Header returns an http.Header that can be modified by the caller to
26758// add HTTP headers to the request.
26759func (c *ProjectsAgentKnowledgeBasesListCall) Header() http.Header {
26760	if c.header_ == nil {
26761		c.header_ = make(http.Header)
26762	}
26763	return c.header_
26764}
26765
26766func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
26767	reqHeaders := make(http.Header)
26768	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26769	for k, v := range c.header_ {
26770		reqHeaders[k] = v
26771	}
26772	reqHeaders.Set("User-Agent", c.s.userAgent())
26773	if c.ifNoneMatch_ != "" {
26774		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26775	}
26776	var body io.Reader = nil
26777	c.urlParams_.Set("alt", alt)
26778	c.urlParams_.Set("prettyPrint", "false")
26779	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
26780	urls += "?" + c.urlParams_.Encode()
26781	req, err := http.NewRequest("GET", urls, body)
26782	if err != nil {
26783		return nil, err
26784	}
26785	req.Header = reqHeaders
26786	googleapi.Expand(req.URL, map[string]string{
26787		"parent": c.parent,
26788	})
26789	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26790}
26791
26792// Do executes the "dialogflow.projects.agent.knowledgeBases.list" call.
26793// Exactly one of
26794// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse or error will
26795// be non-nil. Any non-2xx status code is an error. Response headers are
26796// in either
26797// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse
26798// .Header or (if a response was returned at all) in
26799// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26800// whether the returned error was because http.StatusNotModified was
26801// returned.
26802func (c *ProjectsAgentKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
26803	gensupport.SetOptions(c.urlParams_, opts...)
26804	res, err := c.doRequest("json")
26805	if res != nil && res.StatusCode == http.StatusNotModified {
26806		if res.Body != nil {
26807			res.Body.Close()
26808		}
26809		return nil, &googleapi.Error{
26810			Code:   res.StatusCode,
26811			Header: res.Header,
26812		}
26813	}
26814	if err != nil {
26815		return nil, err
26816	}
26817	defer googleapi.CloseBody(res)
26818	if err := googleapi.CheckResponse(res); err != nil {
26819		return nil, err
26820	}
26821	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
26822		ServerResponse: googleapi.ServerResponse{
26823			Header:         res.Header,
26824			HTTPStatusCode: res.StatusCode,
26825		},
26826	}
26827	target := &ret
26828	if err := gensupport.DecodeResponse(target, res); err != nil {
26829		return nil, err
26830	}
26831	return ret, nil
26832	// {
26833	//   "description": "Returns the list of all knowledge bases of the specified agent. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26834	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases",
26835	//   "httpMethod": "GET",
26836	//   "id": "dialogflow.projects.agent.knowledgeBases.list",
26837	//   "parameterOrder": [
26838	//     "parent"
26839	//   ],
26840	//   "parameters": {
26841	//     "filter": {
26842	//       "description": "The filter expression used to filter knowledge bases returned by the list method. The expression has the following syntax: [AND ] ... The following fields and operators are supported: * display_name with has(:) operator * language_code with equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases with en-us language code. * 'display_name:articles' matches knowledge bases whose display name contains \"articles\". * 'display_name:\"Best Articles\"' matches knowledge bases whose display name contains \"Best Articles\". * 'language_code=en-gb AND display_name=articles' matches all knowledge bases whose display name contains \"articles\" and whose language code is \"en-gb\". Note: An empty filter string (i.e. \"\") is a no-op and will result in no filtering. For more information about filtering, see [API Filtering](https://aip.dev/160).",
26843	//       "location": "query",
26844	//       "type": "string"
26845	//     },
26846	//     "pageSize": {
26847	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
26848	//       "format": "int32",
26849	//       "location": "query",
26850	//       "type": "integer"
26851	//     },
26852	//     "pageToken": {
26853	//       "description": "The next_page_token value returned from a previous list request.",
26854	//       "location": "query",
26855	//       "type": "string"
26856	//     },
26857	//     "parent": {
26858	//       "description": "Required. The project to list of knowledge bases for. Format: `projects//locations/`.",
26859	//       "location": "path",
26860	//       "pattern": "^projects/[^/]+/agent$",
26861	//       "required": true,
26862	//       "type": "string"
26863	//     }
26864	//   },
26865	//   "path": "v2beta1/{+parent}/knowledgeBases",
26866	//   "response": {
26867	//     "$ref": "GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse"
26868	//   },
26869	//   "scopes": [
26870	//     "https://www.googleapis.com/auth/cloud-platform",
26871	//     "https://www.googleapis.com/auth/dialogflow"
26872	//   ]
26873	// }
26874
26875}
26876
26877// Pages invokes f for each page of results.
26878// A non-nil error returned from f will halt the iteration.
26879// The provided context supersedes any context provided to the Context method.
26880func (c *ProjectsAgentKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
26881	c.ctx_ = ctx
26882	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
26883	for {
26884		x, err := c.Do()
26885		if err != nil {
26886			return err
26887		}
26888		if err := f(x); err != nil {
26889			return err
26890		}
26891		if x.NextPageToken == "" {
26892			return nil
26893		}
26894		c.PageToken(x.NextPageToken)
26895	}
26896}
26897
26898// method id "dialogflow.projects.agent.knowledgeBases.patch":
26899
26900type ProjectsAgentKnowledgeBasesPatchCall struct {
26901	s                                         *Service
26902	name                                      string
26903	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
26904	urlParams_                                gensupport.URLParams
26905	ctx_                                      context.Context
26906	header_                                   http.Header
26907}
26908
26909// Patch: Updates the specified knowledge base. Note: The
26910// `projects.agent.knowledgeBases` resource is deprecated; only use
26911// `projects.knowledgeBases`.
26912//
26913// - name: The knowledge base resource name. The name must be empty when
26914//   creating a knowledge base. Format:
26915//   `projects//locations//knowledgeBases/`.
26916func (r *ProjectsAgentKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesPatchCall {
26917	c := &ProjectsAgentKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26918	c.name = name
26919	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
26920	return c
26921}
26922
26923// UpdateMask sets the optional parameter "updateMask": Not specified
26924// means `update all`. Currently, only `display_name` can be updated, an
26925// InvalidArgument will be returned for attempting to update other
26926// fields.
26927func (c *ProjectsAgentKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesPatchCall {
26928	c.urlParams_.Set("updateMask", updateMask)
26929	return c
26930}
26931
26932// Fields allows partial responses to be retrieved. See
26933// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26934// for more information.
26935func (c *ProjectsAgentKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesPatchCall {
26936	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26937	return c
26938}
26939
26940// Context sets the context to be used in this call's Do method. Any
26941// pending HTTP request will be aborted if the provided context is
26942// canceled.
26943func (c *ProjectsAgentKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesPatchCall {
26944	c.ctx_ = ctx
26945	return c
26946}
26947
26948// Header returns an http.Header that can be modified by the caller to
26949// add HTTP headers to the request.
26950func (c *ProjectsAgentKnowledgeBasesPatchCall) Header() http.Header {
26951	if c.header_ == nil {
26952		c.header_ = make(http.Header)
26953	}
26954	return c.header_
26955}
26956
26957func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
26958	reqHeaders := make(http.Header)
26959	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26960	for k, v := range c.header_ {
26961		reqHeaders[k] = v
26962	}
26963	reqHeaders.Set("User-Agent", c.s.userAgent())
26964	var body io.Reader = nil
26965	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
26966	if err != nil {
26967		return nil, err
26968	}
26969	reqHeaders.Set("Content-Type", "application/json")
26970	c.urlParams_.Set("alt", alt)
26971	c.urlParams_.Set("prettyPrint", "false")
26972	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26973	urls += "?" + c.urlParams_.Encode()
26974	req, err := http.NewRequest("PATCH", urls, body)
26975	if err != nil {
26976		return nil, err
26977	}
26978	req.Header = reqHeaders
26979	googleapi.Expand(req.URL, map[string]string{
26980		"name": c.name,
26981	})
26982	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26983}
26984
26985// Do executes the "dialogflow.projects.agent.knowledgeBases.patch" call.
26986// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
26987// will be non-nil. Any non-2xx status code is an error. Response
26988// headers are in either
26989// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
26990// (if a response was returned at all) in
26991// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26992// whether the returned error was because http.StatusNotModified was
26993// returned.
26994func (c *ProjectsAgentKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
26995	gensupport.SetOptions(c.urlParams_, opts...)
26996	res, err := c.doRequest("json")
26997	if res != nil && res.StatusCode == http.StatusNotModified {
26998		if res.Body != nil {
26999			res.Body.Close()
27000		}
27001		return nil, &googleapi.Error{
27002			Code:   res.StatusCode,
27003			Header: res.Header,
27004		}
27005	}
27006	if err != nil {
27007		return nil, err
27008	}
27009	defer googleapi.CloseBody(res)
27010	if err := googleapi.CheckResponse(res); err != nil {
27011		return nil, err
27012	}
27013	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
27014		ServerResponse: googleapi.ServerResponse{
27015			Header:         res.Header,
27016			HTTPStatusCode: res.StatusCode,
27017		},
27018	}
27019	target := &ret
27020	if err := gensupport.DecodeResponse(target, res); err != nil {
27021		return nil, err
27022	}
27023	return ret, nil
27024	// {
27025	//   "description": "Updates the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
27026	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}",
27027	//   "httpMethod": "PATCH",
27028	//   "id": "dialogflow.projects.agent.knowledgeBases.patch",
27029	//   "parameterOrder": [
27030	//     "name"
27031	//   ],
27032	//   "parameters": {
27033	//     "name": {
27034	//       "description": "The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.",
27035	//       "location": "path",
27036	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
27037	//       "required": true,
27038	//       "type": "string"
27039	//     },
27040	//     "updateMask": {
27041	//       "description": "Optional. Not specified means `update all`. Currently, only `display_name` can be updated, an InvalidArgument will be returned for attempting to update other fields.",
27042	//       "format": "google-fieldmask",
27043	//       "location": "query",
27044	//       "type": "string"
27045	//     }
27046	//   },
27047	//   "path": "v2beta1/{+name}",
27048	//   "request": {
27049	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
27050	//   },
27051	//   "response": {
27052	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
27053	//   },
27054	//   "scopes": [
27055	//     "https://www.googleapis.com/auth/cloud-platform",
27056	//     "https://www.googleapis.com/auth/dialogflow"
27057	//   ]
27058	// }
27059
27060}
27061
27062// method id "dialogflow.projects.agent.knowledgeBases.documents.create":
27063
27064type ProjectsAgentKnowledgeBasesDocumentsCreateCall struct {
27065	s                                    *Service
27066	parent                               string
27067	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
27068	urlParams_                           gensupport.URLParams
27069	ctx_                                 context.Context
27070	header_                              http.Header
27071}
27072
27073// Create: Creates a new document. Note: The
27074// `projects.agent.knowledgeBases.documents` resource is deprecated;
27075// only use `projects.knowledgeBases.documents`.
27076//
27077// - parent: The knowledge base to create a document for. Format:
27078//   `projects//locations//knowledgeBases/`.
27079func (r *ProjectsAgentKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
27080	c := &ProjectsAgentKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27081	c.parent = parent
27082	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
27083	return c
27084}
27085
27086// ImportGcsCustomMetadata sets the optional parameter
27087// "importGcsCustomMetadata": Whether to import custom metadata from
27088// Google Cloud Storage. Only valid when the document source is Google
27089// Cloud Storage URI.
27090func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
27091	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
27092	return c
27093}
27094
27095// Fields allows partial responses to be retrieved. See
27096// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27097// for more information.
27098func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
27099	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27100	return c
27101}
27102
27103// Context sets the context to be used in this call's Do method. Any
27104// pending HTTP request will be aborted if the provided context is
27105// canceled.
27106func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
27107	c.ctx_ = ctx
27108	return c
27109}
27110
27111// Header returns an http.Header that can be modified by the caller to
27112// add HTTP headers to the request.
27113func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Header() http.Header {
27114	if c.header_ == nil {
27115		c.header_ = make(http.Header)
27116	}
27117	return c.header_
27118}
27119
27120func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
27121	reqHeaders := make(http.Header)
27122	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27123	for k, v := range c.header_ {
27124		reqHeaders[k] = v
27125	}
27126	reqHeaders.Set("User-Agent", c.s.userAgent())
27127	var body io.Reader = nil
27128	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
27129	if err != nil {
27130		return nil, err
27131	}
27132	reqHeaders.Set("Content-Type", "application/json")
27133	c.urlParams_.Set("alt", alt)
27134	c.urlParams_.Set("prettyPrint", "false")
27135	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
27136	urls += "?" + c.urlParams_.Encode()
27137	req, err := http.NewRequest("POST", urls, body)
27138	if err != nil {
27139		return nil, err
27140	}
27141	req.Header = reqHeaders
27142	googleapi.Expand(req.URL, map[string]string{
27143		"parent": c.parent,
27144	})
27145	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27146}
27147
27148// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.create" call.
27149// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
27150// Any non-2xx status code is an error. Response headers are in either
27151// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
27152// was returned at all) in error.(*googleapi.Error).Header. Use
27153// googleapi.IsNotModified to check whether the returned error was
27154// because http.StatusNotModified was returned.
27155func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27156	gensupport.SetOptions(c.urlParams_, opts...)
27157	res, err := c.doRequest("json")
27158	if res != nil && res.StatusCode == http.StatusNotModified {
27159		if res.Body != nil {
27160			res.Body.Close()
27161		}
27162		return nil, &googleapi.Error{
27163			Code:   res.StatusCode,
27164			Header: res.Header,
27165		}
27166	}
27167	if err != nil {
27168		return nil, err
27169	}
27170	defer googleapi.CloseBody(res)
27171	if err := googleapi.CheckResponse(res); err != nil {
27172		return nil, err
27173	}
27174	ret := &GoogleLongrunningOperation{
27175		ServerResponse: googleapi.ServerResponse{
27176			Header:         res.Header,
27177			HTTPStatusCode: res.StatusCode,
27178		},
27179	}
27180	target := &ret
27181	if err := gensupport.DecodeResponse(target, res); err != nil {
27182		return nil, err
27183	}
27184	return ret, nil
27185	// {
27186	//   "description": "Creates a new document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
27187	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents",
27188	//   "httpMethod": "POST",
27189	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.create",
27190	//   "parameterOrder": [
27191	//     "parent"
27192	//   ],
27193	//   "parameters": {
27194	//     "importGcsCustomMetadata": {
27195	//       "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.",
27196	//       "location": "query",
27197	//       "type": "boolean"
27198	//     },
27199	//     "parent": {
27200	//       "description": "Required. The knowledge base to create a document for. Format: `projects//locations//knowledgeBases/`.",
27201	//       "location": "path",
27202	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
27203	//       "required": true,
27204	//       "type": "string"
27205	//     }
27206	//   },
27207	//   "path": "v2beta1/{+parent}/documents",
27208	//   "request": {
27209	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
27210	//   },
27211	//   "response": {
27212	//     "$ref": "GoogleLongrunningOperation"
27213	//   },
27214	//   "scopes": [
27215	//     "https://www.googleapis.com/auth/cloud-platform",
27216	//     "https://www.googleapis.com/auth/dialogflow"
27217	//   ]
27218	// }
27219
27220}
27221
27222// method id "dialogflow.projects.agent.knowledgeBases.documents.delete":
27223
27224type ProjectsAgentKnowledgeBasesDocumentsDeleteCall struct {
27225	s          *Service
27226	name       string
27227	urlParams_ gensupport.URLParams
27228	ctx_       context.Context
27229	header_    http.Header
27230}
27231
27232// Delete: Deletes the specified document. Note: The
27233// `projects.agent.knowledgeBases.documents` resource is deprecated;
27234// only use `projects.knowledgeBases.documents`.
27235//
27236// - name: The name of the document to delete. Format:
27237//   `projects//locations//knowledgeBases//documents/`.
27238func (r *ProjectsAgentKnowledgeBasesDocumentsService) Delete(name string) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
27239	c := &ProjectsAgentKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27240	c.name = name
27241	return c
27242}
27243
27244// Fields allows partial responses to be retrieved. See
27245// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27246// for more information.
27247func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
27248	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27249	return c
27250}
27251
27252// Context sets the context to be used in this call's Do method. Any
27253// pending HTTP request will be aborted if the provided context is
27254// canceled.
27255func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
27256	c.ctx_ = ctx
27257	return c
27258}
27259
27260// Header returns an http.Header that can be modified by the caller to
27261// add HTTP headers to the request.
27262func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
27263	if c.header_ == nil {
27264		c.header_ = make(http.Header)
27265	}
27266	return c.header_
27267}
27268
27269func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
27270	reqHeaders := make(http.Header)
27271	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27272	for k, v := range c.header_ {
27273		reqHeaders[k] = v
27274	}
27275	reqHeaders.Set("User-Agent", c.s.userAgent())
27276	var body io.Reader = nil
27277	c.urlParams_.Set("alt", alt)
27278	c.urlParams_.Set("prettyPrint", "false")
27279	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27280	urls += "?" + c.urlParams_.Encode()
27281	req, err := http.NewRequest("DELETE", urls, body)
27282	if err != nil {
27283		return nil, err
27284	}
27285	req.Header = reqHeaders
27286	googleapi.Expand(req.URL, map[string]string{
27287		"name": c.name,
27288	})
27289	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27290}
27291
27292// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.delete" call.
27293// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
27294// Any non-2xx status code is an error. Response headers are in either
27295// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
27296// was returned at all) in error.(*googleapi.Error).Header. Use
27297// googleapi.IsNotModified to check whether the returned error was
27298// because http.StatusNotModified was returned.
27299func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27300	gensupport.SetOptions(c.urlParams_, opts...)
27301	res, err := c.doRequest("json")
27302	if res != nil && res.StatusCode == http.StatusNotModified {
27303		if res.Body != nil {
27304			res.Body.Close()
27305		}
27306		return nil, &googleapi.Error{
27307			Code:   res.StatusCode,
27308			Header: res.Header,
27309		}
27310	}
27311	if err != nil {
27312		return nil, err
27313	}
27314	defer googleapi.CloseBody(res)
27315	if err := googleapi.CheckResponse(res); err != nil {
27316		return nil, err
27317	}
27318	ret := &GoogleLongrunningOperation{
27319		ServerResponse: googleapi.ServerResponse{
27320			Header:         res.Header,
27321			HTTPStatusCode: res.StatusCode,
27322		},
27323	}
27324	target := &ret
27325	if err := gensupport.DecodeResponse(target, res); err != nil {
27326		return nil, err
27327	}
27328	return ret, nil
27329	// {
27330	//   "description": "Deletes the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
27331	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
27332	//   "httpMethod": "DELETE",
27333	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.delete",
27334	//   "parameterOrder": [
27335	//     "name"
27336	//   ],
27337	//   "parameters": {
27338	//     "name": {
27339	//       "description": "Required. The name of the document to delete. Format: `projects//locations//knowledgeBases//documents/`.",
27340	//       "location": "path",
27341	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
27342	//       "required": true,
27343	//       "type": "string"
27344	//     }
27345	//   },
27346	//   "path": "v2beta1/{+name}",
27347	//   "response": {
27348	//     "$ref": "GoogleLongrunningOperation"
27349	//   },
27350	//   "scopes": [
27351	//     "https://www.googleapis.com/auth/cloud-platform",
27352	//     "https://www.googleapis.com/auth/dialogflow"
27353	//   ]
27354	// }
27355
27356}
27357
27358// method id "dialogflow.projects.agent.knowledgeBases.documents.get":
27359
27360type ProjectsAgentKnowledgeBasesDocumentsGetCall struct {
27361	s            *Service
27362	name         string
27363	urlParams_   gensupport.URLParams
27364	ifNoneMatch_ string
27365	ctx_         context.Context
27366	header_      http.Header
27367}
27368
27369// Get: Retrieves the specified document. Note: The
27370// `projects.agent.knowledgeBases.documents` resource is deprecated;
27371// only use `projects.knowledgeBases.documents`.
27372//
27373// - name: The name of the document to retrieve. Format
27374//   `projects//locations//knowledgeBases//documents/`.
27375func (r *ProjectsAgentKnowledgeBasesDocumentsService) Get(name string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27376	c := &ProjectsAgentKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27377	c.name = name
27378	return c
27379}
27380
27381// Fields allows partial responses to be retrieved. See
27382// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27383// for more information.
27384func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27385	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27386	return c
27387}
27388
27389// IfNoneMatch sets the optional parameter which makes the operation
27390// fail if the object's ETag matches the given value. This is useful for
27391// getting updates only after the object has changed since the last
27392// request. Use googleapi.IsNotModified to check whether the response
27393// error from Do is the result of In-None-Match.
27394func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27395	c.ifNoneMatch_ = entityTag
27396	return c
27397}
27398
27399// Context sets the context to be used in this call's Do method. Any
27400// pending HTTP request will be aborted if the provided context is
27401// canceled.
27402func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27403	c.ctx_ = ctx
27404	return c
27405}
27406
27407// Header returns an http.Header that can be modified by the caller to
27408// add HTTP headers to the request.
27409func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Header() http.Header {
27410	if c.header_ == nil {
27411		c.header_ = make(http.Header)
27412	}
27413	return c.header_
27414}
27415
27416func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
27417	reqHeaders := make(http.Header)
27418	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27419	for k, v := range c.header_ {
27420		reqHeaders[k] = v
27421	}
27422	reqHeaders.Set("User-Agent", c.s.userAgent())
27423	if c.ifNoneMatch_ != "" {
27424		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27425	}
27426	var body io.Reader = nil
27427	c.urlParams_.Set("alt", alt)
27428	c.urlParams_.Set("prettyPrint", "false")
27429	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27430	urls += "?" + c.urlParams_.Encode()
27431	req, err := http.NewRequest("GET", urls, body)
27432	if err != nil {
27433		return nil, err
27434	}
27435	req.Header = reqHeaders
27436	googleapi.Expand(req.URL, map[string]string{
27437		"name": c.name,
27438	})
27439	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27440}
27441
27442// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.get" call.
27443// Exactly one of *GoogleCloudDialogflowV2beta1Document or error will be
27444// non-nil. Any non-2xx status code is an error. Response headers are in
27445// either *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or
27446// (if a response was returned at all) in
27447// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27448// whether the returned error was because http.StatusNotModified was
27449// returned.
27450func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
27451	gensupport.SetOptions(c.urlParams_, opts...)
27452	res, err := c.doRequest("json")
27453	if res != nil && res.StatusCode == http.StatusNotModified {
27454		if res.Body != nil {
27455			res.Body.Close()
27456		}
27457		return nil, &googleapi.Error{
27458			Code:   res.StatusCode,
27459			Header: res.Header,
27460		}
27461	}
27462	if err != nil {
27463		return nil, err
27464	}
27465	defer googleapi.CloseBody(res)
27466	if err := googleapi.CheckResponse(res); err != nil {
27467		return nil, err
27468	}
27469	ret := &GoogleCloudDialogflowV2beta1Document{
27470		ServerResponse: googleapi.ServerResponse{
27471			Header:         res.Header,
27472			HTTPStatusCode: res.StatusCode,
27473		},
27474	}
27475	target := &ret
27476	if err := gensupport.DecodeResponse(target, res); err != nil {
27477		return nil, err
27478	}
27479	return ret, nil
27480	// {
27481	//   "description": "Retrieves the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
27482	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
27483	//   "httpMethod": "GET",
27484	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.get",
27485	//   "parameterOrder": [
27486	//     "name"
27487	//   ],
27488	//   "parameters": {
27489	//     "name": {
27490	//       "description": "Required. The name of the document to retrieve. Format `projects//locations//knowledgeBases//documents/`.",
27491	//       "location": "path",
27492	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
27493	//       "required": true,
27494	//       "type": "string"
27495	//     }
27496	//   },
27497	//   "path": "v2beta1/{+name}",
27498	//   "response": {
27499	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
27500	//   },
27501	//   "scopes": [
27502	//     "https://www.googleapis.com/auth/cloud-platform",
27503	//     "https://www.googleapis.com/auth/dialogflow"
27504	//   ]
27505	// }
27506
27507}
27508
27509// method id "dialogflow.projects.agent.knowledgeBases.documents.list":
27510
27511type ProjectsAgentKnowledgeBasesDocumentsListCall struct {
27512	s            *Service
27513	parent       string
27514	urlParams_   gensupport.URLParams
27515	ifNoneMatch_ string
27516	ctx_         context.Context
27517	header_      http.Header
27518}
27519
27520// List: Returns the list of all documents of the knowledge base. Note:
27521// The `projects.agent.knowledgeBases.documents` resource is deprecated;
27522// only use `projects.knowledgeBases.documents`.
27523//
27524// - parent: The knowledge base to list all documents for. Format:
27525//   `projects//locations//knowledgeBases/`.
27526func (r *ProjectsAgentKnowledgeBasesDocumentsService) List(parent string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27527	c := &ProjectsAgentKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27528	c.parent = parent
27529	return c
27530}
27531
27532// Filter sets the optional parameter "filter": The filter expression
27533// used to filter documents returned by the list method. The expression
27534// has the following syntax: [AND ] ... The following fields and
27535// operators are supported: * knowledge_types with has(:) operator *
27536// display_name with has(:) operator * state with equals(=) operator
27537// Examples: * "knowledge_types:FAQ" matches documents with FAQ
27538// knowledge type. * "display_name:customer" matches documents whose
27539// display name contains "customer". * "state=ACTIVE" matches documents
27540// with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE" matches
27541// all active FAQ documents. For more information about filtering, see
27542// API Filtering (https://aip.dev/160).
27543func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27544	c.urlParams_.Set("filter", filter)
27545	return c
27546}
27547
27548// PageSize sets the optional parameter "pageSize": The maximum number
27549// of items to return in a single page. By default 10 and at most 100.
27550func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27551	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27552	return c
27553}
27554
27555// PageToken sets the optional parameter "pageToken": The
27556// next_page_token value returned from a previous list request.
27557func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27558	c.urlParams_.Set("pageToken", pageToken)
27559	return c
27560}
27561
27562// Fields allows partial responses to be retrieved. See
27563// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27564// for more information.
27565func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27566	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27567	return c
27568}
27569
27570// IfNoneMatch sets the optional parameter which makes the operation
27571// fail if the object's ETag matches the given value. This is useful for
27572// getting updates only after the object has changed since the last
27573// request. Use googleapi.IsNotModified to check whether the response
27574// error from Do is the result of In-None-Match.
27575func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27576	c.ifNoneMatch_ = entityTag
27577	return c
27578}
27579
27580// Context sets the context to be used in this call's Do method. Any
27581// pending HTTP request will be aborted if the provided context is
27582// canceled.
27583func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27584	c.ctx_ = ctx
27585	return c
27586}
27587
27588// Header returns an http.Header that can be modified by the caller to
27589// add HTTP headers to the request.
27590func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Header() http.Header {
27591	if c.header_ == nil {
27592		c.header_ = make(http.Header)
27593	}
27594	return c.header_
27595}
27596
27597func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
27598	reqHeaders := make(http.Header)
27599	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27600	for k, v := range c.header_ {
27601		reqHeaders[k] = v
27602	}
27603	reqHeaders.Set("User-Agent", c.s.userAgent())
27604	if c.ifNoneMatch_ != "" {
27605		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27606	}
27607	var body io.Reader = nil
27608	c.urlParams_.Set("alt", alt)
27609	c.urlParams_.Set("prettyPrint", "false")
27610	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
27611	urls += "?" + c.urlParams_.Encode()
27612	req, err := http.NewRequest("GET", urls, body)
27613	if err != nil {
27614		return nil, err
27615	}
27616	req.Header = reqHeaders
27617	googleapi.Expand(req.URL, map[string]string{
27618		"parent": c.parent,
27619	})
27620	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27621}
27622
27623// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.list" call.
27624// Exactly one of *GoogleCloudDialogflowV2beta1ListDocumentsResponse or
27625// error will be non-nil. Any non-2xx status code is an error. Response
27626// headers are in either
27627// *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Head
27628// er or (if a response was returned at all) in
27629// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27630// whether the returned error was because http.StatusNotModified was
27631// returned.
27632func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
27633	gensupport.SetOptions(c.urlParams_, opts...)
27634	res, err := c.doRequest("json")
27635	if res != nil && res.StatusCode == http.StatusNotModified {
27636		if res.Body != nil {
27637			res.Body.Close()
27638		}
27639		return nil, &googleapi.Error{
27640			Code:   res.StatusCode,
27641			Header: res.Header,
27642		}
27643	}
27644	if err != nil {
27645		return nil, err
27646	}
27647	defer googleapi.CloseBody(res)
27648	if err := googleapi.CheckResponse(res); err != nil {
27649		return nil, err
27650	}
27651	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
27652		ServerResponse: googleapi.ServerResponse{
27653			Header:         res.Header,
27654			HTTPStatusCode: res.StatusCode,
27655		},
27656	}
27657	target := &ret
27658	if err := gensupport.DecodeResponse(target, res); err != nil {
27659		return nil, err
27660	}
27661	return ret, nil
27662	// {
27663	//   "description": "Returns the list of all documents of the knowledge base. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
27664	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents",
27665	//   "httpMethod": "GET",
27666	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.list",
27667	//   "parameterOrder": [
27668	//     "parent"
27669	//   ],
27670	//   "parameters": {
27671	//     "filter": {
27672	//       "description": "The filter expression used to filter documents returned by the list method. The expression has the following syntax: [AND ] ... The following fields and operators are supported: * knowledge_types with has(:) operator * display_name with has(:) operator * state with equals(=) operator Examples: * \"knowledge_types:FAQ\" matches documents with FAQ knowledge type. * \"display_name:customer\" matches documents whose display name contains \"customer\". * \"state=ACTIVE\" matches documents with ACTIVE state. * \"knowledge_types:FAQ AND state=ACTIVE\" matches all active FAQ documents. For more information about filtering, see [API Filtering](https://aip.dev/160).",
27673	//       "location": "query",
27674	//       "type": "string"
27675	//     },
27676	//     "pageSize": {
27677	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
27678	//       "format": "int32",
27679	//       "location": "query",
27680	//       "type": "integer"
27681	//     },
27682	//     "pageToken": {
27683	//       "description": "The next_page_token value returned from a previous list request.",
27684	//       "location": "query",
27685	//       "type": "string"
27686	//     },
27687	//     "parent": {
27688	//       "description": "Required. The knowledge base to list all documents for. Format: `projects//locations//knowledgeBases/`.",
27689	//       "location": "path",
27690	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
27691	//       "required": true,
27692	//       "type": "string"
27693	//     }
27694	//   },
27695	//   "path": "v2beta1/{+parent}/documents",
27696	//   "response": {
27697	//     "$ref": "GoogleCloudDialogflowV2beta1ListDocumentsResponse"
27698	//   },
27699	//   "scopes": [
27700	//     "https://www.googleapis.com/auth/cloud-platform",
27701	//     "https://www.googleapis.com/auth/dialogflow"
27702	//   ]
27703	// }
27704
27705}
27706
27707// Pages invokes f for each page of results.
27708// A non-nil error returned from f will halt the iteration.
27709// The provided context supersedes any context provided to the Context method.
27710func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
27711	c.ctx_ = ctx
27712	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
27713	for {
27714		x, err := c.Do()
27715		if err != nil {
27716			return err
27717		}
27718		if err := f(x); err != nil {
27719			return err
27720		}
27721		if x.NextPageToken == "" {
27722			return nil
27723		}
27724		c.PageToken(x.NextPageToken)
27725	}
27726}
27727
27728// method id "dialogflow.projects.agent.knowledgeBases.documents.patch":
27729
27730type ProjectsAgentKnowledgeBasesDocumentsPatchCall struct {
27731	s                                    *Service
27732	name                                 string
27733	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
27734	urlParams_                           gensupport.URLParams
27735	ctx_                                 context.Context
27736	header_                              http.Header
27737}
27738
27739// Patch: Updates the specified document. Note: The
27740// `projects.agent.knowledgeBases.documents` resource is deprecated;
27741// only use `projects.knowledgeBases.documents`.
27742//
27743// - name: Optional. The document resource name. The name must be empty
27744//   when creating a document. Format:
27745//   `projects//locations//knowledgeBases//documents/`.
27746func (r *ProjectsAgentKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27747	c := &ProjectsAgentKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27748	c.name = name
27749	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
27750	return c
27751}
27752
27753// UpdateMask sets the optional parameter "updateMask": Not specified
27754// means `update all`. Currently, only `display_name` can be updated, an
27755// InvalidArgument will be returned for attempting to update other
27756// fields.
27757func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27758	c.urlParams_.Set("updateMask", updateMask)
27759	return c
27760}
27761
27762// Fields allows partial responses to be retrieved. See
27763// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27764// for more information.
27765func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27766	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27767	return c
27768}
27769
27770// Context sets the context to be used in this call's Do method. Any
27771// pending HTTP request will be aborted if the provided context is
27772// canceled.
27773func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27774	c.ctx_ = ctx
27775	return c
27776}
27777
27778// Header returns an http.Header that can be modified by the caller to
27779// add HTTP headers to the request.
27780func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Header() http.Header {
27781	if c.header_ == nil {
27782		c.header_ = make(http.Header)
27783	}
27784	return c.header_
27785}
27786
27787func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
27788	reqHeaders := make(http.Header)
27789	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27790	for k, v := range c.header_ {
27791		reqHeaders[k] = v
27792	}
27793	reqHeaders.Set("User-Agent", c.s.userAgent())
27794	var body io.Reader = nil
27795	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
27796	if err != nil {
27797		return nil, err
27798	}
27799	reqHeaders.Set("Content-Type", "application/json")
27800	c.urlParams_.Set("alt", alt)
27801	c.urlParams_.Set("prettyPrint", "false")
27802	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27803	urls += "?" + c.urlParams_.Encode()
27804	req, err := http.NewRequest("PATCH", urls, body)
27805	if err != nil {
27806		return nil, err
27807	}
27808	req.Header = reqHeaders
27809	googleapi.Expand(req.URL, map[string]string{
27810		"name": c.name,
27811	})
27812	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27813}
27814
27815// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.patch" call.
27816// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
27817// Any non-2xx status code is an error. Response headers are in either
27818// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
27819// was returned at all) in error.(*googleapi.Error).Header. Use
27820// googleapi.IsNotModified to check whether the returned error was
27821// because http.StatusNotModified was returned.
27822func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27823	gensupport.SetOptions(c.urlParams_, opts...)
27824	res, err := c.doRequest("json")
27825	if res != nil && res.StatusCode == http.StatusNotModified {
27826		if res.Body != nil {
27827			res.Body.Close()
27828		}
27829		return nil, &googleapi.Error{
27830			Code:   res.StatusCode,
27831			Header: res.Header,
27832		}
27833	}
27834	if err != nil {
27835		return nil, err
27836	}
27837	defer googleapi.CloseBody(res)
27838	if err := googleapi.CheckResponse(res); err != nil {
27839		return nil, err
27840	}
27841	ret := &GoogleLongrunningOperation{
27842		ServerResponse: googleapi.ServerResponse{
27843			Header:         res.Header,
27844			HTTPStatusCode: res.StatusCode,
27845		},
27846	}
27847	target := &ret
27848	if err := gensupport.DecodeResponse(target, res); err != nil {
27849		return nil, err
27850	}
27851	return ret, nil
27852	// {
27853	//   "description": "Updates the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
27854	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
27855	//   "httpMethod": "PATCH",
27856	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.patch",
27857	//   "parameterOrder": [
27858	//     "name"
27859	//   ],
27860	//   "parameters": {
27861	//     "name": {
27862	//       "description": "Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.",
27863	//       "location": "path",
27864	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
27865	//       "required": true,
27866	//       "type": "string"
27867	//     },
27868	//     "updateMask": {
27869	//       "description": "Optional. Not specified means `update all`. Currently, only `display_name` can be updated, an InvalidArgument will be returned for attempting to update other fields.",
27870	//       "format": "google-fieldmask",
27871	//       "location": "query",
27872	//       "type": "string"
27873	//     }
27874	//   },
27875	//   "path": "v2beta1/{+name}",
27876	//   "request": {
27877	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
27878	//   },
27879	//   "response": {
27880	//     "$ref": "GoogleLongrunningOperation"
27881	//   },
27882	//   "scopes": [
27883	//     "https://www.googleapis.com/auth/cloud-platform",
27884	//     "https://www.googleapis.com/auth/dialogflow"
27885	//   ]
27886	// }
27887
27888}
27889
27890// method id "dialogflow.projects.agent.knowledgeBases.documents.reload":
27891
27892type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct {
27893	s                                                 *Service
27894	name                                              string
27895	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
27896	urlParams_                                        gensupport.URLParams
27897	ctx_                                              context.Context
27898	header_                                           http.Header
27899}
27900
27901// Reload: Reloads the specified document from its specified source,
27902// content_uri or content. The previously loaded content of the document
27903// will be deleted. Note: Even when the content of the document has not
27904// changed, there still may be side effects because of internal
27905// implementation changes. Note: If the document source is Google Cloud
27906// Storage URI, its metadata will be replaced with the custom metadata
27907// from Google Cloud Storage if the `import_gcs_custom_metadata` field
27908// is set to true in the request. Note: The
27909// `projects.agent.knowledgeBases.documents` resource is deprecated;
27910// only use `projects.knowledgeBases.documents`.
27911//
27912// - name: The name of the document to reload. Format:
27913//   `projects//locations//knowledgeBases//documents/`.
27914func (r *ProjectsAgentKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
27915	c := &ProjectsAgentKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27916	c.name = name
27917	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
27918	return c
27919}
27920
27921// Fields allows partial responses to be retrieved. See
27922// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27923// for more information.
27924func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
27925	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27926	return c
27927}
27928
27929// Context sets the context to be used in this call's Do method. Any
27930// pending HTTP request will be aborted if the provided context is
27931// canceled.
27932func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
27933	c.ctx_ = ctx
27934	return c
27935}
27936
27937// Header returns an http.Header that can be modified by the caller to
27938// add HTTP headers to the request.
27939func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Header() http.Header {
27940	if c.header_ == nil {
27941		c.header_ = make(http.Header)
27942	}
27943	return c.header_
27944}
27945
27946func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
27947	reqHeaders := make(http.Header)
27948	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27949	for k, v := range c.header_ {
27950		reqHeaders[k] = v
27951	}
27952	reqHeaders.Set("User-Agent", c.s.userAgent())
27953	var body io.Reader = nil
27954	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
27955	if err != nil {
27956		return nil, err
27957	}
27958	reqHeaders.Set("Content-Type", "application/json")
27959	c.urlParams_.Set("alt", alt)
27960	c.urlParams_.Set("prettyPrint", "false")
27961	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
27962	urls += "?" + c.urlParams_.Encode()
27963	req, err := http.NewRequest("POST", urls, body)
27964	if err != nil {
27965		return nil, err
27966	}
27967	req.Header = reqHeaders
27968	googleapi.Expand(req.URL, map[string]string{
27969		"name": c.name,
27970	})
27971	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27972}
27973
27974// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.reload" call.
27975// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
27976// Any non-2xx status code is an error. Response headers are in either
27977// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
27978// was returned at all) in error.(*googleapi.Error).Header. Use
27979// googleapi.IsNotModified to check whether the returned error was
27980// because http.StatusNotModified was returned.
27981func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27982	gensupport.SetOptions(c.urlParams_, opts...)
27983	res, err := c.doRequest("json")
27984	if res != nil && res.StatusCode == http.StatusNotModified {
27985		if res.Body != nil {
27986			res.Body.Close()
27987		}
27988		return nil, &googleapi.Error{
27989			Code:   res.StatusCode,
27990			Header: res.Header,
27991		}
27992	}
27993	if err != nil {
27994		return nil, err
27995	}
27996	defer googleapi.CloseBody(res)
27997	if err := googleapi.CheckResponse(res); err != nil {
27998		return nil, err
27999	}
28000	ret := &GoogleLongrunningOperation{
28001		ServerResponse: googleapi.ServerResponse{
28002			Header:         res.Header,
28003			HTTPStatusCode: res.StatusCode,
28004		},
28005	}
28006	target := &ret
28007	if err := gensupport.DecodeResponse(target, res); err != nil {
28008		return nil, err
28009	}
28010	return ret, nil
28011	// {
28012	//   "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
28013	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
28014	//   "httpMethod": "POST",
28015	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.reload",
28016	//   "parameterOrder": [
28017	//     "name"
28018	//   ],
28019	//   "parameters": {
28020	//     "name": {
28021	//       "description": "Required. The name of the document to reload. Format: `projects//locations//knowledgeBases//documents/`",
28022	//       "location": "path",
28023	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
28024	//       "required": true,
28025	//       "type": "string"
28026	//     }
28027	//   },
28028	//   "path": "v2beta1/{+name}:reload",
28029	//   "request": {
28030	//     "$ref": "GoogleCloudDialogflowV2beta1ReloadDocumentRequest"
28031	//   },
28032	//   "response": {
28033	//     "$ref": "GoogleLongrunningOperation"
28034	//   },
28035	//   "scopes": [
28036	//     "https://www.googleapis.com/auth/cloud-platform",
28037	//     "https://www.googleapis.com/auth/dialogflow"
28038	//   ]
28039	// }
28040
28041}
28042
28043// method id "dialogflow.projects.agent.sessions.deleteContexts":
28044
28045type ProjectsAgentSessionsDeleteContextsCall struct {
28046	s          *Service
28047	parent     string
28048	urlParams_ gensupport.URLParams
28049	ctx_       context.Context
28050	header_    http.Header
28051}
28052
28053// DeleteContexts: Deletes all active contexts in the specified session.
28054//
28055// - parent: The name of the session to delete all contexts from.
28056//   Supported formats: - `projects//agent/sessions/, -
28057//   `projects//locations//agent/sessions/`, -
28058//   `projects//agent/environments//users//sessions/`, -
28059//   `projects//locations//agent/environments//users//sessions/`, If
28060//   `Location ID` is not specified we assume default 'us' location. If
28061//   `Environment ID` is not specified we assume default 'draft'
28062//   environment. If `User ID` is not specified, we assume default '-'
28063//   user.
28064func (r *ProjectsAgentSessionsService) DeleteContexts(parent string) *ProjectsAgentSessionsDeleteContextsCall {
28065	c := &ProjectsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28066	c.parent = parent
28067	return c
28068}
28069
28070// Fields allows partial responses to be retrieved. See
28071// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28072// for more information.
28073func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall {
28074	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28075	return c
28076}
28077
28078// Context sets the context to be used in this call's Do method. Any
28079// pending HTTP request will be aborted if the provided context is
28080// canceled.
28081func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall {
28082	c.ctx_ = ctx
28083	return c
28084}
28085
28086// Header returns an http.Header that can be modified by the caller to
28087// add HTTP headers to the request.
28088func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header {
28089	if c.header_ == nil {
28090		c.header_ = make(http.Header)
28091	}
28092	return c.header_
28093}
28094
28095func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
28096	reqHeaders := make(http.Header)
28097	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28098	for k, v := range c.header_ {
28099		reqHeaders[k] = v
28100	}
28101	reqHeaders.Set("User-Agent", c.s.userAgent())
28102	var body io.Reader = nil
28103	c.urlParams_.Set("alt", alt)
28104	c.urlParams_.Set("prettyPrint", "false")
28105	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
28106	urls += "?" + c.urlParams_.Encode()
28107	req, err := http.NewRequest("DELETE", urls, body)
28108	if err != nil {
28109		return nil, err
28110	}
28111	req.Header = reqHeaders
28112	googleapi.Expand(req.URL, map[string]string{
28113		"parent": c.parent,
28114	})
28115	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28116}
28117
28118// Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call.
28119// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28120// non-2xx status code is an error. Response headers are in either
28121// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28122// returned at all) in error.(*googleapi.Error).Header. Use
28123// googleapi.IsNotModified to check whether the returned error was
28124// because http.StatusNotModified was returned.
28125func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28126	gensupport.SetOptions(c.urlParams_, opts...)
28127	res, err := c.doRequest("json")
28128	if res != nil && res.StatusCode == http.StatusNotModified {
28129		if res.Body != nil {
28130			res.Body.Close()
28131		}
28132		return nil, &googleapi.Error{
28133			Code:   res.StatusCode,
28134			Header: res.Header,
28135		}
28136	}
28137	if err != nil {
28138		return nil, err
28139	}
28140	defer googleapi.CloseBody(res)
28141	if err := googleapi.CheckResponse(res); err != nil {
28142		return nil, err
28143	}
28144	ret := &GoogleProtobufEmpty{
28145		ServerResponse: googleapi.ServerResponse{
28146			Header:         res.Header,
28147			HTTPStatusCode: res.StatusCode,
28148		},
28149	}
28150	target := &ret
28151	if err := gensupport.DecodeResponse(target, res); err != nil {
28152		return nil, err
28153	}
28154	return ret, nil
28155	// {
28156	//   "description": "Deletes all active contexts in the specified session.",
28157	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts",
28158	//   "httpMethod": "DELETE",
28159	//   "id": "dialogflow.projects.agent.sessions.deleteContexts",
28160	//   "parameterOrder": [
28161	//     "parent"
28162	//   ],
28163	//   "parameters": {
28164	//     "parent": {
28165	//       "description": "Required. The name of the session to delete all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
28166	//       "location": "path",
28167	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
28168	//       "required": true,
28169	//       "type": "string"
28170	//     }
28171	//   },
28172	//   "path": "v2beta1/{+parent}/contexts",
28173	//   "response": {
28174	//     "$ref": "GoogleProtobufEmpty"
28175	//   },
28176	//   "scopes": [
28177	//     "https://www.googleapis.com/auth/cloud-platform",
28178	//     "https://www.googleapis.com/auth/dialogflow"
28179	//   ]
28180	// }
28181
28182}
28183
28184// method id "dialogflow.projects.agent.sessions.detectIntent":
28185
28186type ProjectsAgentSessionsDetectIntentCall struct {
28187	s                                               *Service
28188	sessionid                                       string
28189	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
28190	urlParams_                                      gensupport.URLParams
28191	ctx_                                            context.Context
28192	header_                                         http.Header
28193}
28194
28195// DetectIntent: Processes a natural language query and returns
28196// structured, actionable data as a result. This method is not
28197// idempotent, because it may cause contexts and session entity types to
28198// be updated, which in turn might affect results of future queries.
28199// Note: Always use agent versions for production traffic. See Versions
28200// and environments
28201// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
28202//
28203// - session: The name of the session this query is sent to. Supported
28204//   formats: - `projects//agent/sessions/, -
28205//   `projects//locations//agent/sessions/`, -
28206//   `projects//agent/environments//users//sessions/`, -
28207//   `projects//locations//agent/environments//users//sessions/`, If
28208//   `Location ID` is not specified we assume default 'us' location. If
28209//   `Environment ID` is not specified, we assume default 'draft'
28210//   environment (`Environment ID` might be referred to as environment
28211//   name at some places). If `User ID` is not specified, we are using
28212//   "-". It's up to the API caller to choose an appropriate `Session
28213//   ID` and `User Id`. They can be a random number or some type of user
28214//   and session identifiers (preferably hashed). The length of the
28215//   `Session ID` and `User ID` must not exceed 36 characters. For more
28216//   information, see the API interactions guide
28217//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
28218//   Always use agent versions for production traffic. See Versions and
28219//   environments
28220//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
28221func (r *ProjectsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall {
28222	c := &ProjectsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28223	c.sessionid = sessionid
28224	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
28225	return c
28226}
28227
28228// Fields allows partial responses to be retrieved. See
28229// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28230// for more information.
28231func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall {
28232	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28233	return c
28234}
28235
28236// Context sets the context to be used in this call's Do method. Any
28237// pending HTTP request will be aborted if the provided context is
28238// canceled.
28239func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall {
28240	c.ctx_ = ctx
28241	return c
28242}
28243
28244// Header returns an http.Header that can be modified by the caller to
28245// add HTTP headers to the request.
28246func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header {
28247	if c.header_ == nil {
28248		c.header_ = make(http.Header)
28249	}
28250	return c.header_
28251}
28252
28253func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
28254	reqHeaders := make(http.Header)
28255	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28256	for k, v := range c.header_ {
28257		reqHeaders[k] = v
28258	}
28259	reqHeaders.Set("User-Agent", c.s.userAgent())
28260	var body io.Reader = nil
28261	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
28262	if err != nil {
28263		return nil, err
28264	}
28265	reqHeaders.Set("Content-Type", "application/json")
28266	c.urlParams_.Set("alt", alt)
28267	c.urlParams_.Set("prettyPrint", "false")
28268	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
28269	urls += "?" + c.urlParams_.Encode()
28270	req, err := http.NewRequest("POST", urls, body)
28271	if err != nil {
28272		return nil, err
28273	}
28274	req.Header = reqHeaders
28275	googleapi.Expand(req.URL, map[string]string{
28276		"session": c.sessionid,
28277	})
28278	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28279}
28280
28281// Do executes the "dialogflow.projects.agent.sessions.detectIntent" call.
28282// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
28283// error will be non-nil. Any non-2xx status code is an error. Response
28284// headers are in either
28285// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
28286// r or (if a response was returned at all) in
28287// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28288// whether the returned error was because http.StatusNotModified was
28289// returned.
28290func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
28291	gensupport.SetOptions(c.urlParams_, opts...)
28292	res, err := c.doRequest("json")
28293	if res != nil && res.StatusCode == http.StatusNotModified {
28294		if res.Body != nil {
28295			res.Body.Close()
28296		}
28297		return nil, &googleapi.Error{
28298			Code:   res.StatusCode,
28299			Header: res.Header,
28300		}
28301	}
28302	if err != nil {
28303		return nil, err
28304	}
28305	defer googleapi.CloseBody(res)
28306	if err := googleapi.CheckResponse(res); err != nil {
28307		return nil, err
28308	}
28309	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
28310		ServerResponse: googleapi.ServerResponse{
28311			Header:         res.Header,
28312			HTTPStatusCode: res.StatusCode,
28313		},
28314	}
28315	target := &ret
28316	if err := gensupport.DecodeResponse(target, res); err != nil {
28317		return nil, err
28318	}
28319	return ret, nil
28320	// {
28321	//   "description": "Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
28322	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}:detectIntent",
28323	//   "httpMethod": "POST",
28324	//   "id": "dialogflow.projects.agent.sessions.detectIntent",
28325	//   "parameterOrder": [
28326	//     "session"
28327	//   ],
28328	//   "parameters": {
28329	//     "session": {
28330	//       "description": "Required. The name of the session this query is sent to. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment (`Environment ID` might be referred to as environment name at some places). If `User ID` is not specified, we are using \"-\". It's up to the API caller to choose an appropriate `Session ID` and `User Id`. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the `Session ID` and `User ID` must not exceed 36 characters. For more information, see the [API interactions guide](https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
28331	//       "location": "path",
28332	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
28333	//       "required": true,
28334	//       "type": "string"
28335	//     }
28336	//   },
28337	//   "path": "v2beta1/{+session}:detectIntent",
28338	//   "request": {
28339	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
28340	//   },
28341	//   "response": {
28342	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
28343	//   },
28344	//   "scopes": [
28345	//     "https://www.googleapis.com/auth/cloud-platform",
28346	//     "https://www.googleapis.com/auth/dialogflow"
28347	//   ]
28348	// }
28349
28350}
28351
28352// method id "dialogflow.projects.agent.sessions.contexts.create":
28353
28354type ProjectsAgentSessionsContextsCreateCall struct {
28355	s                                   *Service
28356	parent                              string
28357	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
28358	urlParams_                          gensupport.URLParams
28359	ctx_                                context.Context
28360	header_                             http.Header
28361}
28362
28363// Create: Creates a context. If the specified context already exists,
28364// overrides the context.
28365//
28366// - parent: The session to create a context for. Supported formats: -
28367//   `projects//agent/sessions/, -
28368//   `projects//locations//agent/sessions/`, -
28369//   `projects//agent/environments//users//sessions/`, -
28370//   `projects//locations//agent/environments//users//sessions/`, If
28371//   `Location ID` is not specified we assume default 'us' location. If
28372//   `Environment ID` is not specified, we assume default 'draft'
28373//   environment. If `User ID` is not specified, we assume default '-'
28374//   user.
28375func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsCreateCall {
28376	c := &ProjectsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28377	c.parent = parent
28378	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
28379	return c
28380}
28381
28382// Fields allows partial responses to be retrieved. See
28383// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28384// for more information.
28385func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall {
28386	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28387	return c
28388}
28389
28390// Context sets the context to be used in this call's Do method. Any
28391// pending HTTP request will be aborted if the provided context is
28392// canceled.
28393func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall {
28394	c.ctx_ = ctx
28395	return c
28396}
28397
28398// Header returns an http.Header that can be modified by the caller to
28399// add HTTP headers to the request.
28400func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header {
28401	if c.header_ == nil {
28402		c.header_ = make(http.Header)
28403	}
28404	return c.header_
28405}
28406
28407func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
28408	reqHeaders := make(http.Header)
28409	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28410	for k, v := range c.header_ {
28411		reqHeaders[k] = v
28412	}
28413	reqHeaders.Set("User-Agent", c.s.userAgent())
28414	var body io.Reader = nil
28415	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
28416	if err != nil {
28417		return nil, err
28418	}
28419	reqHeaders.Set("Content-Type", "application/json")
28420	c.urlParams_.Set("alt", alt)
28421	c.urlParams_.Set("prettyPrint", "false")
28422	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
28423	urls += "?" + c.urlParams_.Encode()
28424	req, err := http.NewRequest("POST", urls, body)
28425	if err != nil {
28426		return nil, err
28427	}
28428	req.Header = reqHeaders
28429	googleapi.Expand(req.URL, map[string]string{
28430		"parent": c.parent,
28431	})
28432	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28433}
28434
28435// Do executes the "dialogflow.projects.agent.sessions.contexts.create" call.
28436// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
28437// non-nil. Any non-2xx status code is an error. Response headers are in
28438// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
28439// (if a response was returned at all) in
28440// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28441// whether the returned error was because http.StatusNotModified was
28442// returned.
28443func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
28444	gensupport.SetOptions(c.urlParams_, opts...)
28445	res, err := c.doRequest("json")
28446	if res != nil && res.StatusCode == http.StatusNotModified {
28447		if res.Body != nil {
28448			res.Body.Close()
28449		}
28450		return nil, &googleapi.Error{
28451			Code:   res.StatusCode,
28452			Header: res.Header,
28453		}
28454	}
28455	if err != nil {
28456		return nil, err
28457	}
28458	defer googleapi.CloseBody(res)
28459	if err := googleapi.CheckResponse(res); err != nil {
28460		return nil, err
28461	}
28462	ret := &GoogleCloudDialogflowV2beta1Context{
28463		ServerResponse: googleapi.ServerResponse{
28464			Header:         res.Header,
28465			HTTPStatusCode: res.StatusCode,
28466		},
28467	}
28468	target := &ret
28469	if err := gensupport.DecodeResponse(target, res); err != nil {
28470		return nil, err
28471	}
28472	return ret, nil
28473	// {
28474	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
28475	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts",
28476	//   "httpMethod": "POST",
28477	//   "id": "dialogflow.projects.agent.sessions.contexts.create",
28478	//   "parameterOrder": [
28479	//     "parent"
28480	//   ],
28481	//   "parameters": {
28482	//     "parent": {
28483	//       "description": "Required. The session to create a context for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
28484	//       "location": "path",
28485	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
28486	//       "required": true,
28487	//       "type": "string"
28488	//     }
28489	//   },
28490	//   "path": "v2beta1/{+parent}/contexts",
28491	//   "request": {
28492	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28493	//   },
28494	//   "response": {
28495	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28496	//   },
28497	//   "scopes": [
28498	//     "https://www.googleapis.com/auth/cloud-platform",
28499	//     "https://www.googleapis.com/auth/dialogflow"
28500	//   ]
28501	// }
28502
28503}
28504
28505// method id "dialogflow.projects.agent.sessions.contexts.delete":
28506
28507type ProjectsAgentSessionsContextsDeleteCall struct {
28508	s          *Service
28509	name       string
28510	urlParams_ gensupport.URLParams
28511	ctx_       context.Context
28512	header_    http.Header
28513}
28514
28515// Delete: Deletes the specified context.
28516//
28517// - name: The name of the context to delete. Supported formats: -
28518//   `projects//agent/sessions//contexts/`, -
28519//   `projects//locations//agent/sessions//contexts/`, -
28520//   `projects//agent/environments//users//sessions//contexts/`, -
28521//   `projects//locations//agent/environments//users//sessions//contexts/
28522//   `, If `Location ID` is not specified we assume default 'us'
28523//   location. If `Environment ID` is not specified, we assume default
28524//   'draft' environment. If `User ID` is not specified, we assume
28525//   default '-' user.
28526func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall {
28527	c := &ProjectsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28528	c.name = name
28529	return c
28530}
28531
28532// Fields allows partial responses to be retrieved. See
28533// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28534// for more information.
28535func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall {
28536	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28537	return c
28538}
28539
28540// Context sets the context to be used in this call's Do method. Any
28541// pending HTTP request will be aborted if the provided context is
28542// canceled.
28543func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall {
28544	c.ctx_ = ctx
28545	return c
28546}
28547
28548// Header returns an http.Header that can be modified by the caller to
28549// add HTTP headers to the request.
28550func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header {
28551	if c.header_ == nil {
28552		c.header_ = make(http.Header)
28553	}
28554	return c.header_
28555}
28556
28557func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
28558	reqHeaders := make(http.Header)
28559	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28560	for k, v := range c.header_ {
28561		reqHeaders[k] = v
28562	}
28563	reqHeaders.Set("User-Agent", c.s.userAgent())
28564	var body io.Reader = nil
28565	c.urlParams_.Set("alt", alt)
28566	c.urlParams_.Set("prettyPrint", "false")
28567	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28568	urls += "?" + c.urlParams_.Encode()
28569	req, err := http.NewRequest("DELETE", urls, body)
28570	if err != nil {
28571		return nil, err
28572	}
28573	req.Header = reqHeaders
28574	googleapi.Expand(req.URL, map[string]string{
28575		"name": c.name,
28576	})
28577	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28578}
28579
28580// Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call.
28581// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28582// non-2xx status code is an error. Response headers are in either
28583// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28584// returned at all) in error.(*googleapi.Error).Header. Use
28585// googleapi.IsNotModified to check whether the returned error was
28586// because http.StatusNotModified was returned.
28587func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28588	gensupport.SetOptions(c.urlParams_, opts...)
28589	res, err := c.doRequest("json")
28590	if res != nil && res.StatusCode == http.StatusNotModified {
28591		if res.Body != nil {
28592			res.Body.Close()
28593		}
28594		return nil, &googleapi.Error{
28595			Code:   res.StatusCode,
28596			Header: res.Header,
28597		}
28598	}
28599	if err != nil {
28600		return nil, err
28601	}
28602	defer googleapi.CloseBody(res)
28603	if err := googleapi.CheckResponse(res); err != nil {
28604		return nil, err
28605	}
28606	ret := &GoogleProtobufEmpty{
28607		ServerResponse: googleapi.ServerResponse{
28608			Header:         res.Header,
28609			HTTPStatusCode: res.StatusCode,
28610		},
28611	}
28612	target := &ret
28613	if err := gensupport.DecodeResponse(target, res); err != nil {
28614		return nil, err
28615	}
28616	return ret, nil
28617	// {
28618	//   "description": "Deletes the specified context.",
28619	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
28620	//   "httpMethod": "DELETE",
28621	//   "id": "dialogflow.projects.agent.sessions.contexts.delete",
28622	//   "parameterOrder": [
28623	//     "name"
28624	//   ],
28625	//   "parameters": {
28626	//     "name": {
28627	//       "description": "Required. The name of the context to delete. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
28628	//       "location": "path",
28629	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
28630	//       "required": true,
28631	//       "type": "string"
28632	//     }
28633	//   },
28634	//   "path": "v2beta1/{+name}",
28635	//   "response": {
28636	//     "$ref": "GoogleProtobufEmpty"
28637	//   },
28638	//   "scopes": [
28639	//     "https://www.googleapis.com/auth/cloud-platform",
28640	//     "https://www.googleapis.com/auth/dialogflow"
28641	//   ]
28642	// }
28643
28644}
28645
28646// method id "dialogflow.projects.agent.sessions.contexts.get":
28647
28648type ProjectsAgentSessionsContextsGetCall struct {
28649	s            *Service
28650	name         string
28651	urlParams_   gensupport.URLParams
28652	ifNoneMatch_ string
28653	ctx_         context.Context
28654	header_      http.Header
28655}
28656
28657// Get: Retrieves the specified context.
28658//
28659// - name: The name of the context. Supported formats: -
28660//   `projects//agent/sessions//contexts/`, -
28661//   `projects//locations//agent/sessions//contexts/`, -
28662//   `projects//agent/environments//users//sessions//contexts/`, -
28663//   `projects//locations//agent/environments//users//sessions//contexts/
28664//   `, If `Location ID` is not specified we assume default 'us'
28665//   location. If `Environment ID` is not specified, we assume default
28666//   'draft' environment. If `User ID` is not specified, we assume
28667//   default '-' user.
28668func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall {
28669	c := &ProjectsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28670	c.name = name
28671	return c
28672}
28673
28674// Fields allows partial responses to be retrieved. See
28675// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28676// for more information.
28677func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall {
28678	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28679	return c
28680}
28681
28682// IfNoneMatch sets the optional parameter which makes the operation
28683// fail if the object's ETag matches the given value. This is useful for
28684// getting updates only after the object has changed since the last
28685// request. Use googleapi.IsNotModified to check whether the response
28686// error from Do is the result of In-None-Match.
28687func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall {
28688	c.ifNoneMatch_ = entityTag
28689	return c
28690}
28691
28692// Context sets the context to be used in this call's Do method. Any
28693// pending HTTP request will be aborted if the provided context is
28694// canceled.
28695func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall {
28696	c.ctx_ = ctx
28697	return c
28698}
28699
28700// Header returns an http.Header that can be modified by the caller to
28701// add HTTP headers to the request.
28702func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header {
28703	if c.header_ == nil {
28704		c.header_ = make(http.Header)
28705	}
28706	return c.header_
28707}
28708
28709func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
28710	reqHeaders := make(http.Header)
28711	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28712	for k, v := range c.header_ {
28713		reqHeaders[k] = v
28714	}
28715	reqHeaders.Set("User-Agent", c.s.userAgent())
28716	if c.ifNoneMatch_ != "" {
28717		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28718	}
28719	var body io.Reader = nil
28720	c.urlParams_.Set("alt", alt)
28721	c.urlParams_.Set("prettyPrint", "false")
28722	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28723	urls += "?" + c.urlParams_.Encode()
28724	req, err := http.NewRequest("GET", urls, body)
28725	if err != nil {
28726		return nil, err
28727	}
28728	req.Header = reqHeaders
28729	googleapi.Expand(req.URL, map[string]string{
28730		"name": c.name,
28731	})
28732	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28733}
28734
28735// Do executes the "dialogflow.projects.agent.sessions.contexts.get" call.
28736// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
28737// non-nil. Any non-2xx status code is an error. Response headers are in
28738// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
28739// (if a response was returned at all) in
28740// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28741// whether the returned error was because http.StatusNotModified was
28742// returned.
28743func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
28744	gensupport.SetOptions(c.urlParams_, opts...)
28745	res, err := c.doRequest("json")
28746	if res != nil && res.StatusCode == http.StatusNotModified {
28747		if res.Body != nil {
28748			res.Body.Close()
28749		}
28750		return nil, &googleapi.Error{
28751			Code:   res.StatusCode,
28752			Header: res.Header,
28753		}
28754	}
28755	if err != nil {
28756		return nil, err
28757	}
28758	defer googleapi.CloseBody(res)
28759	if err := googleapi.CheckResponse(res); err != nil {
28760		return nil, err
28761	}
28762	ret := &GoogleCloudDialogflowV2beta1Context{
28763		ServerResponse: googleapi.ServerResponse{
28764			Header:         res.Header,
28765			HTTPStatusCode: res.StatusCode,
28766		},
28767	}
28768	target := &ret
28769	if err := gensupport.DecodeResponse(target, res); err != nil {
28770		return nil, err
28771	}
28772	return ret, nil
28773	// {
28774	//   "description": "Retrieves the specified context.",
28775	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
28776	//   "httpMethod": "GET",
28777	//   "id": "dialogflow.projects.agent.sessions.contexts.get",
28778	//   "parameterOrder": [
28779	//     "name"
28780	//   ],
28781	//   "parameters": {
28782	//     "name": {
28783	//       "description": "Required. The name of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
28784	//       "location": "path",
28785	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
28786	//       "required": true,
28787	//       "type": "string"
28788	//     }
28789	//   },
28790	//   "path": "v2beta1/{+name}",
28791	//   "response": {
28792	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28793	//   },
28794	//   "scopes": [
28795	//     "https://www.googleapis.com/auth/cloud-platform",
28796	//     "https://www.googleapis.com/auth/dialogflow"
28797	//   ]
28798	// }
28799
28800}
28801
28802// method id "dialogflow.projects.agent.sessions.contexts.list":
28803
28804type ProjectsAgentSessionsContextsListCall struct {
28805	s            *Service
28806	parent       string
28807	urlParams_   gensupport.URLParams
28808	ifNoneMatch_ string
28809	ctx_         context.Context
28810	header_      http.Header
28811}
28812
28813// List: Returns the list of all contexts in the specified session.
28814//
28815// - parent: The session to list all contexts from. Supported formats: -
28816//   `projects//agent/sessions/, -
28817//   `projects//locations//agent/sessions/`, -
28818//   `projects//agent/environments//users//sessions/`, -
28819//   `projects//locations//agent/environments//users//sessions/`, If
28820//   `Location ID` is not specified we assume default 'us' location. If
28821//   `Environment ID` is not specified, we assume default 'draft'
28822//   environment. If `User ID` is not specified, we assume default '-'
28823//   user.
28824func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall {
28825	c := &ProjectsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28826	c.parent = parent
28827	return c
28828}
28829
28830// PageSize sets the optional parameter "pageSize": The maximum number
28831// of items to return in a single page. By default 100 and at most 1000.
28832func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall {
28833	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28834	return c
28835}
28836
28837// PageToken sets the optional parameter "pageToken": The
28838// next_page_token value returned from a previous list request.
28839func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall {
28840	c.urlParams_.Set("pageToken", pageToken)
28841	return c
28842}
28843
28844// Fields allows partial responses to be retrieved. See
28845// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28846// for more information.
28847func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall {
28848	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28849	return c
28850}
28851
28852// IfNoneMatch sets the optional parameter which makes the operation
28853// fail if the object's ETag matches the given value. This is useful for
28854// getting updates only after the object has changed since the last
28855// request. Use googleapi.IsNotModified to check whether the response
28856// error from Do is the result of In-None-Match.
28857func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall {
28858	c.ifNoneMatch_ = entityTag
28859	return c
28860}
28861
28862// Context sets the context to be used in this call's Do method. Any
28863// pending HTTP request will be aborted if the provided context is
28864// canceled.
28865func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall {
28866	c.ctx_ = ctx
28867	return c
28868}
28869
28870// Header returns an http.Header that can be modified by the caller to
28871// add HTTP headers to the request.
28872func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header {
28873	if c.header_ == nil {
28874		c.header_ = make(http.Header)
28875	}
28876	return c.header_
28877}
28878
28879func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
28880	reqHeaders := make(http.Header)
28881	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28882	for k, v := range c.header_ {
28883		reqHeaders[k] = v
28884	}
28885	reqHeaders.Set("User-Agent", c.s.userAgent())
28886	if c.ifNoneMatch_ != "" {
28887		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28888	}
28889	var body io.Reader = nil
28890	c.urlParams_.Set("alt", alt)
28891	c.urlParams_.Set("prettyPrint", "false")
28892	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
28893	urls += "?" + c.urlParams_.Encode()
28894	req, err := http.NewRequest("GET", urls, body)
28895	if err != nil {
28896		return nil, err
28897	}
28898	req.Header = reqHeaders
28899	googleapi.Expand(req.URL, map[string]string{
28900		"parent": c.parent,
28901	})
28902	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28903}
28904
28905// Do executes the "dialogflow.projects.agent.sessions.contexts.list" call.
28906// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
28907// error will be non-nil. Any non-2xx status code is an error. Response
28908// headers are in either
28909// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
28910// r or (if a response was returned at all) in
28911// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28912// whether the returned error was because http.StatusNotModified was
28913// returned.
28914func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
28915	gensupport.SetOptions(c.urlParams_, opts...)
28916	res, err := c.doRequest("json")
28917	if res != nil && res.StatusCode == http.StatusNotModified {
28918		if res.Body != nil {
28919			res.Body.Close()
28920		}
28921		return nil, &googleapi.Error{
28922			Code:   res.StatusCode,
28923			Header: res.Header,
28924		}
28925	}
28926	if err != nil {
28927		return nil, err
28928	}
28929	defer googleapi.CloseBody(res)
28930	if err := googleapi.CheckResponse(res); err != nil {
28931		return nil, err
28932	}
28933	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
28934		ServerResponse: googleapi.ServerResponse{
28935			Header:         res.Header,
28936			HTTPStatusCode: res.StatusCode,
28937		},
28938	}
28939	target := &ret
28940	if err := gensupport.DecodeResponse(target, res); err != nil {
28941		return nil, err
28942	}
28943	return ret, nil
28944	// {
28945	//   "description": "Returns the list of all contexts in the specified session.",
28946	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts",
28947	//   "httpMethod": "GET",
28948	//   "id": "dialogflow.projects.agent.sessions.contexts.list",
28949	//   "parameterOrder": [
28950	//     "parent"
28951	//   ],
28952	//   "parameters": {
28953	//     "pageSize": {
28954	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
28955	//       "format": "int32",
28956	//       "location": "query",
28957	//       "type": "integer"
28958	//     },
28959	//     "pageToken": {
28960	//       "description": "Optional. The next_page_token value returned from a previous list request.",
28961	//       "location": "query",
28962	//       "type": "string"
28963	//     },
28964	//     "parent": {
28965	//       "description": "Required. The session to list all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
28966	//       "location": "path",
28967	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
28968	//       "required": true,
28969	//       "type": "string"
28970	//     }
28971	//   },
28972	//   "path": "v2beta1/{+parent}/contexts",
28973	//   "response": {
28974	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
28975	//   },
28976	//   "scopes": [
28977	//     "https://www.googleapis.com/auth/cloud-platform",
28978	//     "https://www.googleapis.com/auth/dialogflow"
28979	//   ]
28980	// }
28981
28982}
28983
28984// Pages invokes f for each page of results.
28985// A non-nil error returned from f will halt the iteration.
28986// The provided context supersedes any context provided to the Context method.
28987func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
28988	c.ctx_ = ctx
28989	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
28990	for {
28991		x, err := c.Do()
28992		if err != nil {
28993			return err
28994		}
28995		if err := f(x); err != nil {
28996			return err
28997		}
28998		if x.NextPageToken == "" {
28999			return nil
29000		}
29001		c.PageToken(x.NextPageToken)
29002	}
29003}
29004
29005// method id "dialogflow.projects.agent.sessions.contexts.patch":
29006
29007type ProjectsAgentSessionsContextsPatchCall struct {
29008	s                                   *Service
29009	nameid                              string
29010	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
29011	urlParams_                          gensupport.URLParams
29012	ctx_                                context.Context
29013	header_                             http.Header
29014}
29015
29016// Patch: Updates the specified context.
29017//
29018// - name: The unique identifier of the context. Supported formats: -
29019//   `projects//agent/sessions//contexts/`, -
29020//   `projects//locations//agent/sessions//contexts/`, -
29021//   `projects//agent/environments//users//sessions//contexts/`, -
29022//   `projects//locations//agent/environments//users//sessions//contexts/
29023//   `, The `Context ID` is always converted to lowercase, may only
29024//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
29025//   long. If `Environment ID` is not specified, we assume default
29026//   'draft' environment. If `User ID` is not specified, we assume
29027//   default '-' user. The following context names are reserved for
29028//   internal use by Dialogflow. You should not use these contexts or
29029//   create contexts with these names: * `__system_counters__` *
29030//   `*_id_dialog_context` * `*_dialog_params_size`.
29031func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsPatchCall {
29032	c := &ProjectsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29033	c.nameid = nameid
29034	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
29035	return c
29036}
29037
29038// UpdateMask sets the optional parameter "updateMask": The mask to
29039// control which fields get updated.
29040func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall {
29041	c.urlParams_.Set("updateMask", updateMask)
29042	return c
29043}
29044
29045// Fields allows partial responses to be retrieved. See
29046// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29047// for more information.
29048func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall {
29049	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29050	return c
29051}
29052
29053// Context sets the context to be used in this call's Do method. Any
29054// pending HTTP request will be aborted if the provided context is
29055// canceled.
29056func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall {
29057	c.ctx_ = ctx
29058	return c
29059}
29060
29061// Header returns an http.Header that can be modified by the caller to
29062// add HTTP headers to the request.
29063func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header {
29064	if c.header_ == nil {
29065		c.header_ = make(http.Header)
29066	}
29067	return c.header_
29068}
29069
29070func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
29071	reqHeaders := make(http.Header)
29072	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29073	for k, v := range c.header_ {
29074		reqHeaders[k] = v
29075	}
29076	reqHeaders.Set("User-Agent", c.s.userAgent())
29077	var body io.Reader = nil
29078	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
29079	if err != nil {
29080		return nil, err
29081	}
29082	reqHeaders.Set("Content-Type", "application/json")
29083	c.urlParams_.Set("alt", alt)
29084	c.urlParams_.Set("prettyPrint", "false")
29085	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29086	urls += "?" + c.urlParams_.Encode()
29087	req, err := http.NewRequest("PATCH", urls, body)
29088	if err != nil {
29089		return nil, err
29090	}
29091	req.Header = reqHeaders
29092	googleapi.Expand(req.URL, map[string]string{
29093		"name": c.nameid,
29094	})
29095	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29096}
29097
29098// Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call.
29099// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
29100// non-nil. Any non-2xx status code is an error. Response headers are in
29101// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
29102// (if a response was returned at all) in
29103// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29104// whether the returned error was because http.StatusNotModified was
29105// returned.
29106func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
29107	gensupport.SetOptions(c.urlParams_, opts...)
29108	res, err := c.doRequest("json")
29109	if res != nil && res.StatusCode == http.StatusNotModified {
29110		if res.Body != nil {
29111			res.Body.Close()
29112		}
29113		return nil, &googleapi.Error{
29114			Code:   res.StatusCode,
29115			Header: res.Header,
29116		}
29117	}
29118	if err != nil {
29119		return nil, err
29120	}
29121	defer googleapi.CloseBody(res)
29122	if err := googleapi.CheckResponse(res); err != nil {
29123		return nil, err
29124	}
29125	ret := &GoogleCloudDialogflowV2beta1Context{
29126		ServerResponse: googleapi.ServerResponse{
29127			Header:         res.Header,
29128			HTTPStatusCode: res.StatusCode,
29129		},
29130	}
29131	target := &ret
29132	if err := gensupport.DecodeResponse(target, res); err != nil {
29133		return nil, err
29134	}
29135	return ret, nil
29136	// {
29137	//   "description": "Updates the specified context.",
29138	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
29139	//   "httpMethod": "PATCH",
29140	//   "id": "dialogflow.projects.agent.sessions.contexts.patch",
29141	//   "parameterOrder": [
29142	//     "name"
29143	//   ],
29144	//   "parameters": {
29145	//     "name": {
29146	//       "description": "Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`",
29147	//       "location": "path",
29148	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
29149	//       "required": true,
29150	//       "type": "string"
29151	//     },
29152	//     "updateMask": {
29153	//       "description": "Optional. The mask to control which fields get updated.",
29154	//       "format": "google-fieldmask",
29155	//       "location": "query",
29156	//       "type": "string"
29157	//     }
29158	//   },
29159	//   "path": "v2beta1/{+name}",
29160	//   "request": {
29161	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
29162	//   },
29163	//   "response": {
29164	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
29165	//   },
29166	//   "scopes": [
29167	//     "https://www.googleapis.com/auth/cloud-platform",
29168	//     "https://www.googleapis.com/auth/dialogflow"
29169	//   ]
29170	// }
29171
29172}
29173
29174// method id "dialogflow.projects.agent.sessions.entityTypes.create":
29175
29176type ProjectsAgentSessionsEntityTypesCreateCall struct {
29177	s                                             *Service
29178	parent                                        string
29179	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
29180	urlParams_                                    gensupport.URLParams
29181	ctx_                                          context.Context
29182	header_                                       http.Header
29183}
29184
29185// Create: Creates a session entity type. If the specified session
29186// entity type already exists, overrides the session entity type. This
29187// method doesn't work with Google Assistant integration. Contact
29188// Dialogflow support if you need to use session entities with Google
29189// Assistant integration.
29190//
29191// - parent: The session to create a session entity type for. Supported
29192//   formats: - `projects//agent/sessions/, -
29193//   `projects//locations//agent/sessions/`, -
29194//   `projects//agent/environments//users//sessions/`, -
29195//   `projects//locations//agent/environments//users//sessions/`, If
29196//   `Location ID` is not specified we assume default 'us' location. If
29197//   `Environment ID` is not specified, we assume default 'draft'
29198//   environment. If `User ID` is not specified, we assume default '-'
29199//   user.
29200func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesCreateCall {
29201	c := &ProjectsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29202	c.parent = parent
29203	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
29204	return c
29205}
29206
29207// Fields allows partial responses to be retrieved. See
29208// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29209// for more information.
29210func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall {
29211	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29212	return c
29213}
29214
29215// Context sets the context to be used in this call's Do method. Any
29216// pending HTTP request will be aborted if the provided context is
29217// canceled.
29218func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall {
29219	c.ctx_ = ctx
29220	return c
29221}
29222
29223// Header returns an http.Header that can be modified by the caller to
29224// add HTTP headers to the request.
29225func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header {
29226	if c.header_ == nil {
29227		c.header_ = make(http.Header)
29228	}
29229	return c.header_
29230}
29231
29232func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
29233	reqHeaders := make(http.Header)
29234	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29235	for k, v := range c.header_ {
29236		reqHeaders[k] = v
29237	}
29238	reqHeaders.Set("User-Agent", c.s.userAgent())
29239	var body io.Reader = nil
29240	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
29241	if err != nil {
29242		return nil, err
29243	}
29244	reqHeaders.Set("Content-Type", "application/json")
29245	c.urlParams_.Set("alt", alt)
29246	c.urlParams_.Set("prettyPrint", "false")
29247	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
29248	urls += "?" + c.urlParams_.Encode()
29249	req, err := http.NewRequest("POST", urls, body)
29250	if err != nil {
29251		return nil, err
29252	}
29253	req.Header = reqHeaders
29254	googleapi.Expand(req.URL, map[string]string{
29255		"parent": c.parent,
29256	})
29257	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29258}
29259
29260// Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call.
29261// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
29262// error will be non-nil. Any non-2xx status code is an error. Response
29263// headers are in either
29264// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
29265// or (if a response was returned at all) in
29266// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29267// whether the returned error was because http.StatusNotModified was
29268// returned.
29269func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
29270	gensupport.SetOptions(c.urlParams_, opts...)
29271	res, err := c.doRequest("json")
29272	if res != nil && res.StatusCode == http.StatusNotModified {
29273		if res.Body != nil {
29274			res.Body.Close()
29275		}
29276		return nil, &googleapi.Error{
29277			Code:   res.StatusCode,
29278			Header: res.Header,
29279		}
29280	}
29281	if err != nil {
29282		return nil, err
29283	}
29284	defer googleapi.CloseBody(res)
29285	if err := googleapi.CheckResponse(res); err != nil {
29286		return nil, err
29287	}
29288	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
29289		ServerResponse: googleapi.ServerResponse{
29290			Header:         res.Header,
29291			HTTPStatusCode: res.StatusCode,
29292		},
29293	}
29294	target := &ret
29295	if err := gensupport.DecodeResponse(target, res); err != nil {
29296		return nil, err
29297	}
29298	return ret, nil
29299	// {
29300	//   "description": "Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
29301	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes",
29302	//   "httpMethod": "POST",
29303	//   "id": "dialogflow.projects.agent.sessions.entityTypes.create",
29304	//   "parameterOrder": [
29305	//     "parent"
29306	//   ],
29307	//   "parameters": {
29308	//     "parent": {
29309	//       "description": "Required. The session to create a session entity type for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
29310	//       "location": "path",
29311	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
29312	//       "required": true,
29313	//       "type": "string"
29314	//     }
29315	//   },
29316	//   "path": "v2beta1/{+parent}/entityTypes",
29317	//   "request": {
29318	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
29319	//   },
29320	//   "response": {
29321	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
29322	//   },
29323	//   "scopes": [
29324	//     "https://www.googleapis.com/auth/cloud-platform",
29325	//     "https://www.googleapis.com/auth/dialogflow"
29326	//   ]
29327	// }
29328
29329}
29330
29331// method id "dialogflow.projects.agent.sessions.entityTypes.delete":
29332
29333type ProjectsAgentSessionsEntityTypesDeleteCall struct {
29334	s          *Service
29335	name       string
29336	urlParams_ gensupport.URLParams
29337	ctx_       context.Context
29338	header_    http.Header
29339}
29340
29341// Delete: Deletes the specified session entity type. This method
29342// doesn't work with Google Assistant integration. Contact Dialogflow
29343// support if you need to use session entities with Google Assistant
29344// integration.
29345//
29346// - name: The name of the entity type to delete. Supported formats: -
29347//   `projects//agent/sessions//entityTypes/` -
29348//   `projects//locations//agent/sessions//entityTypes/` -
29349//   `projects//agent/environments//users//sessions//entityTypes/` -
29350//   `projects//locations//agent/environments/
29351//   /users//sessions//entityTypes/` If `Location ID` is not specified
29352//   we assume default 'us' location. If `Environment ID` is not
29353//   specified, we assume default 'draft' environment. If `User ID` is
29354//   not specified, we assume default '-' user.
29355func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall {
29356	c := &ProjectsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29357	c.name = name
29358	return c
29359}
29360
29361// Fields allows partial responses to be retrieved. See
29362// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29363// for more information.
29364func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall {
29365	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29366	return c
29367}
29368
29369// Context sets the context to be used in this call's Do method. Any
29370// pending HTTP request will be aborted if the provided context is
29371// canceled.
29372func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall {
29373	c.ctx_ = ctx
29374	return c
29375}
29376
29377// Header returns an http.Header that can be modified by the caller to
29378// add HTTP headers to the request.
29379func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
29380	if c.header_ == nil {
29381		c.header_ = make(http.Header)
29382	}
29383	return c.header_
29384}
29385
29386func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
29387	reqHeaders := make(http.Header)
29388	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29389	for k, v := range c.header_ {
29390		reqHeaders[k] = v
29391	}
29392	reqHeaders.Set("User-Agent", c.s.userAgent())
29393	var body io.Reader = nil
29394	c.urlParams_.Set("alt", alt)
29395	c.urlParams_.Set("prettyPrint", "false")
29396	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29397	urls += "?" + c.urlParams_.Encode()
29398	req, err := http.NewRequest("DELETE", urls, body)
29399	if err != nil {
29400		return nil, err
29401	}
29402	req.Header = reqHeaders
29403	googleapi.Expand(req.URL, map[string]string{
29404		"name": c.name,
29405	})
29406	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29407}
29408
29409// Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call.
29410// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29411// non-2xx status code is an error. Response headers are in either
29412// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29413// returned at all) in error.(*googleapi.Error).Header. Use
29414// googleapi.IsNotModified to check whether the returned error was
29415// because http.StatusNotModified was returned.
29416func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29417	gensupport.SetOptions(c.urlParams_, opts...)
29418	res, err := c.doRequest("json")
29419	if res != nil && res.StatusCode == http.StatusNotModified {
29420		if res.Body != nil {
29421			res.Body.Close()
29422		}
29423		return nil, &googleapi.Error{
29424			Code:   res.StatusCode,
29425			Header: res.Header,
29426		}
29427	}
29428	if err != nil {
29429		return nil, err
29430	}
29431	defer googleapi.CloseBody(res)
29432	if err := googleapi.CheckResponse(res); err != nil {
29433		return nil, err
29434	}
29435	ret := &GoogleProtobufEmpty{
29436		ServerResponse: googleapi.ServerResponse{
29437			Header:         res.Header,
29438			HTTPStatusCode: res.StatusCode,
29439		},
29440	}
29441	target := &ret
29442	if err := gensupport.DecodeResponse(target, res); err != nil {
29443		return nil, err
29444	}
29445	return ret, nil
29446	// {
29447	//   "description": "Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
29448	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
29449	//   "httpMethod": "DELETE",
29450	//   "id": "dialogflow.projects.agent.sessions.entityTypes.delete",
29451	//   "parameterOrder": [
29452	//     "name"
29453	//   ],
29454	//   "parameters": {
29455	//     "name": {
29456	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
29457	//       "location": "path",
29458	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
29459	//       "required": true,
29460	//       "type": "string"
29461	//     }
29462	//   },
29463	//   "path": "v2beta1/{+name}",
29464	//   "response": {
29465	//     "$ref": "GoogleProtobufEmpty"
29466	//   },
29467	//   "scopes": [
29468	//     "https://www.googleapis.com/auth/cloud-platform",
29469	//     "https://www.googleapis.com/auth/dialogflow"
29470	//   ]
29471	// }
29472
29473}
29474
29475// method id "dialogflow.projects.agent.sessions.entityTypes.get":
29476
29477type ProjectsAgentSessionsEntityTypesGetCall struct {
29478	s            *Service
29479	name         string
29480	urlParams_   gensupport.URLParams
29481	ifNoneMatch_ string
29482	ctx_         context.Context
29483	header_      http.Header
29484}
29485
29486// Get: Retrieves the specified session entity type. This method doesn't
29487// work with Google Assistant integration. Contact Dialogflow support if
29488// you need to use session entities with Google Assistant integration.
29489//
29490// - name: The name of the session entity type. Supported formats: -
29491//   `projects//agent/sessions//entityTypes/` -
29492//   `projects//locations//agent/sessions//entityTypes/` -
29493//   `projects//agent/environments//users//sessions//entityTypes/` -
29494//   `projects//locations//agent/environments/
29495//   /users//sessions//entityTypes/` If `Location ID` is not specified
29496//   we assume default 'us' location. If `Environment ID` is not
29497//   specified, we assume default 'draft' environment. If `User ID` is
29498//   not specified, we assume default '-' user.
29499func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall {
29500	c := &ProjectsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29501	c.name = name
29502	return c
29503}
29504
29505// Fields allows partial responses to be retrieved. See
29506// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29507// for more information.
29508func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall {
29509	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29510	return c
29511}
29512
29513// IfNoneMatch sets the optional parameter which makes the operation
29514// fail if the object's ETag matches the given value. This is useful for
29515// getting updates only after the object has changed since the last
29516// request. Use googleapi.IsNotModified to check whether the response
29517// error from Do is the result of In-None-Match.
29518func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall {
29519	c.ifNoneMatch_ = entityTag
29520	return c
29521}
29522
29523// Context sets the context to be used in this call's Do method. Any
29524// pending HTTP request will be aborted if the provided context is
29525// canceled.
29526func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall {
29527	c.ctx_ = ctx
29528	return c
29529}
29530
29531// Header returns an http.Header that can be modified by the caller to
29532// add HTTP headers to the request.
29533func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header {
29534	if c.header_ == nil {
29535		c.header_ = make(http.Header)
29536	}
29537	return c.header_
29538}
29539
29540func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
29541	reqHeaders := make(http.Header)
29542	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29543	for k, v := range c.header_ {
29544		reqHeaders[k] = v
29545	}
29546	reqHeaders.Set("User-Agent", c.s.userAgent())
29547	if c.ifNoneMatch_ != "" {
29548		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29549	}
29550	var body io.Reader = nil
29551	c.urlParams_.Set("alt", alt)
29552	c.urlParams_.Set("prettyPrint", "false")
29553	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29554	urls += "?" + c.urlParams_.Encode()
29555	req, err := http.NewRequest("GET", urls, body)
29556	if err != nil {
29557		return nil, err
29558	}
29559	req.Header = reqHeaders
29560	googleapi.Expand(req.URL, map[string]string{
29561		"name": c.name,
29562	})
29563	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29564}
29565
29566// Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call.
29567// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
29568// error will be non-nil. Any non-2xx status code is an error. Response
29569// headers are in either
29570// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
29571// or (if a response was returned at all) in
29572// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29573// whether the returned error was because http.StatusNotModified was
29574// returned.
29575func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
29576	gensupport.SetOptions(c.urlParams_, opts...)
29577	res, err := c.doRequest("json")
29578	if res != nil && res.StatusCode == http.StatusNotModified {
29579		if res.Body != nil {
29580			res.Body.Close()
29581		}
29582		return nil, &googleapi.Error{
29583			Code:   res.StatusCode,
29584			Header: res.Header,
29585		}
29586	}
29587	if err != nil {
29588		return nil, err
29589	}
29590	defer googleapi.CloseBody(res)
29591	if err := googleapi.CheckResponse(res); err != nil {
29592		return nil, err
29593	}
29594	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
29595		ServerResponse: googleapi.ServerResponse{
29596			Header:         res.Header,
29597			HTTPStatusCode: res.StatusCode,
29598		},
29599	}
29600	target := &ret
29601	if err := gensupport.DecodeResponse(target, res); err != nil {
29602		return nil, err
29603	}
29604	return ret, nil
29605	// {
29606	//   "description": "Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
29607	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
29608	//   "httpMethod": "GET",
29609	//   "id": "dialogflow.projects.agent.sessions.entityTypes.get",
29610	//   "parameterOrder": [
29611	//     "name"
29612	//   ],
29613	//   "parameters": {
29614	//     "name": {
29615	//       "description": "Required. The name of the session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
29616	//       "location": "path",
29617	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
29618	//       "required": true,
29619	//       "type": "string"
29620	//     }
29621	//   },
29622	//   "path": "v2beta1/{+name}",
29623	//   "response": {
29624	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
29625	//   },
29626	//   "scopes": [
29627	//     "https://www.googleapis.com/auth/cloud-platform",
29628	//     "https://www.googleapis.com/auth/dialogflow"
29629	//   ]
29630	// }
29631
29632}
29633
29634// method id "dialogflow.projects.agent.sessions.entityTypes.list":
29635
29636type ProjectsAgentSessionsEntityTypesListCall struct {
29637	s            *Service
29638	parent       string
29639	urlParams_   gensupport.URLParams
29640	ifNoneMatch_ string
29641	ctx_         context.Context
29642	header_      http.Header
29643}
29644
29645// List: Returns the list of all session entity types in the specified
29646// session. This method doesn't work with Google Assistant integration.
29647// Contact Dialogflow support if you need to use session entities with
29648// Google Assistant integration.
29649//
29650// - parent: The session to list all session entity types from.
29651//   Supported formats: - `projects//agent/sessions/, -
29652//   `projects//locations//agent/sessions/`, -
29653//   `projects//agent/environments//users//sessions/`, -
29654//   `projects//locations//agent/environments//users//sessions/`, If
29655//   `Location ID` is not specified we assume default 'us' location. If
29656//   `Environment ID` is not specified, we assume default 'draft'
29657//   environment. If `User ID` is not specified, we assume default '-'
29658//   user.
29659func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall {
29660	c := &ProjectsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29661	c.parent = parent
29662	return c
29663}
29664
29665// PageSize sets the optional parameter "pageSize": The maximum number
29666// of items to return in a single page. By default 100 and at most 1000.
29667func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall {
29668	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29669	return c
29670}
29671
29672// PageToken sets the optional parameter "pageToken": The
29673// next_page_token value returned from a previous list request.
29674func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall {
29675	c.urlParams_.Set("pageToken", pageToken)
29676	return c
29677}
29678
29679// Fields allows partial responses to be retrieved. See
29680// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29681// for more information.
29682func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall {
29683	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29684	return c
29685}
29686
29687// IfNoneMatch sets the optional parameter which makes the operation
29688// fail if the object's ETag matches the given value. This is useful for
29689// getting updates only after the object has changed since the last
29690// request. Use googleapi.IsNotModified to check whether the response
29691// error from Do is the result of In-None-Match.
29692func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall {
29693	c.ifNoneMatch_ = entityTag
29694	return c
29695}
29696
29697// Context sets the context to be used in this call's Do method. Any
29698// pending HTTP request will be aborted if the provided context is
29699// canceled.
29700func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall {
29701	c.ctx_ = ctx
29702	return c
29703}
29704
29705// Header returns an http.Header that can be modified by the caller to
29706// add HTTP headers to the request.
29707func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header {
29708	if c.header_ == nil {
29709		c.header_ = make(http.Header)
29710	}
29711	return c.header_
29712}
29713
29714func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
29715	reqHeaders := make(http.Header)
29716	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29717	for k, v := range c.header_ {
29718		reqHeaders[k] = v
29719	}
29720	reqHeaders.Set("User-Agent", c.s.userAgent())
29721	if c.ifNoneMatch_ != "" {
29722		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29723	}
29724	var body io.Reader = nil
29725	c.urlParams_.Set("alt", alt)
29726	c.urlParams_.Set("prettyPrint", "false")
29727	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
29728	urls += "?" + c.urlParams_.Encode()
29729	req, err := http.NewRequest("GET", urls, body)
29730	if err != nil {
29731		return nil, err
29732	}
29733	req.Header = reqHeaders
29734	googleapi.Expand(req.URL, map[string]string{
29735		"parent": c.parent,
29736	})
29737	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29738}
29739
29740// Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call.
29741// Exactly one of
29742// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
29743// will be non-nil. Any non-2xx status code is an error. Response
29744// headers are in either
29745// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
29746// onse.Header or (if a response was returned at all) in
29747// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29748// whether the returned error was because http.StatusNotModified was
29749// returned.
29750func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
29751	gensupport.SetOptions(c.urlParams_, opts...)
29752	res, err := c.doRequest("json")
29753	if res != nil && res.StatusCode == http.StatusNotModified {
29754		if res.Body != nil {
29755			res.Body.Close()
29756		}
29757		return nil, &googleapi.Error{
29758			Code:   res.StatusCode,
29759			Header: res.Header,
29760		}
29761	}
29762	if err != nil {
29763		return nil, err
29764	}
29765	defer googleapi.CloseBody(res)
29766	if err := googleapi.CheckResponse(res); err != nil {
29767		return nil, err
29768	}
29769	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
29770		ServerResponse: googleapi.ServerResponse{
29771			Header:         res.Header,
29772			HTTPStatusCode: res.StatusCode,
29773		},
29774	}
29775	target := &ret
29776	if err := gensupport.DecodeResponse(target, res); err != nil {
29777		return nil, err
29778	}
29779	return ret, nil
29780	// {
29781	//   "description": "Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
29782	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes",
29783	//   "httpMethod": "GET",
29784	//   "id": "dialogflow.projects.agent.sessions.entityTypes.list",
29785	//   "parameterOrder": [
29786	//     "parent"
29787	//   ],
29788	//   "parameters": {
29789	//     "pageSize": {
29790	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
29791	//       "format": "int32",
29792	//       "location": "query",
29793	//       "type": "integer"
29794	//     },
29795	//     "pageToken": {
29796	//       "description": "Optional. The next_page_token value returned from a previous list request.",
29797	//       "location": "query",
29798	//       "type": "string"
29799	//     },
29800	//     "parent": {
29801	//       "description": "Required. The session to list all session entity types from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
29802	//       "location": "path",
29803	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
29804	//       "required": true,
29805	//       "type": "string"
29806	//     }
29807	//   },
29808	//   "path": "v2beta1/{+parent}/entityTypes",
29809	//   "response": {
29810	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
29811	//   },
29812	//   "scopes": [
29813	//     "https://www.googleapis.com/auth/cloud-platform",
29814	//     "https://www.googleapis.com/auth/dialogflow"
29815	//   ]
29816	// }
29817
29818}
29819
29820// Pages invokes f for each page of results.
29821// A non-nil error returned from f will halt the iteration.
29822// The provided context supersedes any context provided to the Context method.
29823func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
29824	c.ctx_ = ctx
29825	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
29826	for {
29827		x, err := c.Do()
29828		if err != nil {
29829			return err
29830		}
29831		if err := f(x); err != nil {
29832			return err
29833		}
29834		if x.NextPageToken == "" {
29835			return nil
29836		}
29837		c.PageToken(x.NextPageToken)
29838	}
29839}
29840
29841// method id "dialogflow.projects.agent.sessions.entityTypes.patch":
29842
29843type ProjectsAgentSessionsEntityTypesPatchCall struct {
29844	s                                             *Service
29845	nameid                                        string
29846	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
29847	urlParams_                                    gensupport.URLParams
29848	ctx_                                          context.Context
29849	header_                                       http.Header
29850}
29851
29852// Patch: Updates the specified session entity type. This method doesn't
29853// work with Google Assistant integration. Contact Dialogflow support if
29854// you need to use session entities with Google Assistant integration.
29855//
29856// - name: The unique identifier of this session entity type. Supported
29857//   formats: - `projects//agent/sessions//entityTypes/` -
29858//   `projects//locations//agent/sessions//entityTypes/` -
29859//   `projects//agent/environments//users//sessions//entityTypes/` -
29860//   `projects//locations//agent/environments/
29861//   /users//sessions//entityTypes/` If `Location ID` is not specified
29862//   we assume default 'us' location. If `Environment ID` is not
29863//   specified, we assume default 'draft' environment. If `User ID` is
29864//   not specified, we assume default '-' user. `` must be the display
29865//   name of an existing entity type in the same agent that will be
29866//   overridden or supplemented.
29867func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesPatchCall {
29868	c := &ProjectsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29869	c.nameid = nameid
29870	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
29871	return c
29872}
29873
29874// UpdateMask sets the optional parameter "updateMask": The mask to
29875// control which fields get updated.
29876func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall {
29877	c.urlParams_.Set("updateMask", updateMask)
29878	return c
29879}
29880
29881// Fields allows partial responses to be retrieved. See
29882// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29883// for more information.
29884func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall {
29885	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29886	return c
29887}
29888
29889// Context sets the context to be used in this call's Do method. Any
29890// pending HTTP request will be aborted if the provided context is
29891// canceled.
29892func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall {
29893	c.ctx_ = ctx
29894	return c
29895}
29896
29897// Header returns an http.Header that can be modified by the caller to
29898// add HTTP headers to the request.
29899func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header {
29900	if c.header_ == nil {
29901		c.header_ = make(http.Header)
29902	}
29903	return c.header_
29904}
29905
29906func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
29907	reqHeaders := make(http.Header)
29908	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29909	for k, v := range c.header_ {
29910		reqHeaders[k] = v
29911	}
29912	reqHeaders.Set("User-Agent", c.s.userAgent())
29913	var body io.Reader = nil
29914	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
29915	if err != nil {
29916		return nil, err
29917	}
29918	reqHeaders.Set("Content-Type", "application/json")
29919	c.urlParams_.Set("alt", alt)
29920	c.urlParams_.Set("prettyPrint", "false")
29921	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29922	urls += "?" + c.urlParams_.Encode()
29923	req, err := http.NewRequest("PATCH", urls, body)
29924	if err != nil {
29925		return nil, err
29926	}
29927	req.Header = reqHeaders
29928	googleapi.Expand(req.URL, map[string]string{
29929		"name": c.nameid,
29930	})
29931	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29932}
29933
29934// Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call.
29935// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
29936// error will be non-nil. Any non-2xx status code is an error. Response
29937// headers are in either
29938// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
29939// or (if a response was returned at all) in
29940// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29941// whether the returned error was because http.StatusNotModified was
29942// returned.
29943func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
29944	gensupport.SetOptions(c.urlParams_, opts...)
29945	res, err := c.doRequest("json")
29946	if res != nil && res.StatusCode == http.StatusNotModified {
29947		if res.Body != nil {
29948			res.Body.Close()
29949		}
29950		return nil, &googleapi.Error{
29951			Code:   res.StatusCode,
29952			Header: res.Header,
29953		}
29954	}
29955	if err != nil {
29956		return nil, err
29957	}
29958	defer googleapi.CloseBody(res)
29959	if err := googleapi.CheckResponse(res); err != nil {
29960		return nil, err
29961	}
29962	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
29963		ServerResponse: googleapi.ServerResponse{
29964			Header:         res.Header,
29965			HTTPStatusCode: res.StatusCode,
29966		},
29967	}
29968	target := &ret
29969	if err := gensupport.DecodeResponse(target, res); err != nil {
29970		return nil, err
29971	}
29972	return ret, nil
29973	// {
29974	//   "description": "Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
29975	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
29976	//   "httpMethod": "PATCH",
29977	//   "id": "dialogflow.projects.agent.sessions.entityTypes.patch",
29978	//   "parameterOrder": [
29979	//     "name"
29980	//   ],
29981	//   "parameters": {
29982	//     "name": {
29983	//       "description": "Required. The unique identifier of this session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.",
29984	//       "location": "path",
29985	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
29986	//       "required": true,
29987	//       "type": "string"
29988	//     },
29989	//     "updateMask": {
29990	//       "description": "Optional. The mask to control which fields get updated.",
29991	//       "format": "google-fieldmask",
29992	//       "location": "query",
29993	//       "type": "string"
29994	//     }
29995	//   },
29996	//   "path": "v2beta1/{+name}",
29997	//   "request": {
29998	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
29999	//   },
30000	//   "response": {
30001	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
30002	//   },
30003	//   "scopes": [
30004	//     "https://www.googleapis.com/auth/cloud-platform",
30005	//     "https://www.googleapis.com/auth/dialogflow"
30006	//   ]
30007	// }
30008
30009}
30010
30011// method id "dialogflow.projects.agent.versions.create":
30012
30013type ProjectsAgentVersionsCreateCall struct {
30014	s                                   *Service
30015	parent                              string
30016	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
30017	urlParams_                          gensupport.URLParams
30018	ctx_                                context.Context
30019	header_                             http.Header
30020}
30021
30022// Create: Creates an agent version. The new version points to the agent
30023// instance in the "default" environment.
30024//
30025// - parent: The agent to create a version for. Supported formats: -
30026//   `projects//agent` - `projects//locations//agent`.
30027func (r *ProjectsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsCreateCall {
30028	c := &ProjectsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30029	c.parent = parent
30030	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
30031	return c
30032}
30033
30034// Fields allows partial responses to be retrieved. See
30035// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30036// for more information.
30037func (c *ProjectsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsCreateCall {
30038	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30039	return c
30040}
30041
30042// Context sets the context to be used in this call's Do method. Any
30043// pending HTTP request will be aborted if the provided context is
30044// canceled.
30045func (c *ProjectsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsAgentVersionsCreateCall {
30046	c.ctx_ = ctx
30047	return c
30048}
30049
30050// Header returns an http.Header that can be modified by the caller to
30051// add HTTP headers to the request.
30052func (c *ProjectsAgentVersionsCreateCall) Header() http.Header {
30053	if c.header_ == nil {
30054		c.header_ = make(http.Header)
30055	}
30056	return c.header_
30057}
30058
30059func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
30060	reqHeaders := make(http.Header)
30061	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30062	for k, v := range c.header_ {
30063		reqHeaders[k] = v
30064	}
30065	reqHeaders.Set("User-Agent", c.s.userAgent())
30066	var body io.Reader = nil
30067	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
30068	if err != nil {
30069		return nil, err
30070	}
30071	reqHeaders.Set("Content-Type", "application/json")
30072	c.urlParams_.Set("alt", alt)
30073	c.urlParams_.Set("prettyPrint", "false")
30074	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
30075	urls += "?" + c.urlParams_.Encode()
30076	req, err := http.NewRequest("POST", urls, body)
30077	if err != nil {
30078		return nil, err
30079	}
30080	req.Header = reqHeaders
30081	googleapi.Expand(req.URL, map[string]string{
30082		"parent": c.parent,
30083	})
30084	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30085}
30086
30087// Do executes the "dialogflow.projects.agent.versions.create" call.
30088// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
30089// non-nil. Any non-2xx status code is an error. Response headers are in
30090// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
30091// (if a response was returned at all) in
30092// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30093// whether the returned error was because http.StatusNotModified was
30094// returned.
30095func (c *ProjectsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
30096	gensupport.SetOptions(c.urlParams_, opts...)
30097	res, err := c.doRequest("json")
30098	if res != nil && res.StatusCode == http.StatusNotModified {
30099		if res.Body != nil {
30100			res.Body.Close()
30101		}
30102		return nil, &googleapi.Error{
30103			Code:   res.StatusCode,
30104			Header: res.Header,
30105		}
30106	}
30107	if err != nil {
30108		return nil, err
30109	}
30110	defer googleapi.CloseBody(res)
30111	if err := googleapi.CheckResponse(res); err != nil {
30112		return nil, err
30113	}
30114	ret := &GoogleCloudDialogflowV2beta1Version{
30115		ServerResponse: googleapi.ServerResponse{
30116			Header:         res.Header,
30117			HTTPStatusCode: res.StatusCode,
30118		},
30119	}
30120	target := &ret
30121	if err := gensupport.DecodeResponse(target, res); err != nil {
30122		return nil, err
30123	}
30124	return ret, nil
30125	// {
30126	//   "description": "Creates an agent version. The new version points to the agent instance in the \"default\" environment.",
30127	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions",
30128	//   "httpMethod": "POST",
30129	//   "id": "dialogflow.projects.agent.versions.create",
30130	//   "parameterOrder": [
30131	//     "parent"
30132	//   ],
30133	//   "parameters": {
30134	//     "parent": {
30135	//       "description": "Required. The agent to create a version for. Supported formats: - `projects//agent` - `projects//locations//agent`",
30136	//       "location": "path",
30137	//       "pattern": "^projects/[^/]+/agent$",
30138	//       "required": true,
30139	//       "type": "string"
30140	//     }
30141	//   },
30142	//   "path": "v2beta1/{+parent}/versions",
30143	//   "request": {
30144	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30145	//   },
30146	//   "response": {
30147	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30148	//   },
30149	//   "scopes": [
30150	//     "https://www.googleapis.com/auth/cloud-platform",
30151	//     "https://www.googleapis.com/auth/dialogflow"
30152	//   ]
30153	// }
30154
30155}
30156
30157// method id "dialogflow.projects.agent.versions.delete":
30158
30159type ProjectsAgentVersionsDeleteCall struct {
30160	s          *Service
30161	name       string
30162	urlParams_ gensupport.URLParams
30163	ctx_       context.Context
30164	header_    http.Header
30165}
30166
30167// Delete: Delete the specified agent version.
30168//
30169// - name: The name of the version to delete. Supported formats: -
30170//   `projects//agent/versions/` -
30171//   `projects//locations//agent/versions/`.
30172func (r *ProjectsAgentVersionsService) Delete(name string) *ProjectsAgentVersionsDeleteCall {
30173	c := &ProjectsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30174	c.name = name
30175	return c
30176}
30177
30178// Fields allows partial responses to be retrieved. See
30179// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30180// for more information.
30181func (c *ProjectsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsDeleteCall {
30182	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30183	return c
30184}
30185
30186// Context sets the context to be used in this call's Do method. Any
30187// pending HTTP request will be aborted if the provided context is
30188// canceled.
30189func (c *ProjectsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsAgentVersionsDeleteCall {
30190	c.ctx_ = ctx
30191	return c
30192}
30193
30194// Header returns an http.Header that can be modified by the caller to
30195// add HTTP headers to the request.
30196func (c *ProjectsAgentVersionsDeleteCall) Header() http.Header {
30197	if c.header_ == nil {
30198		c.header_ = make(http.Header)
30199	}
30200	return c.header_
30201}
30202
30203func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
30204	reqHeaders := make(http.Header)
30205	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30206	for k, v := range c.header_ {
30207		reqHeaders[k] = v
30208	}
30209	reqHeaders.Set("User-Agent", c.s.userAgent())
30210	var body io.Reader = nil
30211	c.urlParams_.Set("alt", alt)
30212	c.urlParams_.Set("prettyPrint", "false")
30213	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30214	urls += "?" + c.urlParams_.Encode()
30215	req, err := http.NewRequest("DELETE", urls, body)
30216	if err != nil {
30217		return nil, err
30218	}
30219	req.Header = reqHeaders
30220	googleapi.Expand(req.URL, map[string]string{
30221		"name": c.name,
30222	})
30223	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30224}
30225
30226// Do executes the "dialogflow.projects.agent.versions.delete" call.
30227// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
30228// non-2xx status code is an error. Response headers are in either
30229// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
30230// returned at all) in error.(*googleapi.Error).Header. Use
30231// googleapi.IsNotModified to check whether the returned error was
30232// because http.StatusNotModified was returned.
30233func (c *ProjectsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30234	gensupport.SetOptions(c.urlParams_, opts...)
30235	res, err := c.doRequest("json")
30236	if res != nil && res.StatusCode == http.StatusNotModified {
30237		if res.Body != nil {
30238			res.Body.Close()
30239		}
30240		return nil, &googleapi.Error{
30241			Code:   res.StatusCode,
30242			Header: res.Header,
30243		}
30244	}
30245	if err != nil {
30246		return nil, err
30247	}
30248	defer googleapi.CloseBody(res)
30249	if err := googleapi.CheckResponse(res); err != nil {
30250		return nil, err
30251	}
30252	ret := &GoogleProtobufEmpty{
30253		ServerResponse: googleapi.ServerResponse{
30254			Header:         res.Header,
30255			HTTPStatusCode: res.StatusCode,
30256		},
30257	}
30258	target := &ret
30259	if err := gensupport.DecodeResponse(target, res); err != nil {
30260		return nil, err
30261	}
30262	return ret, nil
30263	// {
30264	//   "description": "Delete the specified agent version.",
30265	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions/{versionsId}",
30266	//   "httpMethod": "DELETE",
30267	//   "id": "dialogflow.projects.agent.versions.delete",
30268	//   "parameterOrder": [
30269	//     "name"
30270	//   ],
30271	//   "parameters": {
30272	//     "name": {
30273	//       "description": "Required. The name of the version to delete. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
30274	//       "location": "path",
30275	//       "pattern": "^projects/[^/]+/agent/versions/[^/]+$",
30276	//       "required": true,
30277	//       "type": "string"
30278	//     }
30279	//   },
30280	//   "path": "v2beta1/{+name}",
30281	//   "response": {
30282	//     "$ref": "GoogleProtobufEmpty"
30283	//   },
30284	//   "scopes": [
30285	//     "https://www.googleapis.com/auth/cloud-platform",
30286	//     "https://www.googleapis.com/auth/dialogflow"
30287	//   ]
30288	// }
30289
30290}
30291
30292// method id "dialogflow.projects.agent.versions.get":
30293
30294type ProjectsAgentVersionsGetCall struct {
30295	s            *Service
30296	name         string
30297	urlParams_   gensupport.URLParams
30298	ifNoneMatch_ string
30299	ctx_         context.Context
30300	header_      http.Header
30301}
30302
30303// Get: Retrieves the specified agent version.
30304//
30305// - name: The name of the version. Supported formats: -
30306//   `projects//agent/versions/` -
30307//   `projects//locations//agent/versions/`.
30308func (r *ProjectsAgentVersionsService) Get(name string) *ProjectsAgentVersionsGetCall {
30309	c := &ProjectsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30310	c.name = name
30311	return c
30312}
30313
30314// Fields allows partial responses to be retrieved. See
30315// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30316// for more information.
30317func (c *ProjectsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsGetCall {
30318	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30319	return c
30320}
30321
30322// IfNoneMatch sets the optional parameter which makes the operation
30323// fail if the object's ETag matches the given value. This is useful for
30324// getting updates only after the object has changed since the last
30325// request. Use googleapi.IsNotModified to check whether the response
30326// error from Do is the result of In-None-Match.
30327func (c *ProjectsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsGetCall {
30328	c.ifNoneMatch_ = entityTag
30329	return c
30330}
30331
30332// Context sets the context to be used in this call's Do method. Any
30333// pending HTTP request will be aborted if the provided context is
30334// canceled.
30335func (c *ProjectsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsAgentVersionsGetCall {
30336	c.ctx_ = ctx
30337	return c
30338}
30339
30340// Header returns an http.Header that can be modified by the caller to
30341// add HTTP headers to the request.
30342func (c *ProjectsAgentVersionsGetCall) Header() http.Header {
30343	if c.header_ == nil {
30344		c.header_ = make(http.Header)
30345	}
30346	return c.header_
30347}
30348
30349func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
30350	reqHeaders := make(http.Header)
30351	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30352	for k, v := range c.header_ {
30353		reqHeaders[k] = v
30354	}
30355	reqHeaders.Set("User-Agent", c.s.userAgent())
30356	if c.ifNoneMatch_ != "" {
30357		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30358	}
30359	var body io.Reader = nil
30360	c.urlParams_.Set("alt", alt)
30361	c.urlParams_.Set("prettyPrint", "false")
30362	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30363	urls += "?" + c.urlParams_.Encode()
30364	req, err := http.NewRequest("GET", urls, body)
30365	if err != nil {
30366		return nil, err
30367	}
30368	req.Header = reqHeaders
30369	googleapi.Expand(req.URL, map[string]string{
30370		"name": c.name,
30371	})
30372	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30373}
30374
30375// Do executes the "dialogflow.projects.agent.versions.get" call.
30376// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
30377// non-nil. Any non-2xx status code is an error. Response headers are in
30378// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
30379// (if a response was returned at all) in
30380// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30381// whether the returned error was because http.StatusNotModified was
30382// returned.
30383func (c *ProjectsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
30384	gensupport.SetOptions(c.urlParams_, opts...)
30385	res, err := c.doRequest("json")
30386	if res != nil && res.StatusCode == http.StatusNotModified {
30387		if res.Body != nil {
30388			res.Body.Close()
30389		}
30390		return nil, &googleapi.Error{
30391			Code:   res.StatusCode,
30392			Header: res.Header,
30393		}
30394	}
30395	if err != nil {
30396		return nil, err
30397	}
30398	defer googleapi.CloseBody(res)
30399	if err := googleapi.CheckResponse(res); err != nil {
30400		return nil, err
30401	}
30402	ret := &GoogleCloudDialogflowV2beta1Version{
30403		ServerResponse: googleapi.ServerResponse{
30404			Header:         res.Header,
30405			HTTPStatusCode: res.StatusCode,
30406		},
30407	}
30408	target := &ret
30409	if err := gensupport.DecodeResponse(target, res); err != nil {
30410		return nil, err
30411	}
30412	return ret, nil
30413	// {
30414	//   "description": "Retrieves the specified agent version.",
30415	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions/{versionsId}",
30416	//   "httpMethod": "GET",
30417	//   "id": "dialogflow.projects.agent.versions.get",
30418	//   "parameterOrder": [
30419	//     "name"
30420	//   ],
30421	//   "parameters": {
30422	//     "name": {
30423	//       "description": "Required. The name of the version. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
30424	//       "location": "path",
30425	//       "pattern": "^projects/[^/]+/agent/versions/[^/]+$",
30426	//       "required": true,
30427	//       "type": "string"
30428	//     }
30429	//   },
30430	//   "path": "v2beta1/{+name}",
30431	//   "response": {
30432	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30433	//   },
30434	//   "scopes": [
30435	//     "https://www.googleapis.com/auth/cloud-platform",
30436	//     "https://www.googleapis.com/auth/dialogflow"
30437	//   ]
30438	// }
30439
30440}
30441
30442// method id "dialogflow.projects.agent.versions.list":
30443
30444type ProjectsAgentVersionsListCall struct {
30445	s            *Service
30446	parent       string
30447	urlParams_   gensupport.URLParams
30448	ifNoneMatch_ string
30449	ctx_         context.Context
30450	header_      http.Header
30451}
30452
30453// List: Returns the list of all versions of the specified agent.
30454//
30455// - parent: The agent to list all versions from. Supported formats: -
30456//   `projects//agent` - `projects//locations//agent`.
30457func (r *ProjectsAgentVersionsService) List(parent string) *ProjectsAgentVersionsListCall {
30458	c := &ProjectsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30459	c.parent = parent
30460	return c
30461}
30462
30463// PageSize sets the optional parameter "pageSize": The maximum number
30464// of items to return in a single page. By default 100 and at most 1000.
30465func (c *ProjectsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsAgentVersionsListCall {
30466	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30467	return c
30468}
30469
30470// PageToken sets the optional parameter "pageToken": The
30471// next_page_token value returned from a previous list request.
30472func (c *ProjectsAgentVersionsListCall) PageToken(pageToken string) *ProjectsAgentVersionsListCall {
30473	c.urlParams_.Set("pageToken", pageToken)
30474	return c
30475}
30476
30477// Fields allows partial responses to be retrieved. See
30478// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30479// for more information.
30480func (c *ProjectsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsListCall {
30481	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30482	return c
30483}
30484
30485// IfNoneMatch sets the optional parameter which makes the operation
30486// fail if the object's ETag matches the given value. This is useful for
30487// getting updates only after the object has changed since the last
30488// request. Use googleapi.IsNotModified to check whether the response
30489// error from Do is the result of In-None-Match.
30490func (c *ProjectsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsListCall {
30491	c.ifNoneMatch_ = entityTag
30492	return c
30493}
30494
30495// Context sets the context to be used in this call's Do method. Any
30496// pending HTTP request will be aborted if the provided context is
30497// canceled.
30498func (c *ProjectsAgentVersionsListCall) Context(ctx context.Context) *ProjectsAgentVersionsListCall {
30499	c.ctx_ = ctx
30500	return c
30501}
30502
30503// Header returns an http.Header that can be modified by the caller to
30504// add HTTP headers to the request.
30505func (c *ProjectsAgentVersionsListCall) Header() http.Header {
30506	if c.header_ == nil {
30507		c.header_ = make(http.Header)
30508	}
30509	return c.header_
30510}
30511
30512func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
30513	reqHeaders := make(http.Header)
30514	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30515	for k, v := range c.header_ {
30516		reqHeaders[k] = v
30517	}
30518	reqHeaders.Set("User-Agent", c.s.userAgent())
30519	if c.ifNoneMatch_ != "" {
30520		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30521	}
30522	var body io.Reader = nil
30523	c.urlParams_.Set("alt", alt)
30524	c.urlParams_.Set("prettyPrint", "false")
30525	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
30526	urls += "?" + c.urlParams_.Encode()
30527	req, err := http.NewRequest("GET", urls, body)
30528	if err != nil {
30529		return nil, err
30530	}
30531	req.Header = reqHeaders
30532	googleapi.Expand(req.URL, map[string]string{
30533		"parent": c.parent,
30534	})
30535	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30536}
30537
30538// Do executes the "dialogflow.projects.agent.versions.list" call.
30539// Exactly one of *GoogleCloudDialogflowV2beta1ListVersionsResponse or
30540// error will be non-nil. Any non-2xx status code is an error. Response
30541// headers are in either
30542// *GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Heade
30543// r or (if a response was returned at all) in
30544// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30545// whether the returned error was because http.StatusNotModified was
30546// returned.
30547func (c *ProjectsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
30548	gensupport.SetOptions(c.urlParams_, opts...)
30549	res, err := c.doRequest("json")
30550	if res != nil && res.StatusCode == http.StatusNotModified {
30551		if res.Body != nil {
30552			res.Body.Close()
30553		}
30554		return nil, &googleapi.Error{
30555			Code:   res.StatusCode,
30556			Header: res.Header,
30557		}
30558	}
30559	if err != nil {
30560		return nil, err
30561	}
30562	defer googleapi.CloseBody(res)
30563	if err := googleapi.CheckResponse(res); err != nil {
30564		return nil, err
30565	}
30566	ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
30567		ServerResponse: googleapi.ServerResponse{
30568			Header:         res.Header,
30569			HTTPStatusCode: res.StatusCode,
30570		},
30571	}
30572	target := &ret
30573	if err := gensupport.DecodeResponse(target, res); err != nil {
30574		return nil, err
30575	}
30576	return ret, nil
30577	// {
30578	//   "description": "Returns the list of all versions of the specified agent.",
30579	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions",
30580	//   "httpMethod": "GET",
30581	//   "id": "dialogflow.projects.agent.versions.list",
30582	//   "parameterOrder": [
30583	//     "parent"
30584	//   ],
30585	//   "parameters": {
30586	//     "pageSize": {
30587	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
30588	//       "format": "int32",
30589	//       "location": "query",
30590	//       "type": "integer"
30591	//     },
30592	//     "pageToken": {
30593	//       "description": "Optional. The next_page_token value returned from a previous list request.",
30594	//       "location": "query",
30595	//       "type": "string"
30596	//     },
30597	//     "parent": {
30598	//       "description": "Required. The agent to list all versions from. Supported formats: - `projects//agent` - `projects//locations//agent`",
30599	//       "location": "path",
30600	//       "pattern": "^projects/[^/]+/agent$",
30601	//       "required": true,
30602	//       "type": "string"
30603	//     }
30604	//   },
30605	//   "path": "v2beta1/{+parent}/versions",
30606	//   "response": {
30607	//     "$ref": "GoogleCloudDialogflowV2beta1ListVersionsResponse"
30608	//   },
30609	//   "scopes": [
30610	//     "https://www.googleapis.com/auth/cloud-platform",
30611	//     "https://www.googleapis.com/auth/dialogflow"
30612	//   ]
30613	// }
30614
30615}
30616
30617// Pages invokes f for each page of results.
30618// A non-nil error returned from f will halt the iteration.
30619// The provided context supersedes any context provided to the Context method.
30620func (c *ProjectsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
30621	c.ctx_ = ctx
30622	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30623	for {
30624		x, err := c.Do()
30625		if err != nil {
30626			return err
30627		}
30628		if err := f(x); err != nil {
30629			return err
30630		}
30631		if x.NextPageToken == "" {
30632			return nil
30633		}
30634		c.PageToken(x.NextPageToken)
30635	}
30636}
30637
30638// method id "dialogflow.projects.agent.versions.patch":
30639
30640type ProjectsAgentVersionsPatchCall struct {
30641	s                                   *Service
30642	nameid                              string
30643	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
30644	urlParams_                          gensupport.URLParams
30645	ctx_                                context.Context
30646	header_                             http.Header
30647}
30648
30649// Patch: Updates the specified agent version. Note that this method
30650// does not allow you to update the state of the agent the given version
30651// points to. It allows you to update only mutable properties of the
30652// version resource.
30653//
30654// - name: Output only. The unique identifier of this agent version.
30655//   Supported formats: - `projects//agent/versions/` -
30656//   `projects//locations//agent/versions/`.
30657func (r *ProjectsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsPatchCall {
30658	c := &ProjectsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30659	c.nameid = nameid
30660	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
30661	return c
30662}
30663
30664// UpdateMask sets the optional parameter "updateMask": Required. The
30665// mask to control which fields get updated.
30666func (c *ProjectsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsAgentVersionsPatchCall {
30667	c.urlParams_.Set("updateMask", updateMask)
30668	return c
30669}
30670
30671// Fields allows partial responses to be retrieved. See
30672// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30673// for more information.
30674func (c *ProjectsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsPatchCall {
30675	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30676	return c
30677}
30678
30679// Context sets the context to be used in this call's Do method. Any
30680// pending HTTP request will be aborted if the provided context is
30681// canceled.
30682func (c *ProjectsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsAgentVersionsPatchCall {
30683	c.ctx_ = ctx
30684	return c
30685}
30686
30687// Header returns an http.Header that can be modified by the caller to
30688// add HTTP headers to the request.
30689func (c *ProjectsAgentVersionsPatchCall) Header() http.Header {
30690	if c.header_ == nil {
30691		c.header_ = make(http.Header)
30692	}
30693	return c.header_
30694}
30695
30696func (c *ProjectsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
30697	reqHeaders := make(http.Header)
30698	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30699	for k, v := range c.header_ {
30700		reqHeaders[k] = v
30701	}
30702	reqHeaders.Set("User-Agent", c.s.userAgent())
30703	var body io.Reader = nil
30704	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
30705	if err != nil {
30706		return nil, err
30707	}
30708	reqHeaders.Set("Content-Type", "application/json")
30709	c.urlParams_.Set("alt", alt)
30710	c.urlParams_.Set("prettyPrint", "false")
30711	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30712	urls += "?" + c.urlParams_.Encode()
30713	req, err := http.NewRequest("PATCH", urls, body)
30714	if err != nil {
30715		return nil, err
30716	}
30717	req.Header = reqHeaders
30718	googleapi.Expand(req.URL, map[string]string{
30719		"name": c.nameid,
30720	})
30721	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30722}
30723
30724// Do executes the "dialogflow.projects.agent.versions.patch" call.
30725// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
30726// non-nil. Any non-2xx status code is an error. Response headers are in
30727// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
30728// (if a response was returned at all) in
30729// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30730// whether the returned error was because http.StatusNotModified was
30731// returned.
30732func (c *ProjectsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
30733	gensupport.SetOptions(c.urlParams_, opts...)
30734	res, err := c.doRequest("json")
30735	if res != nil && res.StatusCode == http.StatusNotModified {
30736		if res.Body != nil {
30737			res.Body.Close()
30738		}
30739		return nil, &googleapi.Error{
30740			Code:   res.StatusCode,
30741			Header: res.Header,
30742		}
30743	}
30744	if err != nil {
30745		return nil, err
30746	}
30747	defer googleapi.CloseBody(res)
30748	if err := googleapi.CheckResponse(res); err != nil {
30749		return nil, err
30750	}
30751	ret := &GoogleCloudDialogflowV2beta1Version{
30752		ServerResponse: googleapi.ServerResponse{
30753			Header:         res.Header,
30754			HTTPStatusCode: res.StatusCode,
30755		},
30756	}
30757	target := &ret
30758	if err := gensupport.DecodeResponse(target, res); err != nil {
30759		return nil, err
30760	}
30761	return ret, nil
30762	// {
30763	//   "description": "Updates the specified agent version. Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.",
30764	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions/{versionsId}",
30765	//   "httpMethod": "PATCH",
30766	//   "id": "dialogflow.projects.agent.versions.patch",
30767	//   "parameterOrder": [
30768	//     "name"
30769	//   ],
30770	//   "parameters": {
30771	//     "name": {
30772	//       "description": "Output only. The unique identifier of this agent version. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
30773	//       "location": "path",
30774	//       "pattern": "^projects/[^/]+/agent/versions/[^/]+$",
30775	//       "required": true,
30776	//       "type": "string"
30777	//     },
30778	//     "updateMask": {
30779	//       "description": "Required. The mask to control which fields get updated.",
30780	//       "format": "google-fieldmask",
30781	//       "location": "query",
30782	//       "type": "string"
30783	//     }
30784	//   },
30785	//   "path": "v2beta1/{+name}",
30786	//   "request": {
30787	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30788	//   },
30789	//   "response": {
30790	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30791	//   },
30792	//   "scopes": [
30793	//     "https://www.googleapis.com/auth/cloud-platform",
30794	//     "https://www.googleapis.com/auth/dialogflow"
30795	//   ]
30796	// }
30797
30798}
30799
30800// method id "dialogflow.projects.answerRecords.get":
30801
30802type ProjectsAnswerRecordsGetCall struct {
30803	s            *Service
30804	name         string
30805	urlParams_   gensupport.URLParams
30806	ifNoneMatch_ string
30807	ctx_         context.Context
30808	header_      http.Header
30809}
30810
30811// Get: Deprecated. Retrieves a specific answer record.
30812//
30813// - name: The name of the answer record to retrieve. Format:
30814//   `projects//locations//answerRecords/`.
30815func (r *ProjectsAnswerRecordsService) Get(name string) *ProjectsAnswerRecordsGetCall {
30816	c := &ProjectsAnswerRecordsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30817	c.name = name
30818	return c
30819}
30820
30821// Fields allows partial responses to be retrieved. See
30822// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30823// for more information.
30824func (c *ProjectsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsGetCall {
30825	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30826	return c
30827}
30828
30829// IfNoneMatch sets the optional parameter which makes the operation
30830// fail if the object's ETag matches the given value. This is useful for
30831// getting updates only after the object has changed since the last
30832// request. Use googleapi.IsNotModified to check whether the response
30833// error from Do is the result of In-None-Match.
30834func (c *ProjectsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsGetCall {
30835	c.ifNoneMatch_ = entityTag
30836	return c
30837}
30838
30839// Context sets the context to be used in this call's Do method. Any
30840// pending HTTP request will be aborted if the provided context is
30841// canceled.
30842func (c *ProjectsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsAnswerRecordsGetCall {
30843	c.ctx_ = ctx
30844	return c
30845}
30846
30847// Header returns an http.Header that can be modified by the caller to
30848// add HTTP headers to the request.
30849func (c *ProjectsAnswerRecordsGetCall) Header() http.Header {
30850	if c.header_ == nil {
30851		c.header_ = make(http.Header)
30852	}
30853	return c.header_
30854}
30855
30856func (c *ProjectsAnswerRecordsGetCall) doRequest(alt string) (*http.Response, error) {
30857	reqHeaders := make(http.Header)
30858	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30859	for k, v := range c.header_ {
30860		reqHeaders[k] = v
30861	}
30862	reqHeaders.Set("User-Agent", c.s.userAgent())
30863	if c.ifNoneMatch_ != "" {
30864		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30865	}
30866	var body io.Reader = nil
30867	c.urlParams_.Set("alt", alt)
30868	c.urlParams_.Set("prettyPrint", "false")
30869	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30870	urls += "?" + c.urlParams_.Encode()
30871	req, err := http.NewRequest("GET", urls, body)
30872	if err != nil {
30873		return nil, err
30874	}
30875	req.Header = reqHeaders
30876	googleapi.Expand(req.URL, map[string]string{
30877		"name": c.name,
30878	})
30879	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30880}
30881
30882// Do executes the "dialogflow.projects.answerRecords.get" call.
30883// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
30884// will be non-nil. Any non-2xx status code is an error. Response
30885// headers are in either
30886// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
30887// (if a response was returned at all) in
30888// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30889// whether the returned error was because http.StatusNotModified was
30890// returned.
30891func (c *ProjectsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
30892	gensupport.SetOptions(c.urlParams_, opts...)
30893	res, err := c.doRequest("json")
30894	if res != nil && res.StatusCode == http.StatusNotModified {
30895		if res.Body != nil {
30896			res.Body.Close()
30897		}
30898		return nil, &googleapi.Error{
30899			Code:   res.StatusCode,
30900			Header: res.Header,
30901		}
30902	}
30903	if err != nil {
30904		return nil, err
30905	}
30906	defer googleapi.CloseBody(res)
30907	if err := googleapi.CheckResponse(res); err != nil {
30908		return nil, err
30909	}
30910	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
30911		ServerResponse: googleapi.ServerResponse{
30912			Header:         res.Header,
30913			HTTPStatusCode: res.StatusCode,
30914		},
30915	}
30916	target := &ret
30917	if err := gensupport.DecodeResponse(target, res); err != nil {
30918		return nil, err
30919	}
30920	return ret, nil
30921	// {
30922	//   "description": "Deprecated. Retrieves a specific answer record.",
30923	//   "flatPath": "v2beta1/projects/{projectsId}/answerRecords/{answerRecordsId}",
30924	//   "httpMethod": "GET",
30925	//   "id": "dialogflow.projects.answerRecords.get",
30926	//   "parameterOrder": [
30927	//     "name"
30928	//   ],
30929	//   "parameters": {
30930	//     "name": {
30931	//       "description": "Required. The name of the answer record to retrieve. Format: `projects//locations//answerRecords/`.",
30932	//       "location": "path",
30933	//       "pattern": "^projects/[^/]+/answerRecords/[^/]+$",
30934	//       "required": true,
30935	//       "type": "string"
30936	//     }
30937	//   },
30938	//   "path": "v2beta1/{+name}",
30939	//   "response": {
30940	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
30941	//   },
30942	//   "scopes": [
30943	//     "https://www.googleapis.com/auth/cloud-platform",
30944	//     "https://www.googleapis.com/auth/dialogflow"
30945	//   ]
30946	// }
30947
30948}
30949
30950// method id "dialogflow.projects.answerRecords.list":
30951
30952type ProjectsAnswerRecordsListCall struct {
30953	s            *Service
30954	parent       string
30955	urlParams_   gensupport.URLParams
30956	ifNoneMatch_ string
30957	ctx_         context.Context
30958	header_      http.Header
30959}
30960
30961// List: Returns the list of all answer records in the specified project
30962// in reverse chronological order.
30963//
30964// - parent: The project to list all answer records for in reverse
30965//   chronological order. Format: `projects//locations/`.
30966func (r *ProjectsAnswerRecordsService) List(parent string) *ProjectsAnswerRecordsListCall {
30967	c := &ProjectsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30968	c.parent = parent
30969	return c
30970}
30971
30972// PageSize sets the optional parameter "pageSize": The maximum number
30973// of records to return in a single page. The server may return fewer
30974// records than this. If unspecified, we use 10. The maximum is 100.
30975func (c *ProjectsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsAnswerRecordsListCall {
30976	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30977	return c
30978}
30979
30980// PageToken sets the optional parameter "pageToken": The
30981// ListAnswerRecordsResponse.next_page_token value returned from a
30982// previous list request used to continue listing on the next page.
30983func (c *ProjectsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsAnswerRecordsListCall {
30984	c.urlParams_.Set("pageToken", pageToken)
30985	return c
30986}
30987
30988// Fields allows partial responses to be retrieved. See
30989// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30990// for more information.
30991func (c *ProjectsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsListCall {
30992	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30993	return c
30994}
30995
30996// IfNoneMatch sets the optional parameter which makes the operation
30997// fail if the object's ETag matches the given value. This is useful for
30998// getting updates only after the object has changed since the last
30999// request. Use googleapi.IsNotModified to check whether the response
31000// error from Do is the result of In-None-Match.
31001func (c *ProjectsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsListCall {
31002	c.ifNoneMatch_ = entityTag
31003	return c
31004}
31005
31006// Context sets the context to be used in this call's Do method. Any
31007// pending HTTP request will be aborted if the provided context is
31008// canceled.
31009func (c *ProjectsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsAnswerRecordsListCall {
31010	c.ctx_ = ctx
31011	return c
31012}
31013
31014// Header returns an http.Header that can be modified by the caller to
31015// add HTTP headers to the request.
31016func (c *ProjectsAnswerRecordsListCall) Header() http.Header {
31017	if c.header_ == nil {
31018		c.header_ = make(http.Header)
31019	}
31020	return c.header_
31021}
31022
31023func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
31024	reqHeaders := make(http.Header)
31025	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31026	for k, v := range c.header_ {
31027		reqHeaders[k] = v
31028	}
31029	reqHeaders.Set("User-Agent", c.s.userAgent())
31030	if c.ifNoneMatch_ != "" {
31031		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31032	}
31033	var body io.Reader = nil
31034	c.urlParams_.Set("alt", alt)
31035	c.urlParams_.Set("prettyPrint", "false")
31036	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
31037	urls += "?" + c.urlParams_.Encode()
31038	req, err := http.NewRequest("GET", urls, body)
31039	if err != nil {
31040		return nil, err
31041	}
31042	req.Header = reqHeaders
31043	googleapi.Expand(req.URL, map[string]string{
31044		"parent": c.parent,
31045	})
31046	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31047}
31048
31049// Do executes the "dialogflow.projects.answerRecords.list" call.
31050// Exactly one of *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
31051// or error will be non-nil. Any non-2xx status code is an error.
31052// Response headers are in either
31053// *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.
31054// Header or (if a response was returned at all) in
31055// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31056// whether the returned error was because http.StatusNotModified was
31057// returned.
31058func (c *ProjectsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
31059	gensupport.SetOptions(c.urlParams_, opts...)
31060	res, err := c.doRequest("json")
31061	if res != nil && res.StatusCode == http.StatusNotModified {
31062		if res.Body != nil {
31063			res.Body.Close()
31064		}
31065		return nil, &googleapi.Error{
31066			Code:   res.StatusCode,
31067			Header: res.Header,
31068		}
31069	}
31070	if err != nil {
31071		return nil, err
31072	}
31073	defer googleapi.CloseBody(res)
31074	if err := googleapi.CheckResponse(res); err != nil {
31075		return nil, err
31076	}
31077	ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
31078		ServerResponse: googleapi.ServerResponse{
31079			Header:         res.Header,
31080			HTTPStatusCode: res.StatusCode,
31081		},
31082	}
31083	target := &ret
31084	if err := gensupport.DecodeResponse(target, res); err != nil {
31085		return nil, err
31086	}
31087	return ret, nil
31088	// {
31089	//   "description": "Returns the list of all answer records in the specified project in reverse chronological order.",
31090	//   "flatPath": "v2beta1/projects/{projectsId}/answerRecords",
31091	//   "httpMethod": "GET",
31092	//   "id": "dialogflow.projects.answerRecords.list",
31093	//   "parameterOrder": [
31094	//     "parent"
31095	//   ],
31096	//   "parameters": {
31097	//     "pageSize": {
31098	//       "description": "Optional. The maximum number of records to return in a single page. The server may return fewer records than this. If unspecified, we use 10. The maximum is 100.",
31099	//       "format": "int32",
31100	//       "location": "query",
31101	//       "type": "integer"
31102	//     },
31103	//     "pageToken": {
31104	//       "description": "Optional. The ListAnswerRecordsResponse.next_page_token value returned from a previous list request used to continue listing on the next page.",
31105	//       "location": "query",
31106	//       "type": "string"
31107	//     },
31108	//     "parent": {
31109	//       "description": "Required. The project to list all answer records for in reverse chronological order. Format: `projects//locations/`.",
31110	//       "location": "path",
31111	//       "pattern": "^projects/[^/]+$",
31112	//       "required": true,
31113	//       "type": "string"
31114	//     }
31115	//   },
31116	//   "path": "v2beta1/{+parent}/answerRecords",
31117	//   "response": {
31118	//     "$ref": "GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse"
31119	//   },
31120	//   "scopes": [
31121	//     "https://www.googleapis.com/auth/cloud-platform",
31122	//     "https://www.googleapis.com/auth/dialogflow"
31123	//   ]
31124	// }
31125
31126}
31127
31128// Pages invokes f for each page of results.
31129// A non-nil error returned from f will halt the iteration.
31130// The provided context supersedes any context provided to the Context method.
31131func (c *ProjectsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
31132	c.ctx_ = ctx
31133	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
31134	for {
31135		x, err := c.Do()
31136		if err != nil {
31137			return err
31138		}
31139		if err := f(x); err != nil {
31140			return err
31141		}
31142		if x.NextPageToken == "" {
31143			return nil
31144		}
31145		c.PageToken(x.NextPageToken)
31146	}
31147}
31148
31149// method id "dialogflow.projects.answerRecords.patch":
31150
31151type ProjectsAnswerRecordsPatchCall struct {
31152	s                                        *Service
31153	nameid                                   string
31154	googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
31155	urlParams_                               gensupport.URLParams
31156	ctx_                                     context.Context
31157	header_                                  http.Header
31158}
31159
31160// Patch: Updates the specified answer record.
31161//
31162// - name: The unique identifier of this answer record. Required for
31163//   AnswerRecords.UpdateAnswerRecord method. Format:
31164//   `projects//locations//answerRecords/`.
31165func (r *ProjectsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsAnswerRecordsPatchCall {
31166	c := &ProjectsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31167	c.nameid = nameid
31168	c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
31169	return c
31170}
31171
31172// UpdateMask sets the optional parameter "updateMask": Required. The
31173// mask to control which fields get updated.
31174func (c *ProjectsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsAnswerRecordsPatchCall {
31175	c.urlParams_.Set("updateMask", updateMask)
31176	return c
31177}
31178
31179// Fields allows partial responses to be retrieved. See
31180// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31181// for more information.
31182func (c *ProjectsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsPatchCall {
31183	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31184	return c
31185}
31186
31187// Context sets the context to be used in this call's Do method. Any
31188// pending HTTP request will be aborted if the provided context is
31189// canceled.
31190func (c *ProjectsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsAnswerRecordsPatchCall {
31191	c.ctx_ = ctx
31192	return c
31193}
31194
31195// Header returns an http.Header that can be modified by the caller to
31196// add HTTP headers to the request.
31197func (c *ProjectsAnswerRecordsPatchCall) Header() http.Header {
31198	if c.header_ == nil {
31199		c.header_ = make(http.Header)
31200	}
31201	return c.header_
31202}
31203
31204func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
31205	reqHeaders := make(http.Header)
31206	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31207	for k, v := range c.header_ {
31208		reqHeaders[k] = v
31209	}
31210	reqHeaders.Set("User-Agent", c.s.userAgent())
31211	var body io.Reader = nil
31212	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
31213	if err != nil {
31214		return nil, err
31215	}
31216	reqHeaders.Set("Content-Type", "application/json")
31217	c.urlParams_.Set("alt", alt)
31218	c.urlParams_.Set("prettyPrint", "false")
31219	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31220	urls += "?" + c.urlParams_.Encode()
31221	req, err := http.NewRequest("PATCH", urls, body)
31222	if err != nil {
31223		return nil, err
31224	}
31225	req.Header = reqHeaders
31226	googleapi.Expand(req.URL, map[string]string{
31227		"name": c.nameid,
31228	})
31229	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31230}
31231
31232// Do executes the "dialogflow.projects.answerRecords.patch" call.
31233// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
31234// will be non-nil. Any non-2xx status code is an error. Response
31235// headers are in either
31236// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
31237// (if a response was returned at all) in
31238// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31239// whether the returned error was because http.StatusNotModified was
31240// returned.
31241func (c *ProjectsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
31242	gensupport.SetOptions(c.urlParams_, opts...)
31243	res, err := c.doRequest("json")
31244	if res != nil && res.StatusCode == http.StatusNotModified {
31245		if res.Body != nil {
31246			res.Body.Close()
31247		}
31248		return nil, &googleapi.Error{
31249			Code:   res.StatusCode,
31250			Header: res.Header,
31251		}
31252	}
31253	if err != nil {
31254		return nil, err
31255	}
31256	defer googleapi.CloseBody(res)
31257	if err := googleapi.CheckResponse(res); err != nil {
31258		return nil, err
31259	}
31260	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
31261		ServerResponse: googleapi.ServerResponse{
31262			Header:         res.Header,
31263			HTTPStatusCode: res.StatusCode,
31264		},
31265	}
31266	target := &ret
31267	if err := gensupport.DecodeResponse(target, res); err != nil {
31268		return nil, err
31269	}
31270	return ret, nil
31271	// {
31272	//   "description": "Updates the specified answer record.",
31273	//   "flatPath": "v2beta1/projects/{projectsId}/answerRecords/{answerRecordsId}",
31274	//   "httpMethod": "PATCH",
31275	//   "id": "dialogflow.projects.answerRecords.patch",
31276	//   "parameterOrder": [
31277	//     "name"
31278	//   ],
31279	//   "parameters": {
31280	//     "name": {
31281	//       "description": "The unique identifier of this answer record. Required for AnswerRecords.UpdateAnswerRecord method. Format: `projects//locations//answerRecords/`.",
31282	//       "location": "path",
31283	//       "pattern": "^projects/[^/]+/answerRecords/[^/]+$",
31284	//       "required": true,
31285	//       "type": "string"
31286	//     },
31287	//     "updateMask": {
31288	//       "description": "Required. The mask to control which fields get updated.",
31289	//       "format": "google-fieldmask",
31290	//       "location": "query",
31291	//       "type": "string"
31292	//     }
31293	//   },
31294	//   "path": "v2beta1/{+name}",
31295	//   "request": {
31296	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
31297	//   },
31298	//   "response": {
31299	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
31300	//   },
31301	//   "scopes": [
31302	//     "https://www.googleapis.com/auth/cloud-platform",
31303	//     "https://www.googleapis.com/auth/dialogflow"
31304	//   ]
31305	// }
31306
31307}
31308
31309// method id "dialogflow.projects.conversationProfiles.create":
31310
31311type ProjectsConversationProfilesCreateCall struct {
31312	s                                               *Service
31313	parent                                          string
31314	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
31315	urlParams_                                      gensupport.URLParams
31316	ctx_                                            context.Context
31317	header_                                         http.Header
31318}
31319
31320// Create: Creates a conversation profile in the specified project.
31321// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
31322// aren't populated in the response. You can retrieve them via
31323// GetConversationProfile API.
31324//
31325// - parent: The project to create a conversation profile for. Format:
31326//   `projects//locations/`.
31327func (r *ProjectsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesCreateCall {
31328	c := &ProjectsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31329	c.parent = parent
31330	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
31331	return c
31332}
31333
31334// Fields allows partial responses to be retrieved. See
31335// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31336// for more information.
31337func (c *ProjectsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesCreateCall {
31338	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31339	return c
31340}
31341
31342// Context sets the context to be used in this call's Do method. Any
31343// pending HTTP request will be aborted if the provided context is
31344// canceled.
31345func (c *ProjectsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsConversationProfilesCreateCall {
31346	c.ctx_ = ctx
31347	return c
31348}
31349
31350// Header returns an http.Header that can be modified by the caller to
31351// add HTTP headers to the request.
31352func (c *ProjectsConversationProfilesCreateCall) Header() http.Header {
31353	if c.header_ == nil {
31354		c.header_ = make(http.Header)
31355	}
31356	return c.header_
31357}
31358
31359func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
31360	reqHeaders := make(http.Header)
31361	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31362	for k, v := range c.header_ {
31363		reqHeaders[k] = v
31364	}
31365	reqHeaders.Set("User-Agent", c.s.userAgent())
31366	var body io.Reader = nil
31367	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
31368	if err != nil {
31369		return nil, err
31370	}
31371	reqHeaders.Set("Content-Type", "application/json")
31372	c.urlParams_.Set("alt", alt)
31373	c.urlParams_.Set("prettyPrint", "false")
31374	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
31375	urls += "?" + c.urlParams_.Encode()
31376	req, err := http.NewRequest("POST", urls, body)
31377	if err != nil {
31378		return nil, err
31379	}
31380	req.Header = reqHeaders
31381	googleapi.Expand(req.URL, map[string]string{
31382		"parent": c.parent,
31383	})
31384	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31385}
31386
31387// Do executes the "dialogflow.projects.conversationProfiles.create" call.
31388// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
31389// error will be non-nil. Any non-2xx status code is an error. Response
31390// headers are in either
31391// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
31392//  or (if a response was returned at all) in
31393// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31394// whether the returned error was because http.StatusNotModified was
31395// returned.
31396func (c *ProjectsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
31397	gensupport.SetOptions(c.urlParams_, opts...)
31398	res, err := c.doRequest("json")
31399	if res != nil && res.StatusCode == http.StatusNotModified {
31400		if res.Body != nil {
31401			res.Body.Close()
31402		}
31403		return nil, &googleapi.Error{
31404			Code:   res.StatusCode,
31405			Header: res.Header,
31406		}
31407	}
31408	if err != nil {
31409		return nil, err
31410	}
31411	defer googleapi.CloseBody(res)
31412	if err := googleapi.CheckResponse(res); err != nil {
31413		return nil, err
31414	}
31415	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
31416		ServerResponse: googleapi.ServerResponse{
31417			Header:         res.Header,
31418			HTTPStatusCode: res.StatusCode,
31419		},
31420	}
31421	target := &ret
31422	if err := gensupport.DecodeResponse(target, res); err != nil {
31423		return nil, err
31424	}
31425	return ret, nil
31426	// {
31427	//   "description": "Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.",
31428	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles",
31429	//   "httpMethod": "POST",
31430	//   "id": "dialogflow.projects.conversationProfiles.create",
31431	//   "parameterOrder": [
31432	//     "parent"
31433	//   ],
31434	//   "parameters": {
31435	//     "parent": {
31436	//       "description": "Required. The project to create a conversation profile for. Format: `projects//locations/`.",
31437	//       "location": "path",
31438	//       "pattern": "^projects/[^/]+$",
31439	//       "required": true,
31440	//       "type": "string"
31441	//     }
31442	//   },
31443	//   "path": "v2beta1/{+parent}/conversationProfiles",
31444	//   "request": {
31445	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31446	//   },
31447	//   "response": {
31448	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31449	//   },
31450	//   "scopes": [
31451	//     "https://www.googleapis.com/auth/cloud-platform",
31452	//     "https://www.googleapis.com/auth/dialogflow"
31453	//   ]
31454	// }
31455
31456}
31457
31458// method id "dialogflow.projects.conversationProfiles.delete":
31459
31460type ProjectsConversationProfilesDeleteCall struct {
31461	s          *Service
31462	name       string
31463	urlParams_ gensupport.URLParams
31464	ctx_       context.Context
31465	header_    http.Header
31466}
31467
31468// Delete: Deletes the specified conversation profile.
31469//
31470// - name: The name of the conversation profile to delete. Format:
31471//   `projects//locations//conversationProfiles/`.
31472func (r *ProjectsConversationProfilesService) Delete(name string) *ProjectsConversationProfilesDeleteCall {
31473	c := &ProjectsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31474	c.name = name
31475	return c
31476}
31477
31478// Fields allows partial responses to be retrieved. See
31479// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31480// for more information.
31481func (c *ProjectsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesDeleteCall {
31482	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31483	return c
31484}
31485
31486// Context sets the context to be used in this call's Do method. Any
31487// pending HTTP request will be aborted if the provided context is
31488// canceled.
31489func (c *ProjectsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsConversationProfilesDeleteCall {
31490	c.ctx_ = ctx
31491	return c
31492}
31493
31494// Header returns an http.Header that can be modified by the caller to
31495// add HTTP headers to the request.
31496func (c *ProjectsConversationProfilesDeleteCall) Header() http.Header {
31497	if c.header_ == nil {
31498		c.header_ = make(http.Header)
31499	}
31500	return c.header_
31501}
31502
31503func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
31504	reqHeaders := make(http.Header)
31505	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31506	for k, v := range c.header_ {
31507		reqHeaders[k] = v
31508	}
31509	reqHeaders.Set("User-Agent", c.s.userAgent())
31510	var body io.Reader = nil
31511	c.urlParams_.Set("alt", alt)
31512	c.urlParams_.Set("prettyPrint", "false")
31513	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31514	urls += "?" + c.urlParams_.Encode()
31515	req, err := http.NewRequest("DELETE", urls, body)
31516	if err != nil {
31517		return nil, err
31518	}
31519	req.Header = reqHeaders
31520	googleapi.Expand(req.URL, map[string]string{
31521		"name": c.name,
31522	})
31523	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31524}
31525
31526// Do executes the "dialogflow.projects.conversationProfiles.delete" call.
31527// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
31528// non-2xx status code is an error. Response headers are in either
31529// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
31530// returned at all) in error.(*googleapi.Error).Header. Use
31531// googleapi.IsNotModified to check whether the returned error was
31532// because http.StatusNotModified was returned.
31533func (c *ProjectsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31534	gensupport.SetOptions(c.urlParams_, opts...)
31535	res, err := c.doRequest("json")
31536	if res != nil && res.StatusCode == http.StatusNotModified {
31537		if res.Body != nil {
31538			res.Body.Close()
31539		}
31540		return nil, &googleapi.Error{
31541			Code:   res.StatusCode,
31542			Header: res.Header,
31543		}
31544	}
31545	if err != nil {
31546		return nil, err
31547	}
31548	defer googleapi.CloseBody(res)
31549	if err := googleapi.CheckResponse(res); err != nil {
31550		return nil, err
31551	}
31552	ret := &GoogleProtobufEmpty{
31553		ServerResponse: googleapi.ServerResponse{
31554			Header:         res.Header,
31555			HTTPStatusCode: res.StatusCode,
31556		},
31557	}
31558	target := &ret
31559	if err := gensupport.DecodeResponse(target, res); err != nil {
31560		return nil, err
31561	}
31562	return ret, nil
31563	// {
31564	//   "description": "Deletes the specified conversation profile.",
31565	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles/{conversationProfilesId}",
31566	//   "httpMethod": "DELETE",
31567	//   "id": "dialogflow.projects.conversationProfiles.delete",
31568	//   "parameterOrder": [
31569	//     "name"
31570	//   ],
31571	//   "parameters": {
31572	//     "name": {
31573	//       "description": "Required. The name of the conversation profile to delete. Format: `projects//locations//conversationProfiles/`.",
31574	//       "location": "path",
31575	//       "pattern": "^projects/[^/]+/conversationProfiles/[^/]+$",
31576	//       "required": true,
31577	//       "type": "string"
31578	//     }
31579	//   },
31580	//   "path": "v2beta1/{+name}",
31581	//   "response": {
31582	//     "$ref": "GoogleProtobufEmpty"
31583	//   },
31584	//   "scopes": [
31585	//     "https://www.googleapis.com/auth/cloud-platform",
31586	//     "https://www.googleapis.com/auth/dialogflow"
31587	//   ]
31588	// }
31589
31590}
31591
31592// method id "dialogflow.projects.conversationProfiles.get":
31593
31594type ProjectsConversationProfilesGetCall struct {
31595	s            *Service
31596	name         string
31597	urlParams_   gensupport.URLParams
31598	ifNoneMatch_ string
31599	ctx_         context.Context
31600	header_      http.Header
31601}
31602
31603// Get: Retrieves the specified conversation profile.
31604//
31605// - name: The resource name of the conversation profile. Format:
31606//   `projects//locations//conversationProfiles/`.
31607func (r *ProjectsConversationProfilesService) Get(name string) *ProjectsConversationProfilesGetCall {
31608	c := &ProjectsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31609	c.name = name
31610	return c
31611}
31612
31613// Fields allows partial responses to be retrieved. See
31614// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31615// for more information.
31616func (c *ProjectsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesGetCall {
31617	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31618	return c
31619}
31620
31621// IfNoneMatch sets the optional parameter which makes the operation
31622// fail if the object's ETag matches the given value. This is useful for
31623// getting updates only after the object has changed since the last
31624// request. Use googleapi.IsNotModified to check whether the response
31625// error from Do is the result of In-None-Match.
31626func (c *ProjectsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesGetCall {
31627	c.ifNoneMatch_ = entityTag
31628	return c
31629}
31630
31631// Context sets the context to be used in this call's Do method. Any
31632// pending HTTP request will be aborted if the provided context is
31633// canceled.
31634func (c *ProjectsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsConversationProfilesGetCall {
31635	c.ctx_ = ctx
31636	return c
31637}
31638
31639// Header returns an http.Header that can be modified by the caller to
31640// add HTTP headers to the request.
31641func (c *ProjectsConversationProfilesGetCall) Header() http.Header {
31642	if c.header_ == nil {
31643		c.header_ = make(http.Header)
31644	}
31645	return c.header_
31646}
31647
31648func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
31649	reqHeaders := make(http.Header)
31650	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31651	for k, v := range c.header_ {
31652		reqHeaders[k] = v
31653	}
31654	reqHeaders.Set("User-Agent", c.s.userAgent())
31655	if c.ifNoneMatch_ != "" {
31656		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31657	}
31658	var body io.Reader = nil
31659	c.urlParams_.Set("alt", alt)
31660	c.urlParams_.Set("prettyPrint", "false")
31661	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31662	urls += "?" + c.urlParams_.Encode()
31663	req, err := http.NewRequest("GET", urls, body)
31664	if err != nil {
31665		return nil, err
31666	}
31667	req.Header = reqHeaders
31668	googleapi.Expand(req.URL, map[string]string{
31669		"name": c.name,
31670	})
31671	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31672}
31673
31674// Do executes the "dialogflow.projects.conversationProfiles.get" call.
31675// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
31676// error will be non-nil. Any non-2xx status code is an error. Response
31677// headers are in either
31678// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
31679//  or (if a response was returned at all) in
31680// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31681// whether the returned error was because http.StatusNotModified was
31682// returned.
31683func (c *ProjectsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
31684	gensupport.SetOptions(c.urlParams_, opts...)
31685	res, err := c.doRequest("json")
31686	if res != nil && res.StatusCode == http.StatusNotModified {
31687		if res.Body != nil {
31688			res.Body.Close()
31689		}
31690		return nil, &googleapi.Error{
31691			Code:   res.StatusCode,
31692			Header: res.Header,
31693		}
31694	}
31695	if err != nil {
31696		return nil, err
31697	}
31698	defer googleapi.CloseBody(res)
31699	if err := googleapi.CheckResponse(res); err != nil {
31700		return nil, err
31701	}
31702	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
31703		ServerResponse: googleapi.ServerResponse{
31704			Header:         res.Header,
31705			HTTPStatusCode: res.StatusCode,
31706		},
31707	}
31708	target := &ret
31709	if err := gensupport.DecodeResponse(target, res); err != nil {
31710		return nil, err
31711	}
31712	return ret, nil
31713	// {
31714	//   "description": "Retrieves the specified conversation profile.",
31715	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles/{conversationProfilesId}",
31716	//   "httpMethod": "GET",
31717	//   "id": "dialogflow.projects.conversationProfiles.get",
31718	//   "parameterOrder": [
31719	//     "name"
31720	//   ],
31721	//   "parameters": {
31722	//     "name": {
31723	//       "description": "Required. The resource name of the conversation profile. Format: `projects//locations//conversationProfiles/`.",
31724	//       "location": "path",
31725	//       "pattern": "^projects/[^/]+/conversationProfiles/[^/]+$",
31726	//       "required": true,
31727	//       "type": "string"
31728	//     }
31729	//   },
31730	//   "path": "v2beta1/{+name}",
31731	//   "response": {
31732	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31733	//   },
31734	//   "scopes": [
31735	//     "https://www.googleapis.com/auth/cloud-platform",
31736	//     "https://www.googleapis.com/auth/dialogflow"
31737	//   ]
31738	// }
31739
31740}
31741
31742// method id "dialogflow.projects.conversationProfiles.list":
31743
31744type ProjectsConversationProfilesListCall struct {
31745	s            *Service
31746	parent       string
31747	urlParams_   gensupport.URLParams
31748	ifNoneMatch_ string
31749	ctx_         context.Context
31750	header_      http.Header
31751}
31752
31753// List: Returns the list of all conversation profiles in the specified
31754// project.
31755//
31756// - parent: The project to list all conversation profiles from. Format:
31757//   `projects//locations/`.
31758func (r *ProjectsConversationProfilesService) List(parent string) *ProjectsConversationProfilesListCall {
31759	c := &ProjectsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31760	c.parent = parent
31761	return c
31762}
31763
31764// PageSize sets the optional parameter "pageSize": The maximum number
31765// of items to return in a single page. By default 100 and at most 1000.
31766func (c *ProjectsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsConversationProfilesListCall {
31767	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31768	return c
31769}
31770
31771// PageToken sets the optional parameter "pageToken": The
31772// next_page_token value returned from a previous list request.
31773func (c *ProjectsConversationProfilesListCall) PageToken(pageToken string) *ProjectsConversationProfilesListCall {
31774	c.urlParams_.Set("pageToken", pageToken)
31775	return c
31776}
31777
31778// Fields allows partial responses to be retrieved. See
31779// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31780// for more information.
31781func (c *ProjectsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesListCall {
31782	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31783	return c
31784}
31785
31786// IfNoneMatch sets the optional parameter which makes the operation
31787// fail if the object's ETag matches the given value. This is useful for
31788// getting updates only after the object has changed since the last
31789// request. Use googleapi.IsNotModified to check whether the response
31790// error from Do is the result of In-None-Match.
31791func (c *ProjectsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesListCall {
31792	c.ifNoneMatch_ = entityTag
31793	return c
31794}
31795
31796// Context sets the context to be used in this call's Do method. Any
31797// pending HTTP request will be aborted if the provided context is
31798// canceled.
31799func (c *ProjectsConversationProfilesListCall) Context(ctx context.Context) *ProjectsConversationProfilesListCall {
31800	c.ctx_ = ctx
31801	return c
31802}
31803
31804// Header returns an http.Header that can be modified by the caller to
31805// add HTTP headers to the request.
31806func (c *ProjectsConversationProfilesListCall) Header() http.Header {
31807	if c.header_ == nil {
31808		c.header_ = make(http.Header)
31809	}
31810	return c.header_
31811}
31812
31813func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
31814	reqHeaders := make(http.Header)
31815	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31816	for k, v := range c.header_ {
31817		reqHeaders[k] = v
31818	}
31819	reqHeaders.Set("User-Agent", c.s.userAgent())
31820	if c.ifNoneMatch_ != "" {
31821		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31822	}
31823	var body io.Reader = nil
31824	c.urlParams_.Set("alt", alt)
31825	c.urlParams_.Set("prettyPrint", "false")
31826	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
31827	urls += "?" + c.urlParams_.Encode()
31828	req, err := http.NewRequest("GET", urls, body)
31829	if err != nil {
31830		return nil, err
31831	}
31832	req.Header = reqHeaders
31833	googleapi.Expand(req.URL, map[string]string{
31834		"parent": c.parent,
31835	})
31836	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31837}
31838
31839// Do executes the "dialogflow.projects.conversationProfiles.list" call.
31840// Exactly one of
31841// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse or
31842// error will be non-nil. Any non-2xx status code is an error. Response
31843// headers are in either
31844// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerRe
31845// sponse.Header or (if a response was returned at all) in
31846// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31847// whether the returned error was because http.StatusNotModified was
31848// returned.
31849func (c *ProjectsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
31850	gensupport.SetOptions(c.urlParams_, opts...)
31851	res, err := c.doRequest("json")
31852	if res != nil && res.StatusCode == http.StatusNotModified {
31853		if res.Body != nil {
31854			res.Body.Close()
31855		}
31856		return nil, &googleapi.Error{
31857			Code:   res.StatusCode,
31858			Header: res.Header,
31859		}
31860	}
31861	if err != nil {
31862		return nil, err
31863	}
31864	defer googleapi.CloseBody(res)
31865	if err := googleapi.CheckResponse(res); err != nil {
31866		return nil, err
31867	}
31868	ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
31869		ServerResponse: googleapi.ServerResponse{
31870			Header:         res.Header,
31871			HTTPStatusCode: res.StatusCode,
31872		},
31873	}
31874	target := &ret
31875	if err := gensupport.DecodeResponse(target, res); err != nil {
31876		return nil, err
31877	}
31878	return ret, nil
31879	// {
31880	//   "description": "Returns the list of all conversation profiles in the specified project.",
31881	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles",
31882	//   "httpMethod": "GET",
31883	//   "id": "dialogflow.projects.conversationProfiles.list",
31884	//   "parameterOrder": [
31885	//     "parent"
31886	//   ],
31887	//   "parameters": {
31888	//     "pageSize": {
31889	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
31890	//       "format": "int32",
31891	//       "location": "query",
31892	//       "type": "integer"
31893	//     },
31894	//     "pageToken": {
31895	//       "description": "The next_page_token value returned from a previous list request.",
31896	//       "location": "query",
31897	//       "type": "string"
31898	//     },
31899	//     "parent": {
31900	//       "description": "Required. The project to list all conversation profiles from. Format: `projects//locations/`.",
31901	//       "location": "path",
31902	//       "pattern": "^projects/[^/]+$",
31903	//       "required": true,
31904	//       "type": "string"
31905	//     }
31906	//   },
31907	//   "path": "v2beta1/{+parent}/conversationProfiles",
31908	//   "response": {
31909	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationProfilesResponse"
31910	//   },
31911	//   "scopes": [
31912	//     "https://www.googleapis.com/auth/cloud-platform",
31913	//     "https://www.googleapis.com/auth/dialogflow"
31914	//   ]
31915	// }
31916
31917}
31918
31919// Pages invokes f for each page of results.
31920// A non-nil error returned from f will halt the iteration.
31921// The provided context supersedes any context provided to the Context method.
31922func (c *ProjectsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
31923	c.ctx_ = ctx
31924	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
31925	for {
31926		x, err := c.Do()
31927		if err != nil {
31928			return err
31929		}
31930		if err := f(x); err != nil {
31931			return err
31932		}
31933		if x.NextPageToken == "" {
31934			return nil
31935		}
31936		c.PageToken(x.NextPageToken)
31937	}
31938}
31939
31940// method id "dialogflow.projects.conversationProfiles.patch":
31941
31942type ProjectsConversationProfilesPatchCall struct {
31943	s                                               *Service
31944	nameid                                          string
31945	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
31946	urlParams_                                      gensupport.URLParams
31947	ctx_                                            context.Context
31948	header_                                         http.Header
31949}
31950
31951// Patch: Updates the specified conversation profile.
31952// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
31953// aren't populated in the response. You can retrieve them via
31954// GetConversationProfile API.
31955//
31956// - name: The unique identifier of this conversation profile. Format:
31957//   `projects//locations//conversationProfiles/`.
31958func (r *ProjectsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesPatchCall {
31959	c := &ProjectsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31960	c.nameid = nameid
31961	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
31962	return c
31963}
31964
31965// UpdateMask sets the optional parameter "updateMask": Required. The
31966// mask to control which fields to update.
31967func (c *ProjectsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsConversationProfilesPatchCall {
31968	c.urlParams_.Set("updateMask", updateMask)
31969	return c
31970}
31971
31972// Fields allows partial responses to be retrieved. See
31973// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31974// for more information.
31975func (c *ProjectsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesPatchCall {
31976	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31977	return c
31978}
31979
31980// Context sets the context to be used in this call's Do method. Any
31981// pending HTTP request will be aborted if the provided context is
31982// canceled.
31983func (c *ProjectsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsConversationProfilesPatchCall {
31984	c.ctx_ = ctx
31985	return c
31986}
31987
31988// Header returns an http.Header that can be modified by the caller to
31989// add HTTP headers to the request.
31990func (c *ProjectsConversationProfilesPatchCall) Header() http.Header {
31991	if c.header_ == nil {
31992		c.header_ = make(http.Header)
31993	}
31994	return c.header_
31995}
31996
31997func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
31998	reqHeaders := make(http.Header)
31999	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32000	for k, v := range c.header_ {
32001		reqHeaders[k] = v
32002	}
32003	reqHeaders.Set("User-Agent", c.s.userAgent())
32004	var body io.Reader = nil
32005	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
32006	if err != nil {
32007		return nil, err
32008	}
32009	reqHeaders.Set("Content-Type", "application/json")
32010	c.urlParams_.Set("alt", alt)
32011	c.urlParams_.Set("prettyPrint", "false")
32012	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
32013	urls += "?" + c.urlParams_.Encode()
32014	req, err := http.NewRequest("PATCH", urls, body)
32015	if err != nil {
32016		return nil, err
32017	}
32018	req.Header = reqHeaders
32019	googleapi.Expand(req.URL, map[string]string{
32020		"name": c.nameid,
32021	})
32022	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32023}
32024
32025// Do executes the "dialogflow.projects.conversationProfiles.patch" call.
32026// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
32027// error will be non-nil. Any non-2xx status code is an error. Response
32028// headers are in either
32029// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
32030//  or (if a response was returned at all) in
32031// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32032// whether the returned error was because http.StatusNotModified was
32033// returned.
32034func (c *ProjectsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
32035	gensupport.SetOptions(c.urlParams_, opts...)
32036	res, err := c.doRequest("json")
32037	if res != nil && res.StatusCode == http.StatusNotModified {
32038		if res.Body != nil {
32039			res.Body.Close()
32040		}
32041		return nil, &googleapi.Error{
32042			Code:   res.StatusCode,
32043			Header: res.Header,
32044		}
32045	}
32046	if err != nil {
32047		return nil, err
32048	}
32049	defer googleapi.CloseBody(res)
32050	if err := googleapi.CheckResponse(res); err != nil {
32051		return nil, err
32052	}
32053	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
32054		ServerResponse: googleapi.ServerResponse{
32055			Header:         res.Header,
32056			HTTPStatusCode: res.StatusCode,
32057		},
32058	}
32059	target := &ret
32060	if err := gensupport.DecodeResponse(target, res); err != nil {
32061		return nil, err
32062	}
32063	return ret, nil
32064	// {
32065	//   "description": "Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.",
32066	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles/{conversationProfilesId}",
32067	//   "httpMethod": "PATCH",
32068	//   "id": "dialogflow.projects.conversationProfiles.patch",
32069	//   "parameterOrder": [
32070	//     "name"
32071	//   ],
32072	//   "parameters": {
32073	//     "name": {
32074	//       "description": "The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`.",
32075	//       "location": "path",
32076	//       "pattern": "^projects/[^/]+/conversationProfiles/[^/]+$",
32077	//       "required": true,
32078	//       "type": "string"
32079	//     },
32080	//     "updateMask": {
32081	//       "description": "Required. The mask to control which fields to update.",
32082	//       "format": "google-fieldmask",
32083	//       "location": "query",
32084	//       "type": "string"
32085	//     }
32086	//   },
32087	//   "path": "v2beta1/{+name}",
32088	//   "request": {
32089	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
32090	//   },
32091	//   "response": {
32092	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
32093	//   },
32094	//   "scopes": [
32095	//     "https://www.googleapis.com/auth/cloud-platform",
32096	//     "https://www.googleapis.com/auth/dialogflow"
32097	//   ]
32098	// }
32099
32100}
32101
32102// method id "dialogflow.projects.conversations.complete":
32103
32104type ProjectsConversationsCompleteCall struct {
32105	s                                                       *Service
32106	nameid                                                  string
32107	googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
32108	urlParams_                                              gensupport.URLParams
32109	ctx_                                                    context.Context
32110	header_                                                 http.Header
32111}
32112
32113// Complete: Completes the specified conversation. Finished
32114// conversations are purged from the database after 30 days.
32115//
32116// - name: Resource identifier of the conversation to close. Format:
32117//   `projects//locations//conversations/`.
32118func (r *ProjectsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsConversationsCompleteCall {
32119	c := &ProjectsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32120	c.nameid = nameid
32121	c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
32122	return c
32123}
32124
32125// Fields allows partial responses to be retrieved. See
32126// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32127// for more information.
32128func (c *ProjectsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsConversationsCompleteCall {
32129	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32130	return c
32131}
32132
32133// Context sets the context to be used in this call's Do method. Any
32134// pending HTTP request will be aborted if the provided context is
32135// canceled.
32136func (c *ProjectsConversationsCompleteCall) Context(ctx context.Context) *ProjectsConversationsCompleteCall {
32137	c.ctx_ = ctx
32138	return c
32139}
32140
32141// Header returns an http.Header that can be modified by the caller to
32142// add HTTP headers to the request.
32143func (c *ProjectsConversationsCompleteCall) Header() http.Header {
32144	if c.header_ == nil {
32145		c.header_ = make(http.Header)
32146	}
32147	return c.header_
32148}
32149
32150func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
32151	reqHeaders := make(http.Header)
32152	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32153	for k, v := range c.header_ {
32154		reqHeaders[k] = v
32155	}
32156	reqHeaders.Set("User-Agent", c.s.userAgent())
32157	var body io.Reader = nil
32158	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
32159	if err != nil {
32160		return nil, err
32161	}
32162	reqHeaders.Set("Content-Type", "application/json")
32163	c.urlParams_.Set("alt", alt)
32164	c.urlParams_.Set("prettyPrint", "false")
32165	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
32166	urls += "?" + c.urlParams_.Encode()
32167	req, err := http.NewRequest("POST", urls, body)
32168	if err != nil {
32169		return nil, err
32170	}
32171	req.Header = reqHeaders
32172	googleapi.Expand(req.URL, map[string]string{
32173		"name": c.nameid,
32174	})
32175	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32176}
32177
32178// Do executes the "dialogflow.projects.conversations.complete" call.
32179// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
32180// will be non-nil. Any non-2xx status code is an error. Response
32181// headers are in either
32182// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
32183// (if a response was returned at all) in
32184// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32185// whether the returned error was because http.StatusNotModified was
32186// returned.
32187func (c *ProjectsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
32188	gensupport.SetOptions(c.urlParams_, opts...)
32189	res, err := c.doRequest("json")
32190	if res != nil && res.StatusCode == http.StatusNotModified {
32191		if res.Body != nil {
32192			res.Body.Close()
32193		}
32194		return nil, &googleapi.Error{
32195			Code:   res.StatusCode,
32196			Header: res.Header,
32197		}
32198	}
32199	if err != nil {
32200		return nil, err
32201	}
32202	defer googleapi.CloseBody(res)
32203	if err := googleapi.CheckResponse(res); err != nil {
32204		return nil, err
32205	}
32206	ret := &GoogleCloudDialogflowV2beta1Conversation{
32207		ServerResponse: googleapi.ServerResponse{
32208			Header:         res.Header,
32209			HTTPStatusCode: res.StatusCode,
32210		},
32211	}
32212	target := &ret
32213	if err := gensupport.DecodeResponse(target, res); err != nil {
32214		return nil, err
32215	}
32216	return ret, nil
32217	// {
32218	//   "description": "Completes the specified conversation. Finished conversations are purged from the database after 30 days.",
32219	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}:complete",
32220	//   "httpMethod": "POST",
32221	//   "id": "dialogflow.projects.conversations.complete",
32222	//   "parameterOrder": [
32223	//     "name"
32224	//   ],
32225	//   "parameters": {
32226	//     "name": {
32227	//       "description": "Required. Resource identifier of the conversation to close. Format: `projects//locations//conversations/`.",
32228	//       "location": "path",
32229	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
32230	//       "required": true,
32231	//       "type": "string"
32232	//     }
32233	//   },
32234	//   "path": "v2beta1/{+name}:complete",
32235	//   "request": {
32236	//     "$ref": "GoogleCloudDialogflowV2beta1CompleteConversationRequest"
32237	//   },
32238	//   "response": {
32239	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
32240	//   },
32241	//   "scopes": [
32242	//     "https://www.googleapis.com/auth/cloud-platform",
32243	//     "https://www.googleapis.com/auth/dialogflow"
32244	//   ]
32245	// }
32246
32247}
32248
32249// method id "dialogflow.projects.conversations.create":
32250
32251type ProjectsConversationsCreateCall struct {
32252	s                                        *Service
32253	parentid                                 string
32254	googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
32255	urlParams_                               gensupport.URLParams
32256	ctx_                                     context.Context
32257	header_                                  http.Header
32258}
32259
32260// Create: Creates a new conversation. Conversations are auto-completed
32261// after 24 hours. Conversation Lifecycle: There are two stages during a
32262// conversation: Automated Agent Stage and Assist Stage. For Automated
32263// Agent Stage, there will be a dialogflow agent responding to user
32264// queries. For Assist Stage, there's no dialogflow agent responding to
32265// user queries. But we will provide suggestions which are generated
32266// from conversation. If Conversation.conversation_profile is configured
32267// for a dialogflow agent, conversation will start from `Automated Agent
32268// Stage`, otherwise, it will start from `Assist Stage`. And during
32269// `Automated Agent Stage`, once an Intent with
32270// Intent.live_agent_handoff is triggered, conversation will transfer to
32271// Assist Stage.
32272//
32273// - parent: Resource identifier of the project creating the
32274//   conversation. Format: `projects//locations/`.
32275func (r *ProjectsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsConversationsCreateCall {
32276	c := &ProjectsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32277	c.parentid = parentid
32278	c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
32279	return c
32280}
32281
32282// ConversationId sets the optional parameter "conversationId":
32283// Identifier of the conversation. Generally it's auto generated by
32284// Google. Only set it if you cannot wait for the response to return a
32285// auto-generated one to you. The conversation ID must be compliant with
32286// the regression fomula "a-zA-Z*" with the characters length in range
32287// of [3,64]. If the field is provided, the caller is resposible for 1.
32288// the uniqueness of the ID, otherwise the request will be rejected. 2.
32289// the consistency for whether to use custom ID or not under a project
32290// to better ensure uniqueness.
32291func (c *ProjectsConversationsCreateCall) ConversationId(conversationId string) *ProjectsConversationsCreateCall {
32292	c.urlParams_.Set("conversationId", conversationId)
32293	return c
32294}
32295
32296// Fields allows partial responses to be retrieved. See
32297// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32298// for more information.
32299func (c *ProjectsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsCreateCall {
32300	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32301	return c
32302}
32303
32304// Context sets the context to be used in this call's Do method. Any
32305// pending HTTP request will be aborted if the provided context is
32306// canceled.
32307func (c *ProjectsConversationsCreateCall) Context(ctx context.Context) *ProjectsConversationsCreateCall {
32308	c.ctx_ = ctx
32309	return c
32310}
32311
32312// Header returns an http.Header that can be modified by the caller to
32313// add HTTP headers to the request.
32314func (c *ProjectsConversationsCreateCall) Header() http.Header {
32315	if c.header_ == nil {
32316		c.header_ = make(http.Header)
32317	}
32318	return c.header_
32319}
32320
32321func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
32322	reqHeaders := make(http.Header)
32323	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32324	for k, v := range c.header_ {
32325		reqHeaders[k] = v
32326	}
32327	reqHeaders.Set("User-Agent", c.s.userAgent())
32328	var body io.Reader = nil
32329	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
32330	if err != nil {
32331		return nil, err
32332	}
32333	reqHeaders.Set("Content-Type", "application/json")
32334	c.urlParams_.Set("alt", alt)
32335	c.urlParams_.Set("prettyPrint", "false")
32336	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
32337	urls += "?" + c.urlParams_.Encode()
32338	req, err := http.NewRequest("POST", urls, body)
32339	if err != nil {
32340		return nil, err
32341	}
32342	req.Header = reqHeaders
32343	googleapi.Expand(req.URL, map[string]string{
32344		"parent": c.parentid,
32345	})
32346	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32347}
32348
32349// Do executes the "dialogflow.projects.conversations.create" call.
32350// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
32351// will be non-nil. Any non-2xx status code is an error. Response
32352// headers are in either
32353// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
32354// (if a response was returned at all) in
32355// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32356// whether the returned error was because http.StatusNotModified was
32357// returned.
32358func (c *ProjectsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
32359	gensupport.SetOptions(c.urlParams_, opts...)
32360	res, err := c.doRequest("json")
32361	if res != nil && res.StatusCode == http.StatusNotModified {
32362		if res.Body != nil {
32363			res.Body.Close()
32364		}
32365		return nil, &googleapi.Error{
32366			Code:   res.StatusCode,
32367			Header: res.Header,
32368		}
32369	}
32370	if err != nil {
32371		return nil, err
32372	}
32373	defer googleapi.CloseBody(res)
32374	if err := googleapi.CheckResponse(res); err != nil {
32375		return nil, err
32376	}
32377	ret := &GoogleCloudDialogflowV2beta1Conversation{
32378		ServerResponse: googleapi.ServerResponse{
32379			Header:         res.Header,
32380			HTTPStatusCode: res.StatusCode,
32381		},
32382	}
32383	target := &ret
32384	if err := gensupport.DecodeResponse(target, res); err != nil {
32385		return nil, err
32386	}
32387	return ret, nil
32388	// {
32389	//   "description": "Creates a new conversation. Conversations are auto-completed after 24 hours. Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. For Automated Agent Stage, there will be a dialogflow agent responding to user queries. For Assist Stage, there's no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation. If Conversation.conversation_profile is configured for a dialogflow agent, conversation will start from `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And during `Automated Agent Stage`, once an Intent with Intent.live_agent_handoff is triggered, conversation will transfer to Assist Stage.",
32390	//   "flatPath": "v2beta1/projects/{projectsId}/conversations",
32391	//   "httpMethod": "POST",
32392	//   "id": "dialogflow.projects.conversations.create",
32393	//   "parameterOrder": [
32394	//     "parent"
32395	//   ],
32396	//   "parameters": {
32397	//     "conversationId": {
32398	//       "description": "Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula \"a-zA-Z*\" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.",
32399	//       "location": "query",
32400	//       "type": "string"
32401	//     },
32402	//     "parent": {
32403	//       "description": "Required. Resource identifier of the project creating the conversation. Format: `projects//locations/`.",
32404	//       "location": "path",
32405	//       "pattern": "^projects/[^/]+$",
32406	//       "required": true,
32407	//       "type": "string"
32408	//     }
32409	//   },
32410	//   "path": "v2beta1/{+parent}/conversations",
32411	//   "request": {
32412	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
32413	//   },
32414	//   "response": {
32415	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
32416	//   },
32417	//   "scopes": [
32418	//     "https://www.googleapis.com/auth/cloud-platform",
32419	//     "https://www.googleapis.com/auth/dialogflow"
32420	//   ]
32421	// }
32422
32423}
32424
32425// method id "dialogflow.projects.conversations.get":
32426
32427type ProjectsConversationsGetCall struct {
32428	s            *Service
32429	name         string
32430	urlParams_   gensupport.URLParams
32431	ifNoneMatch_ string
32432	ctx_         context.Context
32433	header_      http.Header
32434}
32435
32436// Get: Retrieves the specific conversation.
32437//
32438// - name: The name of the conversation. Format:
32439//   `projects//locations//conversations/`.
32440func (r *ProjectsConversationsService) Get(name string) *ProjectsConversationsGetCall {
32441	c := &ProjectsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32442	c.name = name
32443	return c
32444}
32445
32446// Fields allows partial responses to be retrieved. See
32447// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32448// for more information.
32449func (c *ProjectsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsGetCall {
32450	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32451	return c
32452}
32453
32454// IfNoneMatch sets the optional parameter which makes the operation
32455// fail if the object's ETag matches the given value. This is useful for
32456// getting updates only after the object has changed since the last
32457// request. Use googleapi.IsNotModified to check whether the response
32458// error from Do is the result of In-None-Match.
32459func (c *ProjectsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsGetCall {
32460	c.ifNoneMatch_ = entityTag
32461	return c
32462}
32463
32464// Context sets the context to be used in this call's Do method. Any
32465// pending HTTP request will be aborted if the provided context is
32466// canceled.
32467func (c *ProjectsConversationsGetCall) Context(ctx context.Context) *ProjectsConversationsGetCall {
32468	c.ctx_ = ctx
32469	return c
32470}
32471
32472// Header returns an http.Header that can be modified by the caller to
32473// add HTTP headers to the request.
32474func (c *ProjectsConversationsGetCall) Header() http.Header {
32475	if c.header_ == nil {
32476		c.header_ = make(http.Header)
32477	}
32478	return c.header_
32479}
32480
32481func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
32482	reqHeaders := make(http.Header)
32483	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32484	for k, v := range c.header_ {
32485		reqHeaders[k] = v
32486	}
32487	reqHeaders.Set("User-Agent", c.s.userAgent())
32488	if c.ifNoneMatch_ != "" {
32489		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32490	}
32491	var body io.Reader = nil
32492	c.urlParams_.Set("alt", alt)
32493	c.urlParams_.Set("prettyPrint", "false")
32494	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
32495	urls += "?" + c.urlParams_.Encode()
32496	req, err := http.NewRequest("GET", urls, body)
32497	if err != nil {
32498		return nil, err
32499	}
32500	req.Header = reqHeaders
32501	googleapi.Expand(req.URL, map[string]string{
32502		"name": c.name,
32503	})
32504	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32505}
32506
32507// Do executes the "dialogflow.projects.conversations.get" call.
32508// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
32509// will be non-nil. Any non-2xx status code is an error. Response
32510// headers are in either
32511// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
32512// (if a response was returned at all) in
32513// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32514// whether the returned error was because http.StatusNotModified was
32515// returned.
32516func (c *ProjectsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
32517	gensupport.SetOptions(c.urlParams_, opts...)
32518	res, err := c.doRequest("json")
32519	if res != nil && res.StatusCode == http.StatusNotModified {
32520		if res.Body != nil {
32521			res.Body.Close()
32522		}
32523		return nil, &googleapi.Error{
32524			Code:   res.StatusCode,
32525			Header: res.Header,
32526		}
32527	}
32528	if err != nil {
32529		return nil, err
32530	}
32531	defer googleapi.CloseBody(res)
32532	if err := googleapi.CheckResponse(res); err != nil {
32533		return nil, err
32534	}
32535	ret := &GoogleCloudDialogflowV2beta1Conversation{
32536		ServerResponse: googleapi.ServerResponse{
32537			Header:         res.Header,
32538			HTTPStatusCode: res.StatusCode,
32539		},
32540	}
32541	target := &ret
32542	if err := gensupport.DecodeResponse(target, res); err != nil {
32543		return nil, err
32544	}
32545	return ret, nil
32546	// {
32547	//   "description": "Retrieves the specific conversation.",
32548	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}",
32549	//   "httpMethod": "GET",
32550	//   "id": "dialogflow.projects.conversations.get",
32551	//   "parameterOrder": [
32552	//     "name"
32553	//   ],
32554	//   "parameters": {
32555	//     "name": {
32556	//       "description": "Required. The name of the conversation. Format: `projects//locations//conversations/`.",
32557	//       "location": "path",
32558	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
32559	//       "required": true,
32560	//       "type": "string"
32561	//     }
32562	//   },
32563	//   "path": "v2beta1/{+name}",
32564	//   "response": {
32565	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
32566	//   },
32567	//   "scopes": [
32568	//     "https://www.googleapis.com/auth/cloud-platform",
32569	//     "https://www.googleapis.com/auth/dialogflow"
32570	//   ]
32571	// }
32572
32573}
32574
32575// method id "dialogflow.projects.conversations.list":
32576
32577type ProjectsConversationsListCall struct {
32578	s            *Service
32579	parent       string
32580	urlParams_   gensupport.URLParams
32581	ifNoneMatch_ string
32582	ctx_         context.Context
32583	header_      http.Header
32584}
32585
32586// List: Returns the list of all conversations in the specified project.
32587//
32588// - parent: The project from which to list all conversation. Format:
32589//   `projects//locations/`.
32590func (r *ProjectsConversationsService) List(parent string) *ProjectsConversationsListCall {
32591	c := &ProjectsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32592	c.parent = parent
32593	return c
32594}
32595
32596// Filter sets the optional parameter "filter": A filter expression that
32597// filters conversations listed in the response. In general, the
32598// expression must specify the field name, a comparison operator, and
32599// the value to use for filtering: - The value must be a string, a
32600// number, or a boolean. - The comparison operator must be either
32601// `=`,`!=`, `>`, or `<`. - To filter on multiple expressions, separate
32602// the expressions with `AND` or `OR` (omitting both implies `AND`). -
32603// For clarity, expressions can be enclosed in parentheses. Only
32604// `lifecycle_state` can be filtered on in this way. For example, the
32605// following expression only returns `COMPLETED` conversations:
32606// `lifecycle_state = "COMPLETED" For more information about filtering,
32607// see API Filtering (https://aip.dev/160).
32608func (c *ProjectsConversationsListCall) Filter(filter string) *ProjectsConversationsListCall {
32609	c.urlParams_.Set("filter", filter)
32610	return c
32611}
32612
32613// PageSize sets the optional parameter "pageSize": The maximum number
32614// of items to return in a single page. By default 100 and at most 1000.
32615func (c *ProjectsConversationsListCall) PageSize(pageSize int64) *ProjectsConversationsListCall {
32616	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32617	return c
32618}
32619
32620// PageToken sets the optional parameter "pageToken": The
32621// next_page_token value returned from a previous list request.
32622func (c *ProjectsConversationsListCall) PageToken(pageToken string) *ProjectsConversationsListCall {
32623	c.urlParams_.Set("pageToken", pageToken)
32624	return c
32625}
32626
32627// Fields allows partial responses to be retrieved. See
32628// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32629// for more information.
32630func (c *ProjectsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsListCall {
32631	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32632	return c
32633}
32634
32635// IfNoneMatch sets the optional parameter which makes the operation
32636// fail if the object's ETag matches the given value. This is useful for
32637// getting updates only after the object has changed since the last
32638// request. Use googleapi.IsNotModified to check whether the response
32639// error from Do is the result of In-None-Match.
32640func (c *ProjectsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsListCall {
32641	c.ifNoneMatch_ = entityTag
32642	return c
32643}
32644
32645// Context sets the context to be used in this call's Do method. Any
32646// pending HTTP request will be aborted if the provided context is
32647// canceled.
32648func (c *ProjectsConversationsListCall) Context(ctx context.Context) *ProjectsConversationsListCall {
32649	c.ctx_ = ctx
32650	return c
32651}
32652
32653// Header returns an http.Header that can be modified by the caller to
32654// add HTTP headers to the request.
32655func (c *ProjectsConversationsListCall) Header() http.Header {
32656	if c.header_ == nil {
32657		c.header_ = make(http.Header)
32658	}
32659	return c.header_
32660}
32661
32662func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, error) {
32663	reqHeaders := make(http.Header)
32664	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32665	for k, v := range c.header_ {
32666		reqHeaders[k] = v
32667	}
32668	reqHeaders.Set("User-Agent", c.s.userAgent())
32669	if c.ifNoneMatch_ != "" {
32670		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32671	}
32672	var body io.Reader = nil
32673	c.urlParams_.Set("alt", alt)
32674	c.urlParams_.Set("prettyPrint", "false")
32675	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
32676	urls += "?" + c.urlParams_.Encode()
32677	req, err := http.NewRequest("GET", urls, body)
32678	if err != nil {
32679		return nil, err
32680	}
32681	req.Header = reqHeaders
32682	googleapi.Expand(req.URL, map[string]string{
32683		"parent": c.parent,
32684	})
32685	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32686}
32687
32688// Do executes the "dialogflow.projects.conversations.list" call.
32689// Exactly one of *GoogleCloudDialogflowV2beta1ListConversationsResponse
32690// or error will be non-nil. Any non-2xx status code is an error.
32691// Response headers are in either
32692// *GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.
32693// Header or (if a response was returned at all) in
32694// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32695// whether the returned error was because http.StatusNotModified was
32696// returned.
32697func (c *ProjectsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
32698	gensupport.SetOptions(c.urlParams_, opts...)
32699	res, err := c.doRequest("json")
32700	if res != nil && res.StatusCode == http.StatusNotModified {
32701		if res.Body != nil {
32702			res.Body.Close()
32703		}
32704		return nil, &googleapi.Error{
32705			Code:   res.StatusCode,
32706			Header: res.Header,
32707		}
32708	}
32709	if err != nil {
32710		return nil, err
32711	}
32712	defer googleapi.CloseBody(res)
32713	if err := googleapi.CheckResponse(res); err != nil {
32714		return nil, err
32715	}
32716	ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
32717		ServerResponse: googleapi.ServerResponse{
32718			Header:         res.Header,
32719			HTTPStatusCode: res.StatusCode,
32720		},
32721	}
32722	target := &ret
32723	if err := gensupport.DecodeResponse(target, res); err != nil {
32724		return nil, err
32725	}
32726	return ret, nil
32727	// {
32728	//   "description": "Returns the list of all conversations in the specified project.",
32729	//   "flatPath": "v2beta1/projects/{projectsId}/conversations",
32730	//   "httpMethod": "GET",
32731	//   "id": "dialogflow.projects.conversations.list",
32732	//   "parameterOrder": [
32733	//     "parent"
32734	//   ],
32735	//   "parameters": {
32736	//     "filter": {
32737	//       "description": "A filter expression that filters conversations listed in the response. In general, the expression must specify the field name, a comparison operator, and the value to use for filtering: - The value must be a string, a number, or a boolean. - The comparison operator must be either `=`,`!=`, `\u003e`, or `\u003c`. - To filter on multiple expressions, separate the expressions with `AND` or `OR` (omitting both implies `AND`). - For clarity, expressions can be enclosed in parentheses. Only `lifecycle_state` can be filtered on in this way. For example, the following expression only returns `COMPLETED` conversations: `lifecycle_state = \"COMPLETED\"` For more information about filtering, see [API Filtering](https://aip.dev/160).",
32738	//       "location": "query",
32739	//       "type": "string"
32740	//     },
32741	//     "pageSize": {
32742	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
32743	//       "format": "int32",
32744	//       "location": "query",
32745	//       "type": "integer"
32746	//     },
32747	//     "pageToken": {
32748	//       "description": "Optional. The next_page_token value returned from a previous list request.",
32749	//       "location": "query",
32750	//       "type": "string"
32751	//     },
32752	//     "parent": {
32753	//       "description": "Required. The project from which to list all conversation. Format: `projects//locations/`.",
32754	//       "location": "path",
32755	//       "pattern": "^projects/[^/]+$",
32756	//       "required": true,
32757	//       "type": "string"
32758	//     }
32759	//   },
32760	//   "path": "v2beta1/{+parent}/conversations",
32761	//   "response": {
32762	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationsResponse"
32763	//   },
32764	//   "scopes": [
32765	//     "https://www.googleapis.com/auth/cloud-platform",
32766	//     "https://www.googleapis.com/auth/dialogflow"
32767	//   ]
32768	// }
32769
32770}
32771
32772// Pages invokes f for each page of results.
32773// A non-nil error returned from f will halt the iteration.
32774// The provided context supersedes any context provided to the Context method.
32775func (c *ProjectsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
32776	c.ctx_ = ctx
32777	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
32778	for {
32779		x, err := c.Do()
32780		if err != nil {
32781			return err
32782		}
32783		if err := f(x); err != nil {
32784			return err
32785		}
32786		if x.NextPageToken == "" {
32787			return nil
32788		}
32789		c.PageToken(x.NextPageToken)
32790	}
32791}
32792
32793// method id "dialogflow.projects.conversations.messages.batchCreate":
32794
32795type ProjectsConversationsMessagesBatchCreateCall struct {
32796	s                                                      *Service
32797	parentid                                               string
32798	googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
32799	urlParams_                                             gensupport.URLParams
32800	ctx_                                                   context.Context
32801	header_                                                http.Header
32802}
32803
32804// BatchCreate: Batch ingests messages to conversation. Customers can
32805// use this RPC to ingest historical messages to conversation.
32806//
32807// - parent: Resource identifier of the conversation to create message.
32808//   Format: `projects//locations//conversations/`.
32809func (r *ProjectsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsConversationsMessagesBatchCreateCall {
32810	c := &ProjectsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32811	c.parentid = parentid
32812	c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
32813	return c
32814}
32815
32816// Fields allows partial responses to be retrieved. See
32817// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32818// for more information.
32819func (c *ProjectsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesBatchCreateCall {
32820	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32821	return c
32822}
32823
32824// Context sets the context to be used in this call's Do method. Any
32825// pending HTTP request will be aborted if the provided context is
32826// canceled.
32827func (c *ProjectsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsConversationsMessagesBatchCreateCall {
32828	c.ctx_ = ctx
32829	return c
32830}
32831
32832// Header returns an http.Header that can be modified by the caller to
32833// add HTTP headers to the request.
32834func (c *ProjectsConversationsMessagesBatchCreateCall) Header() http.Header {
32835	if c.header_ == nil {
32836		c.header_ = make(http.Header)
32837	}
32838	return c.header_
32839}
32840
32841func (c *ProjectsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
32842	reqHeaders := make(http.Header)
32843	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32844	for k, v := range c.header_ {
32845		reqHeaders[k] = v
32846	}
32847	reqHeaders.Set("User-Agent", c.s.userAgent())
32848	var body io.Reader = nil
32849	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
32850	if err != nil {
32851		return nil, err
32852	}
32853	reqHeaders.Set("Content-Type", "application/json")
32854	c.urlParams_.Set("alt", alt)
32855	c.urlParams_.Set("prettyPrint", "false")
32856	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
32857	urls += "?" + c.urlParams_.Encode()
32858	req, err := http.NewRequest("POST", urls, body)
32859	if err != nil {
32860		return nil, err
32861	}
32862	req.Header = reqHeaders
32863	googleapi.Expand(req.URL, map[string]string{
32864		"parent": c.parentid,
32865	})
32866	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32867}
32868
32869// Do executes the "dialogflow.projects.conversations.messages.batchCreate" call.
32870// Exactly one of
32871// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse or error
32872// will be non-nil. Any non-2xx status code is an error. Response
32873// headers are in either
32874// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.ServerRespons
32875// e.Header or (if a response was returned at all) in
32876// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32877// whether the returned error was because http.StatusNotModified was
32878// returned.
32879func (c *ProjectsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
32880	gensupport.SetOptions(c.urlParams_, opts...)
32881	res, err := c.doRequest("json")
32882	if res != nil && res.StatusCode == http.StatusNotModified {
32883		if res.Body != nil {
32884			res.Body.Close()
32885		}
32886		return nil, &googleapi.Error{
32887			Code:   res.StatusCode,
32888			Header: res.Header,
32889		}
32890	}
32891	if err != nil {
32892		return nil, err
32893	}
32894	defer googleapi.CloseBody(res)
32895	if err := googleapi.CheckResponse(res); err != nil {
32896		return nil, err
32897	}
32898	ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
32899		ServerResponse: googleapi.ServerResponse{
32900			Header:         res.Header,
32901			HTTPStatusCode: res.StatusCode,
32902		},
32903	}
32904	target := &ret
32905	if err := gensupport.DecodeResponse(target, res); err != nil {
32906		return nil, err
32907	}
32908	return ret, nil
32909	// {
32910	//   "description": "Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.",
32911	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/messages:batchCreate",
32912	//   "httpMethod": "POST",
32913	//   "id": "dialogflow.projects.conversations.messages.batchCreate",
32914	//   "parameterOrder": [
32915	//     "parent"
32916	//   ],
32917	//   "parameters": {
32918	//     "parent": {
32919	//       "description": "Required. Resource identifier of the conversation to create message. Format: `projects//locations//conversations/`.",
32920	//       "location": "path",
32921	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
32922	//       "required": true,
32923	//       "type": "string"
32924	//     }
32925	//   },
32926	//   "path": "v2beta1/{+parent}/messages:batchCreate",
32927	//   "request": {
32928	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest"
32929	//   },
32930	//   "response": {
32931	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse"
32932	//   },
32933	//   "scopes": [
32934	//     "https://www.googleapis.com/auth/cloud-platform",
32935	//     "https://www.googleapis.com/auth/dialogflow"
32936	//   ]
32937	// }
32938
32939}
32940
32941// method id "dialogflow.projects.conversations.messages.list":
32942
32943type ProjectsConversationsMessagesListCall struct {
32944	s            *Service
32945	parent       string
32946	urlParams_   gensupport.URLParams
32947	ifNoneMatch_ string
32948	ctx_         context.Context
32949	header_      http.Header
32950}
32951
32952// List: Lists messages that belong to a given conversation. `messages`
32953// are ordered by `create_time` in descending order. To fetch updates
32954// without duplication, send request with filter
32955// `create_time_epoch_microseconds > [first item's create_time of
32956// previous request]` and empty page_token.
32957//
32958// - parent: The name of the conversation to list messages for. Format:
32959//   `projects//locations//conversations/`.
32960func (r *ProjectsConversationsMessagesService) List(parent string) *ProjectsConversationsMessagesListCall {
32961	c := &ProjectsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32962	c.parent = parent
32963	return c
32964}
32965
32966// Filter sets the optional parameter "filter": Filter on message
32967// fields. Currently predicates on `create_time` and
32968// `create_time_epoch_microseconds` are supported. `create_time` only
32969// support milliseconds accuracy. E.g., `create_time_epoch_microseconds
32970// > 1551790877964485` or `create_time > "2017-01-15T01:30:15.01Z". For
32971// more information about filtering, see API Filtering
32972// (https://aip.dev/160).
32973func (c *ProjectsConversationsMessagesListCall) Filter(filter string) *ProjectsConversationsMessagesListCall {
32974	c.urlParams_.Set("filter", filter)
32975	return c
32976}
32977
32978// PageSize sets the optional parameter "pageSize": The maximum number
32979// of items to return in a single page. By default 100 and at most 1000.
32980func (c *ProjectsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsConversationsMessagesListCall {
32981	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32982	return c
32983}
32984
32985// PageToken sets the optional parameter "pageToken": The
32986// next_page_token value returned from a previous list request.
32987func (c *ProjectsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsConversationsMessagesListCall {
32988	c.urlParams_.Set("pageToken", pageToken)
32989	return c
32990}
32991
32992// Fields allows partial responses to be retrieved. See
32993// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32994// for more information.
32995func (c *ProjectsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesListCall {
32996	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32997	return c
32998}
32999
33000// IfNoneMatch sets the optional parameter which makes the operation
33001// fail if the object's ETag matches the given value. This is useful for
33002// getting updates only after the object has changed since the last
33003// request. Use googleapi.IsNotModified to check whether the response
33004// error from Do is the result of In-None-Match.
33005func (c *ProjectsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsConversationsMessagesListCall {
33006	c.ifNoneMatch_ = entityTag
33007	return c
33008}
33009
33010// Context sets the context to be used in this call's Do method. Any
33011// pending HTTP request will be aborted if the provided context is
33012// canceled.
33013func (c *ProjectsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsConversationsMessagesListCall {
33014	c.ctx_ = ctx
33015	return c
33016}
33017
33018// Header returns an http.Header that can be modified by the caller to
33019// add HTTP headers to the request.
33020func (c *ProjectsConversationsMessagesListCall) Header() http.Header {
33021	if c.header_ == nil {
33022		c.header_ = make(http.Header)
33023	}
33024	return c.header_
33025}
33026
33027func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
33028	reqHeaders := make(http.Header)
33029	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33030	for k, v := range c.header_ {
33031		reqHeaders[k] = v
33032	}
33033	reqHeaders.Set("User-Agent", c.s.userAgent())
33034	if c.ifNoneMatch_ != "" {
33035		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33036	}
33037	var body io.Reader = nil
33038	c.urlParams_.Set("alt", alt)
33039	c.urlParams_.Set("prettyPrint", "false")
33040	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
33041	urls += "?" + c.urlParams_.Encode()
33042	req, err := http.NewRequest("GET", urls, body)
33043	if err != nil {
33044		return nil, err
33045	}
33046	req.Header = reqHeaders
33047	googleapi.Expand(req.URL, map[string]string{
33048		"parent": c.parent,
33049	})
33050	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33051}
33052
33053// Do executes the "dialogflow.projects.conversations.messages.list" call.
33054// Exactly one of *GoogleCloudDialogflowV2beta1ListMessagesResponse or
33055// error will be non-nil. Any non-2xx status code is an error. Response
33056// headers are in either
33057// *GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Heade
33058// r or (if a response was returned at all) in
33059// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33060// whether the returned error was because http.StatusNotModified was
33061// returned.
33062func (c *ProjectsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
33063	gensupport.SetOptions(c.urlParams_, opts...)
33064	res, err := c.doRequest("json")
33065	if res != nil && res.StatusCode == http.StatusNotModified {
33066		if res.Body != nil {
33067			res.Body.Close()
33068		}
33069		return nil, &googleapi.Error{
33070			Code:   res.StatusCode,
33071			Header: res.Header,
33072		}
33073	}
33074	if err != nil {
33075		return nil, err
33076	}
33077	defer googleapi.CloseBody(res)
33078	if err := googleapi.CheckResponse(res); err != nil {
33079		return nil, err
33080	}
33081	ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
33082		ServerResponse: googleapi.ServerResponse{
33083			Header:         res.Header,
33084			HTTPStatusCode: res.StatusCode,
33085		},
33086	}
33087	target := &ret
33088	if err := gensupport.DecodeResponse(target, res); err != nil {
33089		return nil, err
33090	}
33091	return ret, nil
33092	// {
33093	//   "description": "Lists messages that belong to a given conversation. `messages` are ordered by `create_time` in descending order. To fetch updates without duplication, send request with filter `create_time_epoch_microseconds \u003e [first item's create_time of previous request]` and empty page_token.",
33094	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/messages",
33095	//   "httpMethod": "GET",
33096	//   "id": "dialogflow.projects.conversations.messages.list",
33097	//   "parameterOrder": [
33098	//     "parent"
33099	//   ],
33100	//   "parameters": {
33101	//     "filter": {
33102	//       "description": "Optional. Filter on message fields. Currently predicates on `create_time` and `create_time_epoch_microseconds` are supported. `create_time` only support milliseconds accuracy. E.g., `create_time_epoch_microseconds \u003e 1551790877964485` or `create_time \u003e \"2017-01-15T01:30:15.01Z\"`. For more information about filtering, see [API Filtering](https://aip.dev/160).",
33103	//       "location": "query",
33104	//       "type": "string"
33105	//     },
33106	//     "pageSize": {
33107	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
33108	//       "format": "int32",
33109	//       "location": "query",
33110	//       "type": "integer"
33111	//     },
33112	//     "pageToken": {
33113	//       "description": "Optional. The next_page_token value returned from a previous list request.",
33114	//       "location": "query",
33115	//       "type": "string"
33116	//     },
33117	//     "parent": {
33118	//       "description": "Required. The name of the conversation to list messages for. Format: `projects//locations//conversations/`",
33119	//       "location": "path",
33120	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
33121	//       "required": true,
33122	//       "type": "string"
33123	//     }
33124	//   },
33125	//   "path": "v2beta1/{+parent}/messages",
33126	//   "response": {
33127	//     "$ref": "GoogleCloudDialogflowV2beta1ListMessagesResponse"
33128	//   },
33129	//   "scopes": [
33130	//     "https://www.googleapis.com/auth/cloud-platform",
33131	//     "https://www.googleapis.com/auth/dialogflow"
33132	//   ]
33133	// }
33134
33135}
33136
33137// Pages invokes f for each page of results.
33138// A non-nil error returned from f will halt the iteration.
33139// The provided context supersedes any context provided to the Context method.
33140func (c *ProjectsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
33141	c.ctx_ = ctx
33142	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
33143	for {
33144		x, err := c.Do()
33145		if err != nil {
33146			return err
33147		}
33148		if err := f(x); err != nil {
33149			return err
33150		}
33151		if x.NextPageToken == "" {
33152			return nil
33153		}
33154		c.PageToken(x.NextPageToken)
33155	}
33156}
33157
33158// method id "dialogflow.projects.conversations.participants.analyzeContent":
33159
33160type ProjectsConversationsParticipantsAnalyzeContentCall struct {
33161	s                                                 *Service
33162	participant                                       string
33163	googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
33164	urlParams_                                        gensupport.URLParams
33165	ctx_                                              context.Context
33166	header_                                           http.Header
33167}
33168
33169// AnalyzeContent: Adds a text (chat, for example), or audio (phone
33170// recording, for example) message from a participant into the
33171// conversation. Note: Always use agent versions for production traffic
33172// sent to virtual agents. See Versions and environments
33173// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
33174//
33175// - participant: The name of the participant this text comes from.
33176//   Format: `projects//locations//conversations//participants/`.
33177func (r *ProjectsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsConversationsParticipantsAnalyzeContentCall {
33178	c := &ProjectsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33179	c.participant = participant
33180	c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
33181	return c
33182}
33183
33184// Fields allows partial responses to be retrieved. See
33185// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33186// for more information.
33187func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsAnalyzeContentCall {
33188	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33189	return c
33190}
33191
33192// Context sets the context to be used in this call's Do method. Any
33193// pending HTTP request will be aborted if the provided context is
33194// canceled.
33195func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsConversationsParticipantsAnalyzeContentCall {
33196	c.ctx_ = ctx
33197	return c
33198}
33199
33200// Header returns an http.Header that can be modified by the caller to
33201// add HTTP headers to the request.
33202func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
33203	if c.header_ == nil {
33204		c.header_ = make(http.Header)
33205	}
33206	return c.header_
33207}
33208
33209func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
33210	reqHeaders := make(http.Header)
33211	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33212	for k, v := range c.header_ {
33213		reqHeaders[k] = v
33214	}
33215	reqHeaders.Set("User-Agent", c.s.userAgent())
33216	var body io.Reader = nil
33217	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
33218	if err != nil {
33219		return nil, err
33220	}
33221	reqHeaders.Set("Content-Type", "application/json")
33222	c.urlParams_.Set("alt", alt)
33223	c.urlParams_.Set("prettyPrint", "false")
33224	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
33225	urls += "?" + c.urlParams_.Encode()
33226	req, err := http.NewRequest("POST", urls, body)
33227	if err != nil {
33228		return nil, err
33229	}
33230	req.Header = reqHeaders
33231	googleapi.Expand(req.URL, map[string]string{
33232		"participant": c.participant,
33233	})
33234	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33235}
33236
33237// Do executes the "dialogflow.projects.conversations.participants.analyzeContent" call.
33238// Exactly one of *GoogleCloudDialogflowV2beta1AnalyzeContentResponse or
33239// error will be non-nil. Any non-2xx status code is an error. Response
33240// headers are in either
33241// *GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Hea
33242// der or (if a response was returned at all) in
33243// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33244// whether the returned error was because http.StatusNotModified was
33245// returned.
33246func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
33247	gensupport.SetOptions(c.urlParams_, opts...)
33248	res, err := c.doRequest("json")
33249	if res != nil && res.StatusCode == http.StatusNotModified {
33250		if res.Body != nil {
33251			res.Body.Close()
33252		}
33253		return nil, &googleapi.Error{
33254			Code:   res.StatusCode,
33255			Header: res.Header,
33256		}
33257	}
33258	if err != nil {
33259		return nil, err
33260	}
33261	defer googleapi.CloseBody(res)
33262	if err := googleapi.CheckResponse(res); err != nil {
33263		return nil, err
33264	}
33265	ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
33266		ServerResponse: googleapi.ServerResponse{
33267			Header:         res.Header,
33268			HTTPStatusCode: res.StatusCode,
33269		},
33270	}
33271	target := &ret
33272	if err := gensupport.DecodeResponse(target, res); err != nil {
33273		return nil, err
33274	}
33275	return ret, nil
33276	// {
33277	//   "description": "Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
33278	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}:analyzeContent",
33279	//   "httpMethod": "POST",
33280	//   "id": "dialogflow.projects.conversations.participants.analyzeContent",
33281	//   "parameterOrder": [
33282	//     "participant"
33283	//   ],
33284	//   "parameters": {
33285	//     "participant": {
33286	//       "description": "Required. The name of the participant this text comes from. Format: `projects//locations//conversations//participants/`.",
33287	//       "location": "path",
33288	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
33289	//       "required": true,
33290	//       "type": "string"
33291	//     }
33292	//   },
33293	//   "path": "v2beta1/{+participant}:analyzeContent",
33294	//   "request": {
33295	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentRequest"
33296	//   },
33297	//   "response": {
33298	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentResponse"
33299	//   },
33300	//   "scopes": [
33301	//     "https://www.googleapis.com/auth/cloud-platform",
33302	//     "https://www.googleapis.com/auth/dialogflow"
33303	//   ]
33304	// }
33305
33306}
33307
33308// method id "dialogflow.projects.conversations.participants.create":
33309
33310type ProjectsConversationsParticipantsCreateCall struct {
33311	s                                       *Service
33312	parentid                                string
33313	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
33314	urlParams_                              gensupport.URLParams
33315	ctx_                                    context.Context
33316	header_                                 http.Header
33317}
33318
33319// Create: Creates a new participant in a conversation.
33320//
33321// - parent: Resource identifier of the conversation adding the
33322//   participant. Format: `projects//locations//conversations/`.
33323func (r *ProjectsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsCreateCall {
33324	c := &ProjectsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33325	c.parentid = parentid
33326	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
33327	return c
33328}
33329
33330// Fields allows partial responses to be retrieved. See
33331// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33332// for more information.
33333func (c *ProjectsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsCreateCall {
33334	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33335	return c
33336}
33337
33338// Context sets the context to be used in this call's Do method. Any
33339// pending HTTP request will be aborted if the provided context is
33340// canceled.
33341func (c *ProjectsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsConversationsParticipantsCreateCall {
33342	c.ctx_ = ctx
33343	return c
33344}
33345
33346// Header returns an http.Header that can be modified by the caller to
33347// add HTTP headers to the request.
33348func (c *ProjectsConversationsParticipantsCreateCall) Header() http.Header {
33349	if c.header_ == nil {
33350		c.header_ = make(http.Header)
33351	}
33352	return c.header_
33353}
33354
33355func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
33356	reqHeaders := make(http.Header)
33357	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33358	for k, v := range c.header_ {
33359		reqHeaders[k] = v
33360	}
33361	reqHeaders.Set("User-Agent", c.s.userAgent())
33362	var body io.Reader = nil
33363	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
33364	if err != nil {
33365		return nil, err
33366	}
33367	reqHeaders.Set("Content-Type", "application/json")
33368	c.urlParams_.Set("alt", alt)
33369	c.urlParams_.Set("prettyPrint", "false")
33370	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
33371	urls += "?" + c.urlParams_.Encode()
33372	req, err := http.NewRequest("POST", urls, body)
33373	if err != nil {
33374		return nil, err
33375	}
33376	req.Header = reqHeaders
33377	googleapi.Expand(req.URL, map[string]string{
33378		"parent": c.parentid,
33379	})
33380	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33381}
33382
33383// Do executes the "dialogflow.projects.conversations.participants.create" call.
33384// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
33385// be non-nil. Any non-2xx status code is an error. Response headers are
33386// in either
33387// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
33388// a response was returned at all) in error.(*googleapi.Error).Header.
33389// Use googleapi.IsNotModified to check whether the returned error was
33390// because http.StatusNotModified was returned.
33391func (c *ProjectsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
33392	gensupport.SetOptions(c.urlParams_, opts...)
33393	res, err := c.doRequest("json")
33394	if res != nil && res.StatusCode == http.StatusNotModified {
33395		if res.Body != nil {
33396			res.Body.Close()
33397		}
33398		return nil, &googleapi.Error{
33399			Code:   res.StatusCode,
33400			Header: res.Header,
33401		}
33402	}
33403	if err != nil {
33404		return nil, err
33405	}
33406	defer googleapi.CloseBody(res)
33407	if err := googleapi.CheckResponse(res); err != nil {
33408		return nil, err
33409	}
33410	ret := &GoogleCloudDialogflowV2beta1Participant{
33411		ServerResponse: googleapi.ServerResponse{
33412			Header:         res.Header,
33413			HTTPStatusCode: res.StatusCode,
33414		},
33415	}
33416	target := &ret
33417	if err := gensupport.DecodeResponse(target, res); err != nil {
33418		return nil, err
33419	}
33420	return ret, nil
33421	// {
33422	//   "description": "Creates a new participant in a conversation.",
33423	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants",
33424	//   "httpMethod": "POST",
33425	//   "id": "dialogflow.projects.conversations.participants.create",
33426	//   "parameterOrder": [
33427	//     "parent"
33428	//   ],
33429	//   "parameters": {
33430	//     "parent": {
33431	//       "description": "Required. Resource identifier of the conversation adding the participant. Format: `projects//locations//conversations/`.",
33432	//       "location": "path",
33433	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
33434	//       "required": true,
33435	//       "type": "string"
33436	//     }
33437	//   },
33438	//   "path": "v2beta1/{+parent}/participants",
33439	//   "request": {
33440	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33441	//   },
33442	//   "response": {
33443	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33444	//   },
33445	//   "scopes": [
33446	//     "https://www.googleapis.com/auth/cloud-platform",
33447	//     "https://www.googleapis.com/auth/dialogflow"
33448	//   ]
33449	// }
33450
33451}
33452
33453// method id "dialogflow.projects.conversations.participants.get":
33454
33455type ProjectsConversationsParticipantsGetCall struct {
33456	s            *Service
33457	name         string
33458	urlParams_   gensupport.URLParams
33459	ifNoneMatch_ string
33460	ctx_         context.Context
33461	header_      http.Header
33462}
33463
33464// Get: Retrieves a conversation participant.
33465//
33466// - name: The name of the participant. Format:
33467//   `projects//locations//conversations//participants/`.
33468func (r *ProjectsConversationsParticipantsService) Get(name string) *ProjectsConversationsParticipantsGetCall {
33469	c := &ProjectsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33470	c.name = name
33471	return c
33472}
33473
33474// Fields allows partial responses to be retrieved. See
33475// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33476// for more information.
33477func (c *ProjectsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsGetCall {
33478	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33479	return c
33480}
33481
33482// IfNoneMatch sets the optional parameter which makes the operation
33483// fail if the object's ETag matches the given value. This is useful for
33484// getting updates only after the object has changed since the last
33485// request. Use googleapi.IsNotModified to check whether the response
33486// error from Do is the result of In-None-Match.
33487func (c *ProjectsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsGetCall {
33488	c.ifNoneMatch_ = entityTag
33489	return c
33490}
33491
33492// Context sets the context to be used in this call's Do method. Any
33493// pending HTTP request will be aborted if the provided context is
33494// canceled.
33495func (c *ProjectsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsConversationsParticipantsGetCall {
33496	c.ctx_ = ctx
33497	return c
33498}
33499
33500// Header returns an http.Header that can be modified by the caller to
33501// add HTTP headers to the request.
33502func (c *ProjectsConversationsParticipantsGetCall) Header() http.Header {
33503	if c.header_ == nil {
33504		c.header_ = make(http.Header)
33505	}
33506	return c.header_
33507}
33508
33509func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
33510	reqHeaders := make(http.Header)
33511	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33512	for k, v := range c.header_ {
33513		reqHeaders[k] = v
33514	}
33515	reqHeaders.Set("User-Agent", c.s.userAgent())
33516	if c.ifNoneMatch_ != "" {
33517		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33518	}
33519	var body io.Reader = nil
33520	c.urlParams_.Set("alt", alt)
33521	c.urlParams_.Set("prettyPrint", "false")
33522	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
33523	urls += "?" + c.urlParams_.Encode()
33524	req, err := http.NewRequest("GET", urls, body)
33525	if err != nil {
33526		return nil, err
33527	}
33528	req.Header = reqHeaders
33529	googleapi.Expand(req.URL, map[string]string{
33530		"name": c.name,
33531	})
33532	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33533}
33534
33535// Do executes the "dialogflow.projects.conversations.participants.get" call.
33536// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
33537// be non-nil. Any non-2xx status code is an error. Response headers are
33538// in either
33539// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
33540// a response was returned at all) in error.(*googleapi.Error).Header.
33541// Use googleapi.IsNotModified to check whether the returned error was
33542// because http.StatusNotModified was returned.
33543func (c *ProjectsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
33544	gensupport.SetOptions(c.urlParams_, opts...)
33545	res, err := c.doRequest("json")
33546	if res != nil && res.StatusCode == http.StatusNotModified {
33547		if res.Body != nil {
33548			res.Body.Close()
33549		}
33550		return nil, &googleapi.Error{
33551			Code:   res.StatusCode,
33552			Header: res.Header,
33553		}
33554	}
33555	if err != nil {
33556		return nil, err
33557	}
33558	defer googleapi.CloseBody(res)
33559	if err := googleapi.CheckResponse(res); err != nil {
33560		return nil, err
33561	}
33562	ret := &GoogleCloudDialogflowV2beta1Participant{
33563		ServerResponse: googleapi.ServerResponse{
33564			Header:         res.Header,
33565			HTTPStatusCode: res.StatusCode,
33566		},
33567	}
33568	target := &ret
33569	if err := gensupport.DecodeResponse(target, res); err != nil {
33570		return nil, err
33571	}
33572	return ret, nil
33573	// {
33574	//   "description": "Retrieves a conversation participant.",
33575	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}",
33576	//   "httpMethod": "GET",
33577	//   "id": "dialogflow.projects.conversations.participants.get",
33578	//   "parameterOrder": [
33579	//     "name"
33580	//   ],
33581	//   "parameters": {
33582	//     "name": {
33583	//       "description": "Required. The name of the participant. Format: `projects//locations//conversations//participants/`.",
33584	//       "location": "path",
33585	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
33586	//       "required": true,
33587	//       "type": "string"
33588	//     }
33589	//   },
33590	//   "path": "v2beta1/{+name}",
33591	//   "response": {
33592	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33593	//   },
33594	//   "scopes": [
33595	//     "https://www.googleapis.com/auth/cloud-platform",
33596	//     "https://www.googleapis.com/auth/dialogflow"
33597	//   ]
33598	// }
33599
33600}
33601
33602// method id "dialogflow.projects.conversations.participants.list":
33603
33604type ProjectsConversationsParticipantsListCall struct {
33605	s            *Service
33606	parent       string
33607	urlParams_   gensupport.URLParams
33608	ifNoneMatch_ string
33609	ctx_         context.Context
33610	header_      http.Header
33611}
33612
33613// List: Returns the list of all participants in the specified
33614// conversation.
33615//
33616// - parent: The conversation to list all participants from. Format:
33617//   `projects//locations//conversations/`.
33618func (r *ProjectsConversationsParticipantsService) List(parent string) *ProjectsConversationsParticipantsListCall {
33619	c := &ProjectsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33620	c.parent = parent
33621	return c
33622}
33623
33624// PageSize sets the optional parameter "pageSize": The maximum number
33625// of items to return in a single page. By default 100 and at most 1000.
33626func (c *ProjectsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsListCall {
33627	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33628	return c
33629}
33630
33631// PageToken sets the optional parameter "pageToken": The
33632// next_page_token value returned from a previous list request.
33633func (c *ProjectsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsListCall {
33634	c.urlParams_.Set("pageToken", pageToken)
33635	return c
33636}
33637
33638// Fields allows partial responses to be retrieved. See
33639// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33640// for more information.
33641func (c *ProjectsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsListCall {
33642	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33643	return c
33644}
33645
33646// IfNoneMatch sets the optional parameter which makes the operation
33647// fail if the object's ETag matches the given value. This is useful for
33648// getting updates only after the object has changed since the last
33649// request. Use googleapi.IsNotModified to check whether the response
33650// error from Do is the result of In-None-Match.
33651func (c *ProjectsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsListCall {
33652	c.ifNoneMatch_ = entityTag
33653	return c
33654}
33655
33656// Context sets the context to be used in this call's Do method. Any
33657// pending HTTP request will be aborted if the provided context is
33658// canceled.
33659func (c *ProjectsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsListCall {
33660	c.ctx_ = ctx
33661	return c
33662}
33663
33664// Header returns an http.Header that can be modified by the caller to
33665// add HTTP headers to the request.
33666func (c *ProjectsConversationsParticipantsListCall) Header() http.Header {
33667	if c.header_ == nil {
33668		c.header_ = make(http.Header)
33669	}
33670	return c.header_
33671}
33672
33673func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
33674	reqHeaders := make(http.Header)
33675	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33676	for k, v := range c.header_ {
33677		reqHeaders[k] = v
33678	}
33679	reqHeaders.Set("User-Agent", c.s.userAgent())
33680	if c.ifNoneMatch_ != "" {
33681		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33682	}
33683	var body io.Reader = nil
33684	c.urlParams_.Set("alt", alt)
33685	c.urlParams_.Set("prettyPrint", "false")
33686	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
33687	urls += "?" + c.urlParams_.Encode()
33688	req, err := http.NewRequest("GET", urls, body)
33689	if err != nil {
33690		return nil, err
33691	}
33692	req.Header = reqHeaders
33693	googleapi.Expand(req.URL, map[string]string{
33694		"parent": c.parent,
33695	})
33696	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33697}
33698
33699// Do executes the "dialogflow.projects.conversations.participants.list" call.
33700// Exactly one of *GoogleCloudDialogflowV2beta1ListParticipantsResponse
33701// or error will be non-nil. Any non-2xx status code is an error.
33702// Response headers are in either
33703// *GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.H
33704// eader or (if a response was returned at all) in
33705// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33706// whether the returned error was because http.StatusNotModified was
33707// returned.
33708func (c *ProjectsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
33709	gensupport.SetOptions(c.urlParams_, opts...)
33710	res, err := c.doRequest("json")
33711	if res != nil && res.StatusCode == http.StatusNotModified {
33712		if res.Body != nil {
33713			res.Body.Close()
33714		}
33715		return nil, &googleapi.Error{
33716			Code:   res.StatusCode,
33717			Header: res.Header,
33718		}
33719	}
33720	if err != nil {
33721		return nil, err
33722	}
33723	defer googleapi.CloseBody(res)
33724	if err := googleapi.CheckResponse(res); err != nil {
33725		return nil, err
33726	}
33727	ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
33728		ServerResponse: googleapi.ServerResponse{
33729			Header:         res.Header,
33730			HTTPStatusCode: res.StatusCode,
33731		},
33732	}
33733	target := &ret
33734	if err := gensupport.DecodeResponse(target, res); err != nil {
33735		return nil, err
33736	}
33737	return ret, nil
33738	// {
33739	//   "description": "Returns the list of all participants in the specified conversation.",
33740	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants",
33741	//   "httpMethod": "GET",
33742	//   "id": "dialogflow.projects.conversations.participants.list",
33743	//   "parameterOrder": [
33744	//     "parent"
33745	//   ],
33746	//   "parameters": {
33747	//     "pageSize": {
33748	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
33749	//       "format": "int32",
33750	//       "location": "query",
33751	//       "type": "integer"
33752	//     },
33753	//     "pageToken": {
33754	//       "description": "Optional. The next_page_token value returned from a previous list request.",
33755	//       "location": "query",
33756	//       "type": "string"
33757	//     },
33758	//     "parent": {
33759	//       "description": "Required. The conversation to list all participants from. Format: `projects//locations//conversations/`.",
33760	//       "location": "path",
33761	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
33762	//       "required": true,
33763	//       "type": "string"
33764	//     }
33765	//   },
33766	//   "path": "v2beta1/{+parent}/participants",
33767	//   "response": {
33768	//     "$ref": "GoogleCloudDialogflowV2beta1ListParticipantsResponse"
33769	//   },
33770	//   "scopes": [
33771	//     "https://www.googleapis.com/auth/cloud-platform",
33772	//     "https://www.googleapis.com/auth/dialogflow"
33773	//   ]
33774	// }
33775
33776}
33777
33778// Pages invokes f for each page of results.
33779// A non-nil error returned from f will halt the iteration.
33780// The provided context supersedes any context provided to the Context method.
33781func (c *ProjectsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
33782	c.ctx_ = ctx
33783	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
33784	for {
33785		x, err := c.Do()
33786		if err != nil {
33787			return err
33788		}
33789		if err := f(x); err != nil {
33790			return err
33791		}
33792		if x.NextPageToken == "" {
33793			return nil
33794		}
33795		c.PageToken(x.NextPageToken)
33796	}
33797}
33798
33799// method id "dialogflow.projects.conversations.participants.patch":
33800
33801type ProjectsConversationsParticipantsPatchCall struct {
33802	s                                       *Service
33803	nameid                                  string
33804	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
33805	urlParams_                              gensupport.URLParams
33806	ctx_                                    context.Context
33807	header_                                 http.Header
33808}
33809
33810// Patch: Updates the specified participant.
33811//
33812// - name: Optional. The unique identifier of this participant. Format:
33813//   `projects//locations//conversations//participants/`.
33814func (r *ProjectsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsPatchCall {
33815	c := &ProjectsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33816	c.nameid = nameid
33817	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
33818	return c
33819}
33820
33821// UpdateMask sets the optional parameter "updateMask": Required. The
33822// mask to specify which fields to update.
33823func (c *ProjectsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsConversationsParticipantsPatchCall {
33824	c.urlParams_.Set("updateMask", updateMask)
33825	return c
33826}
33827
33828// Fields allows partial responses to be retrieved. See
33829// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33830// for more information.
33831func (c *ProjectsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsPatchCall {
33832	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33833	return c
33834}
33835
33836// Context sets the context to be used in this call's Do method. Any
33837// pending HTTP request will be aborted if the provided context is
33838// canceled.
33839func (c *ProjectsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsConversationsParticipantsPatchCall {
33840	c.ctx_ = ctx
33841	return c
33842}
33843
33844// Header returns an http.Header that can be modified by the caller to
33845// add HTTP headers to the request.
33846func (c *ProjectsConversationsParticipantsPatchCall) Header() http.Header {
33847	if c.header_ == nil {
33848		c.header_ = make(http.Header)
33849	}
33850	return c.header_
33851}
33852
33853func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
33854	reqHeaders := make(http.Header)
33855	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33856	for k, v := range c.header_ {
33857		reqHeaders[k] = v
33858	}
33859	reqHeaders.Set("User-Agent", c.s.userAgent())
33860	var body io.Reader = nil
33861	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
33862	if err != nil {
33863		return nil, err
33864	}
33865	reqHeaders.Set("Content-Type", "application/json")
33866	c.urlParams_.Set("alt", alt)
33867	c.urlParams_.Set("prettyPrint", "false")
33868	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
33869	urls += "?" + c.urlParams_.Encode()
33870	req, err := http.NewRequest("PATCH", urls, body)
33871	if err != nil {
33872		return nil, err
33873	}
33874	req.Header = reqHeaders
33875	googleapi.Expand(req.URL, map[string]string{
33876		"name": c.nameid,
33877	})
33878	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33879}
33880
33881// Do executes the "dialogflow.projects.conversations.participants.patch" call.
33882// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
33883// be non-nil. Any non-2xx status code is an error. Response headers are
33884// in either
33885// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
33886// a response was returned at all) in error.(*googleapi.Error).Header.
33887// Use googleapi.IsNotModified to check whether the returned error was
33888// because http.StatusNotModified was returned.
33889func (c *ProjectsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
33890	gensupport.SetOptions(c.urlParams_, opts...)
33891	res, err := c.doRequest("json")
33892	if res != nil && res.StatusCode == http.StatusNotModified {
33893		if res.Body != nil {
33894			res.Body.Close()
33895		}
33896		return nil, &googleapi.Error{
33897			Code:   res.StatusCode,
33898			Header: res.Header,
33899		}
33900	}
33901	if err != nil {
33902		return nil, err
33903	}
33904	defer googleapi.CloseBody(res)
33905	if err := googleapi.CheckResponse(res); err != nil {
33906		return nil, err
33907	}
33908	ret := &GoogleCloudDialogflowV2beta1Participant{
33909		ServerResponse: googleapi.ServerResponse{
33910			Header:         res.Header,
33911			HTTPStatusCode: res.StatusCode,
33912		},
33913	}
33914	target := &ret
33915	if err := gensupport.DecodeResponse(target, res); err != nil {
33916		return nil, err
33917	}
33918	return ret, nil
33919	// {
33920	//   "description": "Updates the specified participant.",
33921	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}",
33922	//   "httpMethod": "PATCH",
33923	//   "id": "dialogflow.projects.conversations.participants.patch",
33924	//   "parameterOrder": [
33925	//     "name"
33926	//   ],
33927	//   "parameters": {
33928	//     "name": {
33929	//       "description": "Optional. The unique identifier of this participant. Format: `projects//locations//conversations//participants/`.",
33930	//       "location": "path",
33931	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
33932	//       "required": true,
33933	//       "type": "string"
33934	//     },
33935	//     "updateMask": {
33936	//       "description": "Required. The mask to specify which fields to update.",
33937	//       "format": "google-fieldmask",
33938	//       "location": "query",
33939	//       "type": "string"
33940	//     }
33941	//   },
33942	//   "path": "v2beta1/{+name}",
33943	//   "request": {
33944	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33945	//   },
33946	//   "response": {
33947	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33948	//   },
33949	//   "scopes": [
33950	//     "https://www.googleapis.com/auth/cloud-platform",
33951	//     "https://www.googleapis.com/auth/dialogflow"
33952	//   ]
33953	// }
33954
33955}
33956
33957// method id "dialogflow.projects.conversations.participants.suggestions.compile":
33958
33959type ProjectsConversationsParticipantsSuggestionsCompileCall struct {
33960	s                                                    *Service
33961	parent                                               string
33962	googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest
33963	urlParams_                                           gensupport.URLParams
33964	ctx_                                                 context.Context
33965	header_                                              http.Header
33966}
33967
33968// Compile: Deprecated. use SuggestArticles and SuggestFaqAnswers
33969// instead. Gets suggestions for a participant based on specific
33970// historical messages. Note that ListSuggestions will only list the
33971// auto-generated suggestions, while CompileSuggestion will try to
33972// compile suggestion based on the provided conversation context in the
33973// real time.
33974//
33975// - parent: The name of the participant to fetch suggestion for.
33976//   Format: `projects//locations//conversations//participants/`.
33977func (r *ProjectsConversationsParticipantsSuggestionsService) Compile(parent string, googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) *ProjectsConversationsParticipantsSuggestionsCompileCall {
33978	c := &ProjectsConversationsParticipantsSuggestionsCompileCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33979	c.parent = parent
33980	c.googleclouddialogflowv2beta1compilesuggestionrequest = googleclouddialogflowv2beta1compilesuggestionrequest
33981	return c
33982}
33983
33984// Fields allows partial responses to be retrieved. See
33985// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33986// for more information.
33987func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsCompileCall {
33988	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33989	return c
33990}
33991
33992// Context sets the context to be used in this call's Do method. Any
33993// pending HTTP request will be aborted if the provided context is
33994// canceled.
33995func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsCompileCall {
33996	c.ctx_ = ctx
33997	return c
33998}
33999
34000// Header returns an http.Header that can be modified by the caller to
34001// add HTTP headers to the request.
34002func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Header() http.Header {
34003	if c.header_ == nil {
34004		c.header_ = make(http.Header)
34005	}
34006	return c.header_
34007}
34008
34009func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) doRequest(alt string) (*http.Response, error) {
34010	reqHeaders := make(http.Header)
34011	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34012	for k, v := range c.header_ {
34013		reqHeaders[k] = v
34014	}
34015	reqHeaders.Set("User-Agent", c.s.userAgent())
34016	var body io.Reader = nil
34017	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1compilesuggestionrequest)
34018	if err != nil {
34019		return nil, err
34020	}
34021	reqHeaders.Set("Content-Type", "application/json")
34022	c.urlParams_.Set("alt", alt)
34023	c.urlParams_.Set("prettyPrint", "false")
34024	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:compile")
34025	urls += "?" + c.urlParams_.Encode()
34026	req, err := http.NewRequest("POST", urls, body)
34027	if err != nil {
34028		return nil, err
34029	}
34030	req.Header = reqHeaders
34031	googleapi.Expand(req.URL, map[string]string{
34032		"parent": c.parent,
34033	})
34034	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34035}
34036
34037// Do executes the "dialogflow.projects.conversations.participants.suggestions.compile" call.
34038// Exactly one of *GoogleCloudDialogflowV2beta1CompileSuggestionResponse
34039// or error will be non-nil. Any non-2xx status code is an error.
34040// Response headers are in either
34041// *GoogleCloudDialogflowV2beta1CompileSuggestionResponse.ServerResponse.
34042// Header or (if a response was returned at all) in
34043// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34044// whether the returned error was because http.StatusNotModified was
34045// returned.
34046func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1CompileSuggestionResponse, error) {
34047	gensupport.SetOptions(c.urlParams_, opts...)
34048	res, err := c.doRequest("json")
34049	if res != nil && res.StatusCode == http.StatusNotModified {
34050		if res.Body != nil {
34051			res.Body.Close()
34052		}
34053		return nil, &googleapi.Error{
34054			Code:   res.StatusCode,
34055			Header: res.Header,
34056		}
34057	}
34058	if err != nil {
34059		return nil, err
34060	}
34061	defer googleapi.CloseBody(res)
34062	if err := googleapi.CheckResponse(res); err != nil {
34063		return nil, err
34064	}
34065	ret := &GoogleCloudDialogflowV2beta1CompileSuggestionResponse{
34066		ServerResponse: googleapi.ServerResponse{
34067			Header:         res.Header,
34068			HTTPStatusCode: res.StatusCode,
34069		},
34070	}
34071	target := &ret
34072	if err := gensupport.DecodeResponse(target, res); err != nil {
34073		return nil, err
34074	}
34075	return ret, nil
34076	// {
34077	//   "description": "Deprecated. use SuggestArticles and SuggestFaqAnswers instead. Gets suggestions for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.",
34078	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:compile",
34079	//   "httpMethod": "POST",
34080	//   "id": "dialogflow.projects.conversations.participants.suggestions.compile",
34081	//   "parameterOrder": [
34082	//     "parent"
34083	//   ],
34084	//   "parameters": {
34085	//     "parent": {
34086	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
34087	//       "location": "path",
34088	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34089	//       "required": true,
34090	//       "type": "string"
34091	//     }
34092	//   },
34093	//   "path": "v2beta1/{+parent}/suggestions:compile",
34094	//   "request": {
34095	//     "$ref": "GoogleCloudDialogflowV2beta1CompileSuggestionRequest"
34096	//   },
34097	//   "response": {
34098	//     "$ref": "GoogleCloudDialogflowV2beta1CompileSuggestionResponse"
34099	//   },
34100	//   "scopes": [
34101	//     "https://www.googleapis.com/auth/cloud-platform",
34102	//     "https://www.googleapis.com/auth/dialogflow"
34103	//   ]
34104	// }
34105
34106}
34107
34108// method id "dialogflow.projects.conversations.participants.suggestions.list":
34109
34110type ProjectsConversationsParticipantsSuggestionsListCall struct {
34111	s            *Service
34112	parent       string
34113	urlParams_   gensupport.URLParams
34114	ifNoneMatch_ string
34115	ctx_         context.Context
34116	header_      http.Header
34117}
34118
34119// List: Deprecated: Use inline suggestion, event based suggestion or
34120// Suggestion* API instead. See HumanAgentAssistantConfig.name for more
34121// details. Removal Date: 2020-09-01. Retrieves suggestions for live
34122// agents. This method should be used by human agent client software to
34123// fetch auto generated suggestions in real-time, while the conversation
34124// with an end user is in progress. The functionality is implemented in
34125// terms of the list pagination
34126// (https://cloud.google.com/apis/design/design_patterns#list_pagination)
34127// design pattern. The client app should use the `next_page_token` field
34128// to fetch the next batch of suggestions. `suggestions` are sorted by
34129// `create_time` in descending order. To fetch latest suggestion, just
34130// set `page_size` to 1. To fetch new suggestions without duplication,
34131// send request with filter `create_time_epoch_microseconds > [first
34132// item's create_time of previous request]` and empty page_token.
34133//
34134// - parent: The name of the participant to fetch suggestions for.
34135//   Format: `projects//locations//conversations//participants/`.
34136func (r *ProjectsConversationsParticipantsSuggestionsService) List(parent string) *ProjectsConversationsParticipantsSuggestionsListCall {
34137	c := &ProjectsConversationsParticipantsSuggestionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34138	c.parent = parent
34139	return c
34140}
34141
34142// Filter sets the optional parameter "filter": Filter on suggestions
34143// fields. Currently predicates on `create_time` and
34144// `create_time_epoch_microseconds` are supported. `create_time` only
34145// support milliseconds accuracy. E.g., `create_time_epoch_microseconds
34146// > 1551790877964485` or `create_time > "2017-01-15T01:30:15.01Z" For
34147// more information about filtering, see API Filtering
34148// (https://aip.dev/160).
34149func (c *ProjectsConversationsParticipantsSuggestionsListCall) Filter(filter string) *ProjectsConversationsParticipantsSuggestionsListCall {
34150	c.urlParams_.Set("filter", filter)
34151	return c
34152}
34153
34154// PageSize sets the optional parameter "pageSize": The maximum number
34155// of items to return in a single page. The default value is 100; the
34156// maximum value is 1000.
34157func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsSuggestionsListCall {
34158	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34159	return c
34160}
34161
34162// PageToken sets the optional parameter "pageToken": The
34163// next_page_token value returned from a previous list request.
34164func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsSuggestionsListCall {
34165	c.urlParams_.Set("pageToken", pageToken)
34166	return c
34167}
34168
34169// Fields allows partial responses to be retrieved. See
34170// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34171// for more information.
34172func (c *ProjectsConversationsParticipantsSuggestionsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsListCall {
34173	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34174	return c
34175}
34176
34177// IfNoneMatch sets the optional parameter which makes the operation
34178// fail if the object's ETag matches the given value. This is useful for
34179// getting updates only after the object has changed since the last
34180// request. Use googleapi.IsNotModified to check whether the response
34181// error from Do is the result of In-None-Match.
34182func (c *ProjectsConversationsParticipantsSuggestionsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsSuggestionsListCall {
34183	c.ifNoneMatch_ = entityTag
34184	return c
34185}
34186
34187// Context sets the context to be used in this call's Do method. Any
34188// pending HTTP request will be aborted if the provided context is
34189// canceled.
34190func (c *ProjectsConversationsParticipantsSuggestionsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsListCall {
34191	c.ctx_ = ctx
34192	return c
34193}
34194
34195// Header returns an http.Header that can be modified by the caller to
34196// add HTTP headers to the request.
34197func (c *ProjectsConversationsParticipantsSuggestionsListCall) Header() http.Header {
34198	if c.header_ == nil {
34199		c.header_ = make(http.Header)
34200	}
34201	return c.header_
34202}
34203
34204func (c *ProjectsConversationsParticipantsSuggestionsListCall) doRequest(alt string) (*http.Response, error) {
34205	reqHeaders := make(http.Header)
34206	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34207	for k, v := range c.header_ {
34208		reqHeaders[k] = v
34209	}
34210	reqHeaders.Set("User-Agent", c.s.userAgent())
34211	if c.ifNoneMatch_ != "" {
34212		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34213	}
34214	var body io.Reader = nil
34215	c.urlParams_.Set("alt", alt)
34216	c.urlParams_.Set("prettyPrint", "false")
34217	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions")
34218	urls += "?" + c.urlParams_.Encode()
34219	req, err := http.NewRequest("GET", urls, body)
34220	if err != nil {
34221		return nil, err
34222	}
34223	req.Header = reqHeaders
34224	googleapi.Expand(req.URL, map[string]string{
34225		"parent": c.parent,
34226	})
34227	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34228}
34229
34230// Do executes the "dialogflow.projects.conversations.participants.suggestions.list" call.
34231// Exactly one of *GoogleCloudDialogflowV2beta1ListSuggestionsResponse
34232// or error will be non-nil. Any non-2xx status code is an error.
34233// Response headers are in either
34234// *GoogleCloudDialogflowV2beta1ListSuggestionsResponse.ServerResponse.He
34235// ader or (if a response was returned at all) in
34236// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34237// whether the returned error was because http.StatusNotModified was
34238// returned.
34239func (c *ProjectsConversationsParticipantsSuggestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSuggestionsResponse, error) {
34240	gensupport.SetOptions(c.urlParams_, opts...)
34241	res, err := c.doRequest("json")
34242	if res != nil && res.StatusCode == http.StatusNotModified {
34243		if res.Body != nil {
34244			res.Body.Close()
34245		}
34246		return nil, &googleapi.Error{
34247			Code:   res.StatusCode,
34248			Header: res.Header,
34249		}
34250	}
34251	if err != nil {
34252		return nil, err
34253	}
34254	defer googleapi.CloseBody(res)
34255	if err := googleapi.CheckResponse(res); err != nil {
34256		return nil, err
34257	}
34258	ret := &GoogleCloudDialogflowV2beta1ListSuggestionsResponse{
34259		ServerResponse: googleapi.ServerResponse{
34260			Header:         res.Header,
34261			HTTPStatusCode: res.StatusCode,
34262		},
34263	}
34264	target := &ret
34265	if err := gensupport.DecodeResponse(target, res); err != nil {
34266		return nil, err
34267	}
34268	return ret, nil
34269	// {
34270	//   "description": "Deprecated: Use inline suggestion, event based suggestion or Suggestion* API instead. See HumanAgentAssistantConfig.name for more details. Removal Date: 2020-09-01. Retrieves suggestions for live agents. This method should be used by human agent client software to fetch auto generated suggestions in real-time, while the conversation with an end user is in progress. The functionality is implemented in terms of the [list pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination) design pattern. The client app should use the `next_page_token` field to fetch the next batch of suggestions. `suggestions` are sorted by `create_time` in descending order. To fetch latest suggestion, just set `page_size` to 1. To fetch new suggestions without duplication, send request with filter `create_time_epoch_microseconds \u003e [first item's create_time of previous request]` and empty page_token.",
34271	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions",
34272	//   "httpMethod": "GET",
34273	//   "id": "dialogflow.projects.conversations.participants.suggestions.list",
34274	//   "parameterOrder": [
34275	//     "parent"
34276	//   ],
34277	//   "parameters": {
34278	//     "filter": {
34279	//       "description": "Optional. Filter on suggestions fields. Currently predicates on `create_time` and `create_time_epoch_microseconds` are supported. `create_time` only support milliseconds accuracy. E.g., `create_time_epoch_microseconds \u003e 1551790877964485` or `create_time \u003e \"2017-01-15T01:30:15.01Z\"` For more information about filtering, see [API Filtering](https://aip.dev/160).",
34280	//       "location": "query",
34281	//       "type": "string"
34282	//     },
34283	//     "pageSize": {
34284	//       "description": "Optional. The maximum number of items to return in a single page. The default value is 100; the maximum value is 1000.",
34285	//       "format": "int32",
34286	//       "location": "query",
34287	//       "type": "integer"
34288	//     },
34289	//     "pageToken": {
34290	//       "description": "Optional. The next_page_token value returned from a previous list request.",
34291	//       "location": "query",
34292	//       "type": "string"
34293	//     },
34294	//     "parent": {
34295	//       "description": "Required. The name of the participant to fetch suggestions for. Format: `projects//locations//conversations//participants/`.",
34296	//       "location": "path",
34297	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34298	//       "required": true,
34299	//       "type": "string"
34300	//     }
34301	//   },
34302	//   "path": "v2beta1/{+parent}/suggestions",
34303	//   "response": {
34304	//     "$ref": "GoogleCloudDialogflowV2beta1ListSuggestionsResponse"
34305	//   },
34306	//   "scopes": [
34307	//     "https://www.googleapis.com/auth/cloud-platform",
34308	//     "https://www.googleapis.com/auth/dialogflow"
34309	//   ]
34310	// }
34311
34312}
34313
34314// Pages invokes f for each page of results.
34315// A non-nil error returned from f will halt the iteration.
34316// The provided context supersedes any context provided to the Context method.
34317func (c *ProjectsConversationsParticipantsSuggestionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSuggestionsResponse) error) error {
34318	c.ctx_ = ctx
34319	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
34320	for {
34321		x, err := c.Do()
34322		if err != nil {
34323			return err
34324		}
34325		if err := f(x); err != nil {
34326			return err
34327		}
34328		if x.NextPageToken == "" {
34329			return nil
34330		}
34331		c.PageToken(x.NextPageToken)
34332	}
34333}
34334
34335// method id "dialogflow.projects.conversations.participants.suggestions.suggestArticles":
34336
34337type ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
34338	s                                                  *Service
34339	parent                                             string
34340	googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
34341	urlParams_                                         gensupport.URLParams
34342	ctx_                                               context.Context
34343	header_                                            http.Header
34344}
34345
34346// SuggestArticles: Gets suggested articles for a participant based on
34347// specific historical messages. Note that ListSuggestions will only
34348// list the auto-generated suggestions, while CompileSuggestion will try
34349// to compile suggestion based on the provided conversation context in
34350// the real time.
34351//
34352// - parent: The name of the participant to fetch suggestion for.
34353//   Format: `projects//locations//conversations//participants/`.
34354func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
34355	c := &ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34356	c.parent = parent
34357	c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
34358	return c
34359}
34360
34361// Fields allows partial responses to be retrieved. See
34362// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34363// for more information.
34364func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
34365	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34366	return c
34367}
34368
34369// Context sets the context to be used in this call's Do method. Any
34370// pending HTTP request will be aborted if the provided context is
34371// canceled.
34372func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
34373	c.ctx_ = ctx
34374	return c
34375}
34376
34377// Header returns an http.Header that can be modified by the caller to
34378// add HTTP headers to the request.
34379func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
34380	if c.header_ == nil {
34381		c.header_ = make(http.Header)
34382	}
34383	return c.header_
34384}
34385
34386func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
34387	reqHeaders := make(http.Header)
34388	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34389	for k, v := range c.header_ {
34390		reqHeaders[k] = v
34391	}
34392	reqHeaders.Set("User-Agent", c.s.userAgent())
34393	var body io.Reader = nil
34394	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
34395	if err != nil {
34396		return nil, err
34397	}
34398	reqHeaders.Set("Content-Type", "application/json")
34399	c.urlParams_.Set("alt", alt)
34400	c.urlParams_.Set("prettyPrint", "false")
34401	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
34402	urls += "?" + c.urlParams_.Encode()
34403	req, err := http.NewRequest("POST", urls, body)
34404	if err != nil {
34405		return nil, err
34406	}
34407	req.Header = reqHeaders
34408	googleapi.Expand(req.URL, map[string]string{
34409		"parent": c.parent,
34410	})
34411	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34412}
34413
34414// Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestArticles" call.
34415// Exactly one of *GoogleCloudDialogflowV2beta1SuggestArticlesResponse
34416// or error will be non-nil. Any non-2xx status code is an error.
34417// Response headers are in either
34418// *GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.He
34419// ader or (if a response was returned at all) in
34420// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34421// whether the returned error was because http.StatusNotModified was
34422// returned.
34423func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
34424	gensupport.SetOptions(c.urlParams_, opts...)
34425	res, err := c.doRequest("json")
34426	if res != nil && res.StatusCode == http.StatusNotModified {
34427		if res.Body != nil {
34428			res.Body.Close()
34429		}
34430		return nil, &googleapi.Error{
34431			Code:   res.StatusCode,
34432			Header: res.Header,
34433		}
34434	}
34435	if err != nil {
34436		return nil, err
34437	}
34438	defer googleapi.CloseBody(res)
34439	if err := googleapi.CheckResponse(res); err != nil {
34440		return nil, err
34441	}
34442	ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
34443		ServerResponse: googleapi.ServerResponse{
34444			Header:         res.Header,
34445			HTTPStatusCode: res.StatusCode,
34446		},
34447	}
34448	target := &ret
34449	if err := gensupport.DecodeResponse(target, res); err != nil {
34450		return nil, err
34451	}
34452	return ret, nil
34453	// {
34454	//   "description": "Gets suggested articles for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.",
34455	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestArticles",
34456	//   "httpMethod": "POST",
34457	//   "id": "dialogflow.projects.conversations.participants.suggestions.suggestArticles",
34458	//   "parameterOrder": [
34459	//     "parent"
34460	//   ],
34461	//   "parameters": {
34462	//     "parent": {
34463	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
34464	//       "location": "path",
34465	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34466	//       "required": true,
34467	//       "type": "string"
34468	//     }
34469	//   },
34470	//   "path": "v2beta1/{+parent}/suggestions:suggestArticles",
34471	//   "request": {
34472	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesRequest"
34473	//   },
34474	//   "response": {
34475	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesResponse"
34476	//   },
34477	//   "scopes": [
34478	//     "https://www.googleapis.com/auth/cloud-platform",
34479	//     "https://www.googleapis.com/auth/dialogflow"
34480	//   ]
34481	// }
34482
34483}
34484
34485// method id "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers":
34486
34487type ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
34488	s                                                    *Service
34489	parent                                               string
34490	googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
34491	urlParams_                                           gensupport.URLParams
34492	ctx_                                                 context.Context
34493	header_                                              http.Header
34494}
34495
34496// SuggestFaqAnswers: Gets suggested faq answers for a participant based
34497// on specific historical messages.
34498//
34499// - parent: The name of the participant to fetch suggestion for.
34500//   Format: `projects//locations//conversations//participants/`.
34501func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
34502	c := &ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34503	c.parent = parent
34504	c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
34505	return c
34506}
34507
34508// Fields allows partial responses to be retrieved. See
34509// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34510// for more information.
34511func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
34512	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34513	return c
34514}
34515
34516// Context sets the context to be used in this call's Do method. Any
34517// pending HTTP request will be aborted if the provided context is
34518// canceled.
34519func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
34520	c.ctx_ = ctx
34521	return c
34522}
34523
34524// Header returns an http.Header that can be modified by the caller to
34525// add HTTP headers to the request.
34526func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
34527	if c.header_ == nil {
34528		c.header_ = make(http.Header)
34529	}
34530	return c.header_
34531}
34532
34533func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
34534	reqHeaders := make(http.Header)
34535	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34536	for k, v := range c.header_ {
34537		reqHeaders[k] = v
34538	}
34539	reqHeaders.Set("User-Agent", c.s.userAgent())
34540	var body io.Reader = nil
34541	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
34542	if err != nil {
34543		return nil, err
34544	}
34545	reqHeaders.Set("Content-Type", "application/json")
34546	c.urlParams_.Set("alt", alt)
34547	c.urlParams_.Set("prettyPrint", "false")
34548	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
34549	urls += "?" + c.urlParams_.Encode()
34550	req, err := http.NewRequest("POST", urls, body)
34551	if err != nil {
34552		return nil, err
34553	}
34554	req.Header = reqHeaders
34555	googleapi.Expand(req.URL, map[string]string{
34556		"parent": c.parent,
34557	})
34558	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34559}
34560
34561// Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers" call.
34562// Exactly one of *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
34563// or error will be non-nil. Any non-2xx status code is an error.
34564// Response headers are in either
34565// *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.
34566// Header or (if a response was returned at all) in
34567// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34568// whether the returned error was because http.StatusNotModified was
34569// returned.
34570func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
34571	gensupport.SetOptions(c.urlParams_, opts...)
34572	res, err := c.doRequest("json")
34573	if res != nil && res.StatusCode == http.StatusNotModified {
34574		if res.Body != nil {
34575			res.Body.Close()
34576		}
34577		return nil, &googleapi.Error{
34578			Code:   res.StatusCode,
34579			Header: res.Header,
34580		}
34581	}
34582	if err != nil {
34583		return nil, err
34584	}
34585	defer googleapi.CloseBody(res)
34586	if err := googleapi.CheckResponse(res); err != nil {
34587		return nil, err
34588	}
34589	ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
34590		ServerResponse: googleapi.ServerResponse{
34591			Header:         res.Header,
34592			HTTPStatusCode: res.StatusCode,
34593		},
34594	}
34595	target := &ret
34596	if err := gensupport.DecodeResponse(target, res); err != nil {
34597		return nil, err
34598	}
34599	return ret, nil
34600	// {
34601	//   "description": "Gets suggested faq answers for a participant based on specific historical messages.",
34602	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestFaqAnswers",
34603	//   "httpMethod": "POST",
34604	//   "id": "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers",
34605	//   "parameterOrder": [
34606	//     "parent"
34607	//   ],
34608	//   "parameters": {
34609	//     "parent": {
34610	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
34611	//       "location": "path",
34612	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34613	//       "required": true,
34614	//       "type": "string"
34615	//     }
34616	//   },
34617	//   "path": "v2beta1/{+parent}/suggestions:suggestFaqAnswers",
34618	//   "request": {
34619	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest"
34620	//   },
34621	//   "response": {
34622	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse"
34623	//   },
34624	//   "scopes": [
34625	//     "https://www.googleapis.com/auth/cloud-platform",
34626	//     "https://www.googleapis.com/auth/dialogflow"
34627	//   ]
34628	// }
34629
34630}
34631
34632// method id "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies":
34633
34634type ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
34635	s                                                      *Service
34636	parent                                                 string
34637	googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
34638	urlParams_                                             gensupport.URLParams
34639	ctx_                                                   context.Context
34640	header_                                                http.Header
34641}
34642
34643// SuggestSmartReplies: Gets smart replies for a participant based on
34644// specific historical messages.
34645//
34646// - parent: The name of the participant to fetch suggestion for.
34647//   Format: `projects//locations//conversations//participants/`.
34648func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
34649	c := &ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34650	c.parent = parent
34651	c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
34652	return c
34653}
34654
34655// Fields allows partial responses to be retrieved. See
34656// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34657// for more information.
34658func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
34659	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34660	return c
34661}
34662
34663// Context sets the context to be used in this call's Do method. Any
34664// pending HTTP request will be aborted if the provided context is
34665// canceled.
34666func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
34667	c.ctx_ = ctx
34668	return c
34669}
34670
34671// Header returns an http.Header that can be modified by the caller to
34672// add HTTP headers to the request.
34673func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
34674	if c.header_ == nil {
34675		c.header_ = make(http.Header)
34676	}
34677	return c.header_
34678}
34679
34680func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
34681	reqHeaders := make(http.Header)
34682	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34683	for k, v := range c.header_ {
34684		reqHeaders[k] = v
34685	}
34686	reqHeaders.Set("User-Agent", c.s.userAgent())
34687	var body io.Reader = nil
34688	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
34689	if err != nil {
34690		return nil, err
34691	}
34692	reqHeaders.Set("Content-Type", "application/json")
34693	c.urlParams_.Set("alt", alt)
34694	c.urlParams_.Set("prettyPrint", "false")
34695	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
34696	urls += "?" + c.urlParams_.Encode()
34697	req, err := http.NewRequest("POST", urls, body)
34698	if err != nil {
34699		return nil, err
34700	}
34701	req.Header = reqHeaders
34702	googleapi.Expand(req.URL, map[string]string{
34703		"parent": c.parent,
34704	})
34705	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34706}
34707
34708// Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies" call.
34709// Exactly one of
34710// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse or error
34711// will be non-nil. Any non-2xx status code is an error. Response
34712// headers are in either
34713// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.ServerRespons
34714// e.Header or (if a response was returned at all) in
34715// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34716// whether the returned error was because http.StatusNotModified was
34717// returned.
34718func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
34719	gensupport.SetOptions(c.urlParams_, opts...)
34720	res, err := c.doRequest("json")
34721	if res != nil && res.StatusCode == http.StatusNotModified {
34722		if res.Body != nil {
34723			res.Body.Close()
34724		}
34725		return nil, &googleapi.Error{
34726			Code:   res.StatusCode,
34727			Header: res.Header,
34728		}
34729	}
34730	if err != nil {
34731		return nil, err
34732	}
34733	defer googleapi.CloseBody(res)
34734	if err := googleapi.CheckResponse(res); err != nil {
34735		return nil, err
34736	}
34737	ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
34738		ServerResponse: googleapi.ServerResponse{
34739			Header:         res.Header,
34740			HTTPStatusCode: res.StatusCode,
34741		},
34742	}
34743	target := &ret
34744	if err := gensupport.DecodeResponse(target, res); err != nil {
34745		return nil, err
34746	}
34747	return ret, nil
34748	// {
34749	//   "description": "Gets smart replies for a participant based on specific historical messages.",
34750	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestSmartReplies",
34751	//   "httpMethod": "POST",
34752	//   "id": "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies",
34753	//   "parameterOrder": [
34754	//     "parent"
34755	//   ],
34756	//   "parameters": {
34757	//     "parent": {
34758	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
34759	//       "location": "path",
34760	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34761	//       "required": true,
34762	//       "type": "string"
34763	//     }
34764	//   },
34765	//   "path": "v2beta1/{+parent}/suggestions:suggestSmartReplies",
34766	//   "request": {
34767	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest"
34768	//   },
34769	//   "response": {
34770	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse"
34771	//   },
34772	//   "scopes": [
34773	//     "https://www.googleapis.com/auth/cloud-platform",
34774	//     "https://www.googleapis.com/auth/dialogflow"
34775	//   ]
34776	// }
34777
34778}
34779
34780// method id "dialogflow.projects.knowledgeBases.create":
34781
34782type ProjectsKnowledgeBasesCreateCall struct {
34783	s                                         *Service
34784	parent                                    string
34785	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
34786	urlParams_                                gensupport.URLParams
34787	ctx_                                      context.Context
34788	header_                                   http.Header
34789}
34790
34791// Create: Creates a knowledge base. Note: The
34792// `projects.agent.knowledgeBases` resource is deprecated; only use
34793// `projects.knowledgeBases`.
34794//
34795// - parent: The project to create a knowledge base for. Format:
34796//   `projects//locations/`.
34797func (r *ProjectsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesCreateCall {
34798	c := &ProjectsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34799	c.parent = parent
34800	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
34801	return c
34802}
34803
34804// Fields allows partial responses to be retrieved. See
34805// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34806// for more information.
34807func (c *ProjectsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesCreateCall {
34808	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34809	return c
34810}
34811
34812// Context sets the context to be used in this call's Do method. Any
34813// pending HTTP request will be aborted if the provided context is
34814// canceled.
34815func (c *ProjectsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesCreateCall {
34816	c.ctx_ = ctx
34817	return c
34818}
34819
34820// Header returns an http.Header that can be modified by the caller to
34821// add HTTP headers to the request.
34822func (c *ProjectsKnowledgeBasesCreateCall) Header() http.Header {
34823	if c.header_ == nil {
34824		c.header_ = make(http.Header)
34825	}
34826	return c.header_
34827}
34828
34829func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
34830	reqHeaders := make(http.Header)
34831	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34832	for k, v := range c.header_ {
34833		reqHeaders[k] = v
34834	}
34835	reqHeaders.Set("User-Agent", c.s.userAgent())
34836	var body io.Reader = nil
34837	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
34838	if err != nil {
34839		return nil, err
34840	}
34841	reqHeaders.Set("Content-Type", "application/json")
34842	c.urlParams_.Set("alt", alt)
34843	c.urlParams_.Set("prettyPrint", "false")
34844	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
34845	urls += "?" + c.urlParams_.Encode()
34846	req, err := http.NewRequest("POST", urls, body)
34847	if err != nil {
34848		return nil, err
34849	}
34850	req.Header = reqHeaders
34851	googleapi.Expand(req.URL, map[string]string{
34852		"parent": c.parent,
34853	})
34854	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34855}
34856
34857// Do executes the "dialogflow.projects.knowledgeBases.create" call.
34858// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
34859// will be non-nil. Any non-2xx status code is an error. Response
34860// headers are in either
34861// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
34862// (if a response was returned at all) in
34863// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34864// whether the returned error was because http.StatusNotModified was
34865// returned.
34866func (c *ProjectsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
34867	gensupport.SetOptions(c.urlParams_, opts...)
34868	res, err := c.doRequest("json")
34869	if res != nil && res.StatusCode == http.StatusNotModified {
34870		if res.Body != nil {
34871			res.Body.Close()
34872		}
34873		return nil, &googleapi.Error{
34874			Code:   res.StatusCode,
34875			Header: res.Header,
34876		}
34877	}
34878	if err != nil {
34879		return nil, err
34880	}
34881	defer googleapi.CloseBody(res)
34882	if err := googleapi.CheckResponse(res); err != nil {
34883		return nil, err
34884	}
34885	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
34886		ServerResponse: googleapi.ServerResponse{
34887			Header:         res.Header,
34888			HTTPStatusCode: res.StatusCode,
34889		},
34890	}
34891	target := &ret
34892	if err := gensupport.DecodeResponse(target, res); err != nil {
34893		return nil, err
34894	}
34895	return ret, nil
34896	// {
34897	//   "description": "Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
34898	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases",
34899	//   "httpMethod": "POST",
34900	//   "id": "dialogflow.projects.knowledgeBases.create",
34901	//   "parameterOrder": [
34902	//     "parent"
34903	//   ],
34904	//   "parameters": {
34905	//     "parent": {
34906	//       "description": "Required. The project to create a knowledge base for. Format: `projects//locations/`.",
34907	//       "location": "path",
34908	//       "pattern": "^projects/[^/]+$",
34909	//       "required": true,
34910	//       "type": "string"
34911	//     }
34912	//   },
34913	//   "path": "v2beta1/{+parent}/knowledgeBases",
34914	//   "request": {
34915	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
34916	//   },
34917	//   "response": {
34918	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
34919	//   },
34920	//   "scopes": [
34921	//     "https://www.googleapis.com/auth/cloud-platform",
34922	//     "https://www.googleapis.com/auth/dialogflow"
34923	//   ]
34924	// }
34925
34926}
34927
34928// method id "dialogflow.projects.knowledgeBases.delete":
34929
34930type ProjectsKnowledgeBasesDeleteCall struct {
34931	s          *Service
34932	name       string
34933	urlParams_ gensupport.URLParams
34934	ctx_       context.Context
34935	header_    http.Header
34936}
34937
34938// Delete: Deletes the specified knowledge base. Note: The
34939// `projects.agent.knowledgeBases` resource is deprecated; only use
34940// `projects.knowledgeBases`.
34941//
34942// - name: The name of the knowledge base to delete. Format:
34943//   `projects//locations//knowledgeBases/`.
34944func (r *ProjectsKnowledgeBasesService) Delete(name string) *ProjectsKnowledgeBasesDeleteCall {
34945	c := &ProjectsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34946	c.name = name
34947	return c
34948}
34949
34950// Force sets the optional parameter "force": Force deletes the
34951// knowledge base. When set to true, any documents in the knowledge base
34952// are also deleted.
34953func (c *ProjectsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsKnowledgeBasesDeleteCall {
34954	c.urlParams_.Set("force", fmt.Sprint(force))
34955	return c
34956}
34957
34958// Fields allows partial responses to be retrieved. See
34959// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34960// for more information.
34961func (c *ProjectsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDeleteCall {
34962	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34963	return c
34964}
34965
34966// Context sets the context to be used in this call's Do method. Any
34967// pending HTTP request will be aborted if the provided context is
34968// canceled.
34969func (c *ProjectsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDeleteCall {
34970	c.ctx_ = ctx
34971	return c
34972}
34973
34974// Header returns an http.Header that can be modified by the caller to
34975// add HTTP headers to the request.
34976func (c *ProjectsKnowledgeBasesDeleteCall) Header() http.Header {
34977	if c.header_ == nil {
34978		c.header_ = make(http.Header)
34979	}
34980	return c.header_
34981}
34982
34983func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
34984	reqHeaders := make(http.Header)
34985	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34986	for k, v := range c.header_ {
34987		reqHeaders[k] = v
34988	}
34989	reqHeaders.Set("User-Agent", c.s.userAgent())
34990	var body io.Reader = nil
34991	c.urlParams_.Set("alt", alt)
34992	c.urlParams_.Set("prettyPrint", "false")
34993	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
34994	urls += "?" + c.urlParams_.Encode()
34995	req, err := http.NewRequest("DELETE", urls, body)
34996	if err != nil {
34997		return nil, err
34998	}
34999	req.Header = reqHeaders
35000	googleapi.Expand(req.URL, map[string]string{
35001		"name": c.name,
35002	})
35003	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35004}
35005
35006// Do executes the "dialogflow.projects.knowledgeBases.delete" call.
35007// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
35008// non-2xx status code is an error. Response headers are in either
35009// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
35010// returned at all) in error.(*googleapi.Error).Header. Use
35011// googleapi.IsNotModified to check whether the returned error was
35012// because http.StatusNotModified was returned.
35013func (c *ProjectsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
35014	gensupport.SetOptions(c.urlParams_, opts...)
35015	res, err := c.doRequest("json")
35016	if res != nil && res.StatusCode == http.StatusNotModified {
35017		if res.Body != nil {
35018			res.Body.Close()
35019		}
35020		return nil, &googleapi.Error{
35021			Code:   res.StatusCode,
35022			Header: res.Header,
35023		}
35024	}
35025	if err != nil {
35026		return nil, err
35027	}
35028	defer googleapi.CloseBody(res)
35029	if err := googleapi.CheckResponse(res); err != nil {
35030		return nil, err
35031	}
35032	ret := &GoogleProtobufEmpty{
35033		ServerResponse: googleapi.ServerResponse{
35034			Header:         res.Header,
35035			HTTPStatusCode: res.StatusCode,
35036		},
35037	}
35038	target := &ret
35039	if err := gensupport.DecodeResponse(target, res); err != nil {
35040		return nil, err
35041	}
35042	return ret, nil
35043	// {
35044	//   "description": "Deletes the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
35045	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}",
35046	//   "httpMethod": "DELETE",
35047	//   "id": "dialogflow.projects.knowledgeBases.delete",
35048	//   "parameterOrder": [
35049	//     "name"
35050	//   ],
35051	//   "parameters": {
35052	//     "force": {
35053	//       "description": "Optional. Force deletes the knowledge base. When set to true, any documents in the knowledge base are also deleted.",
35054	//       "location": "query",
35055	//       "type": "boolean"
35056	//     },
35057	//     "name": {
35058	//       "description": "Required. The name of the knowledge base to delete. Format: `projects//locations//knowledgeBases/`.",
35059	//       "location": "path",
35060	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
35061	//       "required": true,
35062	//       "type": "string"
35063	//     }
35064	//   },
35065	//   "path": "v2beta1/{+name}",
35066	//   "response": {
35067	//     "$ref": "GoogleProtobufEmpty"
35068	//   },
35069	//   "scopes": [
35070	//     "https://www.googleapis.com/auth/cloud-platform",
35071	//     "https://www.googleapis.com/auth/dialogflow"
35072	//   ]
35073	// }
35074
35075}
35076
35077// method id "dialogflow.projects.knowledgeBases.get":
35078
35079type ProjectsKnowledgeBasesGetCall struct {
35080	s            *Service
35081	name         string
35082	urlParams_   gensupport.URLParams
35083	ifNoneMatch_ string
35084	ctx_         context.Context
35085	header_      http.Header
35086}
35087
35088// Get: Retrieves the specified knowledge base. Note: The
35089// `projects.agent.knowledgeBases` resource is deprecated; only use
35090// `projects.knowledgeBases`.
35091//
35092// - name: The name of the knowledge base to retrieve. Format
35093//   `projects//locations//knowledgeBases/`.
35094func (r *ProjectsKnowledgeBasesService) Get(name string) *ProjectsKnowledgeBasesGetCall {
35095	c := &ProjectsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35096	c.name = name
35097	return c
35098}
35099
35100// Fields allows partial responses to be retrieved. See
35101// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35102// for more information.
35103func (c *ProjectsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesGetCall {
35104	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35105	return c
35106}
35107
35108// IfNoneMatch sets the optional parameter which makes the operation
35109// fail if the object's ETag matches the given value. This is useful for
35110// getting updates only after the object has changed since the last
35111// request. Use googleapi.IsNotModified to check whether the response
35112// error from Do is the result of In-None-Match.
35113func (c *ProjectsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesGetCall {
35114	c.ifNoneMatch_ = entityTag
35115	return c
35116}
35117
35118// Context sets the context to be used in this call's Do method. Any
35119// pending HTTP request will be aborted if the provided context is
35120// canceled.
35121func (c *ProjectsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesGetCall {
35122	c.ctx_ = ctx
35123	return c
35124}
35125
35126// Header returns an http.Header that can be modified by the caller to
35127// add HTTP headers to the request.
35128func (c *ProjectsKnowledgeBasesGetCall) Header() http.Header {
35129	if c.header_ == nil {
35130		c.header_ = make(http.Header)
35131	}
35132	return c.header_
35133}
35134
35135func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
35136	reqHeaders := make(http.Header)
35137	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35138	for k, v := range c.header_ {
35139		reqHeaders[k] = v
35140	}
35141	reqHeaders.Set("User-Agent", c.s.userAgent())
35142	if c.ifNoneMatch_ != "" {
35143		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35144	}
35145	var body io.Reader = nil
35146	c.urlParams_.Set("alt", alt)
35147	c.urlParams_.Set("prettyPrint", "false")
35148	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35149	urls += "?" + c.urlParams_.Encode()
35150	req, err := http.NewRequest("GET", urls, body)
35151	if err != nil {
35152		return nil, err
35153	}
35154	req.Header = reqHeaders
35155	googleapi.Expand(req.URL, map[string]string{
35156		"name": c.name,
35157	})
35158	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35159}
35160
35161// Do executes the "dialogflow.projects.knowledgeBases.get" call.
35162// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
35163// will be non-nil. Any non-2xx status code is an error. Response
35164// headers are in either
35165// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
35166// (if a response was returned at all) in
35167// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35168// whether the returned error was because http.StatusNotModified was
35169// returned.
35170func (c *ProjectsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
35171	gensupport.SetOptions(c.urlParams_, opts...)
35172	res, err := c.doRequest("json")
35173	if res != nil && res.StatusCode == http.StatusNotModified {
35174		if res.Body != nil {
35175			res.Body.Close()
35176		}
35177		return nil, &googleapi.Error{
35178			Code:   res.StatusCode,
35179			Header: res.Header,
35180		}
35181	}
35182	if err != nil {
35183		return nil, err
35184	}
35185	defer googleapi.CloseBody(res)
35186	if err := googleapi.CheckResponse(res); err != nil {
35187		return nil, err
35188	}
35189	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
35190		ServerResponse: googleapi.ServerResponse{
35191			Header:         res.Header,
35192			HTTPStatusCode: res.StatusCode,
35193		},
35194	}
35195	target := &ret
35196	if err := gensupport.DecodeResponse(target, res); err != nil {
35197		return nil, err
35198	}
35199	return ret, nil
35200	// {
35201	//   "description": "Retrieves the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
35202	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}",
35203	//   "httpMethod": "GET",
35204	//   "id": "dialogflow.projects.knowledgeBases.get",
35205	//   "parameterOrder": [
35206	//     "name"
35207	//   ],
35208	//   "parameters": {
35209	//     "name": {
35210	//       "description": "Required. The name of the knowledge base to retrieve. Format `projects//locations//knowledgeBases/`.",
35211	//       "location": "path",
35212	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
35213	//       "required": true,
35214	//       "type": "string"
35215	//     }
35216	//   },
35217	//   "path": "v2beta1/{+name}",
35218	//   "response": {
35219	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
35220	//   },
35221	//   "scopes": [
35222	//     "https://www.googleapis.com/auth/cloud-platform",
35223	//     "https://www.googleapis.com/auth/dialogflow"
35224	//   ]
35225	// }
35226
35227}
35228
35229// method id "dialogflow.projects.knowledgeBases.list":
35230
35231type ProjectsKnowledgeBasesListCall struct {
35232	s            *Service
35233	parent       string
35234	urlParams_   gensupport.URLParams
35235	ifNoneMatch_ string
35236	ctx_         context.Context
35237	header_      http.Header
35238}
35239
35240// List: Returns the list of all knowledge bases of the specified agent.
35241// Note: The `projects.agent.knowledgeBases` resource is deprecated;
35242// only use `projects.knowledgeBases`.
35243//
35244// - parent: The project to list of knowledge bases for. Format:
35245//   `projects//locations/`.
35246func (r *ProjectsKnowledgeBasesService) List(parent string) *ProjectsKnowledgeBasesListCall {
35247	c := &ProjectsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35248	c.parent = parent
35249	return c
35250}
35251
35252// Filter sets the optional parameter "filter": The filter expression
35253// used to filter knowledge bases returned by the list method. The
35254// expression has the following syntax: [AND ] ... The following fields
35255// and operators are supported: * display_name with has(:) operator *
35256// language_code with equals(=) operator Examples: *
35257// 'language_code=en-us' matches knowledge bases with en-us language
35258// code. * 'display_name:articles' matches knowledge bases whose display
35259// name contains "articles". * 'display_name:"Best Articles"' matches
35260// knowledge bases whose display name contains "Best Articles". *
35261// 'language_code=en-gb AND display_name=articles' matches all knowledge
35262// bases whose display name contains "articles" and whose language code
35263// is "en-gb". Note: An empty filter string (i.e. "") is a no-op and
35264// will result in no filtering. For more information about filtering,
35265// see API Filtering (https://aip.dev/160).
35266func (c *ProjectsKnowledgeBasesListCall) Filter(filter string) *ProjectsKnowledgeBasesListCall {
35267	c.urlParams_.Set("filter", filter)
35268	return c
35269}
35270
35271// PageSize sets the optional parameter "pageSize": The maximum number
35272// of items to return in a single page. By default 10 and at most 100.
35273func (c *ProjectsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesListCall {
35274	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35275	return c
35276}
35277
35278// PageToken sets the optional parameter "pageToken": The
35279// next_page_token value returned from a previous list request.
35280func (c *ProjectsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesListCall {
35281	c.urlParams_.Set("pageToken", pageToken)
35282	return c
35283}
35284
35285// Fields allows partial responses to be retrieved. See
35286// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35287// for more information.
35288func (c *ProjectsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesListCall {
35289	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35290	return c
35291}
35292
35293// IfNoneMatch sets the optional parameter which makes the operation
35294// fail if the object's ETag matches the given value. This is useful for
35295// getting updates only after the object has changed since the last
35296// request. Use googleapi.IsNotModified to check whether the response
35297// error from Do is the result of In-None-Match.
35298func (c *ProjectsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesListCall {
35299	c.ifNoneMatch_ = entityTag
35300	return c
35301}
35302
35303// Context sets the context to be used in this call's Do method. Any
35304// pending HTTP request will be aborted if the provided context is
35305// canceled.
35306func (c *ProjectsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesListCall {
35307	c.ctx_ = ctx
35308	return c
35309}
35310
35311// Header returns an http.Header that can be modified by the caller to
35312// add HTTP headers to the request.
35313func (c *ProjectsKnowledgeBasesListCall) Header() http.Header {
35314	if c.header_ == nil {
35315		c.header_ = make(http.Header)
35316	}
35317	return c.header_
35318}
35319
35320func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
35321	reqHeaders := make(http.Header)
35322	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35323	for k, v := range c.header_ {
35324		reqHeaders[k] = v
35325	}
35326	reqHeaders.Set("User-Agent", c.s.userAgent())
35327	if c.ifNoneMatch_ != "" {
35328		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35329	}
35330	var body io.Reader = nil
35331	c.urlParams_.Set("alt", alt)
35332	c.urlParams_.Set("prettyPrint", "false")
35333	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
35334	urls += "?" + c.urlParams_.Encode()
35335	req, err := http.NewRequest("GET", urls, body)
35336	if err != nil {
35337		return nil, err
35338	}
35339	req.Header = reqHeaders
35340	googleapi.Expand(req.URL, map[string]string{
35341		"parent": c.parent,
35342	})
35343	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35344}
35345
35346// Do executes the "dialogflow.projects.knowledgeBases.list" call.
35347// Exactly one of
35348// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse or error will
35349// be non-nil. Any non-2xx status code is an error. Response headers are
35350// in either
35351// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse
35352// .Header or (if a response was returned at all) in
35353// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35354// whether the returned error was because http.StatusNotModified was
35355// returned.
35356func (c *ProjectsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
35357	gensupport.SetOptions(c.urlParams_, opts...)
35358	res, err := c.doRequest("json")
35359	if res != nil && res.StatusCode == http.StatusNotModified {
35360		if res.Body != nil {
35361			res.Body.Close()
35362		}
35363		return nil, &googleapi.Error{
35364			Code:   res.StatusCode,
35365			Header: res.Header,
35366		}
35367	}
35368	if err != nil {
35369		return nil, err
35370	}
35371	defer googleapi.CloseBody(res)
35372	if err := googleapi.CheckResponse(res); err != nil {
35373		return nil, err
35374	}
35375	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
35376		ServerResponse: googleapi.ServerResponse{
35377			Header:         res.Header,
35378			HTTPStatusCode: res.StatusCode,
35379		},
35380	}
35381	target := &ret
35382	if err := gensupport.DecodeResponse(target, res); err != nil {
35383		return nil, err
35384	}
35385	return ret, nil
35386	// {
35387	//   "description": "Returns the list of all knowledge bases of the specified agent. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
35388	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases",
35389	//   "httpMethod": "GET",
35390	//   "id": "dialogflow.projects.knowledgeBases.list",
35391	//   "parameterOrder": [
35392	//     "parent"
35393	//   ],
35394	//   "parameters": {
35395	//     "filter": {
35396	//       "description": "The filter expression used to filter knowledge bases returned by the list method. The expression has the following syntax: [AND ] ... The following fields and operators are supported: * display_name with has(:) operator * language_code with equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases with en-us language code. * 'display_name:articles' matches knowledge bases whose display name contains \"articles\". * 'display_name:\"Best Articles\"' matches knowledge bases whose display name contains \"Best Articles\". * 'language_code=en-gb AND display_name=articles' matches all knowledge bases whose display name contains \"articles\" and whose language code is \"en-gb\". Note: An empty filter string (i.e. \"\") is a no-op and will result in no filtering. For more information about filtering, see [API Filtering](https://aip.dev/160).",
35397	//       "location": "query",
35398	//       "type": "string"
35399	//     },
35400	//     "pageSize": {
35401	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
35402	//       "format": "int32",
35403	//       "location": "query",
35404	//       "type": "integer"
35405	//     },
35406	//     "pageToken": {
35407	//       "description": "The next_page_token value returned from a previous list request.",
35408	//       "location": "query",
35409	//       "type": "string"
35410	//     },
35411	//     "parent": {
35412	//       "description": "Required. The project to list of knowledge bases for. Format: `projects//locations/`.",
35413	//       "location": "path",
35414	//       "pattern": "^projects/[^/]+$",
35415	//       "required": true,
35416	//       "type": "string"
35417	//     }
35418	//   },
35419	//   "path": "v2beta1/{+parent}/knowledgeBases",
35420	//   "response": {
35421	//     "$ref": "GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse"
35422	//   },
35423	//   "scopes": [
35424	//     "https://www.googleapis.com/auth/cloud-platform",
35425	//     "https://www.googleapis.com/auth/dialogflow"
35426	//   ]
35427	// }
35428
35429}
35430
35431// Pages invokes f for each page of results.
35432// A non-nil error returned from f will halt the iteration.
35433// The provided context supersedes any context provided to the Context method.
35434func (c *ProjectsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
35435	c.ctx_ = ctx
35436	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
35437	for {
35438		x, err := c.Do()
35439		if err != nil {
35440			return err
35441		}
35442		if err := f(x); err != nil {
35443			return err
35444		}
35445		if x.NextPageToken == "" {
35446			return nil
35447		}
35448		c.PageToken(x.NextPageToken)
35449	}
35450}
35451
35452// method id "dialogflow.projects.knowledgeBases.patch":
35453
35454type ProjectsKnowledgeBasesPatchCall struct {
35455	s                                         *Service
35456	name                                      string
35457	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
35458	urlParams_                                gensupport.URLParams
35459	ctx_                                      context.Context
35460	header_                                   http.Header
35461}
35462
35463// Patch: Updates the specified knowledge base. Note: The
35464// `projects.agent.knowledgeBases` resource is deprecated; only use
35465// `projects.knowledgeBases`.
35466//
35467// - name: The knowledge base resource name. The name must be empty when
35468//   creating a knowledge base. Format:
35469//   `projects//locations//knowledgeBases/`.
35470func (r *ProjectsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesPatchCall {
35471	c := &ProjectsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35472	c.name = name
35473	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
35474	return c
35475}
35476
35477// UpdateMask sets the optional parameter "updateMask": Not specified
35478// means `update all`. Currently, only `display_name` can be updated, an
35479// InvalidArgument will be returned for attempting to update other
35480// fields.
35481func (c *ProjectsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesPatchCall {
35482	c.urlParams_.Set("updateMask", updateMask)
35483	return c
35484}
35485
35486// Fields allows partial responses to be retrieved. See
35487// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35488// for more information.
35489func (c *ProjectsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesPatchCall {
35490	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35491	return c
35492}
35493
35494// Context sets the context to be used in this call's Do method. Any
35495// pending HTTP request will be aborted if the provided context is
35496// canceled.
35497func (c *ProjectsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesPatchCall {
35498	c.ctx_ = ctx
35499	return c
35500}
35501
35502// Header returns an http.Header that can be modified by the caller to
35503// add HTTP headers to the request.
35504func (c *ProjectsKnowledgeBasesPatchCall) Header() http.Header {
35505	if c.header_ == nil {
35506		c.header_ = make(http.Header)
35507	}
35508	return c.header_
35509}
35510
35511func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
35512	reqHeaders := make(http.Header)
35513	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35514	for k, v := range c.header_ {
35515		reqHeaders[k] = v
35516	}
35517	reqHeaders.Set("User-Agent", c.s.userAgent())
35518	var body io.Reader = nil
35519	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
35520	if err != nil {
35521		return nil, err
35522	}
35523	reqHeaders.Set("Content-Type", "application/json")
35524	c.urlParams_.Set("alt", alt)
35525	c.urlParams_.Set("prettyPrint", "false")
35526	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35527	urls += "?" + c.urlParams_.Encode()
35528	req, err := http.NewRequest("PATCH", urls, body)
35529	if err != nil {
35530		return nil, err
35531	}
35532	req.Header = reqHeaders
35533	googleapi.Expand(req.URL, map[string]string{
35534		"name": c.name,
35535	})
35536	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35537}
35538
35539// Do executes the "dialogflow.projects.knowledgeBases.patch" call.
35540// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
35541// will be non-nil. Any non-2xx status code is an error. Response
35542// headers are in either
35543// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
35544// (if a response was returned at all) in
35545// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35546// whether the returned error was because http.StatusNotModified was
35547// returned.
35548func (c *ProjectsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
35549	gensupport.SetOptions(c.urlParams_, opts...)
35550	res, err := c.doRequest("json")
35551	if res != nil && res.StatusCode == http.StatusNotModified {
35552		if res.Body != nil {
35553			res.Body.Close()
35554		}
35555		return nil, &googleapi.Error{
35556			Code:   res.StatusCode,
35557			Header: res.Header,
35558		}
35559	}
35560	if err != nil {
35561		return nil, err
35562	}
35563	defer googleapi.CloseBody(res)
35564	if err := googleapi.CheckResponse(res); err != nil {
35565		return nil, err
35566	}
35567	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
35568		ServerResponse: googleapi.ServerResponse{
35569			Header:         res.Header,
35570			HTTPStatusCode: res.StatusCode,
35571		},
35572	}
35573	target := &ret
35574	if err := gensupport.DecodeResponse(target, res); err != nil {
35575		return nil, err
35576	}
35577	return ret, nil
35578	// {
35579	//   "description": "Updates the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
35580	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}",
35581	//   "httpMethod": "PATCH",
35582	//   "id": "dialogflow.projects.knowledgeBases.patch",
35583	//   "parameterOrder": [
35584	//     "name"
35585	//   ],
35586	//   "parameters": {
35587	//     "name": {
35588	//       "description": "The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.",
35589	//       "location": "path",
35590	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
35591	//       "required": true,
35592	//       "type": "string"
35593	//     },
35594	//     "updateMask": {
35595	//       "description": "Optional. Not specified means `update all`. Currently, only `display_name` can be updated, an InvalidArgument will be returned for attempting to update other fields.",
35596	//       "format": "google-fieldmask",
35597	//       "location": "query",
35598	//       "type": "string"
35599	//     }
35600	//   },
35601	//   "path": "v2beta1/{+name}",
35602	//   "request": {
35603	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
35604	//   },
35605	//   "response": {
35606	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
35607	//   },
35608	//   "scopes": [
35609	//     "https://www.googleapis.com/auth/cloud-platform",
35610	//     "https://www.googleapis.com/auth/dialogflow"
35611	//   ]
35612	// }
35613
35614}
35615
35616// method id "dialogflow.projects.knowledgeBases.documents.create":
35617
35618type ProjectsKnowledgeBasesDocumentsCreateCall struct {
35619	s                                    *Service
35620	parent                               string
35621	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
35622	urlParams_                           gensupport.URLParams
35623	ctx_                                 context.Context
35624	header_                              http.Header
35625}
35626
35627// Create: Creates a new document. Note: The
35628// `projects.agent.knowledgeBases.documents` resource is deprecated;
35629// only use `projects.knowledgeBases.documents`.
35630//
35631// - parent: The knowledge base to create a document for. Format:
35632//   `projects//locations//knowledgeBases/`.
35633func (r *ProjectsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsCreateCall {
35634	c := &ProjectsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35635	c.parent = parent
35636	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
35637	return c
35638}
35639
35640// ImportGcsCustomMetadata sets the optional parameter
35641// "importGcsCustomMetadata": Whether to import custom metadata from
35642// Google Cloud Storage. Only valid when the document source is Google
35643// Cloud Storage URI.
35644func (c *ProjectsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsKnowledgeBasesDocumentsCreateCall {
35645	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
35646	return c
35647}
35648
35649// Fields allows partial responses to be retrieved. See
35650// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35651// for more information.
35652func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsCreateCall {
35653	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35654	return c
35655}
35656
35657// Context sets the context to be used in this call's Do method. Any
35658// pending HTTP request will be aborted if the provided context is
35659// canceled.
35660func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsCreateCall {
35661	c.ctx_ = ctx
35662	return c
35663}
35664
35665// Header returns an http.Header that can be modified by the caller to
35666// add HTTP headers to the request.
35667func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
35668	if c.header_ == nil {
35669		c.header_ = make(http.Header)
35670	}
35671	return c.header_
35672}
35673
35674func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
35675	reqHeaders := make(http.Header)
35676	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35677	for k, v := range c.header_ {
35678		reqHeaders[k] = v
35679	}
35680	reqHeaders.Set("User-Agent", c.s.userAgent())
35681	var body io.Reader = nil
35682	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
35683	if err != nil {
35684		return nil, err
35685	}
35686	reqHeaders.Set("Content-Type", "application/json")
35687	c.urlParams_.Set("alt", alt)
35688	c.urlParams_.Set("prettyPrint", "false")
35689	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
35690	urls += "?" + c.urlParams_.Encode()
35691	req, err := http.NewRequest("POST", urls, body)
35692	if err != nil {
35693		return nil, err
35694	}
35695	req.Header = reqHeaders
35696	googleapi.Expand(req.URL, map[string]string{
35697		"parent": c.parent,
35698	})
35699	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35700}
35701
35702// Do executes the "dialogflow.projects.knowledgeBases.documents.create" call.
35703// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35704// Any non-2xx status code is an error. Response headers are in either
35705// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35706// was returned at all) in error.(*googleapi.Error).Header. Use
35707// googleapi.IsNotModified to check whether the returned error was
35708// because http.StatusNotModified was returned.
35709func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35710	gensupport.SetOptions(c.urlParams_, opts...)
35711	res, err := c.doRequest("json")
35712	if res != nil && res.StatusCode == http.StatusNotModified {
35713		if res.Body != nil {
35714			res.Body.Close()
35715		}
35716		return nil, &googleapi.Error{
35717			Code:   res.StatusCode,
35718			Header: res.Header,
35719		}
35720	}
35721	if err != nil {
35722		return nil, err
35723	}
35724	defer googleapi.CloseBody(res)
35725	if err := googleapi.CheckResponse(res); err != nil {
35726		return nil, err
35727	}
35728	ret := &GoogleLongrunningOperation{
35729		ServerResponse: googleapi.ServerResponse{
35730			Header:         res.Header,
35731			HTTPStatusCode: res.StatusCode,
35732		},
35733	}
35734	target := &ret
35735	if err := gensupport.DecodeResponse(target, res); err != nil {
35736		return nil, err
35737	}
35738	return ret, nil
35739	// {
35740	//   "description": "Creates a new document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
35741	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents",
35742	//   "httpMethod": "POST",
35743	//   "id": "dialogflow.projects.knowledgeBases.documents.create",
35744	//   "parameterOrder": [
35745	//     "parent"
35746	//   ],
35747	//   "parameters": {
35748	//     "importGcsCustomMetadata": {
35749	//       "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.",
35750	//       "location": "query",
35751	//       "type": "boolean"
35752	//     },
35753	//     "parent": {
35754	//       "description": "Required. The knowledge base to create a document for. Format: `projects//locations//knowledgeBases/`.",
35755	//       "location": "path",
35756	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
35757	//       "required": true,
35758	//       "type": "string"
35759	//     }
35760	//   },
35761	//   "path": "v2beta1/{+parent}/documents",
35762	//   "request": {
35763	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
35764	//   },
35765	//   "response": {
35766	//     "$ref": "GoogleLongrunningOperation"
35767	//   },
35768	//   "scopes": [
35769	//     "https://www.googleapis.com/auth/cloud-platform",
35770	//     "https://www.googleapis.com/auth/dialogflow"
35771	//   ]
35772	// }
35773
35774}
35775
35776// method id "dialogflow.projects.knowledgeBases.documents.delete":
35777
35778type ProjectsKnowledgeBasesDocumentsDeleteCall struct {
35779	s          *Service
35780	name       string
35781	urlParams_ gensupport.URLParams
35782	ctx_       context.Context
35783	header_    http.Header
35784}
35785
35786// Delete: Deletes the specified document. Note: The
35787// `projects.agent.knowledgeBases.documents` resource is deprecated;
35788// only use `projects.knowledgeBases.documents`.
35789//
35790// - name: The name of the document to delete. Format:
35791//   `projects//locations//knowledgeBases//documents/`.
35792func (r *ProjectsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsKnowledgeBasesDocumentsDeleteCall {
35793	c := &ProjectsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35794	c.name = name
35795	return c
35796}
35797
35798// Fields allows partial responses to be retrieved. See
35799// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35800// for more information.
35801func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsDeleteCall {
35802	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35803	return c
35804}
35805
35806// Context sets the context to be used in this call's Do method. Any
35807// pending HTTP request will be aborted if the provided context is
35808// canceled.
35809func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsDeleteCall {
35810	c.ctx_ = ctx
35811	return c
35812}
35813
35814// Header returns an http.Header that can be modified by the caller to
35815// add HTTP headers to the request.
35816func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
35817	if c.header_ == nil {
35818		c.header_ = make(http.Header)
35819	}
35820	return c.header_
35821}
35822
35823func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
35824	reqHeaders := make(http.Header)
35825	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35826	for k, v := range c.header_ {
35827		reqHeaders[k] = v
35828	}
35829	reqHeaders.Set("User-Agent", c.s.userAgent())
35830	var body io.Reader = nil
35831	c.urlParams_.Set("alt", alt)
35832	c.urlParams_.Set("prettyPrint", "false")
35833	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35834	urls += "?" + c.urlParams_.Encode()
35835	req, err := http.NewRequest("DELETE", urls, body)
35836	if err != nil {
35837		return nil, err
35838	}
35839	req.Header = reqHeaders
35840	googleapi.Expand(req.URL, map[string]string{
35841		"name": c.name,
35842	})
35843	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35844}
35845
35846// Do executes the "dialogflow.projects.knowledgeBases.documents.delete" call.
35847// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35848// Any non-2xx status code is an error. Response headers are in either
35849// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35850// was returned at all) in error.(*googleapi.Error).Header. Use
35851// googleapi.IsNotModified to check whether the returned error was
35852// because http.StatusNotModified was returned.
35853func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35854	gensupport.SetOptions(c.urlParams_, opts...)
35855	res, err := c.doRequest("json")
35856	if res != nil && res.StatusCode == http.StatusNotModified {
35857		if res.Body != nil {
35858			res.Body.Close()
35859		}
35860		return nil, &googleapi.Error{
35861			Code:   res.StatusCode,
35862			Header: res.Header,
35863		}
35864	}
35865	if err != nil {
35866		return nil, err
35867	}
35868	defer googleapi.CloseBody(res)
35869	if err := googleapi.CheckResponse(res); err != nil {
35870		return nil, err
35871	}
35872	ret := &GoogleLongrunningOperation{
35873		ServerResponse: googleapi.ServerResponse{
35874			Header:         res.Header,
35875			HTTPStatusCode: res.StatusCode,
35876		},
35877	}
35878	target := &ret
35879	if err := gensupport.DecodeResponse(target, res); err != nil {
35880		return nil, err
35881	}
35882	return ret, nil
35883	// {
35884	//   "description": "Deletes the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
35885	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
35886	//   "httpMethod": "DELETE",
35887	//   "id": "dialogflow.projects.knowledgeBases.documents.delete",
35888	//   "parameterOrder": [
35889	//     "name"
35890	//   ],
35891	//   "parameters": {
35892	//     "name": {
35893	//       "description": "Required. The name of the document to delete. Format: `projects//locations//knowledgeBases//documents/`.",
35894	//       "location": "path",
35895	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
35896	//       "required": true,
35897	//       "type": "string"
35898	//     }
35899	//   },
35900	//   "path": "v2beta1/{+name}",
35901	//   "response": {
35902	//     "$ref": "GoogleLongrunningOperation"
35903	//   },
35904	//   "scopes": [
35905	//     "https://www.googleapis.com/auth/cloud-platform",
35906	//     "https://www.googleapis.com/auth/dialogflow"
35907	//   ]
35908	// }
35909
35910}
35911
35912// method id "dialogflow.projects.knowledgeBases.documents.get":
35913
35914type ProjectsKnowledgeBasesDocumentsGetCall struct {
35915	s            *Service
35916	name         string
35917	urlParams_   gensupport.URLParams
35918	ifNoneMatch_ string
35919	ctx_         context.Context
35920	header_      http.Header
35921}
35922
35923// Get: Retrieves the specified document. Note: The
35924// `projects.agent.knowledgeBases.documents` resource is deprecated;
35925// only use `projects.knowledgeBases.documents`.
35926//
35927// - name: The name of the document to retrieve. Format
35928//   `projects//locations//knowledgeBases//documents/`.
35929func (r *ProjectsKnowledgeBasesDocumentsService) Get(name string) *ProjectsKnowledgeBasesDocumentsGetCall {
35930	c := &ProjectsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35931	c.name = name
35932	return c
35933}
35934
35935// Fields allows partial responses to be retrieved. See
35936// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35937// for more information.
35938func (c *ProjectsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsGetCall {
35939	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35940	return c
35941}
35942
35943// IfNoneMatch sets the optional parameter which makes the operation
35944// fail if the object's ETag matches the given value. This is useful for
35945// getting updates only after the object has changed since the last
35946// request. Use googleapi.IsNotModified to check whether the response
35947// error from Do is the result of In-None-Match.
35948func (c *ProjectsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsGetCall {
35949	c.ifNoneMatch_ = entityTag
35950	return c
35951}
35952
35953// Context sets the context to be used in this call's Do method. Any
35954// pending HTTP request will be aborted if the provided context is
35955// canceled.
35956func (c *ProjectsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsGetCall {
35957	c.ctx_ = ctx
35958	return c
35959}
35960
35961// Header returns an http.Header that can be modified by the caller to
35962// add HTTP headers to the request.
35963func (c *ProjectsKnowledgeBasesDocumentsGetCall) Header() http.Header {
35964	if c.header_ == nil {
35965		c.header_ = make(http.Header)
35966	}
35967	return c.header_
35968}
35969
35970func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
35971	reqHeaders := make(http.Header)
35972	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35973	for k, v := range c.header_ {
35974		reqHeaders[k] = v
35975	}
35976	reqHeaders.Set("User-Agent", c.s.userAgent())
35977	if c.ifNoneMatch_ != "" {
35978		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35979	}
35980	var body io.Reader = nil
35981	c.urlParams_.Set("alt", alt)
35982	c.urlParams_.Set("prettyPrint", "false")
35983	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35984	urls += "?" + c.urlParams_.Encode()
35985	req, err := http.NewRequest("GET", urls, body)
35986	if err != nil {
35987		return nil, err
35988	}
35989	req.Header = reqHeaders
35990	googleapi.Expand(req.URL, map[string]string{
35991		"name": c.name,
35992	})
35993	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35994}
35995
35996// Do executes the "dialogflow.projects.knowledgeBases.documents.get" call.
35997// Exactly one of *GoogleCloudDialogflowV2beta1Document or error will be
35998// non-nil. Any non-2xx status code is an error. Response headers are in
35999// either *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or
36000// (if a response was returned at all) in
36001// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36002// whether the returned error was because http.StatusNotModified was
36003// returned.
36004func (c *ProjectsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
36005	gensupport.SetOptions(c.urlParams_, opts...)
36006	res, err := c.doRequest("json")
36007	if res != nil && res.StatusCode == http.StatusNotModified {
36008		if res.Body != nil {
36009			res.Body.Close()
36010		}
36011		return nil, &googleapi.Error{
36012			Code:   res.StatusCode,
36013			Header: res.Header,
36014		}
36015	}
36016	if err != nil {
36017		return nil, err
36018	}
36019	defer googleapi.CloseBody(res)
36020	if err := googleapi.CheckResponse(res); err != nil {
36021		return nil, err
36022	}
36023	ret := &GoogleCloudDialogflowV2beta1Document{
36024		ServerResponse: googleapi.ServerResponse{
36025			Header:         res.Header,
36026			HTTPStatusCode: res.StatusCode,
36027		},
36028	}
36029	target := &ret
36030	if err := gensupport.DecodeResponse(target, res); err != nil {
36031		return nil, err
36032	}
36033	return ret, nil
36034	// {
36035	//   "description": "Retrieves the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
36036	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
36037	//   "httpMethod": "GET",
36038	//   "id": "dialogflow.projects.knowledgeBases.documents.get",
36039	//   "parameterOrder": [
36040	//     "name"
36041	//   ],
36042	//   "parameters": {
36043	//     "name": {
36044	//       "description": "Required. The name of the document to retrieve. Format `projects//locations//knowledgeBases//documents/`.",
36045	//       "location": "path",
36046	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
36047	//       "required": true,
36048	//       "type": "string"
36049	//     }
36050	//   },
36051	//   "path": "v2beta1/{+name}",
36052	//   "response": {
36053	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
36054	//   },
36055	//   "scopes": [
36056	//     "https://www.googleapis.com/auth/cloud-platform",
36057	//     "https://www.googleapis.com/auth/dialogflow"
36058	//   ]
36059	// }
36060
36061}
36062
36063// method id "dialogflow.projects.knowledgeBases.documents.import":
36064
36065type ProjectsKnowledgeBasesDocumentsImportCall struct {
36066	s                                                  *Service
36067	parent                                             string
36068	googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
36069	urlParams_                                         gensupport.URLParams
36070	ctx_                                               context.Context
36071	header_                                            http.Header
36072}
36073
36074// Import: Create documents by importing data from external sources.
36075// Dialogflow supports up to 350 documents in each request. If you try
36076// to import more, Dialogflow will return an error.
36077//
36078// - parent: The knowledge base to import documents into. Format:
36079//   `projects//locations//knowledgeBases/`.
36080func (r *ProjectsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsKnowledgeBasesDocumentsImportCall {
36081	c := &ProjectsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36082	c.parent = parent
36083	c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
36084	return c
36085}
36086
36087// Fields allows partial responses to be retrieved. See
36088// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36089// for more information.
36090func (c *ProjectsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsImportCall {
36091	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36092	return c
36093}
36094
36095// Context sets the context to be used in this call's Do method. Any
36096// pending HTTP request will be aborted if the provided context is
36097// canceled.
36098func (c *ProjectsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsImportCall {
36099	c.ctx_ = ctx
36100	return c
36101}
36102
36103// Header returns an http.Header that can be modified by the caller to
36104// add HTTP headers to the request.
36105func (c *ProjectsKnowledgeBasesDocumentsImportCall) Header() http.Header {
36106	if c.header_ == nil {
36107		c.header_ = make(http.Header)
36108	}
36109	return c.header_
36110}
36111
36112func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
36113	reqHeaders := make(http.Header)
36114	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36115	for k, v := range c.header_ {
36116		reqHeaders[k] = v
36117	}
36118	reqHeaders.Set("User-Agent", c.s.userAgent())
36119	var body io.Reader = nil
36120	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
36121	if err != nil {
36122		return nil, err
36123	}
36124	reqHeaders.Set("Content-Type", "application/json")
36125	c.urlParams_.Set("alt", alt)
36126	c.urlParams_.Set("prettyPrint", "false")
36127	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
36128	urls += "?" + c.urlParams_.Encode()
36129	req, err := http.NewRequest("POST", urls, body)
36130	if err != nil {
36131		return nil, err
36132	}
36133	req.Header = reqHeaders
36134	googleapi.Expand(req.URL, map[string]string{
36135		"parent": c.parent,
36136	})
36137	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36138}
36139
36140// Do executes the "dialogflow.projects.knowledgeBases.documents.import" call.
36141// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36142// Any non-2xx status code is an error. Response headers are in either
36143// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36144// was returned at all) in error.(*googleapi.Error).Header. Use
36145// googleapi.IsNotModified to check whether the returned error was
36146// because http.StatusNotModified was returned.
36147func (c *ProjectsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36148	gensupport.SetOptions(c.urlParams_, opts...)
36149	res, err := c.doRequest("json")
36150	if res != nil && res.StatusCode == http.StatusNotModified {
36151		if res.Body != nil {
36152			res.Body.Close()
36153		}
36154		return nil, &googleapi.Error{
36155			Code:   res.StatusCode,
36156			Header: res.Header,
36157		}
36158	}
36159	if err != nil {
36160		return nil, err
36161	}
36162	defer googleapi.CloseBody(res)
36163	if err := googleapi.CheckResponse(res); err != nil {
36164		return nil, err
36165	}
36166	ret := &GoogleLongrunningOperation{
36167		ServerResponse: googleapi.ServerResponse{
36168			Header:         res.Header,
36169			HTTPStatusCode: res.StatusCode,
36170		},
36171	}
36172	target := &ret
36173	if err := gensupport.DecodeResponse(target, res); err != nil {
36174		return nil, err
36175	}
36176	return ret, nil
36177	// {
36178	//   "description": "Create documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error.",
36179	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents:import",
36180	//   "httpMethod": "POST",
36181	//   "id": "dialogflow.projects.knowledgeBases.documents.import",
36182	//   "parameterOrder": [
36183	//     "parent"
36184	//   ],
36185	//   "parameters": {
36186	//     "parent": {
36187	//       "description": "Required. The knowledge base to import documents into. Format: `projects//locations//knowledgeBases/`.",
36188	//       "location": "path",
36189	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
36190	//       "required": true,
36191	//       "type": "string"
36192	//     }
36193	//   },
36194	//   "path": "v2beta1/{+parent}/documents:import",
36195	//   "request": {
36196	//     "$ref": "GoogleCloudDialogflowV2beta1ImportDocumentsRequest"
36197	//   },
36198	//   "response": {
36199	//     "$ref": "GoogleLongrunningOperation"
36200	//   },
36201	//   "scopes": [
36202	//     "https://www.googleapis.com/auth/cloud-platform",
36203	//     "https://www.googleapis.com/auth/dialogflow"
36204	//   ]
36205	// }
36206
36207}
36208
36209// method id "dialogflow.projects.knowledgeBases.documents.list":
36210
36211type ProjectsKnowledgeBasesDocumentsListCall struct {
36212	s            *Service
36213	parent       string
36214	urlParams_   gensupport.URLParams
36215	ifNoneMatch_ string
36216	ctx_         context.Context
36217	header_      http.Header
36218}
36219
36220// List: Returns the list of all documents of the knowledge base. Note:
36221// The `projects.agent.knowledgeBases.documents` resource is deprecated;
36222// only use `projects.knowledgeBases.documents`.
36223//
36224// - parent: The knowledge base to list all documents for. Format:
36225//   `projects//locations//knowledgeBases/`.
36226func (r *ProjectsKnowledgeBasesDocumentsService) List(parent string) *ProjectsKnowledgeBasesDocumentsListCall {
36227	c := &ProjectsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36228	c.parent = parent
36229	return c
36230}
36231
36232// Filter sets the optional parameter "filter": The filter expression
36233// used to filter documents returned by the list method. The expression
36234// has the following syntax: [AND ] ... The following fields and
36235// operators are supported: * knowledge_types with has(:) operator *
36236// display_name with has(:) operator * state with equals(=) operator
36237// Examples: * "knowledge_types:FAQ" matches documents with FAQ
36238// knowledge type. * "display_name:customer" matches documents whose
36239// display name contains "customer". * "state=ACTIVE" matches documents
36240// with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE" matches
36241// all active FAQ documents. For more information about filtering, see
36242// API Filtering (https://aip.dev/160).
36243func (c *ProjectsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsKnowledgeBasesDocumentsListCall {
36244	c.urlParams_.Set("filter", filter)
36245	return c
36246}
36247
36248// PageSize sets the optional parameter "pageSize": The maximum number
36249// of items to return in a single page. By default 10 and at most 100.
36250func (c *ProjectsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesDocumentsListCall {
36251	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36252	return c
36253}
36254
36255// PageToken sets the optional parameter "pageToken": The
36256// next_page_token value returned from a previous list request.
36257func (c *ProjectsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesDocumentsListCall {
36258	c.urlParams_.Set("pageToken", pageToken)
36259	return c
36260}
36261
36262// Fields allows partial responses to be retrieved. See
36263// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36264// for more information.
36265func (c *ProjectsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsListCall {
36266	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36267	return c
36268}
36269
36270// IfNoneMatch sets the optional parameter which makes the operation
36271// fail if the object's ETag matches the given value. This is useful for
36272// getting updates only after the object has changed since the last
36273// request. Use googleapi.IsNotModified to check whether the response
36274// error from Do is the result of In-None-Match.
36275func (c *ProjectsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsListCall {
36276	c.ifNoneMatch_ = entityTag
36277	return c
36278}
36279
36280// Context sets the context to be used in this call's Do method. Any
36281// pending HTTP request will be aborted if the provided context is
36282// canceled.
36283func (c *ProjectsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsListCall {
36284	c.ctx_ = ctx
36285	return c
36286}
36287
36288// Header returns an http.Header that can be modified by the caller to
36289// add HTTP headers to the request.
36290func (c *ProjectsKnowledgeBasesDocumentsListCall) Header() http.Header {
36291	if c.header_ == nil {
36292		c.header_ = make(http.Header)
36293	}
36294	return c.header_
36295}
36296
36297func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
36298	reqHeaders := make(http.Header)
36299	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36300	for k, v := range c.header_ {
36301		reqHeaders[k] = v
36302	}
36303	reqHeaders.Set("User-Agent", c.s.userAgent())
36304	if c.ifNoneMatch_ != "" {
36305		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36306	}
36307	var body io.Reader = nil
36308	c.urlParams_.Set("alt", alt)
36309	c.urlParams_.Set("prettyPrint", "false")
36310	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
36311	urls += "?" + c.urlParams_.Encode()
36312	req, err := http.NewRequest("GET", urls, body)
36313	if err != nil {
36314		return nil, err
36315	}
36316	req.Header = reqHeaders
36317	googleapi.Expand(req.URL, map[string]string{
36318		"parent": c.parent,
36319	})
36320	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36321}
36322
36323// Do executes the "dialogflow.projects.knowledgeBases.documents.list" call.
36324// Exactly one of *GoogleCloudDialogflowV2beta1ListDocumentsResponse or
36325// error will be non-nil. Any non-2xx status code is an error. Response
36326// headers are in either
36327// *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Head
36328// er or (if a response was returned at all) in
36329// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36330// whether the returned error was because http.StatusNotModified was
36331// returned.
36332func (c *ProjectsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
36333	gensupport.SetOptions(c.urlParams_, opts...)
36334	res, err := c.doRequest("json")
36335	if res != nil && res.StatusCode == http.StatusNotModified {
36336		if res.Body != nil {
36337			res.Body.Close()
36338		}
36339		return nil, &googleapi.Error{
36340			Code:   res.StatusCode,
36341			Header: res.Header,
36342		}
36343	}
36344	if err != nil {
36345		return nil, err
36346	}
36347	defer googleapi.CloseBody(res)
36348	if err := googleapi.CheckResponse(res); err != nil {
36349		return nil, err
36350	}
36351	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
36352		ServerResponse: googleapi.ServerResponse{
36353			Header:         res.Header,
36354			HTTPStatusCode: res.StatusCode,
36355		},
36356	}
36357	target := &ret
36358	if err := gensupport.DecodeResponse(target, res); err != nil {
36359		return nil, err
36360	}
36361	return ret, nil
36362	// {
36363	//   "description": "Returns the list of all documents of the knowledge base. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
36364	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents",
36365	//   "httpMethod": "GET",
36366	//   "id": "dialogflow.projects.knowledgeBases.documents.list",
36367	//   "parameterOrder": [
36368	//     "parent"
36369	//   ],
36370	//   "parameters": {
36371	//     "filter": {
36372	//       "description": "The filter expression used to filter documents returned by the list method. The expression has the following syntax: [AND ] ... The following fields and operators are supported: * knowledge_types with has(:) operator * display_name with has(:) operator * state with equals(=) operator Examples: * \"knowledge_types:FAQ\" matches documents with FAQ knowledge type. * \"display_name:customer\" matches documents whose display name contains \"customer\". * \"state=ACTIVE\" matches documents with ACTIVE state. * \"knowledge_types:FAQ AND state=ACTIVE\" matches all active FAQ documents. For more information about filtering, see [API Filtering](https://aip.dev/160).",
36373	//       "location": "query",
36374	//       "type": "string"
36375	//     },
36376	//     "pageSize": {
36377	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
36378	//       "format": "int32",
36379	//       "location": "query",
36380	//       "type": "integer"
36381	//     },
36382	//     "pageToken": {
36383	//       "description": "The next_page_token value returned from a previous list request.",
36384	//       "location": "query",
36385	//       "type": "string"
36386	//     },
36387	//     "parent": {
36388	//       "description": "Required. The knowledge base to list all documents for. Format: `projects//locations//knowledgeBases/`.",
36389	//       "location": "path",
36390	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
36391	//       "required": true,
36392	//       "type": "string"
36393	//     }
36394	//   },
36395	//   "path": "v2beta1/{+parent}/documents",
36396	//   "response": {
36397	//     "$ref": "GoogleCloudDialogflowV2beta1ListDocumentsResponse"
36398	//   },
36399	//   "scopes": [
36400	//     "https://www.googleapis.com/auth/cloud-platform",
36401	//     "https://www.googleapis.com/auth/dialogflow"
36402	//   ]
36403	// }
36404
36405}
36406
36407// Pages invokes f for each page of results.
36408// A non-nil error returned from f will halt the iteration.
36409// The provided context supersedes any context provided to the Context method.
36410func (c *ProjectsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
36411	c.ctx_ = ctx
36412	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
36413	for {
36414		x, err := c.Do()
36415		if err != nil {
36416			return err
36417		}
36418		if err := f(x); err != nil {
36419			return err
36420		}
36421		if x.NextPageToken == "" {
36422			return nil
36423		}
36424		c.PageToken(x.NextPageToken)
36425	}
36426}
36427
36428// method id "dialogflow.projects.knowledgeBases.documents.patch":
36429
36430type ProjectsKnowledgeBasesDocumentsPatchCall struct {
36431	s                                    *Service
36432	name                                 string
36433	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
36434	urlParams_                           gensupport.URLParams
36435	ctx_                                 context.Context
36436	header_                              http.Header
36437}
36438
36439// Patch: Updates the specified document. Note: The
36440// `projects.agent.knowledgeBases.documents` resource is deprecated;
36441// only use `projects.knowledgeBases.documents`.
36442//
36443// - name: Optional. The document resource name. The name must be empty
36444//   when creating a document. Format:
36445//   `projects//locations//knowledgeBases//documents/`.
36446func (r *ProjectsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsPatchCall {
36447	c := &ProjectsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36448	c.name = name
36449	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
36450	return c
36451}
36452
36453// UpdateMask sets the optional parameter "updateMask": Not specified
36454// means `update all`. Currently, only `display_name` can be updated, an
36455// InvalidArgument will be returned for attempting to update other
36456// fields.
36457func (c *ProjectsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesDocumentsPatchCall {
36458	c.urlParams_.Set("updateMask", updateMask)
36459	return c
36460}
36461
36462// Fields allows partial responses to be retrieved. See
36463// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36464// for more information.
36465func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsPatchCall {
36466	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36467	return c
36468}
36469
36470// Context sets the context to be used in this call's Do method. Any
36471// pending HTTP request will be aborted if the provided context is
36472// canceled.
36473func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsPatchCall {
36474	c.ctx_ = ctx
36475	return c
36476}
36477
36478// Header returns an http.Header that can be modified by the caller to
36479// add HTTP headers to the request.
36480func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
36481	if c.header_ == nil {
36482		c.header_ = make(http.Header)
36483	}
36484	return c.header_
36485}
36486
36487func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
36488	reqHeaders := make(http.Header)
36489	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36490	for k, v := range c.header_ {
36491		reqHeaders[k] = v
36492	}
36493	reqHeaders.Set("User-Agent", c.s.userAgent())
36494	var body io.Reader = nil
36495	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
36496	if err != nil {
36497		return nil, err
36498	}
36499	reqHeaders.Set("Content-Type", "application/json")
36500	c.urlParams_.Set("alt", alt)
36501	c.urlParams_.Set("prettyPrint", "false")
36502	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
36503	urls += "?" + c.urlParams_.Encode()
36504	req, err := http.NewRequest("PATCH", urls, body)
36505	if err != nil {
36506		return nil, err
36507	}
36508	req.Header = reqHeaders
36509	googleapi.Expand(req.URL, map[string]string{
36510		"name": c.name,
36511	})
36512	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36513}
36514
36515// Do executes the "dialogflow.projects.knowledgeBases.documents.patch" call.
36516// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36517// Any non-2xx status code is an error. Response headers are in either
36518// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36519// was returned at all) in error.(*googleapi.Error).Header. Use
36520// googleapi.IsNotModified to check whether the returned error was
36521// because http.StatusNotModified was returned.
36522func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36523	gensupport.SetOptions(c.urlParams_, opts...)
36524	res, err := c.doRequest("json")
36525	if res != nil && res.StatusCode == http.StatusNotModified {
36526		if res.Body != nil {
36527			res.Body.Close()
36528		}
36529		return nil, &googleapi.Error{
36530			Code:   res.StatusCode,
36531			Header: res.Header,
36532		}
36533	}
36534	if err != nil {
36535		return nil, err
36536	}
36537	defer googleapi.CloseBody(res)
36538	if err := googleapi.CheckResponse(res); err != nil {
36539		return nil, err
36540	}
36541	ret := &GoogleLongrunningOperation{
36542		ServerResponse: googleapi.ServerResponse{
36543			Header:         res.Header,
36544			HTTPStatusCode: res.StatusCode,
36545		},
36546	}
36547	target := &ret
36548	if err := gensupport.DecodeResponse(target, res); err != nil {
36549		return nil, err
36550	}
36551	return ret, nil
36552	// {
36553	//   "description": "Updates the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
36554	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
36555	//   "httpMethod": "PATCH",
36556	//   "id": "dialogflow.projects.knowledgeBases.documents.patch",
36557	//   "parameterOrder": [
36558	//     "name"
36559	//   ],
36560	//   "parameters": {
36561	//     "name": {
36562	//       "description": "Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.",
36563	//       "location": "path",
36564	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
36565	//       "required": true,
36566	//       "type": "string"
36567	//     },
36568	//     "updateMask": {
36569	//       "description": "Optional. Not specified means `update all`. Currently, only `display_name` can be updated, an InvalidArgument will be returned for attempting to update other fields.",
36570	//       "format": "google-fieldmask",
36571	//       "location": "query",
36572	//       "type": "string"
36573	//     }
36574	//   },
36575	//   "path": "v2beta1/{+name}",
36576	//   "request": {
36577	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
36578	//   },
36579	//   "response": {
36580	//     "$ref": "GoogleLongrunningOperation"
36581	//   },
36582	//   "scopes": [
36583	//     "https://www.googleapis.com/auth/cloud-platform",
36584	//     "https://www.googleapis.com/auth/dialogflow"
36585	//   ]
36586	// }
36587
36588}
36589
36590// method id "dialogflow.projects.knowledgeBases.documents.reload":
36591
36592type ProjectsKnowledgeBasesDocumentsReloadCall struct {
36593	s                                                 *Service
36594	name                                              string
36595	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
36596	urlParams_                                        gensupport.URLParams
36597	ctx_                                              context.Context
36598	header_                                           http.Header
36599}
36600
36601// Reload: Reloads the specified document from its specified source,
36602// content_uri or content. The previously loaded content of the document
36603// will be deleted. Note: Even when the content of the document has not
36604// changed, there still may be side effects because of internal
36605// implementation changes. Note: If the document source is Google Cloud
36606// Storage URI, its metadata will be replaced with the custom metadata
36607// from Google Cloud Storage if the `import_gcs_custom_metadata` field
36608// is set to true in the request. Note: The
36609// `projects.agent.knowledgeBases.documents` resource is deprecated;
36610// only use `projects.knowledgeBases.documents`.
36611//
36612// - name: The name of the document to reload. Format:
36613//   `projects//locations//knowledgeBases//documents/`.
36614func (r *ProjectsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsKnowledgeBasesDocumentsReloadCall {
36615	c := &ProjectsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36616	c.name = name
36617	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
36618	return c
36619}
36620
36621// Fields allows partial responses to be retrieved. See
36622// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36623// for more information.
36624func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsReloadCall {
36625	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36626	return c
36627}
36628
36629// Context sets the context to be used in this call's Do method. Any
36630// pending HTTP request will be aborted if the provided context is
36631// canceled.
36632func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsReloadCall {
36633	c.ctx_ = ctx
36634	return c
36635}
36636
36637// Header returns an http.Header that can be modified by the caller to
36638// add HTTP headers to the request.
36639func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
36640	if c.header_ == nil {
36641		c.header_ = make(http.Header)
36642	}
36643	return c.header_
36644}
36645
36646func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
36647	reqHeaders := make(http.Header)
36648	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36649	for k, v := range c.header_ {
36650		reqHeaders[k] = v
36651	}
36652	reqHeaders.Set("User-Agent", c.s.userAgent())
36653	var body io.Reader = nil
36654	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
36655	if err != nil {
36656		return nil, err
36657	}
36658	reqHeaders.Set("Content-Type", "application/json")
36659	c.urlParams_.Set("alt", alt)
36660	c.urlParams_.Set("prettyPrint", "false")
36661	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
36662	urls += "?" + c.urlParams_.Encode()
36663	req, err := http.NewRequest("POST", urls, body)
36664	if err != nil {
36665		return nil, err
36666	}
36667	req.Header = reqHeaders
36668	googleapi.Expand(req.URL, map[string]string{
36669		"name": c.name,
36670	})
36671	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36672}
36673
36674// Do executes the "dialogflow.projects.knowledgeBases.documents.reload" call.
36675// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36676// Any non-2xx status code is an error. Response headers are in either
36677// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36678// was returned at all) in error.(*googleapi.Error).Header. Use
36679// googleapi.IsNotModified to check whether the returned error was
36680// because http.StatusNotModified was returned.
36681func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36682	gensupport.SetOptions(c.urlParams_, opts...)
36683	res, err := c.doRequest("json")
36684	if res != nil && res.StatusCode == http.StatusNotModified {
36685		if res.Body != nil {
36686			res.Body.Close()
36687		}
36688		return nil, &googleapi.Error{
36689			Code:   res.StatusCode,
36690			Header: res.Header,
36691		}
36692	}
36693	if err != nil {
36694		return nil, err
36695	}
36696	defer googleapi.CloseBody(res)
36697	if err := googleapi.CheckResponse(res); err != nil {
36698		return nil, err
36699	}
36700	ret := &GoogleLongrunningOperation{
36701		ServerResponse: googleapi.ServerResponse{
36702			Header:         res.Header,
36703			HTTPStatusCode: res.StatusCode,
36704		},
36705	}
36706	target := &ret
36707	if err := gensupport.DecodeResponse(target, res); err != nil {
36708		return nil, err
36709	}
36710	return ret, nil
36711	// {
36712	//   "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
36713	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
36714	//   "httpMethod": "POST",
36715	//   "id": "dialogflow.projects.knowledgeBases.documents.reload",
36716	//   "parameterOrder": [
36717	//     "name"
36718	//   ],
36719	//   "parameters": {
36720	//     "name": {
36721	//       "description": "Required. The name of the document to reload. Format: `projects//locations//knowledgeBases//documents/`",
36722	//       "location": "path",
36723	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
36724	//       "required": true,
36725	//       "type": "string"
36726	//     }
36727	//   },
36728	//   "path": "v2beta1/{+name}:reload",
36729	//   "request": {
36730	//     "$ref": "GoogleCloudDialogflowV2beta1ReloadDocumentRequest"
36731	//   },
36732	//   "response": {
36733	//     "$ref": "GoogleLongrunningOperation"
36734	//   },
36735	//   "scopes": [
36736	//     "https://www.googleapis.com/auth/cloud-platform",
36737	//     "https://www.googleapis.com/auth/dialogflow"
36738	//   ]
36739	// }
36740
36741}
36742
36743// method id "dialogflow.projects.locations.deleteAgent":
36744
36745type ProjectsLocationsDeleteAgentCall struct {
36746	s          *Service
36747	parent     string
36748	urlParams_ gensupport.URLParams
36749	ctx_       context.Context
36750	header_    http.Header
36751}
36752
36753// DeleteAgent: Deletes the specified agent.
36754//
36755// - parent: The project that the agent to delete is associated with.
36756//   Format: `projects/` or `projects//locations/`.
36757func (r *ProjectsLocationsService) DeleteAgent(parent string) *ProjectsLocationsDeleteAgentCall {
36758	c := &ProjectsLocationsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36759	c.parent = parent
36760	return c
36761}
36762
36763// Fields allows partial responses to be retrieved. See
36764// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36765// for more information.
36766func (c *ProjectsLocationsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeleteAgentCall {
36767	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36768	return c
36769}
36770
36771// Context sets the context to be used in this call's Do method. Any
36772// pending HTTP request will be aborted if the provided context is
36773// canceled.
36774func (c *ProjectsLocationsDeleteAgentCall) Context(ctx context.Context) *ProjectsLocationsDeleteAgentCall {
36775	c.ctx_ = ctx
36776	return c
36777}
36778
36779// Header returns an http.Header that can be modified by the caller to
36780// add HTTP headers to the request.
36781func (c *ProjectsLocationsDeleteAgentCall) Header() http.Header {
36782	if c.header_ == nil {
36783		c.header_ = make(http.Header)
36784	}
36785	return c.header_
36786}
36787
36788func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
36789	reqHeaders := make(http.Header)
36790	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36791	for k, v := range c.header_ {
36792		reqHeaders[k] = v
36793	}
36794	reqHeaders.Set("User-Agent", c.s.userAgent())
36795	var body io.Reader = nil
36796	c.urlParams_.Set("alt", alt)
36797	c.urlParams_.Set("prettyPrint", "false")
36798	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
36799	urls += "?" + c.urlParams_.Encode()
36800	req, err := http.NewRequest("DELETE", urls, body)
36801	if err != nil {
36802		return nil, err
36803	}
36804	req.Header = reqHeaders
36805	googleapi.Expand(req.URL, map[string]string{
36806		"parent": c.parent,
36807	})
36808	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36809}
36810
36811// Do executes the "dialogflow.projects.locations.deleteAgent" call.
36812// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
36813// non-2xx status code is an error. Response headers are in either
36814// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
36815// returned at all) in error.(*googleapi.Error).Header. Use
36816// googleapi.IsNotModified to check whether the returned error was
36817// because http.StatusNotModified was returned.
36818func (c *ProjectsLocationsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
36819	gensupport.SetOptions(c.urlParams_, opts...)
36820	res, err := c.doRequest("json")
36821	if res != nil && res.StatusCode == http.StatusNotModified {
36822		if res.Body != nil {
36823			res.Body.Close()
36824		}
36825		return nil, &googleapi.Error{
36826			Code:   res.StatusCode,
36827			Header: res.Header,
36828		}
36829	}
36830	if err != nil {
36831		return nil, err
36832	}
36833	defer googleapi.CloseBody(res)
36834	if err := googleapi.CheckResponse(res); err != nil {
36835		return nil, err
36836	}
36837	ret := &GoogleProtobufEmpty{
36838		ServerResponse: googleapi.ServerResponse{
36839			Header:         res.Header,
36840			HTTPStatusCode: res.StatusCode,
36841		},
36842	}
36843	target := &ret
36844	if err := gensupport.DecodeResponse(target, res); err != nil {
36845		return nil, err
36846	}
36847	return ret, nil
36848	// {
36849	//   "description": "Deletes the specified agent.",
36850	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent",
36851	//   "httpMethod": "DELETE",
36852	//   "id": "dialogflow.projects.locations.deleteAgent",
36853	//   "parameterOrder": [
36854	//     "parent"
36855	//   ],
36856	//   "parameters": {
36857	//     "parent": {
36858	//       "description": "Required. The project that the agent to delete is associated with. Format: `projects/` or `projects//locations/`.",
36859	//       "location": "path",
36860	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
36861	//       "required": true,
36862	//       "type": "string"
36863	//     }
36864	//   },
36865	//   "path": "v2beta1/{+parent}/agent",
36866	//   "response": {
36867	//     "$ref": "GoogleProtobufEmpty"
36868	//   },
36869	//   "scopes": [
36870	//     "https://www.googleapis.com/auth/cloud-platform",
36871	//     "https://www.googleapis.com/auth/dialogflow"
36872	//   ]
36873	// }
36874
36875}
36876
36877// method id "dialogflow.projects.locations.getAgent":
36878
36879type ProjectsLocationsGetAgentCall struct {
36880	s            *Service
36881	parent       string
36882	urlParams_   gensupport.URLParams
36883	ifNoneMatch_ string
36884	ctx_         context.Context
36885	header_      http.Header
36886}
36887
36888// GetAgent: Retrieves the specified agent.
36889//
36890// - parent: The project that the agent to fetch is associated with.
36891//   Format: `projects/` or `projects//locations/`.
36892func (r *ProjectsLocationsService) GetAgent(parent string) *ProjectsLocationsGetAgentCall {
36893	c := &ProjectsLocationsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36894	c.parent = parent
36895	return c
36896}
36897
36898// Fields allows partial responses to be retrieved. See
36899// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36900// for more information.
36901func (c *ProjectsLocationsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAgentCall {
36902	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36903	return c
36904}
36905
36906// IfNoneMatch sets the optional parameter which makes the operation
36907// fail if the object's ETag matches the given value. This is useful for
36908// getting updates only after the object has changed since the last
36909// request. Use googleapi.IsNotModified to check whether the response
36910// error from Do is the result of In-None-Match.
36911func (c *ProjectsLocationsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAgentCall {
36912	c.ifNoneMatch_ = entityTag
36913	return c
36914}
36915
36916// Context sets the context to be used in this call's Do method. Any
36917// pending HTTP request will be aborted if the provided context is
36918// canceled.
36919func (c *ProjectsLocationsGetAgentCall) Context(ctx context.Context) *ProjectsLocationsGetAgentCall {
36920	c.ctx_ = ctx
36921	return c
36922}
36923
36924// Header returns an http.Header that can be modified by the caller to
36925// add HTTP headers to the request.
36926func (c *ProjectsLocationsGetAgentCall) Header() http.Header {
36927	if c.header_ == nil {
36928		c.header_ = make(http.Header)
36929	}
36930	return c.header_
36931}
36932
36933func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, error) {
36934	reqHeaders := make(http.Header)
36935	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36936	for k, v := range c.header_ {
36937		reqHeaders[k] = v
36938	}
36939	reqHeaders.Set("User-Agent", c.s.userAgent())
36940	if c.ifNoneMatch_ != "" {
36941		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36942	}
36943	var body io.Reader = nil
36944	c.urlParams_.Set("alt", alt)
36945	c.urlParams_.Set("prettyPrint", "false")
36946	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
36947	urls += "?" + c.urlParams_.Encode()
36948	req, err := http.NewRequest("GET", urls, body)
36949	if err != nil {
36950		return nil, err
36951	}
36952	req.Header = reqHeaders
36953	googleapi.Expand(req.URL, map[string]string{
36954		"parent": c.parent,
36955	})
36956	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36957}
36958
36959// Do executes the "dialogflow.projects.locations.getAgent" call.
36960// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
36961// non-nil. Any non-2xx status code is an error. Response headers are in
36962// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
36963// (if a response was returned at all) in
36964// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36965// whether the returned error was because http.StatusNotModified was
36966// returned.
36967func (c *ProjectsLocationsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
36968	gensupport.SetOptions(c.urlParams_, opts...)
36969	res, err := c.doRequest("json")
36970	if res != nil && res.StatusCode == http.StatusNotModified {
36971		if res.Body != nil {
36972			res.Body.Close()
36973		}
36974		return nil, &googleapi.Error{
36975			Code:   res.StatusCode,
36976			Header: res.Header,
36977		}
36978	}
36979	if err != nil {
36980		return nil, err
36981	}
36982	defer googleapi.CloseBody(res)
36983	if err := googleapi.CheckResponse(res); err != nil {
36984		return nil, err
36985	}
36986	ret := &GoogleCloudDialogflowV2beta1Agent{
36987		ServerResponse: googleapi.ServerResponse{
36988			Header:         res.Header,
36989			HTTPStatusCode: res.StatusCode,
36990		},
36991	}
36992	target := &ret
36993	if err := gensupport.DecodeResponse(target, res); err != nil {
36994		return nil, err
36995	}
36996	return ret, nil
36997	// {
36998	//   "description": "Retrieves the specified agent.",
36999	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent",
37000	//   "httpMethod": "GET",
37001	//   "id": "dialogflow.projects.locations.getAgent",
37002	//   "parameterOrder": [
37003	//     "parent"
37004	//   ],
37005	//   "parameters": {
37006	//     "parent": {
37007	//       "description": "Required. The project that the agent to fetch is associated with. Format: `projects/` or `projects//locations/`.",
37008	//       "location": "path",
37009	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37010	//       "required": true,
37011	//       "type": "string"
37012	//     }
37013	//   },
37014	//   "path": "v2beta1/{+parent}/agent",
37015	//   "response": {
37016	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
37017	//   },
37018	//   "scopes": [
37019	//     "https://www.googleapis.com/auth/cloud-platform",
37020	//     "https://www.googleapis.com/auth/dialogflow"
37021	//   ]
37022	// }
37023
37024}
37025
37026// method id "dialogflow.projects.locations.setAgent":
37027
37028type ProjectsLocationsSetAgentCall struct {
37029	s                                 *Service
37030	parent                            string
37031	googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
37032	urlParams_                        gensupport.URLParams
37033	ctx_                              context.Context
37034	header_                           http.Header
37035}
37036
37037// SetAgent: Creates/updates the specified agent. Note: You should
37038// always train an agent prior to sending it queries. See the training
37039// documentation (https://cloud.google.com/dialogflow/es/docs/training).
37040//
37041// - parent: The project of this agent. Format: `projects/` or
37042//   `projects//locations/`.
37043func (r *ProjectsLocationsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsLocationsSetAgentCall {
37044	c := &ProjectsLocationsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37045	c.parent = parent
37046	c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
37047	return c
37048}
37049
37050// UpdateMask sets the optional parameter "updateMask": The mask to
37051// control which fields get updated.
37052func (c *ProjectsLocationsSetAgentCall) UpdateMask(updateMask string) *ProjectsLocationsSetAgentCall {
37053	c.urlParams_.Set("updateMask", updateMask)
37054	return c
37055}
37056
37057// Fields allows partial responses to be retrieved. See
37058// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37059// for more information.
37060func (c *ProjectsLocationsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsSetAgentCall {
37061	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37062	return c
37063}
37064
37065// Context sets the context to be used in this call's Do method. Any
37066// pending HTTP request will be aborted if the provided context is
37067// canceled.
37068func (c *ProjectsLocationsSetAgentCall) Context(ctx context.Context) *ProjectsLocationsSetAgentCall {
37069	c.ctx_ = ctx
37070	return c
37071}
37072
37073// Header returns an http.Header that can be modified by the caller to
37074// add HTTP headers to the request.
37075func (c *ProjectsLocationsSetAgentCall) Header() http.Header {
37076	if c.header_ == nil {
37077		c.header_ = make(http.Header)
37078	}
37079	return c.header_
37080}
37081
37082func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, error) {
37083	reqHeaders := make(http.Header)
37084	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37085	for k, v := range c.header_ {
37086		reqHeaders[k] = v
37087	}
37088	reqHeaders.Set("User-Agent", c.s.userAgent())
37089	var body io.Reader = nil
37090	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
37091	if err != nil {
37092		return nil, err
37093	}
37094	reqHeaders.Set("Content-Type", "application/json")
37095	c.urlParams_.Set("alt", alt)
37096	c.urlParams_.Set("prettyPrint", "false")
37097	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
37098	urls += "?" + c.urlParams_.Encode()
37099	req, err := http.NewRequest("POST", urls, body)
37100	if err != nil {
37101		return nil, err
37102	}
37103	req.Header = reqHeaders
37104	googleapi.Expand(req.URL, map[string]string{
37105		"parent": c.parent,
37106	})
37107	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37108}
37109
37110// Do executes the "dialogflow.projects.locations.setAgent" call.
37111// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
37112// non-nil. Any non-2xx status code is an error. Response headers are in
37113// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
37114// (if a response was returned at all) in
37115// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37116// whether the returned error was because http.StatusNotModified was
37117// returned.
37118func (c *ProjectsLocationsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
37119	gensupport.SetOptions(c.urlParams_, opts...)
37120	res, err := c.doRequest("json")
37121	if res != nil && res.StatusCode == http.StatusNotModified {
37122		if res.Body != nil {
37123			res.Body.Close()
37124		}
37125		return nil, &googleapi.Error{
37126			Code:   res.StatusCode,
37127			Header: res.Header,
37128		}
37129	}
37130	if err != nil {
37131		return nil, err
37132	}
37133	defer googleapi.CloseBody(res)
37134	if err := googleapi.CheckResponse(res); err != nil {
37135		return nil, err
37136	}
37137	ret := &GoogleCloudDialogflowV2beta1Agent{
37138		ServerResponse: googleapi.ServerResponse{
37139			Header:         res.Header,
37140			HTTPStatusCode: res.StatusCode,
37141		},
37142	}
37143	target := &ret
37144	if err := gensupport.DecodeResponse(target, res); err != nil {
37145		return nil, err
37146	}
37147	return ret, nil
37148	// {
37149	//   "description": "Creates/updates the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
37150	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent",
37151	//   "httpMethod": "POST",
37152	//   "id": "dialogflow.projects.locations.setAgent",
37153	//   "parameterOrder": [
37154	//     "parent"
37155	//   ],
37156	//   "parameters": {
37157	//     "parent": {
37158	//       "description": "Required. The project of this agent. Format: `projects/` or `projects//locations/`",
37159	//       "location": "path",
37160	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37161	//       "required": true,
37162	//       "type": "string"
37163	//     },
37164	//     "updateMask": {
37165	//       "description": "Optional. The mask to control which fields get updated.",
37166	//       "format": "google-fieldmask",
37167	//       "location": "query",
37168	//       "type": "string"
37169	//     }
37170	//   },
37171	//   "path": "v2beta1/{+parent}/agent",
37172	//   "request": {
37173	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
37174	//   },
37175	//   "response": {
37176	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
37177	//   },
37178	//   "scopes": [
37179	//     "https://www.googleapis.com/auth/cloud-platform",
37180	//     "https://www.googleapis.com/auth/dialogflow"
37181	//   ]
37182	// }
37183
37184}
37185
37186// method id "dialogflow.projects.locations.agent.export":
37187
37188type ProjectsLocationsAgentExportCall struct {
37189	s                                              *Service
37190	parent                                         string
37191	googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
37192	urlParams_                                     gensupport.URLParams
37193	ctx_                                           context.Context
37194	header_                                        http.Header
37195}
37196
37197// Export: Exports the specified agent to a ZIP file.
37198//
37199// - parent: The project that the agent to export is associated with.
37200//   Format: `projects/` or `projects//locations/`.
37201func (r *ProjectsLocationsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsLocationsAgentExportCall {
37202	c := &ProjectsLocationsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37203	c.parent = parent
37204	c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
37205	return c
37206}
37207
37208// Fields allows partial responses to be retrieved. See
37209// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37210// for more information.
37211func (c *ProjectsLocationsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentExportCall {
37212	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37213	return c
37214}
37215
37216// Context sets the context to be used in this call's Do method. Any
37217// pending HTTP request will be aborted if the provided context is
37218// canceled.
37219func (c *ProjectsLocationsAgentExportCall) Context(ctx context.Context) *ProjectsLocationsAgentExportCall {
37220	c.ctx_ = ctx
37221	return c
37222}
37223
37224// Header returns an http.Header that can be modified by the caller to
37225// add HTTP headers to the request.
37226func (c *ProjectsLocationsAgentExportCall) Header() http.Header {
37227	if c.header_ == nil {
37228		c.header_ = make(http.Header)
37229	}
37230	return c.header_
37231}
37232
37233func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response, error) {
37234	reqHeaders := make(http.Header)
37235	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37236	for k, v := range c.header_ {
37237		reqHeaders[k] = v
37238	}
37239	reqHeaders.Set("User-Agent", c.s.userAgent())
37240	var body io.Reader = nil
37241	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
37242	if err != nil {
37243		return nil, err
37244	}
37245	reqHeaders.Set("Content-Type", "application/json")
37246	c.urlParams_.Set("alt", alt)
37247	c.urlParams_.Set("prettyPrint", "false")
37248	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
37249	urls += "?" + c.urlParams_.Encode()
37250	req, err := http.NewRequest("POST", urls, body)
37251	if err != nil {
37252		return nil, err
37253	}
37254	req.Header = reqHeaders
37255	googleapi.Expand(req.URL, map[string]string{
37256		"parent": c.parent,
37257	})
37258	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37259}
37260
37261// Do executes the "dialogflow.projects.locations.agent.export" call.
37262// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37263// Any non-2xx status code is an error. Response headers are in either
37264// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37265// was returned at all) in error.(*googleapi.Error).Header. Use
37266// googleapi.IsNotModified to check whether the returned error was
37267// because http.StatusNotModified was returned.
37268func (c *ProjectsLocationsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37269	gensupport.SetOptions(c.urlParams_, opts...)
37270	res, err := c.doRequest("json")
37271	if res != nil && res.StatusCode == http.StatusNotModified {
37272		if res.Body != nil {
37273			res.Body.Close()
37274		}
37275		return nil, &googleapi.Error{
37276			Code:   res.StatusCode,
37277			Header: res.Header,
37278		}
37279	}
37280	if err != nil {
37281		return nil, err
37282	}
37283	defer googleapi.CloseBody(res)
37284	if err := googleapi.CheckResponse(res); err != nil {
37285		return nil, err
37286	}
37287	ret := &GoogleLongrunningOperation{
37288		ServerResponse: googleapi.ServerResponse{
37289			Header:         res.Header,
37290			HTTPStatusCode: res.StatusCode,
37291		},
37292	}
37293	target := &ret
37294	if err := gensupport.DecodeResponse(target, res); err != nil {
37295		return nil, err
37296	}
37297	return ret, nil
37298	// {
37299	//   "description": "Exports the specified agent to a ZIP file.",
37300	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:export",
37301	//   "httpMethod": "POST",
37302	//   "id": "dialogflow.projects.locations.agent.export",
37303	//   "parameterOrder": [
37304	//     "parent"
37305	//   ],
37306	//   "parameters": {
37307	//     "parent": {
37308	//       "description": "Required. The project that the agent to export is associated with. Format: `projects/` or `projects//locations/`.",
37309	//       "location": "path",
37310	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37311	//       "required": true,
37312	//       "type": "string"
37313	//     }
37314	//   },
37315	//   "path": "v2beta1/{+parent}/agent:export",
37316	//   "request": {
37317	//     "$ref": "GoogleCloudDialogflowV2beta1ExportAgentRequest"
37318	//   },
37319	//   "response": {
37320	//     "$ref": "GoogleLongrunningOperation"
37321	//   },
37322	//   "scopes": [
37323	//     "https://www.googleapis.com/auth/cloud-platform",
37324	//     "https://www.googleapis.com/auth/dialogflow"
37325	//   ]
37326	// }
37327
37328}
37329
37330// method id "dialogflow.projects.locations.agent.getFulfillment":
37331
37332type ProjectsLocationsAgentGetFulfillmentCall struct {
37333	s            *Service
37334	name         string
37335	urlParams_   gensupport.URLParams
37336	ifNoneMatch_ string
37337	ctx_         context.Context
37338	header_      http.Header
37339}
37340
37341// GetFulfillment: Retrieves the fulfillment.
37342//
37343// - name: The name of the fulfillment. Supported formats: -
37344//   `projects//agent/fulfillment` -
37345//   `projects//locations//agent/fulfillment`.
37346func (r *ProjectsLocationsAgentService) GetFulfillment(name string) *ProjectsLocationsAgentGetFulfillmentCall {
37347	c := &ProjectsLocationsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37348	c.name = name
37349	return c
37350}
37351
37352// Fields allows partial responses to be retrieved. See
37353// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37354// for more information.
37355func (c *ProjectsLocationsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetFulfillmentCall {
37356	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37357	return c
37358}
37359
37360// IfNoneMatch sets the optional parameter which makes the operation
37361// fail if the object's ETag matches the given value. This is useful for
37362// getting updates only after the object has changed since the last
37363// request. Use googleapi.IsNotModified to check whether the response
37364// error from Do is the result of In-None-Match.
37365func (c *ProjectsLocationsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetFulfillmentCall {
37366	c.ifNoneMatch_ = entityTag
37367	return c
37368}
37369
37370// Context sets the context to be used in this call's Do method. Any
37371// pending HTTP request will be aborted if the provided context is
37372// canceled.
37373func (c *ProjectsLocationsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentGetFulfillmentCall {
37374	c.ctx_ = ctx
37375	return c
37376}
37377
37378// Header returns an http.Header that can be modified by the caller to
37379// add HTTP headers to the request.
37380func (c *ProjectsLocationsAgentGetFulfillmentCall) Header() http.Header {
37381	if c.header_ == nil {
37382		c.header_ = make(http.Header)
37383	}
37384	return c.header_
37385}
37386
37387func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
37388	reqHeaders := make(http.Header)
37389	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37390	for k, v := range c.header_ {
37391		reqHeaders[k] = v
37392	}
37393	reqHeaders.Set("User-Agent", c.s.userAgent())
37394	if c.ifNoneMatch_ != "" {
37395		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37396	}
37397	var body io.Reader = nil
37398	c.urlParams_.Set("alt", alt)
37399	c.urlParams_.Set("prettyPrint", "false")
37400	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
37401	urls += "?" + c.urlParams_.Encode()
37402	req, err := http.NewRequest("GET", urls, body)
37403	if err != nil {
37404		return nil, err
37405	}
37406	req.Header = reqHeaders
37407	googleapi.Expand(req.URL, map[string]string{
37408		"name": c.name,
37409	})
37410	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37411}
37412
37413// Do executes the "dialogflow.projects.locations.agent.getFulfillment" call.
37414// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
37415// be non-nil. Any non-2xx status code is an error. Response headers are
37416// in either
37417// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
37418// a response was returned at all) in error.(*googleapi.Error).Header.
37419// Use googleapi.IsNotModified to check whether the returned error was
37420// because http.StatusNotModified was returned.
37421func (c *ProjectsLocationsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
37422	gensupport.SetOptions(c.urlParams_, opts...)
37423	res, err := c.doRequest("json")
37424	if res != nil && res.StatusCode == http.StatusNotModified {
37425		if res.Body != nil {
37426			res.Body.Close()
37427		}
37428		return nil, &googleapi.Error{
37429			Code:   res.StatusCode,
37430			Header: res.Header,
37431		}
37432	}
37433	if err != nil {
37434		return nil, err
37435	}
37436	defer googleapi.CloseBody(res)
37437	if err := googleapi.CheckResponse(res); err != nil {
37438		return nil, err
37439	}
37440	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
37441		ServerResponse: googleapi.ServerResponse{
37442			Header:         res.Header,
37443			HTTPStatusCode: res.StatusCode,
37444		},
37445	}
37446	target := &ret
37447	if err := gensupport.DecodeResponse(target, res); err != nil {
37448		return nil, err
37449	}
37450	return ret, nil
37451	// {
37452	//   "description": "Retrieves the fulfillment.",
37453	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/fulfillment",
37454	//   "httpMethod": "GET",
37455	//   "id": "dialogflow.projects.locations.agent.getFulfillment",
37456	//   "parameterOrder": [
37457	//     "name"
37458	//   ],
37459	//   "parameters": {
37460	//     "name": {
37461	//       "description": "Required. The name of the fulfillment. Supported formats: - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`",
37462	//       "location": "path",
37463	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/fulfillment$",
37464	//       "required": true,
37465	//       "type": "string"
37466	//     }
37467	//   },
37468	//   "path": "v2beta1/{+name}",
37469	//   "response": {
37470	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
37471	//   },
37472	//   "scopes": [
37473	//     "https://www.googleapis.com/auth/cloud-platform",
37474	//     "https://www.googleapis.com/auth/dialogflow"
37475	//   ]
37476	// }
37477
37478}
37479
37480// method id "dialogflow.projects.locations.agent.getValidationResult":
37481
37482type ProjectsLocationsAgentGetValidationResultCall struct {
37483	s            *Service
37484	parent       string
37485	urlParams_   gensupport.URLParams
37486	ifNoneMatch_ string
37487	ctx_         context.Context
37488	header_      http.Header
37489}
37490
37491// GetValidationResult: Gets agent validation result. Agent validation
37492// is performed during training time and is updated automatically when
37493// training is completed.
37494//
37495// - parent: The project that the agent is associated with. Format:
37496//   `projects/` or `projects//locations/`.
37497func (r *ProjectsLocationsAgentService) GetValidationResult(parent string) *ProjectsLocationsAgentGetValidationResultCall {
37498	c := &ProjectsLocationsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37499	c.parent = parent
37500	return c
37501}
37502
37503// LanguageCode sets the optional parameter "languageCode": The language
37504// for which you want a validation result. If not specified, the agent's
37505// default language is used. Many languages
37506// (https://cloud.google.com/dialogflow/docs/reference/language) are
37507// supported. Note: languages must be enabled in the agent before they
37508// can be used.
37509func (c *ProjectsLocationsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentGetValidationResultCall {
37510	c.urlParams_.Set("languageCode", languageCode)
37511	return c
37512}
37513
37514// Fields allows partial responses to be retrieved. See
37515// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37516// for more information.
37517func (c *ProjectsLocationsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetValidationResultCall {
37518	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37519	return c
37520}
37521
37522// IfNoneMatch sets the optional parameter which makes the operation
37523// fail if the object's ETag matches the given value. This is useful for
37524// getting updates only after the object has changed since the last
37525// request. Use googleapi.IsNotModified to check whether the response
37526// error from Do is the result of In-None-Match.
37527func (c *ProjectsLocationsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetValidationResultCall {
37528	c.ifNoneMatch_ = entityTag
37529	return c
37530}
37531
37532// Context sets the context to be used in this call's Do method. Any
37533// pending HTTP request will be aborted if the provided context is
37534// canceled.
37535func (c *ProjectsLocationsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentGetValidationResultCall {
37536	c.ctx_ = ctx
37537	return c
37538}
37539
37540// Header returns an http.Header that can be modified by the caller to
37541// add HTTP headers to the request.
37542func (c *ProjectsLocationsAgentGetValidationResultCall) Header() http.Header {
37543	if c.header_ == nil {
37544		c.header_ = make(http.Header)
37545	}
37546	return c.header_
37547}
37548
37549func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
37550	reqHeaders := make(http.Header)
37551	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37552	for k, v := range c.header_ {
37553		reqHeaders[k] = v
37554	}
37555	reqHeaders.Set("User-Agent", c.s.userAgent())
37556	if c.ifNoneMatch_ != "" {
37557		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37558	}
37559	var body io.Reader = nil
37560	c.urlParams_.Set("alt", alt)
37561	c.urlParams_.Set("prettyPrint", "false")
37562	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
37563	urls += "?" + c.urlParams_.Encode()
37564	req, err := http.NewRequest("GET", urls, body)
37565	if err != nil {
37566		return nil, err
37567	}
37568	req.Header = reqHeaders
37569	googleapi.Expand(req.URL, map[string]string{
37570		"parent": c.parent,
37571	})
37572	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37573}
37574
37575// Do executes the "dialogflow.projects.locations.agent.getValidationResult" call.
37576// Exactly one of *GoogleCloudDialogflowV2beta1ValidationResult or error
37577// will be non-nil. Any non-2xx status code is an error. Response
37578// headers are in either
37579// *GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header
37580// or (if a response was returned at all) in
37581// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37582// whether the returned error was because http.StatusNotModified was
37583// returned.
37584func (c *ProjectsLocationsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
37585	gensupport.SetOptions(c.urlParams_, opts...)
37586	res, err := c.doRequest("json")
37587	if res != nil && res.StatusCode == http.StatusNotModified {
37588		if res.Body != nil {
37589			res.Body.Close()
37590		}
37591		return nil, &googleapi.Error{
37592			Code:   res.StatusCode,
37593			Header: res.Header,
37594		}
37595	}
37596	if err != nil {
37597		return nil, err
37598	}
37599	defer googleapi.CloseBody(res)
37600	if err := googleapi.CheckResponse(res); err != nil {
37601		return nil, err
37602	}
37603	ret := &GoogleCloudDialogflowV2beta1ValidationResult{
37604		ServerResponse: googleapi.ServerResponse{
37605			Header:         res.Header,
37606			HTTPStatusCode: res.StatusCode,
37607		},
37608	}
37609	target := &ret
37610	if err := gensupport.DecodeResponse(target, res); err != nil {
37611		return nil, err
37612	}
37613	return ret, nil
37614	// {
37615	//   "description": "Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.",
37616	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/validationResult",
37617	//   "httpMethod": "GET",
37618	//   "id": "dialogflow.projects.locations.agent.getValidationResult",
37619	//   "parameterOrder": [
37620	//     "parent"
37621	//   ],
37622	//   "parameters": {
37623	//     "languageCode": {
37624	//       "description": "Optional. The language for which you want a validation result. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
37625	//       "location": "query",
37626	//       "type": "string"
37627	//     },
37628	//     "parent": {
37629	//       "description": "Required. The project that the agent is associated with. Format: `projects/` or `projects//locations/`.",
37630	//       "location": "path",
37631	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37632	//       "required": true,
37633	//       "type": "string"
37634	//     }
37635	//   },
37636	//   "path": "v2beta1/{+parent}/agent/validationResult",
37637	//   "response": {
37638	//     "$ref": "GoogleCloudDialogflowV2beta1ValidationResult"
37639	//   },
37640	//   "scopes": [
37641	//     "https://www.googleapis.com/auth/cloud-platform",
37642	//     "https://www.googleapis.com/auth/dialogflow"
37643	//   ]
37644	// }
37645
37646}
37647
37648// method id "dialogflow.projects.locations.agent.import":
37649
37650type ProjectsLocationsAgentImportCall struct {
37651	s                                              *Service
37652	parent                                         string
37653	googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
37654	urlParams_                                     gensupport.URLParams
37655	ctx_                                           context.Context
37656	header_                                        http.Header
37657}
37658
37659// Import: Imports the specified agent from a ZIP file. Uploads new
37660// intents and entity types without deleting the existing ones. Intents
37661// and entity types with the same name are replaced with the new
37662// versions from ImportAgentRequest. After the import, the imported
37663// draft agent will be trained automatically (unless disabled in agent
37664// settings). However, once the import is done, training may not be
37665// completed yet. Please call TrainAgent and wait for the operation it
37666// returns in order to train explicitly. Note: You should always train
37667// an agent prior to sending it queries. See the training documentation
37668// (https://cloud.google.com/dialogflow/es/docs/training).
37669//
37670// - parent: The project that the agent to import is associated with.
37671//   Format: `projects/` or `projects//locations/`.
37672func (r *ProjectsLocationsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsLocationsAgentImportCall {
37673	c := &ProjectsLocationsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37674	c.parent = parent
37675	c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
37676	return c
37677}
37678
37679// Fields allows partial responses to be retrieved. See
37680// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37681// for more information.
37682func (c *ProjectsLocationsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentImportCall {
37683	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37684	return c
37685}
37686
37687// Context sets the context to be used in this call's Do method. Any
37688// pending HTTP request will be aborted if the provided context is
37689// canceled.
37690func (c *ProjectsLocationsAgentImportCall) Context(ctx context.Context) *ProjectsLocationsAgentImportCall {
37691	c.ctx_ = ctx
37692	return c
37693}
37694
37695// Header returns an http.Header that can be modified by the caller to
37696// add HTTP headers to the request.
37697func (c *ProjectsLocationsAgentImportCall) Header() http.Header {
37698	if c.header_ == nil {
37699		c.header_ = make(http.Header)
37700	}
37701	return c.header_
37702}
37703
37704func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response, error) {
37705	reqHeaders := make(http.Header)
37706	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37707	for k, v := range c.header_ {
37708		reqHeaders[k] = v
37709	}
37710	reqHeaders.Set("User-Agent", c.s.userAgent())
37711	var body io.Reader = nil
37712	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
37713	if err != nil {
37714		return nil, err
37715	}
37716	reqHeaders.Set("Content-Type", "application/json")
37717	c.urlParams_.Set("alt", alt)
37718	c.urlParams_.Set("prettyPrint", "false")
37719	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
37720	urls += "?" + c.urlParams_.Encode()
37721	req, err := http.NewRequest("POST", urls, body)
37722	if err != nil {
37723		return nil, err
37724	}
37725	req.Header = reqHeaders
37726	googleapi.Expand(req.URL, map[string]string{
37727		"parent": c.parent,
37728	})
37729	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37730}
37731
37732// Do executes the "dialogflow.projects.locations.agent.import" call.
37733// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37734// Any non-2xx status code is an error. Response headers are in either
37735// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37736// was returned at all) in error.(*googleapi.Error).Header. Use
37737// googleapi.IsNotModified to check whether the returned error was
37738// because http.StatusNotModified was returned.
37739func (c *ProjectsLocationsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37740	gensupport.SetOptions(c.urlParams_, opts...)
37741	res, err := c.doRequest("json")
37742	if res != nil && res.StatusCode == http.StatusNotModified {
37743		if res.Body != nil {
37744			res.Body.Close()
37745		}
37746		return nil, &googleapi.Error{
37747			Code:   res.StatusCode,
37748			Header: res.Header,
37749		}
37750	}
37751	if err != nil {
37752		return nil, err
37753	}
37754	defer googleapi.CloseBody(res)
37755	if err := googleapi.CheckResponse(res); err != nil {
37756		return nil, err
37757	}
37758	ret := &GoogleLongrunningOperation{
37759		ServerResponse: googleapi.ServerResponse{
37760			Header:         res.Header,
37761			HTTPStatusCode: res.StatusCode,
37762		},
37763	}
37764	target := &ret
37765	if err := gensupport.DecodeResponse(target, res); err != nil {
37766		return nil, err
37767	}
37768	return ret, nil
37769	// {
37770	//   "description": "Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
37771	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:import",
37772	//   "httpMethod": "POST",
37773	//   "id": "dialogflow.projects.locations.agent.import",
37774	//   "parameterOrder": [
37775	//     "parent"
37776	//   ],
37777	//   "parameters": {
37778	//     "parent": {
37779	//       "description": "Required. The project that the agent to import is associated with. Format: `projects/` or `projects//locations/`.",
37780	//       "location": "path",
37781	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37782	//       "required": true,
37783	//       "type": "string"
37784	//     }
37785	//   },
37786	//   "path": "v2beta1/{+parent}/agent:import",
37787	//   "request": {
37788	//     "$ref": "GoogleCloudDialogflowV2beta1ImportAgentRequest"
37789	//   },
37790	//   "response": {
37791	//     "$ref": "GoogleLongrunningOperation"
37792	//   },
37793	//   "scopes": [
37794	//     "https://www.googleapis.com/auth/cloud-platform",
37795	//     "https://www.googleapis.com/auth/dialogflow"
37796	//   ]
37797	// }
37798
37799}
37800
37801// method id "dialogflow.projects.locations.agent.restore":
37802
37803type ProjectsLocationsAgentRestoreCall struct {
37804	s                                               *Service
37805	parent                                          string
37806	googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
37807	urlParams_                                      gensupport.URLParams
37808	ctx_                                            context.Context
37809	header_                                         http.Header
37810}
37811
37812// Restore: Restores the specified agent from a ZIP file. Replaces the
37813// current agent version with a new one. All the intents and entity
37814// types in the older version are deleted. After the restore, the
37815// restored draft agent will be trained automatically (unless disabled
37816// in agent settings). However, once the restore is done, training may
37817// not be completed yet. Please call TrainAgent and wait for the
37818// operation it returns in order to train explicitly. Note: You should
37819// always train an agent prior to sending it queries. See the training
37820// documentation (https://cloud.google.com/dialogflow/es/docs/training).
37821//
37822// - parent: The project that the agent to restore is associated with.
37823//   Format: `projects/` or `projects//locations/`.
37824func (r *ProjectsLocationsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsLocationsAgentRestoreCall {
37825	c := &ProjectsLocationsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37826	c.parent = parent
37827	c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
37828	return c
37829}
37830
37831// Fields allows partial responses to be retrieved. See
37832// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37833// for more information.
37834func (c *ProjectsLocationsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentRestoreCall {
37835	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37836	return c
37837}
37838
37839// Context sets the context to be used in this call's Do method. Any
37840// pending HTTP request will be aborted if the provided context is
37841// canceled.
37842func (c *ProjectsLocationsAgentRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentRestoreCall {
37843	c.ctx_ = ctx
37844	return c
37845}
37846
37847// Header returns an http.Header that can be modified by the caller to
37848// add HTTP headers to the request.
37849func (c *ProjectsLocationsAgentRestoreCall) Header() http.Header {
37850	if c.header_ == nil {
37851		c.header_ = make(http.Header)
37852	}
37853	return c.header_
37854}
37855
37856func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
37857	reqHeaders := make(http.Header)
37858	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37859	for k, v := range c.header_ {
37860		reqHeaders[k] = v
37861	}
37862	reqHeaders.Set("User-Agent", c.s.userAgent())
37863	var body io.Reader = nil
37864	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
37865	if err != nil {
37866		return nil, err
37867	}
37868	reqHeaders.Set("Content-Type", "application/json")
37869	c.urlParams_.Set("alt", alt)
37870	c.urlParams_.Set("prettyPrint", "false")
37871	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
37872	urls += "?" + c.urlParams_.Encode()
37873	req, err := http.NewRequest("POST", urls, body)
37874	if err != nil {
37875		return nil, err
37876	}
37877	req.Header = reqHeaders
37878	googleapi.Expand(req.URL, map[string]string{
37879		"parent": c.parent,
37880	})
37881	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37882}
37883
37884// Do executes the "dialogflow.projects.locations.agent.restore" call.
37885// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37886// Any non-2xx status code is an error. Response headers are in either
37887// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37888// was returned at all) in error.(*googleapi.Error).Header. Use
37889// googleapi.IsNotModified to check whether the returned error was
37890// because http.StatusNotModified was returned.
37891func (c *ProjectsLocationsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37892	gensupport.SetOptions(c.urlParams_, opts...)
37893	res, err := c.doRequest("json")
37894	if res != nil && res.StatusCode == http.StatusNotModified {
37895		if res.Body != nil {
37896			res.Body.Close()
37897		}
37898		return nil, &googleapi.Error{
37899			Code:   res.StatusCode,
37900			Header: res.Header,
37901		}
37902	}
37903	if err != nil {
37904		return nil, err
37905	}
37906	defer googleapi.CloseBody(res)
37907	if err := googleapi.CheckResponse(res); err != nil {
37908		return nil, err
37909	}
37910	ret := &GoogleLongrunningOperation{
37911		ServerResponse: googleapi.ServerResponse{
37912			Header:         res.Header,
37913			HTTPStatusCode: res.StatusCode,
37914		},
37915	}
37916	target := &ret
37917	if err := gensupport.DecodeResponse(target, res); err != nil {
37918		return nil, err
37919	}
37920	return ret, nil
37921	// {
37922	//   "description": "Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
37923	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:restore",
37924	//   "httpMethod": "POST",
37925	//   "id": "dialogflow.projects.locations.agent.restore",
37926	//   "parameterOrder": [
37927	//     "parent"
37928	//   ],
37929	//   "parameters": {
37930	//     "parent": {
37931	//       "description": "Required. The project that the agent to restore is associated with. Format: `projects/` or `projects//locations/`.",
37932	//       "location": "path",
37933	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37934	//       "required": true,
37935	//       "type": "string"
37936	//     }
37937	//   },
37938	//   "path": "v2beta1/{+parent}/agent:restore",
37939	//   "request": {
37940	//     "$ref": "GoogleCloudDialogflowV2beta1RestoreAgentRequest"
37941	//   },
37942	//   "response": {
37943	//     "$ref": "GoogleLongrunningOperation"
37944	//   },
37945	//   "scopes": [
37946	//     "https://www.googleapis.com/auth/cloud-platform",
37947	//     "https://www.googleapis.com/auth/dialogflow"
37948	//   ]
37949	// }
37950
37951}
37952
37953// method id "dialogflow.projects.locations.agent.search":
37954
37955type ProjectsLocationsAgentSearchCall struct {
37956	s            *Service
37957	parent       string
37958	urlParams_   gensupport.URLParams
37959	ifNoneMatch_ string
37960	ctx_         context.Context
37961	header_      http.Header
37962}
37963
37964// Search: Returns the list of agents. Since there is at most one
37965// conversational agent per project, this method is useful primarily for
37966// listing all agents across projects the caller has access to. One can
37967// achieve that with a wildcard project collection id "-". Refer to List
37968// Sub-Collections
37969// (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
37970//
37971// - parent: The project to list agents from. Format: `projects/` or
37972//   `projects//locations/`.
37973func (r *ProjectsLocationsAgentService) Search(parent string) *ProjectsLocationsAgentSearchCall {
37974	c := &ProjectsLocationsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37975	c.parent = parent
37976	return c
37977}
37978
37979// PageSize sets the optional parameter "pageSize": The maximum number
37980// of items to return in a single page. By default 100 and at most 1000.
37981func (c *ProjectsLocationsAgentSearchCall) PageSize(pageSize int64) *ProjectsLocationsAgentSearchCall {
37982	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37983	return c
37984}
37985
37986// PageToken sets the optional parameter "pageToken": The
37987// next_page_token value returned from a previous list request.
37988func (c *ProjectsLocationsAgentSearchCall) PageToken(pageToken string) *ProjectsLocationsAgentSearchCall {
37989	c.urlParams_.Set("pageToken", pageToken)
37990	return c
37991}
37992
37993// Fields allows partial responses to be retrieved. See
37994// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37995// for more information.
37996func (c *ProjectsLocationsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSearchCall {
37997	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37998	return c
37999}
38000
38001// IfNoneMatch sets the optional parameter which makes the operation
38002// fail if the object's ETag matches the given value. This is useful for
38003// getting updates only after the object has changed since the last
38004// request. Use googleapi.IsNotModified to check whether the response
38005// error from Do is the result of In-None-Match.
38006func (c *ProjectsLocationsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSearchCall {
38007	c.ifNoneMatch_ = entityTag
38008	return c
38009}
38010
38011// Context sets the context to be used in this call's Do method. Any
38012// pending HTTP request will be aborted if the provided context is
38013// canceled.
38014func (c *ProjectsLocationsAgentSearchCall) Context(ctx context.Context) *ProjectsLocationsAgentSearchCall {
38015	c.ctx_ = ctx
38016	return c
38017}
38018
38019// Header returns an http.Header that can be modified by the caller to
38020// add HTTP headers to the request.
38021func (c *ProjectsLocationsAgentSearchCall) Header() http.Header {
38022	if c.header_ == nil {
38023		c.header_ = make(http.Header)
38024	}
38025	return c.header_
38026}
38027
38028func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
38029	reqHeaders := make(http.Header)
38030	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38031	for k, v := range c.header_ {
38032		reqHeaders[k] = v
38033	}
38034	reqHeaders.Set("User-Agent", c.s.userAgent())
38035	if c.ifNoneMatch_ != "" {
38036		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38037	}
38038	var body io.Reader = nil
38039	c.urlParams_.Set("alt", alt)
38040	c.urlParams_.Set("prettyPrint", "false")
38041	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
38042	urls += "?" + c.urlParams_.Encode()
38043	req, err := http.NewRequest("GET", urls, body)
38044	if err != nil {
38045		return nil, err
38046	}
38047	req.Header = reqHeaders
38048	googleapi.Expand(req.URL, map[string]string{
38049		"parent": c.parent,
38050	})
38051	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38052}
38053
38054// Do executes the "dialogflow.projects.locations.agent.search" call.
38055// Exactly one of *GoogleCloudDialogflowV2beta1SearchAgentsResponse or
38056// error will be non-nil. Any non-2xx status code is an error. Response
38057// headers are in either
38058// *GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Heade
38059// r or (if a response was returned at all) in
38060// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38061// whether the returned error was because http.StatusNotModified was
38062// returned.
38063func (c *ProjectsLocationsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
38064	gensupport.SetOptions(c.urlParams_, opts...)
38065	res, err := c.doRequest("json")
38066	if res != nil && res.StatusCode == http.StatusNotModified {
38067		if res.Body != nil {
38068			res.Body.Close()
38069		}
38070		return nil, &googleapi.Error{
38071			Code:   res.StatusCode,
38072			Header: res.Header,
38073		}
38074	}
38075	if err != nil {
38076		return nil, err
38077	}
38078	defer googleapi.CloseBody(res)
38079	if err := googleapi.CheckResponse(res); err != nil {
38080		return nil, err
38081	}
38082	ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
38083		ServerResponse: googleapi.ServerResponse{
38084			Header:         res.Header,
38085			HTTPStatusCode: res.StatusCode,
38086		},
38087	}
38088	target := &ret
38089	if err := gensupport.DecodeResponse(target, res); err != nil {
38090		return nil, err
38091	}
38092	return ret, nil
38093	// {
38094	//   "description": "Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id \"-\". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).",
38095	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:search",
38096	//   "httpMethod": "GET",
38097	//   "id": "dialogflow.projects.locations.agent.search",
38098	//   "parameterOrder": [
38099	//     "parent"
38100	//   ],
38101	//   "parameters": {
38102	//     "pageSize": {
38103	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
38104	//       "format": "int32",
38105	//       "location": "query",
38106	//       "type": "integer"
38107	//     },
38108	//     "pageToken": {
38109	//       "description": "Optional. The next_page_token value returned from a previous list request.",
38110	//       "location": "query",
38111	//       "type": "string"
38112	//     },
38113	//     "parent": {
38114	//       "description": "Required. The project to list agents from. Format: `projects/` or `projects//locations/`.",
38115	//       "location": "path",
38116	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
38117	//       "required": true,
38118	//       "type": "string"
38119	//     }
38120	//   },
38121	//   "path": "v2beta1/{+parent}/agent:search",
38122	//   "response": {
38123	//     "$ref": "GoogleCloudDialogflowV2beta1SearchAgentsResponse"
38124	//   },
38125	//   "scopes": [
38126	//     "https://www.googleapis.com/auth/cloud-platform",
38127	//     "https://www.googleapis.com/auth/dialogflow"
38128	//   ]
38129	// }
38130
38131}
38132
38133// Pages invokes f for each page of results.
38134// A non-nil error returned from f will halt the iteration.
38135// The provided context supersedes any context provided to the Context method.
38136func (c *ProjectsLocationsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
38137	c.ctx_ = ctx
38138	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
38139	for {
38140		x, err := c.Do()
38141		if err != nil {
38142			return err
38143		}
38144		if err := f(x); err != nil {
38145			return err
38146		}
38147		if x.NextPageToken == "" {
38148			return nil
38149		}
38150		c.PageToken(x.NextPageToken)
38151	}
38152}
38153
38154// method id "dialogflow.projects.locations.agent.train":
38155
38156type ProjectsLocationsAgentTrainCall struct {
38157	s                                             *Service
38158	parent                                        string
38159	googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
38160	urlParams_                                    gensupport.URLParams
38161	ctx_                                          context.Context
38162	header_                                       http.Header
38163}
38164
38165// Train: Trains the specified agent. Note: You should always train an
38166// agent prior to sending it queries. See the training documentation
38167// (https://cloud.google.com/dialogflow/es/docs/training).
38168//
38169// - parent: The project that the agent to train is associated with.
38170//   Format: `projects/` or `projects//locations/`.
38171func (r *ProjectsLocationsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsLocationsAgentTrainCall {
38172	c := &ProjectsLocationsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38173	c.parent = parent
38174	c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
38175	return c
38176}
38177
38178// Fields allows partial responses to be retrieved. See
38179// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38180// for more information.
38181func (c *ProjectsLocationsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentTrainCall {
38182	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38183	return c
38184}
38185
38186// Context sets the context to be used in this call's Do method. Any
38187// pending HTTP request will be aborted if the provided context is
38188// canceled.
38189func (c *ProjectsLocationsAgentTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentTrainCall {
38190	c.ctx_ = ctx
38191	return c
38192}
38193
38194// Header returns an http.Header that can be modified by the caller to
38195// add HTTP headers to the request.
38196func (c *ProjectsLocationsAgentTrainCall) Header() http.Header {
38197	if c.header_ == nil {
38198		c.header_ = make(http.Header)
38199	}
38200	return c.header_
38201}
38202
38203func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
38204	reqHeaders := make(http.Header)
38205	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38206	for k, v := range c.header_ {
38207		reqHeaders[k] = v
38208	}
38209	reqHeaders.Set("User-Agent", c.s.userAgent())
38210	var body io.Reader = nil
38211	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
38212	if err != nil {
38213		return nil, err
38214	}
38215	reqHeaders.Set("Content-Type", "application/json")
38216	c.urlParams_.Set("alt", alt)
38217	c.urlParams_.Set("prettyPrint", "false")
38218	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
38219	urls += "?" + c.urlParams_.Encode()
38220	req, err := http.NewRequest("POST", urls, body)
38221	if err != nil {
38222		return nil, err
38223	}
38224	req.Header = reqHeaders
38225	googleapi.Expand(req.URL, map[string]string{
38226		"parent": c.parent,
38227	})
38228	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38229}
38230
38231// Do executes the "dialogflow.projects.locations.agent.train" call.
38232// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38233// Any non-2xx status code is an error. Response headers are in either
38234// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38235// was returned at all) in error.(*googleapi.Error).Header. Use
38236// googleapi.IsNotModified to check whether the returned error was
38237// because http.StatusNotModified was returned.
38238func (c *ProjectsLocationsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38239	gensupport.SetOptions(c.urlParams_, opts...)
38240	res, err := c.doRequest("json")
38241	if res != nil && res.StatusCode == http.StatusNotModified {
38242		if res.Body != nil {
38243			res.Body.Close()
38244		}
38245		return nil, &googleapi.Error{
38246			Code:   res.StatusCode,
38247			Header: res.Header,
38248		}
38249	}
38250	if err != nil {
38251		return nil, err
38252	}
38253	defer googleapi.CloseBody(res)
38254	if err := googleapi.CheckResponse(res); err != nil {
38255		return nil, err
38256	}
38257	ret := &GoogleLongrunningOperation{
38258		ServerResponse: googleapi.ServerResponse{
38259			Header:         res.Header,
38260			HTTPStatusCode: res.StatusCode,
38261		},
38262	}
38263	target := &ret
38264	if err := gensupport.DecodeResponse(target, res); err != nil {
38265		return nil, err
38266	}
38267	return ret, nil
38268	// {
38269	//   "description": "Trains the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
38270	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:train",
38271	//   "httpMethod": "POST",
38272	//   "id": "dialogflow.projects.locations.agent.train",
38273	//   "parameterOrder": [
38274	//     "parent"
38275	//   ],
38276	//   "parameters": {
38277	//     "parent": {
38278	//       "description": "Required. The project that the agent to train is associated with. Format: `projects/` or `projects//locations/`.",
38279	//       "location": "path",
38280	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
38281	//       "required": true,
38282	//       "type": "string"
38283	//     }
38284	//   },
38285	//   "path": "v2beta1/{+parent}/agent:train",
38286	//   "request": {
38287	//     "$ref": "GoogleCloudDialogflowV2beta1TrainAgentRequest"
38288	//   },
38289	//   "response": {
38290	//     "$ref": "GoogleLongrunningOperation"
38291	//   },
38292	//   "scopes": [
38293	//     "https://www.googleapis.com/auth/cloud-platform",
38294	//     "https://www.googleapis.com/auth/dialogflow"
38295	//   ]
38296	// }
38297
38298}
38299
38300// method id "dialogflow.projects.locations.agent.updateFulfillment":
38301
38302type ProjectsLocationsAgentUpdateFulfillmentCall struct {
38303	s                                       *Service
38304	nameid                                  string
38305	googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
38306	urlParams_                              gensupport.URLParams
38307	ctx_                                    context.Context
38308	header_                                 http.Header
38309}
38310
38311// UpdateFulfillment: Updates the fulfillment.
38312//
38313// - name: The unique identifier of the fulfillment. Supported formats:
38314//   - `projects//agent/fulfillment` -
38315//   `projects//locations//agent/fulfillment` This field is not used for
38316//   Fulfillment in an Environment.
38317func (r *ProjectsLocationsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsLocationsAgentUpdateFulfillmentCall {
38318	c := &ProjectsLocationsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38319	c.nameid = nameid
38320	c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
38321	return c
38322}
38323
38324// UpdateMask sets the optional parameter "updateMask": Required. The
38325// mask to control which fields get updated. If the mask is not present,
38326// all fields will be updated.
38327func (c *ProjectsLocationsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsLocationsAgentUpdateFulfillmentCall {
38328	c.urlParams_.Set("updateMask", updateMask)
38329	return c
38330}
38331
38332// Fields allows partial responses to be retrieved. See
38333// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38334// for more information.
38335func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentUpdateFulfillmentCall {
38336	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38337	return c
38338}
38339
38340// Context sets the context to be used in this call's Do method. Any
38341// pending HTTP request will be aborted if the provided context is
38342// canceled.
38343func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentUpdateFulfillmentCall {
38344	c.ctx_ = ctx
38345	return c
38346}
38347
38348// Header returns an http.Header that can be modified by the caller to
38349// add HTTP headers to the request.
38350func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Header() http.Header {
38351	if c.header_ == nil {
38352		c.header_ = make(http.Header)
38353	}
38354	return c.header_
38355}
38356
38357func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
38358	reqHeaders := make(http.Header)
38359	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38360	for k, v := range c.header_ {
38361		reqHeaders[k] = v
38362	}
38363	reqHeaders.Set("User-Agent", c.s.userAgent())
38364	var body io.Reader = nil
38365	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
38366	if err != nil {
38367		return nil, err
38368	}
38369	reqHeaders.Set("Content-Type", "application/json")
38370	c.urlParams_.Set("alt", alt)
38371	c.urlParams_.Set("prettyPrint", "false")
38372	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38373	urls += "?" + c.urlParams_.Encode()
38374	req, err := http.NewRequest("PATCH", urls, body)
38375	if err != nil {
38376		return nil, err
38377	}
38378	req.Header = reqHeaders
38379	googleapi.Expand(req.URL, map[string]string{
38380		"name": c.nameid,
38381	})
38382	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38383}
38384
38385// Do executes the "dialogflow.projects.locations.agent.updateFulfillment" call.
38386// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
38387// be non-nil. Any non-2xx status code is an error. Response headers are
38388// in either
38389// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
38390// a response was returned at all) in error.(*googleapi.Error).Header.
38391// Use googleapi.IsNotModified to check whether the returned error was
38392// because http.StatusNotModified was returned.
38393func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
38394	gensupport.SetOptions(c.urlParams_, opts...)
38395	res, err := c.doRequest("json")
38396	if res != nil && res.StatusCode == http.StatusNotModified {
38397		if res.Body != nil {
38398			res.Body.Close()
38399		}
38400		return nil, &googleapi.Error{
38401			Code:   res.StatusCode,
38402			Header: res.Header,
38403		}
38404	}
38405	if err != nil {
38406		return nil, err
38407	}
38408	defer googleapi.CloseBody(res)
38409	if err := googleapi.CheckResponse(res); err != nil {
38410		return nil, err
38411	}
38412	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
38413		ServerResponse: googleapi.ServerResponse{
38414			Header:         res.Header,
38415			HTTPStatusCode: res.StatusCode,
38416		},
38417	}
38418	target := &ret
38419	if err := gensupport.DecodeResponse(target, res); err != nil {
38420		return nil, err
38421	}
38422	return ret, nil
38423	// {
38424	//   "description": "Updates the fulfillment.",
38425	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/fulfillment",
38426	//   "httpMethod": "PATCH",
38427	//   "id": "dialogflow.projects.locations.agent.updateFulfillment",
38428	//   "parameterOrder": [
38429	//     "name"
38430	//   ],
38431	//   "parameters": {
38432	//     "name": {
38433	//       "description": "Required. The unique identifier of the fulfillment. Supported formats: - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This field is not used for Fulfillment in an Environment.",
38434	//       "location": "path",
38435	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/fulfillment$",
38436	//       "required": true,
38437	//       "type": "string"
38438	//     },
38439	//     "updateMask": {
38440	//       "description": "Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
38441	//       "format": "google-fieldmask",
38442	//       "location": "query",
38443	//       "type": "string"
38444	//     }
38445	//   },
38446	//   "path": "v2beta1/{+name}",
38447	//   "request": {
38448	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
38449	//   },
38450	//   "response": {
38451	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
38452	//   },
38453	//   "scopes": [
38454	//     "https://www.googleapis.com/auth/cloud-platform",
38455	//     "https://www.googleapis.com/auth/dialogflow"
38456	//   ]
38457	// }
38458
38459}
38460
38461// method id "dialogflow.projects.locations.agent.entityTypes.batchDelete":
38462
38463type ProjectsLocationsAgentEntityTypesBatchDeleteCall struct {
38464	s                                                         *Service
38465	parent                                                    string
38466	googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
38467	urlParams_                                                gensupport.URLParams
38468	ctx_                                                      context.Context
38469	header_                                                   http.Header
38470}
38471
38472// BatchDelete: Deletes entity types in the specified agent. Note: You
38473// should always train an agent prior to sending it queries. See the
38474// training documentation
38475// (https://cloud.google.com/dialogflow/es/docs/training).
38476//
38477// - parent: The name of the agent to delete all entities types for.
38478//   Supported formats: - `projects//agent`, -
38479//   `projects//locations//agent`.
38480func (r *ProjectsLocationsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
38481	c := &ProjectsLocationsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38482	c.parent = parent
38483	c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
38484	return c
38485}
38486
38487// Fields allows partial responses to be retrieved. See
38488// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38489// for more information.
38490func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
38491	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38492	return c
38493}
38494
38495// Context sets the context to be used in this call's Do method. Any
38496// pending HTTP request will be aborted if the provided context is
38497// canceled.
38498func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
38499	c.ctx_ = ctx
38500	return c
38501}
38502
38503// Header returns an http.Header that can be modified by the caller to
38504// add HTTP headers to the request.
38505func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Header() http.Header {
38506	if c.header_ == nil {
38507		c.header_ = make(http.Header)
38508	}
38509	return c.header_
38510}
38511
38512func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
38513	reqHeaders := make(http.Header)
38514	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38515	for k, v := range c.header_ {
38516		reqHeaders[k] = v
38517	}
38518	reqHeaders.Set("User-Agent", c.s.userAgent())
38519	var body io.Reader = nil
38520	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
38521	if err != nil {
38522		return nil, err
38523	}
38524	reqHeaders.Set("Content-Type", "application/json")
38525	c.urlParams_.Set("alt", alt)
38526	c.urlParams_.Set("prettyPrint", "false")
38527	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
38528	urls += "?" + c.urlParams_.Encode()
38529	req, err := http.NewRequest("POST", urls, body)
38530	if err != nil {
38531		return nil, err
38532	}
38533	req.Header = reqHeaders
38534	googleapi.Expand(req.URL, map[string]string{
38535		"parent": c.parent,
38536	})
38537	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38538}
38539
38540// Do executes the "dialogflow.projects.locations.agent.entityTypes.batchDelete" call.
38541// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38542// Any non-2xx status code is an error. Response headers are in either
38543// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38544// was returned at all) in error.(*googleapi.Error).Header. Use
38545// googleapi.IsNotModified to check whether the returned error was
38546// because http.StatusNotModified was returned.
38547func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38548	gensupport.SetOptions(c.urlParams_, opts...)
38549	res, err := c.doRequest("json")
38550	if res != nil && res.StatusCode == http.StatusNotModified {
38551		if res.Body != nil {
38552			res.Body.Close()
38553		}
38554		return nil, &googleapi.Error{
38555			Code:   res.StatusCode,
38556			Header: res.Header,
38557		}
38558	}
38559	if err != nil {
38560		return nil, err
38561	}
38562	defer googleapi.CloseBody(res)
38563	if err := googleapi.CheckResponse(res); err != nil {
38564		return nil, err
38565	}
38566	ret := &GoogleLongrunningOperation{
38567		ServerResponse: googleapi.ServerResponse{
38568			Header:         res.Header,
38569			HTTPStatusCode: res.StatusCode,
38570		},
38571	}
38572	target := &ret
38573	if err := gensupport.DecodeResponse(target, res); err != nil {
38574		return nil, err
38575	}
38576	return ret, nil
38577	// {
38578	//   "description": "Deletes entity types in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
38579	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes:batchDelete",
38580	//   "httpMethod": "POST",
38581	//   "id": "dialogflow.projects.locations.agent.entityTypes.batchDelete",
38582	//   "parameterOrder": [
38583	//     "parent"
38584	//   ],
38585	//   "parameters": {
38586	//     "parent": {
38587	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent`, - `projects//locations//agent`.",
38588	//       "location": "path",
38589	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
38590	//       "required": true,
38591	//       "type": "string"
38592	//     }
38593	//   },
38594	//   "path": "v2beta1/{+parent}/entityTypes:batchDelete",
38595	//   "request": {
38596	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest"
38597	//   },
38598	//   "response": {
38599	//     "$ref": "GoogleLongrunningOperation"
38600	//   },
38601	//   "scopes": [
38602	//     "https://www.googleapis.com/auth/cloud-platform",
38603	//     "https://www.googleapis.com/auth/dialogflow"
38604	//   ]
38605	// }
38606
38607}
38608
38609// method id "dialogflow.projects.locations.agent.entityTypes.batchUpdate":
38610
38611type ProjectsLocationsAgentEntityTypesBatchUpdateCall struct {
38612	s                                                         *Service
38613	parent                                                    string
38614	googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
38615	urlParams_                                                gensupport.URLParams
38616	ctx_                                                      context.Context
38617	header_                                                   http.Header
38618}
38619
38620// BatchUpdate: Updates/Creates multiple entity types in the specified
38621// agent. Note: You should always train an agent prior to sending it
38622// queries. See the training documentation
38623// (https://cloud.google.com/dialogflow/es/docs/training).
38624//
38625// - parent: The name of the agent to update or create entity types in.
38626//   Supported formats: - `projects//agent` -
38627//   `projects//locations//agent`.
38628func (r *ProjectsLocationsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
38629	c := &ProjectsLocationsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38630	c.parent = parent
38631	c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
38632	return c
38633}
38634
38635// Fields allows partial responses to be retrieved. See
38636// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38637// for more information.
38638func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
38639	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38640	return c
38641}
38642
38643// Context sets the context to be used in this call's Do method. Any
38644// pending HTTP request will be aborted if the provided context is
38645// canceled.
38646func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
38647	c.ctx_ = ctx
38648	return c
38649}
38650
38651// Header returns an http.Header that can be modified by the caller to
38652// add HTTP headers to the request.
38653func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Header() http.Header {
38654	if c.header_ == nil {
38655		c.header_ = make(http.Header)
38656	}
38657	return c.header_
38658}
38659
38660func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
38661	reqHeaders := make(http.Header)
38662	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38663	for k, v := range c.header_ {
38664		reqHeaders[k] = v
38665	}
38666	reqHeaders.Set("User-Agent", c.s.userAgent())
38667	var body io.Reader = nil
38668	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
38669	if err != nil {
38670		return nil, err
38671	}
38672	reqHeaders.Set("Content-Type", "application/json")
38673	c.urlParams_.Set("alt", alt)
38674	c.urlParams_.Set("prettyPrint", "false")
38675	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
38676	urls += "?" + c.urlParams_.Encode()
38677	req, err := http.NewRequest("POST", urls, body)
38678	if err != nil {
38679		return nil, err
38680	}
38681	req.Header = reqHeaders
38682	googleapi.Expand(req.URL, map[string]string{
38683		"parent": c.parent,
38684	})
38685	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38686}
38687
38688// Do executes the "dialogflow.projects.locations.agent.entityTypes.batchUpdate" call.
38689// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38690// Any non-2xx status code is an error. Response headers are in either
38691// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38692// was returned at all) in error.(*googleapi.Error).Header. Use
38693// googleapi.IsNotModified to check whether the returned error was
38694// because http.StatusNotModified was returned.
38695func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38696	gensupport.SetOptions(c.urlParams_, opts...)
38697	res, err := c.doRequest("json")
38698	if res != nil && res.StatusCode == http.StatusNotModified {
38699		if res.Body != nil {
38700			res.Body.Close()
38701		}
38702		return nil, &googleapi.Error{
38703			Code:   res.StatusCode,
38704			Header: res.Header,
38705		}
38706	}
38707	if err != nil {
38708		return nil, err
38709	}
38710	defer googleapi.CloseBody(res)
38711	if err := googleapi.CheckResponse(res); err != nil {
38712		return nil, err
38713	}
38714	ret := &GoogleLongrunningOperation{
38715		ServerResponse: googleapi.ServerResponse{
38716			Header:         res.Header,
38717			HTTPStatusCode: res.StatusCode,
38718		},
38719	}
38720	target := &ret
38721	if err := gensupport.DecodeResponse(target, res); err != nil {
38722		return nil, err
38723	}
38724	return ret, nil
38725	// {
38726	//   "description": "Updates/Creates multiple entity types in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
38727	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes:batchUpdate",
38728	//   "httpMethod": "POST",
38729	//   "id": "dialogflow.projects.locations.agent.entityTypes.batchUpdate",
38730	//   "parameterOrder": [
38731	//     "parent"
38732	//   ],
38733	//   "parameters": {
38734	//     "parent": {
38735	//       "description": "Required. The name of the agent to update or create entity types in. Supported formats: - `projects//agent` - `projects//locations//agent`",
38736	//       "location": "path",
38737	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
38738	//       "required": true,
38739	//       "type": "string"
38740	//     }
38741	//   },
38742	//   "path": "v2beta1/{+parent}/entityTypes:batchUpdate",
38743	//   "request": {
38744	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest"
38745	//   },
38746	//   "response": {
38747	//     "$ref": "GoogleLongrunningOperation"
38748	//   },
38749	//   "scopes": [
38750	//     "https://www.googleapis.com/auth/cloud-platform",
38751	//     "https://www.googleapis.com/auth/dialogflow"
38752	//   ]
38753	// }
38754
38755}
38756
38757// method id "dialogflow.projects.locations.agent.entityTypes.create":
38758
38759type ProjectsLocationsAgentEntityTypesCreateCall struct {
38760	s                                      *Service
38761	parent                                 string
38762	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
38763	urlParams_                             gensupport.URLParams
38764	ctx_                                   context.Context
38765	header_                                http.Header
38766}
38767
38768// Create: Creates an entity type in the specified agent. Note: You
38769// should always train an agent prior to sending it queries. See the
38770// training documentation
38771// (https://cloud.google.com/dialogflow/es/docs/training).
38772//
38773// - parent: The agent to create a entity type for. Supported formats: -
38774//   `projects//agent` - `projects//locations//agent`.
38775func (r *ProjectsLocationsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesCreateCall {
38776	c := &ProjectsLocationsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38777	c.parent = parent
38778	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
38779	return c
38780}
38781
38782// LanguageCode sets the optional parameter "languageCode": The language
38783// used to access language-specific data. If not specified, the agent's
38784// default language is used. For more information, see Multilingual
38785// intent and entity data
38786// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
38787func (c *ProjectsLocationsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesCreateCall {
38788	c.urlParams_.Set("languageCode", languageCode)
38789	return c
38790}
38791
38792// Fields allows partial responses to be retrieved. See
38793// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38794// for more information.
38795func (c *ProjectsLocationsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesCreateCall {
38796	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38797	return c
38798}
38799
38800// Context sets the context to be used in this call's Do method. Any
38801// pending HTTP request will be aborted if the provided context is
38802// canceled.
38803func (c *ProjectsLocationsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesCreateCall {
38804	c.ctx_ = ctx
38805	return c
38806}
38807
38808// Header returns an http.Header that can be modified by the caller to
38809// add HTTP headers to the request.
38810func (c *ProjectsLocationsAgentEntityTypesCreateCall) Header() http.Header {
38811	if c.header_ == nil {
38812		c.header_ = make(http.Header)
38813	}
38814	return c.header_
38815}
38816
38817func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
38818	reqHeaders := make(http.Header)
38819	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38820	for k, v := range c.header_ {
38821		reqHeaders[k] = v
38822	}
38823	reqHeaders.Set("User-Agent", c.s.userAgent())
38824	var body io.Reader = nil
38825	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
38826	if err != nil {
38827		return nil, err
38828	}
38829	reqHeaders.Set("Content-Type", "application/json")
38830	c.urlParams_.Set("alt", alt)
38831	c.urlParams_.Set("prettyPrint", "false")
38832	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
38833	urls += "?" + c.urlParams_.Encode()
38834	req, err := http.NewRequest("POST", urls, body)
38835	if err != nil {
38836		return nil, err
38837	}
38838	req.Header = reqHeaders
38839	googleapi.Expand(req.URL, map[string]string{
38840		"parent": c.parent,
38841	})
38842	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38843}
38844
38845// Do executes the "dialogflow.projects.locations.agent.entityTypes.create" call.
38846// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
38847// be non-nil. Any non-2xx status code is an error. Response headers are
38848// in either
38849// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
38850// a response was returned at all) in error.(*googleapi.Error).Header.
38851// Use googleapi.IsNotModified to check whether the returned error was
38852// because http.StatusNotModified was returned.
38853func (c *ProjectsLocationsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
38854	gensupport.SetOptions(c.urlParams_, opts...)
38855	res, err := c.doRequest("json")
38856	if res != nil && res.StatusCode == http.StatusNotModified {
38857		if res.Body != nil {
38858			res.Body.Close()
38859		}
38860		return nil, &googleapi.Error{
38861			Code:   res.StatusCode,
38862			Header: res.Header,
38863		}
38864	}
38865	if err != nil {
38866		return nil, err
38867	}
38868	defer googleapi.CloseBody(res)
38869	if err := googleapi.CheckResponse(res); err != nil {
38870		return nil, err
38871	}
38872	ret := &GoogleCloudDialogflowV2beta1EntityType{
38873		ServerResponse: googleapi.ServerResponse{
38874			Header:         res.Header,
38875			HTTPStatusCode: res.StatusCode,
38876		},
38877	}
38878	target := &ret
38879	if err := gensupport.DecodeResponse(target, res); err != nil {
38880		return nil, err
38881	}
38882	return ret, nil
38883	// {
38884	//   "description": "Creates an entity type in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
38885	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes",
38886	//   "httpMethod": "POST",
38887	//   "id": "dialogflow.projects.locations.agent.entityTypes.create",
38888	//   "parameterOrder": [
38889	//     "parent"
38890	//   ],
38891	//   "parameters": {
38892	//     "languageCode": {
38893	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
38894	//       "location": "query",
38895	//       "type": "string"
38896	//     },
38897	//     "parent": {
38898	//       "description": "Required. The agent to create a entity type for. Supported formats: - `projects//agent` - `projects//locations//agent`",
38899	//       "location": "path",
38900	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
38901	//       "required": true,
38902	//       "type": "string"
38903	//     }
38904	//   },
38905	//   "path": "v2beta1/{+parent}/entityTypes",
38906	//   "request": {
38907	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
38908	//   },
38909	//   "response": {
38910	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
38911	//   },
38912	//   "scopes": [
38913	//     "https://www.googleapis.com/auth/cloud-platform",
38914	//     "https://www.googleapis.com/auth/dialogflow"
38915	//   ]
38916	// }
38917
38918}
38919
38920// method id "dialogflow.projects.locations.agent.entityTypes.delete":
38921
38922type ProjectsLocationsAgentEntityTypesDeleteCall struct {
38923	s          *Service
38924	name       string
38925	urlParams_ gensupport.URLParams
38926	ctx_       context.Context
38927	header_    http.Header
38928}
38929
38930// Delete: Deletes the specified entity type. Note: You should always
38931// train an agent prior to sending it queries. See the training
38932// documentation (https://cloud.google.com/dialogflow/es/docs/training).
38933//
38934// - name: The name of the entity type to delete. Supported formats: -
38935//   `projects//agent/entityTypes/` -
38936//   `projects//locations//agent/entityTypes/`.
38937func (r *ProjectsLocationsAgentEntityTypesService) Delete(name string) *ProjectsLocationsAgentEntityTypesDeleteCall {
38938	c := &ProjectsLocationsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38939	c.name = name
38940	return c
38941}
38942
38943// Fields allows partial responses to be retrieved. See
38944// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38945// for more information.
38946func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesDeleteCall {
38947	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38948	return c
38949}
38950
38951// Context sets the context to be used in this call's Do method. Any
38952// pending HTTP request will be aborted if the provided context is
38953// canceled.
38954func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesDeleteCall {
38955	c.ctx_ = ctx
38956	return c
38957}
38958
38959// Header returns an http.Header that can be modified by the caller to
38960// add HTTP headers to the request.
38961func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Header() http.Header {
38962	if c.header_ == nil {
38963		c.header_ = make(http.Header)
38964	}
38965	return c.header_
38966}
38967
38968func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
38969	reqHeaders := make(http.Header)
38970	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38971	for k, v := range c.header_ {
38972		reqHeaders[k] = v
38973	}
38974	reqHeaders.Set("User-Agent", c.s.userAgent())
38975	var body io.Reader = nil
38976	c.urlParams_.Set("alt", alt)
38977	c.urlParams_.Set("prettyPrint", "false")
38978	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38979	urls += "?" + c.urlParams_.Encode()
38980	req, err := http.NewRequest("DELETE", urls, body)
38981	if err != nil {
38982		return nil, err
38983	}
38984	req.Header = reqHeaders
38985	googleapi.Expand(req.URL, map[string]string{
38986		"name": c.name,
38987	})
38988	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38989}
38990
38991// Do executes the "dialogflow.projects.locations.agent.entityTypes.delete" call.
38992// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
38993// non-2xx status code is an error. Response headers are in either
38994// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
38995// returned at all) in error.(*googleapi.Error).Header. Use
38996// googleapi.IsNotModified to check whether the returned error was
38997// because http.StatusNotModified was returned.
38998func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
38999	gensupport.SetOptions(c.urlParams_, opts...)
39000	res, err := c.doRequest("json")
39001	if res != nil && res.StatusCode == http.StatusNotModified {
39002		if res.Body != nil {
39003			res.Body.Close()
39004		}
39005		return nil, &googleapi.Error{
39006			Code:   res.StatusCode,
39007			Header: res.Header,
39008		}
39009	}
39010	if err != nil {
39011		return nil, err
39012	}
39013	defer googleapi.CloseBody(res)
39014	if err := googleapi.CheckResponse(res); err != nil {
39015		return nil, err
39016	}
39017	ret := &GoogleProtobufEmpty{
39018		ServerResponse: googleapi.ServerResponse{
39019			Header:         res.Header,
39020			HTTPStatusCode: res.StatusCode,
39021		},
39022	}
39023	target := &ret
39024	if err := gensupport.DecodeResponse(target, res); err != nil {
39025		return nil, err
39026	}
39027	return ret, nil
39028	// {
39029	//   "description": "Deletes the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
39030	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}",
39031	//   "httpMethod": "DELETE",
39032	//   "id": "dialogflow.projects.locations.agent.entityTypes.delete",
39033	//   "parameterOrder": [
39034	//     "name"
39035	//   ],
39036	//   "parameters": {
39037	//     "name": {
39038	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39039	//       "location": "path",
39040	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39041	//       "required": true,
39042	//       "type": "string"
39043	//     }
39044	//   },
39045	//   "path": "v2beta1/{+name}",
39046	//   "response": {
39047	//     "$ref": "GoogleProtobufEmpty"
39048	//   },
39049	//   "scopes": [
39050	//     "https://www.googleapis.com/auth/cloud-platform",
39051	//     "https://www.googleapis.com/auth/dialogflow"
39052	//   ]
39053	// }
39054
39055}
39056
39057// method id "dialogflow.projects.locations.agent.entityTypes.get":
39058
39059type ProjectsLocationsAgentEntityTypesGetCall struct {
39060	s            *Service
39061	name         string
39062	urlParams_   gensupport.URLParams
39063	ifNoneMatch_ string
39064	ctx_         context.Context
39065	header_      http.Header
39066}
39067
39068// Get: Retrieves the specified entity type.
39069//
39070// - name: The name of the entity type. Supported formats: -
39071//   `projects//agent/entityTypes/` -
39072//   `projects//locations//agent/entityTypes/`.
39073func (r *ProjectsLocationsAgentEntityTypesService) Get(name string) *ProjectsLocationsAgentEntityTypesGetCall {
39074	c := &ProjectsLocationsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39075	c.name = name
39076	return c
39077}
39078
39079// LanguageCode sets the optional parameter "languageCode": The language
39080// used to access language-specific data. If not specified, the agent's
39081// default language is used. For more information, see Multilingual
39082// intent and entity data
39083// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
39084func (c *ProjectsLocationsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesGetCall {
39085	c.urlParams_.Set("languageCode", languageCode)
39086	return c
39087}
39088
39089// Fields allows partial responses to be retrieved. See
39090// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39091// for more information.
39092func (c *ProjectsLocationsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesGetCall {
39093	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39094	return c
39095}
39096
39097// IfNoneMatch sets the optional parameter which makes the operation
39098// fail if the object's ETag matches the given value. This is useful for
39099// getting updates only after the object has changed since the last
39100// request. Use googleapi.IsNotModified to check whether the response
39101// error from Do is the result of In-None-Match.
39102func (c *ProjectsLocationsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesGetCall {
39103	c.ifNoneMatch_ = entityTag
39104	return c
39105}
39106
39107// Context sets the context to be used in this call's Do method. Any
39108// pending HTTP request will be aborted if the provided context is
39109// canceled.
39110func (c *ProjectsLocationsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesGetCall {
39111	c.ctx_ = ctx
39112	return c
39113}
39114
39115// Header returns an http.Header that can be modified by the caller to
39116// add HTTP headers to the request.
39117func (c *ProjectsLocationsAgentEntityTypesGetCall) Header() http.Header {
39118	if c.header_ == nil {
39119		c.header_ = make(http.Header)
39120	}
39121	return c.header_
39122}
39123
39124func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
39125	reqHeaders := make(http.Header)
39126	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39127	for k, v := range c.header_ {
39128		reqHeaders[k] = v
39129	}
39130	reqHeaders.Set("User-Agent", c.s.userAgent())
39131	if c.ifNoneMatch_ != "" {
39132		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39133	}
39134	var body io.Reader = nil
39135	c.urlParams_.Set("alt", alt)
39136	c.urlParams_.Set("prettyPrint", "false")
39137	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39138	urls += "?" + c.urlParams_.Encode()
39139	req, err := http.NewRequest("GET", urls, body)
39140	if err != nil {
39141		return nil, err
39142	}
39143	req.Header = reqHeaders
39144	googleapi.Expand(req.URL, map[string]string{
39145		"name": c.name,
39146	})
39147	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39148}
39149
39150// Do executes the "dialogflow.projects.locations.agent.entityTypes.get" call.
39151// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
39152// be non-nil. Any non-2xx status code is an error. Response headers are
39153// in either
39154// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
39155// a response was returned at all) in error.(*googleapi.Error).Header.
39156// Use googleapi.IsNotModified to check whether the returned error was
39157// because http.StatusNotModified was returned.
39158func (c *ProjectsLocationsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
39159	gensupport.SetOptions(c.urlParams_, opts...)
39160	res, err := c.doRequest("json")
39161	if res != nil && res.StatusCode == http.StatusNotModified {
39162		if res.Body != nil {
39163			res.Body.Close()
39164		}
39165		return nil, &googleapi.Error{
39166			Code:   res.StatusCode,
39167			Header: res.Header,
39168		}
39169	}
39170	if err != nil {
39171		return nil, err
39172	}
39173	defer googleapi.CloseBody(res)
39174	if err := googleapi.CheckResponse(res); err != nil {
39175		return nil, err
39176	}
39177	ret := &GoogleCloudDialogflowV2beta1EntityType{
39178		ServerResponse: googleapi.ServerResponse{
39179			Header:         res.Header,
39180			HTTPStatusCode: res.StatusCode,
39181		},
39182	}
39183	target := &ret
39184	if err := gensupport.DecodeResponse(target, res); err != nil {
39185		return nil, err
39186	}
39187	return ret, nil
39188	// {
39189	//   "description": "Retrieves the specified entity type.",
39190	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}",
39191	//   "httpMethod": "GET",
39192	//   "id": "dialogflow.projects.locations.agent.entityTypes.get",
39193	//   "parameterOrder": [
39194	//     "name"
39195	//   ],
39196	//   "parameters": {
39197	//     "languageCode": {
39198	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
39199	//       "location": "query",
39200	//       "type": "string"
39201	//     },
39202	//     "name": {
39203	//       "description": "Required. The name of the entity type. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39204	//       "location": "path",
39205	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39206	//       "required": true,
39207	//       "type": "string"
39208	//     }
39209	//   },
39210	//   "path": "v2beta1/{+name}",
39211	//   "response": {
39212	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
39213	//   },
39214	//   "scopes": [
39215	//     "https://www.googleapis.com/auth/cloud-platform",
39216	//     "https://www.googleapis.com/auth/dialogflow"
39217	//   ]
39218	// }
39219
39220}
39221
39222// method id "dialogflow.projects.locations.agent.entityTypes.list":
39223
39224type ProjectsLocationsAgentEntityTypesListCall struct {
39225	s            *Service
39226	parent       string
39227	urlParams_   gensupport.URLParams
39228	ifNoneMatch_ string
39229	ctx_         context.Context
39230	header_      http.Header
39231}
39232
39233// List: Returns the list of all entity types in the specified agent.
39234//
39235// - parent: The agent to list all entity types from. Supported formats:
39236//   - `projects//agent` - `projects//locations//agent`.
39237func (r *ProjectsLocationsAgentEntityTypesService) List(parent string) *ProjectsLocationsAgentEntityTypesListCall {
39238	c := &ProjectsLocationsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39239	c.parent = parent
39240	return c
39241}
39242
39243// LanguageCode sets the optional parameter "languageCode": The language
39244// used to access language-specific data. If not specified, the agent's
39245// default language is used. For more information, see Multilingual
39246// intent and entity data
39247// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
39248func (c *ProjectsLocationsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesListCall {
39249	c.urlParams_.Set("languageCode", languageCode)
39250	return c
39251}
39252
39253// PageSize sets the optional parameter "pageSize": The maximum number
39254// of items to return in a single page. By default 100 and at most 1000.
39255func (c *ProjectsLocationsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEntityTypesListCall {
39256	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39257	return c
39258}
39259
39260// PageToken sets the optional parameter "pageToken": The
39261// next_page_token value returned from a previous list request.
39262func (c *ProjectsLocationsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEntityTypesListCall {
39263	c.urlParams_.Set("pageToken", pageToken)
39264	return c
39265}
39266
39267// Fields allows partial responses to be retrieved. See
39268// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39269// for more information.
39270func (c *ProjectsLocationsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesListCall {
39271	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39272	return c
39273}
39274
39275// IfNoneMatch sets the optional parameter which makes the operation
39276// fail if the object's ETag matches the given value. This is useful for
39277// getting updates only after the object has changed since the last
39278// request. Use googleapi.IsNotModified to check whether the response
39279// error from Do is the result of In-None-Match.
39280func (c *ProjectsLocationsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesListCall {
39281	c.ifNoneMatch_ = entityTag
39282	return c
39283}
39284
39285// Context sets the context to be used in this call's Do method. Any
39286// pending HTTP request will be aborted if the provided context is
39287// canceled.
39288func (c *ProjectsLocationsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesListCall {
39289	c.ctx_ = ctx
39290	return c
39291}
39292
39293// Header returns an http.Header that can be modified by the caller to
39294// add HTTP headers to the request.
39295func (c *ProjectsLocationsAgentEntityTypesListCall) Header() http.Header {
39296	if c.header_ == nil {
39297		c.header_ = make(http.Header)
39298	}
39299	return c.header_
39300}
39301
39302func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
39303	reqHeaders := make(http.Header)
39304	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39305	for k, v := range c.header_ {
39306		reqHeaders[k] = v
39307	}
39308	reqHeaders.Set("User-Agent", c.s.userAgent())
39309	if c.ifNoneMatch_ != "" {
39310		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39311	}
39312	var body io.Reader = nil
39313	c.urlParams_.Set("alt", alt)
39314	c.urlParams_.Set("prettyPrint", "false")
39315	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
39316	urls += "?" + c.urlParams_.Encode()
39317	req, err := http.NewRequest("GET", urls, body)
39318	if err != nil {
39319		return nil, err
39320	}
39321	req.Header = reqHeaders
39322	googleapi.Expand(req.URL, map[string]string{
39323		"parent": c.parent,
39324	})
39325	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39326}
39327
39328// Do executes the "dialogflow.projects.locations.agent.entityTypes.list" call.
39329// Exactly one of *GoogleCloudDialogflowV2beta1ListEntityTypesResponse
39330// or error will be non-nil. Any non-2xx status code is an error.
39331// Response headers are in either
39332// *GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.He
39333// ader or (if a response was returned at all) in
39334// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
39335// whether the returned error was because http.StatusNotModified was
39336// returned.
39337func (c *ProjectsLocationsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
39338	gensupport.SetOptions(c.urlParams_, opts...)
39339	res, err := c.doRequest("json")
39340	if res != nil && res.StatusCode == http.StatusNotModified {
39341		if res.Body != nil {
39342			res.Body.Close()
39343		}
39344		return nil, &googleapi.Error{
39345			Code:   res.StatusCode,
39346			Header: res.Header,
39347		}
39348	}
39349	if err != nil {
39350		return nil, err
39351	}
39352	defer googleapi.CloseBody(res)
39353	if err := googleapi.CheckResponse(res); err != nil {
39354		return nil, err
39355	}
39356	ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
39357		ServerResponse: googleapi.ServerResponse{
39358			Header:         res.Header,
39359			HTTPStatusCode: res.StatusCode,
39360		},
39361	}
39362	target := &ret
39363	if err := gensupport.DecodeResponse(target, res); err != nil {
39364		return nil, err
39365	}
39366	return ret, nil
39367	// {
39368	//   "description": "Returns the list of all entity types in the specified agent.",
39369	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes",
39370	//   "httpMethod": "GET",
39371	//   "id": "dialogflow.projects.locations.agent.entityTypes.list",
39372	//   "parameterOrder": [
39373	//     "parent"
39374	//   ],
39375	//   "parameters": {
39376	//     "languageCode": {
39377	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
39378	//       "location": "query",
39379	//       "type": "string"
39380	//     },
39381	//     "pageSize": {
39382	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
39383	//       "format": "int32",
39384	//       "location": "query",
39385	//       "type": "integer"
39386	//     },
39387	//     "pageToken": {
39388	//       "description": "Optional. The next_page_token value returned from a previous list request.",
39389	//       "location": "query",
39390	//       "type": "string"
39391	//     },
39392	//     "parent": {
39393	//       "description": "Required. The agent to list all entity types from. Supported formats: - `projects//agent` - `projects//locations//agent`",
39394	//       "location": "path",
39395	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
39396	//       "required": true,
39397	//       "type": "string"
39398	//     }
39399	//   },
39400	//   "path": "v2beta1/{+parent}/entityTypes",
39401	//   "response": {
39402	//     "$ref": "GoogleCloudDialogflowV2beta1ListEntityTypesResponse"
39403	//   },
39404	//   "scopes": [
39405	//     "https://www.googleapis.com/auth/cloud-platform",
39406	//     "https://www.googleapis.com/auth/dialogflow"
39407	//   ]
39408	// }
39409
39410}
39411
39412// Pages invokes f for each page of results.
39413// A non-nil error returned from f will halt the iteration.
39414// The provided context supersedes any context provided to the Context method.
39415func (c *ProjectsLocationsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
39416	c.ctx_ = ctx
39417	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
39418	for {
39419		x, err := c.Do()
39420		if err != nil {
39421			return err
39422		}
39423		if err := f(x); err != nil {
39424			return err
39425		}
39426		if x.NextPageToken == "" {
39427			return nil
39428		}
39429		c.PageToken(x.NextPageToken)
39430	}
39431}
39432
39433// method id "dialogflow.projects.locations.agent.entityTypes.patch":
39434
39435type ProjectsLocationsAgentEntityTypesPatchCall struct {
39436	s                                      *Service
39437	nameid                                 string
39438	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
39439	urlParams_                             gensupport.URLParams
39440	ctx_                                   context.Context
39441	header_                                http.Header
39442}
39443
39444// Patch: Updates the specified entity type. Note: You should always
39445// train an agent prior to sending it queries. See the training
39446// documentation (https://cloud.google.com/dialogflow/es/docs/training).
39447//
39448// - name: The unique identifier of the entity type. Required for
39449//   EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
39450//   methods. Supported formats: - `projects//agent/entityTypes/` -
39451//   `projects//locations//agent/entityTypes/`.
39452func (r *ProjectsLocationsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesPatchCall {
39453	c := &ProjectsLocationsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39454	c.nameid = nameid
39455	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
39456	return c
39457}
39458
39459// LanguageCode sets the optional parameter "languageCode": The language
39460// used to access language-specific data. If not specified, the agent's
39461// default language is used. For more information, see Multilingual
39462// intent and entity data
39463// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
39464func (c *ProjectsLocationsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesPatchCall {
39465	c.urlParams_.Set("languageCode", languageCode)
39466	return c
39467}
39468
39469// UpdateMask sets the optional parameter "updateMask": The mask to
39470// control which fields get updated.
39471func (c *ProjectsLocationsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEntityTypesPatchCall {
39472	c.urlParams_.Set("updateMask", updateMask)
39473	return c
39474}
39475
39476// Fields allows partial responses to be retrieved. See
39477// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39478// for more information.
39479func (c *ProjectsLocationsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesPatchCall {
39480	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39481	return c
39482}
39483
39484// Context sets the context to be used in this call's Do method. Any
39485// pending HTTP request will be aborted if the provided context is
39486// canceled.
39487func (c *ProjectsLocationsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesPatchCall {
39488	c.ctx_ = ctx
39489	return c
39490}
39491
39492// Header returns an http.Header that can be modified by the caller to
39493// add HTTP headers to the request.
39494func (c *ProjectsLocationsAgentEntityTypesPatchCall) Header() http.Header {
39495	if c.header_ == nil {
39496		c.header_ = make(http.Header)
39497	}
39498	return c.header_
39499}
39500
39501func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
39502	reqHeaders := make(http.Header)
39503	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39504	for k, v := range c.header_ {
39505		reqHeaders[k] = v
39506	}
39507	reqHeaders.Set("User-Agent", c.s.userAgent())
39508	var body io.Reader = nil
39509	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
39510	if err != nil {
39511		return nil, err
39512	}
39513	reqHeaders.Set("Content-Type", "application/json")
39514	c.urlParams_.Set("alt", alt)
39515	c.urlParams_.Set("prettyPrint", "false")
39516	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39517	urls += "?" + c.urlParams_.Encode()
39518	req, err := http.NewRequest("PATCH", urls, body)
39519	if err != nil {
39520		return nil, err
39521	}
39522	req.Header = reqHeaders
39523	googleapi.Expand(req.URL, map[string]string{
39524		"name": c.nameid,
39525	})
39526	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39527}
39528
39529// Do executes the "dialogflow.projects.locations.agent.entityTypes.patch" call.
39530// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
39531// be non-nil. Any non-2xx status code is an error. Response headers are
39532// in either
39533// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
39534// a response was returned at all) in error.(*googleapi.Error).Header.
39535// Use googleapi.IsNotModified to check whether the returned error was
39536// because http.StatusNotModified was returned.
39537func (c *ProjectsLocationsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
39538	gensupport.SetOptions(c.urlParams_, opts...)
39539	res, err := c.doRequest("json")
39540	if res != nil && res.StatusCode == http.StatusNotModified {
39541		if res.Body != nil {
39542			res.Body.Close()
39543		}
39544		return nil, &googleapi.Error{
39545			Code:   res.StatusCode,
39546			Header: res.Header,
39547		}
39548	}
39549	if err != nil {
39550		return nil, err
39551	}
39552	defer googleapi.CloseBody(res)
39553	if err := googleapi.CheckResponse(res); err != nil {
39554		return nil, err
39555	}
39556	ret := &GoogleCloudDialogflowV2beta1EntityType{
39557		ServerResponse: googleapi.ServerResponse{
39558			Header:         res.Header,
39559			HTTPStatusCode: res.StatusCode,
39560		},
39561	}
39562	target := &ret
39563	if err := gensupport.DecodeResponse(target, res); err != nil {
39564		return nil, err
39565	}
39566	return ret, nil
39567	// {
39568	//   "description": "Updates the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
39569	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}",
39570	//   "httpMethod": "PATCH",
39571	//   "id": "dialogflow.projects.locations.agent.entityTypes.patch",
39572	//   "parameterOrder": [
39573	//     "name"
39574	//   ],
39575	//   "parameters": {
39576	//     "languageCode": {
39577	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
39578	//       "location": "query",
39579	//       "type": "string"
39580	//     },
39581	//     "name": {
39582	//       "description": "The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39583	//       "location": "path",
39584	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39585	//       "required": true,
39586	//       "type": "string"
39587	//     },
39588	//     "updateMask": {
39589	//       "description": "Optional. The mask to control which fields get updated.",
39590	//       "format": "google-fieldmask",
39591	//       "location": "query",
39592	//       "type": "string"
39593	//     }
39594	//   },
39595	//   "path": "v2beta1/{+name}",
39596	//   "request": {
39597	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
39598	//   },
39599	//   "response": {
39600	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
39601	//   },
39602	//   "scopes": [
39603	//     "https://www.googleapis.com/auth/cloud-platform",
39604	//     "https://www.googleapis.com/auth/dialogflow"
39605	//   ]
39606	// }
39607
39608}
39609
39610// method id "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate":
39611
39612type ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall struct {
39613	s                                                      *Service
39614	parent                                                 string
39615	googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
39616	urlParams_                                             gensupport.URLParams
39617	ctx_                                                   context.Context
39618	header_                                                http.Header
39619}
39620
39621// BatchCreate: Creates multiple new entities in the specified entity
39622// type. Note: You should always train an agent prior to sending it
39623// queries. See the training documentation
39624// (https://cloud.google.com/dialogflow/es/docs/training).
39625//
39626// - parent: The name of the entity type to create entities in.
39627//   Supported formats: - `projects//agent/entityTypes/` -
39628//   `projects//locations//agent/entityTypes/`.
39629func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
39630	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39631	c.parent = parent
39632	c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
39633	return c
39634}
39635
39636// Fields allows partial responses to be retrieved. See
39637// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39638// for more information.
39639func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
39640	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39641	return c
39642}
39643
39644// Context sets the context to be used in this call's Do method. Any
39645// pending HTTP request will be aborted if the provided context is
39646// canceled.
39647func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
39648	c.ctx_ = ctx
39649	return c
39650}
39651
39652// Header returns an http.Header that can be modified by the caller to
39653// add HTTP headers to the request.
39654func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
39655	if c.header_ == nil {
39656		c.header_ = make(http.Header)
39657	}
39658	return c.header_
39659}
39660
39661func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
39662	reqHeaders := make(http.Header)
39663	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39664	for k, v := range c.header_ {
39665		reqHeaders[k] = v
39666	}
39667	reqHeaders.Set("User-Agent", c.s.userAgent())
39668	var body io.Reader = nil
39669	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
39670	if err != nil {
39671		return nil, err
39672	}
39673	reqHeaders.Set("Content-Type", "application/json")
39674	c.urlParams_.Set("alt", alt)
39675	c.urlParams_.Set("prettyPrint", "false")
39676	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
39677	urls += "?" + c.urlParams_.Encode()
39678	req, err := http.NewRequest("POST", urls, body)
39679	if err != nil {
39680		return nil, err
39681	}
39682	req.Header = reqHeaders
39683	googleapi.Expand(req.URL, map[string]string{
39684		"parent": c.parent,
39685	})
39686	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39687}
39688
39689// Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate" call.
39690// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39691// Any non-2xx status code is an error. Response headers are in either
39692// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39693// was returned at all) in error.(*googleapi.Error).Header. Use
39694// googleapi.IsNotModified to check whether the returned error was
39695// because http.StatusNotModified was returned.
39696func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39697	gensupport.SetOptions(c.urlParams_, opts...)
39698	res, err := c.doRequest("json")
39699	if res != nil && res.StatusCode == http.StatusNotModified {
39700		if res.Body != nil {
39701			res.Body.Close()
39702		}
39703		return nil, &googleapi.Error{
39704			Code:   res.StatusCode,
39705			Header: res.Header,
39706		}
39707	}
39708	if err != nil {
39709		return nil, err
39710	}
39711	defer googleapi.CloseBody(res)
39712	if err := googleapi.CheckResponse(res); err != nil {
39713		return nil, err
39714	}
39715	ret := &GoogleLongrunningOperation{
39716		ServerResponse: googleapi.ServerResponse{
39717			Header:         res.Header,
39718			HTTPStatusCode: res.StatusCode,
39719		},
39720	}
39721	target := &ret
39722	if err := gensupport.DecodeResponse(target, res); err != nil {
39723		return nil, err
39724	}
39725	return ret, nil
39726	// {
39727	//   "description": "Creates multiple new entities in the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
39728	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}/entities:batchCreate",
39729	//   "httpMethod": "POST",
39730	//   "id": "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate",
39731	//   "parameterOrder": [
39732	//     "parent"
39733	//   ],
39734	//   "parameters": {
39735	//     "parent": {
39736	//       "description": "Required. The name of the entity type to create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39737	//       "location": "path",
39738	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39739	//       "required": true,
39740	//       "type": "string"
39741	//     }
39742	//   },
39743	//   "path": "v2beta1/{+parent}/entities:batchCreate",
39744	//   "request": {
39745	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest"
39746	//   },
39747	//   "response": {
39748	//     "$ref": "GoogleLongrunningOperation"
39749	//   },
39750	//   "scopes": [
39751	//     "https://www.googleapis.com/auth/cloud-platform",
39752	//     "https://www.googleapis.com/auth/dialogflow"
39753	//   ]
39754	// }
39755
39756}
39757
39758// method id "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete":
39759
39760type ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall struct {
39761	s                                                      *Service
39762	parent                                                 string
39763	googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
39764	urlParams_                                             gensupport.URLParams
39765	ctx_                                                   context.Context
39766	header_                                                http.Header
39767}
39768
39769// BatchDelete: Deletes entities in the specified entity type. Note: You
39770// should always train an agent prior to sending it queries. See the
39771// training documentation
39772// (https://cloud.google.com/dialogflow/es/docs/training).
39773//
39774// - parent: The name of the entity type to delete entries for.
39775//   Supported formats: - `projects//agent/entityTypes/` -
39776//   `projects//locations//agent/entityTypes/`.
39777func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
39778	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39779	c.parent = parent
39780	c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
39781	return c
39782}
39783
39784// Fields allows partial responses to be retrieved. See
39785// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39786// for more information.
39787func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
39788	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39789	return c
39790}
39791
39792// Context sets the context to be used in this call's Do method. Any
39793// pending HTTP request will be aborted if the provided context is
39794// canceled.
39795func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
39796	c.ctx_ = ctx
39797	return c
39798}
39799
39800// Header returns an http.Header that can be modified by the caller to
39801// add HTTP headers to the request.
39802func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
39803	if c.header_ == nil {
39804		c.header_ = make(http.Header)
39805	}
39806	return c.header_
39807}
39808
39809func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
39810	reqHeaders := make(http.Header)
39811	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39812	for k, v := range c.header_ {
39813		reqHeaders[k] = v
39814	}
39815	reqHeaders.Set("User-Agent", c.s.userAgent())
39816	var body io.Reader = nil
39817	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
39818	if err != nil {
39819		return nil, err
39820	}
39821	reqHeaders.Set("Content-Type", "application/json")
39822	c.urlParams_.Set("alt", alt)
39823	c.urlParams_.Set("prettyPrint", "false")
39824	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
39825	urls += "?" + c.urlParams_.Encode()
39826	req, err := http.NewRequest("POST", urls, body)
39827	if err != nil {
39828		return nil, err
39829	}
39830	req.Header = reqHeaders
39831	googleapi.Expand(req.URL, map[string]string{
39832		"parent": c.parent,
39833	})
39834	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39835}
39836
39837// Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete" call.
39838// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39839// Any non-2xx status code is an error. Response headers are in either
39840// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39841// was returned at all) in error.(*googleapi.Error).Header. Use
39842// googleapi.IsNotModified to check whether the returned error was
39843// because http.StatusNotModified was returned.
39844func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39845	gensupport.SetOptions(c.urlParams_, opts...)
39846	res, err := c.doRequest("json")
39847	if res != nil && res.StatusCode == http.StatusNotModified {
39848		if res.Body != nil {
39849			res.Body.Close()
39850		}
39851		return nil, &googleapi.Error{
39852			Code:   res.StatusCode,
39853			Header: res.Header,
39854		}
39855	}
39856	if err != nil {
39857		return nil, err
39858	}
39859	defer googleapi.CloseBody(res)
39860	if err := googleapi.CheckResponse(res); err != nil {
39861		return nil, err
39862	}
39863	ret := &GoogleLongrunningOperation{
39864		ServerResponse: googleapi.ServerResponse{
39865			Header:         res.Header,
39866			HTTPStatusCode: res.StatusCode,
39867		},
39868	}
39869	target := &ret
39870	if err := gensupport.DecodeResponse(target, res); err != nil {
39871		return nil, err
39872	}
39873	return ret, nil
39874	// {
39875	//   "description": "Deletes entities in the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
39876	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}/entities:batchDelete",
39877	//   "httpMethod": "POST",
39878	//   "id": "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete",
39879	//   "parameterOrder": [
39880	//     "parent"
39881	//   ],
39882	//   "parameters": {
39883	//     "parent": {
39884	//       "description": "Required. The name of the entity type to delete entries for. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39885	//       "location": "path",
39886	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39887	//       "required": true,
39888	//       "type": "string"
39889	//     }
39890	//   },
39891	//   "path": "v2beta1/{+parent}/entities:batchDelete",
39892	//   "request": {
39893	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest"
39894	//   },
39895	//   "response": {
39896	//     "$ref": "GoogleLongrunningOperation"
39897	//   },
39898	//   "scopes": [
39899	//     "https://www.googleapis.com/auth/cloud-platform",
39900	//     "https://www.googleapis.com/auth/dialogflow"
39901	//   ]
39902	// }
39903
39904}
39905
39906// method id "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate":
39907
39908type ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall struct {
39909	s                                                      *Service
39910	parent                                                 string
39911	googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
39912	urlParams_                                             gensupport.URLParams
39913	ctx_                                                   context.Context
39914	header_                                                http.Header
39915}
39916
39917// BatchUpdate: Updates or creates multiple entities in the specified
39918// entity type. This method does not affect entities in the entity type
39919// that aren't explicitly specified in the request. Note: You should
39920// always train an agent prior to sending it queries. See the training
39921// documentation (https://cloud.google.com/dialogflow/es/docs/training).
39922//
39923// - parent: The name of the entity type to update or create entities
39924//   in. Supported formats: - `projects//agent/entityTypes/` -
39925//   `projects//locations//agent/entityTypes/`.
39926func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
39927	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39928	c.parent = parent
39929	c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
39930	return c
39931}
39932
39933// Fields allows partial responses to be retrieved. See
39934// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39935// for more information.
39936func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
39937	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39938	return c
39939}
39940
39941// Context sets the context to be used in this call's Do method. Any
39942// pending HTTP request will be aborted if the provided context is
39943// canceled.
39944func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
39945	c.ctx_ = ctx
39946	return c
39947}
39948
39949// Header returns an http.Header that can be modified by the caller to
39950// add HTTP headers to the request.
39951func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
39952	if c.header_ == nil {
39953		c.header_ = make(http.Header)
39954	}
39955	return c.header_
39956}
39957
39958func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
39959	reqHeaders := make(http.Header)
39960	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39961	for k, v := range c.header_ {
39962		reqHeaders[k] = v
39963	}
39964	reqHeaders.Set("User-Agent", c.s.userAgent())
39965	var body io.Reader = nil
39966	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
39967	if err != nil {
39968		return nil, err
39969	}
39970	reqHeaders.Set("Content-Type", "application/json")
39971	c.urlParams_.Set("alt", alt)
39972	c.urlParams_.Set("prettyPrint", "false")
39973	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
39974	urls += "?" + c.urlParams_.Encode()
39975	req, err := http.NewRequest("POST", urls, body)
39976	if err != nil {
39977		return nil, err
39978	}
39979	req.Header = reqHeaders
39980	googleapi.Expand(req.URL, map[string]string{
39981		"parent": c.parent,
39982	})
39983	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39984}
39985
39986// Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate" call.
39987// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39988// Any non-2xx status code is an error. Response headers are in either
39989// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39990// was returned at all) in error.(*googleapi.Error).Header. Use
39991// googleapi.IsNotModified to check whether the returned error was
39992// because http.StatusNotModified was returned.
39993func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39994	gensupport.SetOptions(c.urlParams_, opts...)
39995	res, err := c.doRequest("json")
39996	if res != nil && res.StatusCode == http.StatusNotModified {
39997		if res.Body != nil {
39998			res.Body.Close()
39999		}
40000		return nil, &googleapi.Error{
40001			Code:   res.StatusCode,
40002			Header: res.Header,
40003		}
40004	}
40005	if err != nil {
40006		return nil, err
40007	}
40008	defer googleapi.CloseBody(res)
40009	if err := googleapi.CheckResponse(res); err != nil {
40010		return nil, err
40011	}
40012	ret := &GoogleLongrunningOperation{
40013		ServerResponse: googleapi.ServerResponse{
40014			Header:         res.Header,
40015			HTTPStatusCode: res.StatusCode,
40016		},
40017	}
40018	target := &ret
40019	if err := gensupport.DecodeResponse(target, res); err != nil {
40020		return nil, err
40021	}
40022	return ret, nil
40023	// {
40024	//   "description": "Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
40025	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}/entities:batchUpdate",
40026	//   "httpMethod": "POST",
40027	//   "id": "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate",
40028	//   "parameterOrder": [
40029	//     "parent"
40030	//   ],
40031	//   "parameters": {
40032	//     "parent": {
40033	//       "description": "Required. The name of the entity type to update or create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
40034	//       "location": "path",
40035	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
40036	//       "required": true,
40037	//       "type": "string"
40038	//     }
40039	//   },
40040	//   "path": "v2beta1/{+parent}/entities:batchUpdate",
40041	//   "request": {
40042	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest"
40043	//   },
40044	//   "response": {
40045	//     "$ref": "GoogleLongrunningOperation"
40046	//   },
40047	//   "scopes": [
40048	//     "https://www.googleapis.com/auth/cloud-platform",
40049	//     "https://www.googleapis.com/auth/dialogflow"
40050	//   ]
40051	// }
40052
40053}
40054
40055// method id "dialogflow.projects.locations.agent.environments.create":
40056
40057type ProjectsLocationsAgentEnvironmentsCreateCall struct {
40058	s                                       *Service
40059	parent                                  string
40060	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
40061	urlParams_                              gensupport.URLParams
40062	ctx_                                    context.Context
40063	header_                                 http.Header
40064}
40065
40066// Create: Creates an agent environment.
40067//
40068// - parent: The agent to create an environment for. Supported formats:
40069//   - `projects//agent` - `projects//locations//agent`.
40070func (r *ProjectsLocationsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsCreateCall {
40071	c := &ProjectsLocationsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40072	c.parent = parent
40073	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
40074	return c
40075}
40076
40077// EnvironmentId sets the optional parameter "environmentId": Required.
40078// The unique id of the new environment.
40079func (c *ProjectsLocationsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsAgentEnvironmentsCreateCall {
40080	c.urlParams_.Set("environmentId", environmentId)
40081	return c
40082}
40083
40084// Fields allows partial responses to be retrieved. See
40085// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40086// for more information.
40087func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsCreateCall {
40088	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40089	return c
40090}
40091
40092// Context sets the context to be used in this call's Do method. Any
40093// pending HTTP request will be aborted if the provided context is
40094// canceled.
40095func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsCreateCall {
40096	c.ctx_ = ctx
40097	return c
40098}
40099
40100// Header returns an http.Header that can be modified by the caller to
40101// add HTTP headers to the request.
40102func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Header() http.Header {
40103	if c.header_ == nil {
40104		c.header_ = make(http.Header)
40105	}
40106	return c.header_
40107}
40108
40109func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
40110	reqHeaders := make(http.Header)
40111	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40112	for k, v := range c.header_ {
40113		reqHeaders[k] = v
40114	}
40115	reqHeaders.Set("User-Agent", c.s.userAgent())
40116	var body io.Reader = nil
40117	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
40118	if err != nil {
40119		return nil, err
40120	}
40121	reqHeaders.Set("Content-Type", "application/json")
40122	c.urlParams_.Set("alt", alt)
40123	c.urlParams_.Set("prettyPrint", "false")
40124	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
40125	urls += "?" + c.urlParams_.Encode()
40126	req, err := http.NewRequest("POST", urls, body)
40127	if err != nil {
40128		return nil, err
40129	}
40130	req.Header = reqHeaders
40131	googleapi.Expand(req.URL, map[string]string{
40132		"parent": c.parent,
40133	})
40134	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40135}
40136
40137// Do executes the "dialogflow.projects.locations.agent.environments.create" call.
40138// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
40139// be non-nil. Any non-2xx status code is an error. Response headers are
40140// in either
40141// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
40142// a response was returned at all) in error.(*googleapi.Error).Header.
40143// Use googleapi.IsNotModified to check whether the returned error was
40144// because http.StatusNotModified was returned.
40145func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
40146	gensupport.SetOptions(c.urlParams_, opts...)
40147	res, err := c.doRequest("json")
40148	if res != nil && res.StatusCode == http.StatusNotModified {
40149		if res.Body != nil {
40150			res.Body.Close()
40151		}
40152		return nil, &googleapi.Error{
40153			Code:   res.StatusCode,
40154			Header: res.Header,
40155		}
40156	}
40157	if err != nil {
40158		return nil, err
40159	}
40160	defer googleapi.CloseBody(res)
40161	if err := googleapi.CheckResponse(res); err != nil {
40162		return nil, err
40163	}
40164	ret := &GoogleCloudDialogflowV2beta1Environment{
40165		ServerResponse: googleapi.ServerResponse{
40166			Header:         res.Header,
40167			HTTPStatusCode: res.StatusCode,
40168		},
40169	}
40170	target := &ret
40171	if err := gensupport.DecodeResponse(target, res); err != nil {
40172		return nil, err
40173	}
40174	return ret, nil
40175	// {
40176	//   "description": "Creates an agent environment.",
40177	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments",
40178	//   "httpMethod": "POST",
40179	//   "id": "dialogflow.projects.locations.agent.environments.create",
40180	//   "parameterOrder": [
40181	//     "parent"
40182	//   ],
40183	//   "parameters": {
40184	//     "environmentId": {
40185	//       "description": "Required. The unique id of the new environment.",
40186	//       "location": "query",
40187	//       "type": "string"
40188	//     },
40189	//     "parent": {
40190	//       "description": "Required. The agent to create an environment for. Supported formats: - `projects//agent` - `projects//locations//agent`",
40191	//       "location": "path",
40192	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
40193	//       "required": true,
40194	//       "type": "string"
40195	//     }
40196	//   },
40197	//   "path": "v2beta1/{+parent}/environments",
40198	//   "request": {
40199	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
40200	//   },
40201	//   "response": {
40202	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
40203	//   },
40204	//   "scopes": [
40205	//     "https://www.googleapis.com/auth/cloud-platform",
40206	//     "https://www.googleapis.com/auth/dialogflow"
40207	//   ]
40208	// }
40209
40210}
40211
40212// method id "dialogflow.projects.locations.agent.environments.delete":
40213
40214type ProjectsLocationsAgentEnvironmentsDeleteCall struct {
40215	s          *Service
40216	name       string
40217	urlParams_ gensupport.URLParams
40218	ctx_       context.Context
40219	header_    http.Header
40220}
40221
40222// Delete: Deletes the specified agent environment.
40223//
40224// - name: The name of the environment to delete. / Format: -
40225//   `projects//agent/environments/` -
40226//   `projects//locations//agent/environments/`.
40227func (r *ProjectsLocationsAgentEnvironmentsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsDeleteCall {
40228	c := &ProjectsLocationsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40229	c.name = name
40230	return c
40231}
40232
40233// Fields allows partial responses to be retrieved. See
40234// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40235// for more information.
40236func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsDeleteCall {
40237	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40238	return c
40239}
40240
40241// Context sets the context to be used in this call's Do method. Any
40242// pending HTTP request will be aborted if the provided context is
40243// canceled.
40244func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsDeleteCall {
40245	c.ctx_ = ctx
40246	return c
40247}
40248
40249// Header returns an http.Header that can be modified by the caller to
40250// add HTTP headers to the request.
40251func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Header() http.Header {
40252	if c.header_ == nil {
40253		c.header_ = make(http.Header)
40254	}
40255	return c.header_
40256}
40257
40258func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
40259	reqHeaders := make(http.Header)
40260	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40261	for k, v := range c.header_ {
40262		reqHeaders[k] = v
40263	}
40264	reqHeaders.Set("User-Agent", c.s.userAgent())
40265	var body io.Reader = nil
40266	c.urlParams_.Set("alt", alt)
40267	c.urlParams_.Set("prettyPrint", "false")
40268	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40269	urls += "?" + c.urlParams_.Encode()
40270	req, err := http.NewRequest("DELETE", urls, body)
40271	if err != nil {
40272		return nil, err
40273	}
40274	req.Header = reqHeaders
40275	googleapi.Expand(req.URL, map[string]string{
40276		"name": c.name,
40277	})
40278	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40279}
40280
40281// Do executes the "dialogflow.projects.locations.agent.environments.delete" call.
40282// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
40283// non-2xx status code is an error. Response headers are in either
40284// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
40285// returned at all) in error.(*googleapi.Error).Header. Use
40286// googleapi.IsNotModified to check whether the returned error was
40287// because http.StatusNotModified was returned.
40288func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
40289	gensupport.SetOptions(c.urlParams_, opts...)
40290	res, err := c.doRequest("json")
40291	if res != nil && res.StatusCode == http.StatusNotModified {
40292		if res.Body != nil {
40293			res.Body.Close()
40294		}
40295		return nil, &googleapi.Error{
40296			Code:   res.StatusCode,
40297			Header: res.Header,
40298		}
40299	}
40300	if err != nil {
40301		return nil, err
40302	}
40303	defer googleapi.CloseBody(res)
40304	if err := googleapi.CheckResponse(res); err != nil {
40305		return nil, err
40306	}
40307	ret := &GoogleProtobufEmpty{
40308		ServerResponse: googleapi.ServerResponse{
40309			Header:         res.Header,
40310			HTTPStatusCode: res.StatusCode,
40311		},
40312	}
40313	target := &ret
40314	if err := gensupport.DecodeResponse(target, res); err != nil {
40315		return nil, err
40316	}
40317	return ret, nil
40318	// {
40319	//   "description": "Deletes the specified agent environment.",
40320	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}",
40321	//   "httpMethod": "DELETE",
40322	//   "id": "dialogflow.projects.locations.agent.environments.delete",
40323	//   "parameterOrder": [
40324	//     "name"
40325	//   ],
40326	//   "parameters": {
40327	//     "name": {
40328	//       "description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
40329	//       "location": "path",
40330	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
40331	//       "required": true,
40332	//       "type": "string"
40333	//     }
40334	//   },
40335	//   "path": "v2beta1/{+name}",
40336	//   "response": {
40337	//     "$ref": "GoogleProtobufEmpty"
40338	//   },
40339	//   "scopes": [
40340	//     "https://www.googleapis.com/auth/cloud-platform",
40341	//     "https://www.googleapis.com/auth/dialogflow"
40342	//   ]
40343	// }
40344
40345}
40346
40347// method id "dialogflow.projects.locations.agent.environments.get":
40348
40349type ProjectsLocationsAgentEnvironmentsGetCall struct {
40350	s            *Service
40351	name         string
40352	urlParams_   gensupport.URLParams
40353	ifNoneMatch_ string
40354	ctx_         context.Context
40355	header_      http.Header
40356}
40357
40358// Get: Retrieves the specified agent environment.
40359//
40360// - name: The name of the environment. Supported formats: -
40361//   `projects//agent/environments/` -
40362//   `projects//locations//agent/environments/`.
40363func (r *ProjectsLocationsAgentEnvironmentsService) Get(name string) *ProjectsLocationsAgentEnvironmentsGetCall {
40364	c := &ProjectsLocationsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40365	c.name = name
40366	return c
40367}
40368
40369// Fields allows partial responses to be retrieved. See
40370// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40371// for more information.
40372func (c *ProjectsLocationsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetCall {
40373	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40374	return c
40375}
40376
40377// IfNoneMatch sets the optional parameter which makes the operation
40378// fail if the object's ETag matches the given value. This is useful for
40379// getting updates only after the object has changed since the last
40380// request. Use googleapi.IsNotModified to check whether the response
40381// error from Do is the result of In-None-Match.
40382func (c *ProjectsLocationsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetCall {
40383	c.ifNoneMatch_ = entityTag
40384	return c
40385}
40386
40387// Context sets the context to be used in this call's Do method. Any
40388// pending HTTP request will be aborted if the provided context is
40389// canceled.
40390func (c *ProjectsLocationsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetCall {
40391	c.ctx_ = ctx
40392	return c
40393}
40394
40395// Header returns an http.Header that can be modified by the caller to
40396// add HTTP headers to the request.
40397func (c *ProjectsLocationsAgentEnvironmentsGetCall) Header() http.Header {
40398	if c.header_ == nil {
40399		c.header_ = make(http.Header)
40400	}
40401	return c.header_
40402}
40403
40404func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
40405	reqHeaders := make(http.Header)
40406	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40407	for k, v := range c.header_ {
40408		reqHeaders[k] = v
40409	}
40410	reqHeaders.Set("User-Agent", c.s.userAgent())
40411	if c.ifNoneMatch_ != "" {
40412		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40413	}
40414	var body io.Reader = nil
40415	c.urlParams_.Set("alt", alt)
40416	c.urlParams_.Set("prettyPrint", "false")
40417	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40418	urls += "?" + c.urlParams_.Encode()
40419	req, err := http.NewRequest("GET", urls, body)
40420	if err != nil {
40421		return nil, err
40422	}
40423	req.Header = reqHeaders
40424	googleapi.Expand(req.URL, map[string]string{
40425		"name": c.name,
40426	})
40427	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40428}
40429
40430// Do executes the "dialogflow.projects.locations.agent.environments.get" call.
40431// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
40432// be non-nil. Any non-2xx status code is an error. Response headers are
40433// in either
40434// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
40435// a response was returned at all) in error.(*googleapi.Error).Header.
40436// Use googleapi.IsNotModified to check whether the returned error was
40437// because http.StatusNotModified was returned.
40438func (c *ProjectsLocationsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
40439	gensupport.SetOptions(c.urlParams_, opts...)
40440	res, err := c.doRequest("json")
40441	if res != nil && res.StatusCode == http.StatusNotModified {
40442		if res.Body != nil {
40443			res.Body.Close()
40444		}
40445		return nil, &googleapi.Error{
40446			Code:   res.StatusCode,
40447			Header: res.Header,
40448		}
40449	}
40450	if err != nil {
40451		return nil, err
40452	}
40453	defer googleapi.CloseBody(res)
40454	if err := googleapi.CheckResponse(res); err != nil {
40455		return nil, err
40456	}
40457	ret := &GoogleCloudDialogflowV2beta1Environment{
40458		ServerResponse: googleapi.ServerResponse{
40459			Header:         res.Header,
40460			HTTPStatusCode: res.StatusCode,
40461		},
40462	}
40463	target := &ret
40464	if err := gensupport.DecodeResponse(target, res); err != nil {
40465		return nil, err
40466	}
40467	return ret, nil
40468	// {
40469	//   "description": "Retrieves the specified agent environment.",
40470	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}",
40471	//   "httpMethod": "GET",
40472	//   "id": "dialogflow.projects.locations.agent.environments.get",
40473	//   "parameterOrder": [
40474	//     "name"
40475	//   ],
40476	//   "parameters": {
40477	//     "name": {
40478	//       "description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
40479	//       "location": "path",
40480	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
40481	//       "required": true,
40482	//       "type": "string"
40483	//     }
40484	//   },
40485	//   "path": "v2beta1/{+name}",
40486	//   "response": {
40487	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
40488	//   },
40489	//   "scopes": [
40490	//     "https://www.googleapis.com/auth/cloud-platform",
40491	//     "https://www.googleapis.com/auth/dialogflow"
40492	//   ]
40493	// }
40494
40495}
40496
40497// method id "dialogflow.projects.locations.agent.environments.getHistory":
40498
40499type ProjectsLocationsAgentEnvironmentsGetHistoryCall struct {
40500	s            *Service
40501	parent       string
40502	urlParams_   gensupport.URLParams
40503	ifNoneMatch_ string
40504	ctx_         context.Context
40505	header_      http.Header
40506}
40507
40508// GetHistory: Gets the history of the specified environment.
40509//
40510// - parent: The name of the environment to retrieve history for.
40511//   Supported formats: - `projects//agent/environments/` -
40512//   `projects//locations//agent/environments/`.
40513func (r *ProjectsLocationsAgentEnvironmentsService) GetHistory(parent string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40514	c := &ProjectsLocationsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40515	c.parent = parent
40516	return c
40517}
40518
40519// PageSize sets the optional parameter "pageSize": The maximum number
40520// of items to return in a single page. By default 100 and at most 1000.
40521func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40522	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40523	return c
40524}
40525
40526// PageToken sets the optional parameter "pageToken": The
40527// next_page_token value returned from a previous list request.
40528func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40529	c.urlParams_.Set("pageToken", pageToken)
40530	return c
40531}
40532
40533// Fields allows partial responses to be retrieved. See
40534// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40535// for more information.
40536func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40537	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40538	return c
40539}
40540
40541// IfNoneMatch sets the optional parameter which makes the operation
40542// fail if the object's ETag matches the given value. This is useful for
40543// getting updates only after the object has changed since the last
40544// request. Use googleapi.IsNotModified to check whether the response
40545// error from Do is the result of In-None-Match.
40546func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40547	c.ifNoneMatch_ = entityTag
40548	return c
40549}
40550
40551// Context sets the context to be used in this call's Do method. Any
40552// pending HTTP request will be aborted if the provided context is
40553// canceled.
40554func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40555	c.ctx_ = ctx
40556	return c
40557}
40558
40559// Header returns an http.Header that can be modified by the caller to
40560// add HTTP headers to the request.
40561func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Header() http.Header {
40562	if c.header_ == nil {
40563		c.header_ = make(http.Header)
40564	}
40565	return c.header_
40566}
40567
40568func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
40569	reqHeaders := make(http.Header)
40570	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40571	for k, v := range c.header_ {
40572		reqHeaders[k] = v
40573	}
40574	reqHeaders.Set("User-Agent", c.s.userAgent())
40575	if c.ifNoneMatch_ != "" {
40576		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40577	}
40578	var body io.Reader = nil
40579	c.urlParams_.Set("alt", alt)
40580	c.urlParams_.Set("prettyPrint", "false")
40581	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
40582	urls += "?" + c.urlParams_.Encode()
40583	req, err := http.NewRequest("GET", urls, body)
40584	if err != nil {
40585		return nil, err
40586	}
40587	req.Header = reqHeaders
40588	googleapi.Expand(req.URL, map[string]string{
40589		"parent": c.parent,
40590	})
40591	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40592}
40593
40594// Do executes the "dialogflow.projects.locations.agent.environments.getHistory" call.
40595// Exactly one of *GoogleCloudDialogflowV2beta1EnvironmentHistory or
40596// error will be non-nil. Any non-2xx status code is an error. Response
40597// headers are in either
40598// *GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header
40599// or (if a response was returned at all) in
40600// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40601// whether the returned error was because http.StatusNotModified was
40602// returned.
40603func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
40604	gensupport.SetOptions(c.urlParams_, opts...)
40605	res, err := c.doRequest("json")
40606	if res != nil && res.StatusCode == http.StatusNotModified {
40607		if res.Body != nil {
40608			res.Body.Close()
40609		}
40610		return nil, &googleapi.Error{
40611			Code:   res.StatusCode,
40612			Header: res.Header,
40613		}
40614	}
40615	if err != nil {
40616		return nil, err
40617	}
40618	defer googleapi.CloseBody(res)
40619	if err := googleapi.CheckResponse(res); err != nil {
40620		return nil, err
40621	}
40622	ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
40623		ServerResponse: googleapi.ServerResponse{
40624			Header:         res.Header,
40625			HTTPStatusCode: res.StatusCode,
40626		},
40627	}
40628	target := &ret
40629	if err := gensupport.DecodeResponse(target, res); err != nil {
40630		return nil, err
40631	}
40632	return ret, nil
40633	// {
40634	//   "description": "Gets the history of the specified environment.",
40635	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/history",
40636	//   "httpMethod": "GET",
40637	//   "id": "dialogflow.projects.locations.agent.environments.getHistory",
40638	//   "parameterOrder": [
40639	//     "parent"
40640	//   ],
40641	//   "parameters": {
40642	//     "pageSize": {
40643	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
40644	//       "format": "int32",
40645	//       "location": "query",
40646	//       "type": "integer"
40647	//     },
40648	//     "pageToken": {
40649	//       "description": "Optional. The next_page_token value returned from a previous list request.",
40650	//       "location": "query",
40651	//       "type": "string"
40652	//     },
40653	//     "parent": {
40654	//       "description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
40655	//       "location": "path",
40656	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
40657	//       "required": true,
40658	//       "type": "string"
40659	//     }
40660	//   },
40661	//   "path": "v2beta1/{+parent}/history",
40662	//   "response": {
40663	//     "$ref": "GoogleCloudDialogflowV2beta1EnvironmentHistory"
40664	//   },
40665	//   "scopes": [
40666	//     "https://www.googleapis.com/auth/cloud-platform",
40667	//     "https://www.googleapis.com/auth/dialogflow"
40668	//   ]
40669	// }
40670
40671}
40672
40673// Pages invokes f for each page of results.
40674// A non-nil error returned from f will halt the iteration.
40675// The provided context supersedes any context provided to the Context method.
40676func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
40677	c.ctx_ = ctx
40678	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40679	for {
40680		x, err := c.Do()
40681		if err != nil {
40682			return err
40683		}
40684		if err := f(x); err != nil {
40685			return err
40686		}
40687		if x.NextPageToken == "" {
40688			return nil
40689		}
40690		c.PageToken(x.NextPageToken)
40691	}
40692}
40693
40694// method id "dialogflow.projects.locations.agent.environments.list":
40695
40696type ProjectsLocationsAgentEnvironmentsListCall struct {
40697	s            *Service
40698	parent       string
40699	urlParams_   gensupport.URLParams
40700	ifNoneMatch_ string
40701	ctx_         context.Context
40702	header_      http.Header
40703}
40704
40705// List: Returns the list of all non-draft environments of the specified
40706// agent.
40707//
40708// - parent: The agent to list all environments from. Format: -
40709//   `projects//agent` - `projects//locations//agent`.
40710func (r *ProjectsLocationsAgentEnvironmentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsListCall {
40711	c := &ProjectsLocationsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40712	c.parent = parent
40713	return c
40714}
40715
40716// PageSize sets the optional parameter "pageSize": The maximum number
40717// of items to return in a single page. By default 100 and at most 1000.
40718func (c *ProjectsLocationsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsListCall {
40719	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40720	return c
40721}
40722
40723// PageToken sets the optional parameter "pageToken": The
40724// next_page_token value returned from a previous list request.
40725func (c *ProjectsLocationsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsListCall {
40726	c.urlParams_.Set("pageToken", pageToken)
40727	return c
40728}
40729
40730// Fields allows partial responses to be retrieved. See
40731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40732// for more information.
40733func (c *ProjectsLocationsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsListCall {
40734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40735	return c
40736}
40737
40738// IfNoneMatch sets the optional parameter which makes the operation
40739// fail if the object's ETag matches the given value. This is useful for
40740// getting updates only after the object has changed since the last
40741// request. Use googleapi.IsNotModified to check whether the response
40742// error from Do is the result of In-None-Match.
40743func (c *ProjectsLocationsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsListCall {
40744	c.ifNoneMatch_ = entityTag
40745	return c
40746}
40747
40748// Context sets the context to be used in this call's Do method. Any
40749// pending HTTP request will be aborted if the provided context is
40750// canceled.
40751func (c *ProjectsLocationsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsListCall {
40752	c.ctx_ = ctx
40753	return c
40754}
40755
40756// Header returns an http.Header that can be modified by the caller to
40757// add HTTP headers to the request.
40758func (c *ProjectsLocationsAgentEnvironmentsListCall) Header() http.Header {
40759	if c.header_ == nil {
40760		c.header_ = make(http.Header)
40761	}
40762	return c.header_
40763}
40764
40765func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
40766	reqHeaders := make(http.Header)
40767	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40768	for k, v := range c.header_ {
40769		reqHeaders[k] = v
40770	}
40771	reqHeaders.Set("User-Agent", c.s.userAgent())
40772	if c.ifNoneMatch_ != "" {
40773		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40774	}
40775	var body io.Reader = nil
40776	c.urlParams_.Set("alt", alt)
40777	c.urlParams_.Set("prettyPrint", "false")
40778	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
40779	urls += "?" + c.urlParams_.Encode()
40780	req, err := http.NewRequest("GET", urls, body)
40781	if err != nil {
40782		return nil, err
40783	}
40784	req.Header = reqHeaders
40785	googleapi.Expand(req.URL, map[string]string{
40786		"parent": c.parent,
40787	})
40788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40789}
40790
40791// Do executes the "dialogflow.projects.locations.agent.environments.list" call.
40792// Exactly one of *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
40793// or error will be non-nil. Any non-2xx status code is an error.
40794// Response headers are in either
40795// *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.H
40796// eader or (if a response was returned at all) in
40797// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40798// whether the returned error was because http.StatusNotModified was
40799// returned.
40800func (c *ProjectsLocationsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
40801	gensupport.SetOptions(c.urlParams_, opts...)
40802	res, err := c.doRequest("json")
40803	if res != nil && res.StatusCode == http.StatusNotModified {
40804		if res.Body != nil {
40805			res.Body.Close()
40806		}
40807		return nil, &googleapi.Error{
40808			Code:   res.StatusCode,
40809			Header: res.Header,
40810		}
40811	}
40812	if err != nil {
40813		return nil, err
40814	}
40815	defer googleapi.CloseBody(res)
40816	if err := googleapi.CheckResponse(res); err != nil {
40817		return nil, err
40818	}
40819	ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
40820		ServerResponse: googleapi.ServerResponse{
40821			Header:         res.Header,
40822			HTTPStatusCode: res.StatusCode,
40823		},
40824	}
40825	target := &ret
40826	if err := gensupport.DecodeResponse(target, res); err != nil {
40827		return nil, err
40828	}
40829	return ret, nil
40830	// {
40831	//   "description": "Returns the list of all non-draft environments of the specified agent.",
40832	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments",
40833	//   "httpMethod": "GET",
40834	//   "id": "dialogflow.projects.locations.agent.environments.list",
40835	//   "parameterOrder": [
40836	//     "parent"
40837	//   ],
40838	//   "parameters": {
40839	//     "pageSize": {
40840	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
40841	//       "format": "int32",
40842	//       "location": "query",
40843	//       "type": "integer"
40844	//     },
40845	//     "pageToken": {
40846	//       "description": "Optional. The next_page_token value returned from a previous list request.",
40847	//       "location": "query",
40848	//       "type": "string"
40849	//     },
40850	//     "parent": {
40851	//       "description": "Required. The agent to list all environments from. Format: - `projects//agent` - `projects//locations//agent`",
40852	//       "location": "path",
40853	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
40854	//       "required": true,
40855	//       "type": "string"
40856	//     }
40857	//   },
40858	//   "path": "v2beta1/{+parent}/environments",
40859	//   "response": {
40860	//     "$ref": "GoogleCloudDialogflowV2beta1ListEnvironmentsResponse"
40861	//   },
40862	//   "scopes": [
40863	//     "https://www.googleapis.com/auth/cloud-platform",
40864	//     "https://www.googleapis.com/auth/dialogflow"
40865	//   ]
40866	// }
40867
40868}
40869
40870// Pages invokes f for each page of results.
40871// A non-nil error returned from f will halt the iteration.
40872// The provided context supersedes any context provided to the Context method.
40873func (c *ProjectsLocationsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
40874	c.ctx_ = ctx
40875	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40876	for {
40877		x, err := c.Do()
40878		if err != nil {
40879			return err
40880		}
40881		if err := f(x); err != nil {
40882			return err
40883		}
40884		if x.NextPageToken == "" {
40885			return nil
40886		}
40887		c.PageToken(x.NextPageToken)
40888	}
40889}
40890
40891// method id "dialogflow.projects.locations.agent.environments.patch":
40892
40893type ProjectsLocationsAgentEnvironmentsPatchCall struct {
40894	s                                       *Service
40895	nameid                                  string
40896	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
40897	urlParams_                              gensupport.URLParams
40898	ctx_                                    context.Context
40899	header_                                 http.Header
40900}
40901
40902// Patch: Updates the specified agent environment. This method allows
40903// you to deploy new agent versions into the environment. When an
40904// environment is pointed to a new agent version by setting
40905// `environment.agent_version`, the environment is temporarily set to
40906// the `LOADING` state. During that time, the environment keeps on
40907// serving the previous version of the agent. After the new agent
40908// version is done loading, the environment is set back to the `RUNNING`
40909// state. You can use "-" as Environment ID in environment name to
40910// update version in "draft" environment. WARNING: this will negate all
40911// recent changes to draft and can't be undone. You may want to save the
40912// draft to a version before calling this function.
40913//
40914// - name: Output only. The unique identifier of this agent environment.
40915//   Supported formats: - `projects//agent/environments/` -
40916//   `projects//locations//agent/environments/`.
40917func (r *ProjectsLocationsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsPatchCall {
40918	c := &ProjectsLocationsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40919	c.nameid = nameid
40920	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
40921	return c
40922}
40923
40924// AllowLoadToDraftAndDiscardChanges sets the optional parameter
40925// "allowLoadToDraftAndDiscardChanges": This field is used to prevent
40926// accidental overwrite of the draft environment, which is an operation
40927// that cannot be undone. To confirm that the caller desires this
40928// overwrite, this field must be explicitly set to true when updating
40929// the draft environment (environment ID = `-`).
40930func (c *ProjectsLocationsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsLocationsAgentEnvironmentsPatchCall {
40931	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
40932	return c
40933}
40934
40935// UpdateMask sets the optional parameter "updateMask": Required. The
40936// mask to control which fields get updated.
40937func (c *ProjectsLocationsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsPatchCall {
40938	c.urlParams_.Set("updateMask", updateMask)
40939	return c
40940}
40941
40942// Fields allows partial responses to be retrieved. See
40943// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40944// for more information.
40945func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsPatchCall {
40946	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40947	return c
40948}
40949
40950// Context sets the context to be used in this call's Do method. Any
40951// pending HTTP request will be aborted if the provided context is
40952// canceled.
40953func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsPatchCall {
40954	c.ctx_ = ctx
40955	return c
40956}
40957
40958// Header returns an http.Header that can be modified by the caller to
40959// add HTTP headers to the request.
40960func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Header() http.Header {
40961	if c.header_ == nil {
40962		c.header_ = make(http.Header)
40963	}
40964	return c.header_
40965}
40966
40967func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
40968	reqHeaders := make(http.Header)
40969	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40970	for k, v := range c.header_ {
40971		reqHeaders[k] = v
40972	}
40973	reqHeaders.Set("User-Agent", c.s.userAgent())
40974	var body io.Reader = nil
40975	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
40976	if err != nil {
40977		return nil, err
40978	}
40979	reqHeaders.Set("Content-Type", "application/json")
40980	c.urlParams_.Set("alt", alt)
40981	c.urlParams_.Set("prettyPrint", "false")
40982	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40983	urls += "?" + c.urlParams_.Encode()
40984	req, err := http.NewRequest("PATCH", urls, body)
40985	if err != nil {
40986		return nil, err
40987	}
40988	req.Header = reqHeaders
40989	googleapi.Expand(req.URL, map[string]string{
40990		"name": c.nameid,
40991	})
40992	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40993}
40994
40995// Do executes the "dialogflow.projects.locations.agent.environments.patch" call.
40996// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
40997// be non-nil. Any non-2xx status code is an error. Response headers are
40998// in either
40999// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
41000// a response was returned at all) in error.(*googleapi.Error).Header.
41001// Use googleapi.IsNotModified to check whether the returned error was
41002// because http.StatusNotModified was returned.
41003func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
41004	gensupport.SetOptions(c.urlParams_, opts...)
41005	res, err := c.doRequest("json")
41006	if res != nil && res.StatusCode == http.StatusNotModified {
41007		if res.Body != nil {
41008			res.Body.Close()
41009		}
41010		return nil, &googleapi.Error{
41011			Code:   res.StatusCode,
41012			Header: res.Header,
41013		}
41014	}
41015	if err != nil {
41016		return nil, err
41017	}
41018	defer googleapi.CloseBody(res)
41019	if err := googleapi.CheckResponse(res); err != nil {
41020		return nil, err
41021	}
41022	ret := &GoogleCloudDialogflowV2beta1Environment{
41023		ServerResponse: googleapi.ServerResponse{
41024			Header:         res.Header,
41025			HTTPStatusCode: res.StatusCode,
41026		},
41027	}
41028	target := &ret
41029	if err := gensupport.DecodeResponse(target, res); err != nil {
41030		return nil, err
41031	}
41032	return ret, nil
41033	// {
41034	//   "description": "Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update version in \"draft\" environment. WARNING: this will negate all recent changes to draft and can't be undone. You may want to save the draft to a version before calling this function.",
41035	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}",
41036	//   "httpMethod": "PATCH",
41037	//   "id": "dialogflow.projects.locations.agent.environments.patch",
41038	//   "parameterOrder": [
41039	//     "name"
41040	//   ],
41041	//   "parameters": {
41042	//     "allowLoadToDraftAndDiscardChanges": {
41043	//       "description": "Optional. This field is used to prevent accidental overwrite of the draft environment, which is an operation that cannot be undone. To confirm that the caller desires this overwrite, this field must be explicitly set to true when updating the draft environment (environment ID = `-`).",
41044	//       "location": "query",
41045	//       "type": "boolean"
41046	//     },
41047	//     "name": {
41048	//       "description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
41049	//       "location": "path",
41050	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
41051	//       "required": true,
41052	//       "type": "string"
41053	//     },
41054	//     "updateMask": {
41055	//       "description": "Required. The mask to control which fields get updated.",
41056	//       "format": "google-fieldmask",
41057	//       "location": "query",
41058	//       "type": "string"
41059	//     }
41060	//   },
41061	//   "path": "v2beta1/{+name}",
41062	//   "request": {
41063	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
41064	//   },
41065	//   "response": {
41066	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
41067	//   },
41068	//   "scopes": [
41069	//     "https://www.googleapis.com/auth/cloud-platform",
41070	//     "https://www.googleapis.com/auth/dialogflow"
41071	//   ]
41072	// }
41073
41074}
41075
41076// method id "dialogflow.projects.locations.agent.environments.intents.list":
41077
41078type ProjectsLocationsAgentEnvironmentsIntentsListCall struct {
41079	s            *Service
41080	parent       string
41081	urlParams_   gensupport.URLParams
41082	ifNoneMatch_ string
41083	ctx_         context.Context
41084	header_      http.Header
41085}
41086
41087// List: Returns the list of all intents in the specified agent.
41088//
41089// - parent: The agent to list all intents from. Format:
41090//   `projects//agent` or `projects//locations//agent`. Alternatively,
41091//   you can specify the environment to list intents for. Format:
41092//   `projects//agent/environments/` or
41093//   `projects//locations//agent/environments/`. Note: training phrases
41094//   of the intents will not be returned for non-draft environment.
41095func (r *ProjectsLocationsAgentEnvironmentsIntentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41096	c := &ProjectsLocationsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41097	c.parent = parent
41098	return c
41099}
41100
41101// IntentView sets the optional parameter "intentView": The resource
41102// view to apply to the returned intent.
41103//
41104// Possible values:
41105//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
41106// in the response.
41107//   "INTENT_VIEW_FULL" - All fields are populated.
41108func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41109	c.urlParams_.Set("intentView", intentView)
41110	return c
41111}
41112
41113// LanguageCode sets the optional parameter "languageCode": The language
41114// used to access language-specific data. If not specified, the agent's
41115// default language is used. For more information, see Multilingual
41116// intent and entity data
41117// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
41118func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41119	c.urlParams_.Set("languageCode", languageCode)
41120	return c
41121}
41122
41123// PageSize sets the optional parameter "pageSize": The maximum number
41124// of items to return in a single page. By default 100 and at most 1000.
41125func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41126	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41127	return c
41128}
41129
41130// PageToken sets the optional parameter "pageToken": The
41131// next_page_token value returned from a previous list request.
41132func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41133	c.urlParams_.Set("pageToken", pageToken)
41134	return c
41135}
41136
41137// Fields allows partial responses to be retrieved. See
41138// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41139// for more information.
41140func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41141	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41142	return c
41143}
41144
41145// IfNoneMatch sets the optional parameter which makes the operation
41146// fail if the object's ETag matches the given value. This is useful for
41147// getting updates only after the object has changed since the last
41148// request. Use googleapi.IsNotModified to check whether the response
41149// error from Do is the result of In-None-Match.
41150func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41151	c.ifNoneMatch_ = entityTag
41152	return c
41153}
41154
41155// Context sets the context to be used in this call's Do method. Any
41156// pending HTTP request will be aborted if the provided context is
41157// canceled.
41158func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
41159	c.ctx_ = ctx
41160	return c
41161}
41162
41163// Header returns an http.Header that can be modified by the caller to
41164// add HTTP headers to the request.
41165func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Header() http.Header {
41166	if c.header_ == nil {
41167		c.header_ = make(http.Header)
41168	}
41169	return c.header_
41170}
41171
41172func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
41173	reqHeaders := make(http.Header)
41174	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41175	for k, v := range c.header_ {
41176		reqHeaders[k] = v
41177	}
41178	reqHeaders.Set("User-Agent", c.s.userAgent())
41179	if c.ifNoneMatch_ != "" {
41180		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41181	}
41182	var body io.Reader = nil
41183	c.urlParams_.Set("alt", alt)
41184	c.urlParams_.Set("prettyPrint", "false")
41185	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
41186	urls += "?" + c.urlParams_.Encode()
41187	req, err := http.NewRequest("GET", urls, body)
41188	if err != nil {
41189		return nil, err
41190	}
41191	req.Header = reqHeaders
41192	googleapi.Expand(req.URL, map[string]string{
41193		"parent": c.parent,
41194	})
41195	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41196}
41197
41198// Do executes the "dialogflow.projects.locations.agent.environments.intents.list" call.
41199// Exactly one of *GoogleCloudDialogflowV2beta1ListIntentsResponse or
41200// error will be non-nil. Any non-2xx status code is an error. Response
41201// headers are in either
41202// *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header
41203//  or (if a response was returned at all) in
41204// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41205// whether the returned error was because http.StatusNotModified was
41206// returned.
41207func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
41208	gensupport.SetOptions(c.urlParams_, opts...)
41209	res, err := c.doRequest("json")
41210	if res != nil && res.StatusCode == http.StatusNotModified {
41211		if res.Body != nil {
41212			res.Body.Close()
41213		}
41214		return nil, &googleapi.Error{
41215			Code:   res.StatusCode,
41216			Header: res.Header,
41217		}
41218	}
41219	if err != nil {
41220		return nil, err
41221	}
41222	defer googleapi.CloseBody(res)
41223	if err := googleapi.CheckResponse(res); err != nil {
41224		return nil, err
41225	}
41226	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
41227		ServerResponse: googleapi.ServerResponse{
41228			Header:         res.Header,
41229			HTTPStatusCode: res.StatusCode,
41230		},
41231	}
41232	target := &ret
41233	if err := gensupport.DecodeResponse(target, res); err != nil {
41234		return nil, err
41235	}
41236	return ret, nil
41237	// {
41238	//   "description": "Returns the list of all intents in the specified agent.",
41239	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/intents",
41240	//   "httpMethod": "GET",
41241	//   "id": "dialogflow.projects.locations.agent.environments.intents.list",
41242	//   "parameterOrder": [
41243	//     "parent"
41244	//   ],
41245	//   "parameters": {
41246	//     "intentView": {
41247	//       "description": "Optional. The resource view to apply to the returned intent.",
41248	//       "enum": [
41249	//         "INTENT_VIEW_UNSPECIFIED",
41250	//         "INTENT_VIEW_FULL"
41251	//       ],
41252	//       "enumDescriptions": [
41253	//         "Training phrases field is not populated in the response.",
41254	//         "All fields are populated."
41255	//       ],
41256	//       "location": "query",
41257	//       "type": "string"
41258	//     },
41259	//     "languageCode": {
41260	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
41261	//       "location": "query",
41262	//       "type": "string"
41263	//     },
41264	//     "pageSize": {
41265	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
41266	//       "format": "int32",
41267	//       "location": "query",
41268	//       "type": "integer"
41269	//     },
41270	//     "pageToken": {
41271	//       "description": "Optional. The next_page_token value returned from a previous list request.",
41272	//       "location": "query",
41273	//       "type": "string"
41274	//     },
41275	//     "parent": {
41276	//       "description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
41277	//       "location": "path",
41278	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
41279	//       "required": true,
41280	//       "type": "string"
41281	//     }
41282	//   },
41283	//   "path": "v2beta1/{+parent}/intents",
41284	//   "response": {
41285	//     "$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
41286	//   },
41287	//   "scopes": [
41288	//     "https://www.googleapis.com/auth/cloud-platform",
41289	//     "https://www.googleapis.com/auth/dialogflow"
41290	//   ]
41291	// }
41292
41293}
41294
41295// Pages invokes f for each page of results.
41296// A non-nil error returned from f will halt the iteration.
41297// The provided context supersedes any context provided to the Context method.
41298func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
41299	c.ctx_ = ctx
41300	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
41301	for {
41302		x, err := c.Do()
41303		if err != nil {
41304			return err
41305		}
41306		if err := f(x); err != nil {
41307			return err
41308		}
41309		if x.NextPageToken == "" {
41310			return nil
41311		}
41312		c.PageToken(x.NextPageToken)
41313	}
41314}
41315
41316// method id "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts":
41317
41318type ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
41319	s          *Service
41320	parent     string
41321	urlParams_ gensupport.URLParams
41322	ctx_       context.Context
41323	header_    http.Header
41324}
41325
41326// DeleteContexts: Deletes all active contexts in the specified session.
41327//
41328// - parent: The name of the session to delete all contexts from.
41329//   Supported formats: - `projects//agent/sessions/, -
41330//   `projects//locations//agent/sessions/`, -
41331//   `projects//agent/environments//users//sessions/`, -
41332//   `projects//locations//agent/environments//users//sessions/`, If
41333//   `Location ID` is not specified we assume default 'us' location. If
41334//   `Environment ID` is not specified we assume default 'draft'
41335//   environment. If `User ID` is not specified, we assume default '-'
41336//   user.
41337func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
41338	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41339	c.parent = parent
41340	return c
41341}
41342
41343// Fields allows partial responses to be retrieved. See
41344// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41345// for more information.
41346func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
41347	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41348	return c
41349}
41350
41351// Context sets the context to be used in this call's Do method. Any
41352// pending HTTP request will be aborted if the provided context is
41353// canceled.
41354func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
41355	c.ctx_ = ctx
41356	return c
41357}
41358
41359// Header returns an http.Header that can be modified by the caller to
41360// add HTTP headers to the request.
41361func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
41362	if c.header_ == nil {
41363		c.header_ = make(http.Header)
41364	}
41365	return c.header_
41366}
41367
41368func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
41369	reqHeaders := make(http.Header)
41370	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41371	for k, v := range c.header_ {
41372		reqHeaders[k] = v
41373	}
41374	reqHeaders.Set("User-Agent", c.s.userAgent())
41375	var body io.Reader = nil
41376	c.urlParams_.Set("alt", alt)
41377	c.urlParams_.Set("prettyPrint", "false")
41378	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
41379	urls += "?" + c.urlParams_.Encode()
41380	req, err := http.NewRequest("DELETE", urls, body)
41381	if err != nil {
41382		return nil, err
41383	}
41384	req.Header = reqHeaders
41385	googleapi.Expand(req.URL, map[string]string{
41386		"parent": c.parent,
41387	})
41388	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41389}
41390
41391// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts" call.
41392// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
41393// non-2xx status code is an error. Response headers are in either
41394// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
41395// returned at all) in error.(*googleapi.Error).Header. Use
41396// googleapi.IsNotModified to check whether the returned error was
41397// because http.StatusNotModified was returned.
41398func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
41399	gensupport.SetOptions(c.urlParams_, opts...)
41400	res, err := c.doRequest("json")
41401	if res != nil && res.StatusCode == http.StatusNotModified {
41402		if res.Body != nil {
41403			res.Body.Close()
41404		}
41405		return nil, &googleapi.Error{
41406			Code:   res.StatusCode,
41407			Header: res.Header,
41408		}
41409	}
41410	if err != nil {
41411		return nil, err
41412	}
41413	defer googleapi.CloseBody(res)
41414	if err := googleapi.CheckResponse(res); err != nil {
41415		return nil, err
41416	}
41417	ret := &GoogleProtobufEmpty{
41418		ServerResponse: googleapi.ServerResponse{
41419			Header:         res.Header,
41420			HTTPStatusCode: res.StatusCode,
41421		},
41422	}
41423	target := &ret
41424	if err := gensupport.DecodeResponse(target, res); err != nil {
41425		return nil, err
41426	}
41427	return ret, nil
41428	// {
41429	//   "description": "Deletes all active contexts in the specified session.",
41430	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
41431	//   "httpMethod": "DELETE",
41432	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts",
41433	//   "parameterOrder": [
41434	//     "parent"
41435	//   ],
41436	//   "parameters": {
41437	//     "parent": {
41438	//       "description": "Required. The name of the session to delete all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
41439	//       "location": "path",
41440	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
41441	//       "required": true,
41442	//       "type": "string"
41443	//     }
41444	//   },
41445	//   "path": "v2beta1/{+parent}/contexts",
41446	//   "response": {
41447	//     "$ref": "GoogleProtobufEmpty"
41448	//   },
41449	//   "scopes": [
41450	//     "https://www.googleapis.com/auth/cloud-platform",
41451	//     "https://www.googleapis.com/auth/dialogflow"
41452	//   ]
41453	// }
41454
41455}
41456
41457// method id "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent":
41458
41459type ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
41460	s                                               *Service
41461	sessionid                                       string
41462	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
41463	urlParams_                                      gensupport.URLParams
41464	ctx_                                            context.Context
41465	header_                                         http.Header
41466}
41467
41468// DetectIntent: Processes a natural language query and returns
41469// structured, actionable data as a result. This method is not
41470// idempotent, because it may cause contexts and session entity types to
41471// be updated, which in turn might affect results of future queries.
41472// Note: Always use agent versions for production traffic. See Versions
41473// and environments
41474// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
41475//
41476// - session: The name of the session this query is sent to. Supported
41477//   formats: - `projects//agent/sessions/, -
41478//   `projects//locations//agent/sessions/`, -
41479//   `projects//agent/environments//users//sessions/`, -
41480//   `projects//locations//agent/environments//users//sessions/`, If
41481//   `Location ID` is not specified we assume default 'us' location. If
41482//   `Environment ID` is not specified, we assume default 'draft'
41483//   environment (`Environment ID` might be referred to as environment
41484//   name at some places). If `User ID` is not specified, we are using
41485//   "-". It's up to the API caller to choose an appropriate `Session
41486//   ID` and `User Id`. They can be a random number or some type of user
41487//   and session identifiers (preferably hashed). The length of the
41488//   `Session ID` and `User ID` must not exceed 36 characters. For more
41489//   information, see the API interactions guide
41490//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
41491//   Always use agent versions for production traffic. See Versions and
41492//   environments
41493//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
41494func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
41495	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41496	c.sessionid = sessionid
41497	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
41498	return c
41499}
41500
41501// Fields allows partial responses to be retrieved. See
41502// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41503// for more information.
41504func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
41505	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41506	return c
41507}
41508
41509// Context sets the context to be used in this call's Do method. Any
41510// pending HTTP request will be aborted if the provided context is
41511// canceled.
41512func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
41513	c.ctx_ = ctx
41514	return c
41515}
41516
41517// Header returns an http.Header that can be modified by the caller to
41518// add HTTP headers to the request.
41519func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
41520	if c.header_ == nil {
41521		c.header_ = make(http.Header)
41522	}
41523	return c.header_
41524}
41525
41526func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
41527	reqHeaders := make(http.Header)
41528	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41529	for k, v := range c.header_ {
41530		reqHeaders[k] = v
41531	}
41532	reqHeaders.Set("User-Agent", c.s.userAgent())
41533	var body io.Reader = nil
41534	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
41535	if err != nil {
41536		return nil, err
41537	}
41538	reqHeaders.Set("Content-Type", "application/json")
41539	c.urlParams_.Set("alt", alt)
41540	c.urlParams_.Set("prettyPrint", "false")
41541	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
41542	urls += "?" + c.urlParams_.Encode()
41543	req, err := http.NewRequest("POST", urls, body)
41544	if err != nil {
41545		return nil, err
41546	}
41547	req.Header = reqHeaders
41548	googleapi.Expand(req.URL, map[string]string{
41549		"session": c.sessionid,
41550	})
41551	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41552}
41553
41554// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent" call.
41555// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
41556// error will be non-nil. Any non-2xx status code is an error. Response
41557// headers are in either
41558// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
41559// r or (if a response was returned at all) in
41560// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41561// whether the returned error was because http.StatusNotModified was
41562// returned.
41563func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
41564	gensupport.SetOptions(c.urlParams_, opts...)
41565	res, err := c.doRequest("json")
41566	if res != nil && res.StatusCode == http.StatusNotModified {
41567		if res.Body != nil {
41568			res.Body.Close()
41569		}
41570		return nil, &googleapi.Error{
41571			Code:   res.StatusCode,
41572			Header: res.Header,
41573		}
41574	}
41575	if err != nil {
41576		return nil, err
41577	}
41578	defer googleapi.CloseBody(res)
41579	if err := googleapi.CheckResponse(res); err != nil {
41580		return nil, err
41581	}
41582	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
41583		ServerResponse: googleapi.ServerResponse{
41584			Header:         res.Header,
41585			HTTPStatusCode: res.StatusCode,
41586		},
41587	}
41588	target := &ret
41589	if err := gensupport.DecodeResponse(target, res); err != nil {
41590		return nil, err
41591	}
41592	return ret, nil
41593	// {
41594	//   "description": "Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
41595	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}:detectIntent",
41596	//   "httpMethod": "POST",
41597	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent",
41598	//   "parameterOrder": [
41599	//     "session"
41600	//   ],
41601	//   "parameters": {
41602	//     "session": {
41603	//       "description": "Required. The name of the session this query is sent to. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment (`Environment ID` might be referred to as environment name at some places). If `User ID` is not specified, we are using \"-\". It's up to the API caller to choose an appropriate `Session ID` and `User Id`. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the `Session ID` and `User ID` must not exceed 36 characters. For more information, see the [API interactions guide](https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
41604	//       "location": "path",
41605	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
41606	//       "required": true,
41607	//       "type": "string"
41608	//     }
41609	//   },
41610	//   "path": "v2beta1/{+session}:detectIntent",
41611	//   "request": {
41612	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
41613	//   },
41614	//   "response": {
41615	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
41616	//   },
41617	//   "scopes": [
41618	//     "https://www.googleapis.com/auth/cloud-platform",
41619	//     "https://www.googleapis.com/auth/dialogflow"
41620	//   ]
41621	// }
41622
41623}
41624
41625// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create":
41626
41627type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
41628	s                                   *Service
41629	parent                              string
41630	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
41631	urlParams_                          gensupport.URLParams
41632	ctx_                                context.Context
41633	header_                             http.Header
41634}
41635
41636// Create: Creates a context. If the specified context already exists,
41637// overrides the context.
41638//
41639// - parent: The session to create a context for. Supported formats: -
41640//   `projects//agent/sessions/, -
41641//   `projects//locations//agent/sessions/`, -
41642//   `projects//agent/environments//users//sessions/`, -
41643//   `projects//locations//agent/environments//users//sessions/`, If
41644//   `Location ID` is not specified we assume default 'us' location. If
41645//   `Environment ID` is not specified, we assume default 'draft'
41646//   environment. If `User ID` is not specified, we assume default '-'
41647//   user.
41648func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
41649	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41650	c.parent = parent
41651	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
41652	return c
41653}
41654
41655// Fields allows partial responses to be retrieved. See
41656// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41657// for more information.
41658func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
41659	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41660	return c
41661}
41662
41663// Context sets the context to be used in this call's Do method. Any
41664// pending HTTP request will be aborted if the provided context is
41665// canceled.
41666func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
41667	c.ctx_ = ctx
41668	return c
41669}
41670
41671// Header returns an http.Header that can be modified by the caller to
41672// add HTTP headers to the request.
41673func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
41674	if c.header_ == nil {
41675		c.header_ = make(http.Header)
41676	}
41677	return c.header_
41678}
41679
41680func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
41681	reqHeaders := make(http.Header)
41682	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41683	for k, v := range c.header_ {
41684		reqHeaders[k] = v
41685	}
41686	reqHeaders.Set("User-Agent", c.s.userAgent())
41687	var body io.Reader = nil
41688	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
41689	if err != nil {
41690		return nil, err
41691	}
41692	reqHeaders.Set("Content-Type", "application/json")
41693	c.urlParams_.Set("alt", alt)
41694	c.urlParams_.Set("prettyPrint", "false")
41695	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
41696	urls += "?" + c.urlParams_.Encode()
41697	req, err := http.NewRequest("POST", urls, body)
41698	if err != nil {
41699		return nil, err
41700	}
41701	req.Header = reqHeaders
41702	googleapi.Expand(req.URL, map[string]string{
41703		"parent": c.parent,
41704	})
41705	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41706}
41707
41708// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create" call.
41709// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
41710// non-nil. Any non-2xx status code is an error. Response headers are in
41711// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
41712// (if a response was returned at all) in
41713// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41714// whether the returned error was because http.StatusNotModified was
41715// returned.
41716func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
41717	gensupport.SetOptions(c.urlParams_, opts...)
41718	res, err := c.doRequest("json")
41719	if res != nil && res.StatusCode == http.StatusNotModified {
41720		if res.Body != nil {
41721			res.Body.Close()
41722		}
41723		return nil, &googleapi.Error{
41724			Code:   res.StatusCode,
41725			Header: res.Header,
41726		}
41727	}
41728	if err != nil {
41729		return nil, err
41730	}
41731	defer googleapi.CloseBody(res)
41732	if err := googleapi.CheckResponse(res); err != nil {
41733		return nil, err
41734	}
41735	ret := &GoogleCloudDialogflowV2beta1Context{
41736		ServerResponse: googleapi.ServerResponse{
41737			Header:         res.Header,
41738			HTTPStatusCode: res.StatusCode,
41739		},
41740	}
41741	target := &ret
41742	if err := gensupport.DecodeResponse(target, res); err != nil {
41743		return nil, err
41744	}
41745	return ret, nil
41746	// {
41747	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
41748	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
41749	//   "httpMethod": "POST",
41750	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create",
41751	//   "parameterOrder": [
41752	//     "parent"
41753	//   ],
41754	//   "parameters": {
41755	//     "parent": {
41756	//       "description": "Required. The session to create a context for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
41757	//       "location": "path",
41758	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
41759	//       "required": true,
41760	//       "type": "string"
41761	//     }
41762	//   },
41763	//   "path": "v2beta1/{+parent}/contexts",
41764	//   "request": {
41765	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
41766	//   },
41767	//   "response": {
41768	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
41769	//   },
41770	//   "scopes": [
41771	//     "https://www.googleapis.com/auth/cloud-platform",
41772	//     "https://www.googleapis.com/auth/dialogflow"
41773	//   ]
41774	// }
41775
41776}
41777
41778// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete":
41779
41780type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
41781	s          *Service
41782	name       string
41783	urlParams_ gensupport.URLParams
41784	ctx_       context.Context
41785	header_    http.Header
41786}
41787
41788// Delete: Deletes the specified context.
41789//
41790// - name: The name of the context to delete. Supported formats: -
41791//   `projects//agent/sessions//contexts/`, -
41792//   `projects//locations//agent/sessions//contexts/`, -
41793//   `projects//agent/environments//users//sessions//contexts/`, -
41794//   `projects//locations//agent/environments//users//sessions//contexts/
41795//   `, If `Location ID` is not specified we assume default 'us'
41796//   location. If `Environment ID` is not specified, we assume default
41797//   'draft' environment. If `User ID` is not specified, we assume
41798//   default '-' user.
41799func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
41800	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41801	c.name = name
41802	return c
41803}
41804
41805// Fields allows partial responses to be retrieved. See
41806// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41807// for more information.
41808func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
41809	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41810	return c
41811}
41812
41813// Context sets the context to be used in this call's Do method. Any
41814// pending HTTP request will be aborted if the provided context is
41815// canceled.
41816func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
41817	c.ctx_ = ctx
41818	return c
41819}
41820
41821// Header returns an http.Header that can be modified by the caller to
41822// add HTTP headers to the request.
41823func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
41824	if c.header_ == nil {
41825		c.header_ = make(http.Header)
41826	}
41827	return c.header_
41828}
41829
41830func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
41831	reqHeaders := make(http.Header)
41832	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41833	for k, v := range c.header_ {
41834		reqHeaders[k] = v
41835	}
41836	reqHeaders.Set("User-Agent", c.s.userAgent())
41837	var body io.Reader = nil
41838	c.urlParams_.Set("alt", alt)
41839	c.urlParams_.Set("prettyPrint", "false")
41840	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41841	urls += "?" + c.urlParams_.Encode()
41842	req, err := http.NewRequest("DELETE", urls, body)
41843	if err != nil {
41844		return nil, err
41845	}
41846	req.Header = reqHeaders
41847	googleapi.Expand(req.URL, map[string]string{
41848		"name": c.name,
41849	})
41850	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41851}
41852
41853// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete" call.
41854// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
41855// non-2xx status code is an error. Response headers are in either
41856// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
41857// returned at all) in error.(*googleapi.Error).Header. Use
41858// googleapi.IsNotModified to check whether the returned error was
41859// because http.StatusNotModified was returned.
41860func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
41861	gensupport.SetOptions(c.urlParams_, opts...)
41862	res, err := c.doRequest("json")
41863	if res != nil && res.StatusCode == http.StatusNotModified {
41864		if res.Body != nil {
41865			res.Body.Close()
41866		}
41867		return nil, &googleapi.Error{
41868			Code:   res.StatusCode,
41869			Header: res.Header,
41870		}
41871	}
41872	if err != nil {
41873		return nil, err
41874	}
41875	defer googleapi.CloseBody(res)
41876	if err := googleapi.CheckResponse(res); err != nil {
41877		return nil, err
41878	}
41879	ret := &GoogleProtobufEmpty{
41880		ServerResponse: googleapi.ServerResponse{
41881			Header:         res.Header,
41882			HTTPStatusCode: res.StatusCode,
41883		},
41884	}
41885	target := &ret
41886	if err := gensupport.DecodeResponse(target, res); err != nil {
41887		return nil, err
41888	}
41889	return ret, nil
41890	// {
41891	//   "description": "Deletes the specified context.",
41892	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
41893	//   "httpMethod": "DELETE",
41894	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete",
41895	//   "parameterOrder": [
41896	//     "name"
41897	//   ],
41898	//   "parameters": {
41899	//     "name": {
41900	//       "description": "Required. The name of the context to delete. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
41901	//       "location": "path",
41902	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
41903	//       "required": true,
41904	//       "type": "string"
41905	//     }
41906	//   },
41907	//   "path": "v2beta1/{+name}",
41908	//   "response": {
41909	//     "$ref": "GoogleProtobufEmpty"
41910	//   },
41911	//   "scopes": [
41912	//     "https://www.googleapis.com/auth/cloud-platform",
41913	//     "https://www.googleapis.com/auth/dialogflow"
41914	//   ]
41915	// }
41916
41917}
41918
41919// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get":
41920
41921type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall struct {
41922	s            *Service
41923	name         string
41924	urlParams_   gensupport.URLParams
41925	ifNoneMatch_ string
41926	ctx_         context.Context
41927	header_      http.Header
41928}
41929
41930// Get: Retrieves the specified context.
41931//
41932// - name: The name of the context. Supported formats: -
41933//   `projects//agent/sessions//contexts/`, -
41934//   `projects//locations//agent/sessions//contexts/`, -
41935//   `projects//agent/environments//users//sessions//contexts/`, -
41936//   `projects//locations//agent/environments//users//sessions//contexts/
41937//   `, If `Location ID` is not specified we assume default 'us'
41938//   location. If `Environment ID` is not specified, we assume default
41939//   'draft' environment. If `User ID` is not specified, we assume
41940//   default '-' user.
41941func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
41942	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41943	c.name = name
41944	return c
41945}
41946
41947// Fields allows partial responses to be retrieved. See
41948// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41949// for more information.
41950func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
41951	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41952	return c
41953}
41954
41955// IfNoneMatch sets the optional parameter which makes the operation
41956// fail if the object's ETag matches the given value. This is useful for
41957// getting updates only after the object has changed since the last
41958// request. Use googleapi.IsNotModified to check whether the response
41959// error from Do is the result of In-None-Match.
41960func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
41961	c.ifNoneMatch_ = entityTag
41962	return c
41963}
41964
41965// Context sets the context to be used in this call's Do method. Any
41966// pending HTTP request will be aborted if the provided context is
41967// canceled.
41968func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
41969	c.ctx_ = ctx
41970	return c
41971}
41972
41973// Header returns an http.Header that can be modified by the caller to
41974// add HTTP headers to the request.
41975func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
41976	if c.header_ == nil {
41977		c.header_ = make(http.Header)
41978	}
41979	return c.header_
41980}
41981
41982func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
41983	reqHeaders := make(http.Header)
41984	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41985	for k, v := range c.header_ {
41986		reqHeaders[k] = v
41987	}
41988	reqHeaders.Set("User-Agent", c.s.userAgent())
41989	if c.ifNoneMatch_ != "" {
41990		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41991	}
41992	var body io.Reader = nil
41993	c.urlParams_.Set("alt", alt)
41994	c.urlParams_.Set("prettyPrint", "false")
41995	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41996	urls += "?" + c.urlParams_.Encode()
41997	req, err := http.NewRequest("GET", urls, body)
41998	if err != nil {
41999		return nil, err
42000	}
42001	req.Header = reqHeaders
42002	googleapi.Expand(req.URL, map[string]string{
42003		"name": c.name,
42004	})
42005	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42006}
42007
42008// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get" call.
42009// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
42010// non-nil. Any non-2xx status code is an error. Response headers are in
42011// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
42012// (if a response was returned at all) in
42013// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42014// whether the returned error was because http.StatusNotModified was
42015// returned.
42016func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
42017	gensupport.SetOptions(c.urlParams_, opts...)
42018	res, err := c.doRequest("json")
42019	if res != nil && res.StatusCode == http.StatusNotModified {
42020		if res.Body != nil {
42021			res.Body.Close()
42022		}
42023		return nil, &googleapi.Error{
42024			Code:   res.StatusCode,
42025			Header: res.Header,
42026		}
42027	}
42028	if err != nil {
42029		return nil, err
42030	}
42031	defer googleapi.CloseBody(res)
42032	if err := googleapi.CheckResponse(res); err != nil {
42033		return nil, err
42034	}
42035	ret := &GoogleCloudDialogflowV2beta1Context{
42036		ServerResponse: googleapi.ServerResponse{
42037			Header:         res.Header,
42038			HTTPStatusCode: res.StatusCode,
42039		},
42040	}
42041	target := &ret
42042	if err := gensupport.DecodeResponse(target, res); err != nil {
42043		return nil, err
42044	}
42045	return ret, nil
42046	// {
42047	//   "description": "Retrieves the specified context.",
42048	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
42049	//   "httpMethod": "GET",
42050	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get",
42051	//   "parameterOrder": [
42052	//     "name"
42053	//   ],
42054	//   "parameters": {
42055	//     "name": {
42056	//       "description": "Required. The name of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
42057	//       "location": "path",
42058	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
42059	//       "required": true,
42060	//       "type": "string"
42061	//     }
42062	//   },
42063	//   "path": "v2beta1/{+name}",
42064	//   "response": {
42065	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
42066	//   },
42067	//   "scopes": [
42068	//     "https://www.googleapis.com/auth/cloud-platform",
42069	//     "https://www.googleapis.com/auth/dialogflow"
42070	//   ]
42071	// }
42072
42073}
42074
42075// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list":
42076
42077type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall struct {
42078	s            *Service
42079	parent       string
42080	urlParams_   gensupport.URLParams
42081	ifNoneMatch_ string
42082	ctx_         context.Context
42083	header_      http.Header
42084}
42085
42086// List: Returns the list of all contexts in the specified session.
42087//
42088// - parent: The session to list all contexts from. Supported formats: -
42089//   `projects//agent/sessions/, -
42090//   `projects//locations//agent/sessions/`, -
42091//   `projects//agent/environments//users//sessions/`, -
42092//   `projects//locations//agent/environments//users//sessions/`, If
42093//   `Location ID` is not specified we assume default 'us' location. If
42094//   `Environment ID` is not specified, we assume default 'draft'
42095//   environment. If `User ID` is not specified, we assume default '-'
42096//   user.
42097func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
42098	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42099	c.parent = parent
42100	return c
42101}
42102
42103// PageSize sets the optional parameter "pageSize": The maximum number
42104// of items to return in a single page. By default 100 and at most 1000.
42105func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
42106	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42107	return c
42108}
42109
42110// PageToken sets the optional parameter "pageToken": The
42111// next_page_token value returned from a previous list request.
42112func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
42113	c.urlParams_.Set("pageToken", pageToken)
42114	return c
42115}
42116
42117// Fields allows partial responses to be retrieved. See
42118// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42119// for more information.
42120func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
42121	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42122	return c
42123}
42124
42125// IfNoneMatch sets the optional parameter which makes the operation
42126// fail if the object's ETag matches the given value. This is useful for
42127// getting updates only after the object has changed since the last
42128// request. Use googleapi.IsNotModified to check whether the response
42129// error from Do is the result of In-None-Match.
42130func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
42131	c.ifNoneMatch_ = entityTag
42132	return c
42133}
42134
42135// Context sets the context to be used in this call's Do method. Any
42136// pending HTTP request will be aborted if the provided context is
42137// canceled.
42138func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
42139	c.ctx_ = ctx
42140	return c
42141}
42142
42143// Header returns an http.Header that can be modified by the caller to
42144// add HTTP headers to the request.
42145func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
42146	if c.header_ == nil {
42147		c.header_ = make(http.Header)
42148	}
42149	return c.header_
42150}
42151
42152func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
42153	reqHeaders := make(http.Header)
42154	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42155	for k, v := range c.header_ {
42156		reqHeaders[k] = v
42157	}
42158	reqHeaders.Set("User-Agent", c.s.userAgent())
42159	if c.ifNoneMatch_ != "" {
42160		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42161	}
42162	var body io.Reader = nil
42163	c.urlParams_.Set("alt", alt)
42164	c.urlParams_.Set("prettyPrint", "false")
42165	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
42166	urls += "?" + c.urlParams_.Encode()
42167	req, err := http.NewRequest("GET", urls, body)
42168	if err != nil {
42169		return nil, err
42170	}
42171	req.Header = reqHeaders
42172	googleapi.Expand(req.URL, map[string]string{
42173		"parent": c.parent,
42174	})
42175	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42176}
42177
42178// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list" call.
42179// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
42180// error will be non-nil. Any non-2xx status code is an error. Response
42181// headers are in either
42182// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
42183// r or (if a response was returned at all) in
42184// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42185// whether the returned error was because http.StatusNotModified was
42186// returned.
42187func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
42188	gensupport.SetOptions(c.urlParams_, opts...)
42189	res, err := c.doRequest("json")
42190	if res != nil && res.StatusCode == http.StatusNotModified {
42191		if res.Body != nil {
42192			res.Body.Close()
42193		}
42194		return nil, &googleapi.Error{
42195			Code:   res.StatusCode,
42196			Header: res.Header,
42197		}
42198	}
42199	if err != nil {
42200		return nil, err
42201	}
42202	defer googleapi.CloseBody(res)
42203	if err := googleapi.CheckResponse(res); err != nil {
42204		return nil, err
42205	}
42206	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
42207		ServerResponse: googleapi.ServerResponse{
42208			Header:         res.Header,
42209			HTTPStatusCode: res.StatusCode,
42210		},
42211	}
42212	target := &ret
42213	if err := gensupport.DecodeResponse(target, res); err != nil {
42214		return nil, err
42215	}
42216	return ret, nil
42217	// {
42218	//   "description": "Returns the list of all contexts in the specified session.",
42219	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
42220	//   "httpMethod": "GET",
42221	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list",
42222	//   "parameterOrder": [
42223	//     "parent"
42224	//   ],
42225	//   "parameters": {
42226	//     "pageSize": {
42227	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
42228	//       "format": "int32",
42229	//       "location": "query",
42230	//       "type": "integer"
42231	//     },
42232	//     "pageToken": {
42233	//       "description": "Optional. The next_page_token value returned from a previous list request.",
42234	//       "location": "query",
42235	//       "type": "string"
42236	//     },
42237	//     "parent": {
42238	//       "description": "Required. The session to list all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
42239	//       "location": "path",
42240	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
42241	//       "required": true,
42242	//       "type": "string"
42243	//     }
42244	//   },
42245	//   "path": "v2beta1/{+parent}/contexts",
42246	//   "response": {
42247	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
42248	//   },
42249	//   "scopes": [
42250	//     "https://www.googleapis.com/auth/cloud-platform",
42251	//     "https://www.googleapis.com/auth/dialogflow"
42252	//   ]
42253	// }
42254
42255}
42256
42257// Pages invokes f for each page of results.
42258// A non-nil error returned from f will halt the iteration.
42259// The provided context supersedes any context provided to the Context method.
42260func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
42261	c.ctx_ = ctx
42262	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
42263	for {
42264		x, err := c.Do()
42265		if err != nil {
42266			return err
42267		}
42268		if err := f(x); err != nil {
42269			return err
42270		}
42271		if x.NextPageToken == "" {
42272			return nil
42273		}
42274		c.PageToken(x.NextPageToken)
42275	}
42276}
42277
42278// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch":
42279
42280type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
42281	s                                   *Service
42282	nameid                              string
42283	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
42284	urlParams_                          gensupport.URLParams
42285	ctx_                                context.Context
42286	header_                             http.Header
42287}
42288
42289// Patch: Updates the specified context.
42290//
42291// - name: The unique identifier of the context. Supported formats: -
42292//   `projects//agent/sessions//contexts/`, -
42293//   `projects//locations//agent/sessions//contexts/`, -
42294//   `projects//agent/environments//users//sessions//contexts/`, -
42295//   `projects//locations//agent/environments//users//sessions//contexts/
42296//   `, The `Context ID` is always converted to lowercase, may only
42297//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
42298//   long. If `Environment ID` is not specified, we assume default
42299//   'draft' environment. If `User ID` is not specified, we assume
42300//   default '-' user. The following context names are reserved for
42301//   internal use by Dialogflow. You should not use these contexts or
42302//   create contexts with these names: * `__system_counters__` *
42303//   `*_id_dialog_context` * `*_dialog_params_size`.
42304func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
42305	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42306	c.nameid = nameid
42307	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
42308	return c
42309}
42310
42311// UpdateMask sets the optional parameter "updateMask": The mask to
42312// control which fields get updated.
42313func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
42314	c.urlParams_.Set("updateMask", updateMask)
42315	return c
42316}
42317
42318// Fields allows partial responses to be retrieved. See
42319// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42320// for more information.
42321func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
42322	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42323	return c
42324}
42325
42326// Context sets the context to be used in this call's Do method. Any
42327// pending HTTP request will be aborted if the provided context is
42328// canceled.
42329func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
42330	c.ctx_ = ctx
42331	return c
42332}
42333
42334// Header returns an http.Header that can be modified by the caller to
42335// add HTTP headers to the request.
42336func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
42337	if c.header_ == nil {
42338		c.header_ = make(http.Header)
42339	}
42340	return c.header_
42341}
42342
42343func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
42344	reqHeaders := make(http.Header)
42345	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42346	for k, v := range c.header_ {
42347		reqHeaders[k] = v
42348	}
42349	reqHeaders.Set("User-Agent", c.s.userAgent())
42350	var body io.Reader = nil
42351	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
42352	if err != nil {
42353		return nil, err
42354	}
42355	reqHeaders.Set("Content-Type", "application/json")
42356	c.urlParams_.Set("alt", alt)
42357	c.urlParams_.Set("prettyPrint", "false")
42358	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42359	urls += "?" + c.urlParams_.Encode()
42360	req, err := http.NewRequest("PATCH", urls, body)
42361	if err != nil {
42362		return nil, err
42363	}
42364	req.Header = reqHeaders
42365	googleapi.Expand(req.URL, map[string]string{
42366		"name": c.nameid,
42367	})
42368	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42369}
42370
42371// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch" call.
42372// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
42373// non-nil. Any non-2xx status code is an error. Response headers are in
42374// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
42375// (if a response was returned at all) in
42376// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42377// whether the returned error was because http.StatusNotModified was
42378// returned.
42379func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
42380	gensupport.SetOptions(c.urlParams_, opts...)
42381	res, err := c.doRequest("json")
42382	if res != nil && res.StatusCode == http.StatusNotModified {
42383		if res.Body != nil {
42384			res.Body.Close()
42385		}
42386		return nil, &googleapi.Error{
42387			Code:   res.StatusCode,
42388			Header: res.Header,
42389		}
42390	}
42391	if err != nil {
42392		return nil, err
42393	}
42394	defer googleapi.CloseBody(res)
42395	if err := googleapi.CheckResponse(res); err != nil {
42396		return nil, err
42397	}
42398	ret := &GoogleCloudDialogflowV2beta1Context{
42399		ServerResponse: googleapi.ServerResponse{
42400			Header:         res.Header,
42401			HTTPStatusCode: res.StatusCode,
42402		},
42403	}
42404	target := &ret
42405	if err := gensupport.DecodeResponse(target, res); err != nil {
42406		return nil, err
42407	}
42408	return ret, nil
42409	// {
42410	//   "description": "Updates the specified context.",
42411	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
42412	//   "httpMethod": "PATCH",
42413	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch",
42414	//   "parameterOrder": [
42415	//     "name"
42416	//   ],
42417	//   "parameters": {
42418	//     "name": {
42419	//       "description": "Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`",
42420	//       "location": "path",
42421	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
42422	//       "required": true,
42423	//       "type": "string"
42424	//     },
42425	//     "updateMask": {
42426	//       "description": "Optional. The mask to control which fields get updated.",
42427	//       "format": "google-fieldmask",
42428	//       "location": "query",
42429	//       "type": "string"
42430	//     }
42431	//   },
42432	//   "path": "v2beta1/{+name}",
42433	//   "request": {
42434	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
42435	//   },
42436	//   "response": {
42437	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
42438	//   },
42439	//   "scopes": [
42440	//     "https://www.googleapis.com/auth/cloud-platform",
42441	//     "https://www.googleapis.com/auth/dialogflow"
42442	//   ]
42443	// }
42444
42445}
42446
42447// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create":
42448
42449type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
42450	s                                             *Service
42451	parent                                        string
42452	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
42453	urlParams_                                    gensupport.URLParams
42454	ctx_                                          context.Context
42455	header_                                       http.Header
42456}
42457
42458// Create: Creates a session entity type. If the specified session
42459// entity type already exists, overrides the session entity type. This
42460// method doesn't work with Google Assistant integration. Contact
42461// Dialogflow support if you need to use session entities with Google
42462// Assistant integration.
42463//
42464// - parent: The session to create a session entity type for. Supported
42465//   formats: - `projects//agent/sessions/, -
42466//   `projects//locations//agent/sessions/`, -
42467//   `projects//agent/environments//users//sessions/`, -
42468//   `projects//locations//agent/environments//users//sessions/`, If
42469//   `Location ID` is not specified we assume default 'us' location. If
42470//   `Environment ID` is not specified, we assume default 'draft'
42471//   environment. If `User ID` is not specified, we assume default '-'
42472//   user.
42473func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
42474	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42475	c.parent = parent
42476	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
42477	return c
42478}
42479
42480// Fields allows partial responses to be retrieved. See
42481// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42482// for more information.
42483func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
42484	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42485	return c
42486}
42487
42488// Context sets the context to be used in this call's Do method. Any
42489// pending HTTP request will be aborted if the provided context is
42490// canceled.
42491func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
42492	c.ctx_ = ctx
42493	return c
42494}
42495
42496// Header returns an http.Header that can be modified by the caller to
42497// add HTTP headers to the request.
42498func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
42499	if c.header_ == nil {
42500		c.header_ = make(http.Header)
42501	}
42502	return c.header_
42503}
42504
42505func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
42506	reqHeaders := make(http.Header)
42507	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42508	for k, v := range c.header_ {
42509		reqHeaders[k] = v
42510	}
42511	reqHeaders.Set("User-Agent", c.s.userAgent())
42512	var body io.Reader = nil
42513	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
42514	if err != nil {
42515		return nil, err
42516	}
42517	reqHeaders.Set("Content-Type", "application/json")
42518	c.urlParams_.Set("alt", alt)
42519	c.urlParams_.Set("prettyPrint", "false")
42520	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
42521	urls += "?" + c.urlParams_.Encode()
42522	req, err := http.NewRequest("POST", urls, body)
42523	if err != nil {
42524		return nil, err
42525	}
42526	req.Header = reqHeaders
42527	googleapi.Expand(req.URL, map[string]string{
42528		"parent": c.parent,
42529	})
42530	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42531}
42532
42533// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create" call.
42534// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
42535// error will be non-nil. Any non-2xx status code is an error. Response
42536// headers are in either
42537// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
42538// or (if a response was returned at all) in
42539// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42540// whether the returned error was because http.StatusNotModified was
42541// returned.
42542func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
42543	gensupport.SetOptions(c.urlParams_, opts...)
42544	res, err := c.doRequest("json")
42545	if res != nil && res.StatusCode == http.StatusNotModified {
42546		if res.Body != nil {
42547			res.Body.Close()
42548		}
42549		return nil, &googleapi.Error{
42550			Code:   res.StatusCode,
42551			Header: res.Header,
42552		}
42553	}
42554	if err != nil {
42555		return nil, err
42556	}
42557	defer googleapi.CloseBody(res)
42558	if err := googleapi.CheckResponse(res); err != nil {
42559		return nil, err
42560	}
42561	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
42562		ServerResponse: googleapi.ServerResponse{
42563			Header:         res.Header,
42564			HTTPStatusCode: res.StatusCode,
42565		},
42566	}
42567	target := &ret
42568	if err := gensupport.DecodeResponse(target, res); err != nil {
42569		return nil, err
42570	}
42571	return ret, nil
42572	// {
42573	//   "description": "Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
42574	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
42575	//   "httpMethod": "POST",
42576	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create",
42577	//   "parameterOrder": [
42578	//     "parent"
42579	//   ],
42580	//   "parameters": {
42581	//     "parent": {
42582	//       "description": "Required. The session to create a session entity type for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
42583	//       "location": "path",
42584	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
42585	//       "required": true,
42586	//       "type": "string"
42587	//     }
42588	//   },
42589	//   "path": "v2beta1/{+parent}/entityTypes",
42590	//   "request": {
42591	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
42592	//   },
42593	//   "response": {
42594	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
42595	//   },
42596	//   "scopes": [
42597	//     "https://www.googleapis.com/auth/cloud-platform",
42598	//     "https://www.googleapis.com/auth/dialogflow"
42599	//   ]
42600	// }
42601
42602}
42603
42604// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete":
42605
42606type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
42607	s          *Service
42608	name       string
42609	urlParams_ gensupport.URLParams
42610	ctx_       context.Context
42611	header_    http.Header
42612}
42613
42614// Delete: Deletes the specified session entity type. This method
42615// doesn't work with Google Assistant integration. Contact Dialogflow
42616// support if you need to use session entities with Google Assistant
42617// integration.
42618//
42619// - name: The name of the entity type to delete. Supported formats: -
42620//   `projects//agent/sessions//entityTypes/` -
42621//   `projects//locations//agent/sessions//entityTypes/` -
42622//   `projects//agent/environments//users//sessions//entityTypes/` -
42623//   `projects//locations//agent/environments/
42624//   /users//sessions//entityTypes/` If `Location ID` is not specified
42625//   we assume default 'us' location. If `Environment ID` is not
42626//   specified, we assume default 'draft' environment. If `User ID` is
42627//   not specified, we assume default '-' user.
42628func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
42629	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42630	c.name = name
42631	return c
42632}
42633
42634// Fields allows partial responses to be retrieved. See
42635// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42636// for more information.
42637func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
42638	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42639	return c
42640}
42641
42642// Context sets the context to be used in this call's Do method. Any
42643// pending HTTP request will be aborted if the provided context is
42644// canceled.
42645func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
42646	c.ctx_ = ctx
42647	return c
42648}
42649
42650// Header returns an http.Header that can be modified by the caller to
42651// add HTTP headers to the request.
42652func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
42653	if c.header_ == nil {
42654		c.header_ = make(http.Header)
42655	}
42656	return c.header_
42657}
42658
42659func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
42660	reqHeaders := make(http.Header)
42661	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42662	for k, v := range c.header_ {
42663		reqHeaders[k] = v
42664	}
42665	reqHeaders.Set("User-Agent", c.s.userAgent())
42666	var body io.Reader = nil
42667	c.urlParams_.Set("alt", alt)
42668	c.urlParams_.Set("prettyPrint", "false")
42669	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42670	urls += "?" + c.urlParams_.Encode()
42671	req, err := http.NewRequest("DELETE", urls, body)
42672	if err != nil {
42673		return nil, err
42674	}
42675	req.Header = reqHeaders
42676	googleapi.Expand(req.URL, map[string]string{
42677		"name": c.name,
42678	})
42679	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42680}
42681
42682// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete" call.
42683// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
42684// non-2xx status code is an error. Response headers are in either
42685// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
42686// returned at all) in error.(*googleapi.Error).Header. Use
42687// googleapi.IsNotModified to check whether the returned error was
42688// because http.StatusNotModified was returned.
42689func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
42690	gensupport.SetOptions(c.urlParams_, opts...)
42691	res, err := c.doRequest("json")
42692	if res != nil && res.StatusCode == http.StatusNotModified {
42693		if res.Body != nil {
42694			res.Body.Close()
42695		}
42696		return nil, &googleapi.Error{
42697			Code:   res.StatusCode,
42698			Header: res.Header,
42699		}
42700	}
42701	if err != nil {
42702		return nil, err
42703	}
42704	defer googleapi.CloseBody(res)
42705	if err := googleapi.CheckResponse(res); err != nil {
42706		return nil, err
42707	}
42708	ret := &GoogleProtobufEmpty{
42709		ServerResponse: googleapi.ServerResponse{
42710			Header:         res.Header,
42711			HTTPStatusCode: res.StatusCode,
42712		},
42713	}
42714	target := &ret
42715	if err := gensupport.DecodeResponse(target, res); err != nil {
42716		return nil, err
42717	}
42718	return ret, nil
42719	// {
42720	//   "description": "Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
42721	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
42722	//   "httpMethod": "DELETE",
42723	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete",
42724	//   "parameterOrder": [
42725	//     "name"
42726	//   ],
42727	//   "parameters": {
42728	//     "name": {
42729	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
42730	//       "location": "path",
42731	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
42732	//       "required": true,
42733	//       "type": "string"
42734	//     }
42735	//   },
42736	//   "path": "v2beta1/{+name}",
42737	//   "response": {
42738	//     "$ref": "GoogleProtobufEmpty"
42739	//   },
42740	//   "scopes": [
42741	//     "https://www.googleapis.com/auth/cloud-platform",
42742	//     "https://www.googleapis.com/auth/dialogflow"
42743	//   ]
42744	// }
42745
42746}
42747
42748// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get":
42749
42750type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
42751	s            *Service
42752	name         string
42753	urlParams_   gensupport.URLParams
42754	ifNoneMatch_ string
42755	ctx_         context.Context
42756	header_      http.Header
42757}
42758
42759// Get: Retrieves the specified session entity type. This method doesn't
42760// work with Google Assistant integration. Contact Dialogflow support if
42761// you need to use session entities with Google Assistant integration.
42762//
42763// - name: The name of the session entity type. Supported formats: -
42764//   `projects//agent/sessions//entityTypes/` -
42765//   `projects//locations//agent/sessions//entityTypes/` -
42766//   `projects//agent/environments//users//sessions//entityTypes/` -
42767//   `projects//locations//agent/environments/
42768//   /users//sessions//entityTypes/` If `Location ID` is not specified
42769//   we assume default 'us' location. If `Environment ID` is not
42770//   specified, we assume default 'draft' environment. If `User ID` is
42771//   not specified, we assume default '-' user.
42772func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42773	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42774	c.name = name
42775	return c
42776}
42777
42778// Fields allows partial responses to be retrieved. See
42779// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42780// for more information.
42781func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42782	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42783	return c
42784}
42785
42786// IfNoneMatch sets the optional parameter which makes the operation
42787// fail if the object's ETag matches the given value. This is useful for
42788// getting updates only after the object has changed since the last
42789// request. Use googleapi.IsNotModified to check whether the response
42790// error from Do is the result of In-None-Match.
42791func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42792	c.ifNoneMatch_ = entityTag
42793	return c
42794}
42795
42796// Context sets the context to be used in this call's Do method. Any
42797// pending HTTP request will be aborted if the provided context is
42798// canceled.
42799func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42800	c.ctx_ = ctx
42801	return c
42802}
42803
42804// Header returns an http.Header that can be modified by the caller to
42805// add HTTP headers to the request.
42806func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
42807	if c.header_ == nil {
42808		c.header_ = make(http.Header)
42809	}
42810	return c.header_
42811}
42812
42813func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
42814	reqHeaders := make(http.Header)
42815	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42816	for k, v := range c.header_ {
42817		reqHeaders[k] = v
42818	}
42819	reqHeaders.Set("User-Agent", c.s.userAgent())
42820	if c.ifNoneMatch_ != "" {
42821		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42822	}
42823	var body io.Reader = nil
42824	c.urlParams_.Set("alt", alt)
42825	c.urlParams_.Set("prettyPrint", "false")
42826	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42827	urls += "?" + c.urlParams_.Encode()
42828	req, err := http.NewRequest("GET", urls, body)
42829	if err != nil {
42830		return nil, err
42831	}
42832	req.Header = reqHeaders
42833	googleapi.Expand(req.URL, map[string]string{
42834		"name": c.name,
42835	})
42836	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42837}
42838
42839// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get" call.
42840// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
42841// error will be non-nil. Any non-2xx status code is an error. Response
42842// headers are in either
42843// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
42844// or (if a response was returned at all) in
42845// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42846// whether the returned error was because http.StatusNotModified was
42847// returned.
42848func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
42849	gensupport.SetOptions(c.urlParams_, opts...)
42850	res, err := c.doRequest("json")
42851	if res != nil && res.StatusCode == http.StatusNotModified {
42852		if res.Body != nil {
42853			res.Body.Close()
42854		}
42855		return nil, &googleapi.Error{
42856			Code:   res.StatusCode,
42857			Header: res.Header,
42858		}
42859	}
42860	if err != nil {
42861		return nil, err
42862	}
42863	defer googleapi.CloseBody(res)
42864	if err := googleapi.CheckResponse(res); err != nil {
42865		return nil, err
42866	}
42867	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
42868		ServerResponse: googleapi.ServerResponse{
42869			Header:         res.Header,
42870			HTTPStatusCode: res.StatusCode,
42871		},
42872	}
42873	target := &ret
42874	if err := gensupport.DecodeResponse(target, res); err != nil {
42875		return nil, err
42876	}
42877	return ret, nil
42878	// {
42879	//   "description": "Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
42880	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
42881	//   "httpMethod": "GET",
42882	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get",
42883	//   "parameterOrder": [
42884	//     "name"
42885	//   ],
42886	//   "parameters": {
42887	//     "name": {
42888	//       "description": "Required. The name of the session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
42889	//       "location": "path",
42890	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
42891	//       "required": true,
42892	//       "type": "string"
42893	//     }
42894	//   },
42895	//   "path": "v2beta1/{+name}",
42896	//   "response": {
42897	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
42898	//   },
42899	//   "scopes": [
42900	//     "https://www.googleapis.com/auth/cloud-platform",
42901	//     "https://www.googleapis.com/auth/dialogflow"
42902	//   ]
42903	// }
42904
42905}
42906
42907// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list":
42908
42909type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
42910	s            *Service
42911	parent       string
42912	urlParams_   gensupport.URLParams
42913	ifNoneMatch_ string
42914	ctx_         context.Context
42915	header_      http.Header
42916}
42917
42918// List: Returns the list of all session entity types in the specified
42919// session. This method doesn't work with Google Assistant integration.
42920// Contact Dialogflow support if you need to use session entities with
42921// Google Assistant integration.
42922//
42923// - parent: The session to list all session entity types from.
42924//   Supported formats: - `projects//agent/sessions/, -
42925//   `projects//locations//agent/sessions/`, -
42926//   `projects//agent/environments//users//sessions/`, -
42927//   `projects//locations//agent/environments//users//sessions/`, If
42928//   `Location ID` is not specified we assume default 'us' location. If
42929//   `Environment ID` is not specified, we assume default 'draft'
42930//   environment. If `User ID` is not specified, we assume default '-'
42931//   user.
42932func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42933	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42934	c.parent = parent
42935	return c
42936}
42937
42938// PageSize sets the optional parameter "pageSize": The maximum number
42939// of items to return in a single page. By default 100 and at most 1000.
42940func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42941	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42942	return c
42943}
42944
42945// PageToken sets the optional parameter "pageToken": The
42946// next_page_token value returned from a previous list request.
42947func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42948	c.urlParams_.Set("pageToken", pageToken)
42949	return c
42950}
42951
42952// Fields allows partial responses to be retrieved. See
42953// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42954// for more information.
42955func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42956	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42957	return c
42958}
42959
42960// IfNoneMatch sets the optional parameter which makes the operation
42961// fail if the object's ETag matches the given value. This is useful for
42962// getting updates only after the object has changed since the last
42963// request. Use googleapi.IsNotModified to check whether the response
42964// error from Do is the result of In-None-Match.
42965func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42966	c.ifNoneMatch_ = entityTag
42967	return c
42968}
42969
42970// Context sets the context to be used in this call's Do method. Any
42971// pending HTTP request will be aborted if the provided context is
42972// canceled.
42973func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42974	c.ctx_ = ctx
42975	return c
42976}
42977
42978// Header returns an http.Header that can be modified by the caller to
42979// add HTTP headers to the request.
42980func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
42981	if c.header_ == nil {
42982		c.header_ = make(http.Header)
42983	}
42984	return c.header_
42985}
42986
42987func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
42988	reqHeaders := make(http.Header)
42989	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42990	for k, v := range c.header_ {
42991		reqHeaders[k] = v
42992	}
42993	reqHeaders.Set("User-Agent", c.s.userAgent())
42994	if c.ifNoneMatch_ != "" {
42995		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42996	}
42997	var body io.Reader = nil
42998	c.urlParams_.Set("alt", alt)
42999	c.urlParams_.Set("prettyPrint", "false")
43000	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
43001	urls += "?" + c.urlParams_.Encode()
43002	req, err := http.NewRequest("GET", urls, body)
43003	if err != nil {
43004		return nil, err
43005	}
43006	req.Header = reqHeaders
43007	googleapi.Expand(req.URL, map[string]string{
43008		"parent": c.parent,
43009	})
43010	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43011}
43012
43013// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list" call.
43014// Exactly one of
43015// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
43016// will be non-nil. Any non-2xx status code is an error. Response
43017// headers are in either
43018// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
43019// onse.Header or (if a response was returned at all) in
43020// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43021// whether the returned error was because http.StatusNotModified was
43022// returned.
43023func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
43024	gensupport.SetOptions(c.urlParams_, opts...)
43025	res, err := c.doRequest("json")
43026	if res != nil && res.StatusCode == http.StatusNotModified {
43027		if res.Body != nil {
43028			res.Body.Close()
43029		}
43030		return nil, &googleapi.Error{
43031			Code:   res.StatusCode,
43032			Header: res.Header,
43033		}
43034	}
43035	if err != nil {
43036		return nil, err
43037	}
43038	defer googleapi.CloseBody(res)
43039	if err := googleapi.CheckResponse(res); err != nil {
43040		return nil, err
43041	}
43042	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
43043		ServerResponse: googleapi.ServerResponse{
43044			Header:         res.Header,
43045			HTTPStatusCode: res.StatusCode,
43046		},
43047	}
43048	target := &ret
43049	if err := gensupport.DecodeResponse(target, res); err != nil {
43050		return nil, err
43051	}
43052	return ret, nil
43053	// {
43054	//   "description": "Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
43055	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
43056	//   "httpMethod": "GET",
43057	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list",
43058	//   "parameterOrder": [
43059	//     "parent"
43060	//   ],
43061	//   "parameters": {
43062	//     "pageSize": {
43063	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
43064	//       "format": "int32",
43065	//       "location": "query",
43066	//       "type": "integer"
43067	//     },
43068	//     "pageToken": {
43069	//       "description": "Optional. The next_page_token value returned from a previous list request.",
43070	//       "location": "query",
43071	//       "type": "string"
43072	//     },
43073	//     "parent": {
43074	//       "description": "Required. The session to list all session entity types from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
43075	//       "location": "path",
43076	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
43077	//       "required": true,
43078	//       "type": "string"
43079	//     }
43080	//   },
43081	//   "path": "v2beta1/{+parent}/entityTypes",
43082	//   "response": {
43083	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
43084	//   },
43085	//   "scopes": [
43086	//     "https://www.googleapis.com/auth/cloud-platform",
43087	//     "https://www.googleapis.com/auth/dialogflow"
43088	//   ]
43089	// }
43090
43091}
43092
43093// Pages invokes f for each page of results.
43094// A non-nil error returned from f will halt the iteration.
43095// The provided context supersedes any context provided to the Context method.
43096func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
43097	c.ctx_ = ctx
43098	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
43099	for {
43100		x, err := c.Do()
43101		if err != nil {
43102			return err
43103		}
43104		if err := f(x); err != nil {
43105			return err
43106		}
43107		if x.NextPageToken == "" {
43108			return nil
43109		}
43110		c.PageToken(x.NextPageToken)
43111	}
43112}
43113
43114// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch":
43115
43116type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
43117	s                                             *Service
43118	nameid                                        string
43119	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
43120	urlParams_                                    gensupport.URLParams
43121	ctx_                                          context.Context
43122	header_                                       http.Header
43123}
43124
43125// Patch: Updates the specified session entity type. This method doesn't
43126// work with Google Assistant integration. Contact Dialogflow support if
43127// you need to use session entities with Google Assistant integration.
43128//
43129// - name: The unique identifier of this session entity type. Supported
43130//   formats: - `projects//agent/sessions//entityTypes/` -
43131//   `projects//locations//agent/sessions//entityTypes/` -
43132//   `projects//agent/environments//users//sessions//entityTypes/` -
43133//   `projects//locations//agent/environments/
43134//   /users//sessions//entityTypes/` If `Location ID` is not specified
43135//   we assume default 'us' location. If `Environment ID` is not
43136//   specified, we assume default 'draft' environment. If `User ID` is
43137//   not specified, we assume default '-' user. `` must be the display
43138//   name of an existing entity type in the same agent that will be
43139//   overridden or supplemented.
43140func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
43141	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43142	c.nameid = nameid
43143	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
43144	return c
43145}
43146
43147// UpdateMask sets the optional parameter "updateMask": The mask to
43148// control which fields get updated.
43149func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
43150	c.urlParams_.Set("updateMask", updateMask)
43151	return c
43152}
43153
43154// Fields allows partial responses to be retrieved. See
43155// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43156// for more information.
43157func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
43158	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43159	return c
43160}
43161
43162// Context sets the context to be used in this call's Do method. Any
43163// pending HTTP request will be aborted if the provided context is
43164// canceled.
43165func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
43166	c.ctx_ = ctx
43167	return c
43168}
43169
43170// Header returns an http.Header that can be modified by the caller to
43171// add HTTP headers to the request.
43172func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
43173	if c.header_ == nil {
43174		c.header_ = make(http.Header)
43175	}
43176	return c.header_
43177}
43178
43179func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
43180	reqHeaders := make(http.Header)
43181	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43182	for k, v := range c.header_ {
43183		reqHeaders[k] = v
43184	}
43185	reqHeaders.Set("User-Agent", c.s.userAgent())
43186	var body io.Reader = nil
43187	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
43188	if err != nil {
43189		return nil, err
43190	}
43191	reqHeaders.Set("Content-Type", "application/json")
43192	c.urlParams_.Set("alt", alt)
43193	c.urlParams_.Set("prettyPrint", "false")
43194	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43195	urls += "?" + c.urlParams_.Encode()
43196	req, err := http.NewRequest("PATCH", urls, body)
43197	if err != nil {
43198		return nil, err
43199	}
43200	req.Header = reqHeaders
43201	googleapi.Expand(req.URL, map[string]string{
43202		"name": c.nameid,
43203	})
43204	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43205}
43206
43207// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch" call.
43208// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
43209// error will be non-nil. Any non-2xx status code is an error. Response
43210// headers are in either
43211// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
43212// or (if a response was returned at all) in
43213// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43214// whether the returned error was because http.StatusNotModified was
43215// returned.
43216func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
43217	gensupport.SetOptions(c.urlParams_, opts...)
43218	res, err := c.doRequest("json")
43219	if res != nil && res.StatusCode == http.StatusNotModified {
43220		if res.Body != nil {
43221			res.Body.Close()
43222		}
43223		return nil, &googleapi.Error{
43224			Code:   res.StatusCode,
43225			Header: res.Header,
43226		}
43227	}
43228	if err != nil {
43229		return nil, err
43230	}
43231	defer googleapi.CloseBody(res)
43232	if err := googleapi.CheckResponse(res); err != nil {
43233		return nil, err
43234	}
43235	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
43236		ServerResponse: googleapi.ServerResponse{
43237			Header:         res.Header,
43238			HTTPStatusCode: res.StatusCode,
43239		},
43240	}
43241	target := &ret
43242	if err := gensupport.DecodeResponse(target, res); err != nil {
43243		return nil, err
43244	}
43245	return ret, nil
43246	// {
43247	//   "description": "Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
43248	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
43249	//   "httpMethod": "PATCH",
43250	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch",
43251	//   "parameterOrder": [
43252	//     "name"
43253	//   ],
43254	//   "parameters": {
43255	//     "name": {
43256	//       "description": "Required. The unique identifier of this session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.",
43257	//       "location": "path",
43258	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
43259	//       "required": true,
43260	//       "type": "string"
43261	//     },
43262	//     "updateMask": {
43263	//       "description": "Optional. The mask to control which fields get updated.",
43264	//       "format": "google-fieldmask",
43265	//       "location": "query",
43266	//       "type": "string"
43267	//     }
43268	//   },
43269	//   "path": "v2beta1/{+name}",
43270	//   "request": {
43271	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
43272	//   },
43273	//   "response": {
43274	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
43275	//   },
43276	//   "scopes": [
43277	//     "https://www.googleapis.com/auth/cloud-platform",
43278	//     "https://www.googleapis.com/auth/dialogflow"
43279	//   ]
43280	// }
43281
43282}
43283
43284// method id "dialogflow.projects.locations.agent.intents.batchDelete":
43285
43286type ProjectsLocationsAgentIntentsBatchDeleteCall struct {
43287	s                                                     *Service
43288	parent                                                string
43289	googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
43290	urlParams_                                            gensupport.URLParams
43291	ctx_                                                  context.Context
43292	header_                                               http.Header
43293}
43294
43295// BatchDelete: Deletes intents in the specified agent. Note: You should
43296// always train an agent prior to sending it queries. See the training
43297// documentation (https://cloud.google.com/dialogflow/es/docs/training).
43298//
43299// - parent: The name of the agent to delete all entities types for.
43300//   Supported formats: - `projects//agent` -
43301//   `projects//locations//agent`.
43302func (r *ProjectsLocationsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsLocationsAgentIntentsBatchDeleteCall {
43303	c := &ProjectsLocationsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43304	c.parent = parent
43305	c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
43306	return c
43307}
43308
43309// Fields allows partial responses to be retrieved. See
43310// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43311// for more information.
43312func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchDeleteCall {
43313	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43314	return c
43315}
43316
43317// Context sets the context to be used in this call's Do method. Any
43318// pending HTTP request will be aborted if the provided context is
43319// canceled.
43320func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchDeleteCall {
43321	c.ctx_ = ctx
43322	return c
43323}
43324
43325// Header returns an http.Header that can be modified by the caller to
43326// add HTTP headers to the request.
43327func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Header() http.Header {
43328	if c.header_ == nil {
43329		c.header_ = make(http.Header)
43330	}
43331	return c.header_
43332}
43333
43334func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
43335	reqHeaders := make(http.Header)
43336	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43337	for k, v := range c.header_ {
43338		reqHeaders[k] = v
43339	}
43340	reqHeaders.Set("User-Agent", c.s.userAgent())
43341	var body io.Reader = nil
43342	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
43343	if err != nil {
43344		return nil, err
43345	}
43346	reqHeaders.Set("Content-Type", "application/json")
43347	c.urlParams_.Set("alt", alt)
43348	c.urlParams_.Set("prettyPrint", "false")
43349	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
43350	urls += "?" + c.urlParams_.Encode()
43351	req, err := http.NewRequest("POST", urls, body)
43352	if err != nil {
43353		return nil, err
43354	}
43355	req.Header = reqHeaders
43356	googleapi.Expand(req.URL, map[string]string{
43357		"parent": c.parent,
43358	})
43359	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43360}
43361
43362// Do executes the "dialogflow.projects.locations.agent.intents.batchDelete" call.
43363// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
43364// Any non-2xx status code is an error. Response headers are in either
43365// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
43366// was returned at all) in error.(*googleapi.Error).Header. Use
43367// googleapi.IsNotModified to check whether the returned error was
43368// because http.StatusNotModified was returned.
43369func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
43370	gensupport.SetOptions(c.urlParams_, opts...)
43371	res, err := c.doRequest("json")
43372	if res != nil && res.StatusCode == http.StatusNotModified {
43373		if res.Body != nil {
43374			res.Body.Close()
43375		}
43376		return nil, &googleapi.Error{
43377			Code:   res.StatusCode,
43378			Header: res.Header,
43379		}
43380	}
43381	if err != nil {
43382		return nil, err
43383	}
43384	defer googleapi.CloseBody(res)
43385	if err := googleapi.CheckResponse(res); err != nil {
43386		return nil, err
43387	}
43388	ret := &GoogleLongrunningOperation{
43389		ServerResponse: googleapi.ServerResponse{
43390			Header:         res.Header,
43391			HTTPStatusCode: res.StatusCode,
43392		},
43393	}
43394	target := &ret
43395	if err := gensupport.DecodeResponse(target, res); err != nil {
43396		return nil, err
43397	}
43398	return ret, nil
43399	// {
43400	//   "description": "Deletes intents in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
43401	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents:batchDelete",
43402	//   "httpMethod": "POST",
43403	//   "id": "dialogflow.projects.locations.agent.intents.batchDelete",
43404	//   "parameterOrder": [
43405	//     "parent"
43406	//   ],
43407	//   "parameters": {
43408	//     "parent": {
43409	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent`",
43410	//       "location": "path",
43411	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
43412	//       "required": true,
43413	//       "type": "string"
43414	//     }
43415	//   },
43416	//   "path": "v2beta1/{+parent}/intents:batchDelete",
43417	//   "request": {
43418	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest"
43419	//   },
43420	//   "response": {
43421	//     "$ref": "GoogleLongrunningOperation"
43422	//   },
43423	//   "scopes": [
43424	//     "https://www.googleapis.com/auth/cloud-platform",
43425	//     "https://www.googleapis.com/auth/dialogflow"
43426	//   ]
43427	// }
43428
43429}
43430
43431// method id "dialogflow.projects.locations.agent.intents.batchUpdate":
43432
43433type ProjectsLocationsAgentIntentsBatchUpdateCall struct {
43434	s                                                     *Service
43435	parent                                                string
43436	googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
43437	urlParams_                                            gensupport.URLParams
43438	ctx_                                                  context.Context
43439	header_                                               http.Header
43440}
43441
43442// BatchUpdate: Updates/Creates multiple intents in the specified agent.
43443// Note: You should always train an agent prior to sending it queries.
43444// See the training documentation
43445// (https://cloud.google.com/dialogflow/es/docs/training).
43446//
43447// - parent: The name of the agent to update or create intents in.
43448//   Supported formats: - `projects//agent` -
43449//   `projects//locations//agent`.
43450func (r *ProjectsLocationsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsLocationsAgentIntentsBatchUpdateCall {
43451	c := &ProjectsLocationsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43452	c.parent = parent
43453	c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
43454	return c
43455}
43456
43457// Fields allows partial responses to be retrieved. See
43458// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43459// for more information.
43460func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchUpdateCall {
43461	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43462	return c
43463}
43464
43465// Context sets the context to be used in this call's Do method. Any
43466// pending HTTP request will be aborted if the provided context is
43467// canceled.
43468func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchUpdateCall {
43469	c.ctx_ = ctx
43470	return c
43471}
43472
43473// Header returns an http.Header that can be modified by the caller to
43474// add HTTP headers to the request.
43475func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Header() http.Header {
43476	if c.header_ == nil {
43477		c.header_ = make(http.Header)
43478	}
43479	return c.header_
43480}
43481
43482func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
43483	reqHeaders := make(http.Header)
43484	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43485	for k, v := range c.header_ {
43486		reqHeaders[k] = v
43487	}
43488	reqHeaders.Set("User-Agent", c.s.userAgent())
43489	var body io.Reader = nil
43490	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
43491	if err != nil {
43492		return nil, err
43493	}
43494	reqHeaders.Set("Content-Type", "application/json")
43495	c.urlParams_.Set("alt", alt)
43496	c.urlParams_.Set("prettyPrint", "false")
43497	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
43498	urls += "?" + c.urlParams_.Encode()
43499	req, err := http.NewRequest("POST", urls, body)
43500	if err != nil {
43501		return nil, err
43502	}
43503	req.Header = reqHeaders
43504	googleapi.Expand(req.URL, map[string]string{
43505		"parent": c.parent,
43506	})
43507	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43508}
43509
43510// Do executes the "dialogflow.projects.locations.agent.intents.batchUpdate" call.
43511// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
43512// Any non-2xx status code is an error. Response headers are in either
43513// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
43514// was returned at all) in error.(*googleapi.Error).Header. Use
43515// googleapi.IsNotModified to check whether the returned error was
43516// because http.StatusNotModified was returned.
43517func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
43518	gensupport.SetOptions(c.urlParams_, opts...)
43519	res, err := c.doRequest("json")
43520	if res != nil && res.StatusCode == http.StatusNotModified {
43521		if res.Body != nil {
43522			res.Body.Close()
43523		}
43524		return nil, &googleapi.Error{
43525			Code:   res.StatusCode,
43526			Header: res.Header,
43527		}
43528	}
43529	if err != nil {
43530		return nil, err
43531	}
43532	defer googleapi.CloseBody(res)
43533	if err := googleapi.CheckResponse(res); err != nil {
43534		return nil, err
43535	}
43536	ret := &GoogleLongrunningOperation{
43537		ServerResponse: googleapi.ServerResponse{
43538			Header:         res.Header,
43539			HTTPStatusCode: res.StatusCode,
43540		},
43541	}
43542	target := &ret
43543	if err := gensupport.DecodeResponse(target, res); err != nil {
43544		return nil, err
43545	}
43546	return ret, nil
43547	// {
43548	//   "description": "Updates/Creates multiple intents in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
43549	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents:batchUpdate",
43550	//   "httpMethod": "POST",
43551	//   "id": "dialogflow.projects.locations.agent.intents.batchUpdate",
43552	//   "parameterOrder": [
43553	//     "parent"
43554	//   ],
43555	//   "parameters": {
43556	//     "parent": {
43557	//       "description": "Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent`",
43558	//       "location": "path",
43559	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
43560	//       "required": true,
43561	//       "type": "string"
43562	//     }
43563	//   },
43564	//   "path": "v2beta1/{+parent}/intents:batchUpdate",
43565	//   "request": {
43566	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest"
43567	//   },
43568	//   "response": {
43569	//     "$ref": "GoogleLongrunningOperation"
43570	//   },
43571	//   "scopes": [
43572	//     "https://www.googleapis.com/auth/cloud-platform",
43573	//     "https://www.googleapis.com/auth/dialogflow"
43574	//   ]
43575	// }
43576
43577}
43578
43579// method id "dialogflow.projects.locations.agent.intents.create":
43580
43581type ProjectsLocationsAgentIntentsCreateCall struct {
43582	s                                  *Service
43583	parent                             string
43584	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
43585	urlParams_                         gensupport.URLParams
43586	ctx_                               context.Context
43587	header_                            http.Header
43588}
43589
43590// Create: Creates an intent in the specified agent. Note: You should
43591// always train an agent prior to sending it queries. See the training
43592// documentation (https://cloud.google.com/dialogflow/es/docs/training).
43593//
43594// - parent: The agent to create a intent for. Supported formats: -
43595//   `projects//agent` - `projects//locations//agent`.
43596func (r *ProjectsLocationsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsCreateCall {
43597	c := &ProjectsLocationsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43598	c.parent = parent
43599	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
43600	return c
43601}
43602
43603// IntentView sets the optional parameter "intentView": The resource
43604// view to apply to the returned intent.
43605//
43606// Possible values:
43607//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
43608// in the response.
43609//   "INTENT_VIEW_FULL" - All fields are populated.
43610func (c *ProjectsLocationsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsCreateCall {
43611	c.urlParams_.Set("intentView", intentView)
43612	return c
43613}
43614
43615// LanguageCode sets the optional parameter "languageCode": The language
43616// used to access language-specific data. If not specified, the agent's
43617// default language is used. For more information, see Multilingual
43618// intent and entity data
43619// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
43620func (c *ProjectsLocationsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsCreateCall {
43621	c.urlParams_.Set("languageCode", languageCode)
43622	return c
43623}
43624
43625// Fields allows partial responses to be retrieved. See
43626// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43627// for more information.
43628func (c *ProjectsLocationsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsCreateCall {
43629	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43630	return c
43631}
43632
43633// Context sets the context to be used in this call's Do method. Any
43634// pending HTTP request will be aborted if the provided context is
43635// canceled.
43636func (c *ProjectsLocationsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsCreateCall {
43637	c.ctx_ = ctx
43638	return c
43639}
43640
43641// Header returns an http.Header that can be modified by the caller to
43642// add HTTP headers to the request.
43643func (c *ProjectsLocationsAgentIntentsCreateCall) Header() http.Header {
43644	if c.header_ == nil {
43645		c.header_ = make(http.Header)
43646	}
43647	return c.header_
43648}
43649
43650func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
43651	reqHeaders := make(http.Header)
43652	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43653	for k, v := range c.header_ {
43654		reqHeaders[k] = v
43655	}
43656	reqHeaders.Set("User-Agent", c.s.userAgent())
43657	var body io.Reader = nil
43658	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
43659	if err != nil {
43660		return nil, err
43661	}
43662	reqHeaders.Set("Content-Type", "application/json")
43663	c.urlParams_.Set("alt", alt)
43664	c.urlParams_.Set("prettyPrint", "false")
43665	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
43666	urls += "?" + c.urlParams_.Encode()
43667	req, err := http.NewRequest("POST", urls, body)
43668	if err != nil {
43669		return nil, err
43670	}
43671	req.Header = reqHeaders
43672	googleapi.Expand(req.URL, map[string]string{
43673		"parent": c.parent,
43674	})
43675	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43676}
43677
43678// Do executes the "dialogflow.projects.locations.agent.intents.create" call.
43679// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
43680// non-nil. Any non-2xx status code is an error. Response headers are in
43681// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
43682// (if a response was returned at all) in
43683// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43684// whether the returned error was because http.StatusNotModified was
43685// returned.
43686func (c *ProjectsLocationsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
43687	gensupport.SetOptions(c.urlParams_, opts...)
43688	res, err := c.doRequest("json")
43689	if res != nil && res.StatusCode == http.StatusNotModified {
43690		if res.Body != nil {
43691			res.Body.Close()
43692		}
43693		return nil, &googleapi.Error{
43694			Code:   res.StatusCode,
43695			Header: res.Header,
43696		}
43697	}
43698	if err != nil {
43699		return nil, err
43700	}
43701	defer googleapi.CloseBody(res)
43702	if err := googleapi.CheckResponse(res); err != nil {
43703		return nil, err
43704	}
43705	ret := &GoogleCloudDialogflowV2beta1Intent{
43706		ServerResponse: googleapi.ServerResponse{
43707			Header:         res.Header,
43708			HTTPStatusCode: res.StatusCode,
43709		},
43710	}
43711	target := &ret
43712	if err := gensupport.DecodeResponse(target, res); err != nil {
43713		return nil, err
43714	}
43715	return ret, nil
43716	// {
43717	//   "description": "Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
43718	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents",
43719	//   "httpMethod": "POST",
43720	//   "id": "dialogflow.projects.locations.agent.intents.create",
43721	//   "parameterOrder": [
43722	//     "parent"
43723	//   ],
43724	//   "parameters": {
43725	//     "intentView": {
43726	//       "description": "Optional. The resource view to apply to the returned intent.",
43727	//       "enum": [
43728	//         "INTENT_VIEW_UNSPECIFIED",
43729	//         "INTENT_VIEW_FULL"
43730	//       ],
43731	//       "enumDescriptions": [
43732	//         "Training phrases field is not populated in the response.",
43733	//         "All fields are populated."
43734	//       ],
43735	//       "location": "query",
43736	//       "type": "string"
43737	//     },
43738	//     "languageCode": {
43739	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
43740	//       "location": "query",
43741	//       "type": "string"
43742	//     },
43743	//     "parent": {
43744	//       "description": "Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent`",
43745	//       "location": "path",
43746	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
43747	//       "required": true,
43748	//       "type": "string"
43749	//     }
43750	//   },
43751	//   "path": "v2beta1/{+parent}/intents",
43752	//   "request": {
43753	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
43754	//   },
43755	//   "response": {
43756	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
43757	//   },
43758	//   "scopes": [
43759	//     "https://www.googleapis.com/auth/cloud-platform",
43760	//     "https://www.googleapis.com/auth/dialogflow"
43761	//   ]
43762	// }
43763
43764}
43765
43766// method id "dialogflow.projects.locations.agent.intents.delete":
43767
43768type ProjectsLocationsAgentIntentsDeleteCall struct {
43769	s          *Service
43770	name       string
43771	urlParams_ gensupport.URLParams
43772	ctx_       context.Context
43773	header_    http.Header
43774}
43775
43776// Delete: Deletes the specified intent and its direct or indirect
43777// followup intents. Note: You should always train an agent prior to
43778// sending it queries. See the training documentation
43779// (https://cloud.google.com/dialogflow/es/docs/training).
43780//
43781// - name: The name of the intent to delete. If this intent has direct
43782//   or indirect followup intents, we also delete them. Supported
43783//   formats: - `projects//agent/intents/` -
43784//   `projects//locations//agent/intents/`.
43785func (r *ProjectsLocationsAgentIntentsService) Delete(name string) *ProjectsLocationsAgentIntentsDeleteCall {
43786	c := &ProjectsLocationsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43787	c.name = name
43788	return c
43789}
43790
43791// Fields allows partial responses to be retrieved. See
43792// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43793// for more information.
43794func (c *ProjectsLocationsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsDeleteCall {
43795	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43796	return c
43797}
43798
43799// Context sets the context to be used in this call's Do method. Any
43800// pending HTTP request will be aborted if the provided context is
43801// canceled.
43802func (c *ProjectsLocationsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsDeleteCall {
43803	c.ctx_ = ctx
43804	return c
43805}
43806
43807// Header returns an http.Header that can be modified by the caller to
43808// add HTTP headers to the request.
43809func (c *ProjectsLocationsAgentIntentsDeleteCall) Header() http.Header {
43810	if c.header_ == nil {
43811		c.header_ = make(http.Header)
43812	}
43813	return c.header_
43814}
43815
43816func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
43817	reqHeaders := make(http.Header)
43818	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43819	for k, v := range c.header_ {
43820		reqHeaders[k] = v
43821	}
43822	reqHeaders.Set("User-Agent", c.s.userAgent())
43823	var body io.Reader = nil
43824	c.urlParams_.Set("alt", alt)
43825	c.urlParams_.Set("prettyPrint", "false")
43826	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43827	urls += "?" + c.urlParams_.Encode()
43828	req, err := http.NewRequest("DELETE", urls, body)
43829	if err != nil {
43830		return nil, err
43831	}
43832	req.Header = reqHeaders
43833	googleapi.Expand(req.URL, map[string]string{
43834		"name": c.name,
43835	})
43836	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43837}
43838
43839// Do executes the "dialogflow.projects.locations.agent.intents.delete" call.
43840// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
43841// non-2xx status code is an error. Response headers are in either
43842// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
43843// returned at all) in error.(*googleapi.Error).Header. Use
43844// googleapi.IsNotModified to check whether the returned error was
43845// because http.StatusNotModified was returned.
43846func (c *ProjectsLocationsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
43847	gensupport.SetOptions(c.urlParams_, opts...)
43848	res, err := c.doRequest("json")
43849	if res != nil && res.StatusCode == http.StatusNotModified {
43850		if res.Body != nil {
43851			res.Body.Close()
43852		}
43853		return nil, &googleapi.Error{
43854			Code:   res.StatusCode,
43855			Header: res.Header,
43856		}
43857	}
43858	if err != nil {
43859		return nil, err
43860	}
43861	defer googleapi.CloseBody(res)
43862	if err := googleapi.CheckResponse(res); err != nil {
43863		return nil, err
43864	}
43865	ret := &GoogleProtobufEmpty{
43866		ServerResponse: googleapi.ServerResponse{
43867			Header:         res.Header,
43868			HTTPStatusCode: res.StatusCode,
43869		},
43870	}
43871	target := &ret
43872	if err := gensupport.DecodeResponse(target, res); err != nil {
43873		return nil, err
43874	}
43875	return ret, nil
43876	// {
43877	//   "description": "Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
43878	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents/{intentsId}",
43879	//   "httpMethod": "DELETE",
43880	//   "id": "dialogflow.projects.locations.agent.intents.delete",
43881	//   "parameterOrder": [
43882	//     "name"
43883	//   ],
43884	//   "parameters": {
43885	//     "name": {
43886	//       "description": "Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
43887	//       "location": "path",
43888	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$",
43889	//       "required": true,
43890	//       "type": "string"
43891	//     }
43892	//   },
43893	//   "path": "v2beta1/{+name}",
43894	//   "response": {
43895	//     "$ref": "GoogleProtobufEmpty"
43896	//   },
43897	//   "scopes": [
43898	//     "https://www.googleapis.com/auth/cloud-platform",
43899	//     "https://www.googleapis.com/auth/dialogflow"
43900	//   ]
43901	// }
43902
43903}
43904
43905// method id "dialogflow.projects.locations.agent.intents.get":
43906
43907type ProjectsLocationsAgentIntentsGetCall struct {
43908	s            *Service
43909	name         string
43910	urlParams_   gensupport.URLParams
43911	ifNoneMatch_ string
43912	ctx_         context.Context
43913	header_      http.Header
43914}
43915
43916// Get: Retrieves the specified intent.
43917//
43918// - name: The name of the intent. Supported formats: -
43919//   `projects//agent/intents/` - `projects//locations//agent/intents/`.
43920func (r *ProjectsLocationsAgentIntentsService) Get(name string) *ProjectsLocationsAgentIntentsGetCall {
43921	c := &ProjectsLocationsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43922	c.name = name
43923	return c
43924}
43925
43926// IntentView sets the optional parameter "intentView": The resource
43927// view to apply to the returned intent.
43928//
43929// Possible values:
43930//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
43931// in the response.
43932//   "INTENT_VIEW_FULL" - All fields are populated.
43933func (c *ProjectsLocationsAgentIntentsGetCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsGetCall {
43934	c.urlParams_.Set("intentView", intentView)
43935	return c
43936}
43937
43938// LanguageCode sets the optional parameter "languageCode": The language
43939// used to access language-specific data. If not specified, the agent's
43940// default language is used. For more information, see Multilingual
43941// intent and entity data
43942// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
43943func (c *ProjectsLocationsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsGetCall {
43944	c.urlParams_.Set("languageCode", languageCode)
43945	return c
43946}
43947
43948// Fields allows partial responses to be retrieved. See
43949// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43950// for more information.
43951func (c *ProjectsLocationsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsGetCall {
43952	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43953	return c
43954}
43955
43956// IfNoneMatch sets the optional parameter which makes the operation
43957// fail if the object's ETag matches the given value. This is useful for
43958// getting updates only after the object has changed since the last
43959// request. Use googleapi.IsNotModified to check whether the response
43960// error from Do is the result of In-None-Match.
43961func (c *ProjectsLocationsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsGetCall {
43962	c.ifNoneMatch_ = entityTag
43963	return c
43964}
43965
43966// Context sets the context to be used in this call's Do method. Any
43967// pending HTTP request will be aborted if the provided context is
43968// canceled.
43969func (c *ProjectsLocationsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsGetCall {
43970	c.ctx_ = ctx
43971	return c
43972}
43973
43974// Header returns an http.Header that can be modified by the caller to
43975// add HTTP headers to the request.
43976func (c *ProjectsLocationsAgentIntentsGetCall) Header() http.Header {
43977	if c.header_ == nil {
43978		c.header_ = make(http.Header)
43979	}
43980	return c.header_
43981}
43982
43983func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
43984	reqHeaders := make(http.Header)
43985	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43986	for k, v := range c.header_ {
43987		reqHeaders[k] = v
43988	}
43989	reqHeaders.Set("User-Agent", c.s.userAgent())
43990	if c.ifNoneMatch_ != "" {
43991		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43992	}
43993	var body io.Reader = nil
43994	c.urlParams_.Set("alt", alt)
43995	c.urlParams_.Set("prettyPrint", "false")
43996	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43997	urls += "?" + c.urlParams_.Encode()
43998	req, err := http.NewRequest("GET", urls, body)
43999	if err != nil {
44000		return nil, err
44001	}
44002	req.Header = reqHeaders
44003	googleapi.Expand(req.URL, map[string]string{
44004		"name": c.name,
44005	})
44006	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44007}
44008
44009// Do executes the "dialogflow.projects.locations.agent.intents.get" call.
44010// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
44011// non-nil. Any non-2xx status code is an error. Response headers are in
44012// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
44013// (if a response was returned at all) in
44014// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44015// whether the returned error was because http.StatusNotModified was
44016// returned.
44017func (c *ProjectsLocationsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
44018	gensupport.SetOptions(c.urlParams_, opts...)
44019	res, err := c.doRequest("json")
44020	if res != nil && res.StatusCode == http.StatusNotModified {
44021		if res.Body != nil {
44022			res.Body.Close()
44023		}
44024		return nil, &googleapi.Error{
44025			Code:   res.StatusCode,
44026			Header: res.Header,
44027		}
44028	}
44029	if err != nil {
44030		return nil, err
44031	}
44032	defer googleapi.CloseBody(res)
44033	if err := googleapi.CheckResponse(res); err != nil {
44034		return nil, err
44035	}
44036	ret := &GoogleCloudDialogflowV2beta1Intent{
44037		ServerResponse: googleapi.ServerResponse{
44038			Header:         res.Header,
44039			HTTPStatusCode: res.StatusCode,
44040		},
44041	}
44042	target := &ret
44043	if err := gensupport.DecodeResponse(target, res); err != nil {
44044		return nil, err
44045	}
44046	return ret, nil
44047	// {
44048	//   "description": "Retrieves the specified intent.",
44049	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents/{intentsId}",
44050	//   "httpMethod": "GET",
44051	//   "id": "dialogflow.projects.locations.agent.intents.get",
44052	//   "parameterOrder": [
44053	//     "name"
44054	//   ],
44055	//   "parameters": {
44056	//     "intentView": {
44057	//       "description": "Optional. The resource view to apply to the returned intent.",
44058	//       "enum": [
44059	//         "INTENT_VIEW_UNSPECIFIED",
44060	//         "INTENT_VIEW_FULL"
44061	//       ],
44062	//       "enumDescriptions": [
44063	//         "Training phrases field is not populated in the response.",
44064	//         "All fields are populated."
44065	//       ],
44066	//       "location": "query",
44067	//       "type": "string"
44068	//     },
44069	//     "languageCode": {
44070	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
44071	//       "location": "query",
44072	//       "type": "string"
44073	//     },
44074	//     "name": {
44075	//       "description": "Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
44076	//       "location": "path",
44077	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$",
44078	//       "required": true,
44079	//       "type": "string"
44080	//     }
44081	//   },
44082	//   "path": "v2beta1/{+name}",
44083	//   "response": {
44084	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
44085	//   },
44086	//   "scopes": [
44087	//     "https://www.googleapis.com/auth/cloud-platform",
44088	//     "https://www.googleapis.com/auth/dialogflow"
44089	//   ]
44090	// }
44091
44092}
44093
44094// method id "dialogflow.projects.locations.agent.intents.list":
44095
44096type ProjectsLocationsAgentIntentsListCall struct {
44097	s            *Service
44098	parent       string
44099	urlParams_   gensupport.URLParams
44100	ifNoneMatch_ string
44101	ctx_         context.Context
44102	header_      http.Header
44103}
44104
44105// List: Returns the list of all intents in the specified agent.
44106//
44107// - parent: The agent to list all intents from. Format:
44108//   `projects//agent` or `projects//locations//agent`. Alternatively,
44109//   you can specify the environment to list intents for. Format:
44110//   `projects//agent/environments/` or
44111//   `projects//locations//agent/environments/`. Note: training phrases
44112//   of the intents will not be returned for non-draft environment.
44113func (r *ProjectsLocationsAgentIntentsService) List(parent string) *ProjectsLocationsAgentIntentsListCall {
44114	c := &ProjectsLocationsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44115	c.parent = parent
44116	return c
44117}
44118
44119// IntentView sets the optional parameter "intentView": The resource
44120// view to apply to the returned intent.
44121//
44122// Possible values:
44123//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
44124// in the response.
44125//   "INTENT_VIEW_FULL" - All fields are populated.
44126func (c *ProjectsLocationsAgentIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsListCall {
44127	c.urlParams_.Set("intentView", intentView)
44128	return c
44129}
44130
44131// LanguageCode sets the optional parameter "languageCode": The language
44132// used to access language-specific data. If not specified, the agent's
44133// default language is used. For more information, see Multilingual
44134// intent and entity data
44135// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
44136func (c *ProjectsLocationsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsListCall {
44137	c.urlParams_.Set("languageCode", languageCode)
44138	return c
44139}
44140
44141// PageSize sets the optional parameter "pageSize": The maximum number
44142// of items to return in a single page. By default 100 and at most 1000.
44143func (c *ProjectsLocationsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentIntentsListCall {
44144	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44145	return c
44146}
44147
44148// PageToken sets the optional parameter "pageToken": The
44149// next_page_token value returned from a previous list request.
44150func (c *ProjectsLocationsAgentIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentIntentsListCall {
44151	c.urlParams_.Set("pageToken", pageToken)
44152	return c
44153}
44154
44155// Fields allows partial responses to be retrieved. See
44156// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44157// for more information.
44158func (c *ProjectsLocationsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsListCall {
44159	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44160	return c
44161}
44162
44163// IfNoneMatch sets the optional parameter which makes the operation
44164// fail if the object's ETag matches the given value. This is useful for
44165// getting updates only after the object has changed since the last
44166// request. Use googleapi.IsNotModified to check whether the response
44167// error from Do is the result of In-None-Match.
44168func (c *ProjectsLocationsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsListCall {
44169	c.ifNoneMatch_ = entityTag
44170	return c
44171}
44172
44173// Context sets the context to be used in this call's Do method. Any
44174// pending HTTP request will be aborted if the provided context is
44175// canceled.
44176func (c *ProjectsLocationsAgentIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsListCall {
44177	c.ctx_ = ctx
44178	return c
44179}
44180
44181// Header returns an http.Header that can be modified by the caller to
44182// add HTTP headers to the request.
44183func (c *ProjectsLocationsAgentIntentsListCall) Header() http.Header {
44184	if c.header_ == nil {
44185		c.header_ = make(http.Header)
44186	}
44187	return c.header_
44188}
44189
44190func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
44191	reqHeaders := make(http.Header)
44192	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
44193	for k, v := range c.header_ {
44194		reqHeaders[k] = v
44195	}
44196	reqHeaders.Set("User-Agent", c.s.userAgent())
44197	if c.ifNoneMatch_ != "" {
44198		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44199	}
44200	var body io.Reader = nil
44201	c.urlParams_.Set("alt", alt)
44202	c.urlParams_.Set("prettyPrint", "false")
44203	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
44204	urls += "?" + c.urlParams_.Encode()
44205	req, err := http.NewRequest("GET", urls, body)
44206	if err != nil {
44207		return nil, err
44208	}
44209	req.Header = reqHeaders
44210	googleapi.Expand(req.URL, map[string]string{
44211		"parent": c.parent,
44212	})
44213	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44214}
44215
44216// Do executes the "dialogflow.projects.locations.agent.intents.list" call.
44217// Exactly one of *GoogleCloudDialogflowV2beta1ListIntentsResponse or
44218// error will be non-nil. Any non-2xx status code is an error. Response
44219// headers are in either
44220// *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header
44221//  or (if a response was returned at all) in
44222// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44223// whether the returned error was because http.StatusNotModified was
44224// returned.
44225func (c *ProjectsLocationsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
44226	gensupport.SetOptions(c.urlParams_, opts...)
44227	res, err := c.doRequest("json")
44228	if res != nil && res.StatusCode == http.StatusNotModified {
44229		if res.Body != nil {
44230			res.Body.Close()
44231		}
44232		return nil, &googleapi.Error{
44233			Code:   res.StatusCode,
44234			Header: res.Header,
44235		}
44236	}
44237	if err != nil {
44238		return nil, err
44239	}
44240	defer googleapi.CloseBody(res)
44241	if err := googleapi.CheckResponse(res); err != nil {
44242		return nil, err
44243	}
44244	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
44245		ServerResponse: googleapi.ServerResponse{
44246			Header:         res.Header,
44247			HTTPStatusCode: res.StatusCode,
44248		},
44249	}
44250	target := &ret
44251	if err := gensupport.DecodeResponse(target, res); err != nil {
44252		return nil, err
44253	}
44254	return ret, nil
44255	// {
44256	//   "description": "Returns the list of all intents in the specified agent.",
44257	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents",
44258	//   "httpMethod": "GET",
44259	//   "id": "dialogflow.projects.locations.agent.intents.list",
44260	//   "parameterOrder": [
44261	//     "parent"
44262	//   ],
44263	//   "parameters": {
44264	//     "intentView": {
44265	//       "description": "Optional. The resource view to apply to the returned intent.",
44266	//       "enum": [
44267	//         "INTENT_VIEW_UNSPECIFIED",
44268	//         "INTENT_VIEW_FULL"
44269	//       ],
44270	//       "enumDescriptions": [
44271	//         "Training phrases field is not populated in the response.",
44272	//         "All fields are populated."
44273	//       ],
44274	//       "location": "query",
44275	//       "type": "string"
44276	//     },
44277	//     "languageCode": {
44278	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
44279	//       "location": "query",
44280	//       "type": "string"
44281	//     },
44282	//     "pageSize": {
44283	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
44284	//       "format": "int32",
44285	//       "location": "query",
44286	//       "type": "integer"
44287	//     },
44288	//     "pageToken": {
44289	//       "description": "Optional. The next_page_token value returned from a previous list request.",
44290	//       "location": "query",
44291	//       "type": "string"
44292	//     },
44293	//     "parent": {
44294	//       "description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
44295	//       "location": "path",
44296	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
44297	//       "required": true,
44298	//       "type": "string"
44299	//     }
44300	//   },
44301	//   "path": "v2beta1/{+parent}/intents",
44302	//   "response": {
44303	//     "$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
44304	//   },
44305	//   "scopes": [
44306	//     "https://www.googleapis.com/auth/cloud-platform",
44307	//     "https://www.googleapis.com/auth/dialogflow"
44308	//   ]
44309	// }
44310
44311}
44312
44313// Pages invokes f for each page of results.
44314// A non-nil error returned from f will halt the iteration.
44315// The provided context supersedes any context provided to the Context method.
44316func (c *ProjectsLocationsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
44317	c.ctx_ = ctx
44318	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
44319	for {
44320		x, err := c.Do()
44321		if err != nil {
44322			return err
44323		}
44324		if err := f(x); err != nil {
44325			return err
44326		}
44327		if x.NextPageToken == "" {
44328			return nil
44329		}
44330		c.PageToken(x.NextPageToken)
44331	}
44332}
44333
44334// method id "dialogflow.projects.locations.agent.intents.patch":
44335
44336type ProjectsLocationsAgentIntentsPatchCall struct {
44337	s                                  *Service
44338	nameid                             string
44339	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
44340	urlParams_                         gensupport.URLParams
44341	ctx_                               context.Context
44342	header_                            http.Header
44343}
44344
44345// Patch: Updates the specified intent. Note: You should always train an
44346// agent prior to sending it queries. See the training documentation
44347// (https://cloud.google.com/dialogflow/es/docs/training).
44348//
44349// - name: Optional. The unique identifier of this intent. Required for
44350//   Intents.UpdateIntent and Intents.BatchUpdateIntents methods.
44351//   Supported formats: - `projects//agent/intents/` -
44352//   `projects//locations//agent/intents/`.
44353func (r *ProjectsLocationsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsPatchCall {
44354	c := &ProjectsLocationsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44355	c.nameid = nameid
44356	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
44357	return c
44358}
44359
44360// IntentView sets the optional parameter "intentView": The resource
44361// view to apply to the returned intent.
44362//
44363// Possible values:
44364//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
44365// in the response.
44366//   "INTENT_VIEW_FULL" - All fields are populated.
44367func (c *ProjectsLocationsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsPatchCall {
44368	c.urlParams_.Set("intentView", intentView)
44369	return c
44370}
44371
44372// LanguageCode sets the optional parameter "languageCode": The language
44373// used to access language-specific data. If not specified, the agent's
44374// default language is used. For more information, see Multilingual
44375// intent and entity data
44376// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
44377func (c *ProjectsLocationsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsPatchCall {
44378	c.urlParams_.Set("languageCode", languageCode)
44379	return c
44380}
44381
44382// UpdateMask sets the optional parameter "updateMask": The mask to
44383// control which fields get updated.
44384func (c *ProjectsLocationsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentIntentsPatchCall {
44385	c.urlParams_.Set("updateMask", updateMask)
44386	return c
44387}
44388
44389// Fields allows partial responses to be retrieved. See
44390// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44391// for more information.
44392func (c *ProjectsLocationsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsPatchCall {
44393	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44394	return c
44395}
44396
44397// Context sets the context to be used in this call's Do method. Any
44398// pending HTTP request will be aborted if the provided context is
44399// canceled.
44400func (c *ProjectsLocationsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsPatchCall {
44401	c.ctx_ = ctx
44402	return c
44403}
44404
44405// Header returns an http.Header that can be modified by the caller to
44406// add HTTP headers to the request.
44407func (c *ProjectsLocationsAgentIntentsPatchCall) Header() http.Header {
44408	if c.header_ == nil {
44409		c.header_ = make(http.Header)
44410	}
44411	return c.header_
44412}
44413
44414func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
44415	reqHeaders := make(http.Header)
44416	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
44417	for k, v := range c.header_ {
44418		reqHeaders[k] = v
44419	}
44420	reqHeaders.Set("User-Agent", c.s.userAgent())
44421	var body io.Reader = nil
44422	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
44423	if err != nil {
44424		return nil, err
44425	}
44426	reqHeaders.Set("Content-Type", "application/json")
44427	c.urlParams_.Set("alt", alt)
44428	c.urlParams_.Set("prettyPrint", "false")
44429	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44430	urls += "?" + c.urlParams_.Encode()
44431	req, err := http.NewRequest("PATCH", urls, body)
44432	if err != nil {
44433		return nil, err
44434	}
44435	req.Header = reqHeaders
44436	googleapi.Expand(req.URL, map[string]string{
44437		"name": c.nameid,
44438	})
44439	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44440}
44441
44442// Do executes the "dialogflow.projects.locations.agent.intents.patch" call.
44443// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
44444// non-nil. Any non-2xx status code is an error. Response headers are in
44445// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
44446// (if a response was returned at all) in
44447// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44448// whether the returned error was because http.StatusNotModified was
44449// returned.
44450func (c *ProjectsLocationsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
44451	gensupport.SetOptions(c.urlParams_, opts...)
44452	res, err := c.doRequest("json")
44453	if res != nil && res.StatusCode == http.StatusNotModified {
44454		if res.Body != nil {
44455			res.Body.Close()
44456		}
44457		return nil, &googleapi.Error{
44458			Code:   res.StatusCode,
44459			Header: res.Header,
44460		}
44461	}
44462	if err != nil {
44463		return nil, err
44464	}
44465	defer googleapi.CloseBody(res)
44466	if err := googleapi.CheckResponse(res); err != nil {
44467		return nil, err
44468	}
44469	ret := &GoogleCloudDialogflowV2beta1Intent{
44470		ServerResponse: googleapi.ServerResponse{
44471			Header:         res.Header,
44472			HTTPStatusCode: res.StatusCode,
44473		},
44474	}
44475	target := &ret
44476	if err := gensupport.DecodeResponse(target, res); err != nil {
44477		return nil, err
44478	}
44479	return ret, nil
44480	// {
44481	//   "description": "Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).",
44482	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents/{intentsId}",
44483	//   "httpMethod": "PATCH",
44484	//   "id": "dialogflow.projects.locations.agent.intents.patch",
44485	//   "parameterOrder": [
44486	//     "name"
44487	//   ],
44488	//   "parameters": {
44489	//     "intentView": {
44490	//       "description": "Optional. The resource view to apply to the returned intent.",
44491	//       "enum": [
44492	//         "INTENT_VIEW_UNSPECIFIED",
44493	//         "INTENT_VIEW_FULL"
44494	//       ],
44495	//       "enumDescriptions": [
44496	//         "Training phrases field is not populated in the response.",
44497	//         "All fields are populated."
44498	//       ],
44499	//       "location": "query",
44500	//       "type": "string"
44501	//     },
44502	//     "languageCode": {
44503	//       "description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
44504	//       "location": "query",
44505	//       "type": "string"
44506	//     },
44507	//     "name": {
44508	//       "description": "Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
44509	//       "location": "path",
44510	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$",
44511	//       "required": true,
44512	//       "type": "string"
44513	//     },
44514	//     "updateMask": {
44515	//       "description": "Optional. The mask to control which fields get updated.",
44516	//       "format": "google-fieldmask",
44517	//       "location": "query",
44518	//       "type": "string"
44519	//     }
44520	//   },
44521	//   "path": "v2beta1/{+name}",
44522	//   "request": {
44523	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
44524	//   },
44525	//   "response": {
44526	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
44527	//   },
44528	//   "scopes": [
44529	//     "https://www.googleapis.com/auth/cloud-platform",
44530	//     "https://www.googleapis.com/auth/dialogflow"
44531	//   ]
44532	// }
44533
44534}
44535
44536// method id "dialogflow.projects.locations.agent.sessions.deleteContexts":
44537
44538type ProjectsLocationsAgentSessionsDeleteContextsCall struct {
44539	s          *Service
44540	parent     string
44541	urlParams_ gensupport.URLParams
44542	ctx_       context.Context
44543	header_    http.Header
44544}
44545
44546// DeleteContexts: Deletes all active contexts in the specified session.
44547//
44548// - parent: The name of the session to delete all contexts from.
44549//   Supported formats: - `projects//agent/sessions/, -
44550//   `projects//locations//agent/sessions/`, -
44551//   `projects//agent/environments//users//sessions/`, -
44552//   `projects//locations//agent/environments//users//sessions/`, If
44553//   `Location ID` is not specified we assume default 'us' location. If
44554//   `Environment ID` is not specified we assume default 'draft'
44555//   environment. If `User ID` is not specified, we assume default '-'
44556//   user.
44557func (r *ProjectsLocationsAgentSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentSessionsDeleteContextsCall {
44558	c := &ProjectsLocationsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44559	c.parent = parent
44560	return c
44561}
44562
44563// Fields allows partial responses to be retrieved. See
44564// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44565// for more information.
44566func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDeleteContextsCall {
44567	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44568	return c
44569}
44570
44571// Context sets the context to be used in this call's Do method. Any
44572// pending HTTP request will be aborted if the provided context is
44573// canceled.
44574func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDeleteContextsCall {
44575	c.ctx_ = ctx
44576	return c
44577}
44578
44579// Header returns an http.Header that can be modified by the caller to
44580// add HTTP headers to the request.
44581func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Header() http.Header {
44582	if c.header_ == nil {
44583		c.header_ = make(http.Header)
44584	}
44585	return c.header_
44586}
44587
44588func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
44589	reqHeaders := make(http.Header)
44590	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
44591	for k, v := range c.header_ {
44592		reqHeaders[k] = v
44593	}
44594	reqHeaders.Set("User-Agent", c.s.userAgent())
44595	var body io.Reader = nil
44596	c.urlParams_.Set("alt", alt)
44597	c.urlParams_.Set("prettyPrint", "false")
44598	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
44599	urls += "?" + c.urlParams_.Encode()
44600	req, err := http.NewRequest("DELETE", urls, body)
44601	if err != nil {
44602		return nil, err
44603	}
44604	req.Header = reqHeaders
44605	googleapi.Expand(req.URL, map[string]string{
44606		"parent": c.parent,
44607	})
44608	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44609}
44610
44611// Do executes the "dialogflow.projects.locations.agent.sessions.deleteContexts" call.
44612// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
44613// non-2xx status code is an error. Response headers are in either
44614// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
44615// returned at all) in error.(*googleapi.Error).Header. Use
44616// googleapi.IsNotModified to check whether the returned error was
44617// because http.StatusNotModified was returned.
44618func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
44619	gensupport.SetOptions(c.urlParams_, opts...)
44620	res, err := c.doRequest("json")
44621	if res != nil && res.StatusCode == http.StatusNotModified {
44622		if res.Body != nil {
44623			res.Body.Close()
44624		}
44625		return nil, &googleapi.Error{
44626			Code:   res.StatusCode,
44627			Header: res.Header,
44628		}
44629	}
44630	if err != nil {
44631		return nil, err
44632	}
44633	defer googleapi.CloseBody(res)
44634	if err := googleapi.CheckResponse(res); err != nil {
44635		return nil, err
44636	}
44637	ret := &GoogleProtobufEmpty{
44638		ServerResponse: googleapi.ServerResponse{
44639			Header:         res.Header,
44640			HTTPStatusCode: res.StatusCode,
44641		},
44642	}
44643	target := &ret
44644	if err := gensupport.DecodeResponse(target, res); err != nil {
44645		return nil, err
44646	}
44647	return ret, nil
44648	// {
44649	//   "description": "Deletes all active contexts in the specified session.",
44650	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts",
44651	//   "httpMethod": "DELETE",
44652	//   "id": "dialogflow.projects.locations.agent.sessions.deleteContexts",
44653	//   "parameterOrder": [
44654	//     "parent"
44655	//   ],
44656	//   "parameters": {
44657	//     "parent": {
44658	//       "description": "Required. The name of the session to delete all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
44659	//       "location": "path",
44660	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
44661	//       "required": true,
44662	//       "type": "string"
44663	//     }
44664	//   },
44665	//   "path": "v2beta1/{+parent}/contexts",
44666	//   "response": {
44667	//     "$ref": "GoogleProtobufEmpty"
44668	//   },
44669	//   "scopes": [
44670	//     "https://www.googleapis.com/auth/cloud-platform",
44671	//     "https://www.googleapis.com/auth/dialogflow"
44672	//   ]
44673	// }
44674
44675}
44676
44677// method id "dialogflow.projects.locations.agent.sessions.detectIntent":
44678
44679type ProjectsLocationsAgentSessionsDetectIntentCall struct {
44680	s                                               *Service
44681	sessionid                                       string
44682	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
44683	urlParams_                                      gensupport.URLParams
44684	ctx_                                            context.Context
44685	header_                                         http.Header
44686}
44687
44688// DetectIntent: Processes a natural language query and returns
44689// structured, actionable data as a result. This method is not
44690// idempotent, because it may cause contexts and session entity types to
44691// be updated, which in turn might affect results of future queries.
44692// Note: Always use agent versions for production traffic. See Versions
44693// and environments
44694// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
44695//
44696// - session: The name of the session this query is sent to. Supported
44697//   formats: - `projects//agent/sessions/, -
44698//   `projects//locations//agent/sessions/`, -
44699//   `projects//agent/environments//users//sessions/`, -
44700//   `projects//locations//agent/environments//users//sessions/`, If
44701//   `Location ID` is not specified we assume default 'us' location. If
44702//   `Environment ID` is not specified, we assume default 'draft'
44703//   environment (`Environment ID` might be referred to as environment
44704//   name at some places). If `User ID` is not specified, we are using
44705//   "-". It's up to the API caller to choose an appropriate `Session
44706//   ID` and `User Id`. They can be a random number or some type of user
44707//   and session identifiers (preferably hashed). The length of the
44708//   `Session ID` and `User ID` must not exceed 36 characters. For more
44709//   information, see the API interactions guide
44710//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
44711//   Always use agent versions for production traffic. See Versions and
44712//   environments
44713//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
44714func (r *ProjectsLocationsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentSessionsDetectIntentCall {
44715	c := &ProjectsLocationsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44716	c.sessionid = sessionid
44717	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
44718	return c
44719}
44720
44721// Fields allows partial responses to be retrieved. See
44722// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44723// for more information.
44724func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDetectIntentCall {
44725	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44726	return c
44727}
44728
44729// Context sets the context to be used in this call's Do method. Any
44730// pending HTTP request will be aborted if the provided context is
44731// canceled.
44732func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDetectIntentCall {
44733	c.ctx_ = ctx
44734	return c
44735}
44736
44737// Header returns an http.Header that can be modified by the caller to
44738// add HTTP headers to the request.
44739func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Header() http.Header {
44740	if c.header_ == nil {
44741		c.header_ = make(http.Header)
44742	}
44743	return c.header_
44744}
44745
44746func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
44747	reqHeaders := make(http.Header)
44748	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
44749	for k, v := range c.header_ {
44750		reqHeaders[k] = v
44751	}
44752	reqHeaders.Set("User-Agent", c.s.userAgent())
44753	var body io.Reader = nil
44754	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
44755	if err != nil {
44756		return nil, err
44757	}
44758	reqHeaders.Set("Content-Type", "application/json")
44759	c.urlParams_.Set("alt", alt)
44760	c.urlParams_.Set("prettyPrint", "false")
44761	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
44762	urls += "?" + c.urlParams_.Encode()
44763	req, err := http.NewRequest("POST", urls, body)
44764	if err != nil {
44765		return nil, err
44766	}
44767	req.Header = reqHeaders
44768	googleapi.Expand(req.URL, map[string]string{
44769		"session": c.sessionid,
44770	})
44771	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44772}
44773
44774// Do executes the "dialogflow.projects.locations.agent.sessions.detectIntent" call.
44775// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
44776// error will be non-nil. Any non-2xx status code is an error. Response
44777// headers are in either
44778// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
44779// r or (if a response was returned at all) in
44780// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44781// whether the returned error was because http.StatusNotModified was
44782// returned.
44783func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
44784	gensupport.SetOptions(c.urlParams_, opts...)
44785	res, err := c.doRequest("json")
44786	if res != nil && res.StatusCode == http.StatusNotModified {
44787		if res.Body != nil {
44788			res.Body.Close()
44789		}
44790		return nil, &googleapi.Error{
44791			Code:   res.StatusCode,
44792			Header: res.Header,
44793		}
44794	}
44795	if err != nil {
44796		return nil, err
44797	}
44798	defer googleapi.CloseBody(res)
44799	if err := googleapi.CheckResponse(res); err != nil {
44800		return nil, err
44801	}
44802	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
44803		ServerResponse: googleapi.ServerResponse{
44804			Header:         res.Header,
44805			HTTPStatusCode: res.StatusCode,
44806		},
44807	}
44808	target := &ret
44809	if err := gensupport.DecodeResponse(target, res); err != nil {
44810		return nil, err
44811	}
44812	return ret, nil
44813	// {
44814	//   "description": "Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
44815	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}:detectIntent",
44816	//   "httpMethod": "POST",
44817	//   "id": "dialogflow.projects.locations.agent.sessions.detectIntent",
44818	//   "parameterOrder": [
44819	//     "session"
44820	//   ],
44821	//   "parameters": {
44822	//     "session": {
44823	//       "description": "Required. The name of the session this query is sent to. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment (`Environment ID` might be referred to as environment name at some places). If `User ID` is not specified, we are using \"-\". It's up to the API caller to choose an appropriate `Session ID` and `User Id`. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the `Session ID` and `User ID` must not exceed 36 characters. For more information, see the [API interactions guide](https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
44824	//       "location": "path",
44825	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
44826	//       "required": true,
44827	//       "type": "string"
44828	//     }
44829	//   },
44830	//   "path": "v2beta1/{+session}:detectIntent",
44831	//   "request": {
44832	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
44833	//   },
44834	//   "response": {
44835	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
44836	//   },
44837	//   "scopes": [
44838	//     "https://www.googleapis.com/auth/cloud-platform",
44839	//     "https://www.googleapis.com/auth/dialogflow"
44840	//   ]
44841	// }
44842
44843}
44844
44845// method id "dialogflow.projects.locations.agent.sessions.contexts.create":
44846
44847type ProjectsLocationsAgentSessionsContextsCreateCall struct {
44848	s                                   *Service
44849	parent                              string
44850	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
44851	urlParams_                          gensupport.URLParams
44852	ctx_                                context.Context
44853	header_                             http.Header
44854}
44855
44856// Create: Creates a context. If the specified context already exists,
44857// overrides the context.
44858//
44859// - parent: The session to create a context for. Supported formats: -
44860//   `projects//agent/sessions/, -
44861//   `projects//locations//agent/sessions/`, -
44862//   `projects//agent/environments//users//sessions/`, -
44863//   `projects//locations//agent/environments//users//sessions/`, If
44864//   `Location ID` is not specified we assume default 'us' location. If
44865//   `Environment ID` is not specified, we assume default 'draft'
44866//   environment. If `User ID` is not specified, we assume default '-'
44867//   user.
44868func (r *ProjectsLocationsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
44869	c := &ProjectsLocationsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44870	c.parent = parent
44871	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
44872	return c
44873}
44874
44875// Fields allows partial responses to be retrieved. See
44876// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44877// for more information.
44878func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsCreateCall {
44879	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44880	return c
44881}
44882
44883// Context sets the context to be used in this call's Do method. Any
44884// pending HTTP request will be aborted if the provided context is
44885// canceled.
44886func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
44887	c.ctx_ = ctx
44888	return c
44889}
44890
44891// Header returns an http.Header that can be modified by the caller to
44892// add HTTP headers to the request.
44893func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Header() http.Header {
44894	if c.header_ == nil {
44895		c.header_ = make(http.Header)
44896	}
44897	return c.header_
44898}
44899
44900func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
44901	reqHeaders := make(http.Header)
44902	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
44903	for k, v := range c.header_ {
44904		reqHeaders[k] = v
44905	}
44906	reqHeaders.Set("User-Agent", c.s.userAgent())
44907	var body io.Reader = nil
44908	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
44909	if err != nil {
44910		return nil, err
44911	}
44912	reqHeaders.Set("Content-Type", "application/json")
44913	c.urlParams_.Set("alt", alt)
44914	c.urlParams_.Set("prettyPrint", "false")
44915	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
44916	urls += "?" + c.urlParams_.Encode()
44917	req, err := http.NewRequest("POST", urls, body)
44918	if err != nil {
44919		return nil, err
44920	}
44921	req.Header = reqHeaders
44922	googleapi.Expand(req.URL, map[string]string{
44923		"parent": c.parent,
44924	})
44925	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44926}
44927
44928// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.create" call.
44929// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
44930// non-nil. Any non-2xx status code is an error. Response headers are in
44931// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
44932// (if a response was returned at all) in
44933// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44934// whether the returned error was because http.StatusNotModified was
44935// returned.
44936func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
44937	gensupport.SetOptions(c.urlParams_, opts...)
44938	res, err := c.doRequest("json")
44939	if res != nil && res.StatusCode == http.StatusNotModified {
44940		if res.Body != nil {
44941			res.Body.Close()
44942		}
44943		return nil, &googleapi.Error{
44944			Code:   res.StatusCode,
44945			Header: res.Header,
44946		}
44947	}
44948	if err != nil {
44949		return nil, err
44950	}
44951	defer googleapi.CloseBody(res)
44952	if err := googleapi.CheckResponse(res); err != nil {
44953		return nil, err
44954	}
44955	ret := &GoogleCloudDialogflowV2beta1Context{
44956		ServerResponse: googleapi.ServerResponse{
44957			Header:         res.Header,
44958			HTTPStatusCode: res.StatusCode,
44959		},
44960	}
44961	target := &ret
44962	if err := gensupport.DecodeResponse(target, res); err != nil {
44963		return nil, err
44964	}
44965	return ret, nil
44966	// {
44967	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
44968	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts",
44969	//   "httpMethod": "POST",
44970	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.create",
44971	//   "parameterOrder": [
44972	//     "parent"
44973	//   ],
44974	//   "parameters": {
44975	//     "parent": {
44976	//       "description": "Required. The session to create a context for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
44977	//       "location": "path",
44978	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
44979	//       "required": true,
44980	//       "type": "string"
44981	//     }
44982	//   },
44983	//   "path": "v2beta1/{+parent}/contexts",
44984	//   "request": {
44985	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
44986	//   },
44987	//   "response": {
44988	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
44989	//   },
44990	//   "scopes": [
44991	//     "https://www.googleapis.com/auth/cloud-platform",
44992	//     "https://www.googleapis.com/auth/dialogflow"
44993	//   ]
44994	// }
44995
44996}
44997
44998// method id "dialogflow.projects.locations.agent.sessions.contexts.delete":
44999
45000type ProjectsLocationsAgentSessionsContextsDeleteCall struct {
45001	s          *Service
45002	name       string
45003	urlParams_ gensupport.URLParams
45004	ctx_       context.Context
45005	header_    http.Header
45006}
45007
45008// Delete: Deletes the specified context.
45009//
45010// - name: The name of the context to delete. Supported formats: -
45011//   `projects//agent/sessions//contexts/`, -
45012//   `projects//locations//agent/sessions//contexts/`, -
45013//   `projects//agent/environments//users//sessions//contexts/`, -
45014//   `projects//locations//agent/environments//users//sessions//contexts/
45015//   `, If `Location ID` is not specified we assume default 'us'
45016//   location. If `Environment ID` is not specified, we assume default
45017//   'draft' environment. If `User ID` is not specified, we assume
45018//   default '-' user.
45019func (r *ProjectsLocationsAgentSessionsContextsService) Delete(name string) *ProjectsLocationsAgentSessionsContextsDeleteCall {
45020	c := &ProjectsLocationsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45021	c.name = name
45022	return c
45023}
45024
45025// Fields allows partial responses to be retrieved. See
45026// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45027// for more information.
45028func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsDeleteCall {
45029	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45030	return c
45031}
45032
45033// Context sets the context to be used in this call's Do method. Any
45034// pending HTTP request will be aborted if the provided context is
45035// canceled.
45036func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsDeleteCall {
45037	c.ctx_ = ctx
45038	return c
45039}
45040
45041// Header returns an http.Header that can be modified by the caller to
45042// add HTTP headers to the request.
45043func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Header() http.Header {
45044	if c.header_ == nil {
45045		c.header_ = make(http.Header)
45046	}
45047	return c.header_
45048}
45049
45050func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
45051	reqHeaders := make(http.Header)
45052	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
45053	for k, v := range c.header_ {
45054		reqHeaders[k] = v
45055	}
45056	reqHeaders.Set("User-Agent", c.s.userAgent())
45057	var body io.Reader = nil
45058	c.urlParams_.Set("alt", alt)
45059	c.urlParams_.Set("prettyPrint", "false")
45060	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45061	urls += "?" + c.urlParams_.Encode()
45062	req, err := http.NewRequest("DELETE", urls, body)
45063	if err != nil {
45064		return nil, err
45065	}
45066	req.Header = reqHeaders
45067	googleapi.Expand(req.URL, map[string]string{
45068		"name": c.name,
45069	})
45070	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45071}
45072
45073// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.delete" call.
45074// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
45075// non-2xx status code is an error. Response headers are in either
45076// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
45077// returned at all) in error.(*googleapi.Error).Header. Use
45078// googleapi.IsNotModified to check whether the returned error was
45079// because http.StatusNotModified was returned.
45080func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
45081	gensupport.SetOptions(c.urlParams_, opts...)
45082	res, err := c.doRequest("json")
45083	if res != nil && res.StatusCode == http.StatusNotModified {
45084		if res.Body != nil {
45085			res.Body.Close()
45086		}
45087		return nil, &googleapi.Error{
45088			Code:   res.StatusCode,
45089			Header: res.Header,
45090		}
45091	}
45092	if err != nil {
45093		return nil, err
45094	}
45095	defer googleapi.CloseBody(res)
45096	if err := googleapi.CheckResponse(res); err != nil {
45097		return nil, err
45098	}
45099	ret := &GoogleProtobufEmpty{
45100		ServerResponse: googleapi.ServerResponse{
45101			Header:         res.Header,
45102			HTTPStatusCode: res.StatusCode,
45103		},
45104	}
45105	target := &ret
45106	if err := gensupport.DecodeResponse(target, res); err != nil {
45107		return nil, err
45108	}
45109	return ret, nil
45110	// {
45111	//   "description": "Deletes the specified context.",
45112	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
45113	//   "httpMethod": "DELETE",
45114	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.delete",
45115	//   "parameterOrder": [
45116	//     "name"
45117	//   ],
45118	//   "parameters": {
45119	//     "name": {
45120	//       "description": "Required. The name of the context to delete. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
45121	//       "location": "path",
45122	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
45123	//       "required": true,
45124	//       "type": "string"
45125	//     }
45126	//   },
45127	//   "path": "v2beta1/{+name}",
45128	//   "response": {
45129	//     "$ref": "GoogleProtobufEmpty"
45130	//   },
45131	//   "scopes": [
45132	//     "https://www.googleapis.com/auth/cloud-platform",
45133	//     "https://www.googleapis.com/auth/dialogflow"
45134	//   ]
45135	// }
45136
45137}
45138
45139// method id "dialogflow.projects.locations.agent.sessions.contexts.get":
45140
45141type ProjectsLocationsAgentSessionsContextsGetCall struct {
45142	s            *Service
45143	name         string
45144	urlParams_   gensupport.URLParams
45145	ifNoneMatch_ string
45146	ctx_         context.Context
45147	header_      http.Header
45148}
45149
45150// Get: Retrieves the specified context.
45151//
45152// - name: The name of the context. Supported formats: -
45153//   `projects//agent/sessions//contexts/`, -
45154//   `projects//locations//agent/sessions//contexts/`, -
45155//   `projects//agent/environments//users//sessions//contexts/`, -
45156//   `projects//locations//agent/environments//users//sessions//contexts/
45157//   `, If `Location ID` is not specified we assume default 'us'
45158//   location. If `Environment ID` is not specified, we assume default
45159//   'draft' environment. If `User ID` is not specified, we assume
45160//   default '-' user.
45161func (r *ProjectsLocationsAgentSessionsContextsService) Get(name string) *ProjectsLocationsAgentSessionsContextsGetCall {
45162	c := &ProjectsLocationsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45163	c.name = name
45164	return c
45165}
45166
45167// Fields allows partial responses to be retrieved. See
45168// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45169// for more information.
45170func (c *ProjectsLocationsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsGetCall {
45171	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45172	return c
45173}
45174
45175// IfNoneMatch sets the optional parameter which makes the operation
45176// fail if the object's ETag matches the given value. This is useful for
45177// getting updates only after the object has changed since the last
45178// request. Use googleapi.IsNotModified to check whether the response
45179// error from Do is the result of In-None-Match.
45180func (c *ProjectsLocationsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsGetCall {
45181	c.ifNoneMatch_ = entityTag
45182	return c
45183}
45184
45185// Context sets the context to be used in this call's Do method. Any
45186// pending HTTP request will be aborted if the provided context is
45187// canceled.
45188func (c *ProjectsLocationsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsGetCall {
45189	c.ctx_ = ctx
45190	return c
45191}
45192
45193// Header returns an http.Header that can be modified by the caller to
45194// add HTTP headers to the request.
45195func (c *ProjectsLocationsAgentSessionsContextsGetCall) Header() http.Header {
45196	if c.header_ == nil {
45197		c.header_ = make(http.Header)
45198	}
45199	return c.header_
45200}
45201
45202func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
45203	reqHeaders := make(http.Header)
45204	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
45205	for k, v := range c.header_ {
45206		reqHeaders[k] = v
45207	}
45208	reqHeaders.Set("User-Agent", c.s.userAgent())
45209	if c.ifNoneMatch_ != "" {
45210		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45211	}
45212	var body io.Reader = nil
45213	c.urlParams_.Set("alt", alt)
45214	c.urlParams_.Set("prettyPrint", "false")
45215	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45216	urls += "?" + c.urlParams_.Encode()
45217	req, err := http.NewRequest("GET", urls, body)
45218	if err != nil {
45219		return nil, err
45220	}
45221	req.Header = reqHeaders
45222	googleapi.Expand(req.URL, map[string]string{
45223		"name": c.name,
45224	})
45225	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45226}
45227
45228// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.get" call.
45229// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
45230// non-nil. Any non-2xx status code is an error. Response headers are in
45231// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
45232// (if a response was returned at all) in
45233// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45234// whether the returned error was because http.StatusNotModified was
45235// returned.
45236func (c *ProjectsLocationsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
45237	gensupport.SetOptions(c.urlParams_, opts...)
45238	res, err := c.doRequest("json")
45239	if res != nil && res.StatusCode == http.StatusNotModified {
45240		if res.Body != nil {
45241			res.Body.Close()
45242		}
45243		return nil, &googleapi.Error{
45244			Code:   res.StatusCode,
45245			Header: res.Header,
45246		}
45247	}
45248	if err != nil {
45249		return nil, err
45250	}
45251	defer googleapi.CloseBody(res)
45252	if err := googleapi.CheckResponse(res); err != nil {
45253		return nil, err
45254	}
45255	ret := &GoogleCloudDialogflowV2beta1Context{
45256		ServerResponse: googleapi.ServerResponse{
45257			Header:         res.Header,
45258			HTTPStatusCode: res.StatusCode,
45259		},
45260	}
45261	target := &ret
45262	if err := gensupport.DecodeResponse(target, res); err != nil {
45263		return nil, err
45264	}
45265	return ret, nil
45266	// {
45267	//   "description": "Retrieves the specified context.",
45268	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
45269	//   "httpMethod": "GET",
45270	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.get",
45271	//   "parameterOrder": [
45272	//     "name"
45273	//   ],
45274	//   "parameters": {
45275	//     "name": {
45276	//       "description": "Required. The name of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
45277	//       "location": "path",
45278	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
45279	//       "required": true,
45280	//       "type": "string"
45281	//     }
45282	//   },
45283	//   "path": "v2beta1/{+name}",
45284	//   "response": {
45285	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
45286	//   },
45287	//   "scopes": [
45288	//     "https://www.googleapis.com/auth/cloud-platform",
45289	//     "https://www.googleapis.com/auth/dialogflow"
45290	//   ]
45291	// }
45292
45293}
45294
45295// method id "dialogflow.projects.locations.agent.sessions.contexts.list":
45296
45297type ProjectsLocationsAgentSessionsContextsListCall struct {
45298	s            *Service
45299	parent       string
45300	urlParams_   gensupport.URLParams
45301	ifNoneMatch_ string
45302	ctx_         context.Context
45303	header_      http.Header
45304}
45305
45306// List: Returns the list of all contexts in the specified session.
45307//
45308// - parent: The session to list all contexts from. Supported formats: -
45309//   `projects//agent/sessions/, -
45310//   `projects//locations//agent/sessions/`, -
45311//   `projects//agent/environments//users//sessions/`, -
45312//   `projects//locations//agent/environments//users//sessions/`, If
45313//   `Location ID` is not specified we assume default 'us' location. If
45314//   `Environment ID` is not specified, we assume default 'draft'
45315//   environment. If `User ID` is not specified, we assume default '-'
45316//   user.
45317func (r *ProjectsLocationsAgentSessionsContextsService) List(parent string) *ProjectsLocationsAgentSessionsContextsListCall {
45318	c := &ProjectsLocationsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45319	c.parent = parent
45320	return c
45321}
45322
45323// PageSize sets the optional parameter "pageSize": The maximum number
45324// of items to return in a single page. By default 100 and at most 1000.
45325func (c *ProjectsLocationsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsContextsListCall {
45326	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
45327	return c
45328}
45329
45330// PageToken sets the optional parameter "pageToken": The
45331// next_page_token value returned from a previous list request.
45332func (c *ProjectsLocationsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsContextsListCall {
45333	c.urlParams_.Set("pageToken", pageToken)
45334	return c
45335}
45336
45337// Fields allows partial responses to be retrieved. See
45338// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45339// for more information.
45340func (c *ProjectsLocationsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsListCall {
45341	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45342	return c
45343}
45344
45345// IfNoneMatch sets the optional parameter which makes the operation
45346// fail if the object's ETag matches the given value. This is useful for
45347// getting updates only after the object has changed since the last
45348// request. Use googleapi.IsNotModified to check whether the response
45349// error from Do is the result of In-None-Match.
45350func (c *ProjectsLocationsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsListCall {
45351	c.ifNoneMatch_ = entityTag
45352	return c
45353}
45354
45355// Context sets the context to be used in this call's Do method. Any
45356// pending HTTP request will be aborted if the provided context is
45357// canceled.
45358func (c *ProjectsLocationsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsListCall {
45359	c.ctx_ = ctx
45360	return c
45361}
45362
45363// Header returns an http.Header that can be modified by the caller to
45364// add HTTP headers to the request.
45365func (c *ProjectsLocationsAgentSessionsContextsListCall) Header() http.Header {
45366	if c.header_ == nil {
45367		c.header_ = make(http.Header)
45368	}
45369	return c.header_
45370}
45371
45372func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
45373	reqHeaders := make(http.Header)
45374	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
45375	for k, v := range c.header_ {
45376		reqHeaders[k] = v
45377	}
45378	reqHeaders.Set("User-Agent", c.s.userAgent())
45379	if c.ifNoneMatch_ != "" {
45380		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45381	}
45382	var body io.Reader = nil
45383	c.urlParams_.Set("alt", alt)
45384	c.urlParams_.Set("prettyPrint", "false")
45385	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
45386	urls += "?" + c.urlParams_.Encode()
45387	req, err := http.NewRequest("GET", urls, body)
45388	if err != nil {
45389		return nil, err
45390	}
45391	req.Header = reqHeaders
45392	googleapi.Expand(req.URL, map[string]string{
45393		"parent": c.parent,
45394	})
45395	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45396}
45397
45398// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.list" call.
45399// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
45400// error will be non-nil. Any non-2xx status code is an error. Response
45401// headers are in either
45402// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
45403// r or (if a response was returned at all) in
45404// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45405// whether the returned error was because http.StatusNotModified was
45406// returned.
45407func (c *ProjectsLocationsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
45408	gensupport.SetOptions(c.urlParams_, opts...)
45409	res, err := c.doRequest("json")
45410	if res != nil && res.StatusCode == http.StatusNotModified {
45411		if res.Body != nil {
45412			res.Body.Close()
45413		}
45414		return nil, &googleapi.Error{
45415			Code:   res.StatusCode,
45416			Header: res.Header,
45417		}
45418	}
45419	if err != nil {
45420		return nil, err
45421	}
45422	defer googleapi.CloseBody(res)
45423	if err := googleapi.CheckResponse(res); err != nil {
45424		return nil, err
45425	}
45426	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
45427		ServerResponse: googleapi.ServerResponse{
45428			Header:         res.Header,
45429			HTTPStatusCode: res.StatusCode,
45430		},
45431	}
45432	target := &ret
45433	if err := gensupport.DecodeResponse(target, res); err != nil {
45434		return nil, err
45435	}
45436	return ret, nil
45437	// {
45438	//   "description": "Returns the list of all contexts in the specified session.",
45439	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts",
45440	//   "httpMethod": "GET",
45441	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.list",
45442	//   "parameterOrder": [
45443	//     "parent"
45444	//   ],
45445	//   "parameters": {
45446	//     "pageSize": {
45447	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
45448	//       "format": "int32",
45449	//       "location": "query",
45450	//       "type": "integer"
45451	//     },
45452	//     "pageToken": {
45453	//       "description": "Optional. The next_page_token value returned from a previous list request.",
45454	//       "location": "query",
45455	//       "type": "string"
45456	//     },
45457	//     "parent": {
45458	//       "description": "Required. The session to list all contexts from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
45459	//       "location": "path",
45460	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
45461	//       "required": true,
45462	//       "type": "string"
45463	//     }
45464	//   },
45465	//   "path": "v2beta1/{+parent}/contexts",
45466	//   "response": {
45467	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
45468	//   },
45469	//   "scopes": [
45470	//     "https://www.googleapis.com/auth/cloud-platform",
45471	//     "https://www.googleapis.com/auth/dialogflow"
45472	//   ]
45473	// }
45474
45475}
45476
45477// Pages invokes f for each page of results.
45478// A non-nil error returned from f will halt the iteration.
45479// The provided context supersedes any context provided to the Context method.
45480func (c *ProjectsLocationsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
45481	c.ctx_ = ctx
45482	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
45483	for {
45484		x, err := c.Do()
45485		if err != nil {
45486			return err
45487		}
45488		if err := f(x); err != nil {
45489			return err
45490		}
45491		if x.NextPageToken == "" {
45492			return nil
45493		}
45494		c.PageToken(x.NextPageToken)
45495	}
45496}
45497
45498// method id "dialogflow.projects.locations.agent.sessions.contexts.patch":
45499
45500type ProjectsLocationsAgentSessionsContextsPatchCall struct {
45501	s                                   *Service
45502	nameid                              string
45503	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
45504	urlParams_                          gensupport.URLParams
45505	ctx_                                context.Context
45506	header_                             http.Header
45507}
45508
45509// Patch: Updates the specified context.
45510//
45511// - name: The unique identifier of the context. Supported formats: -
45512//   `projects//agent/sessions//contexts/`, -
45513//   `projects//locations//agent/sessions//contexts/`, -
45514//   `projects//agent/environments//users//sessions//contexts/`, -
45515//   `projects//locations//agent/environments//users//sessions//contexts/
45516//   `, The `Context ID` is always converted to lowercase, may only
45517//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
45518//   long. If `Environment ID` is not specified, we assume default
45519//   'draft' environment. If `User ID` is not specified, we assume
45520//   default '-' user. The following context names are reserved for
45521//   internal use by Dialogflow. You should not use these contexts or
45522//   create contexts with these names: * `__system_counters__` *
45523//   `*_id_dialog_context` * `*_dialog_params_size`.
45524func (r *ProjectsLocationsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
45525	c := &ProjectsLocationsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45526	c.nameid = nameid
45527	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
45528	return c
45529}
45530
45531// UpdateMask sets the optional parameter "updateMask": The mask to
45532// control which fields get updated.
45533func (c *ProjectsLocationsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsContextsPatchCall {
45534	c.urlParams_.Set("updateMask", updateMask)
45535	return c
45536}
45537
45538// Fields allows partial responses to be retrieved. See
45539// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45540// for more information.
45541func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsPatchCall {
45542	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45543	return c
45544}
45545
45546// Context sets the context to be used in this call's Do method. Any
45547// pending HTTP request will be aborted if the provided context is
45548// canceled.
45549func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
45550	c.ctx_ = ctx
45551	return c
45552}
45553
45554// Header returns an http.Header that can be modified by the caller to
45555// add HTTP headers to the request.
45556func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Header() http.Header {
45557	if c.header_ == nil {
45558		c.header_ = make(http.Header)
45559	}
45560	return c.header_
45561}
45562
45563func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
45564	reqHeaders := make(http.Header)
45565	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
45566	for k, v := range c.header_ {
45567		reqHeaders[k] = v
45568	}
45569	reqHeaders.Set("User-Agent", c.s.userAgent())
45570	var body io.Reader = nil
45571	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
45572	if err != nil {
45573		return nil, err
45574	}
45575	reqHeaders.Set("Content-Type", "application/json")
45576	c.urlParams_.Set("alt", alt)
45577	c.urlParams_.Set("prettyPrint", "false")
45578	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45579	urls += "?" + c.urlParams_.Encode()
45580	req, err := http.NewRequest("PATCH", urls, body)
45581	if err != nil {
45582		return nil, err
45583	}
45584	req.Header = reqHeaders
45585	googleapi.Expand(req.URL, map[string]string{
45586		"name": c.nameid,
45587	})
45588	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45589}
45590
45591// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.patch" call.
45592// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
45593// non-nil. Any non-2xx status code is an error. Response headers are in
45594// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
45595// (if a response was returned at all) in
45596// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45597// whether the returned error was because http.StatusNotModified was
45598// returned.
45599func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
45600	gensupport.SetOptions(c.urlParams_, opts...)
45601	res, err := c.doRequest("json")
45602	if res != nil && res.StatusCode == http.StatusNotModified {
45603		if res.Body != nil {
45604			res.Body.Close()
45605		}
45606		return nil, &googleapi.Error{
45607			Code:   res.StatusCode,
45608			Header: res.Header,
45609		}
45610	}
45611	if err != nil {
45612		return nil, err
45613	}
45614	defer googleapi.CloseBody(res)
45615	if err := googleapi.CheckResponse(res); err != nil {
45616		return nil, err
45617	}
45618	ret := &GoogleCloudDialogflowV2beta1Context{
45619		ServerResponse: googleapi.ServerResponse{
45620			Header:         res.Header,
45621			HTTPStatusCode: res.StatusCode,
45622		},
45623	}
45624	target := &ret
45625	if err := gensupport.DecodeResponse(target, res); err != nil {
45626		return nil, err
45627	}
45628	return ret, nil
45629	// {
45630	//   "description": "Updates the specified context.",
45631	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
45632	//   "httpMethod": "PATCH",
45633	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.patch",
45634	//   "parameterOrder": [
45635	//     "name"
45636	//   ],
45637	//   "parameters": {
45638	//     "name": {
45639	//       "description": "Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`",
45640	//       "location": "path",
45641	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
45642	//       "required": true,
45643	//       "type": "string"
45644	//     },
45645	//     "updateMask": {
45646	//       "description": "Optional. The mask to control which fields get updated.",
45647	//       "format": "google-fieldmask",
45648	//       "location": "query",
45649	//       "type": "string"
45650	//     }
45651	//   },
45652	//   "path": "v2beta1/{+name}",
45653	//   "request": {
45654	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
45655	//   },
45656	//   "response": {
45657	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
45658	//   },
45659	//   "scopes": [
45660	//     "https://www.googleapis.com/auth/cloud-platform",
45661	//     "https://www.googleapis.com/auth/dialogflow"
45662	//   ]
45663	// }
45664
45665}
45666
45667// method id "dialogflow.projects.locations.agent.sessions.entityTypes.create":
45668
45669type ProjectsLocationsAgentSessionsEntityTypesCreateCall struct {
45670	s                                             *Service
45671	parent                                        string
45672	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
45673	urlParams_                                    gensupport.URLParams
45674	ctx_                                          context.Context
45675	header_                                       http.Header
45676}
45677
45678// Create: Creates a session entity type. If the specified session
45679// entity type already exists, overrides the session entity type. This
45680// method doesn't work with Google Assistant integration. Contact
45681// Dialogflow support if you need to use session entities with Google
45682// Assistant integration.
45683//
45684// - parent: The session to create a session entity type for. Supported
45685//   formats: - `projects//agent/sessions/, -
45686//   `projects//locations//agent/sessions/`, -
45687//   `projects//agent/environments//users//sessions/`, -
45688//   `projects//locations//agent/environments//users//sessions/`, If
45689//   `Location ID` is not specified we assume default 'us' location. If
45690//   `Environment ID` is not specified, we assume default 'draft'
45691//   environment. If `User ID` is not specified, we assume default '-'
45692//   user.
45693func (r *ProjectsLocationsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
45694	c := &ProjectsLocationsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45695	c.parent = parent
45696	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
45697	return c
45698}
45699
45700// Fields allows partial responses to be retrieved. See
45701// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45702// for more information.
45703func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
45704	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45705	return c
45706}
45707
45708// Context sets the context to be used in this call's Do method. Any
45709// pending HTTP request will be aborted if the provided context is
45710// canceled.
45711func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
45712	c.ctx_ = ctx
45713	return c
45714}
45715
45716// Header returns an http.Header that can be modified by the caller to
45717// add HTTP headers to the request.
45718func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Header() http.Header {
45719	if c.header_ == nil {
45720		c.header_ = make(http.Header)
45721	}
45722	return c.header_
45723}
45724
45725func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
45726	reqHeaders := make(http.Header)
45727	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
45728	for k, v := range c.header_ {
45729		reqHeaders[k] = v
45730	}
45731	reqHeaders.Set("User-Agent", c.s.userAgent())
45732	var body io.Reader = nil
45733	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
45734	if err != nil {
45735		return nil, err
45736	}
45737	reqHeaders.Set("Content-Type", "application/json")
45738	c.urlParams_.Set("alt", alt)
45739	c.urlParams_.Set("prettyPrint", "false")
45740	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
45741	urls += "?" + c.urlParams_.Encode()
45742	req, err := http.NewRequest("POST", urls, body)
45743	if err != nil {
45744		return nil, err
45745	}
45746	req.Header = reqHeaders
45747	googleapi.Expand(req.URL, map[string]string{
45748		"parent": c.parent,
45749	})
45750	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45751}
45752
45753// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.create" call.
45754// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
45755// error will be non-nil. Any non-2xx status code is an error. Response
45756// headers are in either
45757// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
45758// or (if a response was returned at all) in
45759// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45760// whether the returned error was because http.StatusNotModified was
45761// returned.
45762func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
45763	gensupport.SetOptions(c.urlParams_, opts...)
45764	res, err := c.doRequest("json")
45765	if res != nil && res.StatusCode == http.StatusNotModified {
45766		if res.Body != nil {
45767			res.Body.Close()
45768		}
45769		return nil, &googleapi.Error{
45770			Code:   res.StatusCode,
45771			Header: res.Header,
45772		}
45773	}
45774	if err != nil {
45775		return nil, err
45776	}
45777	defer googleapi.CloseBody(res)
45778	if err := googleapi.CheckResponse(res); err != nil {
45779		return nil, err
45780	}
45781	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
45782		ServerResponse: googleapi.ServerResponse{
45783			Header:         res.Header,
45784			HTTPStatusCode: res.StatusCode,
45785		},
45786	}
45787	target := &ret
45788	if err := gensupport.DecodeResponse(target, res); err != nil {
45789		return nil, err
45790	}
45791	return ret, nil
45792	// {
45793	//   "description": "Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
45794	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes",
45795	//   "httpMethod": "POST",
45796	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.create",
45797	//   "parameterOrder": [
45798	//     "parent"
45799	//   ],
45800	//   "parameters": {
45801	//     "parent": {
45802	//       "description": "Required. The session to create a session entity type for. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
45803	//       "location": "path",
45804	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
45805	//       "required": true,
45806	//       "type": "string"
45807	//     }
45808	//   },
45809	//   "path": "v2beta1/{+parent}/entityTypes",
45810	//   "request": {
45811	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
45812	//   },
45813	//   "response": {
45814	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
45815	//   },
45816	//   "scopes": [
45817	//     "https://www.googleapis.com/auth/cloud-platform",
45818	//     "https://www.googleapis.com/auth/dialogflow"
45819	//   ]
45820	// }
45821
45822}
45823
45824// method id "dialogflow.projects.locations.agent.sessions.entityTypes.delete":
45825
45826type ProjectsLocationsAgentSessionsEntityTypesDeleteCall struct {
45827	s          *Service
45828	name       string
45829	urlParams_ gensupport.URLParams
45830	ctx_       context.Context
45831	header_    http.Header
45832}
45833
45834// Delete: Deletes the specified session entity type. This method
45835// doesn't work with Google Assistant integration. Contact Dialogflow
45836// support if you need to use session entities with Google Assistant
45837// integration.
45838//
45839// - name: The name of the entity type to delete. Supported formats: -
45840//   `projects//agent/sessions//entityTypes/` -
45841//   `projects//locations//agent/sessions//entityTypes/` -
45842//   `projects//agent/environments//users//sessions//entityTypes/` -
45843//   `projects//locations//agent/environments/
45844//   /users//sessions//entityTypes/` If `Location ID` is not specified
45845//   we assume default 'us' location. If `Environment ID` is not
45846//   specified, we assume default 'draft' environment. If `User ID` is
45847//   not specified, we assume default '-' user.
45848func (r *ProjectsLocationsAgentSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
45849	c := &ProjectsLocationsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45850	c.name = name
45851	return c
45852}
45853
45854// Fields allows partial responses to be retrieved. See
45855// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45856// for more information.
45857func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
45858	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45859	return c
45860}
45861
45862// Context sets the context to be used in this call's Do method. Any
45863// pending HTTP request will be aborted if the provided context is
45864// canceled.
45865func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
45866	c.ctx_ = ctx
45867	return c
45868}
45869
45870// Header returns an http.Header that can be modified by the caller to
45871// add HTTP headers to the request.
45872func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
45873	if c.header_ == nil {
45874		c.header_ = make(http.Header)
45875	}
45876	return c.header_
45877}
45878
45879func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
45880	reqHeaders := make(http.Header)
45881	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
45882	for k, v := range c.header_ {
45883		reqHeaders[k] = v
45884	}
45885	reqHeaders.Set("User-Agent", c.s.userAgent())
45886	var body io.Reader = nil
45887	c.urlParams_.Set("alt", alt)
45888	c.urlParams_.Set("prettyPrint", "false")
45889	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45890	urls += "?" + c.urlParams_.Encode()
45891	req, err := http.NewRequest("DELETE", urls, body)
45892	if err != nil {
45893		return nil, err
45894	}
45895	req.Header = reqHeaders
45896	googleapi.Expand(req.URL, map[string]string{
45897		"name": c.name,
45898	})
45899	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45900}
45901
45902// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.delete" call.
45903// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
45904// non-2xx status code is an error. Response headers are in either
45905// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
45906// returned at all) in error.(*googleapi.Error).Header. Use
45907// googleapi.IsNotModified to check whether the returned error was
45908// because http.StatusNotModified was returned.
45909func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
45910	gensupport.SetOptions(c.urlParams_, opts...)
45911	res, err := c.doRequest("json")
45912	if res != nil && res.StatusCode == http.StatusNotModified {
45913		if res.Body != nil {
45914			res.Body.Close()
45915		}
45916		return nil, &googleapi.Error{
45917			Code:   res.StatusCode,
45918			Header: res.Header,
45919		}
45920	}
45921	if err != nil {
45922		return nil, err
45923	}
45924	defer googleapi.CloseBody(res)
45925	if err := googleapi.CheckResponse(res); err != nil {
45926		return nil, err
45927	}
45928	ret := &GoogleProtobufEmpty{
45929		ServerResponse: googleapi.ServerResponse{
45930			Header:         res.Header,
45931			HTTPStatusCode: res.StatusCode,
45932		},
45933	}
45934	target := &ret
45935	if err := gensupport.DecodeResponse(target, res); err != nil {
45936		return nil, err
45937	}
45938	return ret, nil
45939	// {
45940	//   "description": "Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
45941	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
45942	//   "httpMethod": "DELETE",
45943	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.delete",
45944	//   "parameterOrder": [
45945	//     "name"
45946	//   ],
45947	//   "parameters": {
45948	//     "name": {
45949	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
45950	//       "location": "path",
45951	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
45952	//       "required": true,
45953	//       "type": "string"
45954	//     }
45955	//   },
45956	//   "path": "v2beta1/{+name}",
45957	//   "response": {
45958	//     "$ref": "GoogleProtobufEmpty"
45959	//   },
45960	//   "scopes": [
45961	//     "https://www.googleapis.com/auth/cloud-platform",
45962	//     "https://www.googleapis.com/auth/dialogflow"
45963	//   ]
45964	// }
45965
45966}
45967
45968// method id "dialogflow.projects.locations.agent.sessions.entityTypes.get":
45969
45970type ProjectsLocationsAgentSessionsEntityTypesGetCall struct {
45971	s            *Service
45972	name         string
45973	urlParams_   gensupport.URLParams
45974	ifNoneMatch_ string
45975	ctx_         context.Context
45976	header_      http.Header
45977}
45978
45979// Get: Retrieves the specified session entity type. This method doesn't
45980// work with Google Assistant integration. Contact Dialogflow support if
45981// you need to use session entities with Google Assistant integration.
45982//
45983// - name: The name of the session entity type. Supported formats: -
45984//   `projects//agent/sessions//entityTypes/` -
45985//   `projects//locations//agent/sessions//entityTypes/` -
45986//   `projects//agent/environments//users//sessions//entityTypes/` -
45987//   `projects//locations//agent/environments/
45988//   /users//sessions//entityTypes/` If `Location ID` is not specified
45989//   we assume default 'us' location. If `Environment ID` is not
45990//   specified, we assume default 'draft' environment. If `User ID` is
45991//   not specified, we assume default '-' user.
45992func (r *ProjectsLocationsAgentSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
45993	c := &ProjectsLocationsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45994	c.name = name
45995	return c
45996}
45997
45998// Fields allows partial responses to be retrieved. See
45999// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46000// for more information.
46001func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
46002	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46003	return c
46004}
46005
46006// IfNoneMatch sets the optional parameter which makes the operation
46007// fail if the object's ETag matches the given value. This is useful for
46008// getting updates only after the object has changed since the last
46009// request. Use googleapi.IsNotModified to check whether the response
46010// error from Do is the result of In-None-Match.
46011func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
46012	c.ifNoneMatch_ = entityTag
46013	return c
46014}
46015
46016// Context sets the context to be used in this call's Do method. Any
46017// pending HTTP request will be aborted if the provided context is
46018// canceled.
46019func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
46020	c.ctx_ = ctx
46021	return c
46022}
46023
46024// Header returns an http.Header that can be modified by the caller to
46025// add HTTP headers to the request.
46026func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Header() http.Header {
46027	if c.header_ == nil {
46028		c.header_ = make(http.Header)
46029	}
46030	return c.header_
46031}
46032
46033func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
46034	reqHeaders := make(http.Header)
46035	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
46036	for k, v := range c.header_ {
46037		reqHeaders[k] = v
46038	}
46039	reqHeaders.Set("User-Agent", c.s.userAgent())
46040	if c.ifNoneMatch_ != "" {
46041		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46042	}
46043	var body io.Reader = nil
46044	c.urlParams_.Set("alt", alt)
46045	c.urlParams_.Set("prettyPrint", "false")
46046	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46047	urls += "?" + c.urlParams_.Encode()
46048	req, err := http.NewRequest("GET", urls, body)
46049	if err != nil {
46050		return nil, err
46051	}
46052	req.Header = reqHeaders
46053	googleapi.Expand(req.URL, map[string]string{
46054		"name": c.name,
46055	})
46056	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46057}
46058
46059// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.get" call.
46060// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
46061// error will be non-nil. Any non-2xx status code is an error. Response
46062// headers are in either
46063// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
46064// or (if a response was returned at all) in
46065// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46066// whether the returned error was because http.StatusNotModified was
46067// returned.
46068func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
46069	gensupport.SetOptions(c.urlParams_, opts...)
46070	res, err := c.doRequest("json")
46071	if res != nil && res.StatusCode == http.StatusNotModified {
46072		if res.Body != nil {
46073			res.Body.Close()
46074		}
46075		return nil, &googleapi.Error{
46076			Code:   res.StatusCode,
46077			Header: res.Header,
46078		}
46079	}
46080	if err != nil {
46081		return nil, err
46082	}
46083	defer googleapi.CloseBody(res)
46084	if err := googleapi.CheckResponse(res); err != nil {
46085		return nil, err
46086	}
46087	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
46088		ServerResponse: googleapi.ServerResponse{
46089			Header:         res.Header,
46090			HTTPStatusCode: res.StatusCode,
46091		},
46092	}
46093	target := &ret
46094	if err := gensupport.DecodeResponse(target, res); err != nil {
46095		return nil, err
46096	}
46097	return ret, nil
46098	// {
46099	//   "description": "Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
46100	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
46101	//   "httpMethod": "GET",
46102	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.get",
46103	//   "parameterOrder": [
46104	//     "name"
46105	//   ],
46106	//   "parameters": {
46107	//     "name": {
46108	//       "description": "Required. The name of the session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
46109	//       "location": "path",
46110	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
46111	//       "required": true,
46112	//       "type": "string"
46113	//     }
46114	//   },
46115	//   "path": "v2beta1/{+name}",
46116	//   "response": {
46117	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
46118	//   },
46119	//   "scopes": [
46120	//     "https://www.googleapis.com/auth/cloud-platform",
46121	//     "https://www.googleapis.com/auth/dialogflow"
46122	//   ]
46123	// }
46124
46125}
46126
46127// method id "dialogflow.projects.locations.agent.sessions.entityTypes.list":
46128
46129type ProjectsLocationsAgentSessionsEntityTypesListCall struct {
46130	s            *Service
46131	parent       string
46132	urlParams_   gensupport.URLParams
46133	ifNoneMatch_ string
46134	ctx_         context.Context
46135	header_      http.Header
46136}
46137
46138// List: Returns the list of all session entity types in the specified
46139// session. This method doesn't work with Google Assistant integration.
46140// Contact Dialogflow support if you need to use session entities with
46141// Google Assistant integration.
46142//
46143// - parent: The session to list all session entity types from.
46144//   Supported formats: - `projects//agent/sessions/, -
46145//   `projects//locations//agent/sessions/`, -
46146//   `projects//agent/environments//users//sessions/`, -
46147//   `projects//locations//agent/environments//users//sessions/`, If
46148//   `Location ID` is not specified we assume default 'us' location. If
46149//   `Environment ID` is not specified, we assume default 'draft'
46150//   environment. If `User ID` is not specified, we assume default '-'
46151//   user.
46152func (r *ProjectsLocationsAgentSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
46153	c := &ProjectsLocationsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46154	c.parent = parent
46155	return c
46156}
46157
46158// PageSize sets the optional parameter "pageSize": The maximum number
46159// of items to return in a single page. By default 100 and at most 1000.
46160func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsEntityTypesListCall {
46161	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
46162	return c
46163}
46164
46165// PageToken sets the optional parameter "pageToken": The
46166// next_page_token value returned from a previous list request.
46167func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
46168	c.urlParams_.Set("pageToken", pageToken)
46169	return c
46170}
46171
46172// Fields allows partial responses to be retrieved. See
46173// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46174// for more information.
46175func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesListCall {
46176	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46177	return c
46178}
46179
46180// IfNoneMatch sets the optional parameter which makes the operation
46181// fail if the object's ETag matches the given value. This is useful for
46182// getting updates only after the object has changed since the last
46183// request. Use googleapi.IsNotModified to check whether the response
46184// error from Do is the result of In-None-Match.
46185func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
46186	c.ifNoneMatch_ = entityTag
46187	return c
46188}
46189
46190// Context sets the context to be used in this call's Do method. Any
46191// pending HTTP request will be aborted if the provided context is
46192// canceled.
46193func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesListCall {
46194	c.ctx_ = ctx
46195	return c
46196}
46197
46198// Header returns an http.Header that can be modified by the caller to
46199// add HTTP headers to the request.
46200func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Header() http.Header {
46201	if c.header_ == nil {
46202		c.header_ = make(http.Header)
46203	}
46204	return c.header_
46205}
46206
46207func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
46208	reqHeaders := make(http.Header)
46209	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
46210	for k, v := range c.header_ {
46211		reqHeaders[k] = v
46212	}
46213	reqHeaders.Set("User-Agent", c.s.userAgent())
46214	if c.ifNoneMatch_ != "" {
46215		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46216	}
46217	var body io.Reader = nil
46218	c.urlParams_.Set("alt", alt)
46219	c.urlParams_.Set("prettyPrint", "false")
46220	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
46221	urls += "?" + c.urlParams_.Encode()
46222	req, err := http.NewRequest("GET", urls, body)
46223	if err != nil {
46224		return nil, err
46225	}
46226	req.Header = reqHeaders
46227	googleapi.Expand(req.URL, map[string]string{
46228		"parent": c.parent,
46229	})
46230	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46231}
46232
46233// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.list" call.
46234// Exactly one of
46235// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
46236// will be non-nil. Any non-2xx status code is an error. Response
46237// headers are in either
46238// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
46239// onse.Header or (if a response was returned at all) in
46240// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46241// whether the returned error was because http.StatusNotModified was
46242// returned.
46243func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
46244	gensupport.SetOptions(c.urlParams_, opts...)
46245	res, err := c.doRequest("json")
46246	if res != nil && res.StatusCode == http.StatusNotModified {
46247		if res.Body != nil {
46248			res.Body.Close()
46249		}
46250		return nil, &googleapi.Error{
46251			Code:   res.StatusCode,
46252			Header: res.Header,
46253		}
46254	}
46255	if err != nil {
46256		return nil, err
46257	}
46258	defer googleapi.CloseBody(res)
46259	if err := googleapi.CheckResponse(res); err != nil {
46260		return nil, err
46261	}
46262	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
46263		ServerResponse: googleapi.ServerResponse{
46264			Header:         res.Header,
46265			HTTPStatusCode: res.StatusCode,
46266		},
46267	}
46268	target := &ret
46269	if err := gensupport.DecodeResponse(target, res); err != nil {
46270		return nil, err
46271	}
46272	return ret, nil
46273	// {
46274	//   "description": "Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
46275	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes",
46276	//   "httpMethod": "GET",
46277	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.list",
46278	//   "parameterOrder": [
46279	//     "parent"
46280	//   ],
46281	//   "parameters": {
46282	//     "pageSize": {
46283	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
46284	//       "format": "int32",
46285	//       "location": "query",
46286	//       "type": "integer"
46287	//     },
46288	//     "pageToken": {
46289	//       "description": "Optional. The next_page_token value returned from a previous list request.",
46290	//       "location": "query",
46291	//       "type": "string"
46292	//     },
46293	//     "parent": {
46294	//       "description": "Required. The session to list all session entity types from. Supported formats: - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/environments//users//sessions/`, - `projects//locations//agent/environments//users//sessions/`, If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.",
46295	//       "location": "path",
46296	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
46297	//       "required": true,
46298	//       "type": "string"
46299	//     }
46300	//   },
46301	//   "path": "v2beta1/{+parent}/entityTypes",
46302	//   "response": {
46303	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
46304	//   },
46305	//   "scopes": [
46306	//     "https://www.googleapis.com/auth/cloud-platform",
46307	//     "https://www.googleapis.com/auth/dialogflow"
46308	//   ]
46309	// }
46310
46311}
46312
46313// Pages invokes f for each page of results.
46314// A non-nil error returned from f will halt the iteration.
46315// The provided context supersedes any context provided to the Context method.
46316func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
46317	c.ctx_ = ctx
46318	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
46319	for {
46320		x, err := c.Do()
46321		if err != nil {
46322			return err
46323		}
46324		if err := f(x); err != nil {
46325			return err
46326		}
46327		if x.NextPageToken == "" {
46328			return nil
46329		}
46330		c.PageToken(x.NextPageToken)
46331	}
46332}
46333
46334// method id "dialogflow.projects.locations.agent.sessions.entityTypes.patch":
46335
46336type ProjectsLocationsAgentSessionsEntityTypesPatchCall struct {
46337	s                                             *Service
46338	nameid                                        string
46339	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
46340	urlParams_                                    gensupport.URLParams
46341	ctx_                                          context.Context
46342	header_                                       http.Header
46343}
46344
46345// Patch: Updates the specified session entity type. This method doesn't
46346// work with Google Assistant integration. Contact Dialogflow support if
46347// you need to use session entities with Google Assistant integration.
46348//
46349// - name: The unique identifier of this session entity type. Supported
46350//   formats: - `projects//agent/sessions//entityTypes/` -
46351//   `projects//locations//agent/sessions//entityTypes/` -
46352//   `projects//agent/environments//users//sessions//entityTypes/` -
46353//   `projects//locations//agent/environments/
46354//   /users//sessions//entityTypes/` If `Location ID` is not specified
46355//   we assume default 'us' location. If `Environment ID` is not
46356//   specified, we assume default 'draft' environment. If `User ID` is
46357//   not specified, we assume default '-' user. `` must be the display
46358//   name of an existing entity type in the same agent that will be
46359//   overridden or supplemented.
46360func (r *ProjectsLocationsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
46361	c := &ProjectsLocationsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46362	c.nameid = nameid
46363	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
46364	return c
46365}
46366
46367// UpdateMask sets the optional parameter "updateMask": The mask to
46368// control which fields get updated.
46369func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
46370	c.urlParams_.Set("updateMask", updateMask)
46371	return c
46372}
46373
46374// Fields allows partial responses to be retrieved. See
46375// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46376// for more information.
46377func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
46378	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46379	return c
46380}
46381
46382// Context sets the context to be used in this call's Do method. Any
46383// pending HTTP request will be aborted if the provided context is
46384// canceled.
46385func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
46386	c.ctx_ = ctx
46387	return c
46388}
46389
46390// Header returns an http.Header that can be modified by the caller to
46391// add HTTP headers to the request.
46392func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Header() http.Header {
46393	if c.header_ == nil {
46394		c.header_ = make(http.Header)
46395	}
46396	return c.header_
46397}
46398
46399func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
46400	reqHeaders := make(http.Header)
46401	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
46402	for k, v := range c.header_ {
46403		reqHeaders[k] = v
46404	}
46405	reqHeaders.Set("User-Agent", c.s.userAgent())
46406	var body io.Reader = nil
46407	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
46408	if err != nil {
46409		return nil, err
46410	}
46411	reqHeaders.Set("Content-Type", "application/json")
46412	c.urlParams_.Set("alt", alt)
46413	c.urlParams_.Set("prettyPrint", "false")
46414	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46415	urls += "?" + c.urlParams_.Encode()
46416	req, err := http.NewRequest("PATCH", urls, body)
46417	if err != nil {
46418		return nil, err
46419	}
46420	req.Header = reqHeaders
46421	googleapi.Expand(req.URL, map[string]string{
46422		"name": c.nameid,
46423	})
46424	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46425}
46426
46427// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.patch" call.
46428// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
46429// error will be non-nil. Any non-2xx status code is an error. Response
46430// headers are in either
46431// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
46432// or (if a response was returned at all) in
46433// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46434// whether the returned error was because http.StatusNotModified was
46435// returned.
46436func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
46437	gensupport.SetOptions(c.urlParams_, opts...)
46438	res, err := c.doRequest("json")
46439	if res != nil && res.StatusCode == http.StatusNotModified {
46440		if res.Body != nil {
46441			res.Body.Close()
46442		}
46443		return nil, &googleapi.Error{
46444			Code:   res.StatusCode,
46445			Header: res.Header,
46446		}
46447	}
46448	if err != nil {
46449		return nil, err
46450	}
46451	defer googleapi.CloseBody(res)
46452	if err := googleapi.CheckResponse(res); err != nil {
46453		return nil, err
46454	}
46455	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
46456		ServerResponse: googleapi.ServerResponse{
46457			Header:         res.Header,
46458			HTTPStatusCode: res.StatusCode,
46459		},
46460	}
46461	target := &ret
46462	if err := gensupport.DecodeResponse(target, res); err != nil {
46463		return nil, err
46464	}
46465	return ret, nil
46466	// {
46467	//   "description": "Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.",
46468	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
46469	//   "httpMethod": "PATCH",
46470	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.patch",
46471	//   "parameterOrder": [
46472	//     "name"
46473	//   ],
46474	//   "parameters": {
46475	//     "name": {
46476	//       "description": "Required. The unique identifier of this session entity type. Supported formats: - `projects//agent/sessions//entityTypes/` - `projects//locations//agent/sessions//entityTypes/` - `projects//agent/environments//users//sessions//entityTypes/` - `projects//locations//agent/environments/ /users//sessions//entityTypes/` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.",
46477	//       "location": "path",
46478	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
46479	//       "required": true,
46480	//       "type": "string"
46481	//     },
46482	//     "updateMask": {
46483	//       "description": "Optional. The mask to control which fields get updated.",
46484	//       "format": "google-fieldmask",
46485	//       "location": "query",
46486	//       "type": "string"
46487	//     }
46488	//   },
46489	//   "path": "v2beta1/{+name}",
46490	//   "request": {
46491	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
46492	//   },
46493	//   "response": {
46494	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
46495	//   },
46496	//   "scopes": [
46497	//     "https://www.googleapis.com/auth/cloud-platform",
46498	//     "https://www.googleapis.com/auth/dialogflow"
46499	//   ]
46500	// }
46501
46502}
46503
46504// method id "dialogflow.projects.locations.agent.versions.create":
46505
46506type ProjectsLocationsAgentVersionsCreateCall struct {
46507	s                                   *Service
46508	parent                              string
46509	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
46510	urlParams_                          gensupport.URLParams
46511	ctx_                                context.Context
46512	header_                             http.Header
46513}
46514
46515// Create: Creates an agent version. The new version points to the agent
46516// instance in the "default" environment.
46517//
46518// - parent: The agent to create a version for. Supported formats: -
46519//   `projects//agent` - `projects//locations//agent`.
46520func (r *ProjectsLocationsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsCreateCall {
46521	c := &ProjectsLocationsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46522	c.parent = parent
46523	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
46524	return c
46525}
46526
46527// Fields allows partial responses to be retrieved. See
46528// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46529// for more information.
46530func (c *ProjectsLocationsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsCreateCall {
46531	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46532	return c
46533}
46534
46535// Context sets the context to be used in this call's Do method. Any
46536// pending HTTP request will be aborted if the provided context is
46537// canceled.
46538func (c *ProjectsLocationsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsCreateCall {
46539	c.ctx_ = ctx
46540	return c
46541}
46542
46543// Header returns an http.Header that can be modified by the caller to
46544// add HTTP headers to the request.
46545func (c *ProjectsLocationsAgentVersionsCreateCall) Header() http.Header {
46546	if c.header_ == nil {
46547		c.header_ = make(http.Header)
46548	}
46549	return c.header_
46550}
46551
46552func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
46553	reqHeaders := make(http.Header)
46554	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
46555	for k, v := range c.header_ {
46556		reqHeaders[k] = v
46557	}
46558	reqHeaders.Set("User-Agent", c.s.userAgent())
46559	var body io.Reader = nil
46560	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
46561	if err != nil {
46562		return nil, err
46563	}
46564	reqHeaders.Set("Content-Type", "application/json")
46565	c.urlParams_.Set("alt", alt)
46566	c.urlParams_.Set("prettyPrint", "false")
46567	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
46568	urls += "?" + c.urlParams_.Encode()
46569	req, err := http.NewRequest("POST", urls, body)
46570	if err != nil {
46571		return nil, err
46572	}
46573	req.Header = reqHeaders
46574	googleapi.Expand(req.URL, map[string]string{
46575		"parent": c.parent,
46576	})
46577	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46578}
46579
46580// Do executes the "dialogflow.projects.locations.agent.versions.create" call.
46581// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
46582// non-nil. Any non-2xx status code is an error. Response headers are in
46583// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
46584// (if a response was returned at all) in
46585// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46586// whether the returned error was because http.StatusNotModified was
46587// returned.
46588func (c *ProjectsLocationsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
46589	gensupport.SetOptions(c.urlParams_, opts...)
46590	res, err := c.doRequest("json")
46591	if res != nil && res.StatusCode == http.StatusNotModified {
46592		if res.Body != nil {
46593			res.Body.Close()
46594		}
46595		return nil, &googleapi.Error{
46596			Code:   res.StatusCode,
46597			Header: res.Header,
46598		}
46599	}
46600	if err != nil {
46601		return nil, err
46602	}
46603	defer googleapi.CloseBody(res)
46604	if err := googleapi.CheckResponse(res); err != nil {
46605		return nil, err
46606	}
46607	ret := &GoogleCloudDialogflowV2beta1Version{
46608		ServerResponse: googleapi.ServerResponse{
46609			Header:         res.Header,
46610			HTTPStatusCode: res.StatusCode,
46611		},
46612	}
46613	target := &ret
46614	if err := gensupport.DecodeResponse(target, res); err != nil {
46615		return nil, err
46616	}
46617	return ret, nil
46618	// {
46619	//   "description": "Creates an agent version. The new version points to the agent instance in the \"default\" environment.",
46620	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions",
46621	//   "httpMethod": "POST",
46622	//   "id": "dialogflow.projects.locations.agent.versions.create",
46623	//   "parameterOrder": [
46624	//     "parent"
46625	//   ],
46626	//   "parameters": {
46627	//     "parent": {
46628	//       "description": "Required. The agent to create a version for. Supported formats: - `projects//agent` - `projects//locations//agent`",
46629	//       "location": "path",
46630	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
46631	//       "required": true,
46632	//       "type": "string"
46633	//     }
46634	//   },
46635	//   "path": "v2beta1/{+parent}/versions",
46636	//   "request": {
46637	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46638	//   },
46639	//   "response": {
46640	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46641	//   },
46642	//   "scopes": [
46643	//     "https://www.googleapis.com/auth/cloud-platform",
46644	//     "https://www.googleapis.com/auth/dialogflow"
46645	//   ]
46646	// }
46647
46648}
46649
46650// method id "dialogflow.projects.locations.agent.versions.delete":
46651
46652type ProjectsLocationsAgentVersionsDeleteCall struct {
46653	s          *Service
46654	name       string
46655	urlParams_ gensupport.URLParams
46656	ctx_       context.Context
46657	header_    http.Header
46658}
46659
46660// Delete: Delete the specified agent version.
46661//
46662// - name: The name of the version to delete. Supported formats: -
46663//   `projects//agent/versions/` -
46664//   `projects//locations//agent/versions/`.
46665func (r *ProjectsLocationsAgentVersionsService) Delete(name string) *ProjectsLocationsAgentVersionsDeleteCall {
46666	c := &ProjectsLocationsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46667	c.name = name
46668	return c
46669}
46670
46671// Fields allows partial responses to be retrieved. See
46672// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46673// for more information.
46674func (c *ProjectsLocationsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsDeleteCall {
46675	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46676	return c
46677}
46678
46679// Context sets the context to be used in this call's Do method. Any
46680// pending HTTP request will be aborted if the provided context is
46681// canceled.
46682func (c *ProjectsLocationsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsDeleteCall {
46683	c.ctx_ = ctx
46684	return c
46685}
46686
46687// Header returns an http.Header that can be modified by the caller to
46688// add HTTP headers to the request.
46689func (c *ProjectsLocationsAgentVersionsDeleteCall) Header() http.Header {
46690	if c.header_ == nil {
46691		c.header_ = make(http.Header)
46692	}
46693	return c.header_
46694}
46695
46696func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
46697	reqHeaders := make(http.Header)
46698	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
46699	for k, v := range c.header_ {
46700		reqHeaders[k] = v
46701	}
46702	reqHeaders.Set("User-Agent", c.s.userAgent())
46703	var body io.Reader = nil
46704	c.urlParams_.Set("alt", alt)
46705	c.urlParams_.Set("prettyPrint", "false")
46706	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46707	urls += "?" + c.urlParams_.Encode()
46708	req, err := http.NewRequest("DELETE", urls, body)
46709	if err != nil {
46710		return nil, err
46711	}
46712	req.Header = reqHeaders
46713	googleapi.Expand(req.URL, map[string]string{
46714		"name": c.name,
46715	})
46716	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46717}
46718
46719// Do executes the "dialogflow.projects.locations.agent.versions.delete" call.
46720// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
46721// non-2xx status code is an error. Response headers are in either
46722// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
46723// returned at all) in error.(*googleapi.Error).Header. Use
46724// googleapi.IsNotModified to check whether the returned error was
46725// because http.StatusNotModified was returned.
46726func (c *ProjectsLocationsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
46727	gensupport.SetOptions(c.urlParams_, opts...)
46728	res, err := c.doRequest("json")
46729	if res != nil && res.StatusCode == http.StatusNotModified {
46730		if res.Body != nil {
46731			res.Body.Close()
46732		}
46733		return nil, &googleapi.Error{
46734			Code:   res.StatusCode,
46735			Header: res.Header,
46736		}
46737	}
46738	if err != nil {
46739		return nil, err
46740	}
46741	defer googleapi.CloseBody(res)
46742	if err := googleapi.CheckResponse(res); err != nil {
46743		return nil, err
46744	}
46745	ret := &GoogleProtobufEmpty{
46746		ServerResponse: googleapi.ServerResponse{
46747			Header:         res.Header,
46748			HTTPStatusCode: res.StatusCode,
46749		},
46750	}
46751	target := &ret
46752	if err := gensupport.DecodeResponse(target, res); err != nil {
46753		return nil, err
46754	}
46755	return ret, nil
46756	// {
46757	//   "description": "Delete the specified agent version.",
46758	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions/{versionsId}",
46759	//   "httpMethod": "DELETE",
46760	//   "id": "dialogflow.projects.locations.agent.versions.delete",
46761	//   "parameterOrder": [
46762	//     "name"
46763	//   ],
46764	//   "parameters": {
46765	//     "name": {
46766	//       "description": "Required. The name of the version to delete. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
46767	//       "location": "path",
46768	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$",
46769	//       "required": true,
46770	//       "type": "string"
46771	//     }
46772	//   },
46773	//   "path": "v2beta1/{+name}",
46774	//   "response": {
46775	//     "$ref": "GoogleProtobufEmpty"
46776	//   },
46777	//   "scopes": [
46778	//     "https://www.googleapis.com/auth/cloud-platform",
46779	//     "https://www.googleapis.com/auth/dialogflow"
46780	//   ]
46781	// }
46782
46783}
46784
46785// method id "dialogflow.projects.locations.agent.versions.get":
46786
46787type ProjectsLocationsAgentVersionsGetCall struct {
46788	s            *Service
46789	name         string
46790	urlParams_   gensupport.URLParams
46791	ifNoneMatch_ string
46792	ctx_         context.Context
46793	header_      http.Header
46794}
46795
46796// Get: Retrieves the specified agent version.
46797//
46798// - name: The name of the version. Supported formats: -
46799//   `projects//agent/versions/` -
46800//   `projects//locations//agent/versions/`.
46801func (r *ProjectsLocationsAgentVersionsService) Get(name string) *ProjectsLocationsAgentVersionsGetCall {
46802	c := &ProjectsLocationsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46803	c.name = name
46804	return c
46805}
46806
46807// Fields allows partial responses to be retrieved. See
46808// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46809// for more information.
46810func (c *ProjectsLocationsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsGetCall {
46811	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46812	return c
46813}
46814
46815// IfNoneMatch sets the optional parameter which makes the operation
46816// fail if the object's ETag matches the given value. This is useful for
46817// getting updates only after the object has changed since the last
46818// request. Use googleapi.IsNotModified to check whether the response
46819// error from Do is the result of In-None-Match.
46820func (c *ProjectsLocationsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsGetCall {
46821	c.ifNoneMatch_ = entityTag
46822	return c
46823}
46824
46825// Context sets the context to be used in this call's Do method. Any
46826// pending HTTP request will be aborted if the provided context is
46827// canceled.
46828func (c *ProjectsLocationsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsGetCall {
46829	c.ctx_ = ctx
46830	return c
46831}
46832
46833// Header returns an http.Header that can be modified by the caller to
46834// add HTTP headers to the request.
46835func (c *ProjectsLocationsAgentVersionsGetCall) Header() http.Header {
46836	if c.header_ == nil {
46837		c.header_ = make(http.Header)
46838	}
46839	return c.header_
46840}
46841
46842func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
46843	reqHeaders := make(http.Header)
46844	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
46845	for k, v := range c.header_ {
46846		reqHeaders[k] = v
46847	}
46848	reqHeaders.Set("User-Agent", c.s.userAgent())
46849	if c.ifNoneMatch_ != "" {
46850		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46851	}
46852	var body io.Reader = nil
46853	c.urlParams_.Set("alt", alt)
46854	c.urlParams_.Set("prettyPrint", "false")
46855	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46856	urls += "?" + c.urlParams_.Encode()
46857	req, err := http.NewRequest("GET", urls, body)
46858	if err != nil {
46859		return nil, err
46860	}
46861	req.Header = reqHeaders
46862	googleapi.Expand(req.URL, map[string]string{
46863		"name": c.name,
46864	})
46865	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46866}
46867
46868// Do executes the "dialogflow.projects.locations.agent.versions.get" call.
46869// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
46870// non-nil. Any non-2xx status code is an error. Response headers are in
46871// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
46872// (if a response was returned at all) in
46873// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46874// whether the returned error was because http.StatusNotModified was
46875// returned.
46876func (c *ProjectsLocationsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
46877	gensupport.SetOptions(c.urlParams_, opts...)
46878	res, err := c.doRequest("json")
46879	if res != nil && res.StatusCode == http.StatusNotModified {
46880		if res.Body != nil {
46881			res.Body.Close()
46882		}
46883		return nil, &googleapi.Error{
46884			Code:   res.StatusCode,
46885			Header: res.Header,
46886		}
46887	}
46888	if err != nil {
46889		return nil, err
46890	}
46891	defer googleapi.CloseBody(res)
46892	if err := googleapi.CheckResponse(res); err != nil {
46893		return nil, err
46894	}
46895	ret := &GoogleCloudDialogflowV2beta1Version{
46896		ServerResponse: googleapi.ServerResponse{
46897			Header:         res.Header,
46898			HTTPStatusCode: res.StatusCode,
46899		},
46900	}
46901	target := &ret
46902	if err := gensupport.DecodeResponse(target, res); err != nil {
46903		return nil, err
46904	}
46905	return ret, nil
46906	// {
46907	//   "description": "Retrieves the specified agent version.",
46908	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions/{versionsId}",
46909	//   "httpMethod": "GET",
46910	//   "id": "dialogflow.projects.locations.agent.versions.get",
46911	//   "parameterOrder": [
46912	//     "name"
46913	//   ],
46914	//   "parameters": {
46915	//     "name": {
46916	//       "description": "Required. The name of the version. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
46917	//       "location": "path",
46918	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$",
46919	//       "required": true,
46920	//       "type": "string"
46921	//     }
46922	//   },
46923	//   "path": "v2beta1/{+name}",
46924	//   "response": {
46925	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46926	//   },
46927	//   "scopes": [
46928	//     "https://www.googleapis.com/auth/cloud-platform",
46929	//     "https://www.googleapis.com/auth/dialogflow"
46930	//   ]
46931	// }
46932
46933}
46934
46935// method id "dialogflow.projects.locations.agent.versions.list":
46936
46937type ProjectsLocationsAgentVersionsListCall struct {
46938	s            *Service
46939	parent       string
46940	urlParams_   gensupport.URLParams
46941	ifNoneMatch_ string
46942	ctx_         context.Context
46943	header_      http.Header
46944}
46945
46946// List: Returns the list of all versions of the specified agent.
46947//
46948// - parent: The agent to list all versions from. Supported formats: -
46949//   `projects//agent` - `projects//locations//agent`.
46950func (r *ProjectsLocationsAgentVersionsService) List(parent string) *ProjectsLocationsAgentVersionsListCall {
46951	c := &ProjectsLocationsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46952	c.parent = parent
46953	return c
46954}
46955
46956// PageSize sets the optional parameter "pageSize": The maximum number
46957// of items to return in a single page. By default 100 and at most 1000.
46958func (c *ProjectsLocationsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentVersionsListCall {
46959	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
46960	return c
46961}
46962
46963// PageToken sets the optional parameter "pageToken": The
46964// next_page_token value returned from a previous list request.
46965func (c *ProjectsLocationsAgentVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentVersionsListCall {
46966	c.urlParams_.Set("pageToken", pageToken)
46967	return c
46968}
46969
46970// Fields allows partial responses to be retrieved. See
46971// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46972// for more information.
46973func (c *ProjectsLocationsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsListCall {
46974	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46975	return c
46976}
46977
46978// IfNoneMatch sets the optional parameter which makes the operation
46979// fail if the object's ETag matches the given value. This is useful for
46980// getting updates only after the object has changed since the last
46981// request. Use googleapi.IsNotModified to check whether the response
46982// error from Do is the result of In-None-Match.
46983func (c *ProjectsLocationsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsListCall {
46984	c.ifNoneMatch_ = entityTag
46985	return c
46986}
46987
46988// Context sets the context to be used in this call's Do method. Any
46989// pending HTTP request will be aborted if the provided context is
46990// canceled.
46991func (c *ProjectsLocationsAgentVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsListCall {
46992	c.ctx_ = ctx
46993	return c
46994}
46995
46996// Header returns an http.Header that can be modified by the caller to
46997// add HTTP headers to the request.
46998func (c *ProjectsLocationsAgentVersionsListCall) Header() http.Header {
46999	if c.header_ == nil {
47000		c.header_ = make(http.Header)
47001	}
47002	return c.header_
47003}
47004
47005func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
47006	reqHeaders := make(http.Header)
47007	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
47008	for k, v := range c.header_ {
47009		reqHeaders[k] = v
47010	}
47011	reqHeaders.Set("User-Agent", c.s.userAgent())
47012	if c.ifNoneMatch_ != "" {
47013		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47014	}
47015	var body io.Reader = nil
47016	c.urlParams_.Set("alt", alt)
47017	c.urlParams_.Set("prettyPrint", "false")
47018	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
47019	urls += "?" + c.urlParams_.Encode()
47020	req, err := http.NewRequest("GET", urls, body)
47021	if err != nil {
47022		return nil, err
47023	}
47024	req.Header = reqHeaders
47025	googleapi.Expand(req.URL, map[string]string{
47026		"parent": c.parent,
47027	})
47028	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47029}
47030
47031// Do executes the "dialogflow.projects.locations.agent.versions.list" call.
47032// Exactly one of *GoogleCloudDialogflowV2beta1ListVersionsResponse or
47033// error will be non-nil. Any non-2xx status code is an error. Response
47034// headers are in either
47035// *GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Heade
47036// r or (if a response was returned at all) in
47037// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47038// whether the returned error was because http.StatusNotModified was
47039// returned.
47040func (c *ProjectsLocationsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
47041	gensupport.SetOptions(c.urlParams_, opts...)
47042	res, err := c.doRequest("json")
47043	if res != nil && res.StatusCode == http.StatusNotModified {
47044		if res.Body != nil {
47045			res.Body.Close()
47046		}
47047		return nil, &googleapi.Error{
47048			Code:   res.StatusCode,
47049			Header: res.Header,
47050		}
47051	}
47052	if err != nil {
47053		return nil, err
47054	}
47055	defer googleapi.CloseBody(res)
47056	if err := googleapi.CheckResponse(res); err != nil {
47057		return nil, err
47058	}
47059	ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
47060		ServerResponse: googleapi.ServerResponse{
47061			Header:         res.Header,
47062			HTTPStatusCode: res.StatusCode,
47063		},
47064	}
47065	target := &ret
47066	if err := gensupport.DecodeResponse(target, res); err != nil {
47067		return nil, err
47068	}
47069	return ret, nil
47070	// {
47071	//   "description": "Returns the list of all versions of the specified agent.",
47072	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions",
47073	//   "httpMethod": "GET",
47074	//   "id": "dialogflow.projects.locations.agent.versions.list",
47075	//   "parameterOrder": [
47076	//     "parent"
47077	//   ],
47078	//   "parameters": {
47079	//     "pageSize": {
47080	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
47081	//       "format": "int32",
47082	//       "location": "query",
47083	//       "type": "integer"
47084	//     },
47085	//     "pageToken": {
47086	//       "description": "Optional. The next_page_token value returned from a previous list request.",
47087	//       "location": "query",
47088	//       "type": "string"
47089	//     },
47090	//     "parent": {
47091	//       "description": "Required. The agent to list all versions from. Supported formats: - `projects//agent` - `projects//locations//agent`",
47092	//       "location": "path",
47093	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
47094	//       "required": true,
47095	//       "type": "string"
47096	//     }
47097	//   },
47098	//   "path": "v2beta1/{+parent}/versions",
47099	//   "response": {
47100	//     "$ref": "GoogleCloudDialogflowV2beta1ListVersionsResponse"
47101	//   },
47102	//   "scopes": [
47103	//     "https://www.googleapis.com/auth/cloud-platform",
47104	//     "https://www.googleapis.com/auth/dialogflow"
47105	//   ]
47106	// }
47107
47108}
47109
47110// Pages invokes f for each page of results.
47111// A non-nil error returned from f will halt the iteration.
47112// The provided context supersedes any context provided to the Context method.
47113func (c *ProjectsLocationsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
47114	c.ctx_ = ctx
47115	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
47116	for {
47117		x, err := c.Do()
47118		if err != nil {
47119			return err
47120		}
47121		if err := f(x); err != nil {
47122			return err
47123		}
47124		if x.NextPageToken == "" {
47125			return nil
47126		}
47127		c.PageToken(x.NextPageToken)
47128	}
47129}
47130
47131// method id "dialogflow.projects.locations.agent.versions.patch":
47132
47133type ProjectsLocationsAgentVersionsPatchCall struct {
47134	s                                   *Service
47135	nameid                              string
47136	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
47137	urlParams_                          gensupport.URLParams
47138	ctx_                                context.Context
47139	header_                             http.Header
47140}
47141
47142// Patch: Updates the specified agent version. Note that this method
47143// does not allow you to update the state of the agent the given version
47144// points to. It allows you to update only mutable properties of the
47145// version resource.
47146//
47147// - name: Output only. The unique identifier of this agent version.
47148//   Supported formats: - `projects//agent/versions/` -
47149//   `projects//locations//agent/versions/`.
47150func (r *ProjectsLocationsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsPatchCall {
47151	c := &ProjectsLocationsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47152	c.nameid = nameid
47153	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
47154	return c
47155}
47156
47157// UpdateMask sets the optional parameter "updateMask": Required. The
47158// mask to control which fields get updated.
47159func (c *ProjectsLocationsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentVersionsPatchCall {
47160	c.urlParams_.Set("updateMask", updateMask)
47161	return c
47162}
47163
47164// Fields allows partial responses to be retrieved. See
47165// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47166// for more information.
47167func (c *ProjectsLocationsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsPatchCall {
47168	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47169	return c
47170}
47171
47172// Context sets the context to be used in this call's Do method. Any
47173// pending HTTP request will be aborted if the provided context is
47174// canceled.
47175func (c *ProjectsLocationsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsPatchCall {
47176	c.ctx_ = ctx
47177	return c
47178}
47179
47180// Header returns an http.Header that can be modified by the caller to
47181// add HTTP headers to the request.
47182func (c *ProjectsLocationsAgentVersionsPatchCall) Header() http.Header {
47183	if c.header_ == nil {
47184		c.header_ = make(http.Header)
47185	}
47186	return c.header_
47187}
47188
47189func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
47190	reqHeaders := make(http.Header)
47191	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
47192	for k, v := range c.header_ {
47193		reqHeaders[k] = v
47194	}
47195	reqHeaders.Set("User-Agent", c.s.userAgent())
47196	var body io.Reader = nil
47197	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
47198	if err != nil {
47199		return nil, err
47200	}
47201	reqHeaders.Set("Content-Type", "application/json")
47202	c.urlParams_.Set("alt", alt)
47203	c.urlParams_.Set("prettyPrint", "false")
47204	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
47205	urls += "?" + c.urlParams_.Encode()
47206	req, err := http.NewRequest("PATCH", urls, body)
47207	if err != nil {
47208		return nil, err
47209	}
47210	req.Header = reqHeaders
47211	googleapi.Expand(req.URL, map[string]string{
47212		"name": c.nameid,
47213	})
47214	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47215}
47216
47217// Do executes the "dialogflow.projects.locations.agent.versions.patch" call.
47218// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
47219// non-nil. Any non-2xx status code is an error. Response headers are in
47220// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
47221// (if a response was returned at all) in
47222// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47223// whether the returned error was because http.StatusNotModified was
47224// returned.
47225func (c *ProjectsLocationsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
47226	gensupport.SetOptions(c.urlParams_, opts...)
47227	res, err := c.doRequest("json")
47228	if res != nil && res.StatusCode == http.StatusNotModified {
47229		if res.Body != nil {
47230			res.Body.Close()
47231		}
47232		return nil, &googleapi.Error{
47233			Code:   res.StatusCode,
47234			Header: res.Header,
47235		}
47236	}
47237	if err != nil {
47238		return nil, err
47239	}
47240	defer googleapi.CloseBody(res)
47241	if err := googleapi.CheckResponse(res); err != nil {
47242		return nil, err
47243	}
47244	ret := &GoogleCloudDialogflowV2beta1Version{
47245		ServerResponse: googleapi.ServerResponse{
47246			Header:         res.Header,
47247			HTTPStatusCode: res.StatusCode,
47248		},
47249	}
47250	target := &ret
47251	if err := gensupport.DecodeResponse(target, res); err != nil {
47252		return nil, err
47253	}
47254	return ret, nil
47255	// {
47256	//   "description": "Updates the specified agent version. Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.",
47257	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions/{versionsId}",
47258	//   "httpMethod": "PATCH",
47259	//   "id": "dialogflow.projects.locations.agent.versions.patch",
47260	//   "parameterOrder": [
47261	//     "name"
47262	//   ],
47263	//   "parameters": {
47264	//     "name": {
47265	//       "description": "Output only. The unique identifier of this agent version. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
47266	//       "location": "path",
47267	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$",
47268	//       "required": true,
47269	//       "type": "string"
47270	//     },
47271	//     "updateMask": {
47272	//       "description": "Required. The mask to control which fields get updated.",
47273	//       "format": "google-fieldmask",
47274	//       "location": "query",
47275	//       "type": "string"
47276	//     }
47277	//   },
47278	//   "path": "v2beta1/{+name}",
47279	//   "request": {
47280	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
47281	//   },
47282	//   "response": {
47283	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
47284	//   },
47285	//   "scopes": [
47286	//     "https://www.googleapis.com/auth/cloud-platform",
47287	//     "https://www.googleapis.com/auth/dialogflow"
47288	//   ]
47289	// }
47290
47291}
47292
47293// method id "dialogflow.projects.locations.answerRecords.get":
47294
47295type ProjectsLocationsAnswerRecordsGetCall struct {
47296	s            *Service
47297	name         string
47298	urlParams_   gensupport.URLParams
47299	ifNoneMatch_ string
47300	ctx_         context.Context
47301	header_      http.Header
47302}
47303
47304// Get: Deprecated. Retrieves a specific answer record.
47305//
47306// - name: The name of the answer record to retrieve. Format:
47307//   `projects//locations//answerRecords/`.
47308func (r *ProjectsLocationsAnswerRecordsService) Get(name string) *ProjectsLocationsAnswerRecordsGetCall {
47309	c := &ProjectsLocationsAnswerRecordsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47310	c.name = name
47311	return c
47312}
47313
47314// Fields allows partial responses to be retrieved. See
47315// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47316// for more information.
47317func (c *ProjectsLocationsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsGetCall {
47318	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47319	return c
47320}
47321
47322// IfNoneMatch sets the optional parameter which makes the operation
47323// fail if the object's ETag matches the given value. This is useful for
47324// getting updates only after the object has changed since the last
47325// request. Use googleapi.IsNotModified to check whether the response
47326// error from Do is the result of In-None-Match.
47327func (c *ProjectsLocationsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsGetCall {
47328	c.ifNoneMatch_ = entityTag
47329	return c
47330}
47331
47332// Context sets the context to be used in this call's Do method. Any
47333// pending HTTP request will be aborted if the provided context is
47334// canceled.
47335func (c *ProjectsLocationsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsGetCall {
47336	c.ctx_ = ctx
47337	return c
47338}
47339
47340// Header returns an http.Header that can be modified by the caller to
47341// add HTTP headers to the request.
47342func (c *ProjectsLocationsAnswerRecordsGetCall) Header() http.Header {
47343	if c.header_ == nil {
47344		c.header_ = make(http.Header)
47345	}
47346	return c.header_
47347}
47348
47349func (c *ProjectsLocationsAnswerRecordsGetCall) doRequest(alt string) (*http.Response, error) {
47350	reqHeaders := make(http.Header)
47351	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
47352	for k, v := range c.header_ {
47353		reqHeaders[k] = v
47354	}
47355	reqHeaders.Set("User-Agent", c.s.userAgent())
47356	if c.ifNoneMatch_ != "" {
47357		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47358	}
47359	var body io.Reader = nil
47360	c.urlParams_.Set("alt", alt)
47361	c.urlParams_.Set("prettyPrint", "false")
47362	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
47363	urls += "?" + c.urlParams_.Encode()
47364	req, err := http.NewRequest("GET", urls, body)
47365	if err != nil {
47366		return nil, err
47367	}
47368	req.Header = reqHeaders
47369	googleapi.Expand(req.URL, map[string]string{
47370		"name": c.name,
47371	})
47372	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47373}
47374
47375// Do executes the "dialogflow.projects.locations.answerRecords.get" call.
47376// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
47377// will be non-nil. Any non-2xx status code is an error. Response
47378// headers are in either
47379// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
47380// (if a response was returned at all) in
47381// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47382// whether the returned error was because http.StatusNotModified was
47383// returned.
47384func (c *ProjectsLocationsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
47385	gensupport.SetOptions(c.urlParams_, opts...)
47386	res, err := c.doRequest("json")
47387	if res != nil && res.StatusCode == http.StatusNotModified {
47388		if res.Body != nil {
47389			res.Body.Close()
47390		}
47391		return nil, &googleapi.Error{
47392			Code:   res.StatusCode,
47393			Header: res.Header,
47394		}
47395	}
47396	if err != nil {
47397		return nil, err
47398	}
47399	defer googleapi.CloseBody(res)
47400	if err := googleapi.CheckResponse(res); err != nil {
47401		return nil, err
47402	}
47403	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
47404		ServerResponse: googleapi.ServerResponse{
47405			Header:         res.Header,
47406			HTTPStatusCode: res.StatusCode,
47407		},
47408	}
47409	target := &ret
47410	if err := gensupport.DecodeResponse(target, res); err != nil {
47411		return nil, err
47412	}
47413	return ret, nil
47414	// {
47415	//   "description": "Deprecated. Retrieves a specific answer record.",
47416	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/answerRecords/{answerRecordsId}",
47417	//   "httpMethod": "GET",
47418	//   "id": "dialogflow.projects.locations.answerRecords.get",
47419	//   "parameterOrder": [
47420	//     "name"
47421	//   ],
47422	//   "parameters": {
47423	//     "name": {
47424	//       "description": "Required. The name of the answer record to retrieve. Format: `projects//locations//answerRecords/`.",
47425	//       "location": "path",
47426	//       "pattern": "^projects/[^/]+/locations/[^/]+/answerRecords/[^/]+$",
47427	//       "required": true,
47428	//       "type": "string"
47429	//     }
47430	//   },
47431	//   "path": "v2beta1/{+name}",
47432	//   "response": {
47433	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
47434	//   },
47435	//   "scopes": [
47436	//     "https://www.googleapis.com/auth/cloud-platform",
47437	//     "https://www.googleapis.com/auth/dialogflow"
47438	//   ]
47439	// }
47440
47441}
47442
47443// method id "dialogflow.projects.locations.answerRecords.list":
47444
47445type ProjectsLocationsAnswerRecordsListCall struct {
47446	s            *Service
47447	parent       string
47448	urlParams_   gensupport.URLParams
47449	ifNoneMatch_ string
47450	ctx_         context.Context
47451	header_      http.Header
47452}
47453
47454// List: Returns the list of all answer records in the specified project
47455// in reverse chronological order.
47456//
47457// - parent: The project to list all answer records for in reverse
47458//   chronological order. Format: `projects//locations/`.
47459func (r *ProjectsLocationsAnswerRecordsService) List(parent string) *ProjectsLocationsAnswerRecordsListCall {
47460	c := &ProjectsLocationsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47461	c.parent = parent
47462	return c
47463}
47464
47465// PageSize sets the optional parameter "pageSize": The maximum number
47466// of records to return in a single page. The server may return fewer
47467// records than this. If unspecified, we use 10. The maximum is 100.
47468func (c *ProjectsLocationsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsLocationsAnswerRecordsListCall {
47469	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
47470	return c
47471}
47472
47473// PageToken sets the optional parameter "pageToken": The
47474// ListAnswerRecordsResponse.next_page_token value returned from a
47475// previous list request used to continue listing on the next page.
47476func (c *ProjectsLocationsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsLocationsAnswerRecordsListCall {
47477	c.urlParams_.Set("pageToken", pageToken)
47478	return c
47479}
47480
47481// Fields allows partial responses to be retrieved. See
47482// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47483// for more information.
47484func (c *ProjectsLocationsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsListCall {
47485	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47486	return c
47487}
47488
47489// IfNoneMatch sets the optional parameter which makes the operation
47490// fail if the object's ETag matches the given value. This is useful for
47491// getting updates only after the object has changed since the last
47492// request. Use googleapi.IsNotModified to check whether the response
47493// error from Do is the result of In-None-Match.
47494func (c *ProjectsLocationsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsListCall {
47495	c.ifNoneMatch_ = entityTag
47496	return c
47497}
47498
47499// Context sets the context to be used in this call's Do method. Any
47500// pending HTTP request will be aborted if the provided context is
47501// canceled.
47502func (c *ProjectsLocationsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsListCall {
47503	c.ctx_ = ctx
47504	return c
47505}
47506
47507// Header returns an http.Header that can be modified by the caller to
47508// add HTTP headers to the request.
47509func (c *ProjectsLocationsAnswerRecordsListCall) Header() http.Header {
47510	if c.header_ == nil {
47511		c.header_ = make(http.Header)
47512	}
47513	return c.header_
47514}
47515
47516func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
47517	reqHeaders := make(http.Header)
47518	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
47519	for k, v := range c.header_ {
47520		reqHeaders[k] = v
47521	}
47522	reqHeaders.Set("User-Agent", c.s.userAgent())
47523	if c.ifNoneMatch_ != "" {
47524		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47525	}
47526	var body io.Reader = nil
47527	c.urlParams_.Set("alt", alt)
47528	c.urlParams_.Set("prettyPrint", "false")
47529	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
47530	urls += "?" + c.urlParams_.Encode()
47531	req, err := http.NewRequest("GET", urls, body)
47532	if err != nil {
47533		return nil, err
47534	}
47535	req.Header = reqHeaders
47536	googleapi.Expand(req.URL, map[string]string{
47537		"parent": c.parent,
47538	})
47539	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47540}
47541
47542// Do executes the "dialogflow.projects.locations.answerRecords.list" call.
47543// Exactly one of *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
47544// or error will be non-nil. Any non-2xx status code is an error.
47545// Response headers are in either
47546// *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.
47547// Header or (if a response was returned at all) in
47548// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47549// whether the returned error was because http.StatusNotModified was
47550// returned.
47551func (c *ProjectsLocationsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
47552	gensupport.SetOptions(c.urlParams_, opts...)
47553	res, err := c.doRequest("json")
47554	if res != nil && res.StatusCode == http.StatusNotModified {
47555		if res.Body != nil {
47556			res.Body.Close()
47557		}
47558		return nil, &googleapi.Error{
47559			Code:   res.StatusCode,
47560			Header: res.Header,
47561		}
47562	}
47563	if err != nil {
47564		return nil, err
47565	}
47566	defer googleapi.CloseBody(res)
47567	if err := googleapi.CheckResponse(res); err != nil {
47568		return nil, err
47569	}
47570	ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
47571		ServerResponse: googleapi.ServerResponse{
47572			Header:         res.Header,
47573			HTTPStatusCode: res.StatusCode,
47574		},
47575	}
47576	target := &ret
47577	if err := gensupport.DecodeResponse(target, res); err != nil {
47578		return nil, err
47579	}
47580	return ret, nil
47581	// {
47582	//   "description": "Returns the list of all answer records in the specified project in reverse chronological order.",
47583	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/answerRecords",
47584	//   "httpMethod": "GET",
47585	//   "id": "dialogflow.projects.locations.answerRecords.list",
47586	//   "parameterOrder": [
47587	//     "parent"
47588	//   ],
47589	//   "parameters": {
47590	//     "pageSize": {
47591	//       "description": "Optional. The maximum number of records to return in a single page. The server may return fewer records than this. If unspecified, we use 10. The maximum is 100.",
47592	//       "format": "int32",
47593	//       "location": "query",
47594	//       "type": "integer"
47595	//     },
47596	//     "pageToken": {
47597	//       "description": "Optional. The ListAnswerRecordsResponse.next_page_token value returned from a previous list request used to continue listing on the next page.",
47598	//       "location": "query",
47599	//       "type": "string"
47600	//     },
47601	//     "parent": {
47602	//       "description": "Required. The project to list all answer records for in reverse chronological order. Format: `projects//locations/`.",
47603	//       "location": "path",
47604	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
47605	//       "required": true,
47606	//       "type": "string"
47607	//     }
47608	//   },
47609	//   "path": "v2beta1/{+parent}/answerRecords",
47610	//   "response": {
47611	//     "$ref": "GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse"
47612	//   },
47613	//   "scopes": [
47614	//     "https://www.googleapis.com/auth/cloud-platform",
47615	//     "https://www.googleapis.com/auth/dialogflow"
47616	//   ]
47617	// }
47618
47619}
47620
47621// Pages invokes f for each page of results.
47622// A non-nil error returned from f will halt the iteration.
47623// The provided context supersedes any context provided to the Context method.
47624func (c *ProjectsLocationsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
47625	c.ctx_ = ctx
47626	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
47627	for {
47628		x, err := c.Do()
47629		if err != nil {
47630			return err
47631		}
47632		if err := f(x); err != nil {
47633			return err
47634		}
47635		if x.NextPageToken == "" {
47636			return nil
47637		}
47638		c.PageToken(x.NextPageToken)
47639	}
47640}
47641
47642// method id "dialogflow.projects.locations.answerRecords.patch":
47643
47644type ProjectsLocationsAnswerRecordsPatchCall struct {
47645	s                                        *Service
47646	nameid                                   string
47647	googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
47648	urlParams_                               gensupport.URLParams
47649	ctx_                                     context.Context
47650	header_                                  http.Header
47651}
47652
47653// Patch: Updates the specified answer record.
47654//
47655// - name: The unique identifier of this answer record. Required for
47656//   AnswerRecords.UpdateAnswerRecord method. Format:
47657//   `projects//locations//answerRecords/`.
47658func (r *ProjectsLocationsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsLocationsAnswerRecordsPatchCall {
47659	c := &ProjectsLocationsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47660	c.nameid = nameid
47661	c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
47662	return c
47663}
47664
47665// UpdateMask sets the optional parameter "updateMask": Required. The
47666// mask to control which fields get updated.
47667func (c *ProjectsLocationsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAnswerRecordsPatchCall {
47668	c.urlParams_.Set("updateMask", updateMask)
47669	return c
47670}
47671
47672// Fields allows partial responses to be retrieved. See
47673// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47674// for more information.
47675func (c *ProjectsLocationsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsPatchCall {
47676	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47677	return c
47678}
47679
47680// Context sets the context to be used in this call's Do method. Any
47681// pending HTTP request will be aborted if the provided context is
47682// canceled.
47683func (c *ProjectsLocationsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsPatchCall {
47684	c.ctx_ = ctx
47685	return c
47686}
47687
47688// Header returns an http.Header that can be modified by the caller to
47689// add HTTP headers to the request.
47690func (c *ProjectsLocationsAnswerRecordsPatchCall) Header() http.Header {
47691	if c.header_ == nil {
47692		c.header_ = make(http.Header)
47693	}
47694	return c.header_
47695}
47696
47697func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
47698	reqHeaders := make(http.Header)
47699	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
47700	for k, v := range c.header_ {
47701		reqHeaders[k] = v
47702	}
47703	reqHeaders.Set("User-Agent", c.s.userAgent())
47704	var body io.Reader = nil
47705	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
47706	if err != nil {
47707		return nil, err
47708	}
47709	reqHeaders.Set("Content-Type", "application/json")
47710	c.urlParams_.Set("alt", alt)
47711	c.urlParams_.Set("prettyPrint", "false")
47712	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
47713	urls += "?" + c.urlParams_.Encode()
47714	req, err := http.NewRequest("PATCH", urls, body)
47715	if err != nil {
47716		return nil, err
47717	}
47718	req.Header = reqHeaders
47719	googleapi.Expand(req.URL, map[string]string{
47720		"name": c.nameid,
47721	})
47722	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47723}
47724
47725// Do executes the "dialogflow.projects.locations.answerRecords.patch" call.
47726// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
47727// will be non-nil. Any non-2xx status code is an error. Response
47728// headers are in either
47729// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
47730// (if a response was returned at all) in
47731// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47732// whether the returned error was because http.StatusNotModified was
47733// returned.
47734func (c *ProjectsLocationsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
47735	gensupport.SetOptions(c.urlParams_, opts...)
47736	res, err := c.doRequest("json")
47737	if res != nil && res.StatusCode == http.StatusNotModified {
47738		if res.Body != nil {
47739			res.Body.Close()
47740		}
47741		return nil, &googleapi.Error{
47742			Code:   res.StatusCode,
47743			Header: res.Header,
47744		}
47745	}
47746	if err != nil {
47747		return nil, err
47748	}
47749	defer googleapi.CloseBody(res)
47750	if err := googleapi.CheckResponse(res); err != nil {
47751		return nil, err
47752	}
47753	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
47754		ServerResponse: googleapi.ServerResponse{
47755			Header:         res.Header,
47756			HTTPStatusCode: res.StatusCode,
47757		},
47758	}
47759	target := &ret
47760	if err := gensupport.DecodeResponse(target, res); err != nil {
47761		return nil, err
47762	}
47763	return ret, nil
47764	// {
47765	//   "description": "Updates the specified answer record.",
47766	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/answerRecords/{answerRecordsId}",
47767	//   "httpMethod": "PATCH",
47768	//   "id": "dialogflow.projects.locations.answerRecords.patch",
47769	//   "parameterOrder": [
47770	//     "name"
47771	//   ],
47772	//   "parameters": {
47773	//     "name": {
47774	//       "description": "The unique identifier of this answer record. Required for AnswerRecords.UpdateAnswerRecord method. Format: `projects//locations//answerRecords/`.",
47775	//       "location": "path",
47776	//       "pattern": "^projects/[^/]+/locations/[^/]+/answerRecords/[^/]+$",
47777	//       "required": true,
47778	//       "type": "string"
47779	//     },
47780	//     "updateMask": {
47781	//       "description": "Required. The mask to control which fields get updated.",
47782	//       "format": "google-fieldmask",
47783	//       "location": "query",
47784	//       "type": "string"
47785	//     }
47786	//   },
47787	//   "path": "v2beta1/{+name}",
47788	//   "request": {
47789	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
47790	//   },
47791	//   "response": {
47792	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
47793	//   },
47794	//   "scopes": [
47795	//     "https://www.googleapis.com/auth/cloud-platform",
47796	//     "https://www.googleapis.com/auth/dialogflow"
47797	//   ]
47798	// }
47799
47800}
47801
47802// method id "dialogflow.projects.locations.conversationProfiles.create":
47803
47804type ProjectsLocationsConversationProfilesCreateCall struct {
47805	s                                               *Service
47806	parent                                          string
47807	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
47808	urlParams_                                      gensupport.URLParams
47809	ctx_                                            context.Context
47810	header_                                         http.Header
47811}
47812
47813// Create: Creates a conversation profile in the specified project.
47814// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
47815// aren't populated in the response. You can retrieve them via
47816// GetConversationProfile API.
47817//
47818// - parent: The project to create a conversation profile for. Format:
47819//   `projects//locations/`.
47820func (r *ProjectsLocationsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesCreateCall {
47821	c := &ProjectsLocationsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47822	c.parent = parent
47823	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
47824	return c
47825}
47826
47827// Fields allows partial responses to be retrieved. See
47828// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47829// for more information.
47830func (c *ProjectsLocationsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesCreateCall {
47831	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47832	return c
47833}
47834
47835// Context sets the context to be used in this call's Do method. Any
47836// pending HTTP request will be aborted if the provided context is
47837// canceled.
47838func (c *ProjectsLocationsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesCreateCall {
47839	c.ctx_ = ctx
47840	return c
47841}
47842
47843// Header returns an http.Header that can be modified by the caller to
47844// add HTTP headers to the request.
47845func (c *ProjectsLocationsConversationProfilesCreateCall) Header() http.Header {
47846	if c.header_ == nil {
47847		c.header_ = make(http.Header)
47848	}
47849	return c.header_
47850}
47851
47852func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
47853	reqHeaders := make(http.Header)
47854	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
47855	for k, v := range c.header_ {
47856		reqHeaders[k] = v
47857	}
47858	reqHeaders.Set("User-Agent", c.s.userAgent())
47859	var body io.Reader = nil
47860	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
47861	if err != nil {
47862		return nil, err
47863	}
47864	reqHeaders.Set("Content-Type", "application/json")
47865	c.urlParams_.Set("alt", alt)
47866	c.urlParams_.Set("prettyPrint", "false")
47867	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
47868	urls += "?" + c.urlParams_.Encode()
47869	req, err := http.NewRequest("POST", urls, body)
47870	if err != nil {
47871		return nil, err
47872	}
47873	req.Header = reqHeaders
47874	googleapi.Expand(req.URL, map[string]string{
47875		"parent": c.parent,
47876	})
47877	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47878}
47879
47880// Do executes the "dialogflow.projects.locations.conversationProfiles.create" call.
47881// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
47882// error will be non-nil. Any non-2xx status code is an error. Response
47883// headers are in either
47884// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
47885//  or (if a response was returned at all) in
47886// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47887// whether the returned error was because http.StatusNotModified was
47888// returned.
47889func (c *ProjectsLocationsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
47890	gensupport.SetOptions(c.urlParams_, opts...)
47891	res, err := c.doRequest("json")
47892	if res != nil && res.StatusCode == http.StatusNotModified {
47893		if res.Body != nil {
47894			res.Body.Close()
47895		}
47896		return nil, &googleapi.Error{
47897			Code:   res.StatusCode,
47898			Header: res.Header,
47899		}
47900	}
47901	if err != nil {
47902		return nil, err
47903	}
47904	defer googleapi.CloseBody(res)
47905	if err := googleapi.CheckResponse(res); err != nil {
47906		return nil, err
47907	}
47908	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
47909		ServerResponse: googleapi.ServerResponse{
47910			Header:         res.Header,
47911			HTTPStatusCode: res.StatusCode,
47912		},
47913	}
47914	target := &ret
47915	if err := gensupport.DecodeResponse(target, res); err != nil {
47916		return nil, err
47917	}
47918	return ret, nil
47919	// {
47920	//   "description": "Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.",
47921	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles",
47922	//   "httpMethod": "POST",
47923	//   "id": "dialogflow.projects.locations.conversationProfiles.create",
47924	//   "parameterOrder": [
47925	//     "parent"
47926	//   ],
47927	//   "parameters": {
47928	//     "parent": {
47929	//       "description": "Required. The project to create a conversation profile for. Format: `projects//locations/`.",
47930	//       "location": "path",
47931	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
47932	//       "required": true,
47933	//       "type": "string"
47934	//     }
47935	//   },
47936	//   "path": "v2beta1/{+parent}/conversationProfiles",
47937	//   "request": {
47938	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
47939	//   },
47940	//   "response": {
47941	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
47942	//   },
47943	//   "scopes": [
47944	//     "https://www.googleapis.com/auth/cloud-platform",
47945	//     "https://www.googleapis.com/auth/dialogflow"
47946	//   ]
47947	// }
47948
47949}
47950
47951// method id "dialogflow.projects.locations.conversationProfiles.delete":
47952
47953type ProjectsLocationsConversationProfilesDeleteCall struct {
47954	s          *Service
47955	name       string
47956	urlParams_ gensupport.URLParams
47957	ctx_       context.Context
47958	header_    http.Header
47959}
47960
47961// Delete: Deletes the specified conversation profile.
47962//
47963// - name: The name of the conversation profile to delete. Format:
47964//   `projects//locations//conversationProfiles/`.
47965func (r *ProjectsLocationsConversationProfilesService) Delete(name string) *ProjectsLocationsConversationProfilesDeleteCall {
47966	c := &ProjectsLocationsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47967	c.name = name
47968	return c
47969}
47970
47971// Fields allows partial responses to be retrieved. See
47972// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47973// for more information.
47974func (c *ProjectsLocationsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesDeleteCall {
47975	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47976	return c
47977}
47978
47979// Context sets the context to be used in this call's Do method. Any
47980// pending HTTP request will be aborted if the provided context is
47981// canceled.
47982func (c *ProjectsLocationsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesDeleteCall {
47983	c.ctx_ = ctx
47984	return c
47985}
47986
47987// Header returns an http.Header that can be modified by the caller to
47988// add HTTP headers to the request.
47989func (c *ProjectsLocationsConversationProfilesDeleteCall) Header() http.Header {
47990	if c.header_ == nil {
47991		c.header_ = make(http.Header)
47992	}
47993	return c.header_
47994}
47995
47996func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
47997	reqHeaders := make(http.Header)
47998	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
47999	for k, v := range c.header_ {
48000		reqHeaders[k] = v
48001	}
48002	reqHeaders.Set("User-Agent", c.s.userAgent())
48003	var body io.Reader = nil
48004	c.urlParams_.Set("alt", alt)
48005	c.urlParams_.Set("prettyPrint", "false")
48006	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
48007	urls += "?" + c.urlParams_.Encode()
48008	req, err := http.NewRequest("DELETE", urls, body)
48009	if err != nil {
48010		return nil, err
48011	}
48012	req.Header = reqHeaders
48013	googleapi.Expand(req.URL, map[string]string{
48014		"name": c.name,
48015	})
48016	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48017}
48018
48019// Do executes the "dialogflow.projects.locations.conversationProfiles.delete" call.
48020// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
48021// non-2xx status code is an error. Response headers are in either
48022// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
48023// returned at all) in error.(*googleapi.Error).Header. Use
48024// googleapi.IsNotModified to check whether the returned error was
48025// because http.StatusNotModified was returned.
48026func (c *ProjectsLocationsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
48027	gensupport.SetOptions(c.urlParams_, opts...)
48028	res, err := c.doRequest("json")
48029	if res != nil && res.StatusCode == http.StatusNotModified {
48030		if res.Body != nil {
48031			res.Body.Close()
48032		}
48033		return nil, &googleapi.Error{
48034			Code:   res.StatusCode,
48035			Header: res.Header,
48036		}
48037	}
48038	if err != nil {
48039		return nil, err
48040	}
48041	defer googleapi.CloseBody(res)
48042	if err := googleapi.CheckResponse(res); err != nil {
48043		return nil, err
48044	}
48045	ret := &GoogleProtobufEmpty{
48046		ServerResponse: googleapi.ServerResponse{
48047			Header:         res.Header,
48048			HTTPStatusCode: res.StatusCode,
48049		},
48050	}
48051	target := &ret
48052	if err := gensupport.DecodeResponse(target, res); err != nil {
48053		return nil, err
48054	}
48055	return ret, nil
48056	// {
48057	//   "description": "Deletes the specified conversation profile.",
48058	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles/{conversationProfilesId}",
48059	//   "httpMethod": "DELETE",
48060	//   "id": "dialogflow.projects.locations.conversationProfiles.delete",
48061	//   "parameterOrder": [
48062	//     "name"
48063	//   ],
48064	//   "parameters": {
48065	//     "name": {
48066	//       "description": "Required. The name of the conversation profile to delete. Format: `projects//locations//conversationProfiles/`.",
48067	//       "location": "path",
48068	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$",
48069	//       "required": true,
48070	//       "type": "string"
48071	//     }
48072	//   },
48073	//   "path": "v2beta1/{+name}",
48074	//   "response": {
48075	//     "$ref": "GoogleProtobufEmpty"
48076	//   },
48077	//   "scopes": [
48078	//     "https://www.googleapis.com/auth/cloud-platform",
48079	//     "https://www.googleapis.com/auth/dialogflow"
48080	//   ]
48081	// }
48082
48083}
48084
48085// method id "dialogflow.projects.locations.conversationProfiles.get":
48086
48087type ProjectsLocationsConversationProfilesGetCall struct {
48088	s            *Service
48089	name         string
48090	urlParams_   gensupport.URLParams
48091	ifNoneMatch_ string
48092	ctx_         context.Context
48093	header_      http.Header
48094}
48095
48096// Get: Retrieves the specified conversation profile.
48097//
48098// - name: The resource name of the conversation profile. Format:
48099//   `projects//locations//conversationProfiles/`.
48100func (r *ProjectsLocationsConversationProfilesService) Get(name string) *ProjectsLocationsConversationProfilesGetCall {
48101	c := &ProjectsLocationsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48102	c.name = name
48103	return c
48104}
48105
48106// Fields allows partial responses to be retrieved. See
48107// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48108// for more information.
48109func (c *ProjectsLocationsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesGetCall {
48110	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48111	return c
48112}
48113
48114// IfNoneMatch sets the optional parameter which makes the operation
48115// fail if the object's ETag matches the given value. This is useful for
48116// getting updates only after the object has changed since the last
48117// request. Use googleapi.IsNotModified to check whether the response
48118// error from Do is the result of In-None-Match.
48119func (c *ProjectsLocationsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesGetCall {
48120	c.ifNoneMatch_ = entityTag
48121	return c
48122}
48123
48124// Context sets the context to be used in this call's Do method. Any
48125// pending HTTP request will be aborted if the provided context is
48126// canceled.
48127func (c *ProjectsLocationsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesGetCall {
48128	c.ctx_ = ctx
48129	return c
48130}
48131
48132// Header returns an http.Header that can be modified by the caller to
48133// add HTTP headers to the request.
48134func (c *ProjectsLocationsConversationProfilesGetCall) Header() http.Header {
48135	if c.header_ == nil {
48136		c.header_ = make(http.Header)
48137	}
48138	return c.header_
48139}
48140
48141func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
48142	reqHeaders := make(http.Header)
48143	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
48144	for k, v := range c.header_ {
48145		reqHeaders[k] = v
48146	}
48147	reqHeaders.Set("User-Agent", c.s.userAgent())
48148	if c.ifNoneMatch_ != "" {
48149		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48150	}
48151	var body io.Reader = nil
48152	c.urlParams_.Set("alt", alt)
48153	c.urlParams_.Set("prettyPrint", "false")
48154	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
48155	urls += "?" + c.urlParams_.Encode()
48156	req, err := http.NewRequest("GET", urls, body)
48157	if err != nil {
48158		return nil, err
48159	}
48160	req.Header = reqHeaders
48161	googleapi.Expand(req.URL, map[string]string{
48162		"name": c.name,
48163	})
48164	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48165}
48166
48167// Do executes the "dialogflow.projects.locations.conversationProfiles.get" call.
48168// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
48169// error will be non-nil. Any non-2xx status code is an error. Response
48170// headers are in either
48171// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
48172//  or (if a response was returned at all) in
48173// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48174// whether the returned error was because http.StatusNotModified was
48175// returned.
48176func (c *ProjectsLocationsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
48177	gensupport.SetOptions(c.urlParams_, opts...)
48178	res, err := c.doRequest("json")
48179	if res != nil && res.StatusCode == http.StatusNotModified {
48180		if res.Body != nil {
48181			res.Body.Close()
48182		}
48183		return nil, &googleapi.Error{
48184			Code:   res.StatusCode,
48185			Header: res.Header,
48186		}
48187	}
48188	if err != nil {
48189		return nil, err
48190	}
48191	defer googleapi.CloseBody(res)
48192	if err := googleapi.CheckResponse(res); err != nil {
48193		return nil, err
48194	}
48195	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
48196		ServerResponse: googleapi.ServerResponse{
48197			Header:         res.Header,
48198			HTTPStatusCode: res.StatusCode,
48199		},
48200	}
48201	target := &ret
48202	if err := gensupport.DecodeResponse(target, res); err != nil {
48203		return nil, err
48204	}
48205	return ret, nil
48206	// {
48207	//   "description": "Retrieves the specified conversation profile.",
48208	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles/{conversationProfilesId}",
48209	//   "httpMethod": "GET",
48210	//   "id": "dialogflow.projects.locations.conversationProfiles.get",
48211	//   "parameterOrder": [
48212	//     "name"
48213	//   ],
48214	//   "parameters": {
48215	//     "name": {
48216	//       "description": "Required. The resource name of the conversation profile. Format: `projects//locations//conversationProfiles/`.",
48217	//       "location": "path",
48218	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$",
48219	//       "required": true,
48220	//       "type": "string"
48221	//     }
48222	//   },
48223	//   "path": "v2beta1/{+name}",
48224	//   "response": {
48225	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
48226	//   },
48227	//   "scopes": [
48228	//     "https://www.googleapis.com/auth/cloud-platform",
48229	//     "https://www.googleapis.com/auth/dialogflow"
48230	//   ]
48231	// }
48232
48233}
48234
48235// method id "dialogflow.projects.locations.conversationProfiles.list":
48236
48237type ProjectsLocationsConversationProfilesListCall struct {
48238	s            *Service
48239	parent       string
48240	urlParams_   gensupport.URLParams
48241	ifNoneMatch_ string
48242	ctx_         context.Context
48243	header_      http.Header
48244}
48245
48246// List: Returns the list of all conversation profiles in the specified
48247// project.
48248//
48249// - parent: The project to list all conversation profiles from. Format:
48250//   `projects//locations/`.
48251func (r *ProjectsLocationsConversationProfilesService) List(parent string) *ProjectsLocationsConversationProfilesListCall {
48252	c := &ProjectsLocationsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48253	c.parent = parent
48254	return c
48255}
48256
48257// PageSize sets the optional parameter "pageSize": The maximum number
48258// of items to return in a single page. By default 100 and at most 1000.
48259func (c *ProjectsLocationsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationProfilesListCall {
48260	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
48261	return c
48262}
48263
48264// PageToken sets the optional parameter "pageToken": The
48265// next_page_token value returned from a previous list request.
48266func (c *ProjectsLocationsConversationProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConversationProfilesListCall {
48267	c.urlParams_.Set("pageToken", pageToken)
48268	return c
48269}
48270
48271// Fields allows partial responses to be retrieved. See
48272// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48273// for more information.
48274func (c *ProjectsLocationsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesListCall {
48275	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48276	return c
48277}
48278
48279// IfNoneMatch sets the optional parameter which makes the operation
48280// fail if the object's ETag matches the given value. This is useful for
48281// getting updates only after the object has changed since the last
48282// request. Use googleapi.IsNotModified to check whether the response
48283// error from Do is the result of In-None-Match.
48284func (c *ProjectsLocationsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesListCall {
48285	c.ifNoneMatch_ = entityTag
48286	return c
48287}
48288
48289// Context sets the context to be used in this call's Do method. Any
48290// pending HTTP request will be aborted if the provided context is
48291// canceled.
48292func (c *ProjectsLocationsConversationProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesListCall {
48293	c.ctx_ = ctx
48294	return c
48295}
48296
48297// Header returns an http.Header that can be modified by the caller to
48298// add HTTP headers to the request.
48299func (c *ProjectsLocationsConversationProfilesListCall) Header() http.Header {
48300	if c.header_ == nil {
48301		c.header_ = make(http.Header)
48302	}
48303	return c.header_
48304}
48305
48306func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
48307	reqHeaders := make(http.Header)
48308	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
48309	for k, v := range c.header_ {
48310		reqHeaders[k] = v
48311	}
48312	reqHeaders.Set("User-Agent", c.s.userAgent())
48313	if c.ifNoneMatch_ != "" {
48314		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48315	}
48316	var body io.Reader = nil
48317	c.urlParams_.Set("alt", alt)
48318	c.urlParams_.Set("prettyPrint", "false")
48319	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
48320	urls += "?" + c.urlParams_.Encode()
48321	req, err := http.NewRequest("GET", urls, body)
48322	if err != nil {
48323		return nil, err
48324	}
48325	req.Header = reqHeaders
48326	googleapi.Expand(req.URL, map[string]string{
48327		"parent": c.parent,
48328	})
48329	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48330}
48331
48332// Do executes the "dialogflow.projects.locations.conversationProfiles.list" call.
48333// Exactly one of
48334// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse or
48335// error will be non-nil. Any non-2xx status code is an error. Response
48336// headers are in either
48337// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerRe
48338// sponse.Header or (if a response was returned at all) in
48339// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48340// whether the returned error was because http.StatusNotModified was
48341// returned.
48342func (c *ProjectsLocationsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
48343	gensupport.SetOptions(c.urlParams_, opts...)
48344	res, err := c.doRequest("json")
48345	if res != nil && res.StatusCode == http.StatusNotModified {
48346		if res.Body != nil {
48347			res.Body.Close()
48348		}
48349		return nil, &googleapi.Error{
48350			Code:   res.StatusCode,
48351			Header: res.Header,
48352		}
48353	}
48354	if err != nil {
48355		return nil, err
48356	}
48357	defer googleapi.CloseBody(res)
48358	if err := googleapi.CheckResponse(res); err != nil {
48359		return nil, err
48360	}
48361	ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
48362		ServerResponse: googleapi.ServerResponse{
48363			Header:         res.Header,
48364			HTTPStatusCode: res.StatusCode,
48365		},
48366	}
48367	target := &ret
48368	if err := gensupport.DecodeResponse(target, res); err != nil {
48369		return nil, err
48370	}
48371	return ret, nil
48372	// {
48373	//   "description": "Returns the list of all conversation profiles in the specified project.",
48374	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles",
48375	//   "httpMethod": "GET",
48376	//   "id": "dialogflow.projects.locations.conversationProfiles.list",
48377	//   "parameterOrder": [
48378	//     "parent"
48379	//   ],
48380	//   "parameters": {
48381	//     "pageSize": {
48382	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
48383	//       "format": "int32",
48384	//       "location": "query",
48385	//       "type": "integer"
48386	//     },
48387	//     "pageToken": {
48388	//       "description": "The next_page_token value returned from a previous list request.",
48389	//       "location": "query",
48390	//       "type": "string"
48391	//     },
48392	//     "parent": {
48393	//       "description": "Required. The project to list all conversation profiles from. Format: `projects//locations/`.",
48394	//       "location": "path",
48395	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
48396	//       "required": true,
48397	//       "type": "string"
48398	//     }
48399	//   },
48400	//   "path": "v2beta1/{+parent}/conversationProfiles",
48401	//   "response": {
48402	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationProfilesResponse"
48403	//   },
48404	//   "scopes": [
48405	//     "https://www.googleapis.com/auth/cloud-platform",
48406	//     "https://www.googleapis.com/auth/dialogflow"
48407	//   ]
48408	// }
48409
48410}
48411
48412// Pages invokes f for each page of results.
48413// A non-nil error returned from f will halt the iteration.
48414// The provided context supersedes any context provided to the Context method.
48415func (c *ProjectsLocationsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
48416	c.ctx_ = ctx
48417	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
48418	for {
48419		x, err := c.Do()
48420		if err != nil {
48421			return err
48422		}
48423		if err := f(x); err != nil {
48424			return err
48425		}
48426		if x.NextPageToken == "" {
48427			return nil
48428		}
48429		c.PageToken(x.NextPageToken)
48430	}
48431}
48432
48433// method id "dialogflow.projects.locations.conversationProfiles.patch":
48434
48435type ProjectsLocationsConversationProfilesPatchCall struct {
48436	s                                               *Service
48437	nameid                                          string
48438	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
48439	urlParams_                                      gensupport.URLParams
48440	ctx_                                            context.Context
48441	header_                                         http.Header
48442}
48443
48444// Patch: Updates the specified conversation profile.
48445// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
48446// aren't populated in the response. You can retrieve them via
48447// GetConversationProfile API.
48448//
48449// - name: The unique identifier of this conversation profile. Format:
48450//   `projects//locations//conversationProfiles/`.
48451func (r *ProjectsLocationsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesPatchCall {
48452	c := &ProjectsLocationsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48453	c.nameid = nameid
48454	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
48455	return c
48456}
48457
48458// UpdateMask sets the optional parameter "updateMask": Required. The
48459// mask to control which fields to update.
48460func (c *ProjectsLocationsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationProfilesPatchCall {
48461	c.urlParams_.Set("updateMask", updateMask)
48462	return c
48463}
48464
48465// Fields allows partial responses to be retrieved. See
48466// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48467// for more information.
48468func (c *ProjectsLocationsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesPatchCall {
48469	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48470	return c
48471}
48472
48473// Context sets the context to be used in this call's Do method. Any
48474// pending HTTP request will be aborted if the provided context is
48475// canceled.
48476func (c *ProjectsLocationsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesPatchCall {
48477	c.ctx_ = ctx
48478	return c
48479}
48480
48481// Header returns an http.Header that can be modified by the caller to
48482// add HTTP headers to the request.
48483func (c *ProjectsLocationsConversationProfilesPatchCall) Header() http.Header {
48484	if c.header_ == nil {
48485		c.header_ = make(http.Header)
48486	}
48487	return c.header_
48488}
48489
48490func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
48491	reqHeaders := make(http.Header)
48492	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
48493	for k, v := range c.header_ {
48494		reqHeaders[k] = v
48495	}
48496	reqHeaders.Set("User-Agent", c.s.userAgent())
48497	var body io.Reader = nil
48498	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
48499	if err != nil {
48500		return nil, err
48501	}
48502	reqHeaders.Set("Content-Type", "application/json")
48503	c.urlParams_.Set("alt", alt)
48504	c.urlParams_.Set("prettyPrint", "false")
48505	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
48506	urls += "?" + c.urlParams_.Encode()
48507	req, err := http.NewRequest("PATCH", urls, body)
48508	if err != nil {
48509		return nil, err
48510	}
48511	req.Header = reqHeaders
48512	googleapi.Expand(req.URL, map[string]string{
48513		"name": c.nameid,
48514	})
48515	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48516}
48517
48518// Do executes the "dialogflow.projects.locations.conversationProfiles.patch" call.
48519// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
48520// error will be non-nil. Any non-2xx status code is an error. Response
48521// headers are in either
48522// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
48523//  or (if a response was returned at all) in
48524// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48525// whether the returned error was because http.StatusNotModified was
48526// returned.
48527func (c *ProjectsLocationsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
48528	gensupport.SetOptions(c.urlParams_, opts...)
48529	res, err := c.doRequest("json")
48530	if res != nil && res.StatusCode == http.StatusNotModified {
48531		if res.Body != nil {
48532			res.Body.Close()
48533		}
48534		return nil, &googleapi.Error{
48535			Code:   res.StatusCode,
48536			Header: res.Header,
48537		}
48538	}
48539	if err != nil {
48540		return nil, err
48541	}
48542	defer googleapi.CloseBody(res)
48543	if err := googleapi.CheckResponse(res); err != nil {
48544		return nil, err
48545	}
48546	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
48547		ServerResponse: googleapi.ServerResponse{
48548			Header:         res.Header,
48549			HTTPStatusCode: res.StatusCode,
48550		},
48551	}
48552	target := &ret
48553	if err := gensupport.DecodeResponse(target, res); err != nil {
48554		return nil, err
48555	}
48556	return ret, nil
48557	// {
48558	//   "description": "Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.",
48559	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles/{conversationProfilesId}",
48560	//   "httpMethod": "PATCH",
48561	//   "id": "dialogflow.projects.locations.conversationProfiles.patch",
48562	//   "parameterOrder": [
48563	//     "name"
48564	//   ],
48565	//   "parameters": {
48566	//     "name": {
48567	//       "description": "The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`.",
48568	//       "location": "path",
48569	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$",
48570	//       "required": true,
48571	//       "type": "string"
48572	//     },
48573	//     "updateMask": {
48574	//       "description": "Required. The mask to control which fields to update.",
48575	//       "format": "google-fieldmask",
48576	//       "location": "query",
48577	//       "type": "string"
48578	//     }
48579	//   },
48580	//   "path": "v2beta1/{+name}",
48581	//   "request": {
48582	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
48583	//   },
48584	//   "response": {
48585	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
48586	//   },
48587	//   "scopes": [
48588	//     "https://www.googleapis.com/auth/cloud-platform",
48589	//     "https://www.googleapis.com/auth/dialogflow"
48590	//   ]
48591	// }
48592
48593}
48594
48595// method id "dialogflow.projects.locations.conversations.complete":
48596
48597type ProjectsLocationsConversationsCompleteCall struct {
48598	s                                                       *Service
48599	nameid                                                  string
48600	googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
48601	urlParams_                                              gensupport.URLParams
48602	ctx_                                                    context.Context
48603	header_                                                 http.Header
48604}
48605
48606// Complete: Completes the specified conversation. Finished
48607// conversations are purged from the database after 30 days.
48608//
48609// - name: Resource identifier of the conversation to close. Format:
48610//   `projects//locations//conversations/`.
48611func (r *ProjectsLocationsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsLocationsConversationsCompleteCall {
48612	c := &ProjectsLocationsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48613	c.nameid = nameid
48614	c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
48615	return c
48616}
48617
48618// Fields allows partial responses to be retrieved. See
48619// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48620// for more information.
48621func (c *ProjectsLocationsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCompleteCall {
48622	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48623	return c
48624}
48625
48626// Context sets the context to be used in this call's Do method. Any
48627// pending HTTP request will be aborted if the provided context is
48628// canceled.
48629func (c *ProjectsLocationsConversationsCompleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsCompleteCall {
48630	c.ctx_ = ctx
48631	return c
48632}
48633
48634// Header returns an http.Header that can be modified by the caller to
48635// add HTTP headers to the request.
48636func (c *ProjectsLocationsConversationsCompleteCall) Header() http.Header {
48637	if c.header_ == nil {
48638		c.header_ = make(http.Header)
48639	}
48640	return c.header_
48641}
48642
48643func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
48644	reqHeaders := make(http.Header)
48645	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
48646	for k, v := range c.header_ {
48647		reqHeaders[k] = v
48648	}
48649	reqHeaders.Set("User-Agent", c.s.userAgent())
48650	var body io.Reader = nil
48651	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
48652	if err != nil {
48653		return nil, err
48654	}
48655	reqHeaders.Set("Content-Type", "application/json")
48656	c.urlParams_.Set("alt", alt)
48657	c.urlParams_.Set("prettyPrint", "false")
48658	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
48659	urls += "?" + c.urlParams_.Encode()
48660	req, err := http.NewRequest("POST", urls, body)
48661	if err != nil {
48662		return nil, err
48663	}
48664	req.Header = reqHeaders
48665	googleapi.Expand(req.URL, map[string]string{
48666		"name": c.nameid,
48667	})
48668	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48669}
48670
48671// Do executes the "dialogflow.projects.locations.conversations.complete" call.
48672// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
48673// will be non-nil. Any non-2xx status code is an error. Response
48674// headers are in either
48675// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
48676// (if a response was returned at all) in
48677// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48678// whether the returned error was because http.StatusNotModified was
48679// returned.
48680func (c *ProjectsLocationsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
48681	gensupport.SetOptions(c.urlParams_, opts...)
48682	res, err := c.doRequest("json")
48683	if res != nil && res.StatusCode == http.StatusNotModified {
48684		if res.Body != nil {
48685			res.Body.Close()
48686		}
48687		return nil, &googleapi.Error{
48688			Code:   res.StatusCode,
48689			Header: res.Header,
48690		}
48691	}
48692	if err != nil {
48693		return nil, err
48694	}
48695	defer googleapi.CloseBody(res)
48696	if err := googleapi.CheckResponse(res); err != nil {
48697		return nil, err
48698	}
48699	ret := &GoogleCloudDialogflowV2beta1Conversation{
48700		ServerResponse: googleapi.ServerResponse{
48701			Header:         res.Header,
48702			HTTPStatusCode: res.StatusCode,
48703		},
48704	}
48705	target := &ret
48706	if err := gensupport.DecodeResponse(target, res); err != nil {
48707		return nil, err
48708	}
48709	return ret, nil
48710	// {
48711	//   "description": "Completes the specified conversation. Finished conversations are purged from the database after 30 days.",
48712	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}:complete",
48713	//   "httpMethod": "POST",
48714	//   "id": "dialogflow.projects.locations.conversations.complete",
48715	//   "parameterOrder": [
48716	//     "name"
48717	//   ],
48718	//   "parameters": {
48719	//     "name": {
48720	//       "description": "Required. Resource identifier of the conversation to close. Format: `projects//locations//conversations/`.",
48721	//       "location": "path",
48722	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
48723	//       "required": true,
48724	//       "type": "string"
48725	//     }
48726	//   },
48727	//   "path": "v2beta1/{+name}:complete",
48728	//   "request": {
48729	//     "$ref": "GoogleCloudDialogflowV2beta1CompleteConversationRequest"
48730	//   },
48731	//   "response": {
48732	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
48733	//   },
48734	//   "scopes": [
48735	//     "https://www.googleapis.com/auth/cloud-platform",
48736	//     "https://www.googleapis.com/auth/dialogflow"
48737	//   ]
48738	// }
48739
48740}
48741
48742// method id "dialogflow.projects.locations.conversations.create":
48743
48744type ProjectsLocationsConversationsCreateCall struct {
48745	s                                        *Service
48746	parentid                                 string
48747	googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
48748	urlParams_                               gensupport.URLParams
48749	ctx_                                     context.Context
48750	header_                                  http.Header
48751}
48752
48753// Create: Creates a new conversation. Conversations are auto-completed
48754// after 24 hours. Conversation Lifecycle: There are two stages during a
48755// conversation: Automated Agent Stage and Assist Stage. For Automated
48756// Agent Stage, there will be a dialogflow agent responding to user
48757// queries. For Assist Stage, there's no dialogflow agent responding to
48758// user queries. But we will provide suggestions which are generated
48759// from conversation. If Conversation.conversation_profile is configured
48760// for a dialogflow agent, conversation will start from `Automated Agent
48761// Stage`, otherwise, it will start from `Assist Stage`. And during
48762// `Automated Agent Stage`, once an Intent with
48763// Intent.live_agent_handoff is triggered, conversation will transfer to
48764// Assist Stage.
48765//
48766// - parent: Resource identifier of the project creating the
48767//   conversation. Format: `projects//locations/`.
48768func (r *ProjectsLocationsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsLocationsConversationsCreateCall {
48769	c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48770	c.parentid = parentid
48771	c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
48772	return c
48773}
48774
48775// ConversationId sets the optional parameter "conversationId":
48776// Identifier of the conversation. Generally it's auto generated by
48777// Google. Only set it if you cannot wait for the response to return a
48778// auto-generated one to you. The conversation ID must be compliant with
48779// the regression fomula "a-zA-Z*" with the characters length in range
48780// of [3,64]. If the field is provided, the caller is resposible for 1.
48781// the uniqueness of the ID, otherwise the request will be rejected. 2.
48782// the consistency for whether to use custom ID or not under a project
48783// to better ensure uniqueness.
48784func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall {
48785	c.urlParams_.Set("conversationId", conversationId)
48786	return c
48787}
48788
48789// Fields allows partial responses to be retrieved. See
48790// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48791// for more information.
48792func (c *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall {
48793	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48794	return c
48795}
48796
48797// Context sets the context to be used in this call's Do method. Any
48798// pending HTTP request will be aborted if the provided context is
48799// canceled.
48800func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall {
48801	c.ctx_ = ctx
48802	return c
48803}
48804
48805// Header returns an http.Header that can be modified by the caller to
48806// add HTTP headers to the request.
48807func (c *ProjectsLocationsConversationsCreateCall) Header() http.Header {
48808	if c.header_ == nil {
48809		c.header_ = make(http.Header)
48810	}
48811	return c.header_
48812}
48813
48814func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
48815	reqHeaders := make(http.Header)
48816	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
48817	for k, v := range c.header_ {
48818		reqHeaders[k] = v
48819	}
48820	reqHeaders.Set("User-Agent", c.s.userAgent())
48821	var body io.Reader = nil
48822	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
48823	if err != nil {
48824		return nil, err
48825	}
48826	reqHeaders.Set("Content-Type", "application/json")
48827	c.urlParams_.Set("alt", alt)
48828	c.urlParams_.Set("prettyPrint", "false")
48829	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
48830	urls += "?" + c.urlParams_.Encode()
48831	req, err := http.NewRequest("POST", urls, body)
48832	if err != nil {
48833		return nil, err
48834	}
48835	req.Header = reqHeaders
48836	googleapi.Expand(req.URL, map[string]string{
48837		"parent": c.parentid,
48838	})
48839	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48840}
48841
48842// Do executes the "dialogflow.projects.locations.conversations.create" call.
48843// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
48844// will be non-nil. Any non-2xx status code is an error. Response
48845// headers are in either
48846// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
48847// (if a response was returned at all) in
48848// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48849// whether the returned error was because http.StatusNotModified was
48850// returned.
48851func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
48852	gensupport.SetOptions(c.urlParams_, opts...)
48853	res, err := c.doRequest("json")
48854	if res != nil && res.StatusCode == http.StatusNotModified {
48855		if res.Body != nil {
48856			res.Body.Close()
48857		}
48858		return nil, &googleapi.Error{
48859			Code:   res.StatusCode,
48860			Header: res.Header,
48861		}
48862	}
48863	if err != nil {
48864		return nil, err
48865	}
48866	defer googleapi.CloseBody(res)
48867	if err := googleapi.CheckResponse(res); err != nil {
48868		return nil, err
48869	}
48870	ret := &GoogleCloudDialogflowV2beta1Conversation{
48871		ServerResponse: googleapi.ServerResponse{
48872			Header:         res.Header,
48873			HTTPStatusCode: res.StatusCode,
48874		},
48875	}
48876	target := &ret
48877	if err := gensupport.DecodeResponse(target, res); err != nil {
48878		return nil, err
48879	}
48880	return ret, nil
48881	// {
48882	//   "description": "Creates a new conversation. Conversations are auto-completed after 24 hours. Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. For Automated Agent Stage, there will be a dialogflow agent responding to user queries. For Assist Stage, there's no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation. If Conversation.conversation_profile is configured for a dialogflow agent, conversation will start from `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And during `Automated Agent Stage`, once an Intent with Intent.live_agent_handoff is triggered, conversation will transfer to Assist Stage.",
48883	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations",
48884	//   "httpMethod": "POST",
48885	//   "id": "dialogflow.projects.locations.conversations.create",
48886	//   "parameterOrder": [
48887	//     "parent"
48888	//   ],
48889	//   "parameters": {
48890	//     "conversationId": {
48891	//       "description": "Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula \"a-zA-Z*\" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.",
48892	//       "location": "query",
48893	//       "type": "string"
48894	//     },
48895	//     "parent": {
48896	//       "description": "Required. Resource identifier of the project creating the conversation. Format: `projects//locations/`.",
48897	//       "location": "path",
48898	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
48899	//       "required": true,
48900	//       "type": "string"
48901	//     }
48902	//   },
48903	//   "path": "v2beta1/{+parent}/conversations",
48904	//   "request": {
48905	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
48906	//   },
48907	//   "response": {
48908	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
48909	//   },
48910	//   "scopes": [
48911	//     "https://www.googleapis.com/auth/cloud-platform",
48912	//     "https://www.googleapis.com/auth/dialogflow"
48913	//   ]
48914	// }
48915
48916}
48917
48918// method id "dialogflow.projects.locations.conversations.get":
48919
48920type ProjectsLocationsConversationsGetCall struct {
48921	s            *Service
48922	name         string
48923	urlParams_   gensupport.URLParams
48924	ifNoneMatch_ string
48925	ctx_         context.Context
48926	header_      http.Header
48927}
48928
48929// Get: Retrieves the specific conversation.
48930//
48931// - name: The name of the conversation. Format:
48932//   `projects//locations//conversations/`.
48933func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall {
48934	c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48935	c.name = name
48936	return c
48937}
48938
48939// Fields allows partial responses to be retrieved. See
48940// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48941// for more information.
48942func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall {
48943	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48944	return c
48945}
48946
48947// IfNoneMatch sets the optional parameter which makes the operation
48948// fail if the object's ETag matches the given value. This is useful for
48949// getting updates only after the object has changed since the last
48950// request. Use googleapi.IsNotModified to check whether the response
48951// error from Do is the result of In-None-Match.
48952func (c *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall {
48953	c.ifNoneMatch_ = entityTag
48954	return c
48955}
48956
48957// Context sets the context to be used in this call's Do method. Any
48958// pending HTTP request will be aborted if the provided context is
48959// canceled.
48960func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall {
48961	c.ctx_ = ctx
48962	return c
48963}
48964
48965// Header returns an http.Header that can be modified by the caller to
48966// add HTTP headers to the request.
48967func (c *ProjectsLocationsConversationsGetCall) Header() http.Header {
48968	if c.header_ == nil {
48969		c.header_ = make(http.Header)
48970	}
48971	return c.header_
48972}
48973
48974func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
48975	reqHeaders := make(http.Header)
48976	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
48977	for k, v := range c.header_ {
48978		reqHeaders[k] = v
48979	}
48980	reqHeaders.Set("User-Agent", c.s.userAgent())
48981	if c.ifNoneMatch_ != "" {
48982		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48983	}
48984	var body io.Reader = nil
48985	c.urlParams_.Set("alt", alt)
48986	c.urlParams_.Set("prettyPrint", "false")
48987	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
48988	urls += "?" + c.urlParams_.Encode()
48989	req, err := http.NewRequest("GET", urls, body)
48990	if err != nil {
48991		return nil, err
48992	}
48993	req.Header = reqHeaders
48994	googleapi.Expand(req.URL, map[string]string{
48995		"name": c.name,
48996	})
48997	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48998}
48999
49000// Do executes the "dialogflow.projects.locations.conversations.get" call.
49001// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
49002// will be non-nil. Any non-2xx status code is an error. Response
49003// headers are in either
49004// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
49005// (if a response was returned at all) in
49006// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49007// whether the returned error was because http.StatusNotModified was
49008// returned.
49009func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
49010	gensupport.SetOptions(c.urlParams_, opts...)
49011	res, err := c.doRequest("json")
49012	if res != nil && res.StatusCode == http.StatusNotModified {
49013		if res.Body != nil {
49014			res.Body.Close()
49015		}
49016		return nil, &googleapi.Error{
49017			Code:   res.StatusCode,
49018			Header: res.Header,
49019		}
49020	}
49021	if err != nil {
49022		return nil, err
49023	}
49024	defer googleapi.CloseBody(res)
49025	if err := googleapi.CheckResponse(res); err != nil {
49026		return nil, err
49027	}
49028	ret := &GoogleCloudDialogflowV2beta1Conversation{
49029		ServerResponse: googleapi.ServerResponse{
49030			Header:         res.Header,
49031			HTTPStatusCode: res.StatusCode,
49032		},
49033	}
49034	target := &ret
49035	if err := gensupport.DecodeResponse(target, res); err != nil {
49036		return nil, err
49037	}
49038	return ret, nil
49039	// {
49040	//   "description": "Retrieves the specific conversation.",
49041	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}",
49042	//   "httpMethod": "GET",
49043	//   "id": "dialogflow.projects.locations.conversations.get",
49044	//   "parameterOrder": [
49045	//     "name"
49046	//   ],
49047	//   "parameters": {
49048	//     "name": {
49049	//       "description": "Required. The name of the conversation. Format: `projects//locations//conversations/`.",
49050	//       "location": "path",
49051	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
49052	//       "required": true,
49053	//       "type": "string"
49054	//     }
49055	//   },
49056	//   "path": "v2beta1/{+name}",
49057	//   "response": {
49058	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
49059	//   },
49060	//   "scopes": [
49061	//     "https://www.googleapis.com/auth/cloud-platform",
49062	//     "https://www.googleapis.com/auth/dialogflow"
49063	//   ]
49064	// }
49065
49066}
49067
49068// method id "dialogflow.projects.locations.conversations.list":
49069
49070type ProjectsLocationsConversationsListCall struct {
49071	s            *Service
49072	parent       string
49073	urlParams_   gensupport.URLParams
49074	ifNoneMatch_ string
49075	ctx_         context.Context
49076	header_      http.Header
49077}
49078
49079// List: Returns the list of all conversations in the specified project.
49080//
49081// - parent: The project from which to list all conversation. Format:
49082//   `projects//locations/`.
49083func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall {
49084	c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49085	c.parent = parent
49086	return c
49087}
49088
49089// Filter sets the optional parameter "filter": A filter expression that
49090// filters conversations listed in the response. In general, the
49091// expression must specify the field name, a comparison operator, and
49092// the value to use for filtering: - The value must be a string, a
49093// number, or a boolean. - The comparison operator must be either
49094// `=`,`!=`, `>`, or `<`. - To filter on multiple expressions, separate
49095// the expressions with `AND` or `OR` (omitting both implies `AND`). -
49096// For clarity, expressions can be enclosed in parentheses. Only
49097// `lifecycle_state` can be filtered on in this way. For example, the
49098// following expression only returns `COMPLETED` conversations:
49099// `lifecycle_state = "COMPLETED" For more information about filtering,
49100// see API Filtering (https://aip.dev/160).
49101func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall {
49102	c.urlParams_.Set("filter", filter)
49103	return c
49104}
49105
49106// PageSize sets the optional parameter "pageSize": The maximum number
49107// of items to return in a single page. By default 100 and at most 1000.
49108func (c *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall {
49109	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
49110	return c
49111}
49112
49113// PageToken sets the optional parameter "pageToken": The
49114// next_page_token value returned from a previous list request.
49115func (c *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall {
49116	c.urlParams_.Set("pageToken", pageToken)
49117	return c
49118}
49119
49120// Fields allows partial responses to be retrieved. See
49121// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49122// for more information.
49123func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall {
49124	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49125	return c
49126}
49127
49128// IfNoneMatch sets the optional parameter which makes the operation
49129// fail if the object's ETag matches the given value. This is useful for
49130// getting updates only after the object has changed since the last
49131// request. Use googleapi.IsNotModified to check whether the response
49132// error from Do is the result of In-None-Match.
49133func (c *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall {
49134	c.ifNoneMatch_ = entityTag
49135	return c
49136}
49137
49138// Context sets the context to be used in this call's Do method. Any
49139// pending HTTP request will be aborted if the provided context is
49140// canceled.
49141func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall {
49142	c.ctx_ = ctx
49143	return c
49144}
49145
49146// Header returns an http.Header that can be modified by the caller to
49147// add HTTP headers to the request.
49148func (c *ProjectsLocationsConversationsListCall) Header() http.Header {
49149	if c.header_ == nil {
49150		c.header_ = make(http.Header)
49151	}
49152	return c.header_
49153}
49154
49155func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) {
49156	reqHeaders := make(http.Header)
49157	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
49158	for k, v := range c.header_ {
49159		reqHeaders[k] = v
49160	}
49161	reqHeaders.Set("User-Agent", c.s.userAgent())
49162	if c.ifNoneMatch_ != "" {
49163		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49164	}
49165	var body io.Reader = nil
49166	c.urlParams_.Set("alt", alt)
49167	c.urlParams_.Set("prettyPrint", "false")
49168	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
49169	urls += "?" + c.urlParams_.Encode()
49170	req, err := http.NewRequest("GET", urls, body)
49171	if err != nil {
49172		return nil, err
49173	}
49174	req.Header = reqHeaders
49175	googleapi.Expand(req.URL, map[string]string{
49176		"parent": c.parent,
49177	})
49178	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49179}
49180
49181// Do executes the "dialogflow.projects.locations.conversations.list" call.
49182// Exactly one of *GoogleCloudDialogflowV2beta1ListConversationsResponse
49183// or error will be non-nil. Any non-2xx status code is an error.
49184// Response headers are in either
49185// *GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.
49186// Header or (if a response was returned at all) in
49187// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49188// whether the returned error was because http.StatusNotModified was
49189// returned.
49190func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
49191	gensupport.SetOptions(c.urlParams_, opts...)
49192	res, err := c.doRequest("json")
49193	if res != nil && res.StatusCode == http.StatusNotModified {
49194		if res.Body != nil {
49195			res.Body.Close()
49196		}
49197		return nil, &googleapi.Error{
49198			Code:   res.StatusCode,
49199			Header: res.Header,
49200		}
49201	}
49202	if err != nil {
49203		return nil, err
49204	}
49205	defer googleapi.CloseBody(res)
49206	if err := googleapi.CheckResponse(res); err != nil {
49207		return nil, err
49208	}
49209	ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
49210		ServerResponse: googleapi.ServerResponse{
49211			Header:         res.Header,
49212			HTTPStatusCode: res.StatusCode,
49213		},
49214	}
49215	target := &ret
49216	if err := gensupport.DecodeResponse(target, res); err != nil {
49217		return nil, err
49218	}
49219	return ret, nil
49220	// {
49221	//   "description": "Returns the list of all conversations in the specified project.",
49222	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations",
49223	//   "httpMethod": "GET",
49224	//   "id": "dialogflow.projects.locations.conversations.list",
49225	//   "parameterOrder": [
49226	//     "parent"
49227	//   ],
49228	//   "parameters": {
49229	//     "filter": {
49230	//       "description": "A filter expression that filters conversations listed in the response. In general, the expression must specify the field name, a comparison operator, and the value to use for filtering: - The value must be a string, a number, or a boolean. - The comparison operator must be either `=`,`!=`, `\u003e`, or `\u003c`. - To filter on multiple expressions, separate the expressions with `AND` or `OR` (omitting both implies `AND`). - For clarity, expressions can be enclosed in parentheses. Only `lifecycle_state` can be filtered on in this way. For example, the following expression only returns `COMPLETED` conversations: `lifecycle_state = \"COMPLETED\"` For more information about filtering, see [API Filtering](https://aip.dev/160).",
49231	//       "location": "query",
49232	//       "type": "string"
49233	//     },
49234	//     "pageSize": {
49235	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
49236	//       "format": "int32",
49237	//       "location": "query",
49238	//       "type": "integer"
49239	//     },
49240	//     "pageToken": {
49241	//       "description": "Optional. The next_page_token value returned from a previous list request.",
49242	//       "location": "query",
49243	//       "type": "string"
49244	//     },
49245	//     "parent": {
49246	//       "description": "Required. The project from which to list all conversation. Format: `projects//locations/`.",
49247	//       "location": "path",
49248	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
49249	//       "required": true,
49250	//       "type": "string"
49251	//     }
49252	//   },
49253	//   "path": "v2beta1/{+parent}/conversations",
49254	//   "response": {
49255	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationsResponse"
49256	//   },
49257	//   "scopes": [
49258	//     "https://www.googleapis.com/auth/cloud-platform",
49259	//     "https://www.googleapis.com/auth/dialogflow"
49260	//   ]
49261	// }
49262
49263}
49264
49265// Pages invokes f for each page of results.
49266// A non-nil error returned from f will halt the iteration.
49267// The provided context supersedes any context provided to the Context method.
49268func (c *ProjectsLocationsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
49269	c.ctx_ = ctx
49270	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
49271	for {
49272		x, err := c.Do()
49273		if err != nil {
49274			return err
49275		}
49276		if err := f(x); err != nil {
49277			return err
49278		}
49279		if x.NextPageToken == "" {
49280			return nil
49281		}
49282		c.PageToken(x.NextPageToken)
49283	}
49284}
49285
49286// method id "dialogflow.projects.locations.conversations.messages.batchCreate":
49287
49288type ProjectsLocationsConversationsMessagesBatchCreateCall struct {
49289	s                                                      *Service
49290	parentid                                               string
49291	googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
49292	urlParams_                                             gensupport.URLParams
49293	ctx_                                                   context.Context
49294	header_                                                http.Header
49295}
49296
49297// BatchCreate: Batch ingests messages to conversation. Customers can
49298// use this RPC to ingest historical messages to conversation.
49299//
49300// - parent: Resource identifier of the conversation to create message.
49301//   Format: `projects//locations//conversations/`.
49302func (r *ProjectsLocationsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsLocationsConversationsMessagesBatchCreateCall {
49303	c := &ProjectsLocationsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49304	c.parentid = parentid
49305	c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
49306	return c
49307}
49308
49309// Fields allows partial responses to be retrieved. See
49310// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49311// for more information.
49312func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesBatchCreateCall {
49313	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49314	return c
49315}
49316
49317// Context sets the context to be used in this call's Do method. Any
49318// pending HTTP request will be aborted if the provided context is
49319// canceled.
49320func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesBatchCreateCall {
49321	c.ctx_ = ctx
49322	return c
49323}
49324
49325// Header returns an http.Header that can be modified by the caller to
49326// add HTTP headers to the request.
49327func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Header() http.Header {
49328	if c.header_ == nil {
49329		c.header_ = make(http.Header)
49330	}
49331	return c.header_
49332}
49333
49334func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
49335	reqHeaders := make(http.Header)
49336	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
49337	for k, v := range c.header_ {
49338		reqHeaders[k] = v
49339	}
49340	reqHeaders.Set("User-Agent", c.s.userAgent())
49341	var body io.Reader = nil
49342	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
49343	if err != nil {
49344		return nil, err
49345	}
49346	reqHeaders.Set("Content-Type", "application/json")
49347	c.urlParams_.Set("alt", alt)
49348	c.urlParams_.Set("prettyPrint", "false")
49349	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
49350	urls += "?" + c.urlParams_.Encode()
49351	req, err := http.NewRequest("POST", urls, body)
49352	if err != nil {
49353		return nil, err
49354	}
49355	req.Header = reqHeaders
49356	googleapi.Expand(req.URL, map[string]string{
49357		"parent": c.parentid,
49358	})
49359	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49360}
49361
49362// Do executes the "dialogflow.projects.locations.conversations.messages.batchCreate" call.
49363// Exactly one of
49364// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse or error
49365// will be non-nil. Any non-2xx status code is an error. Response
49366// headers are in either
49367// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.ServerRespons
49368// e.Header or (if a response was returned at all) in
49369// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49370// whether the returned error was because http.StatusNotModified was
49371// returned.
49372func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
49373	gensupport.SetOptions(c.urlParams_, opts...)
49374	res, err := c.doRequest("json")
49375	if res != nil && res.StatusCode == http.StatusNotModified {
49376		if res.Body != nil {
49377			res.Body.Close()
49378		}
49379		return nil, &googleapi.Error{
49380			Code:   res.StatusCode,
49381			Header: res.Header,
49382		}
49383	}
49384	if err != nil {
49385		return nil, err
49386	}
49387	defer googleapi.CloseBody(res)
49388	if err := googleapi.CheckResponse(res); err != nil {
49389		return nil, err
49390	}
49391	ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
49392		ServerResponse: googleapi.ServerResponse{
49393			Header:         res.Header,
49394			HTTPStatusCode: res.StatusCode,
49395		},
49396	}
49397	target := &ret
49398	if err := gensupport.DecodeResponse(target, res); err != nil {
49399		return nil, err
49400	}
49401	return ret, nil
49402	// {
49403	//   "description": "Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.",
49404	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/messages:batchCreate",
49405	//   "httpMethod": "POST",
49406	//   "id": "dialogflow.projects.locations.conversations.messages.batchCreate",
49407	//   "parameterOrder": [
49408	//     "parent"
49409	//   ],
49410	//   "parameters": {
49411	//     "parent": {
49412	//       "description": "Required. Resource identifier of the conversation to create message. Format: `projects//locations//conversations/`.",
49413	//       "location": "path",
49414	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
49415	//       "required": true,
49416	//       "type": "string"
49417	//     }
49418	//   },
49419	//   "path": "v2beta1/{+parent}/messages:batchCreate",
49420	//   "request": {
49421	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest"
49422	//   },
49423	//   "response": {
49424	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse"
49425	//   },
49426	//   "scopes": [
49427	//     "https://www.googleapis.com/auth/cloud-platform",
49428	//     "https://www.googleapis.com/auth/dialogflow"
49429	//   ]
49430	// }
49431
49432}
49433
49434// method id "dialogflow.projects.locations.conversations.messages.list":
49435
49436type ProjectsLocationsConversationsMessagesListCall struct {
49437	s            *Service
49438	parent       string
49439	urlParams_   gensupport.URLParams
49440	ifNoneMatch_ string
49441	ctx_         context.Context
49442	header_      http.Header
49443}
49444
49445// List: Lists messages that belong to a given conversation. `messages`
49446// are ordered by `create_time` in descending order. To fetch updates
49447// without duplication, send request with filter
49448// `create_time_epoch_microseconds > [first item's create_time of
49449// previous request]` and empty page_token.
49450//
49451// - parent: The name of the conversation to list messages for. Format:
49452//   `projects//locations//conversations/`.
49453func (r *ProjectsLocationsConversationsMessagesService) List(parent string) *ProjectsLocationsConversationsMessagesListCall {
49454	c := &ProjectsLocationsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49455	c.parent = parent
49456	return c
49457}
49458
49459// Filter sets the optional parameter "filter": Filter on message
49460// fields. Currently predicates on `create_time` and
49461// `create_time_epoch_microseconds` are supported. `create_time` only
49462// support milliseconds accuracy. E.g., `create_time_epoch_microseconds
49463// > 1551790877964485` or `create_time > "2017-01-15T01:30:15.01Z". For
49464// more information about filtering, see API Filtering
49465// (https://aip.dev/160).
49466func (c *ProjectsLocationsConversationsMessagesListCall) Filter(filter string) *ProjectsLocationsConversationsMessagesListCall {
49467	c.urlParams_.Set("filter", filter)
49468	return c
49469}
49470
49471// PageSize sets the optional parameter "pageSize": The maximum number
49472// of items to return in a single page. By default 100 and at most 1000.
49473func (c *ProjectsLocationsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsMessagesListCall {
49474	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
49475	return c
49476}
49477
49478// PageToken sets the optional parameter "pageToken": The
49479// next_page_token value returned from a previous list request.
49480func (c *ProjectsLocationsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsMessagesListCall {
49481	c.urlParams_.Set("pageToken", pageToken)
49482	return c
49483}
49484
49485// Fields allows partial responses to be retrieved. See
49486// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49487// for more information.
49488func (c *ProjectsLocationsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesListCall {
49489	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49490	return c
49491}
49492
49493// IfNoneMatch sets the optional parameter which makes the operation
49494// fail if the object's ETag matches the given value. This is useful for
49495// getting updates only after the object has changed since the last
49496// request. Use googleapi.IsNotModified to check whether the response
49497// error from Do is the result of In-None-Match.
49498func (c *ProjectsLocationsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsMessagesListCall {
49499	c.ifNoneMatch_ = entityTag
49500	return c
49501}
49502
49503// Context sets the context to be used in this call's Do method. Any
49504// pending HTTP request will be aborted if the provided context is
49505// canceled.
49506func (c *ProjectsLocationsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesListCall {
49507	c.ctx_ = ctx
49508	return c
49509}
49510
49511// Header returns an http.Header that can be modified by the caller to
49512// add HTTP headers to the request.
49513func (c *ProjectsLocationsConversationsMessagesListCall) Header() http.Header {
49514	if c.header_ == nil {
49515		c.header_ = make(http.Header)
49516	}
49517	return c.header_
49518}
49519
49520func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
49521	reqHeaders := make(http.Header)
49522	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
49523	for k, v := range c.header_ {
49524		reqHeaders[k] = v
49525	}
49526	reqHeaders.Set("User-Agent", c.s.userAgent())
49527	if c.ifNoneMatch_ != "" {
49528		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49529	}
49530	var body io.Reader = nil
49531	c.urlParams_.Set("alt", alt)
49532	c.urlParams_.Set("prettyPrint", "false")
49533	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
49534	urls += "?" + c.urlParams_.Encode()
49535	req, err := http.NewRequest("GET", urls, body)
49536	if err != nil {
49537		return nil, err
49538	}
49539	req.Header = reqHeaders
49540	googleapi.Expand(req.URL, map[string]string{
49541		"parent": c.parent,
49542	})
49543	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49544}
49545
49546// Do executes the "dialogflow.projects.locations.conversations.messages.list" call.
49547// Exactly one of *GoogleCloudDialogflowV2beta1ListMessagesResponse or
49548// error will be non-nil. Any non-2xx status code is an error. Response
49549// headers are in either
49550// *GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Heade
49551// r or (if a response was returned at all) in
49552// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49553// whether the returned error was because http.StatusNotModified was
49554// returned.
49555func (c *ProjectsLocationsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
49556	gensupport.SetOptions(c.urlParams_, opts...)
49557	res, err := c.doRequest("json")
49558	if res != nil && res.StatusCode == http.StatusNotModified {
49559		if res.Body != nil {
49560			res.Body.Close()
49561		}
49562		return nil, &googleapi.Error{
49563			Code:   res.StatusCode,
49564			Header: res.Header,
49565		}
49566	}
49567	if err != nil {
49568		return nil, err
49569	}
49570	defer googleapi.CloseBody(res)
49571	if err := googleapi.CheckResponse(res); err != nil {
49572		return nil, err
49573	}
49574	ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
49575		ServerResponse: googleapi.ServerResponse{
49576			Header:         res.Header,
49577			HTTPStatusCode: res.StatusCode,
49578		},
49579	}
49580	target := &ret
49581	if err := gensupport.DecodeResponse(target, res); err != nil {
49582		return nil, err
49583	}
49584	return ret, nil
49585	// {
49586	//   "description": "Lists messages that belong to a given conversation. `messages` are ordered by `create_time` in descending order. To fetch updates without duplication, send request with filter `create_time_epoch_microseconds \u003e [first item's create_time of previous request]` and empty page_token.",
49587	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/messages",
49588	//   "httpMethod": "GET",
49589	//   "id": "dialogflow.projects.locations.conversations.messages.list",
49590	//   "parameterOrder": [
49591	//     "parent"
49592	//   ],
49593	//   "parameters": {
49594	//     "filter": {
49595	//       "description": "Optional. Filter on message fields. Currently predicates on `create_time` and `create_time_epoch_microseconds` are supported. `create_time` only support milliseconds accuracy. E.g., `create_time_epoch_microseconds \u003e 1551790877964485` or `create_time \u003e \"2017-01-15T01:30:15.01Z\"`. For more information about filtering, see [API Filtering](https://aip.dev/160).",
49596	//       "location": "query",
49597	//       "type": "string"
49598	//     },
49599	//     "pageSize": {
49600	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
49601	//       "format": "int32",
49602	//       "location": "query",
49603	//       "type": "integer"
49604	//     },
49605	//     "pageToken": {
49606	//       "description": "Optional. The next_page_token value returned from a previous list request.",
49607	//       "location": "query",
49608	//       "type": "string"
49609	//     },
49610	//     "parent": {
49611	//       "description": "Required. The name of the conversation to list messages for. Format: `projects//locations//conversations/`",
49612	//       "location": "path",
49613	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
49614	//       "required": true,
49615	//       "type": "string"
49616	//     }
49617	//   },
49618	//   "path": "v2beta1/{+parent}/messages",
49619	//   "response": {
49620	//     "$ref": "GoogleCloudDialogflowV2beta1ListMessagesResponse"
49621	//   },
49622	//   "scopes": [
49623	//     "https://www.googleapis.com/auth/cloud-platform",
49624	//     "https://www.googleapis.com/auth/dialogflow"
49625	//   ]
49626	// }
49627
49628}
49629
49630// Pages invokes f for each page of results.
49631// A non-nil error returned from f will halt the iteration.
49632// The provided context supersedes any context provided to the Context method.
49633func (c *ProjectsLocationsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
49634	c.ctx_ = ctx
49635	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
49636	for {
49637		x, err := c.Do()
49638		if err != nil {
49639			return err
49640		}
49641		if err := f(x); err != nil {
49642			return err
49643		}
49644		if x.NextPageToken == "" {
49645			return nil
49646		}
49647		c.PageToken(x.NextPageToken)
49648	}
49649}
49650
49651// method id "dialogflow.projects.locations.conversations.participants.analyzeContent":
49652
49653type ProjectsLocationsConversationsParticipantsAnalyzeContentCall struct {
49654	s                                                 *Service
49655	participant                                       string
49656	googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
49657	urlParams_                                        gensupport.URLParams
49658	ctx_                                              context.Context
49659	header_                                           http.Header
49660}
49661
49662// AnalyzeContent: Adds a text (chat, for example), or audio (phone
49663// recording, for example) message from a participant into the
49664// conversation. Note: Always use agent versions for production traffic
49665// sent to virtual agents. See Versions and environments
49666// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
49667//
49668// - participant: The name of the participant this text comes from.
49669//   Format: `projects//locations//conversations//participants/`.
49670func (r *ProjectsLocationsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
49671	c := &ProjectsLocationsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49672	c.participant = participant
49673	c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
49674	return c
49675}
49676
49677// Fields allows partial responses to be retrieved. See
49678// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49679// for more information.
49680func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
49681	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49682	return c
49683}
49684
49685// Context sets the context to be used in this call's Do method. Any
49686// pending HTTP request will be aborted if the provided context is
49687// canceled.
49688func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
49689	c.ctx_ = ctx
49690	return c
49691}
49692
49693// Header returns an http.Header that can be modified by the caller to
49694// add HTTP headers to the request.
49695func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
49696	if c.header_ == nil {
49697		c.header_ = make(http.Header)
49698	}
49699	return c.header_
49700}
49701
49702func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
49703	reqHeaders := make(http.Header)
49704	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
49705	for k, v := range c.header_ {
49706		reqHeaders[k] = v
49707	}
49708	reqHeaders.Set("User-Agent", c.s.userAgent())
49709	var body io.Reader = nil
49710	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
49711	if err != nil {
49712		return nil, err
49713	}
49714	reqHeaders.Set("Content-Type", "application/json")
49715	c.urlParams_.Set("alt", alt)
49716	c.urlParams_.Set("prettyPrint", "false")
49717	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
49718	urls += "?" + c.urlParams_.Encode()
49719	req, err := http.NewRequest("POST", urls, body)
49720	if err != nil {
49721		return nil, err
49722	}
49723	req.Header = reqHeaders
49724	googleapi.Expand(req.URL, map[string]string{
49725		"participant": c.participant,
49726	})
49727	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49728}
49729
49730// Do executes the "dialogflow.projects.locations.conversations.participants.analyzeContent" call.
49731// Exactly one of *GoogleCloudDialogflowV2beta1AnalyzeContentResponse or
49732// error will be non-nil. Any non-2xx status code is an error. Response
49733// headers are in either
49734// *GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Hea
49735// der or (if a response was returned at all) in
49736// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49737// whether the returned error was because http.StatusNotModified was
49738// returned.
49739func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
49740	gensupport.SetOptions(c.urlParams_, opts...)
49741	res, err := c.doRequest("json")
49742	if res != nil && res.StatusCode == http.StatusNotModified {
49743		if res.Body != nil {
49744			res.Body.Close()
49745		}
49746		return nil, &googleapi.Error{
49747			Code:   res.StatusCode,
49748			Header: res.Header,
49749		}
49750	}
49751	if err != nil {
49752		return nil, err
49753	}
49754	defer googleapi.CloseBody(res)
49755	if err := googleapi.CheckResponse(res); err != nil {
49756		return nil, err
49757	}
49758	ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
49759		ServerResponse: googleapi.ServerResponse{
49760			Header:         res.Header,
49761			HTTPStatusCode: res.StatusCode,
49762		},
49763	}
49764	target := &ret
49765	if err := gensupport.DecodeResponse(target, res); err != nil {
49766		return nil, err
49767	}
49768	return ret, nil
49769	// {
49770	//   "description": "Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).",
49771	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}:analyzeContent",
49772	//   "httpMethod": "POST",
49773	//   "id": "dialogflow.projects.locations.conversations.participants.analyzeContent",
49774	//   "parameterOrder": [
49775	//     "participant"
49776	//   ],
49777	//   "parameters": {
49778	//     "participant": {
49779	//       "description": "Required. The name of the participant this text comes from. Format: `projects//locations//conversations//participants/`.",
49780	//       "location": "path",
49781	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
49782	//       "required": true,
49783	//       "type": "string"
49784	//     }
49785	//   },
49786	//   "path": "v2beta1/{+participant}:analyzeContent",
49787	//   "request": {
49788	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentRequest"
49789	//   },
49790	//   "response": {
49791	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentResponse"
49792	//   },
49793	//   "scopes": [
49794	//     "https://www.googleapis.com/auth/cloud-platform",
49795	//     "https://www.googleapis.com/auth/dialogflow"
49796	//   ]
49797	// }
49798
49799}
49800
49801// method id "dialogflow.projects.locations.conversations.participants.create":
49802
49803type ProjectsLocationsConversationsParticipantsCreateCall struct {
49804	s                                       *Service
49805	parentid                                string
49806	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
49807	urlParams_                              gensupport.URLParams
49808	ctx_                                    context.Context
49809	header_                                 http.Header
49810}
49811
49812// Create: Creates a new participant in a conversation.
49813//
49814// - parent: Resource identifier of the conversation adding the
49815//   participant. Format: `projects//locations//conversations/`.
49816func (r *ProjectsLocationsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsCreateCall {
49817	c := &ProjectsLocationsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49818	c.parentid = parentid
49819	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
49820	return c
49821}
49822
49823// Fields allows partial responses to be retrieved. See
49824// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49825// for more information.
49826func (c *ProjectsLocationsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsCreateCall {
49827	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49828	return c
49829}
49830
49831// Context sets the context to be used in this call's Do method. Any
49832// pending HTTP request will be aborted if the provided context is
49833// canceled.
49834func (c *ProjectsLocationsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsCreateCall {
49835	c.ctx_ = ctx
49836	return c
49837}
49838
49839// Header returns an http.Header that can be modified by the caller to
49840// add HTTP headers to the request.
49841func (c *ProjectsLocationsConversationsParticipantsCreateCall) Header() http.Header {
49842	if c.header_ == nil {
49843		c.header_ = make(http.Header)
49844	}
49845	return c.header_
49846}
49847
49848func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
49849	reqHeaders := make(http.Header)
49850	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
49851	for k, v := range c.header_ {
49852		reqHeaders[k] = v
49853	}
49854	reqHeaders.Set("User-Agent", c.s.userAgent())
49855	var body io.Reader = nil
49856	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
49857	if err != nil {
49858		return nil, err
49859	}
49860	reqHeaders.Set("Content-Type", "application/json")
49861	c.urlParams_.Set("alt", alt)
49862	c.urlParams_.Set("prettyPrint", "false")
49863	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
49864	urls += "?" + c.urlParams_.Encode()
49865	req, err := http.NewRequest("POST", urls, body)
49866	if err != nil {
49867		return nil, err
49868	}
49869	req.Header = reqHeaders
49870	googleapi.Expand(req.URL, map[string]string{
49871		"parent": c.parentid,
49872	})
49873	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49874}
49875
49876// Do executes the "dialogflow.projects.locations.conversations.participants.create" call.
49877// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
49878// be non-nil. Any non-2xx status code is an error. Response headers are
49879// in either
49880// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
49881// a response was returned at all) in error.(*googleapi.Error).Header.
49882// Use googleapi.IsNotModified to check whether the returned error was
49883// because http.StatusNotModified was returned.
49884func (c *ProjectsLocationsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
49885	gensupport.SetOptions(c.urlParams_, opts...)
49886	res, err := c.doRequest("json")
49887	if res != nil && res.StatusCode == http.StatusNotModified {
49888		if res.Body != nil {
49889			res.Body.Close()
49890		}
49891		return nil, &googleapi.Error{
49892			Code:   res.StatusCode,
49893			Header: res.Header,
49894		}
49895	}
49896	if err != nil {
49897		return nil, err
49898	}
49899	defer googleapi.CloseBody(res)
49900	if err := googleapi.CheckResponse(res); err != nil {
49901		return nil, err
49902	}
49903	ret := &GoogleCloudDialogflowV2beta1Participant{
49904		ServerResponse: googleapi.ServerResponse{
49905			Header:         res.Header,
49906			HTTPStatusCode: res.StatusCode,
49907		},
49908	}
49909	target := &ret
49910	if err := gensupport.DecodeResponse(target, res); err != nil {
49911		return nil, err
49912	}
49913	return ret, nil
49914	// {
49915	//   "description": "Creates a new participant in a conversation.",
49916	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants",
49917	//   "httpMethod": "POST",
49918	//   "id": "dialogflow.projects.locations.conversations.participants.create",
49919	//   "parameterOrder": [
49920	//     "parent"
49921	//   ],
49922	//   "parameters": {
49923	//     "parent": {
49924	//       "description": "Required. Resource identifier of the conversation adding the participant. Format: `projects//locations//conversations/`.",
49925	//       "location": "path",
49926	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
49927	//       "required": true,
49928	//       "type": "string"
49929	//     }
49930	//   },
49931	//   "path": "v2beta1/{+parent}/participants",
49932	//   "request": {
49933	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
49934	//   },
49935	//   "response": {
49936	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
49937	//   },
49938	//   "scopes": [
49939	//     "https://www.googleapis.com/auth/cloud-platform",
49940	//     "https://www.googleapis.com/auth/dialogflow"
49941	//   ]
49942	// }
49943
49944}
49945
49946// method id "dialogflow.projects.locations.conversations.participants.get":
49947
49948type ProjectsLocationsConversationsParticipantsGetCall struct {
49949	s            *Service
49950	name         string
49951	urlParams_   gensupport.URLParams
49952	ifNoneMatch_ string
49953	ctx_         context.Context
49954	header_      http.Header
49955}
49956
49957// Get: Retrieves a conversation participant.
49958//
49959// - name: The name of the participant. Format:
49960//   `projects//locations//conversations//participants/`.
49961func (r *ProjectsLocationsConversationsParticipantsService) Get(name string) *ProjectsLocationsConversationsParticipantsGetCall {
49962	c := &ProjectsLocationsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49963	c.name = name
49964	return c
49965}
49966
49967// Fields allows partial responses to be retrieved. See
49968// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49969// for more information.
49970func (c *ProjectsLocationsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsGetCall {
49971	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49972	return c
49973}
49974
49975// IfNoneMatch sets the optional parameter which makes the operation
49976// fail if the object's ETag matches the given value. This is useful for
49977// getting updates only after the object has changed since the last
49978// request. Use googleapi.IsNotModified to check whether the response
49979// error from Do is the result of In-None-Match.
49980func (c *ProjectsLocationsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsGetCall {
49981	c.ifNoneMatch_ = entityTag
49982	return c
49983}
49984
49985// Context sets the context to be used in this call's Do method. Any
49986// pending HTTP request will be aborted if the provided context is
49987// canceled.
49988func (c *ProjectsLocationsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsGetCall {
49989	c.ctx_ = ctx
49990	return c
49991}
49992
49993// Header returns an http.Header that can be modified by the caller to
49994// add HTTP headers to the request.
49995func (c *ProjectsLocationsConversationsParticipantsGetCall) Header() http.Header {
49996	if c.header_ == nil {
49997		c.header_ = make(http.Header)
49998	}
49999	return c.header_
50000}
50001
50002func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
50003	reqHeaders := make(http.Header)
50004	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
50005	for k, v := range c.header_ {
50006		reqHeaders[k] = v
50007	}
50008	reqHeaders.Set("User-Agent", c.s.userAgent())
50009	if c.ifNoneMatch_ != "" {
50010		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50011	}
50012	var body io.Reader = nil
50013	c.urlParams_.Set("alt", alt)
50014	c.urlParams_.Set("prettyPrint", "false")
50015	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
50016	urls += "?" + c.urlParams_.Encode()
50017	req, err := http.NewRequest("GET", urls, body)
50018	if err != nil {
50019		return nil, err
50020	}
50021	req.Header = reqHeaders
50022	googleapi.Expand(req.URL, map[string]string{
50023		"name": c.name,
50024	})
50025	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50026}
50027
50028// Do executes the "dialogflow.projects.locations.conversations.participants.get" call.
50029// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
50030// be non-nil. Any non-2xx status code is an error. Response headers are
50031// in either
50032// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
50033// a response was returned at all) in error.(*googleapi.Error).Header.
50034// Use googleapi.IsNotModified to check whether the returned error was
50035// because http.StatusNotModified was returned.
50036func (c *ProjectsLocationsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
50037	gensupport.SetOptions(c.urlParams_, opts...)
50038	res, err := c.doRequest("json")
50039	if res != nil && res.StatusCode == http.StatusNotModified {
50040		if res.Body != nil {
50041			res.Body.Close()
50042		}
50043		return nil, &googleapi.Error{
50044			Code:   res.StatusCode,
50045			Header: res.Header,
50046		}
50047	}
50048	if err != nil {
50049		return nil, err
50050	}
50051	defer googleapi.CloseBody(res)
50052	if err := googleapi.CheckResponse(res); err != nil {
50053		return nil, err
50054	}
50055	ret := &GoogleCloudDialogflowV2beta1Participant{
50056		ServerResponse: googleapi.ServerResponse{
50057			Header:         res.Header,
50058			HTTPStatusCode: res.StatusCode,
50059		},
50060	}
50061	target := &ret
50062	if err := gensupport.DecodeResponse(target, res); err != nil {
50063		return nil, err
50064	}
50065	return ret, nil
50066	// {
50067	//   "description": "Retrieves a conversation participant.",
50068	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}",
50069	//   "httpMethod": "GET",
50070	//   "id": "dialogflow.projects.locations.conversations.participants.get",
50071	//   "parameterOrder": [
50072	//     "name"
50073	//   ],
50074	//   "parameters": {
50075	//     "name": {
50076	//       "description": "Required. The name of the participant. Format: `projects//locations//conversations//participants/`.",
50077	//       "location": "path",
50078	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
50079	//       "required": true,
50080	//       "type": "string"
50081	//     }
50082	//   },
50083	//   "path": "v2beta1/{+name}",
50084	//   "response": {
50085	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
50086	//   },
50087	//   "scopes": [
50088	//     "https://www.googleapis.com/auth/cloud-platform",
50089	//     "https://www.googleapis.com/auth/dialogflow"
50090	//   ]
50091	// }
50092
50093}
50094
50095// method id "dialogflow.projects.locations.conversations.participants.list":
50096
50097type ProjectsLocationsConversationsParticipantsListCall struct {
50098	s            *Service
50099	parent       string
50100	urlParams_   gensupport.URLParams
50101	ifNoneMatch_ string
50102	ctx_         context.Context
50103	header_      http.Header
50104}
50105
50106// List: Returns the list of all participants in the specified
50107// conversation.
50108//
50109// - parent: The conversation to list all participants from. Format:
50110//   `projects//locations//conversations/`.
50111func (r *ProjectsLocationsConversationsParticipantsService) List(parent string) *ProjectsLocationsConversationsParticipantsListCall {
50112	c := &ProjectsLocationsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50113	c.parent = parent
50114	return c
50115}
50116
50117// PageSize sets the optional parameter "pageSize": The maximum number
50118// of items to return in a single page. By default 100 and at most 1000.
50119func (c *ProjectsLocationsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsParticipantsListCall {
50120	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
50121	return c
50122}
50123
50124// PageToken sets the optional parameter "pageToken": The
50125// next_page_token value returned from a previous list request.
50126func (c *ProjectsLocationsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsParticipantsListCall {
50127	c.urlParams_.Set("pageToken", pageToken)
50128	return c
50129}
50130
50131// Fields allows partial responses to be retrieved. See
50132// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50133// for more information.
50134func (c *ProjectsLocationsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsListCall {
50135	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50136	return c
50137}
50138
50139// IfNoneMatch sets the optional parameter which makes the operation
50140// fail if the object's ETag matches the given value. This is useful for
50141// getting updates only after the object has changed since the last
50142// request. Use googleapi.IsNotModified to check whether the response
50143// error from Do is the result of In-None-Match.
50144func (c *ProjectsLocationsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsListCall {
50145	c.ifNoneMatch_ = entityTag
50146	return c
50147}
50148
50149// Context sets the context to be used in this call's Do method. Any
50150// pending HTTP request will be aborted if the provided context is
50151// canceled.
50152func (c *ProjectsLocationsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsListCall {
50153	c.ctx_ = ctx
50154	return c
50155}
50156
50157// Header returns an http.Header that can be modified by the caller to
50158// add HTTP headers to the request.
50159func (c *ProjectsLocationsConversationsParticipantsListCall) Header() http.Header {
50160	if c.header_ == nil {
50161		c.header_ = make(http.Header)
50162	}
50163	return c.header_
50164}
50165
50166func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
50167	reqHeaders := make(http.Header)
50168	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
50169	for k, v := range c.header_ {
50170		reqHeaders[k] = v
50171	}
50172	reqHeaders.Set("User-Agent", c.s.userAgent())
50173	if c.ifNoneMatch_ != "" {
50174		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50175	}
50176	var body io.Reader = nil
50177	c.urlParams_.Set("alt", alt)
50178	c.urlParams_.Set("prettyPrint", "false")
50179	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
50180	urls += "?" + c.urlParams_.Encode()
50181	req, err := http.NewRequest("GET", urls, body)
50182	if err != nil {
50183		return nil, err
50184	}
50185	req.Header = reqHeaders
50186	googleapi.Expand(req.URL, map[string]string{
50187		"parent": c.parent,
50188	})
50189	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50190}
50191
50192// Do executes the "dialogflow.projects.locations.conversations.participants.list" call.
50193// Exactly one of *GoogleCloudDialogflowV2beta1ListParticipantsResponse
50194// or error will be non-nil. Any non-2xx status code is an error.
50195// Response headers are in either
50196// *GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.H
50197// eader or (if a response was returned at all) in
50198// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50199// whether the returned error was because http.StatusNotModified was
50200// returned.
50201func (c *ProjectsLocationsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
50202	gensupport.SetOptions(c.urlParams_, opts...)
50203	res, err := c.doRequest("json")
50204	if res != nil && res.StatusCode == http.StatusNotModified {
50205		if res.Body != nil {
50206			res.Body.Close()
50207		}
50208		return nil, &googleapi.Error{
50209			Code:   res.StatusCode,
50210			Header: res.Header,
50211		}
50212	}
50213	if err != nil {
50214		return nil, err
50215	}
50216	defer googleapi.CloseBody(res)
50217	if err := googleapi.CheckResponse(res); err != nil {
50218		return nil, err
50219	}
50220	ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
50221		ServerResponse: googleapi.ServerResponse{
50222			Header:         res.Header,
50223			HTTPStatusCode: res.StatusCode,
50224		},
50225	}
50226	target := &ret
50227	if err := gensupport.DecodeResponse(target, res); err != nil {
50228		return nil, err
50229	}
50230	return ret, nil
50231	// {
50232	//   "description": "Returns the list of all participants in the specified conversation.",
50233	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants",
50234	//   "httpMethod": "GET",
50235	//   "id": "dialogflow.projects.locations.conversations.participants.list",
50236	//   "parameterOrder": [
50237	//     "parent"
50238	//   ],
50239	//   "parameters": {
50240	//     "pageSize": {
50241	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
50242	//       "format": "int32",
50243	//       "location": "query",
50244	//       "type": "integer"
50245	//     },
50246	//     "pageToken": {
50247	//       "description": "Optional. The next_page_token value returned from a previous list request.",
50248	//       "location": "query",
50249	//       "type": "string"
50250	//     },
50251	//     "parent": {
50252	//       "description": "Required. The conversation to list all participants from. Format: `projects//locations//conversations/`.",
50253	//       "location": "path",
50254	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
50255	//       "required": true,
50256	//       "type": "string"
50257	//     }
50258	//   },
50259	//   "path": "v2beta1/{+parent}/participants",
50260	//   "response": {
50261	//     "$ref": "GoogleCloudDialogflowV2beta1ListParticipantsResponse"
50262	//   },
50263	//   "scopes": [
50264	//     "https://www.googleapis.com/auth/cloud-platform",
50265	//     "https://www.googleapis.com/auth/dialogflow"
50266	//   ]
50267	// }
50268
50269}
50270
50271// Pages invokes f for each page of results.
50272// A non-nil error returned from f will halt the iteration.
50273// The provided context supersedes any context provided to the Context method.
50274func (c *ProjectsLocationsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
50275	c.ctx_ = ctx
50276	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
50277	for {
50278		x, err := c.Do()
50279		if err != nil {
50280			return err
50281		}
50282		if err := f(x); err != nil {
50283			return err
50284		}
50285		if x.NextPageToken == "" {
50286			return nil
50287		}
50288		c.PageToken(x.NextPageToken)
50289	}
50290}
50291
50292// method id "dialogflow.projects.locations.conversations.participants.patch":
50293
50294type ProjectsLocationsConversationsParticipantsPatchCall struct {
50295	s                                       *Service
50296	nameid                                  string
50297	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
50298	urlParams_                              gensupport.URLParams
50299	ctx_                                    context.Context
50300	header_                                 http.Header
50301}
50302
50303// Patch: Updates the specified participant.
50304//
50305// - name: Optional. The unique identifier of this participant. Format:
50306//   `projects//locations//conversations//participants/`.
50307func (r *ProjectsLocationsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsPatchCall {
50308	c := &ProjectsLocationsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50309	c.nameid = nameid
50310	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
50311	return c
50312}
50313
50314// UpdateMask sets the optional parameter "updateMask": Required. The
50315// mask to specify which fields to update.
50316func (c *ProjectsLocationsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsParticipantsPatchCall {
50317	c.urlParams_.Set("updateMask", updateMask)
50318	return c
50319}
50320
50321// Fields allows partial responses to be retrieved. See
50322// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50323// for more information.
50324func (c *ProjectsLocationsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsPatchCall {
50325	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50326	return c
50327}
50328
50329// Context sets the context to be used in this call's Do method. Any
50330// pending HTTP request will be aborted if the provided context is
50331// canceled.
50332func (c *ProjectsLocationsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsPatchCall {
50333	c.ctx_ = ctx
50334	return c
50335}
50336
50337// Header returns an http.Header that can be modified by the caller to
50338// add HTTP headers to the request.
50339func (c *ProjectsLocationsConversationsParticipantsPatchCall) Header() http.Header {
50340	if c.header_ == nil {
50341		c.header_ = make(http.Header)
50342	}
50343	return c.header_
50344}
50345
50346func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
50347	reqHeaders := make(http.Header)
50348	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
50349	for k, v := range c.header_ {
50350		reqHeaders[k] = v
50351	}
50352	reqHeaders.Set("User-Agent", c.s.userAgent())
50353	var body io.Reader = nil
50354	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
50355	if err != nil {
50356		return nil, err
50357	}
50358	reqHeaders.Set("Content-Type", "application/json")
50359	c.urlParams_.Set("alt", alt)
50360	c.urlParams_.Set("prettyPrint", "false")
50361	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
50362	urls += "?" + c.urlParams_.Encode()
50363	req, err := http.NewRequest("PATCH", urls, body)
50364	if err != nil {
50365		return nil, err
50366	}
50367	req.Header = reqHeaders
50368	googleapi.Expand(req.URL, map[string]string{
50369		"name": c.nameid,
50370	})
50371	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50372}
50373
50374// Do executes the "dialogflow.projects.locations.conversations.participants.patch" call.
50375// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
50376// be non-nil. Any non-2xx status code is an error. Response headers are
50377// in either
50378// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
50379// a response was returned at all) in error.(*googleapi.Error).Header.
50380// Use googleapi.IsNotModified to check whether the returned error was
50381// because http.StatusNotModified was returned.
50382func (c *ProjectsLocationsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
50383	gensupport.SetOptions(c.urlParams_, opts...)
50384	res, err := c.doRequest("json")
50385	if res != nil && res.StatusCode == http.StatusNotModified {
50386		if res.Body != nil {
50387			res.Body.Close()
50388		}
50389		return nil, &googleapi.Error{
50390			Code:   res.StatusCode,
50391			Header: res.Header,
50392		}
50393	}
50394	if err != nil {
50395		return nil, err
50396	}
50397	defer googleapi.CloseBody(res)
50398	if err := googleapi.CheckResponse(res); err != nil {
50399		return nil, err
50400	}
50401	ret := &GoogleCloudDialogflowV2beta1Participant{
50402		ServerResponse: googleapi.ServerResponse{
50403			Header:         res.Header,
50404			HTTPStatusCode: res.StatusCode,
50405		},
50406	}
50407	target := &ret
50408	if err := gensupport.DecodeResponse(target, res); err != nil {
50409		return nil, err
50410	}
50411	return ret, nil
50412	// {
50413	//   "description": "Updates the specified participant.",
50414	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}",
50415	//   "httpMethod": "PATCH",
50416	//   "id": "dialogflow.projects.locations.conversations.participants.patch",
50417	//   "parameterOrder": [
50418	//     "name"
50419	//   ],
50420	//   "parameters": {
50421	//     "name": {
50422	//       "description": "Optional. The unique identifier of this participant. Format: `projects//locations//conversations//participants/`.",
50423	//       "location": "path",
50424	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
50425	//       "required": true,
50426	//       "type": "string"
50427	//     },
50428	//     "updateMask": {
50429	//       "description": "Required. The mask to specify which fields to update.",
50430	//       "format": "google-fieldmask",
50431	//       "location": "query",
50432	//       "type": "string"
50433	//     }
50434	//   },
50435	//   "path": "v2beta1/{+name}",
50436	//   "request": {
50437	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
50438	//   },
50439	//   "response": {
50440	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
50441	//   },
50442	//   "scopes": [
50443	//     "https://www.googleapis.com/auth/cloud-platform",
50444	//     "https://www.googleapis.com/auth/dialogflow"
50445	//   ]
50446	// }
50447
50448}
50449
50450// method id "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles":
50451
50452type ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
50453	s                                                  *Service
50454	parent                                             string
50455	googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
50456	urlParams_                                         gensupport.URLParams
50457	ctx_                                               context.Context
50458	header_                                            http.Header
50459}
50460
50461// SuggestArticles: Gets suggested articles for a participant based on
50462// specific historical messages. Note that ListSuggestions will only
50463// list the auto-generated suggestions, while CompileSuggestion will try
50464// to compile suggestion based on the provided conversation context in
50465// the real time.
50466//
50467// - parent: The name of the participant to fetch suggestion for.
50468//   Format: `projects//locations//conversations//participants/`.
50469func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
50470	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50471	c.parent = parent
50472	c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
50473	return c
50474}
50475
50476// Fields allows partial responses to be retrieved. See
50477// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50478// for more information.
50479func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
50480	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50481	return c
50482}
50483
50484// Context sets the context to be used in this call's Do method. Any
50485// pending HTTP request will be aborted if the provided context is
50486// canceled.
50487func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
50488	c.ctx_ = ctx
50489	return c
50490}
50491
50492// Header returns an http.Header that can be modified by the caller to
50493// add HTTP headers to the request.
50494func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
50495	if c.header_ == nil {
50496		c.header_ = make(http.Header)
50497	}
50498	return c.header_
50499}
50500
50501func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
50502	reqHeaders := make(http.Header)
50503	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
50504	for k, v := range c.header_ {
50505		reqHeaders[k] = v
50506	}
50507	reqHeaders.Set("User-Agent", c.s.userAgent())
50508	var body io.Reader = nil
50509	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
50510	if err != nil {
50511		return nil, err
50512	}
50513	reqHeaders.Set("Content-Type", "application/json")
50514	c.urlParams_.Set("alt", alt)
50515	c.urlParams_.Set("prettyPrint", "false")
50516	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
50517	urls += "?" + c.urlParams_.Encode()
50518	req, err := http.NewRequest("POST", urls, body)
50519	if err != nil {
50520		return nil, err
50521	}
50522	req.Header = reqHeaders
50523	googleapi.Expand(req.URL, map[string]string{
50524		"parent": c.parent,
50525	})
50526	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50527}
50528
50529// Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles" call.
50530// Exactly one of *GoogleCloudDialogflowV2beta1SuggestArticlesResponse
50531// or error will be non-nil. Any non-2xx status code is an error.
50532// Response headers are in either
50533// *GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.He
50534// ader or (if a response was returned at all) in
50535// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50536// whether the returned error was because http.StatusNotModified was
50537// returned.
50538func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
50539	gensupport.SetOptions(c.urlParams_, opts...)
50540	res, err := c.doRequest("json")
50541	if res != nil && res.StatusCode == http.StatusNotModified {
50542		if res.Body != nil {
50543			res.Body.Close()
50544		}
50545		return nil, &googleapi.Error{
50546			Code:   res.StatusCode,
50547			Header: res.Header,
50548		}
50549	}
50550	if err != nil {
50551		return nil, err
50552	}
50553	defer googleapi.CloseBody(res)
50554	if err := googleapi.CheckResponse(res); err != nil {
50555		return nil, err
50556	}
50557	ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
50558		ServerResponse: googleapi.ServerResponse{
50559			Header:         res.Header,
50560			HTTPStatusCode: res.StatusCode,
50561		},
50562	}
50563	target := &ret
50564	if err := gensupport.DecodeResponse(target, res); err != nil {
50565		return nil, err
50566	}
50567	return ret, nil
50568	// {
50569	//   "description": "Gets suggested articles for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.",
50570	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestArticles",
50571	//   "httpMethod": "POST",
50572	//   "id": "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles",
50573	//   "parameterOrder": [
50574	//     "parent"
50575	//   ],
50576	//   "parameters": {
50577	//     "parent": {
50578	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
50579	//       "location": "path",
50580	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
50581	//       "required": true,
50582	//       "type": "string"
50583	//     }
50584	//   },
50585	//   "path": "v2beta1/{+parent}/suggestions:suggestArticles",
50586	//   "request": {
50587	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesRequest"
50588	//   },
50589	//   "response": {
50590	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesResponse"
50591	//   },
50592	//   "scopes": [
50593	//     "https://www.googleapis.com/auth/cloud-platform",
50594	//     "https://www.googleapis.com/auth/dialogflow"
50595	//   ]
50596	// }
50597
50598}
50599
50600// method id "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers":
50601
50602type ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
50603	s                                                    *Service
50604	parent                                               string
50605	googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
50606	urlParams_                                           gensupport.URLParams
50607	ctx_                                                 context.Context
50608	header_                                              http.Header
50609}
50610
50611// SuggestFaqAnswers: Gets suggested faq answers for a participant based
50612// on specific historical messages.
50613//
50614// - parent: The name of the participant to fetch suggestion for.
50615//   Format: `projects//locations//conversations//participants/`.
50616func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
50617	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50618	c.parent = parent
50619	c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
50620	return c
50621}
50622
50623// Fields allows partial responses to be retrieved. See
50624// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50625// for more information.
50626func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
50627	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50628	return c
50629}
50630
50631// Context sets the context to be used in this call's Do method. Any
50632// pending HTTP request will be aborted if the provided context is
50633// canceled.
50634func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
50635	c.ctx_ = ctx
50636	return c
50637}
50638
50639// Header returns an http.Header that can be modified by the caller to
50640// add HTTP headers to the request.
50641func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
50642	if c.header_ == nil {
50643		c.header_ = make(http.Header)
50644	}
50645	return c.header_
50646}
50647
50648func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
50649	reqHeaders := make(http.Header)
50650	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
50651	for k, v := range c.header_ {
50652		reqHeaders[k] = v
50653	}
50654	reqHeaders.Set("User-Agent", c.s.userAgent())
50655	var body io.Reader = nil
50656	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
50657	if err != nil {
50658		return nil, err
50659	}
50660	reqHeaders.Set("Content-Type", "application/json")
50661	c.urlParams_.Set("alt", alt)
50662	c.urlParams_.Set("prettyPrint", "false")
50663	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
50664	urls += "?" + c.urlParams_.Encode()
50665	req, err := http.NewRequest("POST", urls, body)
50666	if err != nil {
50667		return nil, err
50668	}
50669	req.Header = reqHeaders
50670	googleapi.Expand(req.URL, map[string]string{
50671		"parent": c.parent,
50672	})
50673	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50674}
50675
50676// Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers" call.
50677// Exactly one of *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
50678// or error will be non-nil. Any non-2xx status code is an error.
50679// Response headers are in either
50680// *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.
50681// Header or (if a response was returned at all) in
50682// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50683// whether the returned error was because http.StatusNotModified was
50684// returned.
50685func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
50686	gensupport.SetOptions(c.urlParams_, opts...)
50687	res, err := c.doRequest("json")
50688	if res != nil && res.StatusCode == http.StatusNotModified {
50689		if res.Body != nil {
50690			res.Body.Close()
50691		}
50692		return nil, &googleapi.Error{
50693			Code:   res.StatusCode,
50694			Header: res.Header,
50695		}
50696	}
50697	if err != nil {
50698		return nil, err
50699	}
50700	defer googleapi.CloseBody(res)
50701	if err := googleapi.CheckResponse(res); err != nil {
50702		return nil, err
50703	}
50704	ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
50705		ServerResponse: googleapi.ServerResponse{
50706			Header:         res.Header,
50707			HTTPStatusCode: res.StatusCode,
50708		},
50709	}
50710	target := &ret
50711	if err := gensupport.DecodeResponse(target, res); err != nil {
50712		return nil, err
50713	}
50714	return ret, nil
50715	// {
50716	//   "description": "Gets suggested faq answers for a participant based on specific historical messages.",
50717	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestFaqAnswers",
50718	//   "httpMethod": "POST",
50719	//   "id": "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers",
50720	//   "parameterOrder": [
50721	//     "parent"
50722	//   ],
50723	//   "parameters": {
50724	//     "parent": {
50725	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
50726	//       "location": "path",
50727	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
50728	//       "required": true,
50729	//       "type": "string"
50730	//     }
50731	//   },
50732	//   "path": "v2beta1/{+parent}/suggestions:suggestFaqAnswers",
50733	//   "request": {
50734	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest"
50735	//   },
50736	//   "response": {
50737	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse"
50738	//   },
50739	//   "scopes": [
50740	//     "https://www.googleapis.com/auth/cloud-platform",
50741	//     "https://www.googleapis.com/auth/dialogflow"
50742	//   ]
50743	// }
50744
50745}
50746
50747// method id "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies":
50748
50749type ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
50750	s                                                      *Service
50751	parent                                                 string
50752	googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
50753	urlParams_                                             gensupport.URLParams
50754	ctx_                                                   context.Context
50755	header_                                                http.Header
50756}
50757
50758// SuggestSmartReplies: Gets smart replies for a participant based on
50759// specific historical messages.
50760//
50761// - parent: The name of the participant to fetch suggestion for.
50762//   Format: `projects//locations//conversations//participants/`.
50763func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
50764	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50765	c.parent = parent
50766	c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
50767	return c
50768}
50769
50770// Fields allows partial responses to be retrieved. See
50771// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50772// for more information.
50773func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
50774	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50775	return c
50776}
50777
50778// Context sets the context to be used in this call's Do method. Any
50779// pending HTTP request will be aborted if the provided context is
50780// canceled.
50781func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
50782	c.ctx_ = ctx
50783	return c
50784}
50785
50786// Header returns an http.Header that can be modified by the caller to
50787// add HTTP headers to the request.
50788func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
50789	if c.header_ == nil {
50790		c.header_ = make(http.Header)
50791	}
50792	return c.header_
50793}
50794
50795func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
50796	reqHeaders := make(http.Header)
50797	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
50798	for k, v := range c.header_ {
50799		reqHeaders[k] = v
50800	}
50801	reqHeaders.Set("User-Agent", c.s.userAgent())
50802	var body io.Reader = nil
50803	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
50804	if err != nil {
50805		return nil, err
50806	}
50807	reqHeaders.Set("Content-Type", "application/json")
50808	c.urlParams_.Set("alt", alt)
50809	c.urlParams_.Set("prettyPrint", "false")
50810	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
50811	urls += "?" + c.urlParams_.Encode()
50812	req, err := http.NewRequest("POST", urls, body)
50813	if err != nil {
50814		return nil, err
50815	}
50816	req.Header = reqHeaders
50817	googleapi.Expand(req.URL, map[string]string{
50818		"parent": c.parent,
50819	})
50820	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50821}
50822
50823// Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies" call.
50824// Exactly one of
50825// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse or error
50826// will be non-nil. Any non-2xx status code is an error. Response
50827// headers are in either
50828// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.ServerRespons
50829// e.Header or (if a response was returned at all) in
50830// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50831// whether the returned error was because http.StatusNotModified was
50832// returned.
50833func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
50834	gensupport.SetOptions(c.urlParams_, opts...)
50835	res, err := c.doRequest("json")
50836	if res != nil && res.StatusCode == http.StatusNotModified {
50837		if res.Body != nil {
50838			res.Body.Close()
50839		}
50840		return nil, &googleapi.Error{
50841			Code:   res.StatusCode,
50842			Header: res.Header,
50843		}
50844	}
50845	if err != nil {
50846		return nil, err
50847	}
50848	defer googleapi.CloseBody(res)
50849	if err := googleapi.CheckResponse(res); err != nil {
50850		return nil, err
50851	}
50852	ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
50853		ServerResponse: googleapi.ServerResponse{
50854			Header:         res.Header,
50855			HTTPStatusCode: res.StatusCode,
50856		},
50857	}
50858	target := &ret
50859	if err := gensupport.DecodeResponse(target, res); err != nil {
50860		return nil, err
50861	}
50862	return ret, nil
50863	// {
50864	//   "description": "Gets smart replies for a participant based on specific historical messages.",
50865	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestSmartReplies",
50866	//   "httpMethod": "POST",
50867	//   "id": "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies",
50868	//   "parameterOrder": [
50869	//     "parent"
50870	//   ],
50871	//   "parameters": {
50872	//     "parent": {
50873	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
50874	//       "location": "path",
50875	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
50876	//       "required": true,
50877	//       "type": "string"
50878	//     }
50879	//   },
50880	//   "path": "v2beta1/{+parent}/suggestions:suggestSmartReplies",
50881	//   "request": {
50882	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest"
50883	//   },
50884	//   "response": {
50885	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse"
50886	//   },
50887	//   "scopes": [
50888	//     "https://www.googleapis.com/auth/cloud-platform",
50889	//     "https://www.googleapis.com/auth/dialogflow"
50890	//   ]
50891	// }
50892
50893}
50894
50895// method id "dialogflow.projects.locations.knowledgeBases.create":
50896
50897type ProjectsLocationsKnowledgeBasesCreateCall struct {
50898	s                                         *Service
50899	parent                                    string
50900	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
50901	urlParams_                                gensupport.URLParams
50902	ctx_                                      context.Context
50903	header_                                   http.Header
50904}
50905
50906// Create: Creates a knowledge base. Note: The
50907// `projects.agent.knowledgeBases` resource is deprecated; only use
50908// `projects.knowledgeBases`.
50909//
50910// - parent: The project to create a knowledge base for. Format:
50911//   `projects//locations/`.
50912func (r *ProjectsLocationsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesCreateCall {
50913	c := &ProjectsLocationsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50914	c.parent = parent
50915	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
50916	return c
50917}
50918
50919// Fields allows partial responses to be retrieved. See
50920// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50921// for more information.
50922func (c *ProjectsLocationsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesCreateCall {
50923	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50924	return c
50925}
50926
50927// Context sets the context to be used in this call's Do method. Any
50928// pending HTTP request will be aborted if the provided context is
50929// canceled.
50930func (c *ProjectsLocationsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesCreateCall {
50931	c.ctx_ = ctx
50932	return c
50933}
50934
50935// Header returns an http.Header that can be modified by the caller to
50936// add HTTP headers to the request.
50937func (c *ProjectsLocationsKnowledgeBasesCreateCall) Header() http.Header {
50938	if c.header_ == nil {
50939		c.header_ = make(http.Header)
50940	}
50941	return c.header_
50942}
50943
50944func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
50945	reqHeaders := make(http.Header)
50946	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
50947	for k, v := range c.header_ {
50948		reqHeaders[k] = v
50949	}
50950	reqHeaders.Set("User-Agent", c.s.userAgent())
50951	var body io.Reader = nil
50952	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
50953	if err != nil {
50954		return nil, err
50955	}
50956	reqHeaders.Set("Content-Type", "application/json")
50957	c.urlParams_.Set("alt", alt)
50958	c.urlParams_.Set("prettyPrint", "false")
50959	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
50960	urls += "?" + c.urlParams_.Encode()
50961	req, err := http.NewRequest("POST", urls, body)
50962	if err != nil {
50963		return nil, err
50964	}
50965	req.Header = reqHeaders
50966	googleapi.Expand(req.URL, map[string]string{
50967		"parent": c.parent,
50968	})
50969	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50970}
50971
50972// Do executes the "dialogflow.projects.locations.knowledgeBases.create" call.
50973// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
50974// will be non-nil. Any non-2xx status code is an error. Response
50975// headers are in either
50976// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
50977// (if a response was returned at all) in
50978// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50979// whether the returned error was because http.StatusNotModified was
50980// returned.
50981func (c *ProjectsLocationsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
50982	gensupport.SetOptions(c.urlParams_, opts...)
50983	res, err := c.doRequest("json")
50984	if res != nil && res.StatusCode == http.StatusNotModified {
50985		if res.Body != nil {
50986			res.Body.Close()
50987		}
50988		return nil, &googleapi.Error{
50989			Code:   res.StatusCode,
50990			Header: res.Header,
50991		}
50992	}
50993	if err != nil {
50994		return nil, err
50995	}
50996	defer googleapi.CloseBody(res)
50997	if err := googleapi.CheckResponse(res); err != nil {
50998		return nil, err
50999	}
51000	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
51001		ServerResponse: googleapi.ServerResponse{
51002			Header:         res.Header,
51003			HTTPStatusCode: res.StatusCode,
51004		},
51005	}
51006	target := &ret
51007	if err := gensupport.DecodeResponse(target, res); err != nil {
51008		return nil, err
51009	}
51010	return ret, nil
51011	// {
51012	//   "description": "Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
51013	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases",
51014	//   "httpMethod": "POST",
51015	//   "id": "dialogflow.projects.locations.knowledgeBases.create",
51016	//   "parameterOrder": [
51017	//     "parent"
51018	//   ],
51019	//   "parameters": {
51020	//     "parent": {
51021	//       "description": "Required. The project to create a knowledge base for. Format: `projects//locations/`.",
51022	//       "location": "path",
51023	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
51024	//       "required": true,
51025	//       "type": "string"
51026	//     }
51027	//   },
51028	//   "path": "v2beta1/{+parent}/knowledgeBases",
51029	//   "request": {
51030	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
51031	//   },
51032	//   "response": {
51033	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
51034	//   },
51035	//   "scopes": [
51036	//     "https://www.googleapis.com/auth/cloud-platform",
51037	//     "https://www.googleapis.com/auth/dialogflow"
51038	//   ]
51039	// }
51040
51041}
51042
51043// method id "dialogflow.projects.locations.knowledgeBases.delete":
51044
51045type ProjectsLocationsKnowledgeBasesDeleteCall struct {
51046	s          *Service
51047	name       string
51048	urlParams_ gensupport.URLParams
51049	ctx_       context.Context
51050	header_    http.Header
51051}
51052
51053// Delete: Deletes the specified knowledge base. Note: The
51054// `projects.agent.knowledgeBases` resource is deprecated; only use
51055// `projects.knowledgeBases`.
51056//
51057// - name: The name of the knowledge base to delete. Format:
51058//   `projects//locations//knowledgeBases/`.
51059func (r *ProjectsLocationsKnowledgeBasesService) Delete(name string) *ProjectsLocationsKnowledgeBasesDeleteCall {
51060	c := &ProjectsLocationsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51061	c.name = name
51062	return c
51063}
51064
51065// Force sets the optional parameter "force": Force deletes the
51066// knowledge base. When set to true, any documents in the knowledge base
51067// are also deleted.
51068func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsLocationsKnowledgeBasesDeleteCall {
51069	c.urlParams_.Set("force", fmt.Sprint(force))
51070	return c
51071}
51072
51073// Fields allows partial responses to be retrieved. See
51074// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51075// for more information.
51076func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDeleteCall {
51077	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51078	return c
51079}
51080
51081// Context sets the context to be used in this call's Do method. Any
51082// pending HTTP request will be aborted if the provided context is
51083// canceled.
51084func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDeleteCall {
51085	c.ctx_ = ctx
51086	return c
51087}
51088
51089// Header returns an http.Header that can be modified by the caller to
51090// add HTTP headers to the request.
51091func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Header() http.Header {
51092	if c.header_ == nil {
51093		c.header_ = make(http.Header)
51094	}
51095	return c.header_
51096}
51097
51098func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
51099	reqHeaders := make(http.Header)
51100	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
51101	for k, v := range c.header_ {
51102		reqHeaders[k] = v
51103	}
51104	reqHeaders.Set("User-Agent", c.s.userAgent())
51105	var body io.Reader = nil
51106	c.urlParams_.Set("alt", alt)
51107	c.urlParams_.Set("prettyPrint", "false")
51108	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51109	urls += "?" + c.urlParams_.Encode()
51110	req, err := http.NewRequest("DELETE", urls, body)
51111	if err != nil {
51112		return nil, err
51113	}
51114	req.Header = reqHeaders
51115	googleapi.Expand(req.URL, map[string]string{
51116		"name": c.name,
51117	})
51118	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51119}
51120
51121// Do executes the "dialogflow.projects.locations.knowledgeBases.delete" call.
51122// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
51123// non-2xx status code is an error. Response headers are in either
51124// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
51125// returned at all) in error.(*googleapi.Error).Header. Use
51126// googleapi.IsNotModified to check whether the returned error was
51127// because http.StatusNotModified was returned.
51128func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
51129	gensupport.SetOptions(c.urlParams_, opts...)
51130	res, err := c.doRequest("json")
51131	if res != nil && res.StatusCode == http.StatusNotModified {
51132		if res.Body != nil {
51133			res.Body.Close()
51134		}
51135		return nil, &googleapi.Error{
51136			Code:   res.StatusCode,
51137			Header: res.Header,
51138		}
51139	}
51140	if err != nil {
51141		return nil, err
51142	}
51143	defer googleapi.CloseBody(res)
51144	if err := googleapi.CheckResponse(res); err != nil {
51145		return nil, err
51146	}
51147	ret := &GoogleProtobufEmpty{
51148		ServerResponse: googleapi.ServerResponse{
51149			Header:         res.Header,
51150			HTTPStatusCode: res.StatusCode,
51151		},
51152	}
51153	target := &ret
51154	if err := gensupport.DecodeResponse(target, res); err != nil {
51155		return nil, err
51156	}
51157	return ret, nil
51158	// {
51159	//   "description": "Deletes the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
51160	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}",
51161	//   "httpMethod": "DELETE",
51162	//   "id": "dialogflow.projects.locations.knowledgeBases.delete",
51163	//   "parameterOrder": [
51164	//     "name"
51165	//   ],
51166	//   "parameters": {
51167	//     "force": {
51168	//       "description": "Optional. Force deletes the knowledge base. When set to true, any documents in the knowledge base are also deleted.",
51169	//       "location": "query",
51170	//       "type": "boolean"
51171	//     },
51172	//     "name": {
51173	//       "description": "Required. The name of the knowledge base to delete. Format: `projects//locations//knowledgeBases/`.",
51174	//       "location": "path",
51175	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51176	//       "required": true,
51177	//       "type": "string"
51178	//     }
51179	//   },
51180	//   "path": "v2beta1/{+name}",
51181	//   "response": {
51182	//     "$ref": "GoogleProtobufEmpty"
51183	//   },
51184	//   "scopes": [
51185	//     "https://www.googleapis.com/auth/cloud-platform",
51186	//     "https://www.googleapis.com/auth/dialogflow"
51187	//   ]
51188	// }
51189
51190}
51191
51192// method id "dialogflow.projects.locations.knowledgeBases.get":
51193
51194type ProjectsLocationsKnowledgeBasesGetCall struct {
51195	s            *Service
51196	name         string
51197	urlParams_   gensupport.URLParams
51198	ifNoneMatch_ string
51199	ctx_         context.Context
51200	header_      http.Header
51201}
51202
51203// Get: Retrieves the specified knowledge base. Note: The
51204// `projects.agent.knowledgeBases` resource is deprecated; only use
51205// `projects.knowledgeBases`.
51206//
51207// - name: The name of the knowledge base to retrieve. Format
51208//   `projects//locations//knowledgeBases/`.
51209func (r *ProjectsLocationsKnowledgeBasesService) Get(name string) *ProjectsLocationsKnowledgeBasesGetCall {
51210	c := &ProjectsLocationsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51211	c.name = name
51212	return c
51213}
51214
51215// Fields allows partial responses to be retrieved. See
51216// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51217// for more information.
51218func (c *ProjectsLocationsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesGetCall {
51219	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51220	return c
51221}
51222
51223// IfNoneMatch sets the optional parameter which makes the operation
51224// fail if the object's ETag matches the given value. This is useful for
51225// getting updates only after the object has changed since the last
51226// request. Use googleapi.IsNotModified to check whether the response
51227// error from Do is the result of In-None-Match.
51228func (c *ProjectsLocationsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesGetCall {
51229	c.ifNoneMatch_ = entityTag
51230	return c
51231}
51232
51233// Context sets the context to be used in this call's Do method. Any
51234// pending HTTP request will be aborted if the provided context is
51235// canceled.
51236func (c *ProjectsLocationsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesGetCall {
51237	c.ctx_ = ctx
51238	return c
51239}
51240
51241// Header returns an http.Header that can be modified by the caller to
51242// add HTTP headers to the request.
51243func (c *ProjectsLocationsKnowledgeBasesGetCall) Header() http.Header {
51244	if c.header_ == nil {
51245		c.header_ = make(http.Header)
51246	}
51247	return c.header_
51248}
51249
51250func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
51251	reqHeaders := make(http.Header)
51252	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
51253	for k, v := range c.header_ {
51254		reqHeaders[k] = v
51255	}
51256	reqHeaders.Set("User-Agent", c.s.userAgent())
51257	if c.ifNoneMatch_ != "" {
51258		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51259	}
51260	var body io.Reader = nil
51261	c.urlParams_.Set("alt", alt)
51262	c.urlParams_.Set("prettyPrint", "false")
51263	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51264	urls += "?" + c.urlParams_.Encode()
51265	req, err := http.NewRequest("GET", urls, body)
51266	if err != nil {
51267		return nil, err
51268	}
51269	req.Header = reqHeaders
51270	googleapi.Expand(req.URL, map[string]string{
51271		"name": c.name,
51272	})
51273	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51274}
51275
51276// Do executes the "dialogflow.projects.locations.knowledgeBases.get" call.
51277// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
51278// will be non-nil. Any non-2xx status code is an error. Response
51279// headers are in either
51280// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
51281// (if a response was returned at all) in
51282// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
51283// whether the returned error was because http.StatusNotModified was
51284// returned.
51285func (c *ProjectsLocationsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
51286	gensupport.SetOptions(c.urlParams_, opts...)
51287	res, err := c.doRequest("json")
51288	if res != nil && res.StatusCode == http.StatusNotModified {
51289		if res.Body != nil {
51290			res.Body.Close()
51291		}
51292		return nil, &googleapi.Error{
51293			Code:   res.StatusCode,
51294			Header: res.Header,
51295		}
51296	}
51297	if err != nil {
51298		return nil, err
51299	}
51300	defer googleapi.CloseBody(res)
51301	if err := googleapi.CheckResponse(res); err != nil {
51302		return nil, err
51303	}
51304	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
51305		ServerResponse: googleapi.ServerResponse{
51306			Header:         res.Header,
51307			HTTPStatusCode: res.StatusCode,
51308		},
51309	}
51310	target := &ret
51311	if err := gensupport.DecodeResponse(target, res); err != nil {
51312		return nil, err
51313	}
51314	return ret, nil
51315	// {
51316	//   "description": "Retrieves the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
51317	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}",
51318	//   "httpMethod": "GET",
51319	//   "id": "dialogflow.projects.locations.knowledgeBases.get",
51320	//   "parameterOrder": [
51321	//     "name"
51322	//   ],
51323	//   "parameters": {
51324	//     "name": {
51325	//       "description": "Required. The name of the knowledge base to retrieve. Format `projects//locations//knowledgeBases/`.",
51326	//       "location": "path",
51327	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51328	//       "required": true,
51329	//       "type": "string"
51330	//     }
51331	//   },
51332	//   "path": "v2beta1/{+name}",
51333	//   "response": {
51334	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
51335	//   },
51336	//   "scopes": [
51337	//     "https://www.googleapis.com/auth/cloud-platform",
51338	//     "https://www.googleapis.com/auth/dialogflow"
51339	//   ]
51340	// }
51341
51342}
51343
51344// method id "dialogflow.projects.locations.knowledgeBases.list":
51345
51346type ProjectsLocationsKnowledgeBasesListCall struct {
51347	s            *Service
51348	parent       string
51349	urlParams_   gensupport.URLParams
51350	ifNoneMatch_ string
51351	ctx_         context.Context
51352	header_      http.Header
51353}
51354
51355// List: Returns the list of all knowledge bases of the specified agent.
51356// Note: The `projects.agent.knowledgeBases` resource is deprecated;
51357// only use `projects.knowledgeBases`.
51358//
51359// - parent: The project to list of knowledge bases for. Format:
51360//   `projects//locations/`.
51361func (r *ProjectsLocationsKnowledgeBasesService) List(parent string) *ProjectsLocationsKnowledgeBasesListCall {
51362	c := &ProjectsLocationsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51363	c.parent = parent
51364	return c
51365}
51366
51367// Filter sets the optional parameter "filter": The filter expression
51368// used to filter knowledge bases returned by the list method. The
51369// expression has the following syntax: [AND ] ... The following fields
51370// and operators are supported: * display_name with has(:) operator *
51371// language_code with equals(=) operator Examples: *
51372// 'language_code=en-us' matches knowledge bases with en-us language
51373// code. * 'display_name:articles' matches knowledge bases whose display
51374// name contains "articles". * 'display_name:"Best Articles"' matches
51375// knowledge bases whose display name contains "Best Articles". *
51376// 'language_code=en-gb AND display_name=articles' matches all knowledge
51377// bases whose display name contains "articles" and whose language code
51378// is "en-gb". Note: An empty filter string (i.e. "") is a no-op and
51379// will result in no filtering. For more information about filtering,
51380// see API Filtering (https://aip.dev/160).
51381func (c *ProjectsLocationsKnowledgeBasesListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesListCall {
51382	c.urlParams_.Set("filter", filter)
51383	return c
51384}
51385
51386// PageSize sets the optional parameter "pageSize": The maximum number
51387// of items to return in a single page. By default 10 and at most 100.
51388func (c *ProjectsLocationsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesListCall {
51389	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
51390	return c
51391}
51392
51393// PageToken sets the optional parameter "pageToken": The
51394// next_page_token value returned from a previous list request.
51395func (c *ProjectsLocationsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesListCall {
51396	c.urlParams_.Set("pageToken", pageToken)
51397	return c
51398}
51399
51400// Fields allows partial responses to be retrieved. See
51401// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51402// for more information.
51403func (c *ProjectsLocationsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesListCall {
51404	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51405	return c
51406}
51407
51408// IfNoneMatch sets the optional parameter which makes the operation
51409// fail if the object's ETag matches the given value. This is useful for
51410// getting updates only after the object has changed since the last
51411// request. Use googleapi.IsNotModified to check whether the response
51412// error from Do is the result of In-None-Match.
51413func (c *ProjectsLocationsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesListCall {
51414	c.ifNoneMatch_ = entityTag
51415	return c
51416}
51417
51418// Context sets the context to be used in this call's Do method. Any
51419// pending HTTP request will be aborted if the provided context is
51420// canceled.
51421func (c *ProjectsLocationsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesListCall {
51422	c.ctx_ = ctx
51423	return c
51424}
51425
51426// Header returns an http.Header that can be modified by the caller to
51427// add HTTP headers to the request.
51428func (c *ProjectsLocationsKnowledgeBasesListCall) Header() http.Header {
51429	if c.header_ == nil {
51430		c.header_ = make(http.Header)
51431	}
51432	return c.header_
51433}
51434
51435func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
51436	reqHeaders := make(http.Header)
51437	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
51438	for k, v := range c.header_ {
51439		reqHeaders[k] = v
51440	}
51441	reqHeaders.Set("User-Agent", c.s.userAgent())
51442	if c.ifNoneMatch_ != "" {
51443		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51444	}
51445	var body io.Reader = nil
51446	c.urlParams_.Set("alt", alt)
51447	c.urlParams_.Set("prettyPrint", "false")
51448	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
51449	urls += "?" + c.urlParams_.Encode()
51450	req, err := http.NewRequest("GET", urls, body)
51451	if err != nil {
51452		return nil, err
51453	}
51454	req.Header = reqHeaders
51455	googleapi.Expand(req.URL, map[string]string{
51456		"parent": c.parent,
51457	})
51458	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51459}
51460
51461// Do executes the "dialogflow.projects.locations.knowledgeBases.list" call.
51462// Exactly one of
51463// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse or error will
51464// be non-nil. Any non-2xx status code is an error. Response headers are
51465// in either
51466// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse
51467// .Header or (if a response was returned at all) in
51468// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
51469// whether the returned error was because http.StatusNotModified was
51470// returned.
51471func (c *ProjectsLocationsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
51472	gensupport.SetOptions(c.urlParams_, opts...)
51473	res, err := c.doRequest("json")
51474	if res != nil && res.StatusCode == http.StatusNotModified {
51475		if res.Body != nil {
51476			res.Body.Close()
51477		}
51478		return nil, &googleapi.Error{
51479			Code:   res.StatusCode,
51480			Header: res.Header,
51481		}
51482	}
51483	if err != nil {
51484		return nil, err
51485	}
51486	defer googleapi.CloseBody(res)
51487	if err := googleapi.CheckResponse(res); err != nil {
51488		return nil, err
51489	}
51490	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
51491		ServerResponse: googleapi.ServerResponse{
51492			Header:         res.Header,
51493			HTTPStatusCode: res.StatusCode,
51494		},
51495	}
51496	target := &ret
51497	if err := gensupport.DecodeResponse(target, res); err != nil {
51498		return nil, err
51499	}
51500	return ret, nil
51501	// {
51502	//   "description": "Returns the list of all knowledge bases of the specified agent. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
51503	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases",
51504	//   "httpMethod": "GET",
51505	//   "id": "dialogflow.projects.locations.knowledgeBases.list",
51506	//   "parameterOrder": [
51507	//     "parent"
51508	//   ],
51509	//   "parameters": {
51510	//     "filter": {
51511	//       "description": "The filter expression used to filter knowledge bases returned by the list method. The expression has the following syntax: [AND ] ... The following fields and operators are supported: * display_name with has(:) operator * language_code with equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases with en-us language code. * 'display_name:articles' matches knowledge bases whose display name contains \"articles\". * 'display_name:\"Best Articles\"' matches knowledge bases whose display name contains \"Best Articles\". * 'language_code=en-gb AND display_name=articles' matches all knowledge bases whose display name contains \"articles\" and whose language code is \"en-gb\". Note: An empty filter string (i.e. \"\") is a no-op and will result in no filtering. For more information about filtering, see [API Filtering](https://aip.dev/160).",
51512	//       "location": "query",
51513	//       "type": "string"
51514	//     },
51515	//     "pageSize": {
51516	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
51517	//       "format": "int32",
51518	//       "location": "query",
51519	//       "type": "integer"
51520	//     },
51521	//     "pageToken": {
51522	//       "description": "The next_page_token value returned from a previous list request.",
51523	//       "location": "query",
51524	//       "type": "string"
51525	//     },
51526	//     "parent": {
51527	//       "description": "Required. The project to list of knowledge bases for. Format: `projects//locations/`.",
51528	//       "location": "path",
51529	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
51530	//       "required": true,
51531	//       "type": "string"
51532	//     }
51533	//   },
51534	//   "path": "v2beta1/{+parent}/knowledgeBases",
51535	//   "response": {
51536	//     "$ref": "GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse"
51537	//   },
51538	//   "scopes": [
51539	//     "https://www.googleapis.com/auth/cloud-platform",
51540	//     "https://www.googleapis.com/auth/dialogflow"
51541	//   ]
51542	// }
51543
51544}
51545
51546// Pages invokes f for each page of results.
51547// A non-nil error returned from f will halt the iteration.
51548// The provided context supersedes any context provided to the Context method.
51549func (c *ProjectsLocationsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
51550	c.ctx_ = ctx
51551	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
51552	for {
51553		x, err := c.Do()
51554		if err != nil {
51555			return err
51556		}
51557		if err := f(x); err != nil {
51558			return err
51559		}
51560		if x.NextPageToken == "" {
51561			return nil
51562		}
51563		c.PageToken(x.NextPageToken)
51564	}
51565}
51566
51567// method id "dialogflow.projects.locations.knowledgeBases.patch":
51568
51569type ProjectsLocationsKnowledgeBasesPatchCall struct {
51570	s                                         *Service
51571	name                                      string
51572	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
51573	urlParams_                                gensupport.URLParams
51574	ctx_                                      context.Context
51575	header_                                   http.Header
51576}
51577
51578// Patch: Updates the specified knowledge base. Note: The
51579// `projects.agent.knowledgeBases` resource is deprecated; only use
51580// `projects.knowledgeBases`.
51581//
51582// - name: The knowledge base resource name. The name must be empty when
51583//   creating a knowledge base. Format:
51584//   `projects//locations//knowledgeBases/`.
51585func (r *ProjectsLocationsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesPatchCall {
51586	c := &ProjectsLocationsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51587	c.name = name
51588	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
51589	return c
51590}
51591
51592// UpdateMask sets the optional parameter "updateMask": Not specified
51593// means `update all`. Currently, only `display_name` can be updated, an
51594// InvalidArgument will be returned for attempting to update other
51595// fields.
51596func (c *ProjectsLocationsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesPatchCall {
51597	c.urlParams_.Set("updateMask", updateMask)
51598	return c
51599}
51600
51601// Fields allows partial responses to be retrieved. See
51602// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51603// for more information.
51604func (c *ProjectsLocationsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesPatchCall {
51605	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51606	return c
51607}
51608
51609// Context sets the context to be used in this call's Do method. Any
51610// pending HTTP request will be aborted if the provided context is
51611// canceled.
51612func (c *ProjectsLocationsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesPatchCall {
51613	c.ctx_ = ctx
51614	return c
51615}
51616
51617// Header returns an http.Header that can be modified by the caller to
51618// add HTTP headers to the request.
51619func (c *ProjectsLocationsKnowledgeBasesPatchCall) Header() http.Header {
51620	if c.header_ == nil {
51621		c.header_ = make(http.Header)
51622	}
51623	return c.header_
51624}
51625
51626func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
51627	reqHeaders := make(http.Header)
51628	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
51629	for k, v := range c.header_ {
51630		reqHeaders[k] = v
51631	}
51632	reqHeaders.Set("User-Agent", c.s.userAgent())
51633	var body io.Reader = nil
51634	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
51635	if err != nil {
51636		return nil, err
51637	}
51638	reqHeaders.Set("Content-Type", "application/json")
51639	c.urlParams_.Set("alt", alt)
51640	c.urlParams_.Set("prettyPrint", "false")
51641	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51642	urls += "?" + c.urlParams_.Encode()
51643	req, err := http.NewRequest("PATCH", urls, body)
51644	if err != nil {
51645		return nil, err
51646	}
51647	req.Header = reqHeaders
51648	googleapi.Expand(req.URL, map[string]string{
51649		"name": c.name,
51650	})
51651	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51652}
51653
51654// Do executes the "dialogflow.projects.locations.knowledgeBases.patch" call.
51655// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
51656// will be non-nil. Any non-2xx status code is an error. Response
51657// headers are in either
51658// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
51659// (if a response was returned at all) in
51660// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
51661// whether the returned error was because http.StatusNotModified was
51662// returned.
51663func (c *ProjectsLocationsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
51664	gensupport.SetOptions(c.urlParams_, opts...)
51665	res, err := c.doRequest("json")
51666	if res != nil && res.StatusCode == http.StatusNotModified {
51667		if res.Body != nil {
51668			res.Body.Close()
51669		}
51670		return nil, &googleapi.Error{
51671			Code:   res.StatusCode,
51672			Header: res.Header,
51673		}
51674	}
51675	if err != nil {
51676		return nil, err
51677	}
51678	defer googleapi.CloseBody(res)
51679	if err := googleapi.CheckResponse(res); err != nil {
51680		return nil, err
51681	}
51682	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
51683		ServerResponse: googleapi.ServerResponse{
51684			Header:         res.Header,
51685			HTTPStatusCode: res.StatusCode,
51686		},
51687	}
51688	target := &ret
51689	if err := gensupport.DecodeResponse(target, res); err != nil {
51690		return nil, err
51691	}
51692	return ret, nil
51693	// {
51694	//   "description": "Updates the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
51695	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}",
51696	//   "httpMethod": "PATCH",
51697	//   "id": "dialogflow.projects.locations.knowledgeBases.patch",
51698	//   "parameterOrder": [
51699	//     "name"
51700	//   ],
51701	//   "parameters": {
51702	//     "name": {
51703	//       "description": "The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.",
51704	//       "location": "path",
51705	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51706	//       "required": true,
51707	//       "type": "string"
51708	//     },
51709	//     "updateMask": {
51710	//       "description": "Optional. Not specified means `update all`. Currently, only `display_name` can be updated, an InvalidArgument will be returned for attempting to update other fields.",
51711	//       "format": "google-fieldmask",
51712	//       "location": "query",
51713	//       "type": "string"
51714	//     }
51715	//   },
51716	//   "path": "v2beta1/{+name}",
51717	//   "request": {
51718	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
51719	//   },
51720	//   "response": {
51721	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
51722	//   },
51723	//   "scopes": [
51724	//     "https://www.googleapis.com/auth/cloud-platform",
51725	//     "https://www.googleapis.com/auth/dialogflow"
51726	//   ]
51727	// }
51728
51729}
51730
51731// method id "dialogflow.projects.locations.knowledgeBases.documents.create":
51732
51733type ProjectsLocationsKnowledgeBasesDocumentsCreateCall struct {
51734	s                                    *Service
51735	parent                               string
51736	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
51737	urlParams_                           gensupport.URLParams
51738	ctx_                                 context.Context
51739	header_                              http.Header
51740}
51741
51742// Create: Creates a new document. Note: The
51743// `projects.agent.knowledgeBases.documents` resource is deprecated;
51744// only use `projects.knowledgeBases.documents`.
51745//
51746// - parent: The knowledge base to create a document for. Format:
51747//   `projects//locations//knowledgeBases/`.
51748func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51749	c := &ProjectsLocationsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51750	c.parent = parent
51751	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
51752	return c
51753}
51754
51755// ImportGcsCustomMetadata sets the optional parameter
51756// "importGcsCustomMetadata": Whether to import custom metadata from
51757// Google Cloud Storage. Only valid when the document source is Google
51758// Cloud Storage URI.
51759func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51760	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
51761	return c
51762}
51763
51764// Fields allows partial responses to be retrieved. See
51765// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51766// for more information.
51767func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51768	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51769	return c
51770}
51771
51772// Context sets the context to be used in this call's Do method. Any
51773// pending HTTP request will be aborted if the provided context is
51774// canceled.
51775func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51776	c.ctx_ = ctx
51777	return c
51778}
51779
51780// Header returns an http.Header that can be modified by the caller to
51781// add HTTP headers to the request.
51782func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
51783	if c.header_ == nil {
51784		c.header_ = make(http.Header)
51785	}
51786	return c.header_
51787}
51788
51789func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
51790	reqHeaders := make(http.Header)
51791	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
51792	for k, v := range c.header_ {
51793		reqHeaders[k] = v
51794	}
51795	reqHeaders.Set("User-Agent", c.s.userAgent())
51796	var body io.Reader = nil
51797	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
51798	if err != nil {
51799		return nil, err
51800	}
51801	reqHeaders.Set("Content-Type", "application/json")
51802	c.urlParams_.Set("alt", alt)
51803	c.urlParams_.Set("prettyPrint", "false")
51804	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
51805	urls += "?" + c.urlParams_.Encode()
51806	req, err := http.NewRequest("POST", urls, body)
51807	if err != nil {
51808		return nil, err
51809	}
51810	req.Header = reqHeaders
51811	googleapi.Expand(req.URL, map[string]string{
51812		"parent": c.parent,
51813	})
51814	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51815}
51816
51817// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.create" call.
51818// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
51819// Any non-2xx status code is an error. Response headers are in either
51820// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
51821// was returned at all) in error.(*googleapi.Error).Header. Use
51822// googleapi.IsNotModified to check whether the returned error was
51823// because http.StatusNotModified was returned.
51824func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
51825	gensupport.SetOptions(c.urlParams_, opts...)
51826	res, err := c.doRequest("json")
51827	if res != nil && res.StatusCode == http.StatusNotModified {
51828		if res.Body != nil {
51829			res.Body.Close()
51830		}
51831		return nil, &googleapi.Error{
51832			Code:   res.StatusCode,
51833			Header: res.Header,
51834		}
51835	}
51836	if err != nil {
51837		return nil, err
51838	}
51839	defer googleapi.CloseBody(res)
51840	if err := googleapi.CheckResponse(res); err != nil {
51841		return nil, err
51842	}
51843	ret := &GoogleLongrunningOperation{
51844		ServerResponse: googleapi.ServerResponse{
51845			Header:         res.Header,
51846			HTTPStatusCode: res.StatusCode,
51847		},
51848	}
51849	target := &ret
51850	if err := gensupport.DecodeResponse(target, res); err != nil {
51851		return nil, err
51852	}
51853	return ret, nil
51854	// {
51855	//   "description": "Creates a new document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
51856	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents",
51857	//   "httpMethod": "POST",
51858	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.create",
51859	//   "parameterOrder": [
51860	//     "parent"
51861	//   ],
51862	//   "parameters": {
51863	//     "importGcsCustomMetadata": {
51864	//       "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.",
51865	//       "location": "query",
51866	//       "type": "boolean"
51867	//     },
51868	//     "parent": {
51869	//       "description": "Required. The knowledge base to create a document for. Format: `projects//locations//knowledgeBases/`.",
51870	//       "location": "path",
51871	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51872	//       "required": true,
51873	//       "type": "string"
51874	//     }
51875	//   },
51876	//   "path": "v2beta1/{+parent}/documents",
51877	//   "request": {
51878	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
51879	//   },
51880	//   "response": {
51881	//     "$ref": "GoogleLongrunningOperation"
51882	//   },
51883	//   "scopes": [
51884	//     "https://www.googleapis.com/auth/cloud-platform",
51885	//     "https://www.googleapis.com/auth/dialogflow"
51886	//   ]
51887	// }
51888
51889}
51890
51891// method id "dialogflow.projects.locations.knowledgeBases.documents.delete":
51892
51893type ProjectsLocationsKnowledgeBasesDocumentsDeleteCall struct {
51894	s          *Service
51895	name       string
51896	urlParams_ gensupport.URLParams
51897	ctx_       context.Context
51898	header_    http.Header
51899}
51900
51901// Delete: Deletes the specified document. Note: The
51902// `projects.agent.knowledgeBases.documents` resource is deprecated;
51903// only use `projects.knowledgeBases.documents`.
51904//
51905// - name: The name of the document to delete. Format:
51906//   `projects//locations//knowledgeBases//documents/`.
51907func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
51908	c := &ProjectsLocationsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51909	c.name = name
51910	return c
51911}
51912
51913// Fields allows partial responses to be retrieved. See
51914// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51915// for more information.
51916func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
51917	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51918	return c
51919}
51920
51921// Context sets the context to be used in this call's Do method. Any
51922// pending HTTP request will be aborted if the provided context is
51923// canceled.
51924func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
51925	c.ctx_ = ctx
51926	return c
51927}
51928
51929// Header returns an http.Header that can be modified by the caller to
51930// add HTTP headers to the request.
51931func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
51932	if c.header_ == nil {
51933		c.header_ = make(http.Header)
51934	}
51935	return c.header_
51936}
51937
51938func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
51939	reqHeaders := make(http.Header)
51940	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
51941	for k, v := range c.header_ {
51942		reqHeaders[k] = v
51943	}
51944	reqHeaders.Set("User-Agent", c.s.userAgent())
51945	var body io.Reader = nil
51946	c.urlParams_.Set("alt", alt)
51947	c.urlParams_.Set("prettyPrint", "false")
51948	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51949	urls += "?" + c.urlParams_.Encode()
51950	req, err := http.NewRequest("DELETE", urls, body)
51951	if err != nil {
51952		return nil, err
51953	}
51954	req.Header = reqHeaders
51955	googleapi.Expand(req.URL, map[string]string{
51956		"name": c.name,
51957	})
51958	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51959}
51960
51961// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.delete" call.
51962// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
51963// Any non-2xx status code is an error. Response headers are in either
51964// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
51965// was returned at all) in error.(*googleapi.Error).Header. Use
51966// googleapi.IsNotModified to check whether the returned error was
51967// because http.StatusNotModified was returned.
51968func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
51969	gensupport.SetOptions(c.urlParams_, opts...)
51970	res, err := c.doRequest("json")
51971	if res != nil && res.StatusCode == http.StatusNotModified {
51972		if res.Body != nil {
51973			res.Body.Close()
51974		}
51975		return nil, &googleapi.Error{
51976			Code:   res.StatusCode,
51977			Header: res.Header,
51978		}
51979	}
51980	if err != nil {
51981		return nil, err
51982	}
51983	defer googleapi.CloseBody(res)
51984	if err := googleapi.CheckResponse(res); err != nil {
51985		return nil, err
51986	}
51987	ret := &GoogleLongrunningOperation{
51988		ServerResponse: googleapi.ServerResponse{
51989			Header:         res.Header,
51990			HTTPStatusCode: res.StatusCode,
51991		},
51992	}
51993	target := &ret
51994	if err := gensupport.DecodeResponse(target, res); err != nil {
51995		return nil, err
51996	}
51997	return ret, nil
51998	// {
51999	//   "description": "Deletes the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
52000	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
52001	//   "httpMethod": "DELETE",
52002	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.delete",
52003	//   "parameterOrder": [
52004	//     "name"
52005	//   ],
52006	//   "parameters": {
52007	//     "name": {
52008	//       "description": "Required. The name of the document to delete. Format: `projects//locations//knowledgeBases//documents/`.",
52009	//       "location": "path",
52010	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
52011	//       "required": true,
52012	//       "type": "string"
52013	//     }
52014	//   },
52015	//   "path": "v2beta1/{+name}",
52016	//   "response": {
52017	//     "$ref": "GoogleLongrunningOperation"
52018	//   },
52019	//   "scopes": [
52020	//     "https://www.googleapis.com/auth/cloud-platform",
52021	//     "https://www.googleapis.com/auth/dialogflow"
52022	//   ]
52023	// }
52024
52025}
52026
52027// method id "dialogflow.projects.locations.knowledgeBases.documents.get":
52028
52029type ProjectsLocationsKnowledgeBasesDocumentsGetCall struct {
52030	s            *Service
52031	name         string
52032	urlParams_   gensupport.URLParams
52033	ifNoneMatch_ string
52034	ctx_         context.Context
52035	header_      http.Header
52036}
52037
52038// Get: Retrieves the specified document. Note: The
52039// `projects.agent.knowledgeBases.documents` resource is deprecated;
52040// only use `projects.knowledgeBases.documents`.
52041//
52042// - name: The name of the document to retrieve. Format
52043//   `projects//locations//knowledgeBases//documents/`.
52044func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Get(name string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
52045	c := &ProjectsLocationsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52046	c.name = name
52047	return c
52048}
52049
52050// Fields allows partial responses to be retrieved. See
52051// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52052// for more information.
52053func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
52054	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52055	return c
52056}
52057
52058// IfNoneMatch sets the optional parameter which makes the operation
52059// fail if the object's ETag matches the given value. This is useful for
52060// getting updates only after the object has changed since the last
52061// request. Use googleapi.IsNotModified to check whether the response
52062// error from Do is the result of In-None-Match.
52063func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
52064	c.ifNoneMatch_ = entityTag
52065	return c
52066}
52067
52068// Context sets the context to be used in this call's Do method. Any
52069// pending HTTP request will be aborted if the provided context is
52070// canceled.
52071func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
52072	c.ctx_ = ctx
52073	return c
52074}
52075
52076// Header returns an http.Header that can be modified by the caller to
52077// add HTTP headers to the request.
52078func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Header() http.Header {
52079	if c.header_ == nil {
52080		c.header_ = make(http.Header)
52081	}
52082	return c.header_
52083}
52084
52085func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
52086	reqHeaders := make(http.Header)
52087	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
52088	for k, v := range c.header_ {
52089		reqHeaders[k] = v
52090	}
52091	reqHeaders.Set("User-Agent", c.s.userAgent())
52092	if c.ifNoneMatch_ != "" {
52093		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52094	}
52095	var body io.Reader = nil
52096	c.urlParams_.Set("alt", alt)
52097	c.urlParams_.Set("prettyPrint", "false")
52098	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
52099	urls += "?" + c.urlParams_.Encode()
52100	req, err := http.NewRequest("GET", urls, body)
52101	if err != nil {
52102		return nil, err
52103	}
52104	req.Header = reqHeaders
52105	googleapi.Expand(req.URL, map[string]string{
52106		"name": c.name,
52107	})
52108	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52109}
52110
52111// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.get" call.
52112// Exactly one of *GoogleCloudDialogflowV2beta1Document or error will be
52113// non-nil. Any non-2xx status code is an error. Response headers are in
52114// either *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or
52115// (if a response was returned at all) in
52116// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
52117// whether the returned error was because http.StatusNotModified was
52118// returned.
52119func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
52120	gensupport.SetOptions(c.urlParams_, opts...)
52121	res, err := c.doRequest("json")
52122	if res != nil && res.StatusCode == http.StatusNotModified {
52123		if res.Body != nil {
52124			res.Body.Close()
52125		}
52126		return nil, &googleapi.Error{
52127			Code:   res.StatusCode,
52128			Header: res.Header,
52129		}
52130	}
52131	if err != nil {
52132		return nil, err
52133	}
52134	defer googleapi.CloseBody(res)
52135	if err := googleapi.CheckResponse(res); err != nil {
52136		return nil, err
52137	}
52138	ret := &GoogleCloudDialogflowV2beta1Document{
52139		ServerResponse: googleapi.ServerResponse{
52140			Header:         res.Header,
52141			HTTPStatusCode: res.StatusCode,
52142		},
52143	}
52144	target := &ret
52145	if err := gensupport.DecodeResponse(target, res); err != nil {
52146		return nil, err
52147	}
52148	return ret, nil
52149	// {
52150	//   "description": "Retrieves the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
52151	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
52152	//   "httpMethod": "GET",
52153	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.get",
52154	//   "parameterOrder": [
52155	//     "name"
52156	//   ],
52157	//   "parameters": {
52158	//     "name": {
52159	//       "description": "Required. The name of the document to retrieve. Format `projects//locations//knowledgeBases//documents/`.",
52160	//       "location": "path",
52161	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
52162	//       "required": true,
52163	//       "type": "string"
52164	//     }
52165	//   },
52166	//   "path": "v2beta1/{+name}",
52167	//   "response": {
52168	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
52169	//   },
52170	//   "scopes": [
52171	//     "https://www.googleapis.com/auth/cloud-platform",
52172	//     "https://www.googleapis.com/auth/dialogflow"
52173	//   ]
52174	// }
52175
52176}
52177
52178// method id "dialogflow.projects.locations.knowledgeBases.documents.import":
52179
52180type ProjectsLocationsKnowledgeBasesDocumentsImportCall struct {
52181	s                                                  *Service
52182	parent                                             string
52183	googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
52184	urlParams_                                         gensupport.URLParams
52185	ctx_                                               context.Context
52186	header_                                            http.Header
52187}
52188
52189// Import: Create documents by importing data from external sources.
52190// Dialogflow supports up to 350 documents in each request. If you try
52191// to import more, Dialogflow will return an error.
52192//
52193// - parent: The knowledge base to import documents into. Format:
52194//   `projects//locations//knowledgeBases/`.
52195func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
52196	c := &ProjectsLocationsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52197	c.parent = parent
52198	c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
52199	return c
52200}
52201
52202// Fields allows partial responses to be retrieved. See
52203// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52204// for more information.
52205func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
52206	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52207	return c
52208}
52209
52210// Context sets the context to be used in this call's Do method. Any
52211// pending HTTP request will be aborted if the provided context is
52212// canceled.
52213func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
52214	c.ctx_ = ctx
52215	return c
52216}
52217
52218// Header returns an http.Header that can be modified by the caller to
52219// add HTTP headers to the request.
52220func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Header() http.Header {
52221	if c.header_ == nil {
52222		c.header_ = make(http.Header)
52223	}
52224	return c.header_
52225}
52226
52227func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
52228	reqHeaders := make(http.Header)
52229	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
52230	for k, v := range c.header_ {
52231		reqHeaders[k] = v
52232	}
52233	reqHeaders.Set("User-Agent", c.s.userAgent())
52234	var body io.Reader = nil
52235	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
52236	if err != nil {
52237		return nil, err
52238	}
52239	reqHeaders.Set("Content-Type", "application/json")
52240	c.urlParams_.Set("alt", alt)
52241	c.urlParams_.Set("prettyPrint", "false")
52242	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
52243	urls += "?" + c.urlParams_.Encode()
52244	req, err := http.NewRequest("POST", urls, body)
52245	if err != nil {
52246		return nil, err
52247	}
52248	req.Header = reqHeaders
52249	googleapi.Expand(req.URL, map[string]string{
52250		"parent": c.parent,
52251	})
52252	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52253}
52254
52255// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.import" call.
52256// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
52257// Any non-2xx status code is an error. Response headers are in either
52258// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
52259// was returned at all) in error.(*googleapi.Error).Header. Use
52260// googleapi.IsNotModified to check whether the returned error was
52261// because http.StatusNotModified was returned.
52262func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
52263	gensupport.SetOptions(c.urlParams_, opts...)
52264	res, err := c.doRequest("json")
52265	if res != nil && res.StatusCode == http.StatusNotModified {
52266		if res.Body != nil {
52267			res.Body.Close()
52268		}
52269		return nil, &googleapi.Error{
52270			Code:   res.StatusCode,
52271			Header: res.Header,
52272		}
52273	}
52274	if err != nil {
52275		return nil, err
52276	}
52277	defer googleapi.CloseBody(res)
52278	if err := googleapi.CheckResponse(res); err != nil {
52279		return nil, err
52280	}
52281	ret := &GoogleLongrunningOperation{
52282		ServerResponse: googleapi.ServerResponse{
52283			Header:         res.Header,
52284			HTTPStatusCode: res.StatusCode,
52285		},
52286	}
52287	target := &ret
52288	if err := gensupport.DecodeResponse(target, res); err != nil {
52289		return nil, err
52290	}
52291	return ret, nil
52292	// {
52293	//   "description": "Create documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error.",
52294	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents:import",
52295	//   "httpMethod": "POST",
52296	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.import",
52297	//   "parameterOrder": [
52298	//     "parent"
52299	//   ],
52300	//   "parameters": {
52301	//     "parent": {
52302	//       "description": "Required. The knowledge base to import documents into. Format: `projects//locations//knowledgeBases/`.",
52303	//       "location": "path",
52304	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
52305	//       "required": true,
52306	//       "type": "string"
52307	//     }
52308	//   },
52309	//   "path": "v2beta1/{+parent}/documents:import",
52310	//   "request": {
52311	//     "$ref": "GoogleCloudDialogflowV2beta1ImportDocumentsRequest"
52312	//   },
52313	//   "response": {
52314	//     "$ref": "GoogleLongrunningOperation"
52315	//   },
52316	//   "scopes": [
52317	//     "https://www.googleapis.com/auth/cloud-platform",
52318	//     "https://www.googleapis.com/auth/dialogflow"
52319	//   ]
52320	// }
52321
52322}
52323
52324// method id "dialogflow.projects.locations.knowledgeBases.documents.list":
52325
52326type ProjectsLocationsKnowledgeBasesDocumentsListCall struct {
52327	s            *Service
52328	parent       string
52329	urlParams_   gensupport.URLParams
52330	ifNoneMatch_ string
52331	ctx_         context.Context
52332	header_      http.Header
52333}
52334
52335// List: Returns the list of all documents of the knowledge base. Note:
52336// The `projects.agent.knowledgeBases.documents` resource is deprecated;
52337// only use `projects.knowledgeBases.documents`.
52338//
52339// - parent: The knowledge base to list all documents for. Format:
52340//   `projects//locations//knowledgeBases/`.
52341func (r *ProjectsLocationsKnowledgeBasesDocumentsService) List(parent string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
52342	c := &ProjectsLocationsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52343	c.parent = parent
52344	return c
52345}
52346
52347// Filter sets the optional parameter "filter": The filter expression
52348// used to filter documents returned by the list method. The expression
52349// has the following syntax: [AND ] ... The following fields and
52350// operators are supported: * knowledge_types with has(:) operator *
52351// display_name with has(:) operator * state with equals(=) operator
52352// Examples: * "knowledge_types:FAQ" matches documents with FAQ
52353// knowledge type. * "display_name:customer" matches documents whose
52354// display name contains "customer". * "state=ACTIVE" matches documents
52355// with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE" matches
52356// all active FAQ documents. For more information about filtering, see
52357// API Filtering (https://aip.dev/160).
52358func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
52359	c.urlParams_.Set("filter", filter)
52360	return c
52361}
52362
52363// PageSize sets the optional parameter "pageSize": The maximum number
52364// of items to return in a single page. By default 10 and at most 100.
52365func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
52366	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
52367	return c
52368}
52369
52370// PageToken sets the optional parameter "pageToken": The
52371// next_page_token value returned from a previous list request.
52372func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
52373	c.urlParams_.Set("pageToken", pageToken)
52374	return c
52375}
52376
52377// Fields allows partial responses to be retrieved. See
52378// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52379// for more information.
52380func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
52381	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52382	return c
52383}
52384
52385// IfNoneMatch sets the optional parameter which makes the operation
52386// fail if the object's ETag matches the given value. This is useful for
52387// getting updates only after the object has changed since the last
52388// request. Use googleapi.IsNotModified to check whether the response
52389// error from Do is the result of In-None-Match.
52390func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
52391	c.ifNoneMatch_ = entityTag
52392	return c
52393}
52394
52395// Context sets the context to be used in this call's Do method. Any
52396// pending HTTP request will be aborted if the provided context is
52397// canceled.
52398func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
52399	c.ctx_ = ctx
52400	return c
52401}
52402
52403// Header returns an http.Header that can be modified by the caller to
52404// add HTTP headers to the request.
52405func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Header() http.Header {
52406	if c.header_ == nil {
52407		c.header_ = make(http.Header)
52408	}
52409	return c.header_
52410}
52411
52412func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
52413	reqHeaders := make(http.Header)
52414	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
52415	for k, v := range c.header_ {
52416		reqHeaders[k] = v
52417	}
52418	reqHeaders.Set("User-Agent", c.s.userAgent())
52419	if c.ifNoneMatch_ != "" {
52420		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52421	}
52422	var body io.Reader = nil
52423	c.urlParams_.Set("alt", alt)
52424	c.urlParams_.Set("prettyPrint", "false")
52425	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
52426	urls += "?" + c.urlParams_.Encode()
52427	req, err := http.NewRequest("GET", urls, body)
52428	if err != nil {
52429		return nil, err
52430	}
52431	req.Header = reqHeaders
52432	googleapi.Expand(req.URL, map[string]string{
52433		"parent": c.parent,
52434	})
52435	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52436}
52437
52438// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.list" call.
52439// Exactly one of *GoogleCloudDialogflowV2beta1ListDocumentsResponse or
52440// error will be non-nil. Any non-2xx status code is an error. Response
52441// headers are in either
52442// *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Head
52443// er or (if a response was returned at all) in
52444// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
52445// whether the returned error was because http.StatusNotModified was
52446// returned.
52447func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
52448	gensupport.SetOptions(c.urlParams_, opts...)
52449	res, err := c.doRequest("json")
52450	if res != nil && res.StatusCode == http.StatusNotModified {
52451		if res.Body != nil {
52452			res.Body.Close()
52453		}
52454		return nil, &googleapi.Error{
52455			Code:   res.StatusCode,
52456			Header: res.Header,
52457		}
52458	}
52459	if err != nil {
52460		return nil, err
52461	}
52462	defer googleapi.CloseBody(res)
52463	if err := googleapi.CheckResponse(res); err != nil {
52464		return nil, err
52465	}
52466	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
52467		ServerResponse: googleapi.ServerResponse{
52468			Header:         res.Header,
52469			HTTPStatusCode: res.StatusCode,
52470		},
52471	}
52472	target := &ret
52473	if err := gensupport.DecodeResponse(target, res); err != nil {
52474		return nil, err
52475	}
52476	return ret, nil
52477	// {
52478	//   "description": "Returns the list of all documents of the knowledge base. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
52479	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents",
52480	//   "httpMethod": "GET",
52481	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.list",
52482	//   "parameterOrder": [
52483	//     "parent"
52484	//   ],
52485	//   "parameters": {
52486	//     "filter": {
52487	//       "description": "The filter expression used to filter documents returned by the list method. The expression has the following syntax: [AND ] ... The following fields and operators are supported: * knowledge_types with has(:) operator * display_name with has(:) operator * state with equals(=) operator Examples: * \"knowledge_types:FAQ\" matches documents with FAQ knowledge type. * \"display_name:customer\" matches documents whose display name contains \"customer\". * \"state=ACTIVE\" matches documents with ACTIVE state. * \"knowledge_types:FAQ AND state=ACTIVE\" matches all active FAQ documents. For more information about filtering, see [API Filtering](https://aip.dev/160).",
52488	//       "location": "query",
52489	//       "type": "string"
52490	//     },
52491	//     "pageSize": {
52492	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
52493	//       "format": "int32",
52494	//       "location": "query",
52495	//       "type": "integer"
52496	//     },
52497	//     "pageToken": {
52498	//       "description": "The next_page_token value returned from a previous list request.",
52499	//       "location": "query",
52500	//       "type": "string"
52501	//     },
52502	//     "parent": {
52503	//       "description": "Required. The knowledge base to list all documents for. Format: `projects//locations//knowledgeBases/`.",
52504	//       "location": "path",
52505	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
52506	//       "required": true,
52507	//       "type": "string"
52508	//     }
52509	//   },
52510	//   "path": "v2beta1/{+parent}/documents",
52511	//   "response": {
52512	//     "$ref": "GoogleCloudDialogflowV2beta1ListDocumentsResponse"
52513	//   },
52514	//   "scopes": [
52515	//     "https://www.googleapis.com/auth/cloud-platform",
52516	//     "https://www.googleapis.com/auth/dialogflow"
52517	//   ]
52518	// }
52519
52520}
52521
52522// Pages invokes f for each page of results.
52523// A non-nil error returned from f will halt the iteration.
52524// The provided context supersedes any context provided to the Context method.
52525func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
52526	c.ctx_ = ctx
52527	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
52528	for {
52529		x, err := c.Do()
52530		if err != nil {
52531			return err
52532		}
52533		if err := f(x); err != nil {
52534			return err
52535		}
52536		if x.NextPageToken == "" {
52537			return nil
52538		}
52539		c.PageToken(x.NextPageToken)
52540	}
52541}
52542
52543// method id "dialogflow.projects.locations.knowledgeBases.documents.patch":
52544
52545type ProjectsLocationsKnowledgeBasesDocumentsPatchCall struct {
52546	s                                    *Service
52547	name                                 string
52548	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
52549	urlParams_                           gensupport.URLParams
52550	ctx_                                 context.Context
52551	header_                              http.Header
52552}
52553
52554// Patch: Updates the specified document. Note: The
52555// `projects.agent.knowledgeBases.documents` resource is deprecated;
52556// only use `projects.knowledgeBases.documents`.
52557//
52558// - name: Optional. The document resource name. The name must be empty
52559//   when creating a document. Format:
52560//   `projects//locations//knowledgeBases//documents/`.
52561func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
52562	c := &ProjectsLocationsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52563	c.name = name
52564	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
52565	return c
52566}
52567
52568// UpdateMask sets the optional parameter "updateMask": Not specified
52569// means `update all`. Currently, only `display_name` can be updated, an
52570// InvalidArgument will be returned for attempting to update other
52571// fields.
52572func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
52573	c.urlParams_.Set("updateMask", updateMask)
52574	return c
52575}
52576
52577// Fields allows partial responses to be retrieved. See
52578// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52579// for more information.
52580func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
52581	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52582	return c
52583}
52584
52585// Context sets the context to be used in this call's Do method. Any
52586// pending HTTP request will be aborted if the provided context is
52587// canceled.
52588func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
52589	c.ctx_ = ctx
52590	return c
52591}
52592
52593// Header returns an http.Header that can be modified by the caller to
52594// add HTTP headers to the request.
52595func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
52596	if c.header_ == nil {
52597		c.header_ = make(http.Header)
52598	}
52599	return c.header_
52600}
52601
52602func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
52603	reqHeaders := make(http.Header)
52604	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
52605	for k, v := range c.header_ {
52606		reqHeaders[k] = v
52607	}
52608	reqHeaders.Set("User-Agent", c.s.userAgent())
52609	var body io.Reader = nil
52610	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
52611	if err != nil {
52612		return nil, err
52613	}
52614	reqHeaders.Set("Content-Type", "application/json")
52615	c.urlParams_.Set("alt", alt)
52616	c.urlParams_.Set("prettyPrint", "false")
52617	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
52618	urls += "?" + c.urlParams_.Encode()
52619	req, err := http.NewRequest("PATCH", urls, body)
52620	if err != nil {
52621		return nil, err
52622	}
52623	req.Header = reqHeaders
52624	googleapi.Expand(req.URL, map[string]string{
52625		"name": c.name,
52626	})
52627	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52628}
52629
52630// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.patch" call.
52631// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
52632// Any non-2xx status code is an error. Response headers are in either
52633// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
52634// was returned at all) in error.(*googleapi.Error).Header. Use
52635// googleapi.IsNotModified to check whether the returned error was
52636// because http.StatusNotModified was returned.
52637func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
52638	gensupport.SetOptions(c.urlParams_, opts...)
52639	res, err := c.doRequest("json")
52640	if res != nil && res.StatusCode == http.StatusNotModified {
52641		if res.Body != nil {
52642			res.Body.Close()
52643		}
52644		return nil, &googleapi.Error{
52645			Code:   res.StatusCode,
52646			Header: res.Header,
52647		}
52648	}
52649	if err != nil {
52650		return nil, err
52651	}
52652	defer googleapi.CloseBody(res)
52653	if err := googleapi.CheckResponse(res); err != nil {
52654		return nil, err
52655	}
52656	ret := &GoogleLongrunningOperation{
52657		ServerResponse: googleapi.ServerResponse{
52658			Header:         res.Header,
52659			HTTPStatusCode: res.StatusCode,
52660		},
52661	}
52662	target := &ret
52663	if err := gensupport.DecodeResponse(target, res); err != nil {
52664		return nil, err
52665	}
52666	return ret, nil
52667	// {
52668	//   "description": "Updates the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
52669	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
52670	//   "httpMethod": "PATCH",
52671	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.patch",
52672	//   "parameterOrder": [
52673	//     "name"
52674	//   ],
52675	//   "parameters": {
52676	//     "name": {
52677	//       "description": "Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.",
52678	//       "location": "path",
52679	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
52680	//       "required": true,
52681	//       "type": "string"
52682	//     },
52683	//     "updateMask": {
52684	//       "description": "Optional. Not specified means `update all`. Currently, only `display_name` can be updated, an InvalidArgument will be returned for attempting to update other fields.",
52685	//       "format": "google-fieldmask",
52686	//       "location": "query",
52687	//       "type": "string"
52688	//     }
52689	//   },
52690	//   "path": "v2beta1/{+name}",
52691	//   "request": {
52692	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
52693	//   },
52694	//   "response": {
52695	//     "$ref": "GoogleLongrunningOperation"
52696	//   },
52697	//   "scopes": [
52698	//     "https://www.googleapis.com/auth/cloud-platform",
52699	//     "https://www.googleapis.com/auth/dialogflow"
52700	//   ]
52701	// }
52702
52703}
52704
52705// method id "dialogflow.projects.locations.knowledgeBases.documents.reload":
52706
52707type ProjectsLocationsKnowledgeBasesDocumentsReloadCall struct {
52708	s                                                 *Service
52709	name                                              string
52710	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
52711	urlParams_                                        gensupport.URLParams
52712	ctx_                                              context.Context
52713	header_                                           http.Header
52714}
52715
52716// Reload: Reloads the specified document from its specified source,
52717// content_uri or content. The previously loaded content of the document
52718// will be deleted. Note: Even when the content of the document has not
52719// changed, there still may be side effects because of internal
52720// implementation changes. Note: If the document source is Google Cloud
52721// Storage URI, its metadata will be replaced with the custom metadata
52722// from Google Cloud Storage if the `import_gcs_custom_metadata` field
52723// is set to true in the request. Note: The
52724// `projects.agent.knowledgeBases.documents` resource is deprecated;
52725// only use `projects.knowledgeBases.documents`.
52726//
52727// - name: The name of the document to reload. Format:
52728//   `projects//locations//knowledgeBases//documents/`.
52729func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
52730	c := &ProjectsLocationsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52731	c.name = name
52732	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
52733	return c
52734}
52735
52736// Fields allows partial responses to be retrieved. See
52737// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52738// for more information.
52739func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
52740	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52741	return c
52742}
52743
52744// Context sets the context to be used in this call's Do method. Any
52745// pending HTTP request will be aborted if the provided context is
52746// canceled.
52747func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
52748	c.ctx_ = ctx
52749	return c
52750}
52751
52752// Header returns an http.Header that can be modified by the caller to
52753// add HTTP headers to the request.
52754func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
52755	if c.header_ == nil {
52756		c.header_ = make(http.Header)
52757	}
52758	return c.header_
52759}
52760
52761func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
52762	reqHeaders := make(http.Header)
52763	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
52764	for k, v := range c.header_ {
52765		reqHeaders[k] = v
52766	}
52767	reqHeaders.Set("User-Agent", c.s.userAgent())
52768	var body io.Reader = nil
52769	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
52770	if err != nil {
52771		return nil, err
52772	}
52773	reqHeaders.Set("Content-Type", "application/json")
52774	c.urlParams_.Set("alt", alt)
52775	c.urlParams_.Set("prettyPrint", "false")
52776	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
52777	urls += "?" + c.urlParams_.Encode()
52778	req, err := http.NewRequest("POST", urls, body)
52779	if err != nil {
52780		return nil, err
52781	}
52782	req.Header = reqHeaders
52783	googleapi.Expand(req.URL, map[string]string{
52784		"name": c.name,
52785	})
52786	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52787}
52788
52789// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.reload" call.
52790// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
52791// Any non-2xx status code is an error. Response headers are in either
52792// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
52793// was returned at all) in error.(*googleapi.Error).Header. Use
52794// googleapi.IsNotModified to check whether the returned error was
52795// because http.StatusNotModified was returned.
52796func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
52797	gensupport.SetOptions(c.urlParams_, opts...)
52798	res, err := c.doRequest("json")
52799	if res != nil && res.StatusCode == http.StatusNotModified {
52800		if res.Body != nil {
52801			res.Body.Close()
52802		}
52803		return nil, &googleapi.Error{
52804			Code:   res.StatusCode,
52805			Header: res.Header,
52806		}
52807	}
52808	if err != nil {
52809		return nil, err
52810	}
52811	defer googleapi.CloseBody(res)
52812	if err := googleapi.CheckResponse(res); err != nil {
52813		return nil, err
52814	}
52815	ret := &GoogleLongrunningOperation{
52816		ServerResponse: googleapi.ServerResponse{
52817			Header:         res.Header,
52818			HTTPStatusCode: res.StatusCode,
52819		},
52820	}
52821	target := &ret
52822	if err := gensupport.DecodeResponse(target, res); err != nil {
52823		return nil, err
52824	}
52825	return ret, nil
52826	// {
52827	//   "description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
52828	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
52829	//   "httpMethod": "POST",
52830	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.reload",
52831	//   "parameterOrder": [
52832	//     "name"
52833	//   ],
52834	//   "parameters": {
52835	//     "name": {
52836	//       "description": "Required. The name of the document to reload. Format: `projects//locations//knowledgeBases//documents/`",
52837	//       "location": "path",
52838	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
52839	//       "required": true,
52840	//       "type": "string"
52841	//     }
52842	//   },
52843	//   "path": "v2beta1/{+name}:reload",
52844	//   "request": {
52845	//     "$ref": "GoogleCloudDialogflowV2beta1ReloadDocumentRequest"
52846	//   },
52847	//   "response": {
52848	//     "$ref": "GoogleLongrunningOperation"
52849	//   },
52850	//   "scopes": [
52851	//     "https://www.googleapis.com/auth/cloud-platform",
52852	//     "https://www.googleapis.com/auth/dialogflow"
52853	//   ]
52854	// }
52855
52856}
52857
52858// method id "dialogflow.projects.locations.operations.cancel":
52859
52860type ProjectsLocationsOperationsCancelCall struct {
52861	s          *Service
52862	name       string
52863	urlParams_ gensupport.URLParams
52864	ctx_       context.Context
52865	header_    http.Header
52866}
52867
52868// Cancel: Starts asynchronous cancellation on a long-running operation.
52869// The server makes a best effort to cancel the operation, but success
52870// is not guaranteed. If the server doesn't support this method, it
52871// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
52872// Operations.GetOperation or other methods to check whether the
52873// cancellation succeeded or whether the operation completed despite
52874// cancellation. On successful cancellation, the operation is not
52875// deleted; instead, it becomes an operation with an Operation.error
52876// value with a google.rpc.Status.code of 1, corresponding to
52877// `Code.CANCELLED`.
52878//
52879// - name: The name of the operation resource to be cancelled.
52880func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
52881	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52882	c.name = name
52883	return c
52884}
52885
52886// Fields allows partial responses to be retrieved. See
52887// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52888// for more information.
52889func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
52890	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52891	return c
52892}
52893
52894// Context sets the context to be used in this call's Do method. Any
52895// pending HTTP request will be aborted if the provided context is
52896// canceled.
52897func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
52898	c.ctx_ = ctx
52899	return c
52900}
52901
52902// Header returns an http.Header that can be modified by the caller to
52903// add HTTP headers to the request.
52904func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
52905	if c.header_ == nil {
52906		c.header_ = make(http.Header)
52907	}
52908	return c.header_
52909}
52910
52911func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
52912	reqHeaders := make(http.Header)
52913	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
52914	for k, v := range c.header_ {
52915		reqHeaders[k] = v
52916	}
52917	reqHeaders.Set("User-Agent", c.s.userAgent())
52918	var body io.Reader = nil
52919	c.urlParams_.Set("alt", alt)
52920	c.urlParams_.Set("prettyPrint", "false")
52921	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
52922	urls += "?" + c.urlParams_.Encode()
52923	req, err := http.NewRequest("POST", urls, body)
52924	if err != nil {
52925		return nil, err
52926	}
52927	req.Header = reqHeaders
52928	googleapi.Expand(req.URL, map[string]string{
52929		"name": c.name,
52930	})
52931	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52932}
52933
52934// Do executes the "dialogflow.projects.locations.operations.cancel" call.
52935// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
52936// non-2xx status code is an error. Response headers are in either
52937// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
52938// returned at all) in error.(*googleapi.Error).Header. Use
52939// googleapi.IsNotModified to check whether the returned error was
52940// because http.StatusNotModified was returned.
52941func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
52942	gensupport.SetOptions(c.urlParams_, opts...)
52943	res, err := c.doRequest("json")
52944	if res != nil && res.StatusCode == http.StatusNotModified {
52945		if res.Body != nil {
52946			res.Body.Close()
52947		}
52948		return nil, &googleapi.Error{
52949			Code:   res.StatusCode,
52950			Header: res.Header,
52951		}
52952	}
52953	if err != nil {
52954		return nil, err
52955	}
52956	defer googleapi.CloseBody(res)
52957	if err := googleapi.CheckResponse(res); err != nil {
52958		return nil, err
52959	}
52960	ret := &GoogleProtobufEmpty{
52961		ServerResponse: googleapi.ServerResponse{
52962			Header:         res.Header,
52963			HTTPStatusCode: res.StatusCode,
52964		},
52965	}
52966	target := &ret
52967	if err := gensupport.DecodeResponse(target, res); err != nil {
52968		return nil, err
52969	}
52970	return ret, nil
52971	// {
52972	//   "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
52973	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
52974	//   "httpMethod": "POST",
52975	//   "id": "dialogflow.projects.locations.operations.cancel",
52976	//   "parameterOrder": [
52977	//     "name"
52978	//   ],
52979	//   "parameters": {
52980	//     "name": {
52981	//       "description": "The name of the operation resource to be cancelled.",
52982	//       "location": "path",
52983	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
52984	//       "required": true,
52985	//       "type": "string"
52986	//     }
52987	//   },
52988	//   "path": "v2beta1/{+name}:cancel",
52989	//   "response": {
52990	//     "$ref": "GoogleProtobufEmpty"
52991	//   },
52992	//   "scopes": [
52993	//     "https://www.googleapis.com/auth/cloud-platform",
52994	//     "https://www.googleapis.com/auth/dialogflow"
52995	//   ]
52996	// }
52997
52998}
52999
53000// method id "dialogflow.projects.locations.operations.get":
53001
53002type ProjectsLocationsOperationsGetCall struct {
53003	s            *Service
53004	name         string
53005	urlParams_   gensupport.URLParams
53006	ifNoneMatch_ string
53007	ctx_         context.Context
53008	header_      http.Header
53009}
53010
53011// Get: Gets the latest state of a long-running operation. Clients can
53012// use this method to poll the operation result at intervals as
53013// recommended by the API service.
53014//
53015// - name: The name of the operation resource.
53016func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
53017	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
53018	c.name = name
53019	return c
53020}
53021
53022// Fields allows partial responses to be retrieved. See
53023// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
53024// for more information.
53025func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
53026	c.urlParams_.Set("fields", googleapi.CombineFields(s))
53027	return c
53028}
53029
53030// IfNoneMatch sets the optional parameter which makes the operation
53031// fail if the object's ETag matches the given value. This is useful for
53032// getting updates only after the object has changed since the last
53033// request. Use googleapi.IsNotModified to check whether the response
53034// error from Do is the result of In-None-Match.
53035func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
53036	c.ifNoneMatch_ = entityTag
53037	return c
53038}
53039
53040// Context sets the context to be used in this call's Do method. Any
53041// pending HTTP request will be aborted if the provided context is
53042// canceled.
53043func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
53044	c.ctx_ = ctx
53045	return c
53046}
53047
53048// Header returns an http.Header that can be modified by the caller to
53049// add HTTP headers to the request.
53050func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
53051	if c.header_ == nil {
53052		c.header_ = make(http.Header)
53053	}
53054	return c.header_
53055}
53056
53057func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
53058	reqHeaders := make(http.Header)
53059	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
53060	for k, v := range c.header_ {
53061		reqHeaders[k] = v
53062	}
53063	reqHeaders.Set("User-Agent", c.s.userAgent())
53064	if c.ifNoneMatch_ != "" {
53065		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
53066	}
53067	var body io.Reader = nil
53068	c.urlParams_.Set("alt", alt)
53069	c.urlParams_.Set("prettyPrint", "false")
53070	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
53071	urls += "?" + c.urlParams_.Encode()
53072	req, err := http.NewRequest("GET", urls, body)
53073	if err != nil {
53074		return nil, err
53075	}
53076	req.Header = reqHeaders
53077	googleapi.Expand(req.URL, map[string]string{
53078		"name": c.name,
53079	})
53080	return gensupport.SendRequest(c.ctx_, c.s.client, req)
53081}
53082
53083// Do executes the "dialogflow.projects.locations.operations.get" call.
53084// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
53085// Any non-2xx status code is an error. Response headers are in either
53086// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
53087// was returned at all) in error.(*googleapi.Error).Header. Use
53088// googleapi.IsNotModified to check whether the returned error was
53089// because http.StatusNotModified was returned.
53090func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
53091	gensupport.SetOptions(c.urlParams_, opts...)
53092	res, err := c.doRequest("json")
53093	if res != nil && res.StatusCode == http.StatusNotModified {
53094		if res.Body != nil {
53095			res.Body.Close()
53096		}
53097		return nil, &googleapi.Error{
53098			Code:   res.StatusCode,
53099			Header: res.Header,
53100		}
53101	}
53102	if err != nil {
53103		return nil, err
53104	}
53105	defer googleapi.CloseBody(res)
53106	if err := googleapi.CheckResponse(res); err != nil {
53107		return nil, err
53108	}
53109	ret := &GoogleLongrunningOperation{
53110		ServerResponse: googleapi.ServerResponse{
53111			Header:         res.Header,
53112			HTTPStatusCode: res.StatusCode,
53113		},
53114	}
53115	target := &ret
53116	if err := gensupport.DecodeResponse(target, res); err != nil {
53117		return nil, err
53118	}
53119	return ret, nil
53120	// {
53121	//   "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
53122	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
53123	//   "httpMethod": "GET",
53124	//   "id": "dialogflow.projects.locations.operations.get",
53125	//   "parameterOrder": [
53126	//     "name"
53127	//   ],
53128	//   "parameters": {
53129	//     "name": {
53130	//       "description": "The name of the operation resource.",
53131	//       "location": "path",
53132	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
53133	//       "required": true,
53134	//       "type": "string"
53135	//     }
53136	//   },
53137	//   "path": "v2beta1/{+name}",
53138	//   "response": {
53139	//     "$ref": "GoogleLongrunningOperation"
53140	//   },
53141	//   "scopes": [
53142	//     "https://www.googleapis.com/auth/cloud-platform",
53143	//     "https://www.googleapis.com/auth/dialogflow"
53144	//   ]
53145	// }
53146
53147}
53148
53149// method id "dialogflow.projects.locations.operations.list":
53150
53151type ProjectsLocationsOperationsListCall struct {
53152	s            *Service
53153	name         string
53154	urlParams_   gensupport.URLParams
53155	ifNoneMatch_ string
53156	ctx_         context.Context
53157	header_      http.Header
53158}
53159
53160// List: Lists operations that match the specified filter in the
53161// request. If the server doesn't support this method, it returns
53162// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
53163// override the binding to use different resource name schemes, such as
53164// `users/*/operations`. To override the binding, API services can add a
53165// binding such as "/v1/{name=users/*}/operations" to their service
53166// configuration. For backwards compatibility, the default name includes
53167// the operations collection id, however overriding users must ensure
53168// the name binding is the parent resource, without the operations
53169// collection id.
53170//
53171// - name: The name of the operation's parent resource.
53172func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
53173	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
53174	c.name = name
53175	return c
53176}
53177
53178// Filter sets the optional parameter "filter": The standard list
53179// filter.
53180func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
53181	c.urlParams_.Set("filter", filter)
53182	return c
53183}
53184
53185// PageSize sets the optional parameter "pageSize": The standard list
53186// page size.
53187func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
53188	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
53189	return c
53190}
53191
53192// PageToken sets the optional parameter "pageToken": The standard list
53193// page token.
53194func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
53195	c.urlParams_.Set("pageToken", pageToken)
53196	return c
53197}
53198
53199// Fields allows partial responses to be retrieved. See
53200// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
53201// for more information.
53202func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
53203	c.urlParams_.Set("fields", googleapi.CombineFields(s))
53204	return c
53205}
53206
53207// IfNoneMatch sets the optional parameter which makes the operation
53208// fail if the object's ETag matches the given value. This is useful for
53209// getting updates only after the object has changed since the last
53210// request. Use googleapi.IsNotModified to check whether the response
53211// error from Do is the result of In-None-Match.
53212func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
53213	c.ifNoneMatch_ = entityTag
53214	return c
53215}
53216
53217// Context sets the context to be used in this call's Do method. Any
53218// pending HTTP request will be aborted if the provided context is
53219// canceled.
53220func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
53221	c.ctx_ = ctx
53222	return c
53223}
53224
53225// Header returns an http.Header that can be modified by the caller to
53226// add HTTP headers to the request.
53227func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
53228	if c.header_ == nil {
53229		c.header_ = make(http.Header)
53230	}
53231	return c.header_
53232}
53233
53234func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
53235	reqHeaders := make(http.Header)
53236	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
53237	for k, v := range c.header_ {
53238		reqHeaders[k] = v
53239	}
53240	reqHeaders.Set("User-Agent", c.s.userAgent())
53241	if c.ifNoneMatch_ != "" {
53242		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
53243	}
53244	var body io.Reader = nil
53245	c.urlParams_.Set("alt", alt)
53246	c.urlParams_.Set("prettyPrint", "false")
53247	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
53248	urls += "?" + c.urlParams_.Encode()
53249	req, err := http.NewRequest("GET", urls, body)
53250	if err != nil {
53251		return nil, err
53252	}
53253	req.Header = reqHeaders
53254	googleapi.Expand(req.URL, map[string]string{
53255		"name": c.name,
53256	})
53257	return gensupport.SendRequest(c.ctx_, c.s.client, req)
53258}
53259
53260// Do executes the "dialogflow.projects.locations.operations.list" call.
53261// Exactly one of *GoogleLongrunningListOperationsResponse or error will
53262// be non-nil. Any non-2xx status code is an error. Response headers are
53263// in either
53264// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
53265// a response was returned at all) in error.(*googleapi.Error).Header.
53266// Use googleapi.IsNotModified to check whether the returned error was
53267// because http.StatusNotModified was returned.
53268func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
53269	gensupport.SetOptions(c.urlParams_, opts...)
53270	res, err := c.doRequest("json")
53271	if res != nil && res.StatusCode == http.StatusNotModified {
53272		if res.Body != nil {
53273			res.Body.Close()
53274		}
53275		return nil, &googleapi.Error{
53276			Code:   res.StatusCode,
53277			Header: res.Header,
53278		}
53279	}
53280	if err != nil {
53281		return nil, err
53282	}
53283	defer googleapi.CloseBody(res)
53284	if err := googleapi.CheckResponse(res); err != nil {
53285		return nil, err
53286	}
53287	ret := &GoogleLongrunningListOperationsResponse{
53288		ServerResponse: googleapi.ServerResponse{
53289			Header:         res.Header,
53290			HTTPStatusCode: res.StatusCode,
53291		},
53292	}
53293	target := &ret
53294	if err := gensupport.DecodeResponse(target, res); err != nil {
53295		return nil, err
53296	}
53297	return ret, nil
53298	// {
53299	//   "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
53300	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations",
53301	//   "httpMethod": "GET",
53302	//   "id": "dialogflow.projects.locations.operations.list",
53303	//   "parameterOrder": [
53304	//     "name"
53305	//   ],
53306	//   "parameters": {
53307	//     "filter": {
53308	//       "description": "The standard list filter.",
53309	//       "location": "query",
53310	//       "type": "string"
53311	//     },
53312	//     "name": {
53313	//       "description": "The name of the operation's parent resource.",
53314	//       "location": "path",
53315	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
53316	//       "required": true,
53317	//       "type": "string"
53318	//     },
53319	//     "pageSize": {
53320	//       "description": "The standard list page size.",
53321	//       "format": "int32",
53322	//       "location": "query",
53323	//       "type": "integer"
53324	//     },
53325	//     "pageToken": {
53326	//       "description": "The standard list page token.",
53327	//       "location": "query",
53328	//       "type": "string"
53329	//     }
53330	//   },
53331	//   "path": "v2beta1/{+name}/operations",
53332	//   "response": {
53333	//     "$ref": "GoogleLongrunningListOperationsResponse"
53334	//   },
53335	//   "scopes": [
53336	//     "https://www.googleapis.com/auth/cloud-platform",
53337	//     "https://www.googleapis.com/auth/dialogflow"
53338	//   ]
53339	// }
53340
53341}
53342
53343// Pages invokes f for each page of results.
53344// A non-nil error returned from f will halt the iteration.
53345// The provided context supersedes any context provided to the Context method.
53346func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
53347	c.ctx_ = ctx
53348	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
53349	for {
53350		x, err := c.Do()
53351		if err != nil {
53352			return err
53353		}
53354		if err := f(x); err != nil {
53355			return err
53356		}
53357		if x.NextPageToken == "" {
53358			return nil
53359		}
53360		c.PageToken(x.NextPageToken)
53361	}
53362}
53363
53364// method id "dialogflow.projects.operations.cancel":
53365
53366type ProjectsOperationsCancelCall struct {
53367	s          *Service
53368	name       string
53369	urlParams_ gensupport.URLParams
53370	ctx_       context.Context
53371	header_    http.Header
53372}
53373
53374// Cancel: Starts asynchronous cancellation on a long-running operation.
53375// The server makes a best effort to cancel the operation, but success
53376// is not guaranteed. If the server doesn't support this method, it
53377// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
53378// Operations.GetOperation or other methods to check whether the
53379// cancellation succeeded or whether the operation completed despite
53380// cancellation. On successful cancellation, the operation is not
53381// deleted; instead, it becomes an operation with an Operation.error
53382// value with a google.rpc.Status.code of 1, corresponding to
53383// `Code.CANCELLED`.
53384//
53385// - name: The name of the operation resource to be cancelled.
53386func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
53387	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
53388	c.name = name
53389	return c
53390}
53391
53392// Fields allows partial responses to be retrieved. See
53393// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
53394// for more information.
53395func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
53396	c.urlParams_.Set("fields", googleapi.CombineFields(s))
53397	return c
53398}
53399
53400// Context sets the context to be used in this call's Do method. Any
53401// pending HTTP request will be aborted if the provided context is
53402// canceled.
53403func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
53404	c.ctx_ = ctx
53405	return c
53406}
53407
53408// Header returns an http.Header that can be modified by the caller to
53409// add HTTP headers to the request.
53410func (c *ProjectsOperationsCancelCall) Header() http.Header {
53411	if c.header_ == nil {
53412		c.header_ = make(http.Header)
53413	}
53414	return c.header_
53415}
53416
53417func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
53418	reqHeaders := make(http.Header)
53419	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
53420	for k, v := range c.header_ {
53421		reqHeaders[k] = v
53422	}
53423	reqHeaders.Set("User-Agent", c.s.userAgent())
53424	var body io.Reader = nil
53425	c.urlParams_.Set("alt", alt)
53426	c.urlParams_.Set("prettyPrint", "false")
53427	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
53428	urls += "?" + c.urlParams_.Encode()
53429	req, err := http.NewRequest("POST", urls, body)
53430	if err != nil {
53431		return nil, err
53432	}
53433	req.Header = reqHeaders
53434	googleapi.Expand(req.URL, map[string]string{
53435		"name": c.name,
53436	})
53437	return gensupport.SendRequest(c.ctx_, c.s.client, req)
53438}
53439
53440// Do executes the "dialogflow.projects.operations.cancel" call.
53441// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
53442// non-2xx status code is an error. Response headers are in either
53443// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
53444// returned at all) in error.(*googleapi.Error).Header. Use
53445// googleapi.IsNotModified to check whether the returned error was
53446// because http.StatusNotModified was returned.
53447func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
53448	gensupport.SetOptions(c.urlParams_, opts...)
53449	res, err := c.doRequest("json")
53450	if res != nil && res.StatusCode == http.StatusNotModified {
53451		if res.Body != nil {
53452			res.Body.Close()
53453		}
53454		return nil, &googleapi.Error{
53455			Code:   res.StatusCode,
53456			Header: res.Header,
53457		}
53458	}
53459	if err != nil {
53460		return nil, err
53461	}
53462	defer googleapi.CloseBody(res)
53463	if err := googleapi.CheckResponse(res); err != nil {
53464		return nil, err
53465	}
53466	ret := &GoogleProtobufEmpty{
53467		ServerResponse: googleapi.ServerResponse{
53468			Header:         res.Header,
53469			HTTPStatusCode: res.StatusCode,
53470		},
53471	}
53472	target := &ret
53473	if err := gensupport.DecodeResponse(target, res); err != nil {
53474		return nil, err
53475	}
53476	return ret, nil
53477	// {
53478	//   "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
53479	//   "flatPath": "v2beta1/projects/{projectsId}/operations/{operationsId}:cancel",
53480	//   "httpMethod": "POST",
53481	//   "id": "dialogflow.projects.operations.cancel",
53482	//   "parameterOrder": [
53483	//     "name"
53484	//   ],
53485	//   "parameters": {
53486	//     "name": {
53487	//       "description": "The name of the operation resource to be cancelled.",
53488	//       "location": "path",
53489	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
53490	//       "required": true,
53491	//       "type": "string"
53492	//     }
53493	//   },
53494	//   "path": "v2beta1/{+name}:cancel",
53495	//   "response": {
53496	//     "$ref": "GoogleProtobufEmpty"
53497	//   },
53498	//   "scopes": [
53499	//     "https://www.googleapis.com/auth/cloud-platform",
53500	//     "https://www.googleapis.com/auth/dialogflow"
53501	//   ]
53502	// }
53503
53504}
53505
53506// method id "dialogflow.projects.operations.get":
53507
53508type ProjectsOperationsGetCall struct {
53509	s            *Service
53510	name         string
53511	urlParams_   gensupport.URLParams
53512	ifNoneMatch_ string
53513	ctx_         context.Context
53514	header_      http.Header
53515}
53516
53517// Get: Gets the latest state of a long-running operation. Clients can
53518// use this method to poll the operation result at intervals as
53519// recommended by the API service.
53520//
53521// - name: The name of the operation resource.
53522func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
53523	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
53524	c.name = name
53525	return c
53526}
53527
53528// Fields allows partial responses to be retrieved. See
53529// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
53530// for more information.
53531func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
53532	c.urlParams_.Set("fields", googleapi.CombineFields(s))
53533	return c
53534}
53535
53536// IfNoneMatch sets the optional parameter which makes the operation
53537// fail if the object's ETag matches the given value. This is useful for
53538// getting updates only after the object has changed since the last
53539// request. Use googleapi.IsNotModified to check whether the response
53540// error from Do is the result of In-None-Match.
53541func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
53542	c.ifNoneMatch_ = entityTag
53543	return c
53544}
53545
53546// Context sets the context to be used in this call's Do method. Any
53547// pending HTTP request will be aborted if the provided context is
53548// canceled.
53549func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
53550	c.ctx_ = ctx
53551	return c
53552}
53553
53554// Header returns an http.Header that can be modified by the caller to
53555// add HTTP headers to the request.
53556func (c *ProjectsOperationsGetCall) Header() http.Header {
53557	if c.header_ == nil {
53558		c.header_ = make(http.Header)
53559	}
53560	return c.header_
53561}
53562
53563func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
53564	reqHeaders := make(http.Header)
53565	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
53566	for k, v := range c.header_ {
53567		reqHeaders[k] = v
53568	}
53569	reqHeaders.Set("User-Agent", c.s.userAgent())
53570	if c.ifNoneMatch_ != "" {
53571		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
53572	}
53573	var body io.Reader = nil
53574	c.urlParams_.Set("alt", alt)
53575	c.urlParams_.Set("prettyPrint", "false")
53576	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
53577	urls += "?" + c.urlParams_.Encode()
53578	req, err := http.NewRequest("GET", urls, body)
53579	if err != nil {
53580		return nil, err
53581	}
53582	req.Header = reqHeaders
53583	googleapi.Expand(req.URL, map[string]string{
53584		"name": c.name,
53585	})
53586	return gensupport.SendRequest(c.ctx_, c.s.client, req)
53587}
53588
53589// Do executes the "dialogflow.projects.operations.get" call.
53590// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
53591// Any non-2xx status code is an error. Response headers are in either
53592// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
53593// was returned at all) in error.(*googleapi.Error).Header. Use
53594// googleapi.IsNotModified to check whether the returned error was
53595// because http.StatusNotModified was returned.
53596func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
53597	gensupport.SetOptions(c.urlParams_, opts...)
53598	res, err := c.doRequest("json")
53599	if res != nil && res.StatusCode == http.StatusNotModified {
53600		if res.Body != nil {
53601			res.Body.Close()
53602		}
53603		return nil, &googleapi.Error{
53604			Code:   res.StatusCode,
53605			Header: res.Header,
53606		}
53607	}
53608	if err != nil {
53609		return nil, err
53610	}
53611	defer googleapi.CloseBody(res)
53612	if err := googleapi.CheckResponse(res); err != nil {
53613		return nil, err
53614	}
53615	ret := &GoogleLongrunningOperation{
53616		ServerResponse: googleapi.ServerResponse{
53617			Header:         res.Header,
53618			HTTPStatusCode: res.StatusCode,
53619		},
53620	}
53621	target := &ret
53622	if err := gensupport.DecodeResponse(target, res); err != nil {
53623		return nil, err
53624	}
53625	return ret, nil
53626	// {
53627	//   "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
53628	//   "flatPath": "v2beta1/projects/{projectsId}/operations/{operationsId}",
53629	//   "httpMethod": "GET",
53630	//   "id": "dialogflow.projects.operations.get",
53631	//   "parameterOrder": [
53632	//     "name"
53633	//   ],
53634	//   "parameters": {
53635	//     "name": {
53636	//       "description": "The name of the operation resource.",
53637	//       "location": "path",
53638	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
53639	//       "required": true,
53640	//       "type": "string"
53641	//     }
53642	//   },
53643	//   "path": "v2beta1/{+name}",
53644	//   "response": {
53645	//     "$ref": "GoogleLongrunningOperation"
53646	//   },
53647	//   "scopes": [
53648	//     "https://www.googleapis.com/auth/cloud-platform",
53649	//     "https://www.googleapis.com/auth/dialogflow"
53650	//   ]
53651	// }
53652
53653}
53654
53655// method id "dialogflow.projects.operations.list":
53656
53657type ProjectsOperationsListCall struct {
53658	s            *Service
53659	name         string
53660	urlParams_   gensupport.URLParams
53661	ifNoneMatch_ string
53662	ctx_         context.Context
53663	header_      http.Header
53664}
53665
53666// List: Lists operations that match the specified filter in the
53667// request. If the server doesn't support this method, it returns
53668// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
53669// override the binding to use different resource name schemes, such as
53670// `users/*/operations`. To override the binding, API services can add a
53671// binding such as "/v1/{name=users/*}/operations" to their service
53672// configuration. For backwards compatibility, the default name includes
53673// the operations collection id, however overriding users must ensure
53674// the name binding is the parent resource, without the operations
53675// collection id.
53676//
53677// - name: The name of the operation's parent resource.
53678func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
53679	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
53680	c.name = name
53681	return c
53682}
53683
53684// Filter sets the optional parameter "filter": The standard list
53685// filter.
53686func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
53687	c.urlParams_.Set("filter", filter)
53688	return c
53689}
53690
53691// PageSize sets the optional parameter "pageSize": The standard list
53692// page size.
53693func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
53694	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
53695	return c
53696}
53697
53698// PageToken sets the optional parameter "pageToken": The standard list
53699// page token.
53700func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
53701	c.urlParams_.Set("pageToken", pageToken)
53702	return c
53703}
53704
53705// Fields allows partial responses to be retrieved. See
53706// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
53707// for more information.
53708func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
53709	c.urlParams_.Set("fields", googleapi.CombineFields(s))
53710	return c
53711}
53712
53713// IfNoneMatch sets the optional parameter which makes the operation
53714// fail if the object's ETag matches the given value. This is useful for
53715// getting updates only after the object has changed since the last
53716// request. Use googleapi.IsNotModified to check whether the response
53717// error from Do is the result of In-None-Match.
53718func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
53719	c.ifNoneMatch_ = entityTag
53720	return c
53721}
53722
53723// Context sets the context to be used in this call's Do method. Any
53724// pending HTTP request will be aborted if the provided context is
53725// canceled.
53726func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
53727	c.ctx_ = ctx
53728	return c
53729}
53730
53731// Header returns an http.Header that can be modified by the caller to
53732// add HTTP headers to the request.
53733func (c *ProjectsOperationsListCall) Header() http.Header {
53734	if c.header_ == nil {
53735		c.header_ = make(http.Header)
53736	}
53737	return c.header_
53738}
53739
53740func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
53741	reqHeaders := make(http.Header)
53742	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
53743	for k, v := range c.header_ {
53744		reqHeaders[k] = v
53745	}
53746	reqHeaders.Set("User-Agent", c.s.userAgent())
53747	if c.ifNoneMatch_ != "" {
53748		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
53749	}
53750	var body io.Reader = nil
53751	c.urlParams_.Set("alt", alt)
53752	c.urlParams_.Set("prettyPrint", "false")
53753	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
53754	urls += "?" + c.urlParams_.Encode()
53755	req, err := http.NewRequest("GET", urls, body)
53756	if err != nil {
53757		return nil, err
53758	}
53759	req.Header = reqHeaders
53760	googleapi.Expand(req.URL, map[string]string{
53761		"name": c.name,
53762	})
53763	return gensupport.SendRequest(c.ctx_, c.s.client, req)
53764}
53765
53766// Do executes the "dialogflow.projects.operations.list" call.
53767// Exactly one of *GoogleLongrunningListOperationsResponse or error will
53768// be non-nil. Any non-2xx status code is an error. Response headers are
53769// in either
53770// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
53771// a response was returned at all) in error.(*googleapi.Error).Header.
53772// Use googleapi.IsNotModified to check whether the returned error was
53773// because http.StatusNotModified was returned.
53774func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
53775	gensupport.SetOptions(c.urlParams_, opts...)
53776	res, err := c.doRequest("json")
53777	if res != nil && res.StatusCode == http.StatusNotModified {
53778		if res.Body != nil {
53779			res.Body.Close()
53780		}
53781		return nil, &googleapi.Error{
53782			Code:   res.StatusCode,
53783			Header: res.Header,
53784		}
53785	}
53786	if err != nil {
53787		return nil, err
53788	}
53789	defer googleapi.CloseBody(res)
53790	if err := googleapi.CheckResponse(res); err != nil {
53791		return nil, err
53792	}
53793	ret := &GoogleLongrunningListOperationsResponse{
53794		ServerResponse: googleapi.ServerResponse{
53795			Header:         res.Header,
53796			HTTPStatusCode: res.StatusCode,
53797		},
53798	}
53799	target := &ret
53800	if err := gensupport.DecodeResponse(target, res); err != nil {
53801		return nil, err
53802	}
53803	return ret, nil
53804	// {
53805	//   "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
53806	//   "flatPath": "v2beta1/projects/{projectsId}/operations",
53807	//   "httpMethod": "GET",
53808	//   "id": "dialogflow.projects.operations.list",
53809	//   "parameterOrder": [
53810	//     "name"
53811	//   ],
53812	//   "parameters": {
53813	//     "filter": {
53814	//       "description": "The standard list filter.",
53815	//       "location": "query",
53816	//       "type": "string"
53817	//     },
53818	//     "name": {
53819	//       "description": "The name of the operation's parent resource.",
53820	//       "location": "path",
53821	//       "pattern": "^projects/[^/]+$",
53822	//       "required": true,
53823	//       "type": "string"
53824	//     },
53825	//     "pageSize": {
53826	//       "description": "The standard list page size.",
53827	//       "format": "int32",
53828	//       "location": "query",
53829	//       "type": "integer"
53830	//     },
53831	//     "pageToken": {
53832	//       "description": "The standard list page token.",
53833	//       "location": "query",
53834	//       "type": "string"
53835	//     }
53836	//   },
53837	//   "path": "v2beta1/{+name}/operations",
53838	//   "response": {
53839	//     "$ref": "GoogleLongrunningListOperationsResponse"
53840	//   },
53841	//   "scopes": [
53842	//     "https://www.googleapis.com/auth/cloud-platform",
53843	//     "https://www.googleapis.com/auth/dialogflow"
53844	//   ]
53845	// }
53846
53847}
53848
53849// Pages invokes f for each page of results.
53850// A non-nil error returned from f will halt the iteration.
53851// The provided context supersedes any context provided to the Context method.
53852func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
53853	c.ctx_ = ctx
53854	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
53855	for {
53856		x, err := c.Do()
53857		if err != nil {
53858			return err
53859		}
53860		if err := f(x); err != nil {
53861			return err
53862		}
53863		if x.NextPageToken == "" {
53864			return nil
53865		}
53866		c.PageToken(x.NextPageToken)
53867	}
53868}
53869