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.Users = NewProjectsLocationsAgentEnvironmentsUsersService(s)
526	return rs
527}
528
529type ProjectsLocationsAgentEnvironmentsService struct {
530	s *Service
531
532	Users *ProjectsLocationsAgentEnvironmentsUsersService
533}
534
535func NewProjectsLocationsAgentEnvironmentsUsersService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersService {
536	rs := &ProjectsLocationsAgentEnvironmentsUsersService{s: s}
537	rs.Sessions = NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s)
538	return rs
539}
540
541type ProjectsLocationsAgentEnvironmentsUsersService struct {
542	s *Service
543
544	Sessions *ProjectsLocationsAgentEnvironmentsUsersSessionsService
545}
546
547func NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsService {
548	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsService{s: s}
549	rs.Contexts = NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s)
550	rs.EntityTypes = NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s)
551	return rs
552}
553
554type ProjectsLocationsAgentEnvironmentsUsersSessionsService struct {
555	s *Service
556
557	Contexts *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService
558
559	EntityTypes *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService
560}
561
562func NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService {
563	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService{s: s}
564	return rs
565}
566
567type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService struct {
568	s *Service
569}
570
571func NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService {
572	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
573	return rs
574}
575
576type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService struct {
577	s *Service
578}
579
580func NewProjectsLocationsAgentIntentsService(s *Service) *ProjectsLocationsAgentIntentsService {
581	rs := &ProjectsLocationsAgentIntentsService{s: s}
582	return rs
583}
584
585type ProjectsLocationsAgentIntentsService struct {
586	s *Service
587}
588
589func NewProjectsLocationsAgentSessionsService(s *Service) *ProjectsLocationsAgentSessionsService {
590	rs := &ProjectsLocationsAgentSessionsService{s: s}
591	rs.Contexts = NewProjectsLocationsAgentSessionsContextsService(s)
592	rs.EntityTypes = NewProjectsLocationsAgentSessionsEntityTypesService(s)
593	return rs
594}
595
596type ProjectsLocationsAgentSessionsService struct {
597	s *Service
598
599	Contexts *ProjectsLocationsAgentSessionsContextsService
600
601	EntityTypes *ProjectsLocationsAgentSessionsEntityTypesService
602}
603
604func NewProjectsLocationsAgentSessionsContextsService(s *Service) *ProjectsLocationsAgentSessionsContextsService {
605	rs := &ProjectsLocationsAgentSessionsContextsService{s: s}
606	return rs
607}
608
609type ProjectsLocationsAgentSessionsContextsService struct {
610	s *Service
611}
612
613func NewProjectsLocationsAgentSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentSessionsEntityTypesService {
614	rs := &ProjectsLocationsAgentSessionsEntityTypesService{s: s}
615	return rs
616}
617
618type ProjectsLocationsAgentSessionsEntityTypesService struct {
619	s *Service
620}
621
622func NewProjectsLocationsAgentVersionsService(s *Service) *ProjectsLocationsAgentVersionsService {
623	rs := &ProjectsLocationsAgentVersionsService{s: s}
624	return rs
625}
626
627type ProjectsLocationsAgentVersionsService struct {
628	s *Service
629}
630
631func NewProjectsLocationsAnswerRecordsService(s *Service) *ProjectsLocationsAnswerRecordsService {
632	rs := &ProjectsLocationsAnswerRecordsService{s: s}
633	return rs
634}
635
636type ProjectsLocationsAnswerRecordsService struct {
637	s *Service
638}
639
640func NewProjectsLocationsConversationProfilesService(s *Service) *ProjectsLocationsConversationProfilesService {
641	rs := &ProjectsLocationsConversationProfilesService{s: s}
642	return rs
643}
644
645type ProjectsLocationsConversationProfilesService struct {
646	s *Service
647}
648
649func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService {
650	rs := &ProjectsLocationsConversationsService{s: s}
651	rs.Messages = NewProjectsLocationsConversationsMessagesService(s)
652	rs.Participants = NewProjectsLocationsConversationsParticipantsService(s)
653	return rs
654}
655
656type ProjectsLocationsConversationsService struct {
657	s *Service
658
659	Messages *ProjectsLocationsConversationsMessagesService
660
661	Participants *ProjectsLocationsConversationsParticipantsService
662}
663
664func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService {
665	rs := &ProjectsLocationsConversationsMessagesService{s: s}
666	return rs
667}
668
669type ProjectsLocationsConversationsMessagesService struct {
670	s *Service
671}
672
673func NewProjectsLocationsConversationsParticipantsService(s *Service) *ProjectsLocationsConversationsParticipantsService {
674	rs := &ProjectsLocationsConversationsParticipantsService{s: s}
675	rs.Suggestions = NewProjectsLocationsConversationsParticipantsSuggestionsService(s)
676	return rs
677}
678
679type ProjectsLocationsConversationsParticipantsService struct {
680	s *Service
681
682	Suggestions *ProjectsLocationsConversationsParticipantsSuggestionsService
683}
684
685func NewProjectsLocationsConversationsParticipantsSuggestionsService(s *Service) *ProjectsLocationsConversationsParticipantsSuggestionsService {
686	rs := &ProjectsLocationsConversationsParticipantsSuggestionsService{s: s}
687	return rs
688}
689
690type ProjectsLocationsConversationsParticipantsSuggestionsService struct {
691	s *Service
692}
693
694func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService {
695	rs := &ProjectsLocationsKnowledgeBasesService{s: s}
696	rs.Documents = NewProjectsLocationsKnowledgeBasesDocumentsService(s)
697	return rs
698}
699
700type ProjectsLocationsKnowledgeBasesService struct {
701	s *Service
702
703	Documents *ProjectsLocationsKnowledgeBasesDocumentsService
704}
705
706func NewProjectsLocationsKnowledgeBasesDocumentsService(s *Service) *ProjectsLocationsKnowledgeBasesDocumentsService {
707	rs := &ProjectsLocationsKnowledgeBasesDocumentsService{s: s}
708	return rs
709}
710
711type ProjectsLocationsKnowledgeBasesDocumentsService struct {
712	s *Service
713}
714
715func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
716	rs := &ProjectsLocationsOperationsService{s: s}
717	return rs
718}
719
720type ProjectsLocationsOperationsService struct {
721	s *Service
722}
723
724func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
725	rs := &ProjectsOperationsService{s: s}
726	return rs
727}
728
729type ProjectsOperationsService struct {
730	s *Service
731}
732
733// GoogleCloudDialogflowCxV3AudioInput: Represents the natural speech
734// audio to be processed.
735type GoogleCloudDialogflowCxV3AudioInput struct {
736	// Audio: The natural language speech audio to be processed. A single
737	// request can contain up to 1 minute of speech audio data. The
738	// transcribed text cannot contain more than 256 bytes. For
739	// non-streaming audio detect intent, both `config` and `audio` must be
740	// provided. For streaming audio detect intent, `config` must be
741	// provided in the first request and `audio` must be provided in all
742	// following requests.
743	Audio string `json:"audio,omitempty"`
744
745	// Config: Required. Instructs the speech recognizer how to process the
746	// speech audio.
747	Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
748
749	// ForceSendFields is a list of field names (e.g. "Audio") to
750	// unconditionally include in API requests. By default, fields with
751	// empty values are omitted from API requests. However, any non-pointer,
752	// non-interface field appearing in ForceSendFields will be sent to the
753	// server regardless of whether the field is empty or not. This may be
754	// used to include empty fields in Patch requests.
755	ForceSendFields []string `json:"-"`
756
757	// NullFields is a list of field names (e.g. "Audio") to include in API
758	// requests with the JSON null value. By default, fields with empty
759	// values are omitted from API requests. However, any field with an
760	// empty value appearing in NullFields will be sent to the server as
761	// null. It is an error if a field in this list has a non-empty value.
762	// This may be used to include null fields in Patch requests.
763	NullFields []string `json:"-"`
764}
765
766func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
767	type NoMethod GoogleCloudDialogflowCxV3AudioInput
768	raw := NoMethod(*s)
769	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
770}
771
772// GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata: Metadata returned
773// for the TestCases.BatchRunTestCases long running operation.
774type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
775	// Errors: The test errors.
776	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
777
778	// ForceSendFields is a list of field names (e.g. "Errors") to
779	// unconditionally include in API requests. By default, fields with
780	// empty values are omitted from API requests. However, any non-pointer,
781	// non-interface field appearing in ForceSendFields will be sent to the
782	// server regardless of whether the field is empty or not. This may be
783	// used to include empty fields in Patch requests.
784	ForceSendFields []string `json:"-"`
785
786	// NullFields is a list of field names (e.g. "Errors") to include in API
787	// requests with the JSON null value. By default, fields with empty
788	// values are omitted from API requests. However, any field with an
789	// empty value appearing in NullFields will be sent to the server as
790	// null. It is an error if a field in this list has a non-empty value.
791	// This may be used to include null fields in Patch requests.
792	NullFields []string `json:"-"`
793}
794
795func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
796	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
797	raw := NoMethod(*s)
798	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
799}
800
801// GoogleCloudDialogflowCxV3BatchRunTestCasesResponse: The response
802// message for TestCases.BatchRunTestCases.
803type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
804	// Results: The test case results. The detailed conversation turns are
805	// empty in this response.
806	Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
807
808	// ForceSendFields is a list of field names (e.g. "Results") to
809	// unconditionally include in API requests. By default, fields with
810	// empty values are omitted from API requests. However, any non-pointer,
811	// non-interface field appearing in ForceSendFields will be sent to the
812	// server regardless of whether the field is empty or not. This may be
813	// used to include empty fields in Patch requests.
814	ForceSendFields []string `json:"-"`
815
816	// NullFields is a list of field names (e.g. "Results") to include in
817	// API requests with the JSON null value. By default, fields with empty
818	// values are omitted from API requests. However, any field with an
819	// empty value appearing in NullFields will be sent to the server as
820	// null. It is an error if a field in this list has a non-empty value.
821	// This may be used to include null fields in Patch requests.
822	NullFields []string `json:"-"`
823}
824
825func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
826	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
827	raw := NoMethod(*s)
828	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
829}
830
831// GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a
832// human and virtual agent. The human provides some input and the
833// virtual agent provides a response.
834type GoogleCloudDialogflowCxV3ConversationTurn struct {
835	// UserInput: The user input.
836	UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
837
838	// VirtualAgentOutput: The virtual agent output.
839	VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
840
841	// ForceSendFields is a list of field names (e.g. "UserInput") to
842	// unconditionally include in API requests. By default, fields with
843	// empty values are omitted from API requests. However, any non-pointer,
844	// non-interface field appearing in ForceSendFields will be sent to the
845	// server regardless of whether the field is empty or not. This may be
846	// used to include empty fields in Patch requests.
847	ForceSendFields []string `json:"-"`
848
849	// NullFields is a list of field names (e.g. "UserInput") to include in
850	// API requests with the JSON null value. By default, fields with empty
851	// values are omitted from API requests. However, any field with an
852	// empty value appearing in NullFields will be sent to the server as
853	// null. It is an error if a field in this list has a non-empty value.
854	// This may be used to include null fields in Patch requests.
855	NullFields []string `json:"-"`
856}
857
858func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
859	type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
860	raw := NoMethod(*s)
861	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
862}
863
864// GoogleCloudDialogflowCxV3ConversationTurnUserInput: The input from
865// the human user.
866type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
867	// InjectedParameters: Parameters that need to be injected into the
868	// conversation during intent detection.
869	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
870
871	// Input: Supports text input, event input, dtmf input in the test case.
872	Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
873
874	// IsWebhookEnabled: If webhooks should be allowed to trigger in
875	// response to the user utterance. Often if parameters are injected,
876	// webhooks should not be enabled.
877	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
878
879	// ForceSendFields is a list of field names (e.g. "InjectedParameters")
880	// to unconditionally include in API requests. By default, fields with
881	// empty values are omitted from API requests. However, any non-pointer,
882	// non-interface field appearing in ForceSendFields will be sent to the
883	// server regardless of whether the field is empty or not. This may be
884	// used to include empty fields in Patch requests.
885	ForceSendFields []string `json:"-"`
886
887	// NullFields is a list of field names (e.g. "InjectedParameters") to
888	// include in API requests with the JSON null value. By default, fields
889	// with empty values are omitted from API requests. However, any field
890	// with an empty value appearing in NullFields will be sent to the
891	// server as null. It is an error if a field in this list has a
892	// non-empty value. This may be used to include null fields in Patch
893	// requests.
894	NullFields []string `json:"-"`
895}
896
897func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
898	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
899	raw := NoMethod(*s)
900	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
901}
902
903// GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput: The
904// output from the virtual agent.
905type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
906	// CurrentPage: The Page on which the utterance was spoken. Only name
907	// and displayName will be set.
908	CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
909
910	// DiagnosticInfo: Required. Input only. The diagnostic info output for
911	// the turn.
912	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
913
914	// Differences: Output only. If this is part of a result conversation
915	// turn, the list of differences between the original run and the replay
916	// for this output, if any.
917	Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
918
919	// SessionParameters: The session parameters available to the bot at
920	// this point.
921	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
922
923	// Status: Response error from the agent in the test result. If set,
924	// other output is empty.
925	Status *GoogleRpcStatus `json:"status,omitempty"`
926
927	// TextResponses: The text responses from the agent for the turn.
928	TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
929
930	// TriggeredIntent: The Intent that triggered the response. Only name
931	// and displayName will be set.
932	TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
933
934	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
935	// unconditionally include in API requests. By default, fields with
936	// empty values are omitted from API requests. However, any non-pointer,
937	// non-interface field appearing in ForceSendFields will be sent to the
938	// server regardless of whether the field is empty or not. This may be
939	// used to include empty fields in Patch requests.
940	ForceSendFields []string `json:"-"`
941
942	// NullFields is a list of field names (e.g. "CurrentPage") to include
943	// in API requests with the JSON null value. By default, fields with
944	// empty values are omitted from API requests. However, any field with
945	// an empty value appearing in NullFields will be sent to the server as
946	// null. It is an error if a field in this list has a non-empty value.
947	// This may be used to include null fields in Patch requests.
948	NullFields []string `json:"-"`
949}
950
951func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
952	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
953	raw := NoMethod(*s)
954	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
955}
956
957// GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata: Metadata
958// for CreateDocument operation.
959type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
960	// GenericMetadata: The generic information of the operation.
961	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
962
963	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
964	// unconditionally include in API requests. By default, fields with
965	// empty values are omitted from API requests. However, any non-pointer,
966	// non-interface field appearing in ForceSendFields will be sent to the
967	// server regardless of whether the field is empty or not. This may be
968	// used to include empty fields in Patch requests.
969	ForceSendFields []string `json:"-"`
970
971	// NullFields is a list of field names (e.g. "GenericMetadata") to
972	// include in API requests with the JSON null value. By default, fields
973	// with empty values are omitted from API requests. However, any field
974	// with an empty value appearing in NullFields will be sent to the
975	// server as null. It is an error if a field in this list has a
976	// non-empty value. This may be used to include null fields in Patch
977	// requests.
978	NullFields []string `json:"-"`
979}
980
981func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
982	type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
983	raw := NoMethod(*s)
984	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
985}
986
987// GoogleCloudDialogflowCxV3CreateVersionOperationMetadata: Metadata
988// associated with the long running operation for
989// Versions.CreateVersion.
990type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
991	// Version: Name of the created version. Format:
992	// `projects//locations//agents//flows//versions/`.
993	Version string `json:"version,omitempty"`
994
995	// ForceSendFields is a list of field names (e.g. "Version") to
996	// unconditionally include in API requests. By default, fields with
997	// empty values are omitted from API requests. However, any non-pointer,
998	// non-interface field appearing in ForceSendFields will be sent to the
999	// server regardless of whether the field is empty or not. This may be
1000	// used to include empty fields in Patch requests.
1001	ForceSendFields []string `json:"-"`
1002
1003	// NullFields is a list of field names (e.g. "Version") to include in
1004	// API requests with the JSON null value. By default, fields with empty
1005	// values are omitted from API requests. However, any field with an
1006	// empty value appearing in NullFields will be sent to the server as
1007	// null. It is an error if a field in this list has a non-empty value.
1008	// This may be used to include null fields in Patch requests.
1009	NullFields []string `json:"-"`
1010}
1011
1012func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
1013	type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
1014	raw := NoMethod(*s)
1015	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1016}
1017
1018// GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata: Metadata
1019// for DeleteDocument operation.
1020type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
1021	// GenericMetadata: The generic information of the operation.
1022	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1023
1024	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
1025	// unconditionally include in API requests. By default, fields with
1026	// empty values are omitted from API requests. However, any non-pointer,
1027	// non-interface field appearing in ForceSendFields will be sent to the
1028	// server regardless of whether the field is empty or not. This may be
1029	// used to include empty fields in Patch requests.
1030	ForceSendFields []string `json:"-"`
1031
1032	// NullFields is a list of field names (e.g. "GenericMetadata") to
1033	// include in API requests with the JSON null value. By default, fields
1034	// with empty values are omitted from API requests. However, any field
1035	// with an empty value appearing in NullFields will be sent to the
1036	// server as null. It is an error if a field in this list has a
1037	// non-empty value. This may be used to include null fields in Patch
1038	// requests.
1039	NullFields []string `json:"-"`
1040}
1041
1042func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1043	type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
1044	raw := NoMethod(*s)
1045	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1046}
1047
1048// GoogleCloudDialogflowCxV3DtmfInput: Represents the input for dtmf
1049// event.
1050type GoogleCloudDialogflowCxV3DtmfInput struct {
1051	// Digits: The dtmf digits.
1052	Digits string `json:"digits,omitempty"`
1053
1054	// FinishDigit: The finish digit (if any).
1055	FinishDigit string `json:"finishDigit,omitempty"`
1056
1057	// ForceSendFields is a list of field names (e.g. "Digits") to
1058	// unconditionally include in API requests. By default, fields with
1059	// empty values are omitted from API requests. However, any non-pointer,
1060	// non-interface field appearing in ForceSendFields will be sent to the
1061	// server regardless of whether the field is empty or not. This may be
1062	// used to include empty fields in Patch requests.
1063	ForceSendFields []string `json:"-"`
1064
1065	// NullFields is a list of field names (e.g. "Digits") to include in API
1066	// requests with the JSON null value. By default, fields with empty
1067	// values are omitted from API requests. However, any field with an
1068	// empty value appearing in NullFields will be sent to the server as
1069	// null. It is an error if a field in this list has a non-empty value.
1070	// This may be used to include null fields in Patch requests.
1071	NullFields []string `json:"-"`
1072}
1073
1074func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
1075	type NoMethod GoogleCloudDialogflowCxV3DtmfInput
1076	raw := NoMethod(*s)
1077	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1078}
1079
1080// GoogleCloudDialogflowCxV3EventHandler: An event handler specifies an
1081// event that can be handled during a session. When the specified event
1082// happens, the following actions are taken in order: * If there is a
1083// `trigger_fulfillment` associated with the event, it will be called. *
1084// If there is a `target_page` associated with the event, the session
1085// will transition into the specified page. * If there is a
1086// `target_flow` associated with the event, the session will transition
1087// into the specified flow.
1088type GoogleCloudDialogflowCxV3EventHandler struct {
1089	// Event: Required. The name of the event to handle.
1090	Event string `json:"event,omitempty"`
1091
1092	// Name: Output only. The unique identifier of this event handler.
1093	Name string `json:"name,omitempty"`
1094
1095	// TargetFlow: The target flow to transition to. Format:
1096	// `projects//locations//agents//flows/`.
1097	TargetFlow string `json:"targetFlow,omitempty"`
1098
1099	// TargetPage: The target page to transition to. Format:
1100	// `projects//locations//agents//flows//pages/`.
1101	TargetPage string `json:"targetPage,omitempty"`
1102
1103	// TriggerFulfillment: The fulfillment to call when the event occurs.
1104	// Handling webhook errors with a fulfillment enabled with webhook could
1105	// cause infinite loop. It is invalid to specify such fulfillment for a
1106	// handler handling webhooks.
1107	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
1108
1109	// ForceSendFields is a list of field names (e.g. "Event") to
1110	// unconditionally include in API requests. By default, fields with
1111	// empty values are omitted from API requests. However, any non-pointer,
1112	// non-interface field appearing in ForceSendFields will be sent to the
1113	// server regardless of whether the field is empty or not. This may be
1114	// used to include empty fields in Patch requests.
1115	ForceSendFields []string `json:"-"`
1116
1117	// NullFields is a list of field names (e.g. "Event") to include in API
1118	// requests with the JSON null value. By default, fields with empty
1119	// values are omitted from API requests. However, any field with an
1120	// empty value appearing in NullFields will be sent to the server as
1121	// null. It is an error if a field in this list has a non-empty value.
1122	// This may be used to include null fields in Patch requests.
1123	NullFields []string `json:"-"`
1124}
1125
1126func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
1127	type NoMethod GoogleCloudDialogflowCxV3EventHandler
1128	raw := NoMethod(*s)
1129	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1130}
1131
1132// GoogleCloudDialogflowCxV3EventInput: Represents the event to trigger.
1133type GoogleCloudDialogflowCxV3EventInput struct {
1134	// Event: Name of the event.
1135	Event string `json:"event,omitempty"`
1136
1137	// ForceSendFields is a list of field names (e.g. "Event") to
1138	// unconditionally include in API requests. By default, fields with
1139	// empty values are omitted from API requests. However, any non-pointer,
1140	// non-interface field appearing in ForceSendFields will be sent to the
1141	// server regardless of whether the field is empty or not. This may be
1142	// used to include empty fields in Patch requests.
1143	ForceSendFields []string `json:"-"`
1144
1145	// NullFields is a list of field names (e.g. "Event") to include in API
1146	// requests with the JSON null value. By default, fields with empty
1147	// values are omitted from API requests. However, any field with an
1148	// empty value appearing in NullFields will be sent to the server as
1149	// null. It is an error if a field in this list has a non-empty value.
1150	// This may be used to include null fields in Patch requests.
1151	NullFields []string `json:"-"`
1152}
1153
1154func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
1155	type NoMethod GoogleCloudDialogflowCxV3EventInput
1156	raw := NoMethod(*s)
1157	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1158}
1159
1160// GoogleCloudDialogflowCxV3ExportAgentResponse: The response message
1161// for Agents.ExportAgent.
1162type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
1163	// AgentContent: Uncompressed raw byte content for agent.
1164	AgentContent string `json:"agentContent,omitempty"`
1165
1166	// AgentUri: The URI to a file containing the exported agent. This field
1167	// is populated only if `agent_uri` is specified in ExportAgentRequest.
1168	AgentUri string `json:"agentUri,omitempty"`
1169
1170	// ForceSendFields is a list of field names (e.g. "AgentContent") to
1171	// unconditionally include in API requests. By default, fields with
1172	// empty values are omitted from API requests. However, any non-pointer,
1173	// non-interface field appearing in ForceSendFields will be sent to the
1174	// server regardless of whether the field is empty or not. This may be
1175	// used to include empty fields in Patch requests.
1176	ForceSendFields []string `json:"-"`
1177
1178	// NullFields is a list of field names (e.g. "AgentContent") to include
1179	// in API requests with the JSON null value. By default, fields with
1180	// empty values are omitted from API requests. However, any field with
1181	// an empty value appearing in NullFields will be sent to the server as
1182	// null. It is an error if a field in this list has a non-empty value.
1183	// This may be used to include null fields in Patch requests.
1184	NullFields []string `json:"-"`
1185}
1186
1187func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
1188	type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
1189	raw := NoMethod(*s)
1190	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1191}
1192
1193// GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for
1194// Flows.ExportFlow.
1195type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
1196	// FlowContent: Uncompressed raw byte content for flow.
1197	FlowContent string `json:"flowContent,omitempty"`
1198
1199	// FlowUri: The URI to a file containing the exported flow. This field
1200	// is populated only if `flow_uri` is specified in ExportFlowRequest.
1201	FlowUri string `json:"flowUri,omitempty"`
1202
1203	// ForceSendFields is a list of field names (e.g. "FlowContent") to
1204	// unconditionally include in API requests. By default, fields with
1205	// empty values are omitted from API requests. However, any non-pointer,
1206	// non-interface field appearing in ForceSendFields will be sent to the
1207	// server regardless of whether the field is empty or not. This may be
1208	// used to include empty fields in Patch requests.
1209	ForceSendFields []string `json:"-"`
1210
1211	// NullFields is a list of field names (e.g. "FlowContent") to include
1212	// in API requests with the JSON null value. By default, fields with
1213	// empty values are omitted from API requests. However, any field with
1214	// an empty value appearing in NullFields will be sent to the server as
1215	// null. It is an error if a field in this list has a non-empty value.
1216	// This may be used to include null fields in Patch requests.
1217	NullFields []string `json:"-"`
1218}
1219
1220func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
1221	type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
1222	raw := NoMethod(*s)
1223	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1224}
1225
1226// GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned
1227// for the TestCases.ExportTestCases long running operation.
1228type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
1229}
1230
1231// GoogleCloudDialogflowCxV3ExportTestCasesResponse: The response
1232// message for TestCases.ExportTestCases.
1233type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
1234	// Content: Uncompressed raw byte content for test cases.
1235	Content string `json:"content,omitempty"`
1236
1237	// GcsUri: The URI to a file containing the exported test cases. This
1238	// field is populated only if `gcs_uri` is specified in
1239	// ExportTestCasesRequest.
1240	GcsUri string `json:"gcsUri,omitempty"`
1241
1242	// ForceSendFields is a list of field names (e.g. "Content") to
1243	// unconditionally include in API requests. By default, fields with
1244	// empty values are omitted from API requests. However, any non-pointer,
1245	// non-interface field appearing in ForceSendFields will be sent to the
1246	// server regardless of whether the field is empty or not. This may be
1247	// used to include empty fields in Patch requests.
1248	ForceSendFields []string `json:"-"`
1249
1250	// NullFields is a list of field names (e.g. "Content") to include in
1251	// API requests with the JSON null value. By default, fields with empty
1252	// values are omitted from API requests. However, any field with an
1253	// empty value appearing in NullFields will be sent to the server as
1254	// null. It is an error if a field in this list has a non-empty value.
1255	// This may be used to include null fields in Patch requests.
1256	NullFields []string `json:"-"`
1257}
1258
1259func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
1260	type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
1261	raw := NoMethod(*s)
1262	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1263}
1264
1265// GoogleCloudDialogflowCxV3Form: A form is a data model that groups
1266// related parameters that can be collected from the user. The process
1267// in which the agent prompts the user and collects parameter values
1268// from the user is called form filling. A form can be added to a page.
1269// When form filling is done, the filled parameters will be written to
1270// the session.
1271type GoogleCloudDialogflowCxV3Form struct {
1272	// Parameters: Parameters to collect from the user.
1273	Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
1274
1275	// ForceSendFields is a list of field names (e.g. "Parameters") to
1276	// unconditionally include in API requests. By default, fields with
1277	// empty values are omitted from API requests. However, any non-pointer,
1278	// non-interface field appearing in ForceSendFields will be sent to the
1279	// server regardless of whether the field is empty or not. This may be
1280	// used to include empty fields in Patch requests.
1281	ForceSendFields []string `json:"-"`
1282
1283	// NullFields is a list of field names (e.g. "Parameters") to include in
1284	// API requests with the JSON null value. By default, fields with empty
1285	// values are omitted from API requests. However, any field with an
1286	// empty value appearing in NullFields will be sent to the server as
1287	// null. It is an error if a field in this list has a non-empty value.
1288	// This may be used to include null fields in Patch requests.
1289	NullFields []string `json:"-"`
1290}
1291
1292func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
1293	type NoMethod GoogleCloudDialogflowCxV3Form
1294	raw := NoMethod(*s)
1295	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1296}
1297
1298// GoogleCloudDialogflowCxV3FormParameter: Represents a form parameter.
1299type GoogleCloudDialogflowCxV3FormParameter struct {
1300	// DefaultValue: The default value of an optional parameter. If the
1301	// parameter is required, the default value will be ignored.
1302	DefaultValue interface{} `json:"defaultValue,omitempty"`
1303
1304	// DisplayName: Required. The human-readable name of the parameter,
1305	// unique within the form.
1306	DisplayName string `json:"displayName,omitempty"`
1307
1308	// EntityType: Required. The entity type of the parameter. Format:
1309	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
1310	// types (for example,
1311	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
1312	// `projects//locations//agents//entityTypes/` for developer entity
1313	// types.
1314	EntityType string `json:"entityType,omitempty"`
1315
1316	// FillBehavior: Required. Defines fill behavior for the parameter.
1317	FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
1318
1319	// IsList: Indicates whether the parameter represents a list of values.
1320	IsList bool `json:"isList,omitempty"`
1321
1322	// Redact: Indicates whether the parameter content should be redacted in
1323	// log. If redaction is enabled, the parameter content will be replaced
1324	// by parameter name during logging. Note: the parameter content is
1325	// subject to redaction if either parameter level redaction or entity
1326	// type level redaction is enabled.
1327	Redact bool `json:"redact,omitempty"`
1328
1329	// Required: Indicates whether the parameter is required. Optional
1330	// parameters will not trigger prompts; however, they are filled if the
1331	// user specifies them. Required parameters must be filled before form
1332	// filling concludes.
1333	Required bool `json:"required,omitempty"`
1334
1335	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
1336	// unconditionally include in API requests. By default, fields with
1337	// empty values are omitted from API requests. However, any non-pointer,
1338	// non-interface field appearing in ForceSendFields will be sent to the
1339	// server regardless of whether the field is empty or not. This may be
1340	// used to include empty fields in Patch requests.
1341	ForceSendFields []string `json:"-"`
1342
1343	// NullFields is a list of field names (e.g. "DefaultValue") to include
1344	// in API requests with the JSON null value. By default, fields with
1345	// empty values are omitted from API requests. However, any field with
1346	// an empty value appearing in NullFields will be sent to the server as
1347	// null. It is an error if a field in this list has a non-empty value.
1348	// This may be used to include null fields in Patch requests.
1349	NullFields []string `json:"-"`
1350}
1351
1352func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
1353	type NoMethod GoogleCloudDialogflowCxV3FormParameter
1354	raw := NoMethod(*s)
1355	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1356}
1357
1358// GoogleCloudDialogflowCxV3FormParameterFillBehavior: Configuration for
1359// how the filling of a parameter should be handled.
1360type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
1361	// InitialPromptFulfillment: Required. The fulfillment to provide the
1362	// initial prompt that the agent can present to the user in order to
1363	// fill the parameter.
1364	InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
1365
1366	// RepromptEventHandlers: The handlers for parameter-level events, used
1367	// to provide reprompt for the parameter or transition to a different
1368	// page/flow. The supported events are: * `sys.no-match-`, where N can
1369	// be from 1 to 6 * `sys.no-match-default` * `sys.no-input-`, where N
1370	// can be from 1 to 6 * `sys.no-input-default` * `sys.invalid-parameter`
1371	// `initial_prompt_fulfillment` provides the first prompt for the
1372	// parameter. If the user's response does not fill the parameter, a
1373	// no-match/no-input event will be triggered, and the fulfillment
1374	// associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
1375	// defined) will be called to provide a prompt. The
1376	// `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond
1377	// to the next no-match/no-input event, and so on. A
1378	// `sys.no-match-default` or `sys.no-input-default` handler will be used
1379	// to handle all following no-match/no-input events after all numbered
1380	// no-match/no-input handlers for the parameter are consumed. A
1381	// `sys.invalid-parameter` handler can be defined to handle the case
1382	// where the parameter values have been `invalidated` by webhook. For
1383	// example, if the user's response fill the parameter, however the
1384	// parameter was invalidated by webhook, the fulfillment associated with
1385	// the `sys.invalid-parameter` handler (if defined) will be called to
1386	// provide a prompt. If the event handler for the corresponding event
1387	// can't be found on the parameter, `initial_prompt_fulfillment` will be
1388	// re-prompted.
1389	RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
1390
1391	// ForceSendFields is a list of field names (e.g.
1392	// "InitialPromptFulfillment") to unconditionally include in API
1393	// requests. By default, fields with empty values are omitted from API
1394	// requests. However, any non-pointer, non-interface field appearing in
1395	// ForceSendFields will be sent to the server regardless of whether the
1396	// field is empty or not. This may be used to include empty fields in
1397	// Patch requests.
1398	ForceSendFields []string `json:"-"`
1399
1400	// NullFields is a list of field names (e.g. "InitialPromptFulfillment")
1401	// to include in API requests with the JSON null value. By default,
1402	// fields with empty values are omitted from API requests. However, any
1403	// field with an empty value appearing in NullFields will be sent to the
1404	// server as null. It is an error if a field in this list has a
1405	// non-empty value. This may be used to include null fields in Patch
1406	// requests.
1407	NullFields []string `json:"-"`
1408}
1409
1410func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
1411	type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
1412	raw := NoMethod(*s)
1413	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1414}
1415
1416// GoogleCloudDialogflowCxV3Fulfillment: A fulfillment can do one or
1417// more of the following actions at the same time: * Generate rich
1418// message responses. * Set parameter values. * Call the webhook.
1419// Fulfillments can be called at various stages in the Page or Form
1420// lifecycle. For example, when a DetectIntentRequest drives a session
1421// to enter a new page, the page's entry fulfillment can add a static
1422// response to the QueryResult in the returning DetectIntentResponse,
1423// call the webhook (for example, to load user data from a database), or
1424// both.
1425type GoogleCloudDialogflowCxV3Fulfillment struct {
1426	// ConditionalCases: Conditional cases for this fulfillment.
1427	ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
1428
1429	// Messages: The list of rich message responses to present to the user.
1430	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
1431
1432	// SetParameterActions: Set parameter values before executing the
1433	// webhook.
1434	SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
1435
1436	// Tag: The tag used by the webhook to identify which fulfillment is
1437	// being called. This field is required if `webhook` is specified.
1438	Tag string `json:"tag,omitempty"`
1439
1440	// Webhook: The webhook to call. Format:
1441	// `projects//locations//agents//webhooks/`.
1442	Webhook string `json:"webhook,omitempty"`
1443
1444	// ForceSendFields is a list of field names (e.g. "ConditionalCases") to
1445	// unconditionally include in API requests. By default, fields with
1446	// empty values are omitted from API requests. However, any non-pointer,
1447	// non-interface field appearing in ForceSendFields will be sent to the
1448	// server regardless of whether the field is empty or not. This may be
1449	// used to include empty fields in Patch requests.
1450	ForceSendFields []string `json:"-"`
1451
1452	// NullFields is a list of field names (e.g. "ConditionalCases") to
1453	// include in API requests with the JSON null value. By default, fields
1454	// with empty values are omitted from API requests. However, any field
1455	// with an empty value appearing in NullFields will be sent to the
1456	// server as null. It is an error if a field in this list has a
1457	// non-empty value. This may be used to include null fields in Patch
1458	// requests.
1459	NullFields []string `json:"-"`
1460}
1461
1462func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
1463	type NoMethod GoogleCloudDialogflowCxV3Fulfillment
1464	raw := NoMethod(*s)
1465	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1466}
1467
1468// GoogleCloudDialogflowCxV3FulfillmentConditionalCases: A list of
1469// cascading if-else conditions. Cases are mutually exclusive. The first
1470// one with a matching condition is selected, all the rest ignored.
1471type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
1472	// Cases: A list of cascading if-else conditions.
1473	Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
1474
1475	// ForceSendFields is a list of field names (e.g. "Cases") to
1476	// unconditionally include in API requests. By default, fields with
1477	// empty values are omitted from API requests. However, any non-pointer,
1478	// non-interface field appearing in ForceSendFields will be sent to the
1479	// server regardless of whether the field is empty or not. This may be
1480	// used to include empty fields in Patch requests.
1481	ForceSendFields []string `json:"-"`
1482
1483	// NullFields is a list of field names (e.g. "Cases") to include in API
1484	// requests with the JSON null value. By default, fields with empty
1485	// values are omitted from API requests. However, any field with an
1486	// empty value appearing in NullFields will be sent to the server as
1487	// null. It is an error if a field in this list has a non-empty value.
1488	// This may be used to include null fields in Patch requests.
1489	NullFields []string `json:"-"`
1490}
1491
1492func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
1493	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
1494	raw := NoMethod(*s)
1495	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1496}
1497
1498// GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase: Each case
1499// has a Boolean condition. When it is evaluated to be True, the
1500// corresponding messages will be selected and evaluated recursively.
1501type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
1502	// CaseContent: A list of case content.
1503	CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
1504
1505	// Condition: The condition to activate and select this case. Empty
1506	// means the condition is always true. The condition is evaluated
1507	// against form parameters or session parameters. See the conditions
1508	// reference
1509	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1510	Condition string `json:"condition,omitempty"`
1511
1512	// ForceSendFields is a list of field names (e.g. "CaseContent") to
1513	// unconditionally include in API requests. By default, fields with
1514	// empty values are omitted from API requests. However, any non-pointer,
1515	// non-interface field appearing in ForceSendFields will be sent to the
1516	// server regardless of whether the field is empty or not. This may be
1517	// used to include empty fields in Patch requests.
1518	ForceSendFields []string `json:"-"`
1519
1520	// NullFields is a list of field names (e.g. "CaseContent") to include
1521	// in API requests with the JSON null value. By default, fields with
1522	// empty values are omitted from API requests. However, any field with
1523	// an empty value appearing in NullFields will be sent to the server as
1524	// null. It is an error if a field in this list has a non-empty value.
1525	// This may be used to include null fields in Patch requests.
1526	NullFields []string `json:"-"`
1527}
1528
1529func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
1530	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
1531	raw := NoMethod(*s)
1532	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1533}
1534
1535// GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent:
1536// The list of messages or conditional cases to activate for this case.
1537type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
1538	// AdditionalCases: Additional cases to be evaluated.
1539	AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
1540
1541	// Message: Returned message.
1542	Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
1543
1544	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
1545	// unconditionally include in API requests. By default, fields with
1546	// empty values are omitted from API requests. However, any non-pointer,
1547	// non-interface field appearing in ForceSendFields will be sent to the
1548	// server regardless of whether the field is empty or not. This may be
1549	// used to include empty fields in Patch requests.
1550	ForceSendFields []string `json:"-"`
1551
1552	// NullFields is a list of field names (e.g. "AdditionalCases") to
1553	// include in API requests with the JSON null value. By default, fields
1554	// with empty values are omitted from API requests. However, any field
1555	// with an empty value appearing in NullFields will be sent to the
1556	// server as null. It is an error if a field in this list has a
1557	// non-empty value. This may be used to include null fields in Patch
1558	// requests.
1559	NullFields []string `json:"-"`
1560}
1561
1562func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
1563	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
1564	raw := NoMethod(*s)
1565	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1566}
1567
1568// GoogleCloudDialogflowCxV3FulfillmentSetParameterAction: Setting a
1569// parameter value.
1570type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
1571	// Parameter: Display name of the parameter.
1572	Parameter string `json:"parameter,omitempty"`
1573
1574	// Value: The new value of the parameter. A null value clears the
1575	// parameter.
1576	Value interface{} `json:"value,omitempty"`
1577
1578	// ForceSendFields is a list of field names (e.g. "Parameter") to
1579	// unconditionally include in API requests. By default, fields with
1580	// empty values are omitted from API requests. However, any non-pointer,
1581	// non-interface field appearing in ForceSendFields will be sent to the
1582	// server regardless of whether the field is empty or not. This may be
1583	// used to include empty fields in Patch requests.
1584	ForceSendFields []string `json:"-"`
1585
1586	// NullFields is a list of field names (e.g. "Parameter") to include in
1587	// API requests with the JSON null value. By default, fields with empty
1588	// values are omitted from API requests. However, any field with an
1589	// empty value appearing in NullFields will be sent to the server as
1590	// null. It is an error if a field in this list has a non-empty value.
1591	// This may be used to include null fields in Patch requests.
1592	NullFields []string `json:"-"`
1593}
1594
1595func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
1596	type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
1597	raw := NoMethod(*s)
1598	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1599}
1600
1601// GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata: Metadata
1602// in google::longrunning::Operation for Knowledge operations.
1603type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
1604	// State: Required. Output only. The current state of this operation.
1605	//
1606	// Possible values:
1607	//   "STATE_UNSPECIFIED" - State unspecified.
1608	//   "PENDING" - The operation has been created.
1609	//   "RUNNING" - The operation is currently running.
1610	//   "DONE" - The operation is done, either cancelled or completed.
1611	State string `json:"state,omitempty"`
1612
1613	// ForceSendFields is a list of field names (e.g. "State") to
1614	// unconditionally include in API requests. By default, fields with
1615	// empty values are omitted from API requests. However, any non-pointer,
1616	// non-interface field appearing in ForceSendFields will be sent to the
1617	// server regardless of whether the field is empty or not. This may be
1618	// used to include empty fields in Patch requests.
1619	ForceSendFields []string `json:"-"`
1620
1621	// NullFields is a list of field names (e.g. "State") to include in API
1622	// requests with the JSON null value. By default, fields with empty
1623	// values are omitted from API requests. However, any field with an
1624	// empty value appearing in NullFields will be sent to the server as
1625	// null. It is an error if a field in this list has a non-empty value.
1626	// This may be used to include null fields in Patch requests.
1627	NullFields []string `json:"-"`
1628}
1629
1630func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
1631	type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
1632	raw := NoMethod(*s)
1633	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1634}
1635
1636// GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata: Metadata
1637// for ImportDocuments operation.
1638type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
1639	// GenericMetadata: The generic information of the operation.
1640	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1641
1642	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
1643	// unconditionally include in API requests. By default, fields with
1644	// empty values are omitted from API requests. However, any non-pointer,
1645	// non-interface field appearing in ForceSendFields will be sent to the
1646	// server regardless of whether the field is empty or not. This may be
1647	// used to include empty fields in Patch requests.
1648	ForceSendFields []string `json:"-"`
1649
1650	// NullFields is a list of field names (e.g. "GenericMetadata") to
1651	// include in API requests with the JSON null value. By default, fields
1652	// with empty values are omitted from API requests. However, any field
1653	// with an empty value appearing in NullFields will be sent to the
1654	// server as null. It is an error if a field in this list has a
1655	// non-empty value. This may be used to include null fields in Patch
1656	// requests.
1657	NullFields []string `json:"-"`
1658}
1659
1660func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
1661	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
1662	raw := NoMethod(*s)
1663	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1664}
1665
1666// GoogleCloudDialogflowCxV3ImportDocumentsResponse: Response message
1667// for Documents.ImportDocuments.
1668type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
1669	// Warnings: Includes details about skipped documents or any other
1670	// warnings.
1671	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
1672
1673	// ForceSendFields is a list of field names (e.g. "Warnings") to
1674	// unconditionally include in API requests. By default, fields with
1675	// empty values are omitted from API requests. However, any non-pointer,
1676	// non-interface field appearing in ForceSendFields will be sent to the
1677	// server regardless of whether the field is empty or not. This may be
1678	// used to include empty fields in Patch requests.
1679	ForceSendFields []string `json:"-"`
1680
1681	// NullFields is a list of field names (e.g. "Warnings") to include in
1682	// API requests with the JSON null value. By default, fields with empty
1683	// values are omitted from API requests. However, any field with an
1684	// empty value appearing in NullFields will be sent to the server as
1685	// null. It is an error if a field in this list has a non-empty value.
1686	// This may be used to include null fields in Patch requests.
1687	NullFields []string `json:"-"`
1688}
1689
1690func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
1691	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
1692	raw := NoMethod(*s)
1693	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1694}
1695
1696// GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for
1697// Flows.ImportFlow.
1698type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
1699	// Flow: The unique identifier of the new flow. Format:
1700	// `projects//locations//agents//flows/`.
1701	Flow string `json:"flow,omitempty"`
1702
1703	// ForceSendFields is a list of field names (e.g. "Flow") to
1704	// unconditionally include in API requests. By default, fields with
1705	// empty values are omitted from API requests. However, any non-pointer,
1706	// non-interface field appearing in ForceSendFields will be sent to the
1707	// server regardless of whether the field is empty or not. This may be
1708	// used to include empty fields in Patch requests.
1709	ForceSendFields []string `json:"-"`
1710
1711	// NullFields is a list of field names (e.g. "Flow") to include in API
1712	// requests with the JSON null value. By default, fields with empty
1713	// values are omitted from API requests. However, any field with an
1714	// empty value appearing in NullFields will be sent to the server as
1715	// null. It is an error if a field in this list has a non-empty value.
1716	// This may be used to include null fields in Patch requests.
1717	NullFields []string `json:"-"`
1718}
1719
1720func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
1721	type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
1722	raw := NoMethod(*s)
1723	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1724}
1725
1726// GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned
1727// for the TestCases.ImportTestCases long running operation.
1728type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
1729	// Errors: Errors for failed test cases.
1730	Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
1731
1732	// ForceSendFields is a list of field names (e.g. "Errors") to
1733	// unconditionally include in API requests. By default, fields with
1734	// empty values are omitted from API requests. However, any non-pointer,
1735	// non-interface field appearing in ForceSendFields will be sent to the
1736	// server regardless of whether the field is empty or not. This may be
1737	// used to include empty fields in Patch requests.
1738	ForceSendFields []string `json:"-"`
1739
1740	// NullFields is a list of field names (e.g. "Errors") to include in API
1741	// requests with the JSON null value. By default, fields with empty
1742	// values are omitted from API requests. However, any field with an
1743	// empty value appearing in NullFields will be sent to the server as
1744	// null. It is an error if a field in this list has a non-empty value.
1745	// This may be used to include null fields in Patch requests.
1746	NullFields []string `json:"-"`
1747}
1748
1749func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
1750	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
1751	raw := NoMethod(*s)
1752	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1753}
1754
1755// GoogleCloudDialogflowCxV3ImportTestCasesResponse: The response
1756// message for TestCases.ImportTestCases.
1757type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
1758	// Names: The unique identifiers of the new test cases. Format:
1759	// `projects//locations//agents//testCases/`.
1760	Names []string `json:"names,omitempty"`
1761
1762	// ForceSendFields is a list of field names (e.g. "Names") to
1763	// unconditionally include in API requests. By default, fields with
1764	// empty values are omitted from API requests. However, any non-pointer,
1765	// non-interface field appearing in ForceSendFields will be sent to the
1766	// server regardless of whether the field is empty or not. This may be
1767	// used to include empty fields in Patch requests.
1768	ForceSendFields []string `json:"-"`
1769
1770	// NullFields is a list of field names (e.g. "Names") to include in API
1771	// requests with the JSON null value. By default, fields with empty
1772	// values are omitted from API requests. However, any field with an
1773	// empty value appearing in NullFields will be sent to the server as
1774	// null. It is an error if a field in this list has a non-empty value.
1775	// This may be used to include null fields in Patch requests.
1776	NullFields []string `json:"-"`
1777}
1778
1779func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
1780	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
1781	raw := NoMethod(*s)
1782	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1783}
1784
1785// GoogleCloudDialogflowCxV3InputAudioConfig: Instructs the speech
1786// recognizer on how to process the audio content.
1787type GoogleCloudDialogflowCxV3InputAudioConfig struct {
1788	// AudioEncoding: Required. Audio encoding of the audio content to
1789	// process.
1790	//
1791	// Possible values:
1792	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
1793	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
1794	// little-endian samples (Linear PCM).
1795	//   "AUDIO_ENCODING_FLAC" -
1796	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
1797	// Audio Codec) is the recommended encoding because it is lossless
1798	// (therefore recognition is not compromised) and requires only about
1799	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
1800	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
1801	// are supported.
1802	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
1803	// samples using G.711 PCMU/mu-law.
1804	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
1805	// `sample_rate_hertz` must be 8000.
1806	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
1807	// `sample_rate_hertz` must be 16000.
1808	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
1809	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
1810	// `sample_rate_hertz` must be 16000.
1811	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
1812	// encodings is not recommended, if a very low bitrate encoding is
1813	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
1814	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
1815	// a header byte in each block, as in MIME type
1816	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
1817	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
1818	// The stream is a sequence of blocks, one block per RTP packet. Each
1819	// block starts with a byte containing the length of the block, in
1820	// bytes, followed by one or more frames of Speex data, padded to an
1821	// integral number of bytes (octets) as specified in RFC 5574. In other
1822	// words, each RTP header is replaced with a single byte containing the
1823	// block length. Only Speex wideband is supported. `sample_rate_hertz`
1824	// must be 16000.
1825	AudioEncoding string `json:"audioEncoding,omitempty"`
1826
1827	// EnableWordInfo: Optional. If `true`, Dialogflow returns
1828	// SpeechWordInfo in StreamingRecognitionResult with information about
1829	// the recognized speech words, e.g. start and end time offsets. If
1830	// false or unspecified, Speech doesn't return any word-level
1831	// information.
1832	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
1833
1834	// Model: Optional. Which Speech model to select for the given request.
1835	// Select the model best suited to your domain to get best results. If a
1836	// model is not explicitly specified, then we auto-select a model based
1837	// on the parameters in the InputAudioConfig. If enhanced speech model
1838	// is enabled for the agent and an enhanced version of the specified
1839	// model for the language does not exist, then the speech is recognized
1840	// using the standard version of the specified model. Refer to Cloud
1841	// Speech API documentation
1842	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
1843	// for more details.
1844	Model string `json:"model,omitempty"`
1845
1846	// ModelVariant: Optional. Which variant of the Speech model to use.
1847	//
1848	// Possible values:
1849	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
1850	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
1851	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
1852	// model that the caller is eligible for. Please see the [Dialogflow
1853	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
1854	// to make your project eligible for enhanced models.
1855	//   "USE_STANDARD" - Use standard model variant even if an enhanced
1856	// model is available. See the [Cloud Speech
1857	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
1858	// odels) for details about enhanced models.
1859	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
1860	// variant does not exist for the given model and request language,
1861	// Dialogflow falls back to the standard variant. The [Cloud Speech
1862	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
1863	// odels) describes which models have enhanced variants. * If the API
1864	// caller isn't eligible for enhanced models, Dialogflow returns an
1865	// error. Please see the [Dialogflow
1866	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
1867	// to make your project eligible.
1868	ModelVariant string `json:"modelVariant,omitempty"`
1869
1870	// PhraseHints: Optional. A list of strings containing words and phrases
1871	// that the speech recognizer should recognize with higher likelihood.
1872	// See the Cloud Speech documentation
1873	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
1874	// for more details.
1875	PhraseHints []string `json:"phraseHints,omitempty"`
1876
1877	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in
1878	// the query. Refer to Cloud Speech API documentation
1879	// (https://cloud.google.com/speech-to-text/docs/basics) for more
1880	// details.
1881	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
1882
1883	// SingleUtterance: Optional. If `false` (default), recognition does not
1884	// cease until the client closes the stream. If `true`, the recognizer
1885	// will detect a single spoken utterance in input audio. Recognition
1886	// ceases when it detects the audio's voice has stopped or paused. In
1887	// this case, once a detected intent is received, the client should
1888	// close the stream and start a new request with a new stream as needed.
1889	// Note: This setting is relevant only for streaming methods.
1890	SingleUtterance bool `json:"singleUtterance,omitempty"`
1891
1892	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
1893	// unconditionally include in API requests. By default, fields with
1894	// empty values are omitted from API requests. However, any non-pointer,
1895	// non-interface field appearing in ForceSendFields will be sent to the
1896	// server regardless of whether the field is empty or not. This may be
1897	// used to include empty fields in Patch requests.
1898	ForceSendFields []string `json:"-"`
1899
1900	// NullFields is a list of field names (e.g. "AudioEncoding") to include
1901	// in API requests with the JSON null value. By default, fields with
1902	// empty values are omitted from API requests. However, any field with
1903	// an empty value appearing in NullFields will be sent to the server as
1904	// null. It is an error if a field in this list has a non-empty value.
1905	// This may be used to include null fields in Patch requests.
1906	NullFields []string `json:"-"`
1907}
1908
1909func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
1910	type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
1911	raw := NoMethod(*s)
1912	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1913}
1914
1915// GoogleCloudDialogflowCxV3Intent: An intent represents a user's intent
1916// to interact with a conversational agent. You can provide information
1917// for the Dialogflow API to use to match user input to an intent by
1918// adding training phrases (i.e., examples of user input) to your
1919// intent.
1920type GoogleCloudDialogflowCxV3Intent struct {
1921	// Description: Human readable description for better understanding an
1922	// intent like its scope, content, result etc. Maximum character limit:
1923	// 140 characters.
1924	Description string `json:"description,omitempty"`
1925
1926	// DisplayName: Required. The human-readable name of the intent, unique
1927	// within the agent.
1928	DisplayName string `json:"displayName,omitempty"`
1929
1930	// IsFallback: Indicates whether this is a fallback intent. Currently
1931	// only default fallback intent is allowed in the agent, which is added
1932	// upon agent creation. Adding training phrases to fallback intent is
1933	// useful in the case of requests that are mistakenly matched, since
1934	// training phrases assigned to fallback intents act as negative
1935	// examples that triggers no-match event.
1936	IsFallback bool `json:"isFallback,omitempty"`
1937
1938	// Labels: The key/value metadata to label an intent. Labels can contain
1939	// lowercase letters, digits and the symbols '-' and '_'. International
1940	// characters are allowed, including letters from unicase alphabets.
1941	// Keys must start with a letter. Keys and values can be no longer than
1942	// 63 characters and no more than 128 bytes. Prefix "sys." is reserved
1943	// for Dialogflow defined labels. Currently allowed Dialogflow defined
1944	// labels include: * sys.head * sys.contextual The above labels do not
1945	// require value. "sys.head" means the intent is a head intent.
1946	// "sys.contextual" means the intent is a contextual intent.
1947	Labels map[string]string `json:"labels,omitempty"`
1948
1949	// Name: The unique identifier of the intent. Required for the
1950	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
1951	// automatically. Format: `projects//locations//agents//intents/`.
1952	Name string `json:"name,omitempty"`
1953
1954	// Parameters: The collection of parameters associated with the intent.
1955	Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
1956
1957	// Priority: The priority of this intent. Higher numbers represent
1958	// higher priorities. - If the supplied value is unspecified or 0, the
1959	// service translates the value to 500,000, which corresponds to the
1960	// `Normal` priority in the console. - If the supplied value is
1961	// negative, the intent is ignored in runtime detect intent requests.
1962	Priority int64 `json:"priority,omitempty"`
1963
1964	// TrainingPhrases: The collection of training phrases the agent is
1965	// trained on to identify the intent.
1966	TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
1967
1968	// ForceSendFields is a list of field names (e.g. "Description") to
1969	// unconditionally include in API requests. By default, fields with
1970	// empty values are omitted from API requests. However, any non-pointer,
1971	// non-interface field appearing in ForceSendFields will be sent to the
1972	// server regardless of whether the field is empty or not. This may be
1973	// used to include empty fields in Patch requests.
1974	ForceSendFields []string `json:"-"`
1975
1976	// NullFields is a list of field names (e.g. "Description") to include
1977	// in API requests with the JSON null value. By default, fields with
1978	// empty values are omitted from API requests. However, any field with
1979	// an empty value appearing in NullFields will be sent to the server as
1980	// null. It is an error if a field in this list has a non-empty value.
1981	// This may be used to include null fields in Patch requests.
1982	NullFields []string `json:"-"`
1983}
1984
1985func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
1986	type NoMethod GoogleCloudDialogflowCxV3Intent
1987	raw := NoMethod(*s)
1988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1989}
1990
1991// GoogleCloudDialogflowCxV3IntentInput: Represents the intent to
1992// trigger programmatically rather than as a result of natural language
1993// processing.
1994type GoogleCloudDialogflowCxV3IntentInput struct {
1995	// Intent: Required. The unique identifier of the intent. Format:
1996	// `projects//locations//agents//intents/`.
1997	Intent string `json:"intent,omitempty"`
1998
1999	// ForceSendFields is a list of field names (e.g. "Intent") to
2000	// unconditionally include in API requests. By default, fields with
2001	// empty values are omitted from API requests. However, any non-pointer,
2002	// non-interface field appearing in ForceSendFields will be sent to the
2003	// server regardless of whether the field is empty or not. This may be
2004	// used to include empty fields in Patch requests.
2005	ForceSendFields []string `json:"-"`
2006
2007	// NullFields is a list of field names (e.g. "Intent") to include in API
2008	// requests with the JSON null value. By default, fields with empty
2009	// values are omitted from API requests. However, any field with an
2010	// empty value appearing in NullFields will be sent to the server as
2011	// null. It is an error if a field in this list has a non-empty value.
2012	// This may be used to include null fields in Patch requests.
2013	NullFields []string `json:"-"`
2014}
2015
2016func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
2017	type NoMethod GoogleCloudDialogflowCxV3IntentInput
2018	raw := NoMethod(*s)
2019	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2020}
2021
2022// GoogleCloudDialogflowCxV3IntentParameter: Represents an intent
2023// parameter.
2024type GoogleCloudDialogflowCxV3IntentParameter struct {
2025	// EntityType: Required. The entity type of the parameter. Format:
2026	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
2027	// types (for example,
2028	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
2029	// `projects//locations//agents//entityTypes/` for developer entity
2030	// types.
2031	EntityType string `json:"entityType,omitempty"`
2032
2033	// Id: Required. The unique identifier of the parameter. This field is
2034	// used by training phrases to annotate their parts.
2035	Id string `json:"id,omitempty"`
2036
2037	// IsList: Indicates whether the parameter represents a list of values.
2038	IsList bool `json:"isList,omitempty"`
2039
2040	// Redact: Indicates whether the parameter content should be redacted in
2041	// log. If redaction is enabled, the parameter content will be replaced
2042	// by parameter name during logging. Note: the parameter content is
2043	// subject to redaction if either parameter level redaction or entity
2044	// type level redaction is enabled.
2045	Redact bool `json:"redact,omitempty"`
2046
2047	// ForceSendFields is a list of field names (e.g. "EntityType") to
2048	// unconditionally include in API requests. By default, fields with
2049	// empty values are omitted from API requests. However, any non-pointer,
2050	// non-interface field appearing in ForceSendFields will be sent to the
2051	// server regardless of whether the field is empty or not. This may be
2052	// used to include empty fields in Patch requests.
2053	ForceSendFields []string `json:"-"`
2054
2055	// NullFields is a list of field names (e.g. "EntityType") to include in
2056	// API requests with the JSON null value. By default, fields with empty
2057	// values are omitted from API requests. However, any field with an
2058	// empty value appearing in NullFields will be sent to the server as
2059	// null. It is an error if a field in this list has a non-empty value.
2060	// This may be used to include null fields in Patch requests.
2061	NullFields []string `json:"-"`
2062}
2063
2064func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
2065	type NoMethod GoogleCloudDialogflowCxV3IntentParameter
2066	raw := NoMethod(*s)
2067	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2068}
2069
2070// GoogleCloudDialogflowCxV3IntentTrainingPhrase: Represents an example
2071// that the agent is trained on to identify the intent.
2072type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
2073	// Id: Output only. The unique identifier of the training phrase.
2074	Id string `json:"id,omitempty"`
2075
2076	// Parts: Required. The ordered list of training phrase parts. The parts
2077	// are concatenated in order to form the training phrase. Note: The API
2078	// does not automatically annotate training phrases like the Dialogflow
2079	// Console does. Note: Do not forget to include whitespace at part
2080	// boundaries, so the training phrase is well formatted when the parts
2081	// are concatenated. If the training phrase does not need to be
2082	// annotated with parameters, you just need a single part with only the
2083	// Part.text field set. If you want to annotate the training phrase, you
2084	// must create multiple parts, where the fields of each part are
2085	// populated in one of two ways: - `Part.text` is set to a part of the
2086	// phrase that has no parameters. - `Part.text` is set to a part of the
2087	// phrase that you want to annotate, and the `parameter_id` field is
2088	// set.
2089	Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
2090
2091	// RepeatCount: Indicates how many times this example was added to the
2092	// intent.
2093	RepeatCount int64 `json:"repeatCount,omitempty"`
2094
2095	// ForceSendFields is a list of field names (e.g. "Id") to
2096	// unconditionally include in API requests. By default, fields with
2097	// empty values are omitted from API requests. However, any non-pointer,
2098	// non-interface field appearing in ForceSendFields will be sent to the
2099	// server regardless of whether the field is empty or not. This may be
2100	// used to include empty fields in Patch requests.
2101	ForceSendFields []string `json:"-"`
2102
2103	// NullFields is a list of field names (e.g. "Id") to include in API
2104	// requests with the JSON null value. By default, fields with empty
2105	// values are omitted from API requests. However, any field with an
2106	// empty value appearing in NullFields will be sent to the server as
2107	// null. It is an error if a field in this list has a non-empty value.
2108	// This may be used to include null fields in Patch requests.
2109	NullFields []string `json:"-"`
2110}
2111
2112func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
2113	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
2114	raw := NoMethod(*s)
2115	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2116}
2117
2118// GoogleCloudDialogflowCxV3IntentTrainingPhrasePart: Represents a part
2119// of a training phrase.
2120type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
2121	// ParameterId: The parameter used to annotate this part of the training
2122	// phrase. This field is required for annotated parts of the training
2123	// phrase.
2124	ParameterId string `json:"parameterId,omitempty"`
2125
2126	// Text: Required. The text for this part.
2127	Text string `json:"text,omitempty"`
2128
2129	// ForceSendFields is a list of field names (e.g. "ParameterId") to
2130	// unconditionally include in API requests. By default, fields with
2131	// empty values are omitted from API requests. However, any non-pointer,
2132	// non-interface field appearing in ForceSendFields will be sent to the
2133	// server regardless of whether the field is empty or not. This may be
2134	// used to include empty fields in Patch requests.
2135	ForceSendFields []string `json:"-"`
2136
2137	// NullFields is a list of field names (e.g. "ParameterId") to include
2138	// in API requests with the JSON null value. By default, fields with
2139	// empty values are omitted from API requests. However, any field with
2140	// an empty value appearing in NullFields will be sent to the server as
2141	// null. It is an error if a field in this list has a non-empty value.
2142	// This may be used to include null fields in Patch requests.
2143	NullFields []string `json:"-"`
2144}
2145
2146func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
2147	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
2148	raw := NoMethod(*s)
2149	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2150}
2151
2152// GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session)
2153// can be described and visualized as a state machine. The states of a
2154// CX session are represented by pages. For each flow, you define many
2155// pages, where your combined pages can handle a complete conversation
2156// on the topics the flow is designed for. At any given moment, exactly
2157// one page is the current page, the current page is considered active,
2158// and the flow associated with that page is considered active. Every
2159// flow has a special start page. When a flow initially becomes active,
2160// the start page page becomes the current page. For each conversational
2161// turn, the current page will either stay the same or transition to
2162// another page. You configure each page to collect information from the
2163// end-user that is relevant for the conversational state represented by
2164// the page. For more information, see the Page guide
2165// (https://cloud.google.com/dialogflow/cx/docs/concept/page).
2166type GoogleCloudDialogflowCxV3Page struct {
2167	// DisplayName: Required. The human-readable name of the page, unique
2168	// within the agent.
2169	DisplayName string `json:"displayName,omitempty"`
2170
2171	// EntryFulfillment: The fulfillment to call when the session is
2172	// entering the page.
2173	EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
2174
2175	// EventHandlers: Handlers associated with the page to handle events
2176	// such as webhook errors, no match or no input.
2177	EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
2178
2179	// Form: The form associated with the page, used for collecting
2180	// parameters relevant to the page.
2181	Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
2182
2183	// Name: The unique identifier of the page. Required for the
2184	// Pages.UpdatePage method. Pages.CreatePage populates the name
2185	// automatically. Format: `projects//locations//agents//flows//pages/`.
2186	Name string `json:"name,omitempty"`
2187
2188	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups`
2189	// associated with the page. Transition route groups must be unique
2190	// within a page. * If multiple transition routes within a page scope
2191	// refer to the same intent, then the precedence order is: page's
2192	// transition route -> page's transition route group -> flow's
2193	// transition routes. * If multiple transition route groups within a
2194	// page contain the same intent, then the first group in the ordered
2195	// list takes precedence.
2196	// Format:`projects//locations//agents//flows//transitionRouteGroups/`.
2197	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
2198
2199	// TransitionRoutes: A list of transitions for the transition rules of
2200	// this page. They route the conversation to another page in the same
2201	// flow, or another flow. When we are in a certain page, the
2202	// TransitionRoutes are evalauted in the following order: *
2203	// TransitionRoutes defined in the page with intent specified. *
2204	// TransitionRoutes defined in the transition route groups with intent
2205	// specified. * TransitionRoutes defined in flow with intent specified.
2206	// * TransitionRoutes defined in the transition route groups with intent
2207	// specified. * TransitionRoutes defined in the page with only condition
2208	// specified. * TransitionRoutes defined in the transition route groups
2209	// with only condition specified.
2210	TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
2211
2212	// ForceSendFields is a list of field names (e.g. "DisplayName") to
2213	// unconditionally include in API requests. By default, fields with
2214	// empty values are omitted from API requests. However, any non-pointer,
2215	// non-interface field appearing in ForceSendFields will be sent to the
2216	// server regardless of whether the field is empty or not. This may be
2217	// used to include empty fields in Patch requests.
2218	ForceSendFields []string `json:"-"`
2219
2220	// NullFields is a list of field names (e.g. "DisplayName") to include
2221	// in API requests with the JSON null value. By default, fields with
2222	// empty values are omitted from API requests. However, any field with
2223	// an empty value appearing in NullFields will be sent to the server as
2224	// null. It is an error if a field in this list has a non-empty value.
2225	// This may be used to include null fields in Patch requests.
2226	NullFields []string `json:"-"`
2227}
2228
2229func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
2230	type NoMethod GoogleCloudDialogflowCxV3Page
2231	raw := NoMethod(*s)
2232	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2233}
2234
2235// GoogleCloudDialogflowCxV3PageInfo: Represents page information
2236// communicated to and from the webhook.
2237type GoogleCloudDialogflowCxV3PageInfo struct {
2238	// CurrentPage: Always present for WebhookRequest. Ignored for
2239	// WebhookResponse. The unique identifier of the current page. Format:
2240	// `projects//locations//agents//flows//pages/`.
2241	CurrentPage string `json:"currentPage,omitempty"`
2242
2243	// FormInfo: Optional for both WebhookRequest and WebhookResponse.
2244	// Information about the form.
2245	FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
2246
2247	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
2248	// unconditionally include in API requests. By default, fields with
2249	// empty values are omitted from API requests. However, any non-pointer,
2250	// non-interface field appearing in ForceSendFields will be sent to the
2251	// server regardless of whether the field is empty or not. This may be
2252	// used to include empty fields in Patch requests.
2253	ForceSendFields []string `json:"-"`
2254
2255	// NullFields is a list of field names (e.g. "CurrentPage") to include
2256	// in API requests with the JSON null value. By default, fields with
2257	// empty values are omitted from API requests. However, any field with
2258	// an empty value appearing in NullFields will be sent to the server as
2259	// null. It is an error if a field in this list has a non-empty value.
2260	// This may be used to include null fields in Patch requests.
2261	NullFields []string `json:"-"`
2262}
2263
2264func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
2265	type NoMethod GoogleCloudDialogflowCxV3PageInfo
2266	raw := NoMethod(*s)
2267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2268}
2269
2270// GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form
2271// information.
2272type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
2273	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse.
2274	// The parameters contained in the form. Note that the webhook cannot
2275	// add or remove any form parameter.
2276	ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
2277
2278	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
2279	// unconditionally include in API requests. By default, fields with
2280	// empty values are omitted from API requests. However, any non-pointer,
2281	// non-interface field appearing in ForceSendFields will be sent to the
2282	// server regardless of whether the field is empty or not. This may be
2283	// used to include empty fields in Patch requests.
2284	ForceSendFields []string `json:"-"`
2285
2286	// NullFields is a list of field names (e.g. "ParameterInfo") to include
2287	// in API requests with the JSON null value. By default, fields with
2288	// empty values are omitted from API requests. However, any field with
2289	// an empty value appearing in NullFields will be sent to the server as
2290	// null. It is an error if a field in this list has a non-empty value.
2291	// This may be used to include null fields in Patch requests.
2292	NullFields []string `json:"-"`
2293}
2294
2295func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
2296	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
2297	raw := NoMethod(*s)
2298	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2299}
2300
2301// GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents
2302// parameter information.
2303type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
2304	// DisplayName: Always present for WebhookRequest. Required for
2305	// WebhookResponse. The human-readable name of the parameter, unique
2306	// within the form. This field cannot be modified by the webhook.
2307	DisplayName string `json:"displayName,omitempty"`
2308
2309	// JustCollected: Optional for WebhookRequest. Ignored for
2310	// WebhookResponse. Indicates if the parameter value was just collected
2311	// on the last conversation turn.
2312	JustCollected bool `json:"justCollected,omitempty"`
2313
2314	// Required: Optional for both WebhookRequest and WebhookResponse.
2315	// Indicates whether the parameter is required. Optional parameters will
2316	// not trigger prompts; however, they are filled if the user specifies
2317	// them. Required parameters must be filled before form filling
2318	// concludes.
2319	Required bool `json:"required,omitempty"`
2320
2321	// State: Always present for WebhookRequest. Required for
2322	// WebhookResponse. The state of the parameter. This field can be set to
2323	// INVALID by the webhook to invalidate the parameter; other values set
2324	// by the webhook will be ignored.
2325	//
2326	// Possible values:
2327	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be
2328	// never used.
2329	//   "EMPTY" - Indicates that the parameter does not have a value.
2330	//   "INVALID" - Indicates that the parameter value is invalid. This
2331	// field can be used by the webhook to invalidate the parameter and ask
2332	// the server to collect it from the user again.
2333	//   "FILLED" - Indicates that the parameter has a value.
2334	State string `json:"state,omitempty"`
2335
2336	// Value: Optional for both WebhookRequest and WebhookResponse. The
2337	// value of the parameter. This field can be set by the webhook to
2338	// change the parameter value.
2339	Value interface{} `json:"value,omitempty"`
2340
2341	// ForceSendFields is a list of field names (e.g. "DisplayName") to
2342	// unconditionally include in API requests. By default, fields with
2343	// empty values are omitted from API requests. However, any non-pointer,
2344	// non-interface field appearing in ForceSendFields will be sent to the
2345	// server regardless of whether the field is empty or not. This may be
2346	// used to include empty fields in Patch requests.
2347	ForceSendFields []string `json:"-"`
2348
2349	// NullFields is a list of field names (e.g. "DisplayName") to include
2350	// in API requests with the JSON null value. By default, fields with
2351	// empty values are omitted from API requests. However, any field with
2352	// an empty value appearing in NullFields will be sent to the server as
2353	// null. It is an error if a field in this list has a non-empty value.
2354	// This may be used to include null fields in Patch requests.
2355	NullFields []string `json:"-"`
2356}
2357
2358func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
2359	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
2360	raw := NoMethod(*s)
2361	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2362}
2363
2364// GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It
2365// can contain one of: 1. A conversational query in the form of text. 2.
2366// An intent query that specifies which intent to trigger. 3. Natural
2367// language speech audio to be processed. 4. An event to be triggered.
2368type GoogleCloudDialogflowCxV3QueryInput struct {
2369	// Audio: The natural language speech audio to be processed.
2370	Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
2371
2372	// Dtmf: The DTMF event to be handled.
2373	Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
2374
2375	// Event: The event to be triggered.
2376	Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
2377
2378	// Intent: The intent to be triggered.
2379	Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
2380
2381	// LanguageCode: Required. The language of the input. See Language
2382	// Support
2383	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
2384	// a list of the currently supported language codes. Note that queries
2385	// in the same session do not necessarily need to specify the same
2386	// language.
2387	LanguageCode string `json:"languageCode,omitempty"`
2388
2389	// Text: The natural language text to be processed.
2390	Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
2391
2392	// ForceSendFields is a list of field names (e.g. "Audio") to
2393	// unconditionally include in API requests. By default, fields with
2394	// empty values are omitted from API requests. However, any non-pointer,
2395	// non-interface field appearing in ForceSendFields will be sent to the
2396	// server regardless of whether the field is empty or not. This may be
2397	// used to include empty fields in Patch requests.
2398	ForceSendFields []string `json:"-"`
2399
2400	// NullFields is a list of field names (e.g. "Audio") to include in API
2401	// requests with the JSON null value. By default, fields with empty
2402	// values are omitted from API requests. However, any field with an
2403	// empty value appearing in NullFields will be sent to the server as
2404	// null. It is an error if a field in this list has a non-empty value.
2405	// This may be used to include null fields in Patch requests.
2406	NullFields []string `json:"-"`
2407}
2408
2409func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
2410	type NoMethod GoogleCloudDialogflowCxV3QueryInput
2411	raw := NoMethod(*s)
2412	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2413}
2414
2415// GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata: Metadata
2416// for ReloadDocument operation.
2417type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
2418	// GenericMetadata: The generic information of the operation.
2419	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2420
2421	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
2422	// unconditionally include in API requests. By default, fields with
2423	// empty values are omitted from API requests. However, any non-pointer,
2424	// non-interface field appearing in ForceSendFields will be sent to the
2425	// server regardless of whether the field is empty or not. This may be
2426	// used to include empty fields in Patch requests.
2427	ForceSendFields []string `json:"-"`
2428
2429	// NullFields is a list of field names (e.g. "GenericMetadata") to
2430	// include in API requests with the JSON null value. By default, fields
2431	// with empty values are omitted from API requests. However, any field
2432	// with an empty value appearing in NullFields will be sent to the
2433	// server as null. It is an error if a field in this list has a
2434	// non-empty value. This may be used to include null fields in Patch
2435	// requests.
2436	NullFields []string `json:"-"`
2437}
2438
2439func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
2440	type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
2441	raw := NoMethod(*s)
2442	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2443}
2444
2445// GoogleCloudDialogflowCxV3ResponseMessage: Represents a response
2446// message that can be returned by a conversational agent. Response
2447// messages are also used for output audio synthesis. The approach is as
2448// follows: * If at least one OutputAudioText response is present, then
2449// all OutputAudioText responses are linearly concatenated, and the
2450// result is used for output audio synthesis. * If the OutputAudioText
2451// responses are a mixture of text and SSML, then the concatenated
2452// result is treated as SSML; otherwise, the result is treated as either
2453// text or SSML as appropriate. The agent designer should ideally use
2454// either text or SSML consistently throughout the bot design. *
2455// Otherwise, all Text responses are linearly concatenated, and the
2456// result is used for output audio synthesis. This approach allows for
2457// more sophisticated user experience scenarios, where the text
2458// displayed to the user may differ from what is heard.
2459type GoogleCloudDialogflowCxV3ResponseMessage struct {
2460	// ConversationSuccess: Indicates that the conversation succeeded.
2461	ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
2462
2463	// EndInteraction: Output only. A signal that indicates the interaction
2464	// with the Dialogflow agent has ended. This message is generated by
2465	// Dialogflow only when the conversation reaches `END_SESSION` page. It
2466	// is not supposed to be defined by the user. It's guaranteed that there
2467	// is at most one such message in each response.
2468	EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
2469
2470	// LiveAgentHandoff: Hands off conversation to a human agent.
2471	LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
2472
2473	// MixedAudio: Output only. An audio response message composed of both
2474	// the synthesized Dialogflow agent responses and responses defined via
2475	// play_audio. This message is generated by Dialogflow only and not
2476	// supposed to be defined by the user.
2477	MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
2478
2479	// OutputAudioText: A text or ssml response that is preferentially used
2480	// for TTS output audio synthesis, as described in the comment on the
2481	// ResponseMessage message.
2482	OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
2483
2484	// Payload: Returns a response containing a custom, platform-specific
2485	// payload.
2486	Payload googleapi.RawMessage `json:"payload,omitempty"`
2487
2488	// PlayAudio: Signal that the client should play an audio clip hosted at
2489	// a client-specific URI. Dialogflow uses this to construct mixed_audio.
2490	// However, Dialogflow itself does not try to read or process the URI in
2491	// any way.
2492	PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
2493
2494	// Text: Returns a text response.
2495	Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
2496
2497	// ForceSendFields is a list of field names (e.g. "ConversationSuccess")
2498	// to unconditionally include in API requests. By default, fields with
2499	// empty values are omitted from API requests. However, any non-pointer,
2500	// non-interface field appearing in ForceSendFields will be sent to the
2501	// server regardless of whether the field is empty or not. This may be
2502	// used to include empty fields in Patch requests.
2503	ForceSendFields []string `json:"-"`
2504
2505	// NullFields is a list of field names (e.g. "ConversationSuccess") to
2506	// include in API requests with the JSON null value. By default, fields
2507	// with empty values are omitted from API requests. However, any field
2508	// with an empty value appearing in NullFields will be sent to the
2509	// server as null. It is an error if a field in this list has a
2510	// non-empty value. This may be used to include null fields in Patch
2511	// requests.
2512	NullFields []string `json:"-"`
2513}
2514
2515func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
2516	type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
2517	raw := NoMethod(*s)
2518	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2519}
2520
2521// GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess:
2522// Indicates that the conversation succeeded, i.e., the bot handled the
2523// issue that the customer talked to it about. Dialogflow only uses this
2524// to determine which conversations should be counted as successful and
2525// doesn't process the metadata in this message in any way. Note that
2526// Dialogflow also considers conversations that get to the conversation
2527// end page as successful even if they don't return ConversationSuccess.
2528// You may set this, for example: * In the entry_fulfillment of a Page
2529// if entering the page indicates that the conversation succeeded. * In
2530// a webhook response when you determine that you handled the customer
2531// issue.
2532type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
2533	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on
2534	// this.
2535	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2536
2537	// ForceSendFields is a list of field names (e.g. "Metadata") to
2538	// unconditionally include in API requests. By default, fields with
2539	// empty values are omitted from API requests. However, any non-pointer,
2540	// non-interface field appearing in ForceSendFields will be sent to the
2541	// server regardless of whether the field is empty or not. This may be
2542	// used to include empty fields in Patch requests.
2543	ForceSendFields []string `json:"-"`
2544
2545	// NullFields is a list of field names (e.g. "Metadata") to include in
2546	// API requests with the JSON null value. By default, fields with empty
2547	// values are omitted from API requests. However, any field with an
2548	// empty value appearing in NullFields will be sent to the server as
2549	// null. It is an error if a field in this list has a non-empty value.
2550	// This may be used to include null fields in Patch requests.
2551	NullFields []string `json:"-"`
2552}
2553
2554func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
2555	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
2556	raw := NoMethod(*s)
2557	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2558}
2559
2560// GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates
2561// that interaction with the Dialogflow agent has ended. This message is
2562// generated by Dialogflow only and not supposed to be defined by the
2563// user.
2564type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
2565}
2566
2567// GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates
2568// that the conversation should be handed off to a live agent.
2569// Dialogflow only uses this to determine which conversations were
2570// handed off to a human agent for measurement purposes. What else to do
2571// with this signal is up to you and your handoff procedures. You may
2572// set this, for example: * In the entry_fulfillment of a Page if
2573// entering the page indicates something went extremely wrong in the
2574// conversation. * In a webhook response when you determine that the
2575// customer issue can only be handled by a human.
2576type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
2577	// Metadata: Custom metadata for your handoff procedure. Dialogflow
2578	// doesn't impose any structure on this.
2579	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2580
2581	// ForceSendFields is a list of field names (e.g. "Metadata") to
2582	// unconditionally include in API requests. By default, fields with
2583	// empty values are omitted from API requests. However, any non-pointer,
2584	// non-interface field appearing in ForceSendFields will be sent to the
2585	// server regardless of whether the field is empty or not. This may be
2586	// used to include empty fields in Patch requests.
2587	ForceSendFields []string `json:"-"`
2588
2589	// NullFields is a list of field names (e.g. "Metadata") to include in
2590	// API requests with the JSON null value. By default, fields with empty
2591	// values are omitted from API requests. However, any field with an
2592	// empty value appearing in NullFields will be sent to the server as
2593	// null. It is an error if a field in this list has a non-empty value.
2594	// This may be used to include null fields in Patch requests.
2595	NullFields []string `json:"-"`
2596}
2597
2598func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
2599	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
2600	raw := NoMethod(*s)
2601	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2602}
2603
2604// GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an
2605// audio message that is composed of both segments synthesized from the
2606// Dialogflow agent prompts and ones hosted externally at the specified
2607// URIs. The external URIs are specified via play_audio. This message is
2608// generated by Dialogflow only and not supposed to be defined by the
2609// user.
2610type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
2611	// Segments: Segments this audio response is composed of.
2612	Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
2613
2614	// ForceSendFields is a list of field names (e.g. "Segments") to
2615	// unconditionally include in API requests. By default, fields with
2616	// empty values are omitted from API requests. However, any non-pointer,
2617	// non-interface field appearing in ForceSendFields will be sent to the
2618	// server regardless of whether the field is empty or not. This may be
2619	// used to include empty fields in Patch requests.
2620	ForceSendFields []string `json:"-"`
2621
2622	// NullFields is a list of field names (e.g. "Segments") to include in
2623	// API requests with the JSON null value. By default, fields with empty
2624	// values are omitted from API requests. However, any field with an
2625	// empty value appearing in NullFields will be sent to the server as
2626	// null. It is an error if a field in this list has a non-empty value.
2627	// This may be used to include null fields in Patch requests.
2628	NullFields []string `json:"-"`
2629}
2630
2631func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
2632	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
2633	raw := NoMethod(*s)
2634	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2635}
2636
2637// GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents
2638// one segment of audio.
2639type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
2640	// AllowPlaybackInterruption: Output only. Whether the playback of this
2641	// segment can be interrupted by the end user's speech and the client
2642	// should then start the next Dialogflow request.
2643	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2644
2645	// Audio: Raw audio synthesized from the Dialogflow agent's response
2646	// using the output config specified in the request.
2647	Audio string `json:"audio,omitempty"`
2648
2649	// Uri: Client-specific URI that points to an audio clip accessible to
2650	// the client. Dialogflow does not impose any validation on it.
2651	Uri string `json:"uri,omitempty"`
2652
2653	// ForceSendFields is a list of field names (e.g.
2654	// "AllowPlaybackInterruption") to unconditionally include in API
2655	// requests. By default, fields with empty values are omitted from API
2656	// requests. However, any non-pointer, non-interface field appearing in
2657	// ForceSendFields will be sent to the server regardless of whether the
2658	// field is empty or not. This may be used to include empty fields in
2659	// Patch requests.
2660	ForceSendFields []string `json:"-"`
2661
2662	// NullFields is a list of field names (e.g.
2663	// "AllowPlaybackInterruption") to include in API requests with the JSON
2664	// null value. By default, fields with empty values are omitted from API
2665	// requests. However, any field with an empty value appearing in
2666	// NullFields will be sent to the server as null. It is an error if a
2667	// field in this list has a non-empty value. This may be used to include
2668	// null fields in Patch requests.
2669	NullFields []string `json:"-"`
2670}
2671
2672func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
2673	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
2674	raw := NoMethod(*s)
2675	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2676}
2677
2678// GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or
2679// ssml response that is preferentially used for TTS output audio
2680// synthesis, as described in the comment on the ResponseMessage
2681// message.
2682type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
2683	// AllowPlaybackInterruption: Output only. Whether the playback of this
2684	// message can be interrupted by the end user's speech and the client
2685	// can then starts the next Dialogflow request.
2686	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2687
2688	// Ssml: The SSML text to be synthesized. For more information, see SSML
2689	// (/speech/text-to-speech/docs/ssml).
2690	Ssml string `json:"ssml,omitempty"`
2691
2692	// Text: The raw text to be synthesized.
2693	Text string `json:"text,omitempty"`
2694
2695	// ForceSendFields is a list of field names (e.g.
2696	// "AllowPlaybackInterruption") to unconditionally include in API
2697	// requests. By default, fields with empty values are omitted from API
2698	// requests. However, any non-pointer, non-interface field appearing in
2699	// ForceSendFields will be sent to the server regardless of whether the
2700	// field is empty or not. This may be used to include empty fields in
2701	// Patch requests.
2702	ForceSendFields []string `json:"-"`
2703
2704	// NullFields is a list of field names (e.g.
2705	// "AllowPlaybackInterruption") to include in API requests with the JSON
2706	// null value. By default, fields with empty values are omitted from API
2707	// requests. However, any field with an empty value appearing in
2708	// NullFields will be sent to the server as null. It is an error if a
2709	// field in this list has a non-empty value. This may be used to include
2710	// null fields in Patch requests.
2711	NullFields []string `json:"-"`
2712}
2713
2714func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
2715	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
2716	raw := NoMethod(*s)
2717	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2718}
2719
2720// GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio
2721// clip to be played by the client as part of the response.
2722type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
2723	// AllowPlaybackInterruption: Output only. Whether the playback of this
2724	// message can be interrupted by the end user's speech and the client
2725	// can then starts the next Dialogflow request.
2726	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2727
2728	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose
2729	// any validation on this value. It is specific to the client that reads
2730	// it.
2731	AudioUri string `json:"audioUri,omitempty"`
2732
2733	// ForceSendFields is a list of field names (e.g.
2734	// "AllowPlaybackInterruption") to unconditionally include in API
2735	// requests. By default, fields with empty values are omitted from API
2736	// requests. However, any non-pointer, non-interface field appearing in
2737	// ForceSendFields will be sent to the server regardless of whether the
2738	// field is empty or not. This may be used to include empty fields in
2739	// Patch requests.
2740	ForceSendFields []string `json:"-"`
2741
2742	// NullFields is a list of field names (e.g.
2743	// "AllowPlaybackInterruption") to include in API requests with the JSON
2744	// null value. By default, fields with empty values are omitted from API
2745	// requests. However, any field with an empty value appearing in
2746	// NullFields will be sent to the server as null. It is an error if a
2747	// field in this list has a non-empty value. This may be used to include
2748	// null fields in Patch requests.
2749	NullFields []string `json:"-"`
2750}
2751
2752func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
2753	type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
2754	raw := NoMethod(*s)
2755	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2756}
2757
2758// GoogleCloudDialogflowCxV3ResponseMessageText: The text response
2759// message.
2760type GoogleCloudDialogflowCxV3ResponseMessageText struct {
2761	// AllowPlaybackInterruption: Output only. Whether the playback of this
2762	// message can be interrupted by the end user's speech and the client
2763	// can then starts the next Dialogflow request.
2764	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2765
2766	// Text: Required. A collection of text responses.
2767	Text []string `json:"text,omitempty"`
2768
2769	// ForceSendFields is a list of field names (e.g.
2770	// "AllowPlaybackInterruption") to unconditionally include in API
2771	// requests. By default, fields with empty values are omitted from API
2772	// requests. However, any non-pointer, non-interface field appearing in
2773	// ForceSendFields will be sent to the server regardless of whether the
2774	// field is empty or not. This may be used to include empty fields in
2775	// Patch requests.
2776	ForceSendFields []string `json:"-"`
2777
2778	// NullFields is a list of field names (e.g.
2779	// "AllowPlaybackInterruption") to include in API requests with the JSON
2780	// null value. By default, fields with empty values are omitted from API
2781	// requests. However, any field with an empty value appearing in
2782	// NullFields will be sent to the server as null. It is an error if a
2783	// field in this list has a non-empty value. This may be used to include
2784	// null fields in Patch requests.
2785	NullFields []string `json:"-"`
2786}
2787
2788func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
2789	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
2790	raw := NoMethod(*s)
2791	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2792}
2793
2794// GoogleCloudDialogflowCxV3RunTestCaseMetadata: Metadata returned for
2795// the TestCases.RunTestCase long running operation.
2796type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
2797}
2798
2799// GoogleCloudDialogflowCxV3RunTestCaseResponse: The response message
2800// for TestCases.RunTestCase.
2801type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
2802	// Result: The result.
2803	Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
2804
2805	// ForceSendFields is a list of field names (e.g. "Result") to
2806	// unconditionally include in API requests. By default, fields with
2807	// empty values are omitted from API requests. However, any non-pointer,
2808	// non-interface field appearing in ForceSendFields will be sent to the
2809	// server regardless of whether the field is empty or not. This may be
2810	// used to include empty fields in Patch requests.
2811	ForceSendFields []string `json:"-"`
2812
2813	// NullFields is a list of field names (e.g. "Result") to include in API
2814	// requests with the JSON null value. By default, fields with empty
2815	// values are omitted from API requests. However, any field with an
2816	// empty value appearing in NullFields will be sent to the server as
2817	// null. It is an error if a field in this list has a non-empty value.
2818	// This may be used to include null fields in Patch requests.
2819	NullFields []string `json:"-"`
2820}
2821
2822func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
2823	type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
2824	raw := NoMethod(*s)
2825	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2826}
2827
2828// GoogleCloudDialogflowCxV3SessionInfo: Represents session information
2829// communicated to and from the webhook.
2830type GoogleCloudDialogflowCxV3SessionInfo struct {
2831	// Parameters: Optional for WebhookRequest. Optional for
2832	// WebhookResponse. All parameters collected from forms and intents
2833	// during the session. Parameters can be created, updated, or removed by
2834	// the webhook. To remove a parameter from the session, the webhook
2835	// should explicitly set the parameter value to null in WebhookResponse.
2836	// The map is keyed by parameters' display names.
2837	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
2838
2839	// Session: Always present for WebhookRequest. Ignored for
2840	// WebhookResponse. The unique identifier of the session. This field can
2841	// be used by the webhook to identify a session. Format:
2842	// `projects//locations//agents//sessions/` or
2843	// `projects//locations//agents//environments//sessions/` if environment
2844	// is specified.
2845	Session string `json:"session,omitempty"`
2846
2847	// ForceSendFields is a list of field names (e.g. "Parameters") to
2848	// unconditionally include in API requests. By default, fields with
2849	// empty values are omitted from API requests. However, any non-pointer,
2850	// non-interface field appearing in ForceSendFields will be sent to the
2851	// server regardless of whether the field is empty or not. This may be
2852	// used to include empty fields in Patch requests.
2853	ForceSendFields []string `json:"-"`
2854
2855	// NullFields is a list of field names (e.g. "Parameters") to include in
2856	// API requests with the JSON null value. By default, fields with empty
2857	// values are omitted from API requests. However, any field with an
2858	// empty value appearing in NullFields will be sent to the server as
2859	// null. It is an error if a field in this list has a non-empty value.
2860	// This may be used to include null fields in Patch requests.
2861	NullFields []string `json:"-"`
2862}
2863
2864func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
2865	type NoMethod GoogleCloudDialogflowCxV3SessionInfo
2866	raw := NoMethod(*s)
2867	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2868}
2869
2870// GoogleCloudDialogflowCxV3TestCase: Represents a test case.
2871type GoogleCloudDialogflowCxV3TestCase struct {
2872	// CreationTime: Output only. When the test was created.
2873	CreationTime string `json:"creationTime,omitempty"`
2874
2875	// DisplayName: Required. The human-readable name of the test case,
2876	// unique within the agent. Limit of 200 characters.
2877	DisplayName string `json:"displayName,omitempty"`
2878
2879	// LastTestResult: The latest test result.
2880	LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
2881
2882	// Name: The unique identifier of the test case.
2883	// TestCases.CreateTestCase will populate the name automatically.
2884	// Otherwise use format: `projects//locations//agents/ /testCases/`.
2885	Name string `json:"name,omitempty"`
2886
2887	// Notes: Additional freeform notes about the test case. Limit of 400
2888	// characters.
2889	Notes string `json:"notes,omitempty"`
2890
2891	// Tags: Tags are short descriptions that users may apply to test cases
2892	// for organizational and filtering purposes. Each tag should start with
2893	// "#" and has a limit of 30 characters.
2894	Tags []string `json:"tags,omitempty"`
2895
2896	// TestCaseConversationTurns: The conversation turns uttered when the
2897	// test case was created, in chronological order. These include the
2898	// canonical set of agent utterances that should occur when the agent is
2899	// working properly.
2900	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
2901
2902	// TestConfig: Config for the test case.
2903	TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
2904
2905	// ForceSendFields is a list of field names (e.g. "CreationTime") to
2906	// unconditionally include in API requests. By default, fields with
2907	// empty values are omitted from API requests. However, any non-pointer,
2908	// non-interface field appearing in ForceSendFields will be sent to the
2909	// server regardless of whether the field is empty or not. This may be
2910	// used to include empty fields in Patch requests.
2911	ForceSendFields []string `json:"-"`
2912
2913	// NullFields is a list of field names (e.g. "CreationTime") to include
2914	// in API requests with the JSON null value. By default, fields with
2915	// empty values are omitted from API requests. However, any field with
2916	// an empty value appearing in NullFields will be sent to the server as
2917	// null. It is an error if a field in this list has a non-empty value.
2918	// This may be used to include null fields in Patch requests.
2919	NullFields []string `json:"-"`
2920}
2921
2922func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
2923	type NoMethod GoogleCloudDialogflowCxV3TestCase
2924	raw := NoMethod(*s)
2925	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2926}
2927
2928// GoogleCloudDialogflowCxV3TestCaseError: Error info for importing a
2929// test.
2930type GoogleCloudDialogflowCxV3TestCaseError struct {
2931	// Status: The status associated with the test case.
2932	Status *GoogleRpcStatus `json:"status,omitempty"`
2933
2934	// TestCase: The test case.
2935	TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
2936
2937	// ForceSendFields is a list of field names (e.g. "Status") to
2938	// unconditionally include in API requests. By default, fields with
2939	// empty values are omitted from API requests. However, any non-pointer,
2940	// non-interface field appearing in ForceSendFields will be sent to the
2941	// server regardless of whether the field is empty or not. This may be
2942	// used to include empty fields in Patch requests.
2943	ForceSendFields []string `json:"-"`
2944
2945	// NullFields is a list of field names (e.g. "Status") to include in API
2946	// requests with the JSON null value. By default, fields with empty
2947	// values are omitted from API requests. However, any field with an
2948	// empty value appearing in NullFields will be sent to the server as
2949	// null. It is an error if a field in this list has a non-empty value.
2950	// This may be used to include null fields in Patch requests.
2951	NullFields []string `json:"-"`
2952}
2953
2954func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
2955	type NoMethod GoogleCloudDialogflowCxV3TestCaseError
2956	raw := NoMethod(*s)
2957	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2958}
2959
2960// GoogleCloudDialogflowCxV3TestCaseResult: Represents a result from
2961// running a test case in an agent environment.
2962type GoogleCloudDialogflowCxV3TestCaseResult struct {
2963	// ConversationTurns: The conversation turns uttered during the test
2964	// case replay in chronological order.
2965	ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
2966
2967	// Environment: Environment where the test was run. If not set, it
2968	// indicates the draft environment.
2969	Environment string `json:"environment,omitempty"`
2970
2971	// Name: The resource name for the test case result. Format:
2972	// `projects//locations//agents//testCases/ /results/`.
2973	Name string `json:"name,omitempty"`
2974
2975	// TestResult: Whether the test case passed in the agent environment.
2976	//
2977	// Possible values:
2978	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
2979	//   "PASSED" - The test passed.
2980	//   "FAILED" - The test did not pass.
2981	TestResult string `json:"testResult,omitempty"`
2982
2983	// TestTime: The time that the test was run.
2984	TestTime string `json:"testTime,omitempty"`
2985
2986	// ForceSendFields is a list of field names (e.g. "ConversationTurns")
2987	// to unconditionally include in API requests. By default, fields with
2988	// empty values are omitted from API requests. However, any non-pointer,
2989	// non-interface field appearing in ForceSendFields will be sent to the
2990	// server regardless of whether the field is empty or not. This may be
2991	// used to include empty fields in Patch requests.
2992	ForceSendFields []string `json:"-"`
2993
2994	// NullFields is a list of field names (e.g. "ConversationTurns") to
2995	// include in API requests with the JSON null value. By default, fields
2996	// with empty values are omitted from API requests. However, any field
2997	// with an empty value appearing in NullFields will be sent to the
2998	// server as null. It is an error if a field in this list has a
2999	// non-empty value. This may be used to include null fields in Patch
3000	// requests.
3001	NullFields []string `json:"-"`
3002}
3003
3004func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
3005	type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
3006	raw := NoMethod(*s)
3007	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3008}
3009
3010// GoogleCloudDialogflowCxV3TestConfig: Represents configurations for a
3011// test case.
3012type GoogleCloudDialogflowCxV3TestConfig struct {
3013	// Flow: Flow name. If not set, default start flow is assumed. Format:
3014	// `projects//locations//agents//flows/`.
3015	Flow string `json:"flow,omitempty"`
3016
3017	// TrackingParameters: Session parameters to be compared when
3018	// calculating differences.
3019	TrackingParameters []string `json:"trackingParameters,omitempty"`
3020
3021	// ForceSendFields is a list of field names (e.g. "Flow") to
3022	// unconditionally include in API requests. By default, fields with
3023	// empty values are omitted from API requests. However, any non-pointer,
3024	// non-interface field appearing in ForceSendFields will be sent to the
3025	// server regardless of whether the field is empty or not. This may be
3026	// used to include empty fields in Patch requests.
3027	ForceSendFields []string `json:"-"`
3028
3029	// NullFields is a list of field names (e.g. "Flow") to include in API
3030	// requests with the JSON null value. By default, fields with empty
3031	// values are omitted from API requests. However, any field with an
3032	// empty value appearing in NullFields will be sent to the server as
3033	// null. It is an error if a field in this list has a non-empty value.
3034	// This may be used to include null fields in Patch requests.
3035	NullFields []string `json:"-"`
3036}
3037
3038func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
3039	type NoMethod GoogleCloudDialogflowCxV3TestConfig
3040	raw := NoMethod(*s)
3041	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3042}
3043
3044// GoogleCloudDialogflowCxV3TestError: Error info for running a test.
3045type GoogleCloudDialogflowCxV3TestError struct {
3046	// Status: The status associated with the test.
3047	Status *GoogleRpcStatus `json:"status,omitempty"`
3048
3049	// TestCase: The test case resource name.
3050	TestCase string `json:"testCase,omitempty"`
3051
3052	// TestTime: The timestamp when the test was completed.
3053	TestTime string `json:"testTime,omitempty"`
3054
3055	// ForceSendFields is a list of field names (e.g. "Status") to
3056	// unconditionally include in API requests. By default, fields with
3057	// empty values are omitted from API requests. However, any non-pointer,
3058	// non-interface field appearing in ForceSendFields will be sent to the
3059	// server regardless of whether the field is empty or not. This may be
3060	// used to include empty fields in Patch requests.
3061	ForceSendFields []string `json:"-"`
3062
3063	// NullFields is a list of field names (e.g. "Status") to include in API
3064	// requests with the JSON null value. By default, fields with empty
3065	// values are omitted from API requests. However, any field with an
3066	// empty value appearing in NullFields will be sent to the server as
3067	// null. It is an error if a field in this list has a non-empty value.
3068	// This may be used to include null fields in Patch requests.
3069	NullFields []string `json:"-"`
3070}
3071
3072func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
3073	type NoMethod GoogleCloudDialogflowCxV3TestError
3074	raw := NoMethod(*s)
3075	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3076}
3077
3078// GoogleCloudDialogflowCxV3TestRunDifference: The description of
3079// differences between original and replayed agent output.
3080type GoogleCloudDialogflowCxV3TestRunDifference struct {
3081	// Description: A description of the diff, showing the actual output vs
3082	// expected output.
3083	Description string `json:"description,omitempty"`
3084
3085	// Type: The type of diff.
3086	//
3087	// Possible values:
3088	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
3089	//   "INTENT" - The intent.
3090	//   "PAGE" - The page.
3091	//   "PARAMETERS" - The parameters.
3092	//   "UTTERANCE" - The message utterance.
3093	Type string `json:"type,omitempty"`
3094
3095	// ForceSendFields is a list of field names (e.g. "Description") to
3096	// unconditionally include in API requests. By default, fields with
3097	// empty values are omitted from API requests. However, any non-pointer,
3098	// non-interface field appearing in ForceSendFields will be sent to the
3099	// server regardless of whether the field is empty or not. This may be
3100	// used to include empty fields in Patch requests.
3101	ForceSendFields []string `json:"-"`
3102
3103	// NullFields is a list of field names (e.g. "Description") to include
3104	// in API requests with the JSON null value. By default, fields with
3105	// empty values are omitted from API requests. However, any field with
3106	// an empty value appearing in NullFields will be sent to the server as
3107	// null. It is an error if a field in this list has a non-empty value.
3108	// This may be used to include null fields in Patch requests.
3109	NullFields []string `json:"-"`
3110}
3111
3112func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
3113	type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
3114	raw := NoMethod(*s)
3115	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3116}
3117
3118// GoogleCloudDialogflowCxV3TextInput: Represents the natural language
3119// text to be processed.
3120type GoogleCloudDialogflowCxV3TextInput struct {
3121	// Text: Required. The UTF-8 encoded natural language text to be
3122	// processed. Text length must not exceed 256 characters.
3123	Text string `json:"text,omitempty"`
3124
3125	// ForceSendFields is a list of field names (e.g. "Text") to
3126	// unconditionally include in API requests. By default, fields with
3127	// empty values are omitted from API requests. However, any non-pointer,
3128	// non-interface field appearing in ForceSendFields will be sent to the
3129	// server regardless of whether the field is empty or not. This may be
3130	// used to include empty fields in Patch requests.
3131	ForceSendFields []string `json:"-"`
3132
3133	// NullFields is a list of field names (e.g. "Text") to include in API
3134	// requests with the JSON null value. By default, fields with empty
3135	// values are omitted from API requests. However, any field with an
3136	// empty value appearing in NullFields will be sent to the server as
3137	// null. It is an error if a field in this list has a non-empty value.
3138	// This may be used to include null fields in Patch requests.
3139	NullFields []string `json:"-"`
3140}
3141
3142func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
3143	type NoMethod GoogleCloudDialogflowCxV3TextInput
3144	raw := NoMethod(*s)
3145	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3146}
3147
3148// GoogleCloudDialogflowCxV3TransitionRoute: A transition route
3149// specifies a intent that can be matched and/or a data condition that
3150// can be evaluated during a session. When a specified transition is
3151// matched, the following actions are taken in order: * If there is a
3152// `trigger_fulfillment` associated with the transition, it will be
3153// called. * If there is a `target_page` associated with the transition,
3154// the session will transition into the specified page. * If there is a
3155// `target_flow` associated with the transition, the session will
3156// transition into the specified flow.
3157type GoogleCloudDialogflowCxV3TransitionRoute struct {
3158	// Condition: The condition to evaluate against form parameters or
3159	// session parameters. See the conditions reference
3160	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At
3161	// least one of `intent` or `condition` must be specified. When both
3162	// `intent` and `condition` are specified, the transition can only
3163	// happen when both are fulfilled.
3164	Condition string `json:"condition,omitempty"`
3165
3166	// Intent: The unique identifier of an Intent. Format:
3167	// `projects//locations//agents//intents/`. Indicates that the
3168	// transition can only happen when the given intent is matched. At least
3169	// one of `intent` or `condition` must be specified. When both `intent`
3170	// and `condition` are specified, the transition can only happen when
3171	// both are fulfilled.
3172	Intent string `json:"intent,omitempty"`
3173
3174	// Name: Output only. The unique identifier of this transition route.
3175	Name string `json:"name,omitempty"`
3176
3177	// TargetFlow: The target flow to transition to. Format:
3178	// `projects//locations//agents//flows/`.
3179	TargetFlow string `json:"targetFlow,omitempty"`
3180
3181	// TargetPage: The target page to transition to. Format:
3182	// `projects//locations//agents//flows//pages/`.
3183	TargetPage string `json:"targetPage,omitempty"`
3184
3185	// TriggerFulfillment: The fulfillment to call when the condition is
3186	// satisfied. At least one of `trigger_fulfillment` and `target` must be
3187	// specified. When both are defined, `trigger_fulfillment` is executed
3188	// first.
3189	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
3190
3191	// ForceSendFields is a list of field names (e.g. "Condition") to
3192	// unconditionally include in API requests. By default, fields with
3193	// empty values are omitted from API requests. However, any non-pointer,
3194	// non-interface field appearing in ForceSendFields will be sent to the
3195	// server regardless of whether the field is empty or not. This may be
3196	// used to include empty fields in Patch requests.
3197	ForceSendFields []string `json:"-"`
3198
3199	// NullFields is a list of field names (e.g. "Condition") to include in
3200	// API requests with the JSON null value. By default, fields with empty
3201	// values are omitted from API requests. However, any field with an
3202	// empty value appearing in NullFields will be sent to the server as
3203	// null. It is an error if a field in this list has a non-empty value.
3204	// This may be used to include null fields in Patch requests.
3205	NullFields []string `json:"-"`
3206}
3207
3208func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
3209	type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
3210	raw := NoMethod(*s)
3211	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3212}
3213
3214// GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata
3215// for UpdateDocument operation.
3216type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
3217	// GenericMetadata: The generic information of the operation.
3218	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3219
3220	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
3221	// unconditionally include in API requests. By default, fields with
3222	// empty values are omitted from API requests. However, any non-pointer,
3223	// non-interface field appearing in ForceSendFields will be sent to the
3224	// server regardless of whether the field is empty or not. This may be
3225	// used to include empty fields in Patch requests.
3226	ForceSendFields []string `json:"-"`
3227
3228	// NullFields is a list of field names (e.g. "GenericMetadata") to
3229	// include in API requests with the JSON null value. By default, fields
3230	// with empty values are omitted from API requests. However, any field
3231	// with an empty value appearing in NullFields will be sent to the
3232	// server as null. It is an error if a field in this list has a
3233	// non-empty value. This may be used to include null fields in Patch
3234	// requests.
3235	NullFields []string `json:"-"`
3236}
3237
3238func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3239	type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
3240	raw := NoMethod(*s)
3241	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3242}
3243
3244// GoogleCloudDialogflowCxV3WebhookRequest: The request message for a
3245// webhook call. The request is sent as a JSON object and the field
3246// names will be presented in camel cases.
3247type GoogleCloudDialogflowCxV3WebhookRequest struct {
3248	// DetectIntentResponseId: Always present. The unique identifier of the
3249	// DetectIntentResponse that will be returned to the API caller.
3250	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
3251
3252	// FulfillmentInfo: Always present. Information about the fulfillment
3253	// that triggered this webhook call.
3254	FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
3255
3256	// IntentInfo: Information about the last matched intent.
3257	IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
3258
3259	// LanguageCode: The language code specified in the original request.
3260	LanguageCode string `json:"languageCode,omitempty"`
3261
3262	// Messages: The list of rich message responses to present to the user.
3263	// Webhook can choose to append or replace this list in
3264	// WebhookResponse.fulfillment_response;
3265	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3266
3267	// PageInfo: Information about page status.
3268	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3269
3270	// Payload: Custom data set in QueryParameters.payload.
3271	Payload googleapi.RawMessage `json:"payload,omitempty"`
3272
3273	// SentimentAnalysisResult: The sentiment analysis result of the current
3274	// user request. The field is filled when sentiment analysis is
3275	// configured to be enabled for the request.
3276	SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
3277
3278	// SessionInfo: Information about session status.
3279	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3280
3281	// Text: If natural language text was provided as input, this field will
3282	// contain a copy of the text.
3283	Text string `json:"text,omitempty"`
3284
3285	// Transcript: If natural language speech audio was provided as input,
3286	// this field will contain the transcript for the audio.
3287	Transcript string `json:"transcript,omitempty"`
3288
3289	// TriggerEvent: If an event was provided as input, this field will
3290	// contain the name of the event.
3291	TriggerEvent string `json:"triggerEvent,omitempty"`
3292
3293	// TriggerIntent: If an intent was provided as input, this field will
3294	// contain a copy of the intent identifier. Format:
3295	// `projects//locations//agents//intents/`.
3296	TriggerIntent string `json:"triggerIntent,omitempty"`
3297
3298	// ForceSendFields is a list of field names (e.g.
3299	// "DetectIntentResponseId") to unconditionally include in API requests.
3300	// By default, fields with empty values are omitted from API requests.
3301	// However, any non-pointer, non-interface field appearing in
3302	// ForceSendFields will be sent to the server regardless of whether the
3303	// field is empty or not. This may be used to include empty fields in
3304	// Patch requests.
3305	ForceSendFields []string `json:"-"`
3306
3307	// NullFields is a list of field names (e.g. "DetectIntentResponseId")
3308	// to include in API requests with the JSON null value. By default,
3309	// fields with empty values are omitted from API requests. However, any
3310	// field with an empty value appearing in NullFields will be sent to the
3311	// server as null. It is an error if a field in this list has a
3312	// non-empty value. This may be used to include null fields in Patch
3313	// requests.
3314	NullFields []string `json:"-"`
3315}
3316
3317func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
3318	type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
3319	raw := NoMethod(*s)
3320	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3321}
3322
3323// GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents
3324// fulfillment information communicated to the webhook.
3325type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
3326	// Tag: Always present. The tag used to identify which fulfillment is
3327	// being called.
3328	Tag string `json:"tag,omitempty"`
3329
3330	// ForceSendFields is a list of field names (e.g. "Tag") to
3331	// unconditionally include in API requests. By default, fields with
3332	// empty values are omitted from API requests. However, any non-pointer,
3333	// non-interface field appearing in ForceSendFields will be sent to the
3334	// server regardless of whether the field is empty or not. This may be
3335	// used to include empty fields in Patch requests.
3336	ForceSendFields []string `json:"-"`
3337
3338	// NullFields is a list of field names (e.g. "Tag") to include in API
3339	// requests with the JSON null value. By default, fields with empty
3340	// values are omitted from API requests. However, any field with an
3341	// empty value appearing in NullFields will be sent to the server as
3342	// null. It is an error if a field in this list has a non-empty value.
3343	// This may be used to include null fields in Patch requests.
3344	NullFields []string `json:"-"`
3345}
3346
3347func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
3348	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
3349	raw := NoMethod(*s)
3350	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3351}
3352
3353// GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent
3354// information communicated to the webhook.
3355type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
3356	// Confidence: The confidence of the matched intent. Values range from
3357	// 0.0 (completely uncertain) to 1.0 (completely certain).
3358	Confidence float64 `json:"confidence,omitempty"`
3359
3360	// DisplayName: Always present. The display name of the last matched
3361	// intent.
3362	DisplayName string `json:"displayName,omitempty"`
3363
3364	// LastMatchedIntent: Always present. The unique identifier of the last
3365	// matched intent. Format: `projects//locations//agents//intents/`.
3366	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
3367
3368	// Parameters: Parameters identified as a result of intent matching.
3369	// This is a map of the name of the identified parameter to the value of
3370	// the parameter identified from the user's utterance. All parameters
3371	// defined in the matched intent that are identified will be surfaced
3372	// here.
3373	Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
3374
3375	// ForceSendFields is a list of field names (e.g. "Confidence") to
3376	// unconditionally include in API requests. By default, fields with
3377	// empty values are omitted from API requests. However, any non-pointer,
3378	// non-interface field appearing in ForceSendFields will be sent to the
3379	// server regardless of whether the field is empty or not. This may be
3380	// used to include empty fields in Patch requests.
3381	ForceSendFields []string `json:"-"`
3382
3383	// NullFields is a list of field names (e.g. "Confidence") to include in
3384	// API requests with the JSON null value. By default, fields with empty
3385	// values are omitted from API requests. However, any field with an
3386	// empty value appearing in NullFields will be sent to the server as
3387	// null. It is an error if a field in this list has a non-empty value.
3388	// This may be used to include null fields in Patch requests.
3389	NullFields []string `json:"-"`
3390}
3391
3392func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
3393	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
3394	raw := NoMethod(*s)
3395	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3396}
3397
3398func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
3399	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
3400	var s1 struct {
3401		Confidence gensupport.JSONFloat64 `json:"confidence"`
3402		*NoMethod
3403	}
3404	s1.NoMethod = (*NoMethod)(s)
3405	if err := json.Unmarshal(data, &s1); err != nil {
3406		return err
3407	}
3408	s.Confidence = float64(s1.Confidence)
3409	return nil
3410}
3411
3412// GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
3413//  Represents a value for an intent parameter.
3414type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
3415	// OriginalValue: Always present. Original text value extracted from
3416	// user utterance.
3417	OriginalValue string `json:"originalValue,omitempty"`
3418
3419	// ResolvedValue: Always present. Structured value for the parameter
3420	// extracted from user utterance.
3421	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
3422
3423	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
3424	// unconditionally include in API requests. By default, fields with
3425	// empty values are omitted from API requests. However, any non-pointer,
3426	// non-interface field appearing in ForceSendFields will be sent to the
3427	// server regardless of whether the field is empty or not. This may be
3428	// used to include empty fields in Patch requests.
3429	ForceSendFields []string `json:"-"`
3430
3431	// NullFields is a list of field names (e.g. "OriginalValue") to include
3432	// in API requests with the JSON null value. By default, fields with
3433	// empty values are omitted from API requests. However, any field with
3434	// an empty value appearing in NullFields will be sent to the server as
3435	// null. It is an error if a field in this list has a non-empty value.
3436	// This may be used to include null fields in Patch requests.
3437	NullFields []string `json:"-"`
3438}
3439
3440func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
3441	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
3442	raw := NoMethod(*s)
3443	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3444}
3445
3446// GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult:
3447// Represents the result of sentiment analysis.
3448type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
3449	// Magnitude: A non-negative number in the [0, +inf) range, which
3450	// represents the absolute magnitude of sentiment, regardless of score
3451	// (positive or negative).
3452	Magnitude float64 `json:"magnitude,omitempty"`
3453
3454	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
3455	// (positive sentiment).
3456	Score float64 `json:"score,omitempty"`
3457
3458	// ForceSendFields is a list of field names (e.g. "Magnitude") to
3459	// unconditionally include in API requests. By default, fields with
3460	// empty values are omitted from API requests. However, any non-pointer,
3461	// non-interface field appearing in ForceSendFields will be sent to the
3462	// server regardless of whether the field is empty or not. This may be
3463	// used to include empty fields in Patch requests.
3464	ForceSendFields []string `json:"-"`
3465
3466	// NullFields is a list of field names (e.g. "Magnitude") to include in
3467	// API requests with the JSON null value. By default, fields with empty
3468	// values are omitted from API requests. However, any field with an
3469	// empty value appearing in NullFields will be sent to the server as
3470	// null. It is an error if a field in this list has a non-empty value.
3471	// This may be used to include null fields in Patch requests.
3472	NullFields []string `json:"-"`
3473}
3474
3475func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
3476	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3477	raw := NoMethod(*s)
3478	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3479}
3480
3481func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
3482	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3483	var s1 struct {
3484		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
3485		Score     gensupport.JSONFloat64 `json:"score"`
3486		*NoMethod
3487	}
3488	s1.NoMethod = (*NoMethod)(s)
3489	if err := json.Unmarshal(data, &s1); err != nil {
3490		return err
3491	}
3492	s.Magnitude = float64(s1.Magnitude)
3493	s.Score = float64(s1.Score)
3494	return nil
3495}
3496
3497// GoogleCloudDialogflowCxV3WebhookResponse: The response message for a
3498// webhook call.
3499type GoogleCloudDialogflowCxV3WebhookResponse struct {
3500	// FulfillmentResponse: The fulfillment response to send to the user.
3501	// This field can be omitted by the webhook if it does not intend to
3502	// send any response to the user.
3503	FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
3504
3505	// PageInfo: Information about page status. This field can be omitted by
3506	// the webhook if it does not intend to modify page status.
3507	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3508
3509	// Payload: Value to append directly to QueryResult.webhook_payloads.
3510	Payload googleapi.RawMessage `json:"payload,omitempty"`
3511
3512	// SessionInfo: Information about session status. This field can be
3513	// omitted by the webhook if it does not intend to modify session
3514	// status.
3515	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3516
3517	// TargetFlow: The target flow to transition to. Format:
3518	// `projects//locations//agents//flows/`.
3519	TargetFlow string `json:"targetFlow,omitempty"`
3520
3521	// TargetPage: The target page to transition to. Format:
3522	// `projects//locations//agents//flows//pages/`.
3523	TargetPage string `json:"targetPage,omitempty"`
3524
3525	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse")
3526	// to unconditionally include in API requests. By default, fields with
3527	// empty values are omitted from API requests. However, any non-pointer,
3528	// non-interface field appearing in ForceSendFields will be sent to the
3529	// server regardless of whether the field is empty or not. This may be
3530	// used to include empty fields in Patch requests.
3531	ForceSendFields []string `json:"-"`
3532
3533	// NullFields is a list of field names (e.g. "FulfillmentResponse") to
3534	// include in API requests with the JSON null value. By default, fields
3535	// with empty values are omitted from API requests. However, any field
3536	// with an empty value appearing in NullFields will be sent to the
3537	// server as null. It is an error if a field in this list has a
3538	// non-empty value. This may be used to include null fields in Patch
3539	// requests.
3540	NullFields []string `json:"-"`
3541}
3542
3543func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
3544	type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
3545	raw := NoMethod(*s)
3546	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3547}
3548
3549// GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse:
3550// Represents a fulfillment response to the user.
3551type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
3552	// MergeBehavior: Merge behavior for `messages`.
3553	//
3554	// Possible values:
3555	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be
3556	// used.
3557	//   "APPEND" - `messages` will be appended to the list of messages
3558	// waiting to be sent to the user.
3559	//   "REPLACE" - `messages` will replace the list of messages waiting to
3560	// be sent to the user.
3561	MergeBehavior string `json:"mergeBehavior,omitempty"`
3562
3563	// Messages: The list of rich message responses to present to the user.
3564	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3565
3566	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
3567	// unconditionally include in API requests. By default, fields with
3568	// empty values are omitted from API requests. However, any non-pointer,
3569	// non-interface field appearing in ForceSendFields will be sent to the
3570	// server regardless of whether the field is empty or not. This may be
3571	// used to include empty fields in Patch requests.
3572	ForceSendFields []string `json:"-"`
3573
3574	// NullFields is a list of field names (e.g. "MergeBehavior") to include
3575	// in API requests with the JSON null value. By default, fields with
3576	// empty values are omitted from API requests. However, any field with
3577	// an empty value appearing in NullFields will be sent to the server as
3578	// null. It is an error if a field in this list has a non-empty value.
3579	// This may be used to include null fields in Patch requests.
3580	NullFields []string `json:"-"`
3581}
3582
3583func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
3584	type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
3585	raw := NoMethod(*s)
3586	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3587}
3588
3589// GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural
3590// speech audio to be processed.
3591type GoogleCloudDialogflowCxV3beta1AudioInput struct {
3592	// Audio: The natural language speech audio to be processed. A single
3593	// request can contain up to 1 minute of speech audio data. The
3594	// transcribed text cannot contain more than 256 bytes. For
3595	// non-streaming audio detect intent, both `config` and `audio` must be
3596	// provided. For streaming audio detect intent, `config` must be
3597	// provided in the first request and `audio` must be provided in all
3598	// following requests.
3599	Audio string `json:"audio,omitempty"`
3600
3601	// Config: Required. Instructs the speech recognizer how to process the
3602	// speech audio.
3603	Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
3604
3605	// ForceSendFields is a list of field names (e.g. "Audio") to
3606	// unconditionally include in API requests. By default, fields with
3607	// empty values are omitted from API requests. However, any non-pointer,
3608	// non-interface field appearing in ForceSendFields will be sent to the
3609	// server regardless of whether the field is empty or not. This may be
3610	// used to include empty fields in Patch requests.
3611	ForceSendFields []string `json:"-"`
3612
3613	// NullFields is a list of field names (e.g. "Audio") to include in API
3614	// requests with the JSON null value. By default, fields with empty
3615	// values are omitted from API requests. However, any field with an
3616	// empty value appearing in NullFields will be sent to the server as
3617	// null. It is an error if a field in this list has a non-empty value.
3618	// This may be used to include null fields in Patch requests.
3619	NullFields []string `json:"-"`
3620}
3621
3622func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
3623	type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
3624	raw := NoMethod(*s)
3625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3626}
3627
3628// GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata: Metadata
3629// returned for the TestCases.BatchRunTestCases long running operation.
3630type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
3631	// Errors: The test errors.
3632	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
3633
3634	// ForceSendFields is a list of field names (e.g. "Errors") to
3635	// unconditionally include in API requests. By default, fields with
3636	// empty values are omitted from API requests. However, any non-pointer,
3637	// non-interface field appearing in ForceSendFields will be sent to the
3638	// server regardless of whether the field is empty or not. This may be
3639	// used to include empty fields in Patch requests.
3640	ForceSendFields []string `json:"-"`
3641
3642	// NullFields is a list of field names (e.g. "Errors") to include in API
3643	// requests with the JSON null value. By default, fields with empty
3644	// values are omitted from API requests. However, any field with an
3645	// empty value appearing in NullFields will be sent to the server as
3646	// null. It is an error if a field in this list has a non-empty value.
3647	// This may be used to include null fields in Patch requests.
3648	NullFields []string `json:"-"`
3649}
3650
3651func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
3652	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
3653	raw := NoMethod(*s)
3654	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3655}
3656
3657// GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse: The response
3658// message for TestCases.BatchRunTestCases.
3659type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
3660	// Results: The test case results. The detailed conversation turns are
3661	// empty in this response.
3662	Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
3663
3664	// ForceSendFields is a list of field names (e.g. "Results") to
3665	// unconditionally include in API requests. By default, fields with
3666	// empty values are omitted from API requests. However, any non-pointer,
3667	// non-interface field appearing in ForceSendFields will be sent to the
3668	// server regardless of whether the field is empty or not. This may be
3669	// used to include empty fields in Patch requests.
3670	ForceSendFields []string `json:"-"`
3671
3672	// NullFields is a list of field names (e.g. "Results") to include in
3673	// API requests with the JSON null value. By default, fields with empty
3674	// values are omitted from API requests. However, any field with an
3675	// empty value appearing in NullFields will be sent to the server as
3676	// null. It is an error if a field in this list has a non-empty value.
3677	// This may be used to include null fields in Patch requests.
3678	NullFields []string `json:"-"`
3679}
3680
3681func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
3682	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
3683	raw := NoMethod(*s)
3684	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3685}
3686
3687// GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction
3688// between a human and virtual agent. The human provides some input and
3689// the virtual agent provides a response.
3690type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
3691	// UserInput: The user input.
3692	UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
3693
3694	// VirtualAgentOutput: The virtual agent output.
3695	VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
3696
3697	// ForceSendFields is a list of field names (e.g. "UserInput") to
3698	// unconditionally include in API requests. By default, fields with
3699	// empty values are omitted from API requests. However, any non-pointer,
3700	// non-interface field appearing in ForceSendFields will be sent to the
3701	// server regardless of whether the field is empty or not. This may be
3702	// used to include empty fields in Patch requests.
3703	ForceSendFields []string `json:"-"`
3704
3705	// NullFields is a list of field names (e.g. "UserInput") to include in
3706	// API requests with the JSON null value. By default, fields with empty
3707	// values are omitted from API requests. However, any field with an
3708	// empty value appearing in NullFields will be sent to the server as
3709	// null. It is an error if a field in this list has a non-empty value.
3710	// This may be used to include null fields in Patch requests.
3711	NullFields []string `json:"-"`
3712}
3713
3714func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
3715	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
3716	raw := NoMethod(*s)
3717	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3718}
3719
3720// GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput: The input
3721// from the human user.
3722type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
3723	// InjectedParameters: Parameters that need to be injected into the
3724	// conversation during intent detection.
3725	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
3726
3727	// Input: Supports text input, event input, dtmf input in the test case.
3728	Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
3729
3730	// IsWebhookEnabled: If webhooks should be allowed to trigger in
3731	// response to the user utterance. Often if parameters are injected,
3732	// webhooks should not be enabled.
3733	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
3734
3735	// ForceSendFields is a list of field names (e.g. "InjectedParameters")
3736	// to unconditionally include in API requests. By default, fields with
3737	// empty values are omitted from API requests. However, any non-pointer,
3738	// non-interface field appearing in ForceSendFields will be sent to the
3739	// server regardless of whether the field is empty or not. This may be
3740	// used to include empty fields in Patch requests.
3741	ForceSendFields []string `json:"-"`
3742
3743	// NullFields is a list of field names (e.g. "InjectedParameters") to
3744	// include in API requests with the JSON null value. By default, fields
3745	// with empty values are omitted from API requests. However, any field
3746	// with an empty value appearing in NullFields will be sent to the
3747	// server as null. It is an error if a field in this list has a
3748	// non-empty value. This may be used to include null fields in Patch
3749	// requests.
3750	NullFields []string `json:"-"`
3751}
3752
3753func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
3754	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
3755	raw := NoMethod(*s)
3756	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3757}
3758
3759// GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput: The
3760// output from the virtual agent.
3761type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
3762	// CurrentPage: The Page on which the utterance was spoken. Only name
3763	// and displayName will be set.
3764	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
3765
3766	// DiagnosticInfo: Required. Input only. The diagnostic info output for
3767	// the turn.
3768	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
3769
3770	// Differences: Output only. If this is part of a result conversation
3771	// turn, the list of differences between the original run and the replay
3772	// for this output, if any.
3773	Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
3774
3775	// SessionParameters: The session parameters available to the bot at
3776	// this point.
3777	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
3778
3779	// Status: Response error from the agent in the test result. If set,
3780	// other output is empty.
3781	Status *GoogleRpcStatus `json:"status,omitempty"`
3782
3783	// TextResponses: The text responses from the agent for the turn.
3784	TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
3785
3786	// TriggeredIntent: The Intent that triggered the response. Only name
3787	// and displayName will be set.
3788	TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
3789
3790	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
3791	// unconditionally include in API requests. By default, fields with
3792	// empty values are omitted from API requests. However, any non-pointer,
3793	// non-interface field appearing in ForceSendFields will be sent to the
3794	// server regardless of whether the field is empty or not. This may be
3795	// used to include empty fields in Patch requests.
3796	ForceSendFields []string `json:"-"`
3797
3798	// NullFields is a list of field names (e.g. "CurrentPage") to include
3799	// in API requests with the JSON null value. By default, fields with
3800	// empty values are omitted from API requests. However, any field with
3801	// an empty value appearing in NullFields will be sent to the server as
3802	// null. It is an error if a field in this list has a non-empty value.
3803	// This may be used to include null fields in Patch requests.
3804	NullFields []string `json:"-"`
3805}
3806
3807func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
3808	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
3809	raw := NoMethod(*s)
3810	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3811}
3812
3813// GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata:
3814// Metadata for CreateDocument operation.
3815type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
3816	// GenericMetadata: The generic information of the operation.
3817	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3818
3819	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
3820	// unconditionally include in API requests. By default, fields with
3821	// empty values are omitted from API requests. However, any non-pointer,
3822	// non-interface field appearing in ForceSendFields will be sent to the
3823	// server regardless of whether the field is empty or not. This may be
3824	// used to include empty fields in Patch requests.
3825	ForceSendFields []string `json:"-"`
3826
3827	// NullFields is a list of field names (e.g. "GenericMetadata") to
3828	// include in API requests with the JSON null value. By default, fields
3829	// with empty values are omitted from API requests. However, any field
3830	// with an empty value appearing in NullFields will be sent to the
3831	// server as null. It is an error if a field in this list has a
3832	// non-empty value. This may be used to include null fields in Patch
3833	// requests.
3834	NullFields []string `json:"-"`
3835}
3836
3837func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3838	type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
3839	raw := NoMethod(*s)
3840	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3841}
3842
3843// GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata:
3844// Metadata associated with the long running operation for
3845// Versions.CreateVersion.
3846type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
3847	// Version: Name of the created version. Format:
3848	// `projects//locations//agents//flows//versions/`.
3849	Version string `json:"version,omitempty"`
3850
3851	// ForceSendFields is a list of field names (e.g. "Version") to
3852	// unconditionally include in API requests. By default, fields with
3853	// empty values are omitted from API requests. However, any non-pointer,
3854	// non-interface field appearing in ForceSendFields will be sent to the
3855	// server regardless of whether the field is empty or not. This may be
3856	// used to include empty fields in Patch requests.
3857	ForceSendFields []string `json:"-"`
3858
3859	// NullFields is a list of field names (e.g. "Version") to include in
3860	// API requests with the JSON null value. By default, fields with empty
3861	// values are omitted from API requests. However, any field with an
3862	// empty value appearing in NullFields will be sent to the server as
3863	// null. It is an error if a field in this list has a non-empty value.
3864	// This may be used to include null fields in Patch requests.
3865	NullFields []string `json:"-"`
3866}
3867
3868func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
3869	type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
3870	raw := NoMethod(*s)
3871	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3872}
3873
3874// GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata:
3875// Metadata for DeleteDocument operation.
3876type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
3877	// GenericMetadata: The generic information of the operation.
3878	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3879
3880	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
3881	// unconditionally include in API requests. By default, fields with
3882	// empty values are omitted from API requests. However, any non-pointer,
3883	// non-interface field appearing in ForceSendFields will be sent to the
3884	// server regardless of whether the field is empty or not. This may be
3885	// used to include empty fields in Patch requests.
3886	ForceSendFields []string `json:"-"`
3887
3888	// NullFields is a list of field names (e.g. "GenericMetadata") to
3889	// include in API requests with the JSON null value. By default, fields
3890	// with empty values are omitted from API requests. However, any field
3891	// with an empty value appearing in NullFields will be sent to the
3892	// server as null. It is an error if a field in this list has a
3893	// non-empty value. This may be used to include null fields in Patch
3894	// requests.
3895	NullFields []string `json:"-"`
3896}
3897
3898func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3899	type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
3900	raw := NoMethod(*s)
3901	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3902}
3903
3904// GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for
3905// dtmf event.
3906type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
3907	// Digits: The dtmf digits.
3908	Digits string `json:"digits,omitempty"`
3909
3910	// FinishDigit: The finish digit (if any).
3911	FinishDigit string `json:"finishDigit,omitempty"`
3912
3913	// ForceSendFields is a list of field names (e.g. "Digits") to
3914	// unconditionally include in API requests. By default, fields with
3915	// empty values are omitted from API requests. However, any non-pointer,
3916	// non-interface field appearing in ForceSendFields will be sent to the
3917	// server regardless of whether the field is empty or not. This may be
3918	// used to include empty fields in Patch requests.
3919	ForceSendFields []string `json:"-"`
3920
3921	// NullFields is a list of field names (e.g. "Digits") to include in API
3922	// requests with the JSON null value. By default, fields with empty
3923	// values are omitted from API requests. However, any field with an
3924	// empty value appearing in NullFields will be sent to the server as
3925	// null. It is an error if a field in this list has a non-empty value.
3926	// This may be used to include null fields in Patch requests.
3927	NullFields []string `json:"-"`
3928}
3929
3930func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
3931	type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
3932	raw := NoMethod(*s)
3933	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3934}
3935
3936// GoogleCloudDialogflowCxV3beta1EventHandler: An event handler
3937// specifies an event that can be handled during a session. When the
3938// specified event happens, the following actions are taken in order: *
3939// If there is a `trigger_fulfillment` associated with the event, it
3940// will be called. * If there is a `target_page` associated with the
3941// event, the session will transition into the specified page. * If
3942// there is a `target_flow` associated with the event, the session will
3943// transition into the specified flow.
3944type GoogleCloudDialogflowCxV3beta1EventHandler struct {
3945	// Event: Required. The name of the event to handle.
3946	Event string `json:"event,omitempty"`
3947
3948	// Name: Output only. The unique identifier of this event handler.
3949	Name string `json:"name,omitempty"`
3950
3951	// TargetFlow: The target flow to transition to. Format:
3952	// `projects//locations//agents//flows/`.
3953	TargetFlow string `json:"targetFlow,omitempty"`
3954
3955	// TargetPage: The target page to transition to. Format:
3956	// `projects//locations//agents//flows//pages/`.
3957	TargetPage string `json:"targetPage,omitempty"`
3958
3959	// TriggerFulfillment: The fulfillment to call when the event occurs.
3960	// Handling webhook errors with a fulfillment enabled with webhook could
3961	// cause infinite loop. It is invalid to specify such fulfillment for a
3962	// handler handling webhooks.
3963	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
3964
3965	// ForceSendFields is a list of field names (e.g. "Event") to
3966	// unconditionally include in API requests. By default, fields with
3967	// empty values are omitted from API requests. However, any non-pointer,
3968	// non-interface field appearing in ForceSendFields will be sent to the
3969	// server regardless of whether the field is empty or not. This may be
3970	// used to include empty fields in Patch requests.
3971	ForceSendFields []string `json:"-"`
3972
3973	// NullFields is a list of field names (e.g. "Event") to include in API
3974	// requests with the JSON null value. By default, fields with empty
3975	// values are omitted from API requests. However, any field with an
3976	// empty value appearing in NullFields will be sent to the server as
3977	// null. It is an error if a field in this list has a non-empty value.
3978	// This may be used to include null fields in Patch requests.
3979	NullFields []string `json:"-"`
3980}
3981
3982func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
3983	type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
3984	raw := NoMethod(*s)
3985	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3986}
3987
3988// GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to
3989// trigger.
3990type GoogleCloudDialogflowCxV3beta1EventInput struct {
3991	// Event: Name of the event.
3992	Event string `json:"event,omitempty"`
3993
3994	// ForceSendFields is a list of field names (e.g. "Event") to
3995	// unconditionally include in API requests. By default, fields with
3996	// empty values are omitted from API requests. However, any non-pointer,
3997	// non-interface field appearing in ForceSendFields will be sent to the
3998	// server regardless of whether the field is empty or not. This may be
3999	// used to include empty fields in Patch requests.
4000	ForceSendFields []string `json:"-"`
4001
4002	// NullFields is a list of field names (e.g. "Event") to include in API
4003	// requests with the JSON null value. By default, fields with empty
4004	// values are omitted from API requests. However, any field with an
4005	// empty value appearing in NullFields will be sent to the server as
4006	// null. It is an error if a field in this list has a non-empty value.
4007	// This may be used to include null fields in Patch requests.
4008	NullFields []string `json:"-"`
4009}
4010
4011func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
4012	type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
4013	raw := NoMethod(*s)
4014	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4015}
4016
4017// GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response
4018// message for Agents.ExportAgent.
4019type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
4020	// AgentContent: Uncompressed raw byte content for agent.
4021	AgentContent string `json:"agentContent,omitempty"`
4022
4023	// AgentUri: The URI to a file containing the exported agent. This field
4024	// is populated only if `agent_uri` is specified in ExportAgentRequest.
4025	AgentUri string `json:"agentUri,omitempty"`
4026
4027	// ForceSendFields is a list of field names (e.g. "AgentContent") to
4028	// unconditionally include in API requests. By default, fields with
4029	// empty values are omitted from API requests. However, any non-pointer,
4030	// non-interface field appearing in ForceSendFields will be sent to the
4031	// server regardless of whether the field is empty or not. This may be
4032	// used to include empty fields in Patch requests.
4033	ForceSendFields []string `json:"-"`
4034
4035	// NullFields is a list of field names (e.g. "AgentContent") to include
4036	// in API requests with the JSON null value. By default, fields with
4037	// empty values are omitted from API requests. However, any field with
4038	// an empty value appearing in NullFields will be sent to the server as
4039	// null. It is an error if a field in this list has a non-empty value.
4040	// This may be used to include null fields in Patch requests.
4041	NullFields []string `json:"-"`
4042}
4043
4044func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
4045	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
4046	raw := NoMethod(*s)
4047	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4048}
4049
4050// GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response
4051// message for Flows.ExportFlow.
4052type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
4053	// FlowContent: Uncompressed raw byte content for flow.
4054	FlowContent string `json:"flowContent,omitempty"`
4055
4056	// FlowUri: The URI to a file containing the exported flow. This field
4057	// is populated only if `flow_uri` is specified in ExportFlowRequest.
4058	FlowUri string `json:"flowUri,omitempty"`
4059
4060	// ForceSendFields is a list of field names (e.g. "FlowContent") to
4061	// unconditionally include in API requests. By default, fields with
4062	// empty values are omitted from API requests. However, any non-pointer,
4063	// non-interface field appearing in ForceSendFields will be sent to the
4064	// server regardless of whether the field is empty or not. This may be
4065	// used to include empty fields in Patch requests.
4066	ForceSendFields []string `json:"-"`
4067
4068	// NullFields is a list of field names (e.g. "FlowContent") to include
4069	// in API requests with the JSON null value. By default, fields with
4070	// empty values are omitted from API requests. However, any field with
4071	// an empty value appearing in NullFields will be sent to the server as
4072	// null. It is an error if a field in this list has a non-empty value.
4073	// This may be used to include null fields in Patch requests.
4074	NullFields []string `json:"-"`
4075}
4076
4077func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
4078	type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
4079	raw := NoMethod(*s)
4080	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4081}
4082
4083// GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata
4084// returned for the TestCases.ExportTestCases long running operation.
4085type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
4086}
4087
4088// GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse: The response
4089// message for TestCases.ExportTestCases.
4090type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
4091	// Content: Uncompressed raw byte content for test cases.
4092	Content string `json:"content,omitempty"`
4093
4094	// GcsUri: The URI to a file containing the exported test cases. This
4095	// field is populated only if `gcs_uri` is specified in
4096	// ExportTestCasesRequest.
4097	GcsUri string `json:"gcsUri,omitempty"`
4098
4099	// ForceSendFields is a list of field names (e.g. "Content") to
4100	// unconditionally include in API requests. By default, fields with
4101	// empty values are omitted from API requests. However, any non-pointer,
4102	// non-interface field appearing in ForceSendFields will be sent to the
4103	// server regardless of whether the field is empty or not. This may be
4104	// used to include empty fields in Patch requests.
4105	ForceSendFields []string `json:"-"`
4106
4107	// NullFields is a list of field names (e.g. "Content") to include in
4108	// API requests with the JSON null value. By default, fields with empty
4109	// values are omitted from API requests. However, any field with an
4110	// empty value appearing in NullFields will be sent to the server as
4111	// null. It is an error if a field in this list has a non-empty value.
4112	// This may be used to include null fields in Patch requests.
4113	NullFields []string `json:"-"`
4114}
4115
4116func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
4117	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
4118	raw := NoMethod(*s)
4119	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4120}
4121
4122// GoogleCloudDialogflowCxV3beta1Form: A form is a data model that
4123// groups related parameters that can be collected from the user. The
4124// process in which the agent prompts the user and collects parameter
4125// values from the user is called form filling. A form can be added to a
4126// page. When form filling is done, the filled parameters will be
4127// written to the session.
4128type GoogleCloudDialogflowCxV3beta1Form struct {
4129	// Parameters: Parameters to collect from the user.
4130	Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
4131
4132	// ForceSendFields is a list of field names (e.g. "Parameters") to
4133	// unconditionally include in API requests. By default, fields with
4134	// empty values are omitted from API requests. However, any non-pointer,
4135	// non-interface field appearing in ForceSendFields will be sent to the
4136	// server regardless of whether the field is empty or not. This may be
4137	// used to include empty fields in Patch requests.
4138	ForceSendFields []string `json:"-"`
4139
4140	// NullFields is a list of field names (e.g. "Parameters") to include in
4141	// API requests with the JSON null value. By default, fields with empty
4142	// values are omitted from API requests. However, any field with an
4143	// empty value appearing in NullFields will be sent to the server as
4144	// null. It is an error if a field in this list has a non-empty value.
4145	// This may be used to include null fields in Patch requests.
4146	NullFields []string `json:"-"`
4147}
4148
4149func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
4150	type NoMethod GoogleCloudDialogflowCxV3beta1Form
4151	raw := NoMethod(*s)
4152	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4153}
4154
4155// GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form
4156// parameter.
4157type GoogleCloudDialogflowCxV3beta1FormParameter struct {
4158	// DefaultValue: The default value of an optional parameter. If the
4159	// parameter is required, the default value will be ignored.
4160	DefaultValue interface{} `json:"defaultValue,omitempty"`
4161
4162	// DisplayName: Required. The human-readable name of the parameter,
4163	// unique within the form.
4164	DisplayName string `json:"displayName,omitempty"`
4165
4166	// EntityType: Required. The entity type of the parameter. Format:
4167	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
4168	// types (for example,
4169	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
4170	// `projects//locations//agents//entityTypes/` for developer entity
4171	// types.
4172	EntityType string `json:"entityType,omitempty"`
4173
4174	// FillBehavior: Required. Defines fill behavior for the parameter.
4175	FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
4176
4177	// IsList: Indicates whether the parameter represents a list of values.
4178	IsList bool `json:"isList,omitempty"`
4179
4180	// Redact: Indicates whether the parameter content should be redacted in
4181	// log. If redaction is enabled, the parameter content will be replaced
4182	// by parameter name during logging. Note: the parameter content is
4183	// subject to redaction if either parameter level redaction or entity
4184	// type level redaction is enabled.
4185	Redact bool `json:"redact,omitempty"`
4186
4187	// Required: Indicates whether the parameter is required. Optional
4188	// parameters will not trigger prompts; however, they are filled if the
4189	// user specifies them. Required parameters must be filled before form
4190	// filling concludes.
4191	Required bool `json:"required,omitempty"`
4192
4193	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
4194	// unconditionally include in API requests. By default, fields with
4195	// empty values are omitted from API requests. However, any non-pointer,
4196	// non-interface field appearing in ForceSendFields will be sent to the
4197	// server regardless of whether the field is empty or not. This may be
4198	// used to include empty fields in Patch requests.
4199	ForceSendFields []string `json:"-"`
4200
4201	// NullFields is a list of field names (e.g. "DefaultValue") to include
4202	// in API requests with the JSON null value. By default, fields with
4203	// empty values are omitted from API requests. However, any field with
4204	// an empty value appearing in NullFields will be sent to the server as
4205	// null. It is an error if a field in this list has a non-empty value.
4206	// This may be used to include null fields in Patch requests.
4207	NullFields []string `json:"-"`
4208}
4209
4210func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
4211	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
4212	raw := NoMethod(*s)
4213	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4214}
4215
4216// GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior:
4217// Configuration for how the filling of a parameter should be handled.
4218type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
4219	// InitialPromptFulfillment: Required. The fulfillment to provide the
4220	// initial prompt that the agent can present to the user in order to
4221	// fill the parameter.
4222	InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
4223
4224	// RepromptEventHandlers: The handlers for parameter-level events, used
4225	// to provide reprompt for the parameter or transition to a different
4226	// page/flow. The supported events are: * `sys.no-match-`, where N can
4227	// be from 1 to 6 * `sys.no-match-default` * `sys.no-input-`, where N
4228	// can be from 1 to 6 * `sys.no-input-default` * `sys.invalid-parameter`
4229	// `initial_prompt_fulfillment` provides the first prompt for the
4230	// parameter. If the user's response does not fill the parameter, a
4231	// no-match/no-input event will be triggered, and the fulfillment
4232	// associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
4233	// defined) will be called to provide a prompt. The
4234	// `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond
4235	// to the next no-match/no-input event, and so on. A
4236	// `sys.no-match-default` or `sys.no-input-default` handler will be used
4237	// to handle all following no-match/no-input events after all numbered
4238	// no-match/no-input handlers for the parameter are consumed. A
4239	// `sys.invalid-parameter` handler can be defined to handle the case
4240	// where the parameter values have been `invalidated` by webhook. For
4241	// example, if the user's response fill the parameter, however the
4242	// parameter was invalidated by webhook, the fulfillment associated with
4243	// the `sys.invalid-parameter` handler (if defined) will be called to
4244	// provide a prompt. If the event handler for the corresponding event
4245	// can't be found on the parameter, `initial_prompt_fulfillment` will be
4246	// re-prompted.
4247	RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
4248
4249	// ForceSendFields is a list of field names (e.g.
4250	// "InitialPromptFulfillment") to unconditionally include in API
4251	// requests. By default, fields with empty values are omitted from API
4252	// requests. However, any non-pointer, non-interface field appearing in
4253	// ForceSendFields will be sent to the server regardless of whether the
4254	// field is empty or not. This may be used to include empty fields in
4255	// Patch requests.
4256	ForceSendFields []string `json:"-"`
4257
4258	// NullFields is a list of field names (e.g. "InitialPromptFulfillment")
4259	// to include in API requests with the JSON null value. By default,
4260	// fields with empty values are omitted from API requests. However, any
4261	// field with an empty value appearing in NullFields will be sent to the
4262	// server as null. It is an error if a field in this list has a
4263	// non-empty value. This may be used to include null fields in Patch
4264	// requests.
4265	NullFields []string `json:"-"`
4266}
4267
4268func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
4269	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
4270	raw := NoMethod(*s)
4271	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4272}
4273
4274// GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one
4275// or more of the following actions at the same time: * Generate rich
4276// message responses. * Set parameter values. * Call the webhook.
4277// Fulfillments can be called at various stages in the Page or Form
4278// lifecycle. For example, when a DetectIntentRequest drives a session
4279// to enter a new page, the page's entry fulfillment can add a static
4280// response to the QueryResult in the returning DetectIntentResponse,
4281// call the webhook (for example, to load user data from a database), or
4282// both.
4283type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
4284	// ConditionalCases: Conditional cases for this fulfillment.
4285	ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
4286
4287	// Messages: The list of rich message responses to present to the user.
4288	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
4289
4290	// SetParameterActions: Set parameter values before executing the
4291	// webhook.
4292	SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
4293
4294	// Tag: The tag used by the webhook to identify which fulfillment is
4295	// being called. This field is required if `webhook` is specified.
4296	Tag string `json:"tag,omitempty"`
4297
4298	// Webhook: The webhook to call. Format:
4299	// `projects//locations//agents//webhooks/`.
4300	Webhook string `json:"webhook,omitempty"`
4301
4302	// ForceSendFields is a list of field names (e.g. "ConditionalCases") to
4303	// unconditionally include in API requests. By default, fields with
4304	// empty values are omitted from API requests. However, any non-pointer,
4305	// non-interface field appearing in ForceSendFields will be sent to the
4306	// server regardless of whether the field is empty or not. This may be
4307	// used to include empty fields in Patch requests.
4308	ForceSendFields []string `json:"-"`
4309
4310	// NullFields is a list of field names (e.g. "ConditionalCases") to
4311	// include in API requests with the JSON null value. By default, fields
4312	// with empty values are omitted from API requests. However, any field
4313	// with an empty value appearing in NullFields will be sent to the
4314	// server as null. It is an error if a field in this list has a
4315	// non-empty value. This may be used to include null fields in Patch
4316	// requests.
4317	NullFields []string `json:"-"`
4318}
4319
4320func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
4321	type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
4322	raw := NoMethod(*s)
4323	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4324}
4325
4326// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list of
4327// cascading if-else conditions. Cases are mutually exclusive. The first
4328// one with a matching condition is selected, all the rest ignored.
4329type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
4330	// Cases: A list of cascading if-else conditions.
4331	Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
4332
4333	// ForceSendFields is a list of field names (e.g. "Cases") to
4334	// unconditionally include in API requests. By default, fields with
4335	// empty values are omitted from API requests. However, any non-pointer,
4336	// non-interface field appearing in ForceSendFields will be sent to the
4337	// server regardless of whether the field is empty or not. This may be
4338	// used to include empty fields in Patch requests.
4339	ForceSendFields []string `json:"-"`
4340
4341	// NullFields is a list of field names (e.g. "Cases") to include in API
4342	// requests with the JSON null value. By default, fields with empty
4343	// values are omitted from API requests. However, any field with an
4344	// empty value appearing in NullFields will be sent to the server as
4345	// null. It is an error if a field in this list has a non-empty value.
4346	// This may be used to include null fields in Patch requests.
4347	NullFields []string `json:"-"`
4348}
4349
4350func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
4351	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
4352	raw := NoMethod(*s)
4353	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4354}
4355
4356// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each
4357// case has a Boolean condition. When it is evaluated to be True, the
4358// corresponding messages will be selected and evaluated recursively.
4359type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
4360	// CaseContent: A list of case content.
4361	CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
4362
4363	// Condition: The condition to activate and select this case. Empty
4364	// means the condition is always true. The condition is evaluated
4365	// against form parameters or session parameters. See the conditions
4366	// reference
4367	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
4368	Condition string `json:"condition,omitempty"`
4369
4370	// ForceSendFields is a list of field names (e.g. "CaseContent") to
4371	// unconditionally include in API requests. By default, fields with
4372	// empty values are omitted from API requests. However, any non-pointer,
4373	// non-interface field appearing in ForceSendFields will be sent to the
4374	// server regardless of whether the field is empty or not. This may be
4375	// used to include empty fields in Patch requests.
4376	ForceSendFields []string `json:"-"`
4377
4378	// NullFields is a list of field names (e.g. "CaseContent") to include
4379	// in API requests with the JSON null value. By default, fields with
4380	// empty values are omitted from API requests. However, any field with
4381	// an empty value appearing in NullFields will be sent to the server as
4382	// null. It is an error if a field in this list has a non-empty value.
4383	// This may be used to include null fields in Patch requests.
4384	NullFields []string `json:"-"`
4385}
4386
4387func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
4388	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
4389	raw := NoMethod(*s)
4390	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4391}
4392
4393// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseConte
4394// nt: The list of messages or conditional cases to activate for this
4395// case.
4396type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
4397	// AdditionalCases: Additional cases to be evaluated.
4398	AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
4399
4400	// Message: Returned message.
4401	Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
4402
4403	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
4404	// unconditionally include in API requests. By default, fields with
4405	// empty values are omitted from API requests. However, any non-pointer,
4406	// non-interface field appearing in ForceSendFields will be sent to the
4407	// server regardless of whether the field is empty or not. This may be
4408	// used to include empty fields in Patch requests.
4409	ForceSendFields []string `json:"-"`
4410
4411	// NullFields is a list of field names (e.g. "AdditionalCases") to
4412	// include in API requests with the JSON null value. By default, fields
4413	// with empty values are omitted from API requests. However, any field
4414	// with an empty value appearing in NullFields will be sent to the
4415	// server as null. It is an error if a field in this list has a
4416	// non-empty value. This may be used to include null fields in Patch
4417	// requests.
4418	NullFields []string `json:"-"`
4419}
4420
4421func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
4422	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
4423	raw := NoMethod(*s)
4424	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4425}
4426
4427// GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting
4428// a parameter value.
4429type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
4430	// Parameter: Display name of the parameter.
4431	Parameter string `json:"parameter,omitempty"`
4432
4433	// Value: The new value of the parameter. A null value clears the
4434	// parameter.
4435	Value interface{} `json:"value,omitempty"`
4436
4437	// ForceSendFields is a list of field names (e.g. "Parameter") to
4438	// unconditionally include in API requests. By default, fields with
4439	// empty values are omitted from API requests. However, any non-pointer,
4440	// non-interface field appearing in ForceSendFields will be sent to the
4441	// server regardless of whether the field is empty or not. This may be
4442	// used to include empty fields in Patch requests.
4443	ForceSendFields []string `json:"-"`
4444
4445	// NullFields is a list of field names (e.g. "Parameter") to include in
4446	// API requests with the JSON null value. By default, fields with empty
4447	// values are omitted from API requests. However, any field with an
4448	// empty value appearing in NullFields will be sent to the server as
4449	// null. It is an error if a field in this list has a non-empty value.
4450	// This may be used to include null fields in Patch requests.
4451	NullFields []string `json:"-"`
4452}
4453
4454func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
4455	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
4456	raw := NoMethod(*s)
4457	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4458}
4459
4460// GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata:
4461// Metadata in google::longrunning::Operation for Knowledge operations.
4462type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
4463	// State: Required. Output only. The current state of this operation.
4464	//
4465	// Possible values:
4466	//   "STATE_UNSPECIFIED" - State unspecified.
4467	//   "PENDING" - The operation has been created.
4468	//   "RUNNING" - The operation is currently running.
4469	//   "DONE" - The operation is done, either cancelled or completed.
4470	State string `json:"state,omitempty"`
4471
4472	// ForceSendFields is a list of field names (e.g. "State") to
4473	// unconditionally include in API requests. By default, fields with
4474	// empty values are omitted from API requests. However, any non-pointer,
4475	// non-interface field appearing in ForceSendFields will be sent to the
4476	// server regardless of whether the field is empty or not. This may be
4477	// used to include empty fields in Patch requests.
4478	ForceSendFields []string `json:"-"`
4479
4480	// NullFields is a list of field names (e.g. "State") to include in API
4481	// requests with the JSON null value. By default, fields with empty
4482	// values are omitted from API requests. However, any field with an
4483	// empty value appearing in NullFields will be sent to the server as
4484	// null. It is an error if a field in this list has a non-empty value.
4485	// This may be used to include null fields in Patch requests.
4486	NullFields []string `json:"-"`
4487}
4488
4489func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
4490	type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
4491	raw := NoMethod(*s)
4492	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4493}
4494
4495// GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata:
4496// Metadata for ImportDocuments operation.
4497type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
4498	// GenericMetadata: The generic information of the operation.
4499	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4500
4501	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
4502	// unconditionally include in API requests. By default, fields with
4503	// empty values are omitted from API requests. However, any non-pointer,
4504	// non-interface field appearing in ForceSendFields will be sent to the
4505	// server regardless of whether the field is empty or not. This may be
4506	// used to include empty fields in Patch requests.
4507	ForceSendFields []string `json:"-"`
4508
4509	// NullFields is a list of field names (e.g. "GenericMetadata") to
4510	// include in API requests with the JSON null value. By default, fields
4511	// with empty values are omitted from API requests. However, any field
4512	// with an empty value appearing in NullFields will be sent to the
4513	// server as null. It is an error if a field in this list has a
4514	// non-empty value. This may be used to include null fields in Patch
4515	// requests.
4516	NullFields []string `json:"-"`
4517}
4518
4519func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
4520	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
4521	raw := NoMethod(*s)
4522	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4523}
4524
4525// GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse: Response
4526// message for Documents.ImportDocuments.
4527type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
4528	// Warnings: Includes details about skipped documents or any other
4529	// warnings.
4530	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
4531
4532	// ForceSendFields is a list of field names (e.g. "Warnings") to
4533	// unconditionally include in API requests. By default, fields with
4534	// empty values are omitted from API requests. However, any non-pointer,
4535	// non-interface field appearing in ForceSendFields will be sent to the
4536	// server regardless of whether the field is empty or not. This may be
4537	// used to include empty fields in Patch requests.
4538	ForceSendFields []string `json:"-"`
4539
4540	// NullFields is a list of field names (e.g. "Warnings") to include in
4541	// API requests with the JSON null value. By default, fields with empty
4542	// values are omitted from API requests. However, any field with an
4543	// empty value appearing in NullFields will be sent to the server as
4544	// null. It is an error if a field in this list has a non-empty value.
4545	// This may be used to include null fields in Patch requests.
4546	NullFields []string `json:"-"`
4547}
4548
4549func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
4550	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
4551	raw := NoMethod(*s)
4552	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4553}
4554
4555// GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response
4556// message for Flows.ImportFlow.
4557type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
4558	// Flow: The unique identifier of the new flow. Format:
4559	// `projects//locations//agents//flows/`.
4560	Flow string `json:"flow,omitempty"`
4561
4562	// ForceSendFields is a list of field names (e.g. "Flow") to
4563	// unconditionally include in API requests. By default, fields with
4564	// empty values are omitted from API requests. However, any non-pointer,
4565	// non-interface field appearing in ForceSendFields will be sent to the
4566	// server regardless of whether the field is empty or not. This may be
4567	// used to include empty fields in Patch requests.
4568	ForceSendFields []string `json:"-"`
4569
4570	// NullFields is a list of field names (e.g. "Flow") to include in API
4571	// requests with the JSON null value. By default, fields with empty
4572	// values are omitted from API requests. However, any field with an
4573	// empty value appearing in NullFields will be sent to the server as
4574	// null. It is an error if a field in this list has a non-empty value.
4575	// This may be used to include null fields in Patch requests.
4576	NullFields []string `json:"-"`
4577}
4578
4579func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
4580	type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
4581	raw := NoMethod(*s)
4582	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4583}
4584
4585// GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata
4586// returned for the TestCases.ImportTestCases long running operation.
4587type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
4588	// Errors: Errors for failed test cases.
4589	Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
4590
4591	// ForceSendFields is a list of field names (e.g. "Errors") to
4592	// unconditionally include in API requests. By default, fields with
4593	// empty values are omitted from API requests. However, any non-pointer,
4594	// non-interface field appearing in ForceSendFields will be sent to the
4595	// server regardless of whether the field is empty or not. This may be
4596	// used to include empty fields in Patch requests.
4597	ForceSendFields []string `json:"-"`
4598
4599	// NullFields is a list of field names (e.g. "Errors") to include in API
4600	// requests with the JSON null value. By default, fields with empty
4601	// values are omitted from API requests. However, any field with an
4602	// empty value appearing in NullFields will be sent to the server as
4603	// null. It is an error if a field in this list has a non-empty value.
4604	// This may be used to include null fields in Patch requests.
4605	NullFields []string `json:"-"`
4606}
4607
4608func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
4609	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
4610	raw := NoMethod(*s)
4611	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4612}
4613
4614// GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse: The response
4615// message for TestCases.ImportTestCases.
4616type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
4617	// Names: The unique identifiers of the new test cases. Format:
4618	// `projects//locations//agents//testCases/`.
4619	Names []string `json:"names,omitempty"`
4620
4621	// ForceSendFields is a list of field names (e.g. "Names") to
4622	// unconditionally include in API requests. By default, fields with
4623	// empty values are omitted from API requests. However, any non-pointer,
4624	// non-interface field appearing in ForceSendFields will be sent to the
4625	// server regardless of whether the field is empty or not. This may be
4626	// used to include empty fields in Patch requests.
4627	ForceSendFields []string `json:"-"`
4628
4629	// NullFields is a list of field names (e.g. "Names") to include in API
4630	// requests with the JSON null value. By default, fields with empty
4631	// values are omitted from API requests. However, any field with an
4632	// empty value appearing in NullFields will be sent to the server as
4633	// null. It is an error if a field in this list has a non-empty value.
4634	// This may be used to include null fields in Patch requests.
4635	NullFields []string `json:"-"`
4636}
4637
4638func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
4639	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
4640	raw := NoMethod(*s)
4641	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4642}
4643
4644// GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speech
4645// recognizer on how to process the audio content.
4646type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
4647	// AudioEncoding: Required. Audio encoding of the audio content to
4648	// process.
4649	//
4650	// Possible values:
4651	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
4652	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
4653	// little-endian samples (Linear PCM).
4654	//   "AUDIO_ENCODING_FLAC" -
4655	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
4656	// Audio Codec) is the recommended encoding because it is lossless
4657	// (therefore recognition is not compromised) and requires only about
4658	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
4659	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
4660	// are supported.
4661	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
4662	// samples using G.711 PCMU/mu-law.
4663	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
4664	// `sample_rate_hertz` must be 8000.
4665	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
4666	// `sample_rate_hertz` must be 16000.
4667	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
4668	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
4669	// `sample_rate_hertz` must be 16000.
4670	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
4671	// encodings is not recommended, if a very low bitrate encoding is
4672	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
4673	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
4674	// a header byte in each block, as in MIME type
4675	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
4676	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
4677	// The stream is a sequence of blocks, one block per RTP packet. Each
4678	// block starts with a byte containing the length of the block, in
4679	// bytes, followed by one or more frames of Speex data, padded to an
4680	// integral number of bytes (octets) as specified in RFC 5574. In other
4681	// words, each RTP header is replaced with a single byte containing the
4682	// block length. Only Speex wideband is supported. `sample_rate_hertz`
4683	// must be 16000.
4684	AudioEncoding string `json:"audioEncoding,omitempty"`
4685
4686	// EnableWordInfo: Optional. If `true`, Dialogflow returns
4687	// SpeechWordInfo in StreamingRecognitionResult with information about
4688	// the recognized speech words, e.g. start and end time offsets. If
4689	// false or unspecified, Speech doesn't return any word-level
4690	// information.
4691	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
4692
4693	// Model: Optional. Which Speech model to select for the given request.
4694	// Select the model best suited to your domain to get best results. If a
4695	// model is not explicitly specified, then we auto-select a model based
4696	// on the parameters in the InputAudioConfig. If enhanced speech model
4697	// is enabled for the agent and an enhanced version of the specified
4698	// model for the language does not exist, then the speech is recognized
4699	// using the standard version of the specified model. Refer to Cloud
4700	// Speech API documentation
4701	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
4702	// for more details.
4703	Model string `json:"model,omitempty"`
4704
4705	// ModelVariant: Optional. Which variant of the Speech model to use.
4706	//
4707	// Possible values:
4708	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
4709	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
4710	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
4711	// model that the caller is eligible for. Please see the [Dialogflow
4712	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
4713	// to make your project eligible for enhanced models.
4714	//   "USE_STANDARD" - Use standard model variant even if an enhanced
4715	// model is available. See the [Cloud Speech
4716	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
4717	// odels) for details about enhanced models.
4718	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
4719	// variant does not exist for the given model and request language,
4720	// Dialogflow falls back to the standard variant. The [Cloud Speech
4721	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
4722	// odels) describes which models have enhanced variants. * If the API
4723	// caller isn't eligible for enhanced models, Dialogflow returns an
4724	// error. Please see the [Dialogflow
4725	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
4726	// to make your project eligible.
4727	ModelVariant string `json:"modelVariant,omitempty"`
4728
4729	// PhraseHints: Optional. A list of strings containing words and phrases
4730	// that the speech recognizer should recognize with higher likelihood.
4731	// See the Cloud Speech documentation
4732	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
4733	// for more details.
4734	PhraseHints []string `json:"phraseHints,omitempty"`
4735
4736	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in
4737	// the query. Refer to Cloud Speech API documentation
4738	// (https://cloud.google.com/speech-to-text/docs/basics) for more
4739	// details.
4740	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
4741
4742	// SingleUtterance: Optional. If `false` (default), recognition does not
4743	// cease until the client closes the stream. If `true`, the recognizer
4744	// will detect a single spoken utterance in input audio. Recognition
4745	// ceases when it detects the audio's voice has stopped or paused. In
4746	// this case, once a detected intent is received, the client should
4747	// close the stream and start a new request with a new stream as needed.
4748	// Note: This setting is relevant only for streaming methods.
4749	SingleUtterance bool `json:"singleUtterance,omitempty"`
4750
4751	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
4752	// unconditionally include in API requests. By default, fields with
4753	// empty values are omitted from API requests. However, any non-pointer,
4754	// non-interface field appearing in ForceSendFields will be sent to the
4755	// server regardless of whether the field is empty or not. This may be
4756	// used to include empty fields in Patch requests.
4757	ForceSendFields []string `json:"-"`
4758
4759	// NullFields is a list of field names (e.g. "AudioEncoding") to include
4760	// in API requests with the JSON null value. By default, fields with
4761	// empty values are omitted from API requests. However, any field with
4762	// an empty value appearing in NullFields will be sent to the server as
4763	// null. It is an error if a field in this list has a non-empty value.
4764	// This may be used to include null fields in Patch requests.
4765	NullFields []string `json:"-"`
4766}
4767
4768func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
4769	type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
4770	raw := NoMethod(*s)
4771	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4772}
4773
4774// GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's
4775// intent to interact with a conversational agent. You can provide
4776// information for the Dialogflow API to use to match user input to an
4777// intent by adding training phrases (i.e., examples of user input) to
4778// your intent.
4779type GoogleCloudDialogflowCxV3beta1Intent struct {
4780	// Description: Human readable description for better understanding an
4781	// intent like its scope, content, result etc. Maximum character limit:
4782	// 140 characters.
4783	Description string `json:"description,omitempty"`
4784
4785	// DisplayName: Required. The human-readable name of the intent, unique
4786	// within the agent.
4787	DisplayName string `json:"displayName,omitempty"`
4788
4789	// IsFallback: Indicates whether this is a fallback intent. Currently
4790	// only default fallback intent is allowed in the agent, which is added
4791	// upon agent creation. Adding training phrases to fallback intent is
4792	// useful in the case of requests that are mistakenly matched, since
4793	// training phrases assigned to fallback intents act as negative
4794	// examples that triggers no-match event.
4795	IsFallback bool `json:"isFallback,omitempty"`
4796
4797	// Labels: The key/value metadata to label an intent. Labels can contain
4798	// lowercase letters, digits and the symbols '-' and '_'. International
4799	// characters are allowed, including letters from unicase alphabets.
4800	// Keys must start with a letter. Keys and values can be no longer than
4801	// 63 characters and no more than 128 bytes. Prefix "sys-" is reserved
4802	// for Dialogflow defined labels. Currently allowed Dialogflow defined
4803	// labels include: * sys-head * sys-contextual The above labels do not
4804	// require value. "sys-head" means the intent is a head intent.
4805	// "sys-contextual" means the intent is a contextual intent.
4806	Labels map[string]string `json:"labels,omitempty"`
4807
4808	// Name: The unique identifier of the intent. Required for the
4809	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
4810	// automatically. Format: `projects//locations//agents//intents/`.
4811	Name string `json:"name,omitempty"`
4812
4813	// Parameters: The collection of parameters associated with the intent.
4814	Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
4815
4816	// Priority: The priority of this intent. Higher numbers represent
4817	// higher priorities. - If the supplied value is unspecified or 0, the
4818	// service translates the value to 500,000, which corresponds to the
4819	// `Normal` priority in the console. - If the supplied value is
4820	// negative, the intent is ignored in runtime detect intent requests.
4821	Priority int64 `json:"priority,omitempty"`
4822
4823	// TrainingPhrases: The collection of training phrases the agent is
4824	// trained on to identify the intent.
4825	TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
4826
4827	// ForceSendFields is a list of field names (e.g. "Description") to
4828	// unconditionally include in API requests. By default, fields with
4829	// empty values are omitted from API requests. However, any non-pointer,
4830	// non-interface field appearing in ForceSendFields will be sent to the
4831	// server regardless of whether the field is empty or not. This may be
4832	// used to include empty fields in Patch requests.
4833	ForceSendFields []string `json:"-"`
4834
4835	// NullFields is a list of field names (e.g. "Description") to include
4836	// in API requests with the JSON null value. By default, fields with
4837	// empty values are omitted from API requests. However, any field with
4838	// an empty value appearing in NullFields will be sent to the server as
4839	// null. It is an error if a field in this list has a non-empty value.
4840	// This may be used to include null fields in Patch requests.
4841	NullFields []string `json:"-"`
4842}
4843
4844func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
4845	type NoMethod GoogleCloudDialogflowCxV3beta1Intent
4846	raw := NoMethod(*s)
4847	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4848}
4849
4850// GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to
4851// trigger programmatically rather than as a result of natural language
4852// processing.
4853type GoogleCloudDialogflowCxV3beta1IntentInput struct {
4854	// Intent: Required. The unique identifier of the intent. Format:
4855	// `projects//locations//agents//intents/`.
4856	Intent string `json:"intent,omitempty"`
4857
4858	// ForceSendFields is a list of field names (e.g. "Intent") to
4859	// unconditionally include in API requests. By default, fields with
4860	// empty values are omitted from API requests. However, any non-pointer,
4861	// non-interface field appearing in ForceSendFields will be sent to the
4862	// server regardless of whether the field is empty or not. This may be
4863	// used to include empty fields in Patch requests.
4864	ForceSendFields []string `json:"-"`
4865
4866	// NullFields is a list of field names (e.g. "Intent") to include in API
4867	// requests with the JSON null value. By default, fields with empty
4868	// values are omitted from API requests. However, any field with an
4869	// empty value appearing in NullFields will be sent to the server as
4870	// null. It is an error if a field in this list has a non-empty value.
4871	// This may be used to include null fields in Patch requests.
4872	NullFields []string `json:"-"`
4873}
4874
4875func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
4876	type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
4877	raw := NoMethod(*s)
4878	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4879}
4880
4881// GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intent
4882// parameter.
4883type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
4884	// EntityType: Required. The entity type of the parameter. Format:
4885	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
4886	// types (for example,
4887	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
4888	// `projects//locations//agents//entityTypes/` for developer entity
4889	// types.
4890	EntityType string `json:"entityType,omitempty"`
4891
4892	// Id: Required. The unique identifier of the parameter. This field is
4893	// used by training phrases to annotate their parts.
4894	Id string `json:"id,omitempty"`
4895
4896	// IsList: Indicates whether the parameter represents a list of values.
4897	IsList bool `json:"isList,omitempty"`
4898
4899	// Redact: Indicates whether the parameter content should be redacted in
4900	// log. If redaction is enabled, the parameter content will be replaced
4901	// by parameter name during logging. Note: the parameter content is
4902	// subject to redaction if either parameter level redaction or entity
4903	// type level redaction is enabled.
4904	Redact bool `json:"redact,omitempty"`
4905
4906	// ForceSendFields is a list of field names (e.g. "EntityType") to
4907	// unconditionally include in API requests. By default, fields with
4908	// empty values are omitted from API requests. However, any non-pointer,
4909	// non-interface field appearing in ForceSendFields will be sent to the
4910	// server regardless of whether the field is empty or not. This may be
4911	// used to include empty fields in Patch requests.
4912	ForceSendFields []string `json:"-"`
4913
4914	// NullFields is a list of field names (e.g. "EntityType") to include in
4915	// API requests with the JSON null value. By default, fields with empty
4916	// values are omitted from API requests. However, any field with an
4917	// empty value appearing in NullFields will be sent to the server as
4918	// null. It is an error if a field in this list has a non-empty value.
4919	// This may be used to include null fields in Patch requests.
4920	NullFields []string `json:"-"`
4921}
4922
4923func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
4924	type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
4925	raw := NoMethod(*s)
4926	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4927}
4928
4929// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an
4930// example that the agent is trained on to identify the intent.
4931type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
4932	// Id: Output only. The unique identifier of the training phrase.
4933	Id string `json:"id,omitempty"`
4934
4935	// Parts: Required. The ordered list of training phrase parts. The parts
4936	// are concatenated in order to form the training phrase. Note: The API
4937	// does not automatically annotate training phrases like the Dialogflow
4938	// Console does. Note: Do not forget to include whitespace at part
4939	// boundaries, so the training phrase is well formatted when the parts
4940	// are concatenated. If the training phrase does not need to be
4941	// annotated with parameters, you just need a single part with only the
4942	// Part.text field set. If you want to annotate the training phrase, you
4943	// must create multiple parts, where the fields of each part are
4944	// populated in one of two ways: - `Part.text` is set to a part of the
4945	// phrase that has no parameters. - `Part.text` is set to a part of the
4946	// phrase that you want to annotate, and the `parameter_id` field is
4947	// set.
4948	Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
4949
4950	// RepeatCount: Indicates how many times this example was added to the
4951	// intent.
4952	RepeatCount int64 `json:"repeatCount,omitempty"`
4953
4954	// ForceSendFields is a list of field names (e.g. "Id") to
4955	// unconditionally include in API requests. By default, fields with
4956	// empty values are omitted from API requests. However, any non-pointer,
4957	// non-interface field appearing in ForceSendFields will be sent to the
4958	// server regardless of whether the field is empty or not. This may be
4959	// used to include empty fields in Patch requests.
4960	ForceSendFields []string `json:"-"`
4961
4962	// NullFields is a list of field names (e.g. "Id") to include in API
4963	// requests with the JSON null value. By default, fields with empty
4964	// values are omitted from API requests. However, any field with an
4965	// empty value appearing in NullFields will be sent to the server as
4966	// null. It is an error if a field in this list has a non-empty value.
4967	// This may be used to include null fields in Patch requests.
4968	NullFields []string `json:"-"`
4969}
4970
4971func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
4972	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
4973	raw := NoMethod(*s)
4974	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4975}
4976
4977// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a
4978// part of a training phrase.
4979type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
4980	// ParameterId: The parameter used to annotate this part of the training
4981	// phrase. This field is required for annotated parts of the training
4982	// phrase.
4983	ParameterId string `json:"parameterId,omitempty"`
4984
4985	// Text: Required. The text for this part.
4986	Text string `json:"text,omitempty"`
4987
4988	// ForceSendFields is a list of field names (e.g. "ParameterId") to
4989	// unconditionally include in API requests. By default, fields with
4990	// empty values are omitted from API requests. However, any non-pointer,
4991	// non-interface field appearing in ForceSendFields will be sent to the
4992	// server regardless of whether the field is empty or not. This may be
4993	// used to include empty fields in Patch requests.
4994	ForceSendFields []string `json:"-"`
4995
4996	// NullFields is a list of field names (e.g. "ParameterId") to include
4997	// in API requests with the JSON null value. By default, fields with
4998	// empty values are omitted from API requests. However, any field with
4999	// an empty value appearing in NullFields will be sent to the server as
5000	// null. It is an error if a field in this list has a non-empty value.
5001	// This may be used to include null fields in Patch requests.
5002	NullFields []string `json:"-"`
5003}
5004
5005func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
5006	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
5007	raw := NoMethod(*s)
5008	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5009}
5010
5011// GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation
5012// (session) can be described and visualized as a state machine. The
5013// states of a CX session are represented by pages. For each flow, you
5014// define many pages, where your combined pages can handle a complete
5015// conversation on the topics the flow is designed for. At any given
5016// moment, exactly one page is the current page, the current page is
5017// considered active, and the flow associated with that page is
5018// considered active. Every flow has a special start page. When a flow
5019// initially becomes active, the start page page becomes the current
5020// page. For each conversational turn, the current page will either stay
5021// the same or transition to another page. You configure each page to
5022// collect information from the end-user that is relevant for the
5023// conversational state represented by the page. For more information,
5024// see the Page guide
5025// (https://cloud.google.com/dialogflow/cx/docs/concept/page).
5026type GoogleCloudDialogflowCxV3beta1Page struct {
5027	// DisplayName: Required. The human-readable name of the page, unique
5028	// within the agent.
5029	DisplayName string `json:"displayName,omitempty"`
5030
5031	// EntryFulfillment: The fulfillment to call when the session is
5032	// entering the page.
5033	EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
5034
5035	// EventHandlers: Handlers associated with the page to handle events
5036	// such as webhook errors, no match or no input.
5037	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
5038
5039	// Form: The form associated with the page, used for collecting
5040	// parameters relevant to the page.
5041	Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
5042
5043	// Name: The unique identifier of the page. Required for the
5044	// Pages.UpdatePage method. Pages.CreatePage populates the name
5045	// automatically. Format: `projects//locations//agents//flows//pages/`.
5046	Name string `json:"name,omitempty"`
5047
5048	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups`
5049	// associated with the page. Transition route groups must be unique
5050	// within a page. * If multiple transition routes within a page scope
5051	// refer to the same intent, then the precedence order is: page's
5052	// transition route -> page's transition route group -> flow's
5053	// transition routes. * If multiple transition route groups within a
5054	// page contain the same intent, then the first group in the ordered
5055	// list takes precedence.
5056	// Format:`projects//locations//agents//flows//transitionRouteGroups/`.
5057	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
5058
5059	// TransitionRoutes: A list of transitions for the transition rules of
5060	// this page. They route the conversation to another page in the same
5061	// flow, or another flow. When we are in a certain page, the
5062	// TransitionRoutes are evalauted in the following order: *
5063	// TransitionRoutes defined in the page with intent specified. *
5064	// TransitionRoutes defined in the transition route groups with intent
5065	// specified. * TransitionRoutes defined in flow with intent specified.
5066	// * TransitionRoutes defined in the transition route groups with intent
5067	// specified. * TransitionRoutes defined in the page with only condition
5068	// specified. * TransitionRoutes defined in the transition route groups
5069	// with only condition specified.
5070	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
5071
5072	// ForceSendFields is a list of field names (e.g. "DisplayName") to
5073	// unconditionally include in API requests. By default, fields with
5074	// empty values are omitted from API requests. However, any non-pointer,
5075	// non-interface field appearing in ForceSendFields will be sent to the
5076	// server regardless of whether the field is empty or not. This may be
5077	// used to include empty fields in Patch requests.
5078	ForceSendFields []string `json:"-"`
5079
5080	// NullFields is a list of field names (e.g. "DisplayName") to include
5081	// in API requests with the JSON null value. By default, fields with
5082	// empty values are omitted from API requests. However, any field with
5083	// an empty value appearing in NullFields will be sent to the server as
5084	// null. It is an error if a field in this list has a non-empty value.
5085	// This may be used to include null fields in Patch requests.
5086	NullFields []string `json:"-"`
5087}
5088
5089func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
5090	type NoMethod GoogleCloudDialogflowCxV3beta1Page
5091	raw := NoMethod(*s)
5092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5093}
5094
5095// GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information
5096// communicated to and from the webhook.
5097type GoogleCloudDialogflowCxV3beta1PageInfo struct {
5098	// CurrentPage: Always present for WebhookRequest. Ignored for
5099	// WebhookResponse. The unique identifier of the current page. Format:
5100	// `projects//locations//agents//flows//pages/`.
5101	CurrentPage string `json:"currentPage,omitempty"`
5102
5103	// FormInfo: Optional for both WebhookRequest and WebhookResponse.
5104	// Information about the form.
5105	FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
5106
5107	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
5108	// unconditionally include in API requests. By default, fields with
5109	// empty values are omitted from API requests. However, any non-pointer,
5110	// non-interface field appearing in ForceSendFields will be sent to the
5111	// server regardless of whether the field is empty or not. This may be
5112	// used to include empty fields in Patch requests.
5113	ForceSendFields []string `json:"-"`
5114
5115	// NullFields is a list of field names (e.g. "CurrentPage") to include
5116	// in API requests with the JSON null value. By default, fields with
5117	// empty values are omitted from API requests. However, any field with
5118	// an empty value appearing in NullFields will be sent to the server as
5119	// null. It is an error if a field in this list has a non-empty value.
5120	// This may be used to include null fields in Patch requests.
5121	NullFields []string `json:"-"`
5122}
5123
5124func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
5125	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
5126	raw := NoMethod(*s)
5127	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5128}
5129
5130// GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form
5131// information.
5132type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
5133	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse.
5134	// The parameters contained in the form. Note that the webhook cannot
5135	// add or remove any form parameter.
5136	ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
5137
5138	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
5139	// unconditionally include in API requests. By default, fields with
5140	// empty values are omitted from API requests. However, any non-pointer,
5141	// non-interface field appearing in ForceSendFields will be sent to the
5142	// server regardless of whether the field is empty or not. This may be
5143	// used to include empty fields in Patch requests.
5144	ForceSendFields []string `json:"-"`
5145
5146	// NullFields is a list of field names (e.g. "ParameterInfo") to include
5147	// in API requests with the JSON null value. By default, fields with
5148	// empty values are omitted from API requests. However, any field with
5149	// an empty value appearing in NullFields will be sent to the server as
5150	// null. It is an error if a field in this list has a non-empty value.
5151	// This may be used to include null fields in Patch requests.
5152	NullFields []string `json:"-"`
5153}
5154
5155func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
5156	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
5157	raw := NoMethod(*s)
5158	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5159}
5160
5161// GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo:
5162// Represents parameter information.
5163type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
5164	// DisplayName: Always present for WebhookRequest. Required for
5165	// WebhookResponse. The human-readable name of the parameter, unique
5166	// within the form. This field cannot be modified by the webhook.
5167	DisplayName string `json:"displayName,omitempty"`
5168
5169	// JustCollected: Optional for WebhookRequest. Ignored for
5170	// WebhookResponse. Indicates if the parameter value was just collected
5171	// on the last conversation turn.
5172	JustCollected bool `json:"justCollected,omitempty"`
5173
5174	// Required: Optional for both WebhookRequest and WebhookResponse.
5175	// Indicates whether the parameter is required. Optional parameters will
5176	// not trigger prompts; however, they are filled if the user specifies
5177	// them. Required parameters must be filled before form filling
5178	// concludes.
5179	Required bool `json:"required,omitempty"`
5180
5181	// State: Always present for WebhookRequest. Required for
5182	// WebhookResponse. The state of the parameter. This field can be set to
5183	// INVALID by the webhook to invalidate the parameter; other values set
5184	// by the webhook will be ignored.
5185	//
5186	// Possible values:
5187	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be
5188	// never used.
5189	//   "EMPTY" - Indicates that the parameter does not have a value.
5190	//   "INVALID" - Indicates that the parameter value is invalid. This
5191	// field can be used by the webhook to invalidate the parameter and ask
5192	// the server to collect it from the user again.
5193	//   "FILLED" - Indicates that the parameter has a value.
5194	State string `json:"state,omitempty"`
5195
5196	// Value: Optional for both WebhookRequest and WebhookResponse. The
5197	// value of the parameter. This field can be set by the webhook to
5198	// change the parameter value.
5199	Value interface{} `json:"value,omitempty"`
5200
5201	// ForceSendFields is a list of field names (e.g. "DisplayName") to
5202	// unconditionally include in API requests. By default, fields with
5203	// empty values are omitted from API requests. However, any non-pointer,
5204	// non-interface field appearing in ForceSendFields will be sent to the
5205	// server regardless of whether the field is empty or not. This may be
5206	// used to include empty fields in Patch requests.
5207	ForceSendFields []string `json:"-"`
5208
5209	// NullFields is a list of field names (e.g. "DisplayName") to include
5210	// in API requests with the JSON null value. By default, fields with
5211	// empty values are omitted from API requests. However, any field with
5212	// an empty value appearing in NullFields will be sent to the server as
5213	// null. It is an error if a field in this list has a non-empty value.
5214	// This may be used to include null fields in Patch requests.
5215	NullFields []string `json:"-"`
5216}
5217
5218func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
5219	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
5220	raw := NoMethod(*s)
5221	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5222}
5223
5224// GoogleCloudDialogflowCxV3beta1QueryInput: Represents the query input.
5225// It can contain one of: 1. A conversational query in the form of text.
5226// 2. An intent query that specifies which intent to trigger. 3. Natural
5227// language speech audio to be processed. 4. An event to be triggered.
5228type GoogleCloudDialogflowCxV3beta1QueryInput struct {
5229	// Audio: The natural language speech audio to be processed.
5230	Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
5231
5232	// Dtmf: The DTMF event to be handled.
5233	Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
5234
5235	// Event: The event to be triggered.
5236	Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
5237
5238	// Intent: The intent to be triggered.
5239	Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
5240
5241	// LanguageCode: Required. The language of the input. See Language
5242	// Support
5243	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
5244	// a list of the currently supported language codes. Note that queries
5245	// in the same session do not necessarily need to specify the same
5246	// language.
5247	LanguageCode string `json:"languageCode,omitempty"`
5248
5249	// Text: The natural language text to be processed.
5250	Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
5251
5252	// ForceSendFields is a list of field names (e.g. "Audio") to
5253	// unconditionally include in API requests. By default, fields with
5254	// empty values are omitted from API requests. However, any non-pointer,
5255	// non-interface field appearing in ForceSendFields will be sent to the
5256	// server regardless of whether the field is empty or not. This may be
5257	// used to include empty fields in Patch requests.
5258	ForceSendFields []string `json:"-"`
5259
5260	// NullFields is a list of field names (e.g. "Audio") to include in API
5261	// requests with the JSON null value. By default, fields with empty
5262	// values are omitted from API requests. However, any field with an
5263	// empty value appearing in NullFields will be sent to the server as
5264	// null. It is an error if a field in this list has a non-empty value.
5265	// This may be used to include null fields in Patch requests.
5266	NullFields []string `json:"-"`
5267}
5268
5269func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
5270	type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
5271	raw := NoMethod(*s)
5272	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5273}
5274
5275// GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata:
5276// Metadata for ReloadDocument operation.
5277type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
5278	// GenericMetadata: The generic information of the operation.
5279	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
5280
5281	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
5282	// unconditionally include in API requests. By default, fields with
5283	// empty values are omitted from API requests. However, any non-pointer,
5284	// non-interface field appearing in ForceSendFields will be sent to the
5285	// server regardless of whether the field is empty or not. This may be
5286	// used to include empty fields in Patch requests.
5287	ForceSendFields []string `json:"-"`
5288
5289	// NullFields is a list of field names (e.g. "GenericMetadata") to
5290	// include in API requests with the JSON null value. By default, fields
5291	// with empty values are omitted from API requests. However, any field
5292	// with an empty value appearing in NullFields will be sent to the
5293	// server as null. It is an error if a field in this list has a
5294	// non-empty value. This may be used to include null fields in Patch
5295	// requests.
5296	NullFields []string `json:"-"`
5297}
5298
5299func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
5300	type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
5301	raw := NoMethod(*s)
5302	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5303}
5304
5305// GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response
5306// message that can be returned by a conversational agent. Response
5307// messages are also used for output audio synthesis. The approach is as
5308// follows: * If at least one OutputAudioText response is present, then
5309// all OutputAudioText responses are linearly concatenated, and the
5310// result is used for output audio synthesis. * If the OutputAudioText
5311// responses are a mixture of text and SSML, then the concatenated
5312// result is treated as SSML; otherwise, the result is treated as either
5313// text or SSML as appropriate. The agent designer should ideally use
5314// either text or SSML consistently throughout the bot design. *
5315// Otherwise, all Text responses are linearly concatenated, and the
5316// result is used for output audio synthesis. This approach allows for
5317// more sophisticated user experience scenarios, where the text
5318// displayed to the user may differ from what is heard.
5319type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
5320	// ConversationSuccess: Indicates that the conversation succeeded.
5321	ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
5322
5323	// EndInteraction: Output only. A signal that indicates the interaction
5324	// with the Dialogflow agent has ended. This message is generated by
5325	// Dialogflow only when the conversation reaches `END_SESSION` page. It
5326	// is not supposed to be defined by the user. It's guaranteed that there
5327	// is at most one such message in each response.
5328	EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
5329
5330	// LiveAgentHandoff: Hands off conversation to a human agent.
5331	LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
5332
5333	// MixedAudio: Output only. An audio response message composed of both
5334	// the synthesized Dialogflow agent responses and responses defined via
5335	// play_audio. This message is generated by Dialogflow only and not
5336	// supposed to be defined by the user.
5337	MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
5338
5339	// OutputAudioText: A text or ssml response that is preferentially used
5340	// for TTS output audio synthesis, as described in the comment on the
5341	// ResponseMessage message.
5342	OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
5343
5344	// Payload: Returns a response containing a custom, platform-specific
5345	// payload.
5346	Payload googleapi.RawMessage `json:"payload,omitempty"`
5347
5348	// PlayAudio: Signal that the client should play an audio clip hosted at
5349	// a client-specific URI. Dialogflow uses this to construct mixed_audio.
5350	// However, Dialogflow itself does not try to read or process the URI in
5351	// any way.
5352	PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
5353
5354	// Text: Returns a text response.
5355	Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
5356
5357	// ForceSendFields is a list of field names (e.g. "ConversationSuccess")
5358	// to unconditionally include in API requests. By default, fields with
5359	// empty values are omitted from API requests. However, any non-pointer,
5360	// non-interface field appearing in ForceSendFields will be sent to the
5361	// server regardless of whether the field is empty or not. This may be
5362	// used to include empty fields in Patch requests.
5363	ForceSendFields []string `json:"-"`
5364
5365	// NullFields is a list of field names (e.g. "ConversationSuccess") to
5366	// include in API requests with the JSON null value. By default, fields
5367	// with empty values are omitted from API requests. However, any field
5368	// with an empty value appearing in NullFields will be sent to the
5369	// server as null. It is an error if a field in this list has a
5370	// non-empty value. This may be used to include null fields in Patch
5371	// requests.
5372	NullFields []string `json:"-"`
5373}
5374
5375func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
5376	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
5377	raw := NoMethod(*s)
5378	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5379}
5380
5381// GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess:
5382// Indicates that the conversation succeeded, i.e., the bot handled the
5383// issue that the customer talked to it about. Dialogflow only uses this
5384// to determine which conversations should be counted as successful and
5385// doesn't process the metadata in this message in any way. Note that
5386// Dialogflow also considers conversations that get to the conversation
5387// end page as successful even if they don't return ConversationSuccess.
5388// You may set this, for example: * In the entry_fulfillment of a Page
5389// if entering the page indicates that the conversation succeeded. * In
5390// a webhook response when you determine that you handled the customer
5391// issue.
5392type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
5393	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on
5394	// this.
5395	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
5396
5397	// ForceSendFields is a list of field names (e.g. "Metadata") to
5398	// unconditionally include in API requests. By default, fields with
5399	// empty values are omitted from API requests. However, any non-pointer,
5400	// non-interface field appearing in ForceSendFields will be sent to the
5401	// server regardless of whether the field is empty or not. This may be
5402	// used to include empty fields in Patch requests.
5403	ForceSendFields []string `json:"-"`
5404
5405	// NullFields is a list of field names (e.g. "Metadata") to include in
5406	// API requests with the JSON null value. By default, fields with empty
5407	// values are omitted from API requests. However, any field with an
5408	// empty value appearing in NullFields will be sent to the server as
5409	// null. It is an error if a field in this list has a non-empty value.
5410	// This may be used to include null fields in Patch requests.
5411	NullFields []string `json:"-"`
5412}
5413
5414func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
5415	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
5416	raw := NoMethod(*s)
5417	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5418}
5419
5420// GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction:
5421// Indicates that interaction with the Dialogflow agent has ended. This
5422// message is generated by Dialogflow only and not supposed to be
5423// defined by the user.
5424type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
5425}
5426
5427// GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff:
5428// Indicates that the conversation should be handed off to a live agent.
5429// Dialogflow only uses this to determine which conversations were
5430// handed off to a human agent for measurement purposes. What else to do
5431// with this signal is up to you and your handoff procedures. You may
5432// set this, for example: * In the entry_fulfillment of a Page if
5433// entering the page indicates something went extremely wrong in the
5434// conversation. * In a webhook response when you determine that the
5435// customer issue can only be handled by a human.
5436type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
5437	// Metadata: Custom metadata for your handoff procedure. Dialogflow
5438	// doesn't impose any structure on this.
5439	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
5440
5441	// ForceSendFields is a list of field names (e.g. "Metadata") to
5442	// unconditionally include in API requests. By default, fields with
5443	// empty values are omitted from API requests. However, any non-pointer,
5444	// non-interface field appearing in ForceSendFields will be sent to the
5445	// server regardless of whether the field is empty or not. This may be
5446	// used to include empty fields in Patch requests.
5447	ForceSendFields []string `json:"-"`
5448
5449	// NullFields is a list of field names (e.g. "Metadata") to include in
5450	// API requests with the JSON null value. By default, fields with empty
5451	// values are omitted from API requests. However, any field with an
5452	// empty value appearing in NullFields will be sent to the server as
5453	// null. It is an error if a field in this list has a non-empty value.
5454	// This may be used to include null fields in Patch requests.
5455	NullFields []string `json:"-"`
5456}
5457
5458func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
5459	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
5460	raw := NoMethod(*s)
5461	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5462}
5463
5464// GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents
5465// an audio message that is composed of both segments synthesized from
5466// the Dialogflow agent prompts and ones hosted externally at the
5467// specified URIs. The external URIs are specified via play_audio. This
5468// message is generated by Dialogflow only and not supposed to be
5469// defined by the user.
5470type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
5471	// Segments: Segments this audio response is composed of.
5472	Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
5473
5474	// ForceSendFields is a list of field names (e.g. "Segments") to
5475	// unconditionally include in API requests. By default, fields with
5476	// empty values are omitted from API requests. However, any non-pointer,
5477	// non-interface field appearing in ForceSendFields will be sent to the
5478	// server regardless of whether the field is empty or not. This may be
5479	// used to include empty fields in Patch requests.
5480	ForceSendFields []string `json:"-"`
5481
5482	// NullFields is a list of field names (e.g. "Segments") to include in
5483	// API requests with the JSON null value. By default, fields with empty
5484	// values are omitted from API requests. However, any field with an
5485	// empty value appearing in NullFields will be sent to the server as
5486	// null. It is an error if a field in this list has a non-empty value.
5487	// This may be used to include null fields in Patch requests.
5488	NullFields []string `json:"-"`
5489}
5490
5491func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
5492	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
5493	raw := NoMethod(*s)
5494	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5495}
5496
5497// GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment:
5498// Represents one segment of audio.
5499type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
5500	// AllowPlaybackInterruption: Output only. Whether the playback of this
5501	// segment can be interrupted by the end user's speech and the client
5502	// should then start the next Dialogflow request.
5503	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5504
5505	// Audio: Raw audio synthesized from the Dialogflow agent's response
5506	// using the output config specified in the request.
5507	Audio string `json:"audio,omitempty"`
5508
5509	// Uri: Client-specific URI that points to an audio clip accessible to
5510	// the client. Dialogflow does not impose any validation on it.
5511	Uri string `json:"uri,omitempty"`
5512
5513	// ForceSendFields is a list of field names (e.g.
5514	// "AllowPlaybackInterruption") to unconditionally include in API
5515	// requests. By default, fields with empty values are omitted from API
5516	// requests. However, any non-pointer, non-interface field appearing in
5517	// ForceSendFields will be sent to the server regardless of whether the
5518	// field is empty or not. This may be used to include empty fields in
5519	// Patch requests.
5520	ForceSendFields []string `json:"-"`
5521
5522	// NullFields is a list of field names (e.g.
5523	// "AllowPlaybackInterruption") to include in API requests with the JSON
5524	// null value. By default, fields with empty values are omitted from API
5525	// requests. However, any field with an empty value appearing in
5526	// NullFields will be sent to the server as null. It is an error if a
5527	// field in this list has a non-empty value. This may be used to include
5528	// null fields in Patch requests.
5529	NullFields []string `json:"-"`
5530}
5531
5532func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
5533	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
5534	raw := NoMethod(*s)
5535	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5536}
5537
5538// GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text
5539// or ssml response that is preferentially used for TTS output audio
5540// synthesis, as described in the comment on the ResponseMessage
5541// message.
5542type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
5543	// AllowPlaybackInterruption: Output only. Whether the playback of this
5544	// message can be interrupted by the end user's speech and the client
5545	// can then starts the next Dialogflow request.
5546	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5547
5548	// Ssml: The SSML text to be synthesized. For more information, see SSML
5549	// (/speech/text-to-speech/docs/ssml).
5550	Ssml string `json:"ssml,omitempty"`
5551
5552	// Text: The raw text to be synthesized.
5553	Text string `json:"text,omitempty"`
5554
5555	// ForceSendFields is a list of field names (e.g.
5556	// "AllowPlaybackInterruption") to unconditionally include in API
5557	// requests. By default, fields with empty values are omitted from API
5558	// requests. However, any non-pointer, non-interface field appearing in
5559	// ForceSendFields will be sent to the server regardless of whether the
5560	// field is empty or not. This may be used to include empty fields in
5561	// Patch requests.
5562	ForceSendFields []string `json:"-"`
5563
5564	// NullFields is a list of field names (e.g.
5565	// "AllowPlaybackInterruption") to include in API requests with the JSON
5566	// null value. By default, fields with empty values are omitted from API
5567	// requests. However, any field with an empty value appearing in
5568	// NullFields will be sent to the server as null. It is an error if a
5569	// field in this list has a non-empty value. This may be used to include
5570	// null fields in Patch requests.
5571	NullFields []string `json:"-"`
5572}
5573
5574func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
5575	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
5576	raw := NoMethod(*s)
5577	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5578}
5579
5580// GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an
5581// audio clip to be played by the client as part of the response.
5582type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
5583	// AllowPlaybackInterruption: Output only. Whether the playback of this
5584	// message can be interrupted by the end user's speech and the client
5585	// can then starts the next Dialogflow request.
5586	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5587
5588	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose
5589	// any validation on this value. It is specific to the client that reads
5590	// it.
5591	AudioUri string `json:"audioUri,omitempty"`
5592
5593	// ForceSendFields is a list of field names (e.g.
5594	// "AllowPlaybackInterruption") to unconditionally include in API
5595	// requests. By default, fields with empty values are omitted from API
5596	// requests. However, any non-pointer, non-interface field appearing in
5597	// ForceSendFields will be sent to the server regardless of whether the
5598	// field is empty or not. This may be used to include empty fields in
5599	// Patch requests.
5600	ForceSendFields []string `json:"-"`
5601
5602	// NullFields is a list of field names (e.g.
5603	// "AllowPlaybackInterruption") to include in API requests with the JSON
5604	// null value. By default, fields with empty values are omitted from API
5605	// requests. However, any field with an empty value appearing in
5606	// NullFields will be sent to the server as null. It is an error if a
5607	// field in this list has a non-empty value. This may be used to include
5608	// null fields in Patch requests.
5609	NullFields []string `json:"-"`
5610}
5611
5612func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
5613	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
5614	raw := NoMethod(*s)
5615	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5616}
5617
5618// GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response
5619// message.
5620type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
5621	// AllowPlaybackInterruption: Output only. Whether the playback of this
5622	// message can be interrupted by the end user's speech and the client
5623	// can then starts the next Dialogflow request.
5624	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
5625
5626	// Text: Required. A collection of text responses.
5627	Text []string `json:"text,omitempty"`
5628
5629	// ForceSendFields is a list of field names (e.g.
5630	// "AllowPlaybackInterruption") to unconditionally include in API
5631	// requests. By default, fields with empty values are omitted from API
5632	// requests. However, any non-pointer, non-interface field appearing in
5633	// ForceSendFields will be sent to the server regardless of whether the
5634	// field is empty or not. This may be used to include empty fields in
5635	// Patch requests.
5636	ForceSendFields []string `json:"-"`
5637
5638	// NullFields is a list of field names (e.g.
5639	// "AllowPlaybackInterruption") to include in API requests with the JSON
5640	// null value. By default, fields with empty values are omitted from API
5641	// requests. However, any field with an empty value appearing in
5642	// NullFields will be sent to the server as null. It is an error if a
5643	// field in this list has a non-empty value. This may be used to include
5644	// null fields in Patch requests.
5645	NullFields []string `json:"-"`
5646}
5647
5648func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
5649	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
5650	raw := NoMethod(*s)
5651	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5652}
5653
5654// GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata: Metadata returned
5655// for the TestCases.RunTestCase long running operation.
5656type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
5657}
5658
5659// GoogleCloudDialogflowCxV3beta1RunTestCaseResponse: The response
5660// message for TestCases.RunTestCase.
5661type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
5662	// Result: The result.
5663	Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
5664
5665	// ForceSendFields is a list of field names (e.g. "Result") to
5666	// unconditionally include in API requests. By default, fields with
5667	// empty values are omitted from API requests. However, any non-pointer,
5668	// non-interface field appearing in ForceSendFields will be sent to the
5669	// server regardless of whether the field is empty or not. This may be
5670	// used to include empty fields in Patch requests.
5671	ForceSendFields []string `json:"-"`
5672
5673	// NullFields is a list of field names (e.g. "Result") to include in API
5674	// requests with the JSON null value. By default, fields with empty
5675	// values are omitted from API requests. However, any field with an
5676	// empty value appearing in NullFields will be sent to the server as
5677	// null. It is an error if a field in this list has a non-empty value.
5678	// This may be used to include null fields in Patch requests.
5679	NullFields []string `json:"-"`
5680}
5681
5682func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
5683	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
5684	raw := NoMethod(*s)
5685	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5686}
5687
5688// GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session
5689// information communicated to and from the webhook.
5690type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
5691	// Parameters: Optional for WebhookRequest. Optional for
5692	// WebhookResponse. All parameters collected from forms and intents
5693	// during the session. Parameters can be created, updated, or removed by
5694	// the webhook. To remove a parameter from the session, the webhook
5695	// should explicitly set the parameter value to null in WebhookResponse.
5696	// The map is keyed by parameters' display names.
5697	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
5698
5699	// Session: Always present for WebhookRequest. Ignored for
5700	// WebhookResponse. The unique identifier of the session. This field can
5701	// be used by the webhook to identify a session. Format:
5702	// `projects//locations//agents//sessions/` or
5703	// `projects//locations//agents//environments//sessions/` if environment
5704	// is specified.
5705	Session string `json:"session,omitempty"`
5706
5707	// ForceSendFields is a list of field names (e.g. "Parameters") to
5708	// unconditionally include in API requests. By default, fields with
5709	// empty values are omitted from API requests. However, any non-pointer,
5710	// non-interface field appearing in ForceSendFields will be sent to the
5711	// server regardless of whether the field is empty or not. This may be
5712	// used to include empty fields in Patch requests.
5713	ForceSendFields []string `json:"-"`
5714
5715	// NullFields is a list of field names (e.g. "Parameters") to include in
5716	// API requests with the JSON null value. By default, fields with empty
5717	// values are omitted from API requests. However, any field with an
5718	// empty value appearing in NullFields will be sent to the server as
5719	// null. It is an error if a field in this list has a non-empty value.
5720	// This may be used to include null fields in Patch requests.
5721	NullFields []string `json:"-"`
5722}
5723
5724func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
5725	type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
5726	raw := NoMethod(*s)
5727	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5728}
5729
5730// GoogleCloudDialogflowCxV3beta1TestCase: Represents a test case.
5731type GoogleCloudDialogflowCxV3beta1TestCase struct {
5732	// CreationTime: Output only. When the test was created.
5733	CreationTime string `json:"creationTime,omitempty"`
5734
5735	// DisplayName: Required. The human-readable name of the test case,
5736	// unique within the agent. Limit of 200 characters.
5737	DisplayName string `json:"displayName,omitempty"`
5738
5739	// LastTestResult: The latest test result.
5740	LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
5741
5742	// Name: The unique identifier of the test case.
5743	// TestCases.CreateTestCase will populate the name automatically.
5744	// Otherwise use format: `projects//locations//agents/ /testCases/`.
5745	Name string `json:"name,omitempty"`
5746
5747	// Notes: Additional freeform notes about the test case. Limit of 400
5748	// characters.
5749	Notes string `json:"notes,omitempty"`
5750
5751	// Tags: Tags are short descriptions that users may apply to test cases
5752	// for organizational and filtering purposes. Each tag should start with
5753	// "#" and has a limit of 30 characters.
5754	Tags []string `json:"tags,omitempty"`
5755
5756	// TestCaseConversationTurns: The conversation turns uttered when the
5757	// test case was created, in chronological order. These include the
5758	// canonical set of agent utterances that should occur when the agent is
5759	// working properly.
5760	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
5761
5762	// TestConfig: Config for the test case.
5763	TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
5764
5765	// ForceSendFields is a list of field names (e.g. "CreationTime") to
5766	// unconditionally include in API requests. By default, fields with
5767	// empty values are omitted from API requests. However, any non-pointer,
5768	// non-interface field appearing in ForceSendFields will be sent to the
5769	// server regardless of whether the field is empty or not. This may be
5770	// used to include empty fields in Patch requests.
5771	ForceSendFields []string `json:"-"`
5772
5773	// NullFields is a list of field names (e.g. "CreationTime") to include
5774	// in API requests with the JSON null value. By default, fields with
5775	// empty values are omitted from API requests. However, any field with
5776	// an empty value appearing in NullFields will be sent to the server as
5777	// null. It is an error if a field in this list has a non-empty value.
5778	// This may be used to include null fields in Patch requests.
5779	NullFields []string `json:"-"`
5780}
5781
5782func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
5783	type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
5784	raw := NoMethod(*s)
5785	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5786}
5787
5788// GoogleCloudDialogflowCxV3beta1TestCaseError: Error info for importing
5789// a test.
5790type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
5791	// Status: The status associated with the test case.
5792	Status *GoogleRpcStatus `json:"status,omitempty"`
5793
5794	// TestCase: The test case.
5795	TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
5796
5797	// ForceSendFields is a list of field names (e.g. "Status") to
5798	// unconditionally include in API requests. By default, fields with
5799	// empty values are omitted from API requests. However, any non-pointer,
5800	// non-interface field appearing in ForceSendFields will be sent to the
5801	// server regardless of whether the field is empty or not. This may be
5802	// used to include empty fields in Patch requests.
5803	ForceSendFields []string `json:"-"`
5804
5805	// NullFields is a list of field names (e.g. "Status") to include in API
5806	// requests with the JSON null value. By default, fields with empty
5807	// values are omitted from API requests. However, any field with an
5808	// empty value appearing in NullFields will be sent to the server as
5809	// null. It is an error if a field in this list has a non-empty value.
5810	// This may be used to include null fields in Patch requests.
5811	NullFields []string `json:"-"`
5812}
5813
5814func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
5815	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
5816	raw := NoMethod(*s)
5817	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5818}
5819
5820// GoogleCloudDialogflowCxV3beta1TestCaseResult: Represents a result
5821// from running a test case in an agent environment.
5822type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
5823	// ConversationTurns: The conversation turns uttered during the test
5824	// case replay in chronological order.
5825	ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
5826
5827	// Environment: Environment where the test was run. If not set, it
5828	// indicates the draft environment.
5829	Environment string `json:"environment,omitempty"`
5830
5831	// Name: The resource name for the test case result. Format:
5832	// `projects//locations//agents//testCases/ /results/`.
5833	Name string `json:"name,omitempty"`
5834
5835	// TestResult: Whether the test case passed in the agent environment.
5836	//
5837	// Possible values:
5838	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
5839	//   "PASSED" - The test passed.
5840	//   "FAILED" - The test did not pass.
5841	TestResult string `json:"testResult,omitempty"`
5842
5843	// TestTime: The time that the test was run.
5844	TestTime string `json:"testTime,omitempty"`
5845
5846	// ForceSendFields is a list of field names (e.g. "ConversationTurns")
5847	// to unconditionally include in API requests. By default, fields with
5848	// empty values are omitted from API requests. However, any non-pointer,
5849	// non-interface field appearing in ForceSendFields will be sent to the
5850	// server regardless of whether the field is empty or not. This may be
5851	// used to include empty fields in Patch requests.
5852	ForceSendFields []string `json:"-"`
5853
5854	// NullFields is a list of field names (e.g. "ConversationTurns") to
5855	// include in API requests with the JSON null value. By default, fields
5856	// with empty values are omitted from API requests. However, any field
5857	// with an empty value appearing in NullFields will be sent to the
5858	// server as null. It is an error if a field in this list has a
5859	// non-empty value. This may be used to include null fields in Patch
5860	// requests.
5861	NullFields []string `json:"-"`
5862}
5863
5864func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
5865	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
5866	raw := NoMethod(*s)
5867	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5868}
5869
5870// GoogleCloudDialogflowCxV3beta1TestConfig: Represents configurations
5871// for a test case.
5872type GoogleCloudDialogflowCxV3beta1TestConfig struct {
5873	// Flow: Flow name. If not set, default start flow is assumed. Format:
5874	// `projects//locations//agents//flows/`.
5875	Flow string `json:"flow,omitempty"`
5876
5877	// TrackingParameters: Session parameters to be compared when
5878	// calculating differences.
5879	TrackingParameters []string `json:"trackingParameters,omitempty"`
5880
5881	// ForceSendFields is a list of field names (e.g. "Flow") to
5882	// unconditionally include in API requests. By default, fields with
5883	// empty values are omitted from API requests. However, any non-pointer,
5884	// non-interface field appearing in ForceSendFields will be sent to the
5885	// server regardless of whether the field is empty or not. This may be
5886	// used to include empty fields in Patch requests.
5887	ForceSendFields []string `json:"-"`
5888
5889	// NullFields is a list of field names (e.g. "Flow") to include in API
5890	// requests with the JSON null value. By default, fields with empty
5891	// values are omitted from API requests. However, any field with an
5892	// empty value appearing in NullFields will be sent to the server as
5893	// null. It is an error if a field in this list has a non-empty value.
5894	// This may be used to include null fields in Patch requests.
5895	NullFields []string `json:"-"`
5896}
5897
5898func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
5899	type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
5900	raw := NoMethod(*s)
5901	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5902}
5903
5904// GoogleCloudDialogflowCxV3beta1TestError: Error info for running a
5905// test.
5906type GoogleCloudDialogflowCxV3beta1TestError struct {
5907	// Status: The status associated with the test.
5908	Status *GoogleRpcStatus `json:"status,omitempty"`
5909
5910	// TestCase: The test case resource name.
5911	TestCase string `json:"testCase,omitempty"`
5912
5913	// TestTime: The timestamp when the test was completed.
5914	TestTime string `json:"testTime,omitempty"`
5915
5916	// ForceSendFields is a list of field names (e.g. "Status") to
5917	// unconditionally include in API requests. By default, fields with
5918	// empty values are omitted from API requests. However, any non-pointer,
5919	// non-interface field appearing in ForceSendFields will be sent to the
5920	// server regardless of whether the field is empty or not. This may be
5921	// used to include empty fields in Patch requests.
5922	ForceSendFields []string `json:"-"`
5923
5924	// NullFields is a list of field names (e.g. "Status") to include in API
5925	// requests with the JSON null value. By default, fields with empty
5926	// values are omitted from API requests. However, any field with an
5927	// empty value appearing in NullFields will be sent to the server as
5928	// null. It is an error if a field in this list has a non-empty value.
5929	// This may be used to include null fields in Patch requests.
5930	NullFields []string `json:"-"`
5931}
5932
5933func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
5934	type NoMethod GoogleCloudDialogflowCxV3beta1TestError
5935	raw := NoMethod(*s)
5936	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5937}
5938
5939// GoogleCloudDialogflowCxV3beta1TestRunDifference: The description of
5940// differences between original and replayed agent output.
5941type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
5942	// Description: A description of the diff, showing the actual output vs
5943	// expected output.
5944	Description string `json:"description,omitempty"`
5945
5946	// Type: The type of diff.
5947	//
5948	// Possible values:
5949	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
5950	//   "INTENT" - The intent.
5951	//   "PAGE" - The page.
5952	//   "PARAMETERS" - The parameters.
5953	//   "UTTERANCE" - The message utterance.
5954	Type string `json:"type,omitempty"`
5955
5956	// ForceSendFields is a list of field names (e.g. "Description") to
5957	// unconditionally include in API requests. By default, fields with
5958	// empty values are omitted from API requests. However, any non-pointer,
5959	// non-interface field appearing in ForceSendFields will be sent to the
5960	// server regardless of whether the field is empty or not. This may be
5961	// used to include empty fields in Patch requests.
5962	ForceSendFields []string `json:"-"`
5963
5964	// NullFields is a list of field names (e.g. "Description") to include
5965	// in API requests with the JSON null value. By default, fields with
5966	// empty values are omitted from API requests. However, any field with
5967	// an empty value appearing in NullFields will be sent to the server as
5968	// null. It is an error if a field in this list has a non-empty value.
5969	// This may be used to include null fields in Patch requests.
5970	NullFields []string `json:"-"`
5971}
5972
5973func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
5974	type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
5975	raw := NoMethod(*s)
5976	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5977}
5978
5979// GoogleCloudDialogflowCxV3beta1TextInput: Represents the natural
5980// language text to be processed.
5981type GoogleCloudDialogflowCxV3beta1TextInput struct {
5982	// Text: Required. The UTF-8 encoded natural language text to be
5983	// processed. Text length must not exceed 256 characters.
5984	Text string `json:"text,omitempty"`
5985
5986	// ForceSendFields is a list of field names (e.g. "Text") to
5987	// unconditionally include in API requests. By default, fields with
5988	// empty values are omitted from API requests. However, any non-pointer,
5989	// non-interface field appearing in ForceSendFields will be sent to the
5990	// server regardless of whether the field is empty or not. This may be
5991	// used to include empty fields in Patch requests.
5992	ForceSendFields []string `json:"-"`
5993
5994	// NullFields is a list of field names (e.g. "Text") to include in API
5995	// requests with the JSON null value. By default, fields with empty
5996	// values are omitted from API requests. However, any field with an
5997	// empty value appearing in NullFields will be sent to the server as
5998	// null. It is an error if a field in this list has a non-empty value.
5999	// This may be used to include null fields in Patch requests.
6000	NullFields []string `json:"-"`
6001}
6002
6003func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
6004	type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
6005	raw := NoMethod(*s)
6006	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6007}
6008
6009// GoogleCloudDialogflowCxV3beta1TransitionRoute: A transition route
6010// specifies a intent that can be matched and/or a data condition that
6011// can be evaluated during a session. When a specified transition is
6012// matched, the following actions are taken in order: * If there is a
6013// `trigger_fulfillment` associated with the transition, it will be
6014// called. * If there is a `target_page` associated with the transition,
6015// the session will transition into the specified page. * If there is a
6016// `target_flow` associated with the transition, the session will
6017// transition into the specified flow.
6018type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
6019	// Condition: The condition to evaluate against form parameters or
6020	// session parameters. See the conditions reference
6021	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At
6022	// least one of `intent` or `condition` must be specified. When both
6023	// `intent` and `condition` are specified, the transition can only
6024	// happen when both are fulfilled.
6025	Condition string `json:"condition,omitempty"`
6026
6027	// Intent: The unique identifier of an Intent. Format:
6028	// `projects//locations//agents//intents/`. Indicates that the
6029	// transition can only happen when the given intent is matched. At least
6030	// one of `intent` or `condition` must be specified. When both `intent`
6031	// and `condition` are specified, the transition can only happen when
6032	// both are fulfilled.
6033	Intent string `json:"intent,omitempty"`
6034
6035	// Name: Output only. The unique identifier of this transition route.
6036	Name string `json:"name,omitempty"`
6037
6038	// TargetFlow: The target flow to transition to. Format:
6039	// `projects//locations//agents//flows/`.
6040	TargetFlow string `json:"targetFlow,omitempty"`
6041
6042	// TargetPage: The target page to transition to. Format:
6043	// `projects//locations//agents//flows//pages/`.
6044	TargetPage string `json:"targetPage,omitempty"`
6045
6046	// TriggerFulfillment: The fulfillment to call when the condition is
6047	// satisfied. At least one of `trigger_fulfillment` and `target` must be
6048	// specified. When both are defined, `trigger_fulfillment` is executed
6049	// first.
6050	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
6051
6052	// ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") to include in
6061	// API 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 *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
6070	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
6071	raw := NoMethod(*s)
6072	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6073}
6074
6075// GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata:
6076// Metadata for UpdateDocument operation.
6077type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
6078	// GenericMetadata: The generic information of the operation.
6079	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
6080
6081	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
6082	// unconditionally include in API requests. By default, fields with
6083	// empty values are omitted from API requests. However, any non-pointer,
6084	// non-interface field appearing in ForceSendFields will be sent to the
6085	// server regardless of whether the field is empty or not. This may be
6086	// used to include empty fields in Patch requests.
6087	ForceSendFields []string `json:"-"`
6088
6089	// NullFields is a list of field names (e.g. "GenericMetadata") to
6090	// include in API requests with the JSON null value. By default, fields
6091	// with empty values are omitted from API requests. However, any field
6092	// with an empty value appearing in NullFields will be sent to the
6093	// server as null. It is an error if a field in this list has a
6094	// non-empty value. This may be used to include null fields in Patch
6095	// requests.
6096	NullFields []string `json:"-"`
6097}
6098
6099func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
6100	type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
6101	raw := NoMethod(*s)
6102	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6103}
6104
6105// GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for
6106// a webhook call. The request is sent as a JSON object and the field
6107// names will be presented in camel cases.
6108type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
6109	// DetectIntentResponseId: Always present. The unique identifier of the
6110	// DetectIntentResponse that will be returned to the API caller.
6111	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
6112
6113	// FulfillmentInfo: Always present. Information about the fulfillment
6114	// that triggered this webhook call.
6115	FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
6116
6117	// IntentInfo: Information about the last matched intent.
6118	IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
6119
6120	// LanguageCode: The language code specified in the original request.
6121	LanguageCode string `json:"languageCode,omitempty"`
6122
6123	// Messages: The list of rich message responses to present to the user.
6124	// Webhook can choose to append or replace this list in
6125	// WebhookResponse.fulfillment_response;
6126	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
6127
6128	// PageInfo: Information about page status.
6129	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
6130
6131	// Payload: Custom data set in QueryParameters.payload.
6132	Payload googleapi.RawMessage `json:"payload,omitempty"`
6133
6134	// SentimentAnalysisResult: The sentiment analysis result of the current
6135	// user request. The field is filled when sentiment analysis is
6136	// configured to be enabled for the request.
6137	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
6138
6139	// SessionInfo: Information about session status.
6140	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
6141
6142	// Text: If natural language text was provided as input, this field will
6143	// contain a copy of the text.
6144	Text string `json:"text,omitempty"`
6145
6146	// Transcript: If natural language speech audio was provided as input,
6147	// this field will contain the transcript for the audio.
6148	Transcript string `json:"transcript,omitempty"`
6149
6150	// TriggerEvent: If an event was provided as input, this field will
6151	// contain the name of the event.
6152	TriggerEvent string `json:"triggerEvent,omitempty"`
6153
6154	// TriggerIntent: If an intent was provided as input, this field will
6155	// contain a copy of the intent identifier. Format:
6156	// `projects//locations//agents//intents/`.
6157	TriggerIntent string `json:"triggerIntent,omitempty"`
6158
6159	// ForceSendFields is a list of field names (e.g.
6160	// "DetectIntentResponseId") to unconditionally include in API requests.
6161	// By default, fields with empty values are omitted from API requests.
6162	// However, any non-pointer, non-interface field appearing in
6163	// ForceSendFields will be sent to the server regardless of whether the
6164	// field is empty or not. This may be used to include empty fields in
6165	// Patch requests.
6166	ForceSendFields []string `json:"-"`
6167
6168	// NullFields is a list of field names (e.g. "DetectIntentResponseId")
6169	// to include in API requests with the JSON null value. By default,
6170	// fields with empty values are omitted from API requests. However, any
6171	// field with an empty value appearing in NullFields will be sent to the
6172	// server as null. It is an error if a field in this list has a
6173	// non-empty value. This may be used to include null fields in Patch
6174	// requests.
6175	NullFields []string `json:"-"`
6176}
6177
6178func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
6179	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
6180	raw := NoMethod(*s)
6181	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6182}
6183
6184// GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo:
6185// Represents fulfillment information communicated to the webhook.
6186type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
6187	// Tag: Always present. The tag used to identify which fulfillment is
6188	// being called.
6189	Tag string `json:"tag,omitempty"`
6190
6191	// ForceSendFields is a list of field names (e.g. "Tag") to
6192	// unconditionally include in API requests. By default, fields with
6193	// empty values are omitted from API requests. However, any non-pointer,
6194	// non-interface field appearing in ForceSendFields will be sent to the
6195	// server regardless of whether the field is empty or not. This may be
6196	// used to include empty fields in Patch requests.
6197	ForceSendFields []string `json:"-"`
6198
6199	// NullFields is a list of field names (e.g. "Tag") to include in API
6200	// requests with the JSON null value. By default, fields with empty
6201	// values are omitted from API requests. However, any field with an
6202	// empty value appearing in NullFields will be sent to the server as
6203	// null. It is an error if a field in this list has a non-empty value.
6204	// This may be used to include null fields in Patch requests.
6205	NullFields []string `json:"-"`
6206}
6207
6208func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
6209	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
6210	raw := NoMethod(*s)
6211	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6212}
6213
6214// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents
6215// intent information communicated to the webhook.
6216type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
6217	// Confidence: The confidence of the matched intent. Values range from
6218	// 0.0 (completely uncertain) to 1.0 (completely certain).
6219	Confidence float64 `json:"confidence,omitempty"`
6220
6221	// DisplayName: Always present. The display name of the last matched
6222	// intent.
6223	DisplayName string `json:"displayName,omitempty"`
6224
6225	// LastMatchedIntent: Always present. The unique identifier of the last
6226	// matched intent. Format: `projects//locations//agents//intents/`.
6227	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
6228
6229	// Parameters: Parameters identified as a result of intent matching.
6230	// This is a map of the name of the identified parameter to the value of
6231	// the parameter identified from the user's utterance. All parameters
6232	// defined in the matched intent that are identified will be surfaced
6233	// here.
6234	Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
6235
6236	// ForceSendFields is a list of field names (e.g. "Confidence") to
6237	// unconditionally include in API requests. By default, fields with
6238	// empty values are omitted from API requests. However, any non-pointer,
6239	// non-interface field appearing in ForceSendFields will be sent to the
6240	// server regardless of whether the field is empty or not. This may be
6241	// used to include empty fields in Patch requests.
6242	ForceSendFields []string `json:"-"`
6243
6244	// NullFields is a list of field names (e.g. "Confidence") to include in
6245	// API requests with the JSON null value. By default, fields with empty
6246	// values are omitted from API requests. However, any field with an
6247	// empty value appearing in NullFields will be sent to the server as
6248	// null. It is an error if a field in this list has a non-empty value.
6249	// This may be used to include null fields in Patch requests.
6250	NullFields []string `json:"-"`
6251}
6252
6253func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
6254	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
6255	raw := NoMethod(*s)
6256	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6257}
6258
6259func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
6260	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
6261	var s1 struct {
6262		Confidence gensupport.JSONFloat64 `json:"confidence"`
6263		*NoMethod
6264	}
6265	s1.NoMethod = (*NoMethod)(s)
6266	if err := json.Unmarshal(data, &s1); err != nil {
6267		return err
6268	}
6269	s.Confidence = float64(s1.Confidence)
6270	return nil
6271}
6272
6273// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterV
6274// alue: Represents a value for an intent parameter.
6275type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
6276	// OriginalValue: Always present. Original text value extracted from
6277	// user utterance.
6278	OriginalValue string `json:"originalValue,omitempty"`
6279
6280	// ResolvedValue: Always present. Structured value for the parameter
6281	// extracted from user utterance.
6282	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
6283
6284	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
6285	// unconditionally include in API requests. By default, fields with
6286	// empty values are omitted from API requests. However, any non-pointer,
6287	// non-interface field appearing in ForceSendFields will be sent to the
6288	// server regardless of whether the field is empty or not. This may be
6289	// used to include empty fields in Patch requests.
6290	ForceSendFields []string `json:"-"`
6291
6292	// NullFields is a list of field names (e.g. "OriginalValue") to include
6293	// in API requests with the JSON null value. By default, fields with
6294	// empty values are omitted from API requests. However, any field with
6295	// an empty value appearing in NullFields will be sent to the server as
6296	// null. It is an error if a field in this list has a non-empty value.
6297	// This may be used to include null fields in Patch requests.
6298	NullFields []string `json:"-"`
6299}
6300
6301func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
6302	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
6303	raw := NoMethod(*s)
6304	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6305}
6306
6307// GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult:
6308// Represents the result of sentiment analysis.
6309type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
6310	// Magnitude: A non-negative number in the [0, +inf) range, which
6311	// represents the absolute magnitude of sentiment, regardless of score
6312	// (positive or negative).
6313	Magnitude float64 `json:"magnitude,omitempty"`
6314
6315	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
6316	// (positive sentiment).
6317	Score float64 `json:"score,omitempty"`
6318
6319	// ForceSendFields is a list of field names (e.g. "Magnitude") to
6320	// unconditionally include in API requests. By default, fields with
6321	// empty values are omitted from API requests. However, any non-pointer,
6322	// non-interface field appearing in ForceSendFields will be sent to the
6323	// server regardless of whether the field is empty or not. This may be
6324	// used to include empty fields in Patch requests.
6325	ForceSendFields []string `json:"-"`
6326
6327	// NullFields is a list of field names (e.g. "Magnitude") to include in
6328	// API requests with the JSON null value. By default, fields with empty
6329	// values are omitted from API requests. However, any field with an
6330	// empty value appearing in NullFields will be sent to the server as
6331	// null. It is an error if a field in this list has a non-empty value.
6332	// This may be used to include null fields in Patch requests.
6333	NullFields []string `json:"-"`
6334}
6335
6336func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
6337	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
6338	raw := NoMethod(*s)
6339	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6340}
6341
6342func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
6343	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
6344	var s1 struct {
6345		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
6346		Score     gensupport.JSONFloat64 `json:"score"`
6347		*NoMethod
6348	}
6349	s1.NoMethod = (*NoMethod)(s)
6350	if err := json.Unmarshal(data, &s1); err != nil {
6351		return err
6352	}
6353	s.Magnitude = float64(s1.Magnitude)
6354	s.Score = float64(s1.Score)
6355	return nil
6356}
6357
6358// GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message
6359// for a webhook call.
6360type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
6361	// FulfillmentResponse: The fulfillment response to send to the user.
6362	// This field can be omitted by the webhook if it does not intend to
6363	// send any response to the user.
6364	FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
6365
6366	// PageInfo: Information about page status. This field can be omitted by
6367	// the webhook if it does not intend to modify page status.
6368	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
6369
6370	// Payload: Value to append directly to QueryResult.webhook_payloads.
6371	Payload googleapi.RawMessage `json:"payload,omitempty"`
6372
6373	// SessionInfo: Information about session status. This field can be
6374	// omitted by the webhook if it does not intend to modify session
6375	// status.
6376	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
6377
6378	// TargetFlow: The target flow to transition to. Format:
6379	// `projects//locations//agents//flows/`.
6380	TargetFlow string `json:"targetFlow,omitempty"`
6381
6382	// TargetPage: The target page to transition to. Format:
6383	// `projects//locations//agents//flows//pages/`.
6384	TargetPage string `json:"targetPage,omitempty"`
6385
6386	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse")
6387	// to unconditionally include in API requests. By default, fields with
6388	// empty values are omitted from API requests. However, any non-pointer,
6389	// non-interface field appearing in ForceSendFields will be sent to the
6390	// server regardless of whether the field is empty or not. This may be
6391	// used to include empty fields in Patch requests.
6392	ForceSendFields []string `json:"-"`
6393
6394	// NullFields is a list of field names (e.g. "FulfillmentResponse") to
6395	// include in API requests with the JSON null value. By default, fields
6396	// with empty values are omitted from API requests. However, any field
6397	// with an empty value appearing in NullFields will be sent to the
6398	// server as null. It is an error if a field in this list has a
6399	// non-empty value. This may be used to include null fields in Patch
6400	// requests.
6401	NullFields []string `json:"-"`
6402}
6403
6404func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
6405	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
6406	raw := NoMethod(*s)
6407	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6408}
6409
6410// GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse:
6411// Represents a fulfillment response to the user.
6412type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
6413	// MergeBehavior: Merge behavior for `messages`.
6414	//
6415	// Possible values:
6416	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be
6417	// used.
6418	//   "APPEND" - `messages` will be appended to the list of messages
6419	// waiting to be sent to the user.
6420	//   "REPLACE" - `messages` will replace the list of messages waiting to
6421	// be sent to the user.
6422	MergeBehavior string `json:"mergeBehavior,omitempty"`
6423
6424	// Messages: The list of rich message responses to present to the user.
6425	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
6426
6427	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
6428	// unconditionally include in API requests. By default, fields with
6429	// empty values are omitted from API requests. However, any non-pointer,
6430	// non-interface field appearing in ForceSendFields will be sent to the
6431	// server regardless of whether the field is empty or not. This may be
6432	// used to include empty fields in Patch requests.
6433	ForceSendFields []string `json:"-"`
6434
6435	// NullFields is a list of field names (e.g. "MergeBehavior") to include
6436	// in API requests with the JSON null value. By default, fields with
6437	// empty values are omitted from API requests. However, any field with
6438	// an empty value appearing in NullFields will be sent to the server as
6439	// null. It is an error if a field in this list has a non-empty value.
6440	// This may be used to include null fields in Patch requests.
6441	NullFields []string `json:"-"`
6442}
6443
6444func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
6445	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
6446	raw := NoMethod(*s)
6447	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6448}
6449
6450// GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a
6451// message possibly annotated with an entity. The part can be an entity
6452// or purely a part of the message between two entities or message
6453// start/end.
6454type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
6455	// EntityType: The Dialogflow system entity type
6456	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
6457	// of this message part. If this is empty, Dialogflow could not annotate
6458	// the phrase part with a system entity.
6459	EntityType string `json:"entityType,omitempty"`
6460
6461	// FormattedValue: The Dialogflow system entity formatted value
6462	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
6463	// of this message part. For example for a system entity of type
6464	// `@sys.unit-currency`, this may contain: { "amount": 5, "currency":
6465	// "USD" }
6466	FormattedValue interface{} `json:"formattedValue,omitempty"`
6467
6468	// Text: A part of a message possibly annotated with an entity.
6469	Text string `json:"text,omitempty"`
6470
6471	// ForceSendFields is a list of field names (e.g. "EntityType") to
6472	// unconditionally include in API requests. By default, fields with
6473	// empty values are omitted from API requests. However, any non-pointer,
6474	// non-interface field appearing in ForceSendFields will be sent to the
6475	// server regardless of whether the field is empty or not. This may be
6476	// used to include empty fields in Patch requests.
6477	ForceSendFields []string `json:"-"`
6478
6479	// NullFields is a list of field names (e.g. "EntityType") to include in
6480	// API requests with the JSON null value. By default, fields with empty
6481	// values are omitted from API requests. However, any field with an
6482	// empty value appearing in NullFields will be sent to the server as
6483	// null. It is an error if a field in this list has a non-empty value.
6484	// This may be used to include null fields in Patch requests.
6485	NullFields []string `json:"-"`
6486}
6487
6488func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
6489	type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
6490	raw := NoMethod(*s)
6491	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6492}
6493
6494// GoogleCloudDialogflowV2ArticleAnswer: Represents article answer.
6495type GoogleCloudDialogflowV2ArticleAnswer struct {
6496	// AnswerRecord: The name of answer record, in the format of
6497	// "projects//locations//answerRecords/"
6498	AnswerRecord string `json:"answerRecord,omitempty"`
6499
6500	// Confidence: Article match confidence. The system's confidence score
6501	// that this article is a good match for this conversation, as a value
6502	// from 0.0 (completely uncertain) to 1.0 (completely certain).
6503	Confidence float64 `json:"confidence,omitempty"`
6504
6505	// Metadata: A map that contains metadata about the answer and the
6506	// document from which it originates.
6507	Metadata map[string]string `json:"metadata,omitempty"`
6508
6509	// Snippets: Article snippets.
6510	Snippets []string `json:"snippets,omitempty"`
6511
6512	// Title: The article title.
6513	Title string `json:"title,omitempty"`
6514
6515	// Uri: The article URI.
6516	Uri string `json:"uri,omitempty"`
6517
6518	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
6519	// unconditionally include in API requests. By default, fields with
6520	// empty values are omitted from API requests. However, any non-pointer,
6521	// non-interface field appearing in ForceSendFields will be sent to the
6522	// server regardless of whether the field is empty or not. This may be
6523	// used to include empty fields in Patch requests.
6524	ForceSendFields []string `json:"-"`
6525
6526	// NullFields is a list of field names (e.g. "AnswerRecord") to include
6527	// in API requests with the JSON null value. By default, fields with
6528	// empty values are omitted from API requests. However, any field with
6529	// an empty value appearing in NullFields will be sent to the server as
6530	// null. It is an error if a field in this list has a non-empty value.
6531	// This may be used to include null fields in Patch requests.
6532	NullFields []string `json:"-"`
6533}
6534
6535func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
6536	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
6537	raw := NoMethod(*s)
6538	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6539}
6540
6541func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
6542	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
6543	var s1 struct {
6544		Confidence gensupport.JSONFloat64 `json:"confidence"`
6545		*NoMethod
6546	}
6547	s1.NoMethod = (*NoMethod)(s)
6548	if err := json.Unmarshal(data, &s1); err != nil {
6549		return err
6550	}
6551	s.Confidence = float64(s1.Confidence)
6552	return nil
6553}
6554
6555// GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response
6556// message for EntityTypes.BatchUpdateEntityTypes.
6557type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
6558	// EntityTypes: The collection of updated or created entity types.
6559	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
6560
6561	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
6562	// unconditionally include in API requests. By default, fields with
6563	// empty values are omitted from API requests. However, any non-pointer,
6564	// non-interface field appearing in ForceSendFields will be sent to the
6565	// server regardless of whether the field is empty or not. This may be
6566	// used to include empty fields in Patch requests.
6567	ForceSendFields []string `json:"-"`
6568
6569	// NullFields is a list of field names (e.g. "EntityTypes") to include
6570	// in API requests with the JSON null value. By default, fields with
6571	// empty values are omitted from API requests. However, any field with
6572	// an empty value appearing in NullFields will be sent to the server as
6573	// null. It is an error if a field in this list has a non-empty value.
6574	// This may be used to include null fields in Patch requests.
6575	NullFields []string `json:"-"`
6576}
6577
6578func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
6579	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
6580	raw := NoMethod(*s)
6581	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6582}
6583
6584// GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response
6585// message for Intents.BatchUpdateIntents.
6586type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
6587	// Intents: The collection of updated or created intents.
6588	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
6589
6590	// ForceSendFields is a list of field names (e.g. "Intents") to
6591	// unconditionally include in API requests. By default, fields with
6592	// empty values are omitted from API requests. However, any non-pointer,
6593	// non-interface field appearing in ForceSendFields will be sent to the
6594	// server regardless of whether the field is empty or not. This may be
6595	// used to include empty fields in Patch requests.
6596	ForceSendFields []string `json:"-"`
6597
6598	// NullFields is a list of field names (e.g. "Intents") to include in
6599	// API requests with the JSON null value. By default, fields with empty
6600	// values are omitted from API requests. However, any field with an
6601	// empty value appearing in NullFields will be sent to the server as
6602	// null. It is an error if a field in this list has a non-empty value.
6603	// This may be used to include null fields in Patch requests.
6604	NullFields []string `json:"-"`
6605}
6606
6607func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
6608	type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
6609	raw := NoMethod(*s)
6610	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6611}
6612
6613// GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to
6614// natural language context. If a person says to you "they are orange",
6615// you need context in order to understand what "they" is referring to.
6616// Similarly, for Dialogflow to handle an end-user expression like that,
6617// it needs to be provided with context in order to correctly match an
6618// intent. Using contexts, you can control the flow of a conversation.
6619// You can configure contexts for an intent by setting input and output
6620// contexts, which are identified by string names. When an intent is
6621// matched, any configured output contexts for that intent become
6622// active. While any contexts are active, Dialogflow is more likely to
6623// match intents that are configured with input contexts that correspond
6624// to the currently active contexts. For more information about context,
6625// see the Contexts guide
6626// (https://cloud.google.com/dialogflow/docs/contexts-overview).
6627type GoogleCloudDialogflowV2Context struct {
6628	// LifespanCount: Optional. The number of conversational query requests
6629	// after which the context expires. The default is `0`. If set to `0`,
6630	// the context expires immediately. Contexts expire automatically after
6631	// 20 minutes if there are no matching queries.
6632	LifespanCount int64 `json:"lifespanCount,omitempty"`
6633
6634	// Name: Required. The unique identifier of the context. Format:
6635	// `projects//agent/sessions//contexts/`, or
6636	// `projects//agent/environments//users//sessions//contexts/`. The
6637	// `Context ID` is always converted to lowercase, may only contain
6638	// characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If
6639	// `Environment ID` is not specified, we assume default 'draft'
6640	// environment. If `User ID` is not specified, we assume default '-'
6641	// user. The following context names are reserved for internal use by
6642	// Dialogflow. You should not use these contexts or create contexts with
6643	// these names: * `__system_counters__` * `*_id_dialog_context` *
6644	// `*_dialog_params_size`
6645	Name string `json:"name,omitempty"`
6646
6647	// Parameters: Optional. The collection of parameters associated with
6648	// this context. Depending on your protocol or client library language,
6649	// this is a map, associative array, symbol table, dictionary, or JSON
6650	// object composed of a collection of (MapKey, MapValue) pairs: - MapKey
6651	// type: string - MapKey value: parameter name - MapValue type: - If
6652	// parameter's entity type is a composite entity: map - Else: depending
6653	// on parameter value type, could be one of string, number, boolean,
6654	// null, list or map - MapValue value: - If parameter's entity type is a
6655	// composite entity: map from composite entity property names to
6656	// property values - Else: parameter value
6657	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
6658
6659	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
6660	// unconditionally include in API requests. By default, fields with
6661	// empty values are omitted from API requests. However, any non-pointer,
6662	// non-interface field appearing in ForceSendFields will be sent to the
6663	// server regardless of whether the field is empty or not. This may be
6664	// used to include empty fields in Patch requests.
6665	ForceSendFields []string `json:"-"`
6666
6667	// NullFields is a list of field names (e.g. "LifespanCount") to include
6668	// in API requests with the JSON null value. By default, fields with
6669	// empty values are omitted from API requests. However, any field with
6670	// an empty value appearing in NullFields will be sent to the server as
6671	// null. It is an error if a field in this list has a non-empty value.
6672	// This may be used to include null fields in Patch requests.
6673	NullFields []string `json:"-"`
6674}
6675
6676func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
6677	type NoMethod GoogleCloudDialogflowV2Context
6678	raw := NoMethod(*s)
6679	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6680}
6681
6682// GoogleCloudDialogflowV2ConversationEvent: Represents a notification
6683// sent to Pub/Sub subscribers for conversation lifecycle events.
6684type GoogleCloudDialogflowV2ConversationEvent struct {
6685	// Conversation: The unique identifier of the conversation this
6686	// notification refers to. Format: `projects//conversations/`.
6687	Conversation string `json:"conversation,omitempty"`
6688
6689	// ErrorStatus: More detailed information about an error. Only set for
6690	// type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
6691	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
6692
6693	// NewMessagePayload: Payload of NEW_MESSAGE event.
6694	NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
6695
6696	// Type: The type of the event that this notification refers to.
6697	//
6698	// Possible values:
6699	//   "TYPE_UNSPECIFIED" - Type not set.
6700	//   "CONVERSATION_STARTED" - A new conversation has been opened. This
6701	// is fired when a telephone call is answered, or a conversation is
6702	// created via the API.
6703	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This
6704	// is fired when a telephone call is terminated, or a conversation is
6705	// closed via the API.
6706	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
6707	// notification from Dialogflow that human intervention is required.
6708	//   "NEW_MESSAGE" - An existing conversation has received a new
6709	// message, either from API or telephony. It is configured in
6710	// ConversationProfile.new_message_event_notification_config
6711	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone
6712	// call. In general non-recoverable errors only occur if something was
6713	// misconfigured in the ConversationProfile corresponding to the call.
6714	// After a non-recoverable error, Dialogflow may stop responding. We
6715	// don't fire this event: * in an API call because we can directly
6716	// return the error, or, * when we can recover from an error.
6717	Type string `json:"type,omitempty"`
6718
6719	// ForceSendFields is a list of field names (e.g. "Conversation") to
6720	// unconditionally include in API requests. By default, fields with
6721	// empty values are omitted from API requests. However, any non-pointer,
6722	// non-interface field appearing in ForceSendFields will be sent to the
6723	// server regardless of whether the field is empty or not. This may be
6724	// used to include empty fields in Patch requests.
6725	ForceSendFields []string `json:"-"`
6726
6727	// NullFields is a list of field names (e.g. "Conversation") to include
6728	// in API requests with the JSON null value. By default, fields with
6729	// empty values are omitted from API requests. However, any field with
6730	// an empty value appearing in NullFields will be sent to the server as
6731	// null. It is an error if a field in this list has a non-empty value.
6732	// This may be used to include null fields in Patch requests.
6733	NullFields []string `json:"-"`
6734}
6735
6736func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
6737	type NoMethod GoogleCloudDialogflowV2ConversationEvent
6738	raw := NoMethod(*s)
6739	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6740}
6741
6742// GoogleCloudDialogflowV2EntityType: Each intent parameter has a type,
6743// called the entity type, which dictates exactly how data from an
6744// end-user expression is extracted. Dialogflow provides predefined
6745// system entities that can match many common types of data. For
6746// example, there are system entities for matching dates, times, colors,
6747// email addresses, and so on. You can also create your own custom
6748// entities for matching custom data. For example, you could define a
6749// vegetable entity that can match the types of vegetables available for
6750// purchase with a grocery store agent. For more information, see the
6751// Entity guide
6752// (https://cloud.google.com/dialogflow/docs/entities-overview).
6753type GoogleCloudDialogflowV2EntityType struct {
6754	// AutoExpansionMode: Optional. Indicates whether the entity type can be
6755	// automatically expanded.
6756	//
6757	// Possible values:
6758	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
6759	// entity.
6760	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
6761	// that have not been explicitly listed in the entity.
6762	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
6763
6764	// DisplayName: Required. The name of the entity type.
6765	DisplayName string `json:"displayName,omitempty"`
6766
6767	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction
6768	// during classification.
6769	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
6770
6771	// Entities: Optional. The collection of entity entries associated with
6772	// the entity type.
6773	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
6774
6775	// Kind: Required. Indicates the kind of entity type.
6776	//
6777	// Possible values:
6778	//   "KIND_UNSPECIFIED" - Not specified. This value should be never
6779	// used.
6780	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms
6781	// to a reference value.
6782	//   "KIND_LIST" - List entity types contain a set of entries that do
6783	// not map to reference values. However, list entity types can contain
6784	// references to other entity types (with or without aliases).
6785	//   "KIND_REGEXP" - Regexp entity types allow to specify regular
6786	// expressions in entries values.
6787	Kind string `json:"kind,omitempty"`
6788
6789	// Name: The unique identifier of the entity type. Required for
6790	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
6791	// methods. Format: `projects//agent/entityTypes/`.
6792	Name string `json:"name,omitempty"`
6793
6794	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
6795	// to unconditionally include in API requests. By default, fields with
6796	// empty values are omitted from API requests. However, any non-pointer,
6797	// non-interface field appearing in ForceSendFields will be sent to the
6798	// server regardless of whether the field is empty or not. This may be
6799	// used to include empty fields in Patch requests.
6800	ForceSendFields []string `json:"-"`
6801
6802	// NullFields is a list of field names (e.g. "AutoExpansionMode") to
6803	// include in API requests with the JSON null value. By default, fields
6804	// with empty values are omitted from API requests. However, any field
6805	// with an empty value appearing in NullFields will be sent to the
6806	// server as null. It is an error if a field in this list has a
6807	// non-empty value. This may be used to include null fields in Patch
6808	// requests.
6809	NullFields []string `json:"-"`
6810}
6811
6812func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
6813	type NoMethod GoogleCloudDialogflowV2EntityType
6814	raw := NoMethod(*s)
6815	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6816}
6817
6818// GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an
6819// associated entity type.
6820type GoogleCloudDialogflowV2EntityTypeEntity struct {
6821	// Synonyms: Required. A collection of value synonyms. For example, if
6822	// the entity type is *vegetable*, and `value` is *scallions*, a synonym
6823	// could be *green onions*. For `KIND_LIST` entity types: * This
6824	// collection must contain exactly one synonym equal to `value`.
6825	Synonyms []string `json:"synonyms,omitempty"`
6826
6827	// Value: Required. The primary value associated with this entity entry.
6828	// For example, if the entity type is *vegetable*, the value could be
6829	// *scallions*. For `KIND_MAP` entity types: * A reference value to be
6830	// used in place of synonyms. For `KIND_LIST` entity types: * A string
6831	// that can contain references to other entity types (with or without
6832	// aliases).
6833	Value string `json:"value,omitempty"`
6834
6835	// ForceSendFields is a list of field names (e.g. "Synonyms") to
6836	// unconditionally include in API requests. By default, fields with
6837	// empty values are omitted from API requests. However, any non-pointer,
6838	// non-interface field appearing in ForceSendFields will be sent to the
6839	// server regardless of whether the field is empty or not. This may be
6840	// used to include empty fields in Patch requests.
6841	ForceSendFields []string `json:"-"`
6842
6843	// NullFields is a list of field names (e.g. "Synonyms") to include in
6844	// API requests with the JSON null value. By default, fields with empty
6845	// values are omitted from API requests. However, any field with an
6846	// empty value appearing in NullFields will be sent to the server as
6847	// null. It is an error if a field in this list has a non-empty value.
6848	// This may be used to include null fields in Patch requests.
6849	NullFields []string `json:"-"`
6850}
6851
6852func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
6853	type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
6854	raw := NoMethod(*s)
6855	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6856}
6857
6858// GoogleCloudDialogflowV2EventInput: Events allow for matching intents
6859// by event name instead of the natural language input. For instance,
6860// input `` can trigger a personalized welcome response. The parameter
6861// `name` may be used by the agent in the response: "Hello
6862// #welcome_event.name! What can I do for you today?".
6863type GoogleCloudDialogflowV2EventInput struct {
6864	// LanguageCode: Required. The language of this query. See Language
6865	// Support (https://cloud.google.com/dialogflow/docs/reference/language)
6866	// for a list of the currently supported language codes. Note that
6867	// queries in the same session do not necessarily need to specify the
6868	// same language.
6869	LanguageCode string `json:"languageCode,omitempty"`
6870
6871	// Name: Required. The unique identifier of the event.
6872	Name string `json:"name,omitempty"`
6873
6874	// Parameters: The collection of parameters associated with the event.
6875	// Depending on your protocol or client library language, this is a map,
6876	// associative array, symbol table, dictionary, or JSON object composed
6877	// of a collection of (MapKey, MapValue) pairs: - MapKey type: string -
6878	// MapKey value: parameter name - MapValue type: - If parameter's entity
6879	// type is a composite entity: map - Else: depending on parameter value
6880	// type, could be one of string, number, boolean, null, list or map -
6881	// MapValue value: - If parameter's entity type is a composite entity:
6882	// map from composite entity property names to property values - Else:
6883	// parameter value
6884	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
6885
6886	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
6887	// unconditionally include in API requests. By default, fields with
6888	// empty values are omitted from API requests. However, any non-pointer,
6889	// non-interface field appearing in ForceSendFields will be sent to the
6890	// server regardless of whether the field is empty or not. This may be
6891	// used to include empty fields in Patch requests.
6892	ForceSendFields []string `json:"-"`
6893
6894	// NullFields is a list of field names (e.g. "LanguageCode") to include
6895	// in API requests with the JSON null value. By default, fields with
6896	// empty values are omitted from API requests. However, any field with
6897	// an empty value appearing in NullFields will be sent to the server as
6898	// null. It is an error if a field in this list has a non-empty value.
6899	// This may be used to include null fields in Patch requests.
6900	NullFields []string `json:"-"`
6901}
6902
6903func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
6904	type NoMethod GoogleCloudDialogflowV2EventInput
6905	raw := NoMethod(*s)
6906	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6907}
6908
6909// GoogleCloudDialogflowV2ExportAgentResponse: The response message for
6910// Agents.ExportAgent.
6911type GoogleCloudDialogflowV2ExportAgentResponse struct {
6912	// AgentContent: Zip compressed raw byte content for agent.
6913	AgentContent string `json:"agentContent,omitempty"`
6914
6915	// AgentUri: The URI to a file containing the exported agent. This field
6916	// is populated only if `agent_uri` is specified in
6917	// `ExportAgentRequest`.
6918	AgentUri string `json:"agentUri,omitempty"`
6919
6920	// ForceSendFields is a list of field names (e.g. "AgentContent") to
6921	// unconditionally include in API requests. By default, fields with
6922	// empty values are omitted from API requests. However, any non-pointer,
6923	// non-interface field appearing in ForceSendFields will be sent to the
6924	// server regardless of whether the field is empty or not. This may be
6925	// used to include empty fields in Patch requests.
6926	ForceSendFields []string `json:"-"`
6927
6928	// NullFields is a list of field names (e.g. "AgentContent") to include
6929	// in API requests with the JSON null value. By default, fields with
6930	// empty values are omitted from API requests. However, any field with
6931	// an empty value appearing in NullFields will be sent to the server as
6932	// null. It is an error if a field in this list has a non-empty value.
6933	// This may be used to include null fields in Patch requests.
6934	NullFields []string `json:"-"`
6935}
6936
6937func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
6938	type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
6939	raw := NoMethod(*s)
6940	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6941}
6942
6943// GoogleCloudDialogflowV2FaqAnswer: Represents answer from "frequently
6944// asked questions".
6945type GoogleCloudDialogflowV2FaqAnswer struct {
6946	// Answer: The piece of text from the `source` knowledge base document.
6947	Answer string `json:"answer,omitempty"`
6948
6949	// AnswerRecord: The name of answer record, in the format of
6950	// "projects//locations//answerRecords/"
6951	AnswerRecord string `json:"answerRecord,omitempty"`
6952
6953	// Confidence: The system's confidence score that this Knowledge answer
6954	// is a good match for this conversational query, range from 0.0
6955	// (completely uncertain) to 1.0 (completely certain).
6956	Confidence float64 `json:"confidence,omitempty"`
6957
6958	// Metadata: A map that contains metadata about the answer and the
6959	// document from which it originates.
6960	Metadata map[string]string `json:"metadata,omitempty"`
6961
6962	// Question: The corresponding FAQ question.
6963	Question string `json:"question,omitempty"`
6964
6965	// Source: Indicates which Knowledge Document this answer was extracted
6966	// from. Format:
6967	// `projects//locations//agent/knowledgeBases//documents/`.
6968	Source string `json:"source,omitempty"`
6969
6970	// ForceSendFields is a list of field names (e.g. "Answer") to
6971	// unconditionally include in API requests. By default, fields with
6972	// empty values are omitted from API requests. However, any non-pointer,
6973	// non-interface field appearing in ForceSendFields will be sent to the
6974	// server regardless of whether the field is empty or not. This may be
6975	// used to include empty fields in Patch requests.
6976	ForceSendFields []string `json:"-"`
6977
6978	// NullFields is a list of field names (e.g. "Answer") to include in API
6979	// requests with the JSON null value. By default, fields with empty
6980	// values are omitted from API requests. However, any field with an
6981	// empty value appearing in NullFields will be sent to the server as
6982	// null. It is an error if a field in this list has a non-empty value.
6983	// This may be used to include null fields in Patch requests.
6984	NullFields []string `json:"-"`
6985}
6986
6987func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
6988	type NoMethod GoogleCloudDialogflowV2FaqAnswer
6989	raw := NoMethod(*s)
6990	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6991}
6992
6993func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
6994	type NoMethod GoogleCloudDialogflowV2FaqAnswer
6995	var s1 struct {
6996		Confidence gensupport.JSONFloat64 `json:"confidence"`
6997		*NoMethod
6998	}
6999	s1.NoMethod = (*NoMethod)(s)
7000	if err := json.Unmarshal(data, &s1); err != nil {
7001		return err
7002	}
7003	s.Confidence = float64(s1.Confidence)
7004	return nil
7005}
7006
7007// GoogleCloudDialogflowV2HumanAgentAssistantEvent: Represents a
7008// notification sent to Cloud Pub/Sub subscribers for human agent
7009// assistant events in a specific conversation.
7010type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
7011	// Conversation: The conversation this notification refers to. Format:
7012	// `projects//conversations/`.
7013	Conversation string `json:"conversation,omitempty"`
7014
7015	// Participant: The participant that the suggestion is compiled for.
7016	// Format: `projects//conversations//participants/`. It will not be set
7017	// in legacy workflow.
7018	Participant string `json:"participant,omitempty"`
7019
7020	// SuggestionResults: The suggestion results payload that this
7021	// notification refers to.
7022	SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
7023
7024	// ForceSendFields is a list of field names (e.g. "Conversation") to
7025	// unconditionally include in API requests. By default, fields with
7026	// empty values are omitted from API requests. However, any non-pointer,
7027	// non-interface field appearing in ForceSendFields will be sent to the
7028	// server regardless of whether the field is empty or not. This may be
7029	// used to include empty fields in Patch requests.
7030	ForceSendFields []string `json:"-"`
7031
7032	// NullFields is a list of field names (e.g. "Conversation") to include
7033	// in API requests with the JSON null value. By default, fields with
7034	// empty values are omitted from API requests. However, any field with
7035	// an empty value appearing in NullFields will be sent to the server as
7036	// null. It is an error if a field in this list has a non-empty value.
7037	// This may be used to include null fields in Patch requests.
7038	NullFields []string `json:"-"`
7039}
7040
7041func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
7042	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
7043	raw := NoMethod(*s)
7044	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7045}
7046
7047// GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's
7048// intention for one conversation turn. For each agent, you define many
7049// intents, where your combined intents can handle a complete
7050// conversation. When an end-user writes or says something, referred to
7051// as an end-user expression or end-user input, Dialogflow matches the
7052// end-user input to the best intent in your agent. Matching an intent
7053// is also known as intent classification. For more information, see the
7054// intent guide
7055// (https://cloud.google.com/dialogflow/docs/intents-overview).
7056type GoogleCloudDialogflowV2Intent struct {
7057	// Action: Optional. The name of the action associated with the intent.
7058	// Note: The action name must not contain whitespaces.
7059	Action string `json:"action,omitempty"`
7060
7061	// DefaultResponsePlatforms: Optional. The list of platforms for which
7062	// the first responses will be copied from the messages in
7063	// PLATFORM_UNSPECIFIED (i.e. default platform).
7064	//
7065	// Possible values:
7066	//   "PLATFORM_UNSPECIFIED" - Default platform.
7067	//   "FACEBOOK" - Facebook.
7068	//   "SLACK" - Slack.
7069	//   "TELEGRAM" - Telegram.
7070	//   "KIK" - Kik.
7071	//   "SKYPE" - Skype.
7072	//   "LINE" - Line.
7073	//   "VIBER" - Viber.
7074	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
7075	// format](https://developers.google.com/assistant/actions/build/json/dia
7076	// logflow-webhook-json)
7077	//   "GOOGLE_HANGOUTS" - Google Hangouts.
7078	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
7079
7080	// DisplayName: Required. The name of this intent.
7081	DisplayName string `json:"displayName,omitempty"`
7082
7083	// EndInteraction: Optional. Indicates that this intent ends an
7084	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
7085	// phone gateway) use this information to close interaction with an end
7086	// user. Default is false.
7087	EndInteraction bool `json:"endInteraction,omitempty"`
7088
7089	// Events: Optional. The collection of event names that trigger the
7090	// intent. If the collection of input contexts is not empty, all of the
7091	// contexts must be present in the active user session for an event to
7092	// trigger this intent. Event names are limited to 150 characters.
7093	Events []string `json:"events,omitempty"`
7094
7095	// FollowupIntentInfo: Read-only. Information about all followup intents
7096	// that have this intent as a direct or indirect parent. We populate
7097	// this field only in the output.
7098	FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
7099
7100	// InputContextNames: Optional. The list of context names required for
7101	// this intent to be triggered. Format:
7102	// `projects//agent/sessions/-/contexts/`.
7103	InputContextNames []string `json:"inputContextNames,omitempty"`
7104
7105	// IsFallback: Optional. Indicates whether this is a fallback intent.
7106	IsFallback bool `json:"isFallback,omitempty"`
7107
7108	// LiveAgentHandoff: Optional. Indicates that a live agent should be
7109	// brought in to handle the interaction with the user. In most cases,
7110	// when you set this flag to true, you would also want to set
7111	// end_interaction to true as well. Default is false.
7112	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
7113
7114	// Messages: Optional. The collection of rich messages corresponding to
7115	// the `Response` field in the Dialogflow console.
7116	Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
7117
7118	// MlDisabled: Optional. Indicates whether Machine Learning is disabled
7119	// for the intent. Note: If `ml_disabled` setting is set to true, then
7120	// this intent is not taken into account during inference in `ML ONLY`
7121	// match mode. Also, auto-markup in the UI is turned off.
7122	MlDisabled bool `json:"mlDisabled,omitempty"`
7123
7124	// Name: Optional. The unique identifier of this intent. Required for
7125	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
7126	// `projects//agent/intents/`.
7127	Name string `json:"name,omitempty"`
7128
7129	// OutputContexts: Optional. The collection of contexts that are
7130	// activated when the intent is matched. Context messages in this
7131	// collection should not set the parameters field. Setting the
7132	// `lifespan_count` to 0 will reset the context when the intent is
7133	// matched. Format: `projects//agent/sessions/-/contexts/`.
7134	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
7135
7136	// Parameters: Optional. The collection of parameters associated with
7137	// the intent.
7138	Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
7139
7140	// ParentFollowupIntentName: Read-only after creation. The unique
7141	// identifier of the parent intent in the chain of followup intents. You
7142	// can set this field when creating an intent, for example with
7143	// CreateIntent or BatchUpdateIntents, in order to make this intent a
7144	// followup intent. It identifies the parent followup intent. Format:
7145	// `projects//agent/intents/`.
7146	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
7147
7148	// Priority: Optional. The priority of this intent. Higher numbers
7149	// represent higher priorities. - If the supplied value is unspecified
7150	// or 0, the service translates the value to 500,000, which corresponds
7151	// to the `Normal` priority in the console. - If the supplied value is
7152	// negative, the intent is ignored in runtime detect intent requests.
7153	Priority int64 `json:"priority,omitempty"`
7154
7155	// ResetContexts: Optional. Indicates whether to delete all contexts in
7156	// the current session when this intent is matched.
7157	ResetContexts bool `json:"resetContexts,omitempty"`
7158
7159	// RootFollowupIntentName: Read-only. The unique identifier of the root
7160	// intent in the chain of followup intents. It identifies the correct
7161	// followup intents chain for this intent. We populate this field only
7162	// in the output. Format: `projects//agent/intents/`.
7163	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
7164
7165	// TrainingPhrases: Optional. The collection of examples that the agent
7166	// is trained on.
7167	TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
7168
7169	// WebhookState: Optional. Indicates whether webhooks are enabled for
7170	// the intent.
7171	//
7172	// Possible values:
7173	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and
7174	// in the intent.
7175	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in
7176	// the intent.
7177	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in
7178	// the agent and in the intent. Also, each slot filling prompt is
7179	// forwarded to the webhook.
7180	WebhookState string `json:"webhookState,omitempty"`
7181
7182	// ForceSendFields is a list of field names (e.g. "Action") to
7183	// unconditionally include in API requests. By default, fields with
7184	// empty values are omitted from API requests. However, any non-pointer,
7185	// non-interface field appearing in ForceSendFields will be sent to the
7186	// server regardless of whether the field is empty or not. This may be
7187	// used to include empty fields in Patch requests.
7188	ForceSendFields []string `json:"-"`
7189
7190	// NullFields is a list of field names (e.g. "Action") to include in API
7191	// requests with the JSON null value. By default, fields with empty
7192	// values are omitted from API requests. However, any field with an
7193	// empty value appearing in NullFields will be sent to the server as
7194	// null. It is an error if a field in this list has a non-empty value.
7195	// This may be used to include null fields in Patch requests.
7196	NullFields []string `json:"-"`
7197}
7198
7199func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
7200	type NoMethod GoogleCloudDialogflowV2Intent
7201	raw := NoMethod(*s)
7202	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7203}
7204
7205// GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single
7206// followup intent in the chain.
7207type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
7208	// FollowupIntentName: The unique identifier of the followup intent.
7209	// Format: `projects//agent/intents/`.
7210	FollowupIntentName string `json:"followupIntentName,omitempty"`
7211
7212	// ParentFollowupIntentName: The unique identifier of the followup
7213	// intent's parent. Format: `projects//agent/intents/`.
7214	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
7215
7216	// ForceSendFields is a list of field names (e.g. "FollowupIntentName")
7217	// to unconditionally include in API requests. By default, fields with
7218	// empty values are omitted from API requests. However, any non-pointer,
7219	// non-interface field appearing in ForceSendFields will be sent to the
7220	// server regardless of whether the field is empty or not. This may be
7221	// used to include empty fields in Patch requests.
7222	ForceSendFields []string `json:"-"`
7223
7224	// NullFields is a list of field names (e.g. "FollowupIntentName") to
7225	// include in API requests with the JSON null value. By default, fields
7226	// with empty values are omitted from API requests. However, any field
7227	// with an empty value appearing in NullFields will be sent to the
7228	// server as null. It is an error if a field in this list has a
7229	// non-empty value. This may be used to include null fields in Patch
7230	// requests.
7231	NullFields []string `json:"-"`
7232}
7233
7234func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
7235	type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
7236	raw := NoMethod(*s)
7237	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7238}
7239
7240// GoogleCloudDialogflowV2IntentMessage: A rich response message.
7241// Corresponds to the intent `Response` field in the Dialogflow console.
7242// For more information, see Rich response messages
7243// (https://cloud.google.com/dialogflow/docs/intents-rich-messages).
7244type GoogleCloudDialogflowV2IntentMessage struct {
7245	// BasicCard: The basic card response for Actions on Google.
7246	BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
7247
7248	// BrowseCarouselCard: Browse carousel card for Actions on Google.
7249	BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
7250
7251	// Card: The card response.
7252	Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
7253
7254	// CarouselSelect: The carousel card response for Actions on Google.
7255	CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
7256
7257	// Image: The image response.
7258	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7259
7260	// LinkOutSuggestion: The link out suggestion chip for Actions on
7261	// Google.
7262	LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
7263
7264	// ListSelect: The list card response for Actions on Google.
7265	ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
7266
7267	// MediaContent: The media content card for Actions on Google.
7268	MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
7269
7270	// Payload: A custom platform-specific response.
7271	Payload googleapi.RawMessage `json:"payload,omitempty"`
7272
7273	// Platform: Optional. The platform that this message is intended for.
7274	//
7275	// Possible values:
7276	//   "PLATFORM_UNSPECIFIED" - Default platform.
7277	//   "FACEBOOK" - Facebook.
7278	//   "SLACK" - Slack.
7279	//   "TELEGRAM" - Telegram.
7280	//   "KIK" - Kik.
7281	//   "SKYPE" - Skype.
7282	//   "LINE" - Line.
7283	//   "VIBER" - Viber.
7284	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
7285	// format](https://developers.google.com/assistant/actions/build/json/dia
7286	// logflow-webhook-json)
7287	//   "GOOGLE_HANGOUTS" - Google Hangouts.
7288	Platform string `json:"platform,omitempty"`
7289
7290	// QuickReplies: The quick replies response.
7291	QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
7292
7293	// SimpleResponses: The voice and text-only responses for Actions on
7294	// Google.
7295	SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
7296
7297	// Suggestions: The suggestion chips for Actions on Google.
7298	Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
7299
7300	// TableCard: Table card for Actions on Google.
7301	TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
7302
7303	// Text: The text response.
7304	Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
7305
7306	// ForceSendFields is a list of field names (e.g. "BasicCard") to
7307	// unconditionally include in API requests. By default, fields with
7308	// empty values are omitted from API requests. However, any non-pointer,
7309	// non-interface field appearing in ForceSendFields will be sent to the
7310	// server regardless of whether the field is empty or not. This may be
7311	// used to include empty fields in Patch requests.
7312	ForceSendFields []string `json:"-"`
7313
7314	// NullFields is a list of field names (e.g. "BasicCard") to include in
7315	// API requests with the JSON null value. By default, fields with empty
7316	// values are omitted from API requests. However, any field with an
7317	// empty value appearing in NullFields will be sent to the server as
7318	// null. It is an error if a field in this list has a non-empty value.
7319	// This may be used to include null fields in Patch requests.
7320	NullFields []string `json:"-"`
7321}
7322
7323func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
7324	type NoMethod GoogleCloudDialogflowV2IntentMessage
7325	raw := NoMethod(*s)
7326	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7327}
7328
7329// GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card
7330// message. Useful for displaying information.
7331type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
7332	// Buttons: Optional. The collection of card buttons.
7333	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
7334
7335	// FormattedText: Required, unless image is present. The body text of
7336	// the card.
7337	FormattedText string `json:"formattedText,omitempty"`
7338
7339	// Image: Optional. The image for the card.
7340	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7341
7342	// Subtitle: Optional. The subtitle of the card.
7343	Subtitle string `json:"subtitle,omitempty"`
7344
7345	// Title: Optional. The title of the card.
7346	Title string `json:"title,omitempty"`
7347
7348	// ForceSendFields is a list of field names (e.g. "Buttons") to
7349	// unconditionally include in API requests. By default, fields with
7350	// empty values are omitted from API requests. However, any non-pointer,
7351	// non-interface field appearing in ForceSendFields will be sent to the
7352	// server regardless of whether the field is empty or not. This may be
7353	// used to include empty fields in Patch requests.
7354	ForceSendFields []string `json:"-"`
7355
7356	// NullFields is a list of field names (e.g. "Buttons") to include in
7357	// API requests with the JSON null value. By default, fields with empty
7358	// values are omitted from API requests. However, any field with an
7359	// empty value appearing in NullFields will be sent to the server as
7360	// null. It is an error if a field in this list has a non-empty value.
7361	// This may be used to include null fields in Patch requests.
7362	NullFields []string `json:"-"`
7363}
7364
7365func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
7366	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
7367	raw := NoMethod(*s)
7368	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7369}
7370
7371// GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button
7372// object that appears at the bottom of a card.
7373type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
7374	// OpenUriAction: Required. Action to take when a user taps on the
7375	// button.
7376	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
7377
7378	// Title: Required. The title of the button.
7379	Title string `json:"title,omitempty"`
7380
7381	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
7382	// unconditionally include in API requests. By default, fields with
7383	// empty values are omitted from API requests. However, any non-pointer,
7384	// non-interface field appearing in ForceSendFields will be sent to the
7385	// server regardless of whether the field is empty or not. This may be
7386	// used to include empty fields in Patch requests.
7387	ForceSendFields []string `json:"-"`
7388
7389	// NullFields is a list of field names (e.g. "OpenUriAction") to include
7390	// in API requests with the JSON null value. By default, fields with
7391	// empty values are omitted from API requests. However, any field with
7392	// an empty value appearing in NullFields will be sent to the server as
7393	// null. It is an error if a field in this list has a non-empty value.
7394	// This may be used to include null fields in Patch requests.
7395	NullFields []string `json:"-"`
7396}
7397
7398func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
7399	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
7400	raw := NoMethod(*s)
7401	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7402}
7403
7404// GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction:
7405// Opens the given URI.
7406type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
7407	// Uri: Required. The HTTP or HTTPS scheme URI.
7408	Uri string `json:"uri,omitempty"`
7409
7410	// ForceSendFields is a list of field names (e.g. "Uri") to
7411	// unconditionally include in API requests. By default, fields with
7412	// empty values are omitted from API requests. However, any non-pointer,
7413	// non-interface field appearing in ForceSendFields will be sent to the
7414	// server regardless of whether the field is empty or not. This may be
7415	// used to include empty fields in Patch requests.
7416	ForceSendFields []string `json:"-"`
7417
7418	// NullFields is a list of field names (e.g. "Uri") to include in API
7419	// requests with the JSON null value. By default, fields with empty
7420	// values are omitted from API requests. However, any field with an
7421	// empty value appearing in NullFields will be sent to the server as
7422	// null. It is an error if a field in this list has a non-empty value.
7423	// This may be used to include null fields in Patch requests.
7424	NullFields []string `json:"-"`
7425}
7426
7427func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
7428	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
7429	raw := NoMethod(*s)
7430	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7431}
7432
7433// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse
7434// Carousel Card for Actions on Google.
7435// https://developers.google.com/actions/assistant/responses#browsing_carousel
7436type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
7437	// ImageDisplayOptions: Optional. Settings for displaying the image.
7438	// Applies to every image in items.
7439	//
7440	// Possible values:
7441	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the
7442	// image and the image container with gray bars.
7443	//   "GRAY" - Fill the gaps between the image and the image container
7444	// with gray bars.
7445	//   "WHITE" - Fill the gaps between the image and the image container
7446	// with white bars.
7447	//   "CROPPED" - Image is scaled such that the image width and height
7448	// match or exceed the container dimensions. This may crop the top and
7449	// bottom of the image if the scaled image height is greater than the
7450	// container height, or crop the left and right of the image if the
7451	// scaled image width is greater than the container width. This is
7452	// similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video.
7453	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame
7454	// with a blurred copy of the same image.
7455	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
7456
7457	// Items: Required. List of items in the Browse Carousel Card. Minimum
7458	// of two items, maximum of ten.
7459	Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
7460
7461	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions")
7462	// to unconditionally include in API requests. By default, fields with
7463	// empty values are omitted from API requests. However, any non-pointer,
7464	// non-interface field appearing in ForceSendFields will be sent to the
7465	// server regardless of whether the field is empty or not. This may be
7466	// used to include empty fields in Patch requests.
7467	ForceSendFields []string `json:"-"`
7468
7469	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to
7470	// include in API requests with the JSON null value. By default, fields
7471	// with empty values are omitted from API requests. However, any field
7472	// with an empty value appearing in NullFields will be sent to the
7473	// server as null. It is an error if a field in this list has a
7474	// non-empty value. This may be used to include null fields in Patch
7475	// requests.
7476	NullFields []string `json:"-"`
7477}
7478
7479func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
7480	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
7481	raw := NoMethod(*s)
7482	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7483}
7484
7485// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa
7486// rdItem: Browsing carousel tile
7487type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
7488	// Description: Optional. Description of the carousel item. Maximum of
7489	// four lines of text.
7490	Description string `json:"description,omitempty"`
7491
7492	// Footer: Optional. Text that appears at the bottom of the Browse
7493	// Carousel Card. Maximum of one line of text.
7494	Footer string `json:"footer,omitempty"`
7495
7496	// Image: Optional. Hero image for the carousel item.
7497	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7498
7499	// OpenUriAction: Required. Action to present to the user.
7500	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
7501
7502	// Title: Required. Title of the carousel item. Maximum of two lines of
7503	// text.
7504	Title string `json:"title,omitempty"`
7505
7506	// ForceSendFields is a list of field names (e.g. "Description") to
7507	// unconditionally include in API requests. By default, fields with
7508	// empty values are omitted from API requests. However, any non-pointer,
7509	// non-interface field appearing in ForceSendFields will be sent to the
7510	// server regardless of whether the field is empty or not. This may be
7511	// used to include empty fields in Patch requests.
7512	ForceSendFields []string `json:"-"`
7513
7514	// NullFields is a list of field names (e.g. "Description") to include
7515	// in API requests with the JSON null value. By default, fields with
7516	// empty values are omitted from API requests. However, any field with
7517	// an empty value appearing in NullFields will be sent to the server as
7518	// null. It is an error if a field in this list has a non-empty value.
7519	// This may be used to include null fields in Patch requests.
7520	NullFields []string `json:"-"`
7521}
7522
7523func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
7524	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
7525	raw := NoMethod(*s)
7526	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7527}
7528
7529// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa
7530// rdItemOpenUrlAction: Actions on Google action to open a given url.
7531type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
7532	// Url: Required. URL
7533	Url string `json:"url,omitempty"`
7534
7535	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
7536	// opening the URL. Defaults to opening via web browser.
7537	//
7538	// Possible values:
7539	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
7540	//   "AMP_ACTION" - Url would be an amp action
7541	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a
7542	// canonical URL which refers to AMP content via .
7543	UrlTypeHint string `json:"urlTypeHint,omitempty"`
7544
7545	// ForceSendFields is a list of field names (e.g. "Url") to
7546	// unconditionally include in API requests. By default, fields with
7547	// empty values are omitted from API requests. However, any non-pointer,
7548	// non-interface field appearing in ForceSendFields will be sent to the
7549	// server regardless of whether the field is empty or not. This may be
7550	// used to include empty fields in Patch requests.
7551	ForceSendFields []string `json:"-"`
7552
7553	// NullFields is a list of field names (e.g. "Url") to include in API
7554	// requests with the JSON null value. By default, fields with empty
7555	// values are omitted from API requests. However, any field with an
7556	// empty value appearing in NullFields will be sent to the server as
7557	// null. It is an error if a field in this list has a non-empty value.
7558	// This may be used to include null fields in Patch requests.
7559	NullFields []string `json:"-"`
7560}
7561
7562func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
7563	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
7564	raw := NoMethod(*s)
7565	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7566}
7567
7568// GoogleCloudDialogflowV2IntentMessageCard: The card response message.
7569type GoogleCloudDialogflowV2IntentMessageCard struct {
7570	// Buttons: Optional. The collection of card buttons.
7571	Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
7572
7573	// ImageUri: Optional. The public URI to an image file for the card.
7574	ImageUri string `json:"imageUri,omitempty"`
7575
7576	// Subtitle: Optional. The subtitle of the card.
7577	Subtitle string `json:"subtitle,omitempty"`
7578
7579	// Title: Optional. The title of the card.
7580	Title string `json:"title,omitempty"`
7581
7582	// ForceSendFields is a list of field names (e.g. "Buttons") to
7583	// unconditionally include in API requests. By default, fields with
7584	// empty values are omitted from API requests. However, any non-pointer,
7585	// non-interface field appearing in ForceSendFields will be sent to the
7586	// server regardless of whether the field is empty or not. This may be
7587	// used to include empty fields in Patch requests.
7588	ForceSendFields []string `json:"-"`
7589
7590	// NullFields is a list of field names (e.g. "Buttons") to include in
7591	// API requests with the JSON null value. By default, fields with empty
7592	// values are omitted from API requests. However, any field with an
7593	// empty value appearing in NullFields will be sent to the server as
7594	// null. It is an error if a field in this list has a non-empty value.
7595	// This may be used to include null fields in Patch requests.
7596	NullFields []string `json:"-"`
7597}
7598
7599func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
7600	type NoMethod GoogleCloudDialogflowV2IntentMessageCard
7601	raw := NoMethod(*s)
7602	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7603}
7604
7605// GoogleCloudDialogflowV2IntentMessageCardButton: Contains information
7606// about a button.
7607type GoogleCloudDialogflowV2IntentMessageCardButton struct {
7608	// Postback: Optional. The text to send back to the Dialogflow API or a
7609	// URI to open.
7610	Postback string `json:"postback,omitempty"`
7611
7612	// Text: Optional. The text to show on the button.
7613	Text string `json:"text,omitempty"`
7614
7615	// ForceSendFields is a list of field names (e.g. "Postback") to
7616	// unconditionally include in API requests. By default, fields with
7617	// empty values are omitted from API requests. However, any non-pointer,
7618	// non-interface field appearing in ForceSendFields will be sent to the
7619	// server regardless of whether the field is empty or not. This may be
7620	// used to include empty fields in Patch requests.
7621	ForceSendFields []string `json:"-"`
7622
7623	// NullFields is a list of field names (e.g. "Postback") to include in
7624	// API requests with the JSON null value. By default, fields with empty
7625	// values are omitted from API requests. However, any field with an
7626	// empty value appearing in NullFields will be sent to the server as
7627	// null. It is an error if a field in this list has a non-empty value.
7628	// This may be used to include null fields in Patch requests.
7629	NullFields []string `json:"-"`
7630}
7631
7632func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
7633	type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
7634	raw := NoMethod(*s)
7635	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7636}
7637
7638// GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for
7639// presenting a carousel of options to select from.
7640type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
7641	// Items: Required. Carousel items.
7642	Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
7643
7644	// ForceSendFields is a list of field names (e.g. "Items") to
7645	// unconditionally include in API requests. By default, fields with
7646	// empty values are omitted from API requests. However, any non-pointer,
7647	// non-interface field appearing in ForceSendFields will be sent to the
7648	// server regardless of whether the field is empty or not. This may be
7649	// used to include empty fields in Patch requests.
7650	ForceSendFields []string `json:"-"`
7651
7652	// NullFields is a list of field names (e.g. "Items") to include in API
7653	// requests with the JSON null value. By default, fields with empty
7654	// values are omitted from API requests. However, any field with an
7655	// empty value appearing in NullFields will be sent to the server as
7656	// null. It is an error if a field in this list has a non-empty value.
7657	// This may be used to include null fields in Patch requests.
7658	NullFields []string `json:"-"`
7659}
7660
7661func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
7662	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
7663	raw := NoMethod(*s)
7664	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7665}
7666
7667// GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in
7668// the carousel.
7669type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
7670	// Description: Optional. The body text of the card.
7671	Description string `json:"description,omitempty"`
7672
7673	// Image: Optional. The image to display.
7674	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7675
7676	// Info: Required. Additional info about the option item.
7677	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
7678
7679	// Title: Required. Title of the carousel item.
7680	Title string `json:"title,omitempty"`
7681
7682	// ForceSendFields is a list of field names (e.g. "Description") to
7683	// unconditionally include in API requests. By default, fields with
7684	// empty values are omitted from API requests. However, any non-pointer,
7685	// non-interface field appearing in ForceSendFields will be sent to the
7686	// server regardless of whether the field is empty or not. This may be
7687	// used to include empty fields in Patch requests.
7688	ForceSendFields []string `json:"-"`
7689
7690	// NullFields is a list of field names (e.g. "Description") to include
7691	// in API requests with the JSON null value. By default, fields with
7692	// empty values are omitted from API requests. However, any field with
7693	// an empty value appearing in NullFields will be sent to the server as
7694	// null. It is an error if a field in this list has a non-empty value.
7695	// This may be used to include null fields in Patch requests.
7696	NullFields []string `json:"-"`
7697}
7698
7699func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
7700	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
7701	raw := NoMethod(*s)
7702	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7703}
7704
7705// GoogleCloudDialogflowV2IntentMessageColumnProperties: Column
7706// properties for TableCard.
7707type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
7708	// Header: Required. Column heading.
7709	Header string `json:"header,omitempty"`
7710
7711	// HorizontalAlignment: Optional. Defines text alignment for all cells
7712	// in this column.
7713	//
7714	// Possible values:
7715	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading
7716	// edge of the column.
7717	//   "LEADING" - Text is aligned to the leading edge of the column.
7718	//   "CENTER" - Text is centered in the column.
7719	//   "TRAILING" - Text is aligned to the trailing edge of the column.
7720	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
7721
7722	// ForceSendFields is a list of field names (e.g. "Header") to
7723	// unconditionally include in API requests. By default, fields with
7724	// empty values are omitted from API requests. However, any non-pointer,
7725	// non-interface field appearing in ForceSendFields will be sent to the
7726	// server regardless of whether the field is empty or not. This may be
7727	// used to include empty fields in Patch requests.
7728	ForceSendFields []string `json:"-"`
7729
7730	// NullFields is a list of field names (e.g. "Header") to include in API
7731	// requests with the JSON null value. By default, fields with empty
7732	// values are omitted from API requests. However, any field with an
7733	// empty value appearing in NullFields will be sent to the server as
7734	// null. It is an error if a field in this list has a non-empty value.
7735	// This may be used to include null fields in Patch requests.
7736	NullFields []string `json:"-"`
7737}
7738
7739func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
7740	type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
7741	raw := NoMethod(*s)
7742	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7743}
7744
7745// GoogleCloudDialogflowV2IntentMessageImage: The image response
7746// message.
7747type GoogleCloudDialogflowV2IntentMessageImage struct {
7748	// AccessibilityText: Optional. A text description of the image to be
7749	// used for accessibility, e.g., screen readers.
7750	AccessibilityText string `json:"accessibilityText,omitempty"`
7751
7752	// ImageUri: Optional. The public URI to an image file.
7753	ImageUri string `json:"imageUri,omitempty"`
7754
7755	// ForceSendFields is a list of field names (e.g. "AccessibilityText")
7756	// to unconditionally include in API requests. By default, fields with
7757	// empty values are omitted from API requests. However, any non-pointer,
7758	// non-interface field appearing in ForceSendFields will be sent to the
7759	// server regardless of whether the field is empty or not. This may be
7760	// used to include empty fields in Patch requests.
7761	ForceSendFields []string `json:"-"`
7762
7763	// NullFields is a list of field names (e.g. "AccessibilityText") to
7764	// include in API requests with the JSON null value. By default, fields
7765	// with empty values are omitted from API requests. However, any field
7766	// with an empty value appearing in NullFields will be sent to the
7767	// server as null. It is an error if a field in this list has a
7768	// non-empty value. This may be used to include null fields in Patch
7769	// requests.
7770	NullFields []string `json:"-"`
7771}
7772
7773func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
7774	type NoMethod GoogleCloudDialogflowV2IntentMessageImage
7775	raw := NoMethod(*s)
7776	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7777}
7778
7779// GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion
7780// chip message that allows the user to jump out to the app or website
7781// associated with this agent.
7782type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
7783	// DestinationName: Required. The name of the app or site this chip is
7784	// linking to.
7785	DestinationName string `json:"destinationName,omitempty"`
7786
7787	// Uri: Required. The URI of the app or site to open when the user taps
7788	// the suggestion chip.
7789	Uri string `json:"uri,omitempty"`
7790
7791	// ForceSendFields is a list of field names (e.g. "DestinationName") to
7792	// unconditionally include in API requests. By default, fields with
7793	// empty values are omitted from API requests. However, any non-pointer,
7794	// non-interface field appearing in ForceSendFields will be sent to the
7795	// server regardless of whether the field is empty or not. This may be
7796	// used to include empty fields in Patch requests.
7797	ForceSendFields []string `json:"-"`
7798
7799	// NullFields is a list of field names (e.g. "DestinationName") to
7800	// include in API requests with the JSON null value. By default, fields
7801	// with empty values are omitted from API requests. However, any field
7802	// with an empty value appearing in NullFields will be sent to the
7803	// server as null. It is an error if a field in this list has a
7804	// non-empty value. This may be used to include null fields in Patch
7805	// requests.
7806	NullFields []string `json:"-"`
7807}
7808
7809func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
7810	type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
7811	raw := NoMethod(*s)
7812	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7813}
7814
7815// GoogleCloudDialogflowV2IntentMessageListSelect: The card for
7816// presenting a list of options to select from.
7817type GoogleCloudDialogflowV2IntentMessageListSelect struct {
7818	// Items: Required. List items.
7819	Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
7820
7821	// Subtitle: Optional. Subtitle of the list.
7822	Subtitle string `json:"subtitle,omitempty"`
7823
7824	// Title: Optional. The overall title of the list.
7825	Title string `json:"title,omitempty"`
7826
7827	// ForceSendFields is a list of field names (e.g. "Items") to
7828	// unconditionally include in API requests. By default, fields with
7829	// empty values are omitted from API requests. However, any non-pointer,
7830	// non-interface field appearing in ForceSendFields will be sent to the
7831	// server regardless of whether the field is empty or not. This may be
7832	// used to include empty fields in Patch requests.
7833	ForceSendFields []string `json:"-"`
7834
7835	// NullFields is a list of field names (e.g. "Items") to include in API
7836	// requests with the JSON null value. By default, fields with empty
7837	// values are omitted from API requests. However, any field with an
7838	// empty value appearing in NullFields will be sent to the server as
7839	// null. It is an error if a field in this list has a non-empty value.
7840	// This may be used to include null fields in Patch requests.
7841	NullFields []string `json:"-"`
7842}
7843
7844func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
7845	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
7846	raw := NoMethod(*s)
7847	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7848}
7849
7850// GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the
7851// list.
7852type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
7853	// Description: Optional. The main text describing the item.
7854	Description string `json:"description,omitempty"`
7855
7856	// Image: Optional. The image to display.
7857	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
7858
7859	// Info: Required. Additional information about this option.
7860	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
7861
7862	// Title: Required. The title of the list item.
7863	Title string `json:"title,omitempty"`
7864
7865	// ForceSendFields is a list of field names (e.g. "Description") to
7866	// unconditionally include in API requests. By default, fields with
7867	// empty values are omitted from API requests. However, any non-pointer,
7868	// non-interface field appearing in ForceSendFields will be sent to the
7869	// server regardless of whether the field is empty or not. This may be
7870	// used to include empty fields in Patch requests.
7871	ForceSendFields []string `json:"-"`
7872
7873	// NullFields is a list of field names (e.g. "Description") to include
7874	// in API requests with the JSON null value. By default, fields with
7875	// empty values are omitted from API requests. However, any field with
7876	// an empty value appearing in NullFields will be sent to the server as
7877	// null. It is an error if a field in this list has a non-empty value.
7878	// This may be used to include null fields in Patch requests.
7879	NullFields []string `json:"-"`
7880}
7881
7882func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
7883	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
7884	raw := NoMethod(*s)
7885	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7886}
7887
7888// GoogleCloudDialogflowV2IntentMessageMediaContent: The media content
7889// card for Actions on Google.
7890type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
7891	// MediaObjects: Required. List of media objects.
7892	MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
7893
7894	// MediaType: Optional. What type of media is the content (ie "audio").
7895	//
7896	// Possible values:
7897	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
7898	//   "AUDIO" - Response media type is audio.
7899	MediaType string `json:"mediaType,omitempty"`
7900
7901	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
7902	// unconditionally include in API requests. By default, fields with
7903	// empty values are omitted from API requests. However, any non-pointer,
7904	// non-interface field appearing in ForceSendFields will be sent to the
7905	// server regardless of whether the field is empty or not. This may be
7906	// used to include empty fields in Patch requests.
7907	ForceSendFields []string `json:"-"`
7908
7909	// NullFields is a list of field names (e.g. "MediaObjects") to include
7910	// in API requests with the JSON null value. By default, fields with
7911	// empty values are omitted from API requests. However, any field with
7912	// an empty value appearing in NullFields will be sent to the server as
7913	// null. It is an error if a field in this list has a non-empty value.
7914	// This may be used to include null fields in Patch requests.
7915	NullFields []string `json:"-"`
7916}
7917
7918func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
7919	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
7920	raw := NoMethod(*s)
7921	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7922}
7923
7924// GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject:
7925// Response media object for media content card.
7926type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
7927	// ContentUrl: Required. Url where the media is stored.
7928	ContentUrl string `json:"contentUrl,omitempty"`
7929
7930	// Description: Optional. Description of media card.
7931	Description string `json:"description,omitempty"`
7932
7933	// Icon: Optional. Icon to display above media content.
7934	Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
7935
7936	// LargeImage: Optional. Image to display above media content.
7937	LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
7938
7939	// Name: Required. Name of media card.
7940	Name string `json:"name,omitempty"`
7941
7942	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
7943	// unconditionally include in API requests. By default, fields with
7944	// empty values are omitted from API requests. However, any non-pointer,
7945	// non-interface field appearing in ForceSendFields will be sent to the
7946	// server regardless of whether the field is empty or not. This may be
7947	// used to include empty fields in Patch requests.
7948	ForceSendFields []string `json:"-"`
7949
7950	// NullFields is a list of field names (e.g. "ContentUrl") to include in
7951	// API requests with the JSON null value. By default, fields with empty
7952	// values are omitted from API requests. However, any field with an
7953	// empty value appearing in NullFields will be sent to the server as
7954	// null. It is an error if a field in this list has a non-empty value.
7955	// This may be used to include null fields in Patch requests.
7956	NullFields []string `json:"-"`
7957}
7958
7959func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
7960	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
7961	raw := NoMethod(*s)
7962	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7963}
7964
7965// GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies
7966// response message.
7967type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
7968	// QuickReplies: Optional. The collection of quick replies.
7969	QuickReplies []string `json:"quickReplies,omitempty"`
7970
7971	// Title: Optional. The title of the collection of quick replies.
7972	Title string `json:"title,omitempty"`
7973
7974	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
7975	// unconditionally include in API requests. By default, fields with
7976	// empty values are omitted from API requests. However, any non-pointer,
7977	// non-interface field appearing in ForceSendFields will be sent to the
7978	// server regardless of whether the field is empty or not. This may be
7979	// used to include empty fields in Patch requests.
7980	ForceSendFields []string `json:"-"`
7981
7982	// NullFields is a list of field names (e.g. "QuickReplies") to include
7983	// in API requests with the JSON null value. By default, fields with
7984	// empty values are omitted from API requests. However, any field with
7985	// an empty value appearing in NullFields will be sent to the server as
7986	// null. It is an error if a field in this list has a non-empty value.
7987	// This may be used to include null fields in Patch requests.
7988	NullFields []string `json:"-"`
7989}
7990
7991func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
7992	type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
7993	raw := NoMethod(*s)
7994	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7995}
7996
7997// GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info
7998// about the select item for when it is triggered in a dialog.
7999type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
8000	// Key: Required. A unique key that will be sent back to the agent if
8001	// this response is given.
8002	Key string `json:"key,omitempty"`
8003
8004	// Synonyms: Optional. A list of synonyms that can also be used to
8005	// trigger this item in dialog.
8006	Synonyms []string `json:"synonyms,omitempty"`
8007
8008	// ForceSendFields is a list of field names (e.g. "Key") to
8009	// unconditionally include in API requests. By default, fields with
8010	// empty values are omitted from API requests. However, any non-pointer,
8011	// non-interface field appearing in ForceSendFields will be sent to the
8012	// server regardless of whether the field is empty or not. This may be
8013	// used to include empty fields in Patch requests.
8014	ForceSendFields []string `json:"-"`
8015
8016	// NullFields is a list of field names (e.g. "Key") to include in API
8017	// requests with the JSON null value. By default, fields with empty
8018	// values are omitted from API requests. However, any field with an
8019	// empty value appearing in NullFields will be sent to the server as
8020	// null. It is an error if a field in this list has a non-empty value.
8021	// This may be used to include null fields in Patch requests.
8022	NullFields []string `json:"-"`
8023}
8024
8025func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
8026	type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
8027	raw := NoMethod(*s)
8028	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8029}
8030
8031// GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple
8032// response message containing speech or text.
8033type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
8034	// DisplayText: Optional. The text to display.
8035	DisplayText string `json:"displayText,omitempty"`
8036
8037	// Ssml: One of text_to_speech or ssml must be provided. Structured
8038	// spoken response to the user in the SSML format. Mutually exclusive
8039	// with text_to_speech.
8040	Ssml string `json:"ssml,omitempty"`
8041
8042	// TextToSpeech: One of text_to_speech or ssml must be provided. The
8043	// plain text of the speech output. Mutually exclusive with ssml.
8044	TextToSpeech string `json:"textToSpeech,omitempty"`
8045
8046	// ForceSendFields is a list of field names (e.g. "DisplayText") 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. "DisplayText") to include
8055	// in API requests with the JSON null value. By default, fields with
8056	// empty values are omitted from API requests. However, any field with
8057	// an empty value appearing in NullFields will be sent to the server as
8058	// null. It is an error if a field in this list has a non-empty value.
8059	// This may be used to include null fields in Patch requests.
8060	NullFields []string `json:"-"`
8061}
8062
8063func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
8064	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
8065	raw := NoMethod(*s)
8066	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8067}
8068
8069// GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection
8070// of simple response candidates. This message in
8071// `QueryResult.fulfillment_messages` and
8072// `WebhookResponse.fulfillment_messages` should contain only one
8073// `SimpleResponse`.
8074type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
8075	// SimpleResponses: Required. The list of simple responses.
8076	SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
8077
8078	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
8079	// unconditionally include in API requests. By default, fields with
8080	// empty values are omitted from API requests. However, any non-pointer,
8081	// non-interface field appearing in ForceSendFields will be sent to the
8082	// server regardless of whether the field is empty or not. This may be
8083	// used to include empty fields in Patch requests.
8084	ForceSendFields []string `json:"-"`
8085
8086	// NullFields is a list of field names (e.g. "SimpleResponses") to
8087	// include in API requests with the JSON null value. By default, fields
8088	// with empty values are omitted from API requests. However, any field
8089	// with an empty value appearing in NullFields will be sent to the
8090	// server as null. It is an error if a field in this list has a
8091	// non-empty value. This may be used to include null fields in Patch
8092	// requests.
8093	NullFields []string `json:"-"`
8094}
8095
8096func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
8097	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
8098	raw := NoMethod(*s)
8099	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8100}
8101
8102// GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip
8103// message that the user can tap to quickly post a reply to the
8104// conversation.
8105type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
8106	// Title: Required. The text shown the in the suggestion chip.
8107	Title string `json:"title,omitempty"`
8108
8109	// ForceSendFields is a list of field names (e.g. "Title") to
8110	// unconditionally include in API requests. By default, fields with
8111	// empty values are omitted from API requests. However, any non-pointer,
8112	// non-interface field appearing in ForceSendFields will be sent to the
8113	// server regardless of whether the field is empty or not. This may be
8114	// used to include empty fields in Patch requests.
8115	ForceSendFields []string `json:"-"`
8116
8117	// NullFields is a list of field names (e.g. "Title") to include in API
8118	// requests with the JSON null value. By default, fields with empty
8119	// values are omitted from API requests. However, any field with an
8120	// empty value appearing in NullFields will be sent to the server as
8121	// null. It is an error if a field in this list has a non-empty value.
8122	// This may be used to include null fields in Patch requests.
8123	NullFields []string `json:"-"`
8124}
8125
8126func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
8127	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
8128	raw := NoMethod(*s)
8129	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8130}
8131
8132// GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of
8133// suggestions.
8134type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
8135	// Suggestions: Required. The list of suggested replies.
8136	Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
8137
8138	// ForceSendFields is a list of field names (e.g. "Suggestions") to
8139	// unconditionally include in API requests. By default, fields with
8140	// empty values are omitted from API requests. However, any non-pointer,
8141	// non-interface field appearing in ForceSendFields will be sent to the
8142	// server regardless of whether the field is empty or not. This may be
8143	// used to include empty fields in Patch requests.
8144	ForceSendFields []string `json:"-"`
8145
8146	// NullFields is a list of field names (e.g. "Suggestions") to include
8147	// in API requests with the JSON null value. By default, fields with
8148	// empty values are omitted from API requests. However, any field with
8149	// an empty value appearing in NullFields will be sent to the server as
8150	// null. It is an error if a field in this list has a non-empty value.
8151	// This may be used to include null fields in Patch requests.
8152	NullFields []string `json:"-"`
8153}
8154
8155func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
8156	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
8157	raw := NoMethod(*s)
8158	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8159}
8160
8161// GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions
8162// on Google.
8163type GoogleCloudDialogflowV2IntentMessageTableCard struct {
8164	// Buttons: Optional. List of buttons for the card.
8165	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
8166
8167	// ColumnProperties: Optional. Display properties for the columns in
8168	// this table.
8169	ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
8170
8171	// Image: Optional. Image which should be displayed on the card.
8172	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
8173
8174	// Rows: Optional. Rows in this table of data.
8175	Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
8176
8177	// Subtitle: Optional. Subtitle to the title.
8178	Subtitle string `json:"subtitle,omitempty"`
8179
8180	// Title: Required. Title of the card.
8181	Title string `json:"title,omitempty"`
8182
8183	// ForceSendFields is a list of field names (e.g. "Buttons") to
8184	// unconditionally include in API requests. By default, fields with
8185	// empty values are omitted from API requests. However, any non-pointer,
8186	// non-interface field appearing in ForceSendFields will be sent to the
8187	// server regardless of whether the field is empty or not. This may be
8188	// used to include empty fields in Patch requests.
8189	ForceSendFields []string `json:"-"`
8190
8191	// NullFields is a list of field names (e.g. "Buttons") to include in
8192	// API requests with the JSON null value. By default, fields with empty
8193	// values are omitted from API requests. However, any field with an
8194	// empty value appearing in NullFields will be sent to the server as
8195	// null. It is an error if a field in this list has a non-empty value.
8196	// This may be used to include null fields in Patch requests.
8197	NullFields []string `json:"-"`
8198}
8199
8200func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
8201	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
8202	raw := NoMethod(*s)
8203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8204}
8205
8206// GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of
8207// TableCardRow.
8208type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
8209	// Text: Required. Text in this cell.
8210	Text string `json:"text,omitempty"`
8211
8212	// ForceSendFields is a list of field names (e.g. "Text") to
8213	// unconditionally include in API requests. By default, fields with
8214	// empty values are omitted from API requests. However, any non-pointer,
8215	// non-interface field appearing in ForceSendFields will be sent to the
8216	// server regardless of whether the field is empty or not. This may be
8217	// used to include empty fields in Patch requests.
8218	ForceSendFields []string `json:"-"`
8219
8220	// NullFields is a list of field names (e.g. "Text") to include in API
8221	// requests with the JSON null value. By default, fields with empty
8222	// values are omitted from API requests. However, any field with an
8223	// empty value appearing in NullFields will be sent to the server as
8224	// null. It is an error if a field in this list has a non-empty value.
8225	// This may be used to include null fields in Patch requests.
8226	NullFields []string `json:"-"`
8227}
8228
8229func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
8230	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
8231	raw := NoMethod(*s)
8232	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8233}
8234
8235// GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.
8236type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
8237	// Cells: Optional. List of cells that make up this row.
8238	Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
8239
8240	// DividerAfter: Optional. Whether to add a visual divider after this
8241	// row.
8242	DividerAfter bool `json:"dividerAfter,omitempty"`
8243
8244	// ForceSendFields is a list of field names (e.g. "Cells") to
8245	// unconditionally include in API requests. By default, fields with
8246	// empty values are omitted from API requests. However, any non-pointer,
8247	// non-interface field appearing in ForceSendFields will be sent to the
8248	// server regardless of whether the field is empty or not. This may be
8249	// used to include empty fields in Patch requests.
8250	ForceSendFields []string `json:"-"`
8251
8252	// NullFields is a list of field names (e.g. "Cells") to include in API
8253	// requests with the JSON null value. By default, fields with empty
8254	// values are omitted from API requests. However, any field with an
8255	// empty value appearing in NullFields will be sent to the server as
8256	// null. It is an error if a field in this list has a non-empty value.
8257	// This may be used to include null fields in Patch requests.
8258	NullFields []string `json:"-"`
8259}
8260
8261func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
8262	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
8263	raw := NoMethod(*s)
8264	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8265}
8266
8267// GoogleCloudDialogflowV2IntentMessageText: The text response message.
8268type GoogleCloudDialogflowV2IntentMessageText struct {
8269	// Text: Optional. The collection of the agent's responses.
8270	Text []string `json:"text,omitempty"`
8271
8272	// ForceSendFields is a list of field names (e.g. "Text") to
8273	// unconditionally include in API requests. By default, fields with
8274	// empty values are omitted from API requests. However, any non-pointer,
8275	// non-interface field appearing in ForceSendFields will be sent to the
8276	// server regardless of whether the field is empty or not. This may be
8277	// used to include empty fields in Patch requests.
8278	ForceSendFields []string `json:"-"`
8279
8280	// NullFields is a list of field names (e.g. "Text") to include in API
8281	// requests with the JSON null value. By default, fields with empty
8282	// values are omitted from API requests. However, any field with an
8283	// empty value appearing in NullFields will be sent to the server as
8284	// null. It is an error if a field in this list has a non-empty value.
8285	// This may be used to include null fields in Patch requests.
8286	NullFields []string `json:"-"`
8287}
8288
8289func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
8290	type NoMethod GoogleCloudDialogflowV2IntentMessageText
8291	raw := NoMethod(*s)
8292	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8293}
8294
8295// GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.
8296type GoogleCloudDialogflowV2IntentParameter struct {
8297	// DefaultValue: Optional. The default value to use when the `value`
8298	// yields an empty result. Default values can be extracted from contexts
8299	// by using the following syntax: `#context_name.parameter_name`.
8300	DefaultValue string `json:"defaultValue,omitempty"`
8301
8302	// DisplayName: Required. The name of the parameter.
8303	DisplayName string `json:"displayName,omitempty"`
8304
8305	// EntityTypeDisplayName: Optional. The name of the entity type,
8306	// prefixed with `@`, that describes values of the parameter. If the
8307	// parameter is required, this must be provided.
8308	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
8309
8310	// IsList: Optional. Indicates whether the parameter represents a list
8311	// of values.
8312	IsList bool `json:"isList,omitempty"`
8313
8314	// Mandatory: Optional. Indicates whether the parameter is required.
8315	// That is, whether the intent cannot be completed without collecting
8316	// the parameter value.
8317	Mandatory bool `json:"mandatory,omitempty"`
8318
8319	// Name: The unique identifier of this parameter.
8320	Name string `json:"name,omitempty"`
8321
8322	// Prompts: Optional. The collection of prompts that the agent can
8323	// present to the user in order to collect a value for the parameter.
8324	Prompts []string `json:"prompts,omitempty"`
8325
8326	// Value: Optional. The definition of the parameter value. It can be: -
8327	// a constant string, - a parameter value defined as `$parameter_name`,
8328	// - an original parameter value defined as `$parameter_name.original`,
8329	// - a parameter value from some context defined as
8330	// `#context_name.parameter_name`.
8331	Value string `json:"value,omitempty"`
8332
8333	// ForceSendFields is a list of field names (e.g. "DefaultValue") 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. "DefaultValue") to include
8342	// in API requests with the JSON null value. By default, fields with
8343	// empty values are omitted from API requests. However, any field with
8344	// an empty value appearing in NullFields will be sent to the server as
8345	// null. It is an error if a field in this list has a non-empty value.
8346	// This may be used to include null fields in Patch requests.
8347	NullFields []string `json:"-"`
8348}
8349
8350func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
8351	type NoMethod GoogleCloudDialogflowV2IntentParameter
8352	raw := NoMethod(*s)
8353	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8354}
8355
8356// GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example
8357// that the agent is trained on.
8358type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
8359	// Name: Output only. The unique identifier of this training phrase.
8360	Name string `json:"name,omitempty"`
8361
8362	// Parts: Required. The ordered list of training phrase parts. The parts
8363	// are concatenated in order to form the training phrase. Note: The API
8364	// does not automatically annotate training phrases like the Dialogflow
8365	// Console does. Note: Do not forget to include whitespace at part
8366	// boundaries, so the training phrase is well formatted when the parts
8367	// are concatenated. If the training phrase does not need to be
8368	// annotated with parameters, you just need a single part with only the
8369	// Part.text field set. If you want to annotate the training phrase, you
8370	// must create multiple parts, where the fields of each part are
8371	// populated in one of two ways: - `Part.text` is set to a part of the
8372	// phrase that has no parameters. - `Part.text` is set to a part of the
8373	// phrase that you want to annotate, and the `entity_type`, `alias`, and
8374	// `user_defined` fields are all set.
8375	Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
8376
8377	// TimesAddedCount: Optional. Indicates how many times this example was
8378	// added to the intent. Each time a developer adds an existing sample by
8379	// editing an intent or training, this counter is increased.
8380	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
8381
8382	// Type: Required. The type of the training phrase.
8383	//
8384	// Possible values:
8385	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be
8386	// used.
8387	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names,
8388	// but example parts can be annotated with entity types.
8389	//   "TEMPLATE" - Templates are not annotated with entity types, but
8390	// they can contain @-prefixed entity type names as substrings. Template
8391	// mode has been deprecated. Example mode is the only supported way to
8392	// create new training phrases. If you have existing training phrases
8393	// that you've created in template mode, those will continue to work.
8394	Type string `json:"type,omitempty"`
8395
8396	// ForceSendFields is a list of field names (e.g. "Name") to
8397	// unconditionally include in API requests. By default, fields with
8398	// empty values are omitted from API requests. However, any non-pointer,
8399	// non-interface field appearing in ForceSendFields will be sent to the
8400	// server regardless of whether the field is empty or not. This may be
8401	// used to include empty fields in Patch requests.
8402	ForceSendFields []string `json:"-"`
8403
8404	// NullFields is a list of field names (e.g. "Name") to include in API
8405	// requests with the JSON null value. By default, fields with empty
8406	// values are omitted from API requests. However, any field with an
8407	// empty value appearing in NullFields will be sent to the server as
8408	// null. It is an error if a field in this list has a non-empty value.
8409	// This may be used to include null fields in Patch requests.
8410	NullFields []string `json:"-"`
8411}
8412
8413func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
8414	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
8415	raw := NoMethod(*s)
8416	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8417}
8418
8419// GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of
8420// a training phrase.
8421type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
8422	// Alias: Optional. The parameter name for the value extracted from the
8423	// annotated part of the example. This field is required for annotated
8424	// parts of the training phrase.
8425	Alias string `json:"alias,omitempty"`
8426
8427	// EntityType: Optional. The entity type name prefixed with `@`. This
8428	// field is required for annotated parts of the training phrase.
8429	EntityType string `json:"entityType,omitempty"`
8430
8431	// Text: Required. The text for this part.
8432	Text string `json:"text,omitempty"`
8433
8434	// UserDefined: Optional. Indicates whether the text was manually
8435	// annotated. This field is set to true when the Dialogflow Console is
8436	// used to manually annotate the part. When creating an annotated part
8437	// with the API, you must set this to true.
8438	UserDefined bool `json:"userDefined,omitempty"`
8439
8440	// ForceSendFields is a list of field names (e.g. "Alias") to
8441	// unconditionally include in API requests. By default, fields with
8442	// empty values are omitted from API requests. However, any non-pointer,
8443	// non-interface field appearing in ForceSendFields will be sent to the
8444	// server regardless of whether the field is empty or not. This may be
8445	// used to include empty fields in Patch requests.
8446	ForceSendFields []string `json:"-"`
8447
8448	// NullFields is a list of field names (e.g. "Alias") to include in API
8449	// requests with the JSON null value. By default, fields with empty
8450	// values are omitted from API requests. However, any field with an
8451	// empty value appearing in NullFields will be sent to the server as
8452	// null. It is an error if a field in this list has a non-empty value.
8453	// This may be used to include null fields in Patch requests.
8454	NullFields []string `json:"-"`
8455}
8456
8457func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
8458	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
8459	raw := NoMethod(*s)
8460	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8461}
8462
8463// GoogleCloudDialogflowV2KnowledgeOperationMetadata: Metadata in
8464// google::longrunning::Operation for Knowledge operations.
8465type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
8466	// State: Output only. The current state of this operation.
8467	//
8468	// Possible values:
8469	//   "STATE_UNSPECIFIED" - State unspecified.
8470	//   "PENDING" - The operation has been created.
8471	//   "RUNNING" - The operation is currently running.
8472	//   "DONE" - The operation is done, either cancelled or completed.
8473	State string `json:"state,omitempty"`
8474
8475	// ForceSendFields is a list of field names (e.g. "State") to
8476	// unconditionally include in API requests. By default, fields with
8477	// empty values are omitted from API requests. However, any non-pointer,
8478	// non-interface field appearing in ForceSendFields will be sent to the
8479	// server regardless of whether the field is empty or not. This may be
8480	// used to include empty fields in Patch requests.
8481	ForceSendFields []string `json:"-"`
8482
8483	// NullFields is a list of field names (e.g. "State") to include in API
8484	// requests with the JSON null value. By default, fields with empty
8485	// values are omitted from API requests. However, any field with an
8486	// empty value appearing in NullFields will be sent to the server as
8487	// null. It is an error if a field in this list has a non-empty value.
8488	// This may be used to include null fields in Patch requests.
8489	NullFields []string `json:"-"`
8490}
8491
8492func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
8493	type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
8494	raw := NoMethod(*s)
8495	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8496}
8497
8498// GoogleCloudDialogflowV2Message: Represents a message posted into a
8499// conversation.
8500type GoogleCloudDialogflowV2Message struct {
8501	// Content: Required. The message content.
8502	Content string `json:"content,omitempty"`
8503
8504	// CreateTime: Output only. The time when the message was created.
8505	CreateTime string `json:"createTime,omitempty"`
8506
8507	// LanguageCode: Optional. The message language. This should be a BCP-47
8508	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
8509	// "en-US".
8510	LanguageCode string `json:"languageCode,omitempty"`
8511
8512	// MessageAnnotation: Output only. The annotation for the message.
8513	MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
8514
8515	// Name: The unique identifier of the message. Format:
8516	// `projects//locations//conversations//messages/`.
8517	Name string `json:"name,omitempty"`
8518
8519	// Participant: Output only. The participant that sends this message.
8520	Participant string `json:"participant,omitempty"`
8521
8522	// ParticipantRole: Output only. The role of the participant.
8523	//
8524	// Possible values:
8525	//   "ROLE_UNSPECIFIED" - Participant role not set.
8526	//   "HUMAN_AGENT" - Participant is a human agent.
8527	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
8528	// Dialogflow agent.
8529	//   "END_USER" - Participant is an end user that has called or chatted
8530	// with Dialogflow services.
8531	ParticipantRole string `json:"participantRole,omitempty"`
8532
8533	// ForceSendFields is a list of field names (e.g. "Content") to
8534	// unconditionally include in API requests. By default, fields with
8535	// empty values are omitted from API requests. However, any non-pointer,
8536	// non-interface field appearing in ForceSendFields will be sent to the
8537	// server regardless of whether the field is empty or not. This may be
8538	// used to include empty fields in Patch requests.
8539	ForceSendFields []string `json:"-"`
8540
8541	// NullFields is a list of field names (e.g. "Content") to include in
8542	// API requests with the JSON null value. By default, fields with empty
8543	// values are omitted from API requests. However, any field with an
8544	// empty value appearing in NullFields will be sent to the server as
8545	// null. It is an error if a field in this list has a non-empty value.
8546	// This may be used to include null fields in Patch requests.
8547	NullFields []string `json:"-"`
8548}
8549
8550func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
8551	type NoMethod GoogleCloudDialogflowV2Message
8552	raw := NoMethod(*s)
8553	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8554}
8555
8556// GoogleCloudDialogflowV2MessageAnnotation: Represents the result of
8557// annotation for the message.
8558type GoogleCloudDialogflowV2MessageAnnotation struct {
8559	// ContainEntities: Indicates whether the text message contains
8560	// entities.
8561	ContainEntities bool `json:"containEntities,omitempty"`
8562
8563	// Parts: The collection of annotated message parts ordered by their
8564	// position in the message. You can recover the annotated message by
8565	// concatenating [AnnotatedMessagePart.text].
8566	Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
8567
8568	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
8569	// unconditionally include in API requests. By default, fields with
8570	// empty values are omitted from API requests. However, any non-pointer,
8571	// non-interface field appearing in ForceSendFields will be sent to the
8572	// server regardless of whether the field is empty or not. This may be
8573	// used to include empty fields in Patch requests.
8574	ForceSendFields []string `json:"-"`
8575
8576	// NullFields is a list of field names (e.g. "ContainEntities") to
8577	// include in API requests with the JSON null value. By default, fields
8578	// with empty values are omitted from API requests. However, any field
8579	// with an empty value appearing in NullFields will be sent to the
8580	// server as null. It is an error if a field in this list has a
8581	// non-empty value. This may be used to include null fields in Patch
8582	// requests.
8583	NullFields []string `json:"-"`
8584}
8585
8586func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
8587	type NoMethod GoogleCloudDialogflowV2MessageAnnotation
8588	raw := NoMethod(*s)
8589	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8590}
8591
8592// GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the
8593// contents of the original request that was passed to the
8594// `[Streaming]DetectIntent` call.
8595type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
8596	// Payload: Optional. This field is set to the value of the
8597	// `QueryParameters.payload` field passed in the request. Some
8598	// integrations that query a Dialogflow agent may provide additional
8599	// information in the payload. In particular, for the Dialogflow Phone
8600	// Gateway integration, this field has the form: { "telephony": {
8601	// "caller_id": "+18558363987" } } Note: The caller ID field
8602	// (`caller_id`) will be redacted for Trial Edition agents and populated
8603	// with the caller ID in E.164 format
8604	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
8605	Payload googleapi.RawMessage `json:"payload,omitempty"`
8606
8607	// Source: The source of this request, e.g., `google`, `facebook`,
8608	// `slack`. It is set by Dialogflow-owned servers.
8609	Source string `json:"source,omitempty"`
8610
8611	// Version: Optional. The version of the protocol used for this request.
8612	// This field is AoG-specific.
8613	Version string `json:"version,omitempty"`
8614
8615	// ForceSendFields is a list of field names (e.g. "Payload") to
8616	// unconditionally include in API requests. By default, fields with
8617	// empty values are omitted from API requests. However, any non-pointer,
8618	// non-interface field appearing in ForceSendFields will be sent to the
8619	// server regardless of whether the field is empty or not. This may be
8620	// used to include empty fields in Patch requests.
8621	ForceSendFields []string `json:"-"`
8622
8623	// NullFields is a list of field names (e.g. "Payload") to include in
8624	// API requests with the JSON null value. By default, fields with empty
8625	// values are omitted from API requests. However, any field with an
8626	// empty value appearing in NullFields will be sent to the server as
8627	// null. It is an error if a field in this list has a non-empty value.
8628	// This may be used to include null fields in Patch requests.
8629	NullFields []string `json:"-"`
8630}
8631
8632func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
8633	type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
8634	raw := NoMethod(*s)
8635	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8636}
8637
8638// GoogleCloudDialogflowV2QueryResult: Represents the result of
8639// conversational query or event processing.
8640type GoogleCloudDialogflowV2QueryResult struct {
8641	// Action: The action name from the matched intent.
8642	Action string `json:"action,omitempty"`
8643
8644	// AllRequiredParamsPresent: This field is set to: - `false` if the
8645	// matched intent has required parameters and not all of the required
8646	// parameter values have been collected. - `true` if all required
8647	// parameter values have been collected, or if the matched intent
8648	// doesn't contain any required parameters.
8649	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
8650
8651	// DiagnosticInfo: Free-form diagnostic information for the associated
8652	// detect intent request. The fields of this data can change without
8653	// notice, so you should not write code that depends on its structure.
8654	// The data may contain: - webhook call latency - webhook errors
8655	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
8656
8657	// FulfillmentMessages: The collection of rich messages to present to
8658	// the user.
8659	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
8660
8661	// FulfillmentText: The text to be pronounced to the user or shown on
8662	// the screen. Note: This is a legacy field, `fulfillment_messages`
8663	// should be preferred.
8664	FulfillmentText string `json:"fulfillmentText,omitempty"`
8665
8666	// Intent: The intent that matched the conversational query. Some, not
8667	// all fields are filled in this message, including but not limited to:
8668	// `name`, `display_name`, `end_interaction` and `is_fallback`.
8669	Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
8670
8671	// IntentDetectionConfidence: The intent detection confidence. Values
8672	// range from 0.0 (completely uncertain) to 1.0 (completely certain).
8673	// This value is for informational purpose only and is only used to help
8674	// match the best intent within the classification threshold. This value
8675	// may change for the same end-user expression at any time due to a
8676	// model retraining or change in implementation. If there are `multiple
8677	// knowledge_answers` messages, this value is set to the greatest
8678	// `knowledgeAnswers.match_confidence` value in the list.
8679	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
8680
8681	// LanguageCode: The language that was triggered during intent
8682	// detection. See Language Support
8683	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
8684	// list of the currently supported language codes.
8685	LanguageCode string `json:"languageCode,omitempty"`
8686
8687	// OutputContexts: The collection of output contexts. If applicable,
8688	// `output_contexts.parameters` contains entries with name `.original`
8689	// containing the original parameter values before the query.
8690	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
8691
8692	// Parameters: The collection of extracted parameters. Depending on your
8693	// protocol or client library language, this is a map, associative
8694	// array, symbol table, dictionary, or JSON object composed of a
8695	// collection of (MapKey, MapValue) pairs: - MapKey type: string -
8696	// MapKey value: parameter name - MapValue type: - If parameter's entity
8697	// type is a composite entity: map - Else: depending on parameter value
8698	// type, could be one of string, number, boolean, null, list or map -
8699	// MapValue value: - If parameter's entity type is a composite entity:
8700	// map from composite entity property names to property values - Else:
8701	// parameter value
8702	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
8703
8704	// QueryText: The original conversational query text: - If natural
8705	// language text was provided as input, `query_text` contains a copy of
8706	// the input. - If natural language speech audio was provided as input,
8707	// `query_text` contains the speech recognition result. If speech
8708	// recognizer produced multiple alternatives, a particular one is
8709	// picked. - If automatic spell correction is enabled, `query_text` will
8710	// contain the corrected user input.
8711	QueryText string `json:"queryText,omitempty"`
8712
8713	// SentimentAnalysisResult: The sentiment analysis result, which depends
8714	// on the `sentiment_analysis_request_config` specified in the request.
8715	SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
8716
8717	// SpeechRecognitionConfidence: The Speech recognition confidence
8718	// between 0.0 and 1.0. A higher number indicates an estimated greater
8719	// likelihood that the recognized words are correct. The default of 0.0
8720	// is a sentinel value indicating that confidence was not set. This
8721	// field is not guaranteed to be accurate or set. In particular this
8722	// field isn't set for StreamingDetectIntent since the streaming
8723	// endpoint has separate confidence estimates per portion of the audio
8724	// in StreamingRecognitionResult.
8725	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
8726
8727	// WebhookPayload: If the query was fulfilled by a webhook call, this
8728	// field is set to the value of the `payload` field returned in the
8729	// webhook response.
8730	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
8731
8732	// WebhookSource: If the query was fulfilled by a webhook call, this
8733	// field is set to the value of the `source` field returned in the
8734	// webhook response.
8735	WebhookSource string `json:"webhookSource,omitempty"`
8736
8737	// ForceSendFields is a list of field names (e.g. "Action") to
8738	// unconditionally include in API requests. By default, fields with
8739	// empty values are omitted from API requests. However, any non-pointer,
8740	// non-interface field appearing in ForceSendFields will be sent to the
8741	// server regardless of whether the field is empty or not. This may be
8742	// used to include empty fields in Patch requests.
8743	ForceSendFields []string `json:"-"`
8744
8745	// NullFields is a list of field names (e.g. "Action") to include in API
8746	// requests with the JSON null value. By default, fields with empty
8747	// values are omitted from API requests. However, any field with an
8748	// empty value appearing in NullFields will be sent to the server as
8749	// null. It is an error if a field in this list has a non-empty value.
8750	// This may be used to include null fields in Patch requests.
8751	NullFields []string `json:"-"`
8752}
8753
8754func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
8755	type NoMethod GoogleCloudDialogflowV2QueryResult
8756	raw := NoMethod(*s)
8757	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8758}
8759
8760func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
8761	type NoMethod GoogleCloudDialogflowV2QueryResult
8762	var s1 struct {
8763		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
8764		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
8765		*NoMethod
8766	}
8767	s1.NoMethod = (*NoMethod)(s)
8768	if err := json.Unmarshal(data, &s1); err != nil {
8769		return err
8770	}
8771	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
8772	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
8773	return nil
8774}
8775
8776// GoogleCloudDialogflowV2Sentiment: The sentiment, such as
8777// positive/negative feeling or association, for a unit of analysis,
8778// such as the query text.
8779type GoogleCloudDialogflowV2Sentiment struct {
8780	// Magnitude: A non-negative number in the [0, +inf) range, which
8781	// represents the absolute magnitude of sentiment, regardless of score
8782	// (positive or negative).
8783	Magnitude float64 `json:"magnitude,omitempty"`
8784
8785	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
8786	// (positive sentiment).
8787	Score float64 `json:"score,omitempty"`
8788
8789	// ForceSendFields is a list of field names (e.g. "Magnitude") to
8790	// unconditionally include in API requests. By default, fields with
8791	// empty values are omitted from API requests. However, any non-pointer,
8792	// non-interface field appearing in ForceSendFields will be sent to the
8793	// server regardless of whether the field is empty or not. This may be
8794	// used to include empty fields in Patch requests.
8795	ForceSendFields []string `json:"-"`
8796
8797	// NullFields is a list of field names (e.g. "Magnitude") to include in
8798	// API requests with the JSON null value. By default, fields with empty
8799	// values are omitted from API requests. However, any field with an
8800	// empty value appearing in NullFields will be sent to the server as
8801	// null. It is an error if a field in this list has a non-empty value.
8802	// This may be used to include null fields in Patch requests.
8803	NullFields []string `json:"-"`
8804}
8805
8806func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
8807	type NoMethod GoogleCloudDialogflowV2Sentiment
8808	raw := NoMethod(*s)
8809	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8810}
8811
8812func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
8813	type NoMethod GoogleCloudDialogflowV2Sentiment
8814	var s1 struct {
8815		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
8816		Score     gensupport.JSONFloat64 `json:"score"`
8817		*NoMethod
8818	}
8819	s1.NoMethod = (*NoMethod)(s)
8820	if err := json.Unmarshal(data, &s1); err != nil {
8821		return err
8822	}
8823	s.Magnitude = float64(s1.Magnitude)
8824	s.Score = float64(s1.Score)
8825	return nil
8826}
8827
8828// GoogleCloudDialogflowV2SentimentAnalysisResult: The result of
8829// sentiment analysis. Sentiment analysis inspects user input and
8830// identifies the prevailing subjective opinion, especially to determine
8831// a user's attitude as positive, negative, or neutral. For
8832// Participants.DetectIntent, it needs to be configured in
8833// DetectIntentRequest.query_params. For
8834// Participants.StreamingDetectIntent, it needs to be configured in
8835// StreamingDetectIntentRequest.query_params. And for
8836// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent,
8837// it needs to be configured in
8838// ConversationProfile.human_agent_assistant_config
8839type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
8840	// QueryTextSentiment: The sentiment analysis result for `query_text`.
8841	QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
8842
8843	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment")
8844	// to unconditionally include in API requests. By default, fields with
8845	// empty values are omitted from API requests. However, any non-pointer,
8846	// non-interface field appearing in ForceSendFields will be sent to the
8847	// server regardless of whether the field is empty or not. This may be
8848	// used to include empty fields in Patch requests.
8849	ForceSendFields []string `json:"-"`
8850
8851	// NullFields is a list of field names (e.g. "QueryTextSentiment") to
8852	// include in API requests with the JSON null value. By default, fields
8853	// with empty values are omitted from API requests. However, any field
8854	// with an empty value appearing in NullFields will be sent to the
8855	// server as null. It is an error if a field in this list has a
8856	// non-empty value. This may be used to include null fields in Patch
8857	// requests.
8858	NullFields []string `json:"-"`
8859}
8860
8861func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
8862	type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
8863	raw := NoMethod(*s)
8864	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8865}
8866
8867// GoogleCloudDialogflowV2SessionEntityType: A session represents a
8868// conversation between a Dialogflow agent and an end-user. You can
8869// create special entities, called session entities, during a session.
8870// Session entities can extend or replace custom entity types and only
8871// exist during the session that they were created for. All session
8872// data, including session entities, is stored by Dialogflow for 20
8873// minutes. For more information, see the session entity guide
8874// (https://cloud.google.com/dialogflow/docs/entities-session).
8875type GoogleCloudDialogflowV2SessionEntityType struct {
8876	// Entities: Required. The collection of entities associated with this
8877	// session entity type.
8878	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
8879
8880	// EntityOverrideMode: Required. Indicates whether the additional data
8881	// should override or supplement the custom entity type definition.
8882	//
8883	// Possible values:
8884	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value
8885	// should be never used.
8886	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session
8887	// entities overrides the collection of entities in the corresponding
8888	// custom entity type.
8889	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session
8890	// entities extends the collection of entities in the corresponding
8891	// custom entity type. Note: Even in this override mode calls to
8892	// `ListSessionEntityTypes`, `GetSessionEntityType`,
8893	// `CreateSessionEntityType` and `UpdateSessionEntityType` only return
8894	// the additional entities added in this session entity type. If you
8895	// want to get the supplemented list, please call
8896	// EntityTypes.GetEntityType on the custom entity type and merge.
8897	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
8898
8899	// Name: Required. The unique identifier of this session entity type.
8900	// Format: `projects//agent/sessions//entityTypes/`, or
8901	// `projects//agent/environments//users//sessions//entityTypes/`. If
8902	// `Environment ID` is not specified, we assume default 'draft'
8903	// environment. If `User ID` is not specified, we assume default '-'
8904	// user. `` must be the display name of an existing entity type in the
8905	// same agent that will be overridden or supplemented.
8906	Name string `json:"name,omitempty"`
8907
8908	// ForceSendFields is a list of field names (e.g. "Entities") to
8909	// unconditionally include in API requests. By default, fields with
8910	// empty values are omitted from API requests. However, any non-pointer,
8911	// non-interface field appearing in ForceSendFields will be sent to the
8912	// server regardless of whether the field is empty or not. This may be
8913	// used to include empty fields in Patch requests.
8914	ForceSendFields []string `json:"-"`
8915
8916	// NullFields is a list of field names (e.g. "Entities") to include in
8917	// API requests with the JSON null value. By default, fields with empty
8918	// values are omitted from API requests. However, any field with an
8919	// empty value appearing in NullFields will be sent to the server as
8920	// null. It is an error if a field in this list has a non-empty value.
8921	// This may be used to include null fields in Patch requests.
8922	NullFields []string `json:"-"`
8923}
8924
8925func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
8926	type NoMethod GoogleCloudDialogflowV2SessionEntityType
8927	raw := NoMethod(*s)
8928	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8929}
8930
8931// GoogleCloudDialogflowV2SuggestArticlesResponse: The response message
8932// for Participants.SuggestArticles.
8933type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
8934	// ArticleAnswers: Articles ordered by score in descending order.
8935	ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
8936
8937	// ContextSize: Number of messages prior to and including latest_message
8938	// to compile the suggestion. It may be smaller than the
8939	// SuggestArticlesRequest.context_size field in the request if there
8940	// aren't that many messages in the conversation.
8941	ContextSize int64 `json:"contextSize,omitempty"`
8942
8943	// LatestMessage: The name of the latest conversation message used to
8944	// compile suggestion for. Format:
8945	// `projects//locations//conversations//messages/`.
8946	LatestMessage string `json:"latestMessage,omitempty"`
8947
8948	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
8949	// unconditionally include in API requests. By default, fields with
8950	// empty values are omitted from API requests. However, any non-pointer,
8951	// non-interface field appearing in ForceSendFields will be sent to the
8952	// server regardless of whether the field is empty or not. This may be
8953	// used to include empty fields in Patch requests.
8954	ForceSendFields []string `json:"-"`
8955
8956	// NullFields is a list of field names (e.g. "ArticleAnswers") to
8957	// include in API requests with the JSON null value. By default, fields
8958	// with empty values are omitted from API requests. However, any field
8959	// with an empty value appearing in NullFields will be sent to the
8960	// server as null. It is an error if a field in this list has a
8961	// non-empty value. This may be used to include null fields in Patch
8962	// requests.
8963	NullFields []string `json:"-"`
8964}
8965
8966func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
8967	type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
8968	raw := NoMethod(*s)
8969	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8970}
8971
8972// GoogleCloudDialogflowV2SuggestFaqAnswersResponse: The request message
8973// for Participants.SuggestFaqAnswers.
8974type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
8975	// ContextSize: Number of messages prior to and including latest_message
8976	// to compile the suggestion. It may be smaller than the
8977	// SuggestFaqAnswersRequest.context_size field in the request if there
8978	// aren't that many messages in the conversation.
8979	ContextSize int64 `json:"contextSize,omitempty"`
8980
8981	// FaqAnswers: Answers extracted from FAQ documents.
8982	FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
8983
8984	// LatestMessage: The name of the latest conversation message used to
8985	// compile suggestion for. Format:
8986	// `projects//locations//conversations//messages/`.
8987	LatestMessage string `json:"latestMessage,omitempty"`
8988
8989	// ForceSendFields is a list of field names (e.g. "ContextSize") to
8990	// unconditionally include in API requests. By default, fields with
8991	// empty values are omitted from API requests. However, any non-pointer,
8992	// non-interface field appearing in ForceSendFields will be sent to the
8993	// server regardless of whether the field is empty or not. This may be
8994	// used to include empty fields in Patch requests.
8995	ForceSendFields []string `json:"-"`
8996
8997	// NullFields is a list of field names (e.g. "ContextSize") to include
8998	// in API requests with the JSON null value. By default, fields with
8999	// empty values are omitted from API requests. However, any field with
9000	// an empty value appearing in NullFields will be sent to the server as
9001	// null. It is an error if a field in this list has a non-empty value.
9002	// This may be used to include null fields in Patch requests.
9003	NullFields []string `json:"-"`
9004}
9005
9006func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
9007	type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
9008	raw := NoMethod(*s)
9009	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9010}
9011
9012// GoogleCloudDialogflowV2SuggestionResult: One response of different
9013// type of suggestion response which is used in the response of
9014// Participants.AnalyzeContent and Participants.AnalyzeContent, as well
9015// as HumanAgentAssistantEvent.
9016type GoogleCloudDialogflowV2SuggestionResult struct {
9017	// Error: Error status if the request failed.
9018	Error *GoogleRpcStatus `json:"error,omitempty"`
9019
9020	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
9021	// ARTICLE_SUGGESTION.
9022	SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
9023
9024	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is
9025	// for FAQ_ANSWER.
9026	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
9027
9028	// ForceSendFields is a list of field names (e.g. "Error") to
9029	// unconditionally include in API requests. By default, fields with
9030	// empty values are omitted from API requests. However, any non-pointer,
9031	// non-interface field appearing in ForceSendFields will be sent to the
9032	// server regardless of whether the field is empty or not. This may be
9033	// used to include empty fields in Patch requests.
9034	ForceSendFields []string `json:"-"`
9035
9036	// NullFields is a list of field names (e.g. "Error") to include in API
9037	// requests with the JSON null value. By default, fields with empty
9038	// values are omitted from API requests. However, any field with an
9039	// empty value appearing in NullFields will be sent to the server as
9040	// null. It is an error if a field in this list has a non-empty value.
9041	// This may be used to include null fields in Patch requests.
9042	NullFields []string `json:"-"`
9043}
9044
9045func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
9046	type NoMethod GoogleCloudDialogflowV2SuggestionResult
9047	raw := NoMethod(*s)
9048	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9049}
9050
9051// GoogleCloudDialogflowV2WebhookRequest: The request message for a
9052// webhook call.
9053type GoogleCloudDialogflowV2WebhookRequest struct {
9054	// OriginalDetectIntentRequest: Optional. The contents of the original
9055	// request that was passed to `[Streaming]DetectIntent` call.
9056	OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
9057
9058	// QueryResult: The result of the conversational query or event
9059	// processing. Contains the same value as
9060	// `[Streaming]DetectIntentResponse.query_result`.
9061	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
9062
9063	// ResponseId: The unique identifier of the response. Contains the same
9064	// value as `[Streaming]DetectIntentResponse.response_id`.
9065	ResponseId string `json:"responseId,omitempty"`
9066
9067	// Session: The unique identifier of detectIntent request session. Can
9068	// be used to identify end-user inside webhook implementation. Format:
9069	// `projects//agent/sessions/`, or
9070	// `projects//agent/environments//users//sessions/`.
9071	Session string `json:"session,omitempty"`
9072
9073	// ForceSendFields is a list of field names (e.g.
9074	// "OriginalDetectIntentRequest") to unconditionally include in API
9075	// requests. By default, fields with empty values are omitted from API
9076	// requests. However, any non-pointer, non-interface field appearing in
9077	// ForceSendFields will be sent to the server regardless of whether the
9078	// field is empty or not. This may be used to include empty fields in
9079	// Patch requests.
9080	ForceSendFields []string `json:"-"`
9081
9082	// NullFields is a list of field names (e.g.
9083	// "OriginalDetectIntentRequest") to include in API requests with the
9084	// JSON null value. By default, fields with empty values are omitted
9085	// from API requests. However, any field with an empty value appearing
9086	// in NullFields will be sent to the server as null. It is an error if a
9087	// field in this list has a non-empty value. This may be used to include
9088	// null fields in Patch requests.
9089	NullFields []string `json:"-"`
9090}
9091
9092func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
9093	type NoMethod GoogleCloudDialogflowV2WebhookRequest
9094	raw := NoMethod(*s)
9095	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9096}
9097
9098// GoogleCloudDialogflowV2WebhookResponse: The response message for a
9099// webhook call. This response is validated by the Dialogflow server. If
9100// validation fails, an error will be returned in the
9101// QueryResult.diagnostic_info field. Setting JSON fields to an empty
9102// value with the wrong type is a common error. To avoid this error: -
9103// Use "" for empty strings - Use `{}` or `null` for empty objects -
9104// Use `[]` or `null` for empty arrays For more information, see the
9105// Protocol Buffers Language Guide
9106// (https://developers.google.com/protocol-buffers/docs/proto3#json).
9107type GoogleCloudDialogflowV2WebhookResponse struct {
9108	// FollowupEventInput: Optional. Invokes the supplied events. When this
9109	// field is set, Dialogflow ignores the `fulfillment_text`,
9110	// `fulfillment_messages`, and `payload` fields.
9111	FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
9112
9113	// FulfillmentMessages: Optional. The rich response messages intended
9114	// for the end-user. When provided, Dialogflow uses this field to
9115	// populate QueryResult.fulfillment_messages sent to the integration or
9116	// API caller.
9117	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
9118
9119	// FulfillmentText: Optional. The text response message intended for the
9120	// end-user. It is recommended to use
9121	// `fulfillment_messages.text.text[0]` instead. When provided,
9122	// Dialogflow uses this field to populate QueryResult.fulfillment_text
9123	// sent to the integration or API caller.
9124	FulfillmentText string `json:"fulfillmentText,omitempty"`
9125
9126	// OutputContexts: Optional. The collection of output contexts that will
9127	// overwrite currently active contexts for the session and reset their
9128	// lifespans. When provided, Dialogflow uses this field to populate
9129	// QueryResult.output_contexts sent to the integration or API caller.
9130	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
9131
9132	// Payload: Optional. This field can be used to pass custom data from
9133	// your webhook to the integration or API caller. Arbitrary JSON objects
9134	// are supported. When provided, Dialogflow uses this field to populate
9135	// QueryResult.webhook_payload sent to the integration or API caller.
9136	// This field is also used by the Google Assistant integration
9137	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
9138	// response messages. See the format definition at Google Assistant
9139	// Dialogflow webhook format
9140	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
9141	Payload googleapi.RawMessage `json:"payload,omitempty"`
9142
9143	// SessionEntityTypes: Optional. Additional session entity types to
9144	// replace or extend developer entity types with. The entity synonyms
9145	// apply to all languages and persist for the session. Setting this data
9146	// from a webhook overwrites the session entity types that have been set
9147	// using `detectIntent`, `streamingDetectIntent` or SessionEntityType
9148	// management methods.
9149	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
9150
9151	// Source: Optional. A custom field used to identify the webhook source.
9152	// Arbitrary strings are supported. When provided, Dialogflow uses this
9153	// field to populate QueryResult.webhook_source sent to the integration
9154	// or API caller.
9155	Source string `json:"source,omitempty"`
9156
9157	// ForceSendFields is a list of field names (e.g. "FollowupEventInput")
9158	// to unconditionally include in API requests. By default, fields with
9159	// empty values are omitted from API requests. However, any non-pointer,
9160	// non-interface field appearing in ForceSendFields will be sent to the
9161	// server regardless of whether the field is empty or not. This may be
9162	// used to include empty fields in Patch requests.
9163	ForceSendFields []string `json:"-"`
9164
9165	// NullFields is a list of field names (e.g. "FollowupEventInput") to
9166	// include in API requests with the JSON null value. By default, fields
9167	// with empty values are omitted from API requests. However, any field
9168	// with an empty value appearing in NullFields will be sent to the
9169	// server as null. It is an error if a field in this list has a
9170	// non-empty value. This may be used to include null fields in Patch
9171	// requests.
9172	NullFields []string `json:"-"`
9173}
9174
9175func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
9176	type NoMethod GoogleCloudDialogflowV2WebhookResponse
9177	raw := NoMethod(*s)
9178	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9179}
9180
9181// GoogleCloudDialogflowV2beta1Agent: A Dialogflow agent is a virtual
9182// agent that handles conversations with your end-users. It is a natural
9183// language understanding module that understands the nuances of human
9184// language. Dialogflow translates end-user text or audio during a
9185// conversation to structured data that your apps and services can
9186// understand. You design and build a Dialogflow agent to handle the
9187// types of conversations required for your system. For more information
9188// about agents, see the Agent guide
9189// (https://cloud.google.com/dialogflow/docs/agents-overview).
9190type GoogleCloudDialogflowV2beta1Agent struct {
9191	// ApiVersion: Optional. API version displayed in Dialogflow console. If
9192	// not specified, V2 API is assumed. Clients are free to query different
9193	// service endpoints for different API versions. However, bots
9194	// connectors and webhook calls will follow the specified API version.
9195	//
9196	// Possible values:
9197	//   "API_VERSION_UNSPECIFIED" - Not specified.
9198	//   "API_VERSION_V1" - Legacy V1 API.
9199	//   "API_VERSION_V2" - V2 API.
9200	//   "API_VERSION_V2_BETA_1" - V2beta1 API.
9201	ApiVersion string `json:"apiVersion,omitempty"`
9202
9203	// AvatarUri: Optional. The URI of the agent's avatar. Avatars are used
9204	// throughout the Dialogflow console and in the self-hosted Web Demo
9205	// (https://cloud.google.com/dialogflow/docs/integrations/web-demo)
9206	// integration.
9207	AvatarUri string `json:"avatarUri,omitempty"`
9208
9209	// ClassificationThreshold: Optional. To filter out false positive
9210	// results and still get variety in matched natural language inputs for
9211	// your agent, you can tune the machine learning classification
9212	// threshold. If the returned score value is less than the threshold
9213	// value, then a fallback intent will be triggered or, if there are no
9214	// fallback intents defined, no intent will be triggered. The score
9215	// values range from 0.0 (completely uncertain) to 1.0 (completely
9216	// certain). If set to 0.0, the default of 0.3 is used.
9217	ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
9218
9219	// DefaultLanguageCode: Required. The default language of the agent as a
9220	// language tag. See Language Support
9221	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
9222	// list of the currently supported language codes. This field cannot be
9223	// set by the `Update` method.
9224	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
9225
9226	// Description: Optional. The description of this agent. The maximum
9227	// length is 500 characters. If exceeded, the request is rejected.
9228	Description string `json:"description,omitempty"`
9229
9230	// DisplayName: Required. The name of this agent.
9231	DisplayName string `json:"displayName,omitempty"`
9232
9233	// EnableLogging: Optional. Determines whether this agent should log
9234	// conversation queries.
9235	EnableLogging bool `json:"enableLogging,omitempty"`
9236
9237	// MatchMode: Optional. Determines how intents are detected from user
9238	// queries.
9239	//
9240	// Possible values:
9241	//   "MATCH_MODE_UNSPECIFIED" - Not specified.
9242	//   "MATCH_MODE_HYBRID" - Best for agents with a small number of
9243	// examples in intents and/or wide use of templates syntax and composite
9244	// entities.
9245	//   "MATCH_MODE_ML_ONLY" - Can be used for agents with a large number
9246	// of examples in intents, especially the ones using @sys.any or very
9247	// large custom entities.
9248	MatchMode string `json:"matchMode,omitempty"`
9249
9250	// Parent: Required. The project of this agent. Format: `projects/` or
9251	// `projects//locations/`
9252	Parent string `json:"parent,omitempty"`
9253
9254	// SupportedLanguageCodes: Optional. The list of all languages supported
9255	// by this agent (except for the `default_language_code`).
9256	SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
9257
9258	// Tier: Optional. The agent tier. If not specified, TIER_STANDARD is
9259	// assumed.
9260	//
9261	// Possible values:
9262	//   "TIER_UNSPECIFIED" - Not specified. This value should never be
9263	// used.
9264	//   "TIER_STANDARD" - Standard tier.
9265	//   "TIER_ENTERPRISE" - Enterprise tier (Essentials).
9266	//   "TIER_ENTERPRISE_PLUS" - Enterprise tier (Plus).
9267	Tier string `json:"tier,omitempty"`
9268
9269	// TimeZone: Required. The time zone of this agent from the time zone
9270	// database (https://www.iana.org/time-zones), e.g., America/New_York,
9271	// Europe/Paris.
9272	TimeZone string `json:"timeZone,omitempty"`
9273
9274	// ServerResponse contains the HTTP response code and headers from the
9275	// server.
9276	googleapi.ServerResponse `json:"-"`
9277
9278	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
9279	// unconditionally include in API requests. By default, fields with
9280	// empty values are omitted from API requests. However, any non-pointer,
9281	// non-interface field appearing in ForceSendFields will be sent to the
9282	// server regardless of whether the field is empty or not. This may be
9283	// used to include empty fields in Patch requests.
9284	ForceSendFields []string `json:"-"`
9285
9286	// NullFields is a list of field names (e.g. "ApiVersion") to include in
9287	// API requests with the JSON null value. By default, fields with empty
9288	// values are omitted from API requests. However, any field with an
9289	// empty value appearing in NullFields will be sent to the server as
9290	// null. It is an error if a field in this list has a non-empty value.
9291	// This may be used to include null fields in Patch requests.
9292	NullFields []string `json:"-"`
9293}
9294
9295func (s *GoogleCloudDialogflowV2beta1Agent) MarshalJSON() ([]byte, error) {
9296	type NoMethod GoogleCloudDialogflowV2beta1Agent
9297	raw := NoMethod(*s)
9298	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9299}
9300
9301func (s *GoogleCloudDialogflowV2beta1Agent) UnmarshalJSON(data []byte) error {
9302	type NoMethod GoogleCloudDialogflowV2beta1Agent
9303	var s1 struct {
9304		ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
9305		*NoMethod
9306	}
9307	s1.NoMethod = (*NoMethod)(s)
9308	if err := json.Unmarshal(data, &s1); err != nil {
9309		return err
9310	}
9311	s.ClassificationThreshold = float64(s1.ClassificationThreshold)
9312	return nil
9313}
9314
9315// GoogleCloudDialogflowV2beta1AgentAssistantFeedback: Detail feedback
9316// of Agent Assistant result.
9317type GoogleCloudDialogflowV2beta1AgentAssistantFeedback struct {
9318	// AnswerRelevance: Optional. Whether or not the suggested answer is
9319	// relevant. For example: * Query: "Can I change my mailing address?" *
9320	// Suggested document says: "Items must be returned/exchanged within 60
9321	// days of the purchase date." * answer_relevance:
9322	// AnswerRelevance.IRRELEVANT
9323	//
9324	// Possible values:
9325	//   "ANSWER_RELEVANCE_UNSPECIFIED" - Answer relevance unspecified.
9326	//   "IRRELEVANT" - Answer is irrelevant to query.
9327	//   "RELEVANT" - Answer is relevant to query.
9328	AnswerRelevance string `json:"answerRelevance,omitempty"`
9329
9330	// DocumentCorrectness: Optional. Whether or not the information in the
9331	// document is correct. For example: * Query: "Can I return the package
9332	// in 2 days once received?" * Suggested document says: "Items must be
9333	// returned/exchanged within 60 days of the purchase date." * Ground
9334	// truth: "No return or exchange is allowed." * [document_correctness]:
9335	// INCORRECT
9336	//
9337	// Possible values:
9338	//   "DOCUMENT_CORRECTNESS_UNSPECIFIED" - Document correctness
9339	// unspecified.
9340	//   "INCORRECT" - Information in document is incorrect.
9341	//   "CORRECT" - Information in document is correct.
9342	DocumentCorrectness string `json:"documentCorrectness,omitempty"`
9343
9344	// DocumentEfficiency: Optional. Whether or not the suggested document
9345	// is efficient. For example, if the document is poorly written, hard to
9346	// understand, hard to use or too long to find useful information,
9347	// document_efficiency is DocumentEfficiency.INEFFICIENT.
9348	//
9349	// Possible values:
9350	//   "DOCUMENT_EFFICIENCY_UNSPECIFIED" - Document efficiency
9351	// unspecified.
9352	//   "INEFFICIENT" - Document is inefficient.
9353	//   "EFFICIENT" - Document is efficient.
9354	DocumentEfficiency string `json:"documentEfficiency,omitempty"`
9355
9356	// SummarizationFeedback: Feedback for conversation summarization.
9357	SummarizationFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"`
9358
9359	// ForceSendFields is a list of field names (e.g. "AnswerRelevance") to
9360	// unconditionally include in API requests. By default, fields with
9361	// empty values are omitted from API requests. However, any non-pointer,
9362	// non-interface field appearing in ForceSendFields will be sent to the
9363	// server regardless of whether the field is empty or not. This may be
9364	// used to include empty fields in Patch requests.
9365	ForceSendFields []string `json:"-"`
9366
9367	// NullFields is a list of field names (e.g. "AnswerRelevance") to
9368	// include in API requests with the JSON null value. By default, fields
9369	// with empty values are omitted from API requests. However, any field
9370	// with an empty value appearing in NullFields will be sent to the
9371	// server as null. It is an error if a field in this list has a
9372	// non-empty value. This may be used to include null fields in Patch
9373	// requests.
9374	NullFields []string `json:"-"`
9375}
9376
9377func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedback) MarshalJSON() ([]byte, error) {
9378	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedback
9379	raw := NoMethod(*s)
9380	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9381}
9382
9383// GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedbac
9384// k: Feedback for conversation summarization.
9385type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback struct {
9386	// StartTimestamp: Timestamp when composing of the summary starts.
9387	StartTimestamp string `json:"startTimestamp,omitempty"`
9388
9389	// SubmitTimestamp: Timestamp when the summary was submitted.
9390	SubmitTimestamp string `json:"submitTimestamp,omitempty"`
9391
9392	// SummaryText: Text of actual submitted summary.
9393	SummaryText string `json:"summaryText,omitempty"`
9394
9395	// ForceSendFields is a list of field names (e.g. "StartTimestamp") to
9396	// unconditionally include in API requests. By default, fields with
9397	// empty values are omitted from API requests. However, any non-pointer,
9398	// non-interface field appearing in ForceSendFields will be sent to the
9399	// server regardless of whether the field is empty or not. This may be
9400	// used to include empty fields in Patch requests.
9401	ForceSendFields []string `json:"-"`
9402
9403	// NullFields is a list of field names (e.g. "StartTimestamp") to
9404	// include in API requests with the JSON null value. By default, fields
9405	// with empty values are omitted from API requests. However, any field
9406	// with an empty value appearing in NullFields will be sent to the
9407	// server as null. It is an error if a field in this list has a
9408	// non-empty value. This may be used to include null fields in Patch
9409	// requests.
9410	NullFields []string `json:"-"`
9411}
9412
9413func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback) MarshalJSON() ([]byte, error) {
9414	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback
9415	raw := NoMethod(*s)
9416	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9417}
9418
9419// GoogleCloudDialogflowV2beta1AgentAssistantRecord: Represents a record
9420// of a human agent assistant answer.
9421type GoogleCloudDialogflowV2beta1AgentAssistantRecord struct {
9422	// ArticleSuggestionAnswer: Output only. The article suggestion answer.
9423	ArticleSuggestionAnswer *GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleSuggestionAnswer,omitempty"`
9424
9425	// FaqAnswer: Output only. The FAQ answer.
9426	FaqAnswer *GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswer,omitempty"`
9427
9428	// ForceSendFields is a list of field names (e.g.
9429	// "ArticleSuggestionAnswer") to unconditionally include in API
9430	// requests. By default, fields with empty values are omitted from API
9431	// requests. However, any non-pointer, non-interface field appearing in
9432	// ForceSendFields will be sent to the server regardless of whether the
9433	// field is empty or not. This may be used to include empty fields in
9434	// Patch requests.
9435	ForceSendFields []string `json:"-"`
9436
9437	// NullFields is a list of field names (e.g. "ArticleSuggestionAnswer")
9438	// to include in API requests with the JSON null value. By default,
9439	// fields with empty values are omitted from API requests. However, any
9440	// field with an empty value appearing in NullFields will be sent to the
9441	// server as null. It is an error if a field in this list has a
9442	// non-empty value. This may be used to include null fields in Patch
9443	// requests.
9444	NullFields []string `json:"-"`
9445}
9446
9447func (s *GoogleCloudDialogflowV2beta1AgentAssistantRecord) MarshalJSON() ([]byte, error) {
9448	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantRecord
9449	raw := NoMethod(*s)
9450	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9451}
9452
9453// GoogleCloudDialogflowV2beta1AnalyzeContentRequest: The request
9454// message for Participants.AnalyzeContent.
9455type GoogleCloudDialogflowV2beta1AnalyzeContentRequest struct {
9456	// EventInput: An input event to send to Dialogflow.
9457	EventInput *GoogleCloudDialogflowV2beta1EventInput `json:"eventInput,omitempty"`
9458
9459	// MessageSendTime: Optional. The send time of the message from end user
9460	// or human agent's perspective. It is used for identifying the same
9461	// message under one participant. Given two messages under the same
9462	// participant: - If send time are different regardless of whether the
9463	// content of the messages are exactly the same, the conversation will
9464	// regard them as two distinct messages sent by the participant. - If
9465	// send time is the same regardless of whether the content of the
9466	// messages are exactly the same, the conversation will regard them as
9467	// same message, and ignore the message received later. If the value is
9468	// not provided, a new request will always be regarded as a new message
9469	// without any de-duplication.
9470	MessageSendTime string `json:"messageSendTime,omitempty"`
9471
9472	// QueryParams: Parameters for a Dialogflow virtual-agent query.
9473	QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
9474
9475	// ReplyAudioConfig: Speech synthesis configuration. The speech
9476	// synthesis settings for a virtual agent that may be configured for the
9477	// associated conversation profile are not used when calling
9478	// AnalyzeContent. If this configuration is not supplied, speech
9479	// synthesis is disabled.
9480	ReplyAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"replyAudioConfig,omitempty"`
9481
9482	// RequestId: A unique identifier for this request. Restricted to 36
9483	// ASCII characters. A random UUID is recommended. This request is only
9484	// idempotent if a `request_id` is provided.
9485	RequestId string `json:"requestId,omitempty"`
9486
9487	// TextInput: The natural language text to be processed.
9488	TextInput *GoogleCloudDialogflowV2beta1TextInput `json:"textInput,omitempty"`
9489
9490	// ForceSendFields is a list of field names (e.g. "EventInput") to
9491	// unconditionally include in API requests. By default, fields with
9492	// empty values are omitted from API requests. However, any non-pointer,
9493	// non-interface field appearing in ForceSendFields will be sent to the
9494	// server regardless of whether the field is empty or not. This may be
9495	// used to include empty fields in Patch requests.
9496	ForceSendFields []string `json:"-"`
9497
9498	// NullFields is a list of field names (e.g. "EventInput") to include in
9499	// API requests with the JSON null value. By default, fields with empty
9500	// values are omitted from API requests. However, any field with an
9501	// empty value appearing in NullFields will be sent to the server as
9502	// null. It is an error if a field in this list has a non-empty value.
9503	// This may be used to include null fields in Patch requests.
9504	NullFields []string `json:"-"`
9505}
9506
9507func (s *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) MarshalJSON() ([]byte, error) {
9508	type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentRequest
9509	raw := NoMethod(*s)
9510	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9511}
9512
9513// GoogleCloudDialogflowV2beta1AnalyzeContentResponse: The response
9514// message for Participants.AnalyzeContent.
9515type GoogleCloudDialogflowV2beta1AnalyzeContentResponse struct {
9516	// AutomatedAgentReply: Optional. Only set if a Dialogflow automated
9517	// agent has responded. Note that:
9518	// AutomatedAgentReply.detect_intent_response.output_audio and
9519	// AutomatedAgentReply.detect_intent_response.output_audio_config are
9520	// always empty, use reply_audio instead.
9521	AutomatedAgentReply *GoogleCloudDialogflowV2beta1AutomatedAgentReply `json:"automatedAgentReply,omitempty"`
9522
9523	// DtmfParameters: Indicates the parameters of DTMF.
9524	DtmfParameters *GoogleCloudDialogflowV2beta1DtmfParameters `json:"dtmfParameters,omitempty"`
9525
9526	// EndUserSuggestionResults: The suggestions for end user. The order is
9527	// the same as
9528	// HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
9529	// HumanAgentAssistantConfig.end_user_suggestion_config.
9530	EndUserSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"endUserSuggestionResults,omitempty"`
9531
9532	// HumanAgentSuggestionResults: The suggestions for most recent human
9533	// agent. The order is the same as
9534	// HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
9535	// HumanAgentAssistantConfig.human_agent_suggestion_config.
9536	HumanAgentSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"humanAgentSuggestionResults,omitempty"`
9537
9538	// Message: Output only. Message analyzed by CCAI.
9539	Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
9540
9541	// ReplyAudio: Optional. The audio data bytes encoded as specified in
9542	// the request. This field is set if: - `reply_audio_config` was
9543	// specified in the request, or - The automated agent responded with
9544	// audio to play to the user. In such case, `reply_audio.config`
9545	// contains settings used to synthesize the speech. In some scenarios,
9546	// multiple output audio fields may be present in the response
9547	// structure. In these cases, only the top-most-level audio output has
9548	// content.
9549	ReplyAudio *GoogleCloudDialogflowV2beta1OutputAudio `json:"replyAudio,omitempty"`
9550
9551	// ReplyText: Output only. The output text content. This field is set if
9552	// the automated agent responded with text to show to the user.
9553	ReplyText string `json:"replyText,omitempty"`
9554
9555	// ServerResponse contains the HTTP response code and headers from the
9556	// server.
9557	googleapi.ServerResponse `json:"-"`
9558
9559	// ForceSendFields is a list of field names (e.g. "AutomatedAgentReply")
9560	// to unconditionally include in API requests. By default, fields with
9561	// empty values are omitted from API requests. However, any non-pointer,
9562	// non-interface field appearing in ForceSendFields will be sent to the
9563	// server regardless of whether the field is empty or not. This may be
9564	// used to include empty fields in Patch requests.
9565	ForceSendFields []string `json:"-"`
9566
9567	// NullFields is a list of field names (e.g. "AutomatedAgentReply") to
9568	// include in API requests with the JSON null value. By default, fields
9569	// with empty values are omitted from API requests. However, any field
9570	// with an empty value appearing in NullFields will be sent to the
9571	// server as null. It is an error if a field in this list has a
9572	// non-empty value. This may be used to include null fields in Patch
9573	// requests.
9574	NullFields []string `json:"-"`
9575}
9576
9577func (s *GoogleCloudDialogflowV2beta1AnalyzeContentResponse) MarshalJSON() ([]byte, error) {
9578	type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentResponse
9579	raw := NoMethod(*s)
9580	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9581}
9582
9583// GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part
9584// of a message possibly annotated with an entity. The part can be an
9585// entity or purely a part of the message between two entities or
9586// message start/end.
9587type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
9588	// EntityType: Optional. The Dialogflow system entity type
9589	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
9590	// of this message part. If this is empty, Dialogflow could not annotate
9591	// the phrase part with a system entity.
9592	EntityType string `json:"entityType,omitempty"`
9593
9594	// FormattedValue: Optional. The Dialogflow system entity formatted
9595	// value
9596	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
9597	// of this message part. For example for a system entity of type
9598	// `@sys.unit-currency`, this may contain: { "amount": 5, "currency":
9599	// "USD" }
9600	FormattedValue interface{} `json:"formattedValue,omitempty"`
9601
9602	// Text: Required. A part of a message possibly annotated with an
9603	// entity.
9604	Text string `json:"text,omitempty"`
9605
9606	// ForceSendFields is a list of field names (e.g. "EntityType") to
9607	// unconditionally include in API requests. By default, fields with
9608	// empty values are omitted from API requests. However, any non-pointer,
9609	// non-interface field appearing in ForceSendFields will be sent to the
9610	// server regardless of whether the field is empty or not. This may be
9611	// used to include empty fields in Patch requests.
9612	ForceSendFields []string `json:"-"`
9613
9614	// NullFields is a list of field names (e.g. "EntityType") to include in
9615	// API requests with the JSON null value. By default, fields with empty
9616	// values are omitted from API requests. However, any field with an
9617	// empty value appearing in NullFields will be sent to the server as
9618	// null. It is an error if a field in this list has a non-empty value.
9619	// This may be used to include null fields in Patch requests.
9620	NullFields []string `json:"-"`
9621}
9622
9623func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
9624	type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
9625	raw := NoMethod(*s)
9626	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9627}
9628
9629// GoogleCloudDialogflowV2beta1AnswerFeedback: Represents feedback the
9630// customer has about the quality & correctness of a certain answer in a
9631// conversation.
9632type GoogleCloudDialogflowV2beta1AnswerFeedback struct {
9633	// AgentAssistantDetailFeedback: Optional. Detail feedback of agent
9634	// assistant suggestions.
9635	AgentAssistantDetailFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedback `json:"agentAssistantDetailFeedback,omitempty"`
9636
9637	// ClickTime: Time when the answer/item was clicked.
9638	ClickTime string `json:"clickTime,omitempty"`
9639
9640	// Clicked: Indicates whether the answer/item was clicked by the human
9641	// agent or not. Default to false.
9642	Clicked bool `json:"clicked,omitempty"`
9643
9644	// CorrectnessLevel: The correctness level of the specific answer.
9645	//
9646	// Possible values:
9647	//   "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified.
9648	//   "NOT_CORRECT" - Answer is totally wrong.
9649	//   "PARTIALLY_CORRECT" - Answer is partially correct.
9650	//   "FULLY_CORRECT" - Answer is fully correct.
9651	CorrectnessLevel string `json:"correctnessLevel,omitempty"`
9652
9653	// DisplayTime: Time when the answer/item was displayed.
9654	DisplayTime string `json:"displayTime,omitempty"`
9655
9656	// Displayed: Indicates whether the answer/item was displayed to the
9657	// human agent in the agent desktop UI. Default to false.
9658	Displayed bool `json:"displayed,omitempty"`
9659
9660	// ForceSendFields is a list of field names (e.g.
9661	// "AgentAssistantDetailFeedback") to unconditionally include in API
9662	// requests. By default, fields with empty values are omitted from API
9663	// requests. However, any non-pointer, non-interface field appearing in
9664	// ForceSendFields will be sent to the server regardless of whether the
9665	// field is empty or not. This may be used to include empty fields in
9666	// Patch requests.
9667	ForceSendFields []string `json:"-"`
9668
9669	// NullFields is a list of field names (e.g.
9670	// "AgentAssistantDetailFeedback") to include in API requests with the
9671	// JSON null value. By default, fields with empty values are omitted
9672	// from API requests. However, any field with an empty value appearing
9673	// in NullFields will be sent to the server as null. It is an error if a
9674	// field in this list has a non-empty value. This may be used to include
9675	// null fields in Patch requests.
9676	NullFields []string `json:"-"`
9677}
9678
9679func (s *GoogleCloudDialogflowV2beta1AnswerFeedback) MarshalJSON() ([]byte, error) {
9680	type NoMethod GoogleCloudDialogflowV2beta1AnswerFeedback
9681	raw := NoMethod(*s)
9682	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9683}
9684
9685// GoogleCloudDialogflowV2beta1AnswerRecord: Answer records are records
9686// to manage answer history and feedbacks for Dialogflow. Currently,
9687// answer record includes: - human agent assistant article suggestion -
9688// human agent assistant faq article It doesn't include: -
9689// `DetectIntent` intent matching - `DetectIntent` knowledge Answer
9690// records are not related to the conversation history in the Dialogflow
9691// Console. A Record is generated even when the end-user disables
9692// conversation history in the console. Records are created when there's
9693// a human agent assistant suggestion generated. A typical workflow for
9694// customers provide feedback to an answer is: 1. For human agent
9695// assistant, customers get suggestion via ListSuggestions API. Together
9696// with the answers, AnswerRecord.name are returned to the customers. 2.
9697// The customer uses the AnswerRecord.name to call the
9698// UpdateAnswerRecord method to send feedback about a specific answer
9699// that they believe is wrong.
9700type GoogleCloudDialogflowV2beta1AnswerRecord struct {
9701	// AgentAssistantRecord: Output only. The record for human agent
9702	// assistant.
9703	AgentAssistantRecord *GoogleCloudDialogflowV2beta1AgentAssistantRecord `json:"agentAssistantRecord,omitempty"`
9704
9705	// AnswerFeedback: Optional. The AnswerFeedback for this record. You can
9706	// set this with AnswerRecords.UpdateAnswerRecord in order to give us
9707	// feedback about this answer.
9708	AnswerFeedback *GoogleCloudDialogflowV2beta1AnswerFeedback `json:"answerFeedback,omitempty"`
9709
9710	// Name: The unique identifier of this answer record. Required for
9711	// AnswerRecords.UpdateAnswerRecord method. Format:
9712	// `projects//locations//answerRecords/`.
9713	Name string `json:"name,omitempty"`
9714
9715	// ServerResponse contains the HTTP response code and headers from the
9716	// server.
9717	googleapi.ServerResponse `json:"-"`
9718
9719	// ForceSendFields is a list of field names (e.g.
9720	// "AgentAssistantRecord") to unconditionally include in API requests.
9721	// By default, fields with empty values are omitted from API requests.
9722	// However, any non-pointer, non-interface field appearing in
9723	// ForceSendFields will be sent to the server regardless of whether the
9724	// field is empty or not. This may be used to include empty fields in
9725	// Patch requests.
9726	ForceSendFields []string `json:"-"`
9727
9728	// NullFields is a list of field names (e.g. "AgentAssistantRecord") to
9729	// include in API requests with the JSON null value. By default, fields
9730	// with empty values are omitted from API requests. However, any field
9731	// with an empty value appearing in NullFields will be sent to the
9732	// server as null. It is an error if a field in this list has a
9733	// non-empty value. This may be used to include null fields in Patch
9734	// requests.
9735	NullFields []string `json:"-"`
9736}
9737
9738func (s *GoogleCloudDialogflowV2beta1AnswerRecord) MarshalJSON() ([]byte, error) {
9739	type NoMethod GoogleCloudDialogflowV2beta1AnswerRecord
9740	raw := NoMethod(*s)
9741	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9742}
9743
9744// GoogleCloudDialogflowV2beta1ArticleAnswer: Represents article answer.
9745type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
9746	// AnswerRecord: The name of answer record, in the format of
9747	// "projects//locations//answerRecords/"
9748	AnswerRecord string `json:"answerRecord,omitempty"`
9749
9750	// Metadata: A map that contains metadata about the answer and the
9751	// document from which it originates.
9752	Metadata map[string]string `json:"metadata,omitempty"`
9753
9754	// Snippets: Output only. Article snippets.
9755	Snippets []string `json:"snippets,omitempty"`
9756
9757	// Title: The article title.
9758	Title string `json:"title,omitempty"`
9759
9760	// Uri: The article URI.
9761	Uri string `json:"uri,omitempty"`
9762
9763	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
9764	// unconditionally include in API requests. By default, fields with
9765	// empty values are omitted from API requests. However, any non-pointer,
9766	// non-interface field appearing in ForceSendFields will be sent to the
9767	// server regardless of whether the field is empty or not. This may be
9768	// used to include empty fields in Patch requests.
9769	ForceSendFields []string `json:"-"`
9770
9771	// NullFields is a list of field names (e.g. "AnswerRecord") to include
9772	// in API requests with the JSON null value. By default, fields with
9773	// empty values are omitted from API requests. However, any field with
9774	// an empty value appearing in NullFields will be sent to the server as
9775	// null. It is an error if a field in this list has a non-empty value.
9776	// This may be used to include null fields in Patch requests.
9777	NullFields []string `json:"-"`
9778}
9779
9780func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
9781	type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
9782	raw := NoMethod(*s)
9783	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9784}
9785
9786// GoogleCloudDialogflowV2beta1AutomatedAgentConfig: Defines the
9787// Automated Agent to connect to a conversation.
9788type GoogleCloudDialogflowV2beta1AutomatedAgentConfig struct {
9789	// Agent: Required. ID of the Dialogflow agent environment to use. This
9790	// project needs to either be the same project as the conversation or
9791	// you need to grant
9792	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow
9793	// API Service Agent` role in this project. - For ES agents, use format:
9794	// `projects//locations//agent/environments/`. If environment is not
9795	// specified, the default `draft` environment is used. Refer to
9796	// DetectIntentRequest
9797	// (/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google
9798	// .cloud.dialogflow.v2beta1.DetectIntentRequest) for more details. -
9799	// For CX agents, use format
9800	// `projects//locations//agents//environments/`. If environment is not
9801	// specified, the default `draft` environment is used.
9802	Agent string `json:"agent,omitempty"`
9803
9804	// ForceSendFields is a list of field names (e.g. "Agent") to
9805	// unconditionally include in API requests. By default, fields with
9806	// empty values are omitted from API requests. However, any non-pointer,
9807	// non-interface field appearing in ForceSendFields will be sent to the
9808	// server regardless of whether the field is empty or not. This may be
9809	// used to include empty fields in Patch requests.
9810	ForceSendFields []string `json:"-"`
9811
9812	// NullFields is a list of field names (e.g. "Agent") to include in API
9813	// requests with the JSON null value. By default, fields with empty
9814	// values are omitted from API requests. However, any field with an
9815	// empty value appearing in NullFields will be sent to the server as
9816	// null. It is an error if a field in this list has a non-empty value.
9817	// This may be used to include null fields in Patch requests.
9818	NullFields []string `json:"-"`
9819}
9820
9821func (s *GoogleCloudDialogflowV2beta1AutomatedAgentConfig) MarshalJSON() ([]byte, error) {
9822	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentConfig
9823	raw := NoMethod(*s)
9824	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9825}
9826
9827// GoogleCloudDialogflowV2beta1AutomatedAgentReply: Represents a
9828// response from an automated agent.
9829type GoogleCloudDialogflowV2beta1AutomatedAgentReply struct {
9830	// CxSessionParameters: The collection of current Dialogflow CX agent
9831	// session parameters at the time of this response.
9832	CxSessionParameters googleapi.RawMessage `json:"cxSessionParameters,omitempty"`
9833
9834	// DetectIntentResponse: Response of the Dialogflow
9835	// Sessions.DetectIntent call.
9836	DetectIntentResponse *GoogleCloudDialogflowV2beta1DetectIntentResponse `json:"detectIntentResponse,omitempty"`
9837
9838	// Event: Event name if an event is triggered for the query.
9839	Event string `json:"event,omitempty"`
9840
9841	// Intent: Name of the intent if an intent is matched for the query. For
9842	// a V2 query, the value format is `projects//locations/
9843	// /agent/intents/`. For a V3 query, the value format is
9844	// `projects//locations/ /agents//intents/`.
9845	Intent string `json:"intent,omitempty"`
9846
9847	// ResponseMessages: Response messages from the automated agent.
9848	ResponseMessages []*GoogleCloudDialogflowV2beta1ResponseMessage `json:"responseMessages,omitempty"`
9849
9850	// ForceSendFields is a list of field names (e.g. "CxSessionParameters")
9851	// to unconditionally include in API requests. By default, fields with
9852	// empty values are omitted from API requests. However, any non-pointer,
9853	// non-interface field appearing in ForceSendFields will be sent to the
9854	// server regardless of whether the field is empty or not. This may be
9855	// used to include empty fields in Patch requests.
9856	ForceSendFields []string `json:"-"`
9857
9858	// NullFields is a list of field names (e.g. "CxSessionParameters") to
9859	// include in API requests with the JSON null value. By default, fields
9860	// with empty values are omitted from API requests. However, any field
9861	// with an empty value appearing in NullFields will be sent to the
9862	// server as null. It is an error if a field in this list has a
9863	// non-empty value. This may be used to include null fields in Patch
9864	// requests.
9865	NullFields []string `json:"-"`
9866}
9867
9868func (s *GoogleCloudDialogflowV2beta1AutomatedAgentReply) MarshalJSON() ([]byte, error) {
9869	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentReply
9870	raw := NoMethod(*s)
9871	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9872}
9873
9874// GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest: The request
9875// message for EntityTypes.BatchCreateEntities.
9876type GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest struct {
9877	// Entities: Required. The entities to create.
9878	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
9879
9880	// LanguageCode: Optional. The language used to access language-specific
9881	// data. If not specified, the agent's default language is used. For
9882	// more information, see Multilingual intent and entity data
9883	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
9884	LanguageCode string `json:"languageCode,omitempty"`
9885
9886	// ForceSendFields is a list of field names (e.g. "Entities") to
9887	// unconditionally include in API requests. By default, fields with
9888	// empty values are omitted from API requests. However, any non-pointer,
9889	// non-interface field appearing in ForceSendFields will be sent to the
9890	// server regardless of whether the field is empty or not. This may be
9891	// used to include empty fields in Patch requests.
9892	ForceSendFields []string `json:"-"`
9893
9894	// NullFields is a list of field names (e.g. "Entities") to include in
9895	// API requests with the JSON null value. By default, fields with empty
9896	// values are omitted from API requests. However, any field with an
9897	// empty value appearing in NullFields will be sent to the server as
9898	// null. It is an error if a field in this list has a non-empty value.
9899	// This may be used to include null fields in Patch requests.
9900	NullFields []string `json:"-"`
9901}
9902
9903func (s *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error) {
9904	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
9905	raw := NoMethod(*s)
9906	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9907}
9908
9909// GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest: The request
9910// message for Conversations.BatchCreateMessagesRequest.
9911type GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest struct {
9912	// Requests: Required. A maximum of 1000 Messages can be created in a
9913	// batch. CreateMessageRequest.message.send_time is required. All
9914	// created messages will have identical Message.create_time.
9915	Requests []*GoogleCloudDialogflowV2beta1CreateMessageRequest `json:"requests,omitempty"`
9916
9917	// ForceSendFields is a list of field names (e.g. "Requests") to
9918	// unconditionally include in API requests. By default, fields with
9919	// empty values are omitted from API requests. However, any non-pointer,
9920	// non-interface field appearing in ForceSendFields will be sent to the
9921	// server regardless of whether the field is empty or not. This may be
9922	// used to include empty fields in Patch requests.
9923	ForceSendFields []string `json:"-"`
9924
9925	// NullFields is a list of field names (e.g. "Requests") to include in
9926	// API requests with the JSON null value. By default, fields with empty
9927	// values are omitted from API requests. However, any field with an
9928	// empty value appearing in NullFields will be sent to the server as
9929	// null. It is an error if a field in this list has a non-empty value.
9930	// This may be used to include null fields in Patch requests.
9931	NullFields []string `json:"-"`
9932}
9933
9934func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) MarshalJSON() ([]byte, error) {
9935	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
9936	raw := NoMethod(*s)
9937	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9938}
9939
9940// GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse: The request
9941// message for Conversations.BatchCreateMessagesResponse.
9942type GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse struct {
9943	// Messages: Messages created.
9944	Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
9945
9946	// ServerResponse contains the HTTP response code and headers from the
9947	// server.
9948	googleapi.ServerResponse `json:"-"`
9949
9950	// ForceSendFields is a list of field names (e.g. "Messages") to
9951	// unconditionally include in API requests. By default, fields with
9952	// empty values are omitted from API requests. However, any non-pointer,
9953	// non-interface field appearing in ForceSendFields will be sent to the
9954	// server regardless of whether the field is empty or not. This may be
9955	// used to include empty fields in Patch requests.
9956	ForceSendFields []string `json:"-"`
9957
9958	// NullFields is a list of field names (e.g. "Messages") to include in
9959	// API requests with the JSON null value. By default, fields with empty
9960	// values are omitted from API requests. However, any field with an
9961	// empty value appearing in NullFields will be sent to the server as
9962	// null. It is an error if a field in this list has a non-empty value.
9963	// This may be used to include null fields in Patch requests.
9964	NullFields []string `json:"-"`
9965}
9966
9967func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse) MarshalJSON() ([]byte, error) {
9968	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse
9969	raw := NoMethod(*s)
9970	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9971}
9972
9973// GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest: The request
9974// message for EntityTypes.BatchDeleteEntities.
9975type GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest struct {
9976	// EntityValues: Required. The reference `values` of the entities to
9977	// delete. Note that these are not fully-qualified names, i.e. they
9978	// don't start with `projects/`.
9979	EntityValues []string `json:"entityValues,omitempty"`
9980
9981	// LanguageCode: Optional. The language used to access language-specific
9982	// data. If not specified, the agent's default language is used. For
9983	// more information, see Multilingual intent and entity data
9984	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
9985	LanguageCode string `json:"languageCode,omitempty"`
9986
9987	// ForceSendFields is a list of field names (e.g. "EntityValues") to
9988	// unconditionally include in API requests. By default, fields with
9989	// empty values are omitted from API requests. However, any non-pointer,
9990	// non-interface field appearing in ForceSendFields will be sent to the
9991	// server regardless of whether the field is empty or not. This may be
9992	// used to include empty fields in Patch requests.
9993	ForceSendFields []string `json:"-"`
9994
9995	// NullFields is a list of field names (e.g. "EntityValues") to include
9996	// in API requests with the JSON null value. By default, fields with
9997	// empty values are omitted from API requests. However, any field with
9998	// an empty value appearing in NullFields will be sent to the server as
9999	// null. It is an error if a field in this list has a non-empty value.
10000	// This may be used to include null fields in Patch requests.
10001	NullFields []string `json:"-"`
10002}
10003
10004func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error) {
10005	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
10006	raw := NoMethod(*s)
10007	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10008}
10009
10010// GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest: The
10011// request message for EntityTypes.BatchDeleteEntityTypes.
10012type GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest struct {
10013	// EntityTypeNames: Required. The names entity types to delete. All
10014	// names must point to the same agent as `parent`.
10015	EntityTypeNames []string `json:"entityTypeNames,omitempty"`
10016
10017	// ForceSendFields is a list of field names (e.g. "EntityTypeNames") to
10018	// unconditionally include in API requests. By default, fields with
10019	// empty values are omitted from API requests. However, any non-pointer,
10020	// non-interface field appearing in ForceSendFields will be sent to the
10021	// server regardless of whether the field is empty or not. This may be
10022	// used to include empty fields in Patch requests.
10023	ForceSendFields []string `json:"-"`
10024
10025	// NullFields is a list of field names (e.g. "EntityTypeNames") to
10026	// include in API requests with the JSON null value. By default, fields
10027	// with empty values are omitted from API requests. However, any field
10028	// with an empty value appearing in NullFields will be sent to the
10029	// server as null. It is an error if a field in this list has a
10030	// non-empty value. This may be used to include null fields in Patch
10031	// requests.
10032	NullFields []string `json:"-"`
10033}
10034
10035func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error) {
10036	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
10037	raw := NoMethod(*s)
10038	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10039}
10040
10041// GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest: The request
10042// message for Intents.BatchDeleteIntents.
10043type GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest struct {
10044	// Intents: Required. The collection of intents to delete. Only intent
10045	// `name` must be filled in.
10046	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
10047
10048	// ForceSendFields is a list of field names (e.g. "Intents") to
10049	// unconditionally include in API requests. By default, fields with
10050	// empty values are omitted from API requests. However, any non-pointer,
10051	// non-interface field appearing in ForceSendFields will be sent to the
10052	// server regardless of whether the field is empty or not. This may be
10053	// used to include empty fields in Patch requests.
10054	ForceSendFields []string `json:"-"`
10055
10056	// NullFields is a list of field names (e.g. "Intents") to include in
10057	// API requests with the JSON null value. By default, fields with empty
10058	// values are omitted from API requests. However, any field with an
10059	// empty value appearing in NullFields will be sent to the server as
10060	// null. It is an error if a field in this list has a non-empty value.
10061	// This may be used to include null fields in Patch requests.
10062	NullFields []string `json:"-"`
10063}
10064
10065func (s *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error) {
10066	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
10067	raw := NoMethod(*s)
10068	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10069}
10070
10071// GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest: The request
10072// message for EntityTypes.BatchUpdateEntities.
10073type GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest struct {
10074	// Entities: Required. The entities to update or create.
10075	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
10076
10077	// LanguageCode: Optional. The language used to access language-specific
10078	// data. If not specified, the agent's default language is used. For
10079	// more information, see Multilingual intent and entity data
10080	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10081	LanguageCode string `json:"languageCode,omitempty"`
10082
10083	// UpdateMask: Optional. The mask to control which fields get updated.
10084	UpdateMask string `json:"updateMask,omitempty"`
10085
10086	// ForceSendFields is a list of field names (e.g. "Entities") to
10087	// unconditionally include in API requests. By default, fields with
10088	// empty values are omitted from API requests. However, any non-pointer,
10089	// non-interface field appearing in ForceSendFields will be sent to the
10090	// server regardless of whether the field is empty or not. This may be
10091	// used to include empty fields in Patch requests.
10092	ForceSendFields []string `json:"-"`
10093
10094	// NullFields is a list of field names (e.g. "Entities") to include in
10095	// API requests with the JSON null value. By default, fields with empty
10096	// values are omitted from API requests. However, any field with an
10097	// empty value appearing in NullFields will be sent to the server as
10098	// null. It is an error if a field in this list has a non-empty value.
10099	// This may be used to include null fields in Patch requests.
10100	NullFields []string `json:"-"`
10101}
10102
10103func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error) {
10104	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
10105	raw := NoMethod(*s)
10106	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10107}
10108
10109// GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest: The
10110// request message for EntityTypes.BatchUpdateEntityTypes.
10111type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest struct {
10112	// EntityTypeBatchInline: The collection of entity types to update or
10113	// create.
10114	EntityTypeBatchInline *GoogleCloudDialogflowV2beta1EntityTypeBatch `json:"entityTypeBatchInline,omitempty"`
10115
10116	// EntityTypeBatchUri: The URI to a Google Cloud Storage file containing
10117	// entity types to update or create. The file format can either be a
10118	// serialized proto (of EntityBatch type) or a JSON object. Note: The
10119	// URI must start with "gs://".
10120	EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"`
10121
10122	// LanguageCode: Optional. The language used to access language-specific
10123	// data. If not specified, the agent's default language is used. For
10124	// more information, see Multilingual intent and entity data
10125	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10126	LanguageCode string `json:"languageCode,omitempty"`
10127
10128	// UpdateMask: Optional. The mask to control which fields get updated.
10129	UpdateMask string `json:"updateMask,omitempty"`
10130
10131	// ForceSendFields is a list of field names (e.g.
10132	// "EntityTypeBatchInline") to unconditionally include in API requests.
10133	// By default, fields with empty values are omitted from API requests.
10134	// However, any non-pointer, non-interface field appearing in
10135	// ForceSendFields will be sent to the server regardless of whether the
10136	// field is empty or not. This may be used to include empty fields in
10137	// Patch requests.
10138	ForceSendFields []string `json:"-"`
10139
10140	// NullFields is a list of field names (e.g. "EntityTypeBatchInline") to
10141	// include in API requests with the JSON null value. By default, fields
10142	// with empty values are omitted from API requests. However, any field
10143	// with an empty value appearing in NullFields will be sent to the
10144	// server as null. It is an error if a field in this list has a
10145	// non-empty value. This may be used to include null fields in Patch
10146	// requests.
10147	NullFields []string `json:"-"`
10148}
10149
10150func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error) {
10151	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
10152	raw := NoMethod(*s)
10153	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10154}
10155
10156// GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The
10157// response message for EntityTypes.BatchUpdateEntityTypes.
10158type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
10159	// EntityTypes: The collection of updated or created entity types.
10160	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
10161
10162	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
10163	// unconditionally include in API requests. By default, fields with
10164	// empty values are omitted from API requests. However, any non-pointer,
10165	// non-interface field appearing in ForceSendFields will be sent to the
10166	// server regardless of whether the field is empty or not. This may be
10167	// used to include empty fields in Patch requests.
10168	ForceSendFields []string `json:"-"`
10169
10170	// NullFields is a list of field names (e.g. "EntityTypes") to include
10171	// in API requests with the JSON null value. By default, fields with
10172	// empty values are omitted from API requests. However, any field with
10173	// an empty value appearing in NullFields will be sent to the server as
10174	// null. It is an error if a field in this list has a non-empty value.
10175	// This may be used to include null fields in Patch requests.
10176	NullFields []string `json:"-"`
10177}
10178
10179func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
10180	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
10181	raw := NoMethod(*s)
10182	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10183}
10184
10185// GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest: The request
10186// message for Intents.BatchUpdateIntents.
10187type GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest struct {
10188	// IntentBatchInline: The collection of intents to update or create.
10189	IntentBatchInline *GoogleCloudDialogflowV2beta1IntentBatch `json:"intentBatchInline,omitempty"`
10190
10191	// IntentBatchUri: The URI to a Google Cloud Storage file containing
10192	// intents to update or create. The file format can either be a
10193	// serialized proto (of IntentBatch type) or JSON object. Note: The URI
10194	// must start with "gs://".
10195	IntentBatchUri string `json:"intentBatchUri,omitempty"`
10196
10197	// IntentView: Optional. The resource view to apply to the returned
10198	// intent.
10199	//
10200	// Possible values:
10201	//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
10202	// in the response.
10203	//   "INTENT_VIEW_FULL" - All fields are populated.
10204	IntentView string `json:"intentView,omitempty"`
10205
10206	// LanguageCode: Optional. The language used to access language-specific
10207	// data. If not specified, the agent's default language is used. For
10208	// more information, see Multilingual intent and entity data
10209	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
10210	LanguageCode string `json:"languageCode,omitempty"`
10211
10212	// UpdateMask: Optional. The mask to control which fields get updated.
10213	UpdateMask string `json:"updateMask,omitempty"`
10214
10215	// ForceSendFields is a list of field names (e.g. "IntentBatchInline")
10216	// to unconditionally include in API requests. By default, fields with
10217	// empty values are omitted from API requests. However, any non-pointer,
10218	// non-interface field appearing in ForceSendFields will be sent to the
10219	// server regardless of whether the field is empty or not. This may be
10220	// used to include empty fields in Patch requests.
10221	ForceSendFields []string `json:"-"`
10222
10223	// NullFields is a list of field names (e.g. "IntentBatchInline") to
10224	// include in API requests with the JSON null value. By default, fields
10225	// with empty values are omitted from API requests. However, any field
10226	// with an empty value appearing in NullFields will be sent to the
10227	// server as null. It is an error if a field in this list has a
10228	// non-empty value. This may be used to include null fields in Patch
10229	// requests.
10230	NullFields []string `json:"-"`
10231}
10232
10233func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error) {
10234	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
10235	raw := NoMethod(*s)
10236	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10237}
10238
10239// GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response
10240// message for Intents.BatchUpdateIntents.
10241type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
10242	// Intents: The collection of updated or created intents.
10243	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
10244
10245	// ForceSendFields is a list of field names (e.g. "Intents") to
10246	// unconditionally include in API requests. By default, fields with
10247	// empty values are omitted from API requests. However, any non-pointer,
10248	// non-interface field appearing in ForceSendFields will be sent to the
10249	// server regardless of whether the field is empty or not. This may be
10250	// used to include empty fields in Patch requests.
10251	ForceSendFields []string `json:"-"`
10252
10253	// NullFields is a list of field names (e.g. "Intents") to include in
10254	// API requests with the JSON null value. By default, fields with empty
10255	// values are omitted from API requests. However, any field with an
10256	// empty value appearing in NullFields will be sent to the server as
10257	// null. It is an error if a field in this list has a non-empty value.
10258	// This may be used to include null fields in Patch requests.
10259	NullFields []string `json:"-"`
10260}
10261
10262func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
10263	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
10264	raw := NoMethod(*s)
10265	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10266}
10267
10268// GoogleCloudDialogflowV2beta1CompileSuggestionRequest: The request
10269// message for Participants.CompileSuggestion.
10270type GoogleCloudDialogflowV2beta1CompileSuggestionRequest struct {
10271	// ContextSize: Optional. Max number of messages prior to and including
10272	// [latest_message] to use as context when compiling the suggestion. If
10273	// zero or less than zero, 20 is used.
10274	ContextSize int64 `json:"contextSize,omitempty"`
10275
10276	// LatestMessage: Optional. The name of the latest conversation message
10277	// to compile suggestion for. If empty, it will be the latest message of
10278	// the conversation. Format:
10279	// `projects//locations//conversations//messages/`.
10280	LatestMessage string `json:"latestMessage,omitempty"`
10281
10282	// ForceSendFields is a list of field names (e.g. "ContextSize") to
10283	// unconditionally include in API requests. By default, fields with
10284	// empty values are omitted from API requests. However, any non-pointer,
10285	// non-interface field appearing in ForceSendFields will be sent to the
10286	// server regardless of whether the field is empty or not. This may be
10287	// used to include empty fields in Patch requests.
10288	ForceSendFields []string `json:"-"`
10289
10290	// NullFields is a list of field names (e.g. "ContextSize") to include
10291	// in API requests with the JSON null value. By default, fields with
10292	// empty values are omitted from API requests. However, any field with
10293	// an empty value appearing in NullFields will be sent to the server as
10294	// null. It is an error if a field in this list has a non-empty value.
10295	// This may be used to include null fields in Patch requests.
10296	NullFields []string `json:"-"`
10297}
10298
10299func (s *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) MarshalJSON() ([]byte, error) {
10300	type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionRequest
10301	raw := NoMethod(*s)
10302	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10303}
10304
10305// GoogleCloudDialogflowV2beta1CompileSuggestionResponse: The response
10306// message for Participants.CompileSuggestion.
10307type GoogleCloudDialogflowV2beta1CompileSuggestionResponse struct {
10308	// ContextSize: Number of messages prior to and including latest_message
10309	// to compile the suggestion. It may be smaller than the
10310	// CompileSuggestionRequest.context_size field in the request if there
10311	// aren't that many messages in the conversation.
10312	ContextSize int64 `json:"contextSize,omitempty"`
10313
10314	// LatestMessage: The name of the latest conversation message used to
10315	// compile suggestion for. Format:
10316	// `projects//locations//conversations//messages/`.
10317	LatestMessage string `json:"latestMessage,omitempty"`
10318
10319	// Suggestion: The compiled suggestion.
10320	Suggestion *GoogleCloudDialogflowV2beta1Suggestion `json:"suggestion,omitempty"`
10321
10322	// ServerResponse contains the HTTP response code and headers from the
10323	// server.
10324	googleapi.ServerResponse `json:"-"`
10325
10326	// ForceSendFields is a list of field names (e.g. "ContextSize") to
10327	// unconditionally include in API requests. By default, fields with
10328	// empty values are omitted from API requests. However, any non-pointer,
10329	// non-interface field appearing in ForceSendFields will be sent to the
10330	// server regardless of whether the field is empty or not. This may be
10331	// used to include empty fields in Patch requests.
10332	ForceSendFields []string `json:"-"`
10333
10334	// NullFields is a list of field names (e.g. "ContextSize") to include
10335	// in API requests with the JSON null value. By default, fields with
10336	// empty values are omitted from API requests. However, any field with
10337	// an empty value appearing in NullFields will be sent to the server as
10338	// null. It is an error if a field in this list has a non-empty value.
10339	// This may be used to include null fields in Patch requests.
10340	NullFields []string `json:"-"`
10341}
10342
10343func (s *GoogleCloudDialogflowV2beta1CompileSuggestionResponse) MarshalJSON() ([]byte, error) {
10344	type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionResponse
10345	raw := NoMethod(*s)
10346	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10347}
10348
10349// GoogleCloudDialogflowV2beta1CompleteConversationRequest: The request
10350// message for Conversations.CompleteConversation.
10351type GoogleCloudDialogflowV2beta1CompleteConversationRequest struct {
10352}
10353
10354// GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar
10355// to natural language context. If a person says to you "they are
10356// orange", you need context in order to understand what "they" is
10357// referring to. Similarly, for Dialogflow to handle an end-user
10358// expression like that, it needs to be provided with context in order
10359// to correctly match an intent. Using contexts, you can control the
10360// flow of a conversation. You can configure contexts for an intent by
10361// setting input and output contexts, which are identified by string
10362// names. When an intent is matched, any configured output contexts for
10363// that intent become active. While any contexts are active, Dialogflow
10364// is more likely to match intents that are configured with input
10365// contexts that correspond to the currently active contexts. For more
10366// information about context, see the Contexts guide
10367// (https://cloud.google.com/dialogflow/docs/contexts-overview).
10368type GoogleCloudDialogflowV2beta1Context struct {
10369	// LifespanCount: Optional. The number of conversational query requests
10370	// after which the context expires. The default is `0`. If set to `0`,
10371	// the context expires immediately. Contexts expire automatically after
10372	// 20 minutes if there are no matching queries.
10373	LifespanCount int64 `json:"lifespanCount,omitempty"`
10374
10375	// Name: Required. The unique identifier of the context. Supported
10376	// formats: - `projects//agent/sessions//contexts/`, -
10377	// `projects//locations//agent/sessions//contexts/`, -
10378	// `projects//agent/environments//users//sessions//contexts/`, -
10379	// `projects//locations//agent/environments//users//sessions//contexts/`,
10380	//  The `Context ID` is always converted to lowercase, may only contain
10381	// characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If
10382	// `Environment ID` is not specified, we assume default 'draft'
10383	// environment. If `User ID` is not specified, we assume default '-'
10384	// user. The following context names are reserved for internal use by
10385	// Dialogflow. You should not use these contexts or create contexts with
10386	// these names: * `__system_counters__` * `*_id_dialog_context` *
10387	// `*_dialog_params_size`
10388	Name string `json:"name,omitempty"`
10389
10390	// Parameters: Optional. The collection of parameters associated with
10391	// this context. Depending on your protocol or client library language,
10392	// this is a map, associative array, symbol table, dictionary, or JSON
10393	// object composed of a collection of (MapKey, MapValue) pairs: - MapKey
10394	// type: string - MapKey value: parameter name - MapValue type: - If
10395	// parameter's entity type is a composite entity: map - Else: depending
10396	// on parameter value type, could be one of string, number, boolean,
10397	// null, list or map - MapValue value: - If parameter's entity type is a
10398	// composite entity: map from composite entity property names to
10399	// property values - Else: parameter value
10400	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
10401
10402	// ServerResponse contains the HTTP response code and headers from the
10403	// server.
10404	googleapi.ServerResponse `json:"-"`
10405
10406	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
10407	// unconditionally include in API requests. By default, fields with
10408	// empty values are omitted from API requests. However, any non-pointer,
10409	// non-interface field appearing in ForceSendFields will be sent to the
10410	// server regardless of whether the field is empty or not. This may be
10411	// used to include empty fields in Patch requests.
10412	ForceSendFields []string `json:"-"`
10413
10414	// NullFields is a list of field names (e.g. "LifespanCount") to include
10415	// in API requests with the JSON null value. By default, fields with
10416	// empty values are omitted from API requests. However, any field with
10417	// an empty value appearing in NullFields will be sent to the server as
10418	// null. It is an error if a field in this list has a non-empty value.
10419	// This may be used to include null fields in Patch requests.
10420	NullFields []string `json:"-"`
10421}
10422
10423func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
10424	type NoMethod GoogleCloudDialogflowV2beta1Context
10425	raw := NoMethod(*s)
10426	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10427}
10428
10429// GoogleCloudDialogflowV2beta1Conversation: Represents a conversation.
10430// A conversation is an interaction between an agent, including live
10431// agents and Dialogflow agents, and a support customer. Conversations
10432// can include phone calls and text-based chat sessions.
10433type GoogleCloudDialogflowV2beta1Conversation struct {
10434	// ConversationProfile: Required. The Conversation Profile to be used to
10435	// configure this Conversation. This field cannot be updated. Format:
10436	// `projects//locations//conversationProfiles/`.
10437	ConversationProfile string `json:"conversationProfile,omitempty"`
10438
10439	// ConversationStage: The stage of a conversation. It indicates whether
10440	// the virtual agent or a human agent is handling the conversation. If
10441	// the conversation is created with the conversation profile that has
10442	// Dialogflow config set, defaults to
10443	// ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise, defaults to
10444	// ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is created
10445	// with the conversation profile that has Dialogflow config set but
10446	// explicitly sets conversation_stage to
10447	// ConversationStage.HUMAN_ASSIST_STAGE, it skips
10448	// ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to
10449	// ConversationStage.HUMAN_ASSIST_STAGE.
10450	//
10451	// Possible values:
10452	//   "CONVERSATION_STAGE_UNSPECIFIED" - Unknown. Should never be used
10453	// after a conversation is successfully created.
10454	//   "VIRTUAL_AGENT_STAGE" - The conversation should return virtual
10455	// agent responses into the conversation.
10456	//   "HUMAN_ASSIST_STAGE" - The conversation should not provide
10457	// responses, just listen and provide suggestions.
10458	ConversationStage string `json:"conversationStage,omitempty"`
10459
10460	// EndTime: Output only. The time the conversation was finished.
10461	EndTime string `json:"endTime,omitempty"`
10462
10463	// LifecycleState: Output only. The current state of the Conversation.
10464	//
10465	// Possible values:
10466	//   "LIFECYCLE_STATE_UNSPECIFIED" - Unknown.
10467	//   "IN_PROGRESS" - Conversation is currently open for media analysis.
10468	//   "COMPLETED" - Conversation has been completed.
10469	LifecycleState string `json:"lifecycleState,omitempty"`
10470
10471	// Name: Output only. The unique identifier of this conversation.
10472	// Format: `projects//locations//conversations/`.
10473	Name string `json:"name,omitempty"`
10474
10475	// PhoneNumber: Output only. Required if the conversation is to be
10476	// connected over telephony.
10477	PhoneNumber *GoogleCloudDialogflowV2beta1ConversationPhoneNumber `json:"phoneNumber,omitempty"`
10478
10479	// StartTime: Output only. The time the conversation was started.
10480	StartTime string `json:"startTime,omitempty"`
10481
10482	// ServerResponse contains the HTTP response code and headers from the
10483	// server.
10484	googleapi.ServerResponse `json:"-"`
10485
10486	// ForceSendFields is a list of field names (e.g. "ConversationProfile")
10487	// to unconditionally include in API requests. By default, fields with
10488	// empty values are omitted from API requests. However, any non-pointer,
10489	// non-interface field appearing in ForceSendFields will be sent to the
10490	// server regardless of whether the field is empty or not. This may be
10491	// used to include empty fields in Patch requests.
10492	ForceSendFields []string `json:"-"`
10493
10494	// NullFields is a list of field names (e.g. "ConversationProfile") to
10495	// include in API requests with the JSON null value. By default, fields
10496	// with empty values are omitted from API requests. However, any field
10497	// with an empty value appearing in NullFields will be sent to the
10498	// server as null. It is an error if a field in this list has a
10499	// non-empty value. This may be used to include null fields in Patch
10500	// requests.
10501	NullFields []string `json:"-"`
10502}
10503
10504func (s *GoogleCloudDialogflowV2beta1Conversation) MarshalJSON() ([]byte, error) {
10505	type NoMethod GoogleCloudDialogflowV2beta1Conversation
10506	raw := NoMethod(*s)
10507	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10508}
10509
10510// GoogleCloudDialogflowV2beta1ConversationEvent: Represents a
10511// notification sent to Pub/Sub subscribers for conversation lifecycle
10512// events.
10513type GoogleCloudDialogflowV2beta1ConversationEvent struct {
10514	// Conversation: Required. The unique identifier of the conversation
10515	// this notification refers to. Format: `projects//conversations/`.
10516	Conversation string `json:"conversation,omitempty"`
10517
10518	// ErrorStatus: Optional. More detailed information about an error. Only
10519	// set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
10520	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
10521
10522	// NewMessagePayload: Payload of NEW_MESSAGE event.
10523	NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
10524
10525	// Type: Required. The type of the event that this notification refers
10526	// to.
10527	//
10528	// Possible values:
10529	//   "TYPE_UNSPECIFIED" - Type not set.
10530	//   "CONVERSATION_STARTED" - A new conversation has been opened. This
10531	// is fired when a telephone call is answered, or a conversation is
10532	// created via the API.
10533	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This
10534	// is fired when a telephone call is terminated, or a conversation is
10535	// closed via the API.
10536	//   "NEW_MESSAGE" - An existing conversation has received a new
10537	// message, either from API or telephony. It is configured in
10538	// ConversationProfile.new_message_event_notification_config
10539	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone
10540	// call. In general non-recoverable errors only occur if something was
10541	// misconfigured in the ConversationProfile corresponding to the call.
10542	// After a non-recoverable error, Dialogflow may stop responding. We
10543	// don't fire this event: * in an API call because we can directly
10544	// return the error, or, * when we can recover from an error.
10545	Type string `json:"type,omitempty"`
10546
10547	// ForceSendFields is a list of field names (e.g. "Conversation") to
10548	// unconditionally include in API requests. By default, fields with
10549	// empty values are omitted from API requests. However, any non-pointer,
10550	// non-interface field appearing in ForceSendFields will be sent to the
10551	// server regardless of whether the field is empty or not. This may be
10552	// used to include empty fields in Patch requests.
10553	ForceSendFields []string `json:"-"`
10554
10555	// NullFields is a list of field names (e.g. "Conversation") to include
10556	// in API requests with the JSON null value. By default, fields with
10557	// empty values are omitted from API requests. However, any field with
10558	// an empty value appearing in NullFields will be sent to the server as
10559	// null. It is an error if a field in this list has a non-empty value.
10560	// This may be used to include null fields in Patch requests.
10561	NullFields []string `json:"-"`
10562}
10563
10564func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
10565	type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
10566	raw := NoMethod(*s)
10567	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10568}
10569
10570// GoogleCloudDialogflowV2beta1ConversationPhoneNumber: Represents a
10571// phone number for telephony integration. It allows for connecting a
10572// particular conversation over telephony.
10573type GoogleCloudDialogflowV2beta1ConversationPhoneNumber struct {
10574	// PhoneNumber: Output only. The phone number to connect to this
10575	// conversation.
10576	PhoneNumber string `json:"phoneNumber,omitempty"`
10577
10578	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
10579	// unconditionally include in API requests. By default, fields with
10580	// empty values are omitted from API requests. However, any non-pointer,
10581	// non-interface field appearing in ForceSendFields will be sent to the
10582	// server regardless of whether the field is empty or not. This may be
10583	// used to include empty fields in Patch requests.
10584	ForceSendFields []string `json:"-"`
10585
10586	// NullFields is a list of field names (e.g. "PhoneNumber") to include
10587	// in API requests with the JSON null value. By default, fields with
10588	// empty values are omitted from API requests. However, any field with
10589	// an empty value appearing in NullFields will be sent to the server as
10590	// null. It is an error if a field in this list has a non-empty value.
10591	// This may be used to include null fields in Patch requests.
10592	NullFields []string `json:"-"`
10593}
10594
10595func (s *GoogleCloudDialogflowV2beta1ConversationPhoneNumber) MarshalJSON() ([]byte, error) {
10596	type NoMethod GoogleCloudDialogflowV2beta1ConversationPhoneNumber
10597	raw := NoMethod(*s)
10598	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10599}
10600
10601// GoogleCloudDialogflowV2beta1ConversationProfile: Defines the services
10602// to connect to incoming Dialogflow conversations.
10603type GoogleCloudDialogflowV2beta1ConversationProfile struct {
10604	// AutomatedAgentConfig: Configuration for an automated agent to use
10605	// with this profile.
10606	AutomatedAgentConfig *GoogleCloudDialogflowV2beta1AutomatedAgentConfig `json:"automatedAgentConfig,omitempty"`
10607
10608	// CreateTime: Output only. Create time of the conversation profile.
10609	CreateTime string `json:"createTime,omitempty"`
10610
10611	// DisplayName: Required. Human readable name for this profile. Max
10612	// length 1024 bytes.
10613	DisplayName string `json:"displayName,omitempty"`
10614
10615	// HumanAgentAssistantConfig: Configuration for agent assistance to use
10616	// with this profile.
10617	HumanAgentAssistantConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig `json:"humanAgentAssistantConfig,omitempty"`
10618
10619	// HumanAgentHandoffConfig: Configuration for connecting to a live
10620	// agent. Currently, this feature is not general available, please
10621	// contact Google to get access.
10622	HumanAgentHandoffConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig `json:"humanAgentHandoffConfig,omitempty"`
10623
10624	// LanguageCode: Language code for the conversation profile. If not
10625	// specified, the language is en-US. Language at ConversationProfile
10626	// should be set for all non en-us languages.
10627	LanguageCode string `json:"languageCode,omitempty"`
10628
10629	// LoggingConfig: Configuration for logging conversation lifecycle
10630	// events.
10631	LoggingConfig *GoogleCloudDialogflowV2beta1LoggingConfig `json:"loggingConfig,omitempty"`
10632
10633	// Name: The unique identifier of this conversation profile. Format:
10634	// `projects//locations//conversationProfiles/`.
10635	Name string `json:"name,omitempty"`
10636
10637	// NewMessageEventNotificationConfig: Configuration for publishing new
10638	// message events. Event will be sent in format of ConversationEvent
10639	NewMessageEventNotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"newMessageEventNotificationConfig,omitempty"`
10640
10641	// NotificationConfig: Configuration for publishing conversation
10642	// lifecycle events.
10643	NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
10644
10645	// SttConfig: Settings for speech transcription.
10646	SttConfig *GoogleCloudDialogflowV2beta1SpeechToTextConfig `json:"sttConfig,omitempty"`
10647
10648	// UpdateTime: Output only. Update time of the conversation profile.
10649	UpdateTime string `json:"updateTime,omitempty"`
10650
10651	// ServerResponse contains the HTTP response code and headers from the
10652	// server.
10653	googleapi.ServerResponse `json:"-"`
10654
10655	// ForceSendFields is a list of field names (e.g.
10656	// "AutomatedAgentConfig") to unconditionally include in API requests.
10657	// By default, fields with empty values are omitted from API requests.
10658	// However, any non-pointer, non-interface field appearing in
10659	// ForceSendFields will be sent to the server regardless of whether the
10660	// field is empty or not. This may be used to include empty fields in
10661	// Patch requests.
10662	ForceSendFields []string `json:"-"`
10663
10664	// NullFields is a list of field names (e.g. "AutomatedAgentConfig") to
10665	// include in API requests with the JSON null value. By default, fields
10666	// with empty values are omitted from API requests. However, any field
10667	// with an empty value appearing in NullFields will be sent to the
10668	// server as null. It is an error if a field in this list has a
10669	// non-empty value. This may be used to include null fields in Patch
10670	// requests.
10671	NullFields []string `json:"-"`
10672}
10673
10674func (s *GoogleCloudDialogflowV2beta1ConversationProfile) MarshalJSON() ([]byte, error) {
10675	type NoMethod GoogleCloudDialogflowV2beta1ConversationProfile
10676	raw := NoMethod(*s)
10677	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10678}
10679
10680// GoogleCloudDialogflowV2beta1CreateMessageRequest: The request message
10681// to create one Message. Currently it is only used in
10682// BatchCreateMessagesRequest.
10683type GoogleCloudDialogflowV2beta1CreateMessageRequest struct {
10684	// Message: Required. The message to create. Message.participant is
10685	// required.
10686	Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
10687
10688	// Parent: Required. Resource identifier of the conversation to create
10689	// message. Format: `projects//locations//conversations/`.
10690	Parent string `json:"parent,omitempty"`
10691
10692	// ForceSendFields is a list of field names (e.g. "Message") to
10693	// unconditionally include in API requests. By default, fields with
10694	// empty values are omitted from API requests. However, any non-pointer,
10695	// non-interface field appearing in ForceSendFields will be sent to the
10696	// server regardless of whether the field is empty or not. This may be
10697	// used to include empty fields in Patch requests.
10698	ForceSendFields []string `json:"-"`
10699
10700	// NullFields is a list of field names (e.g. "Message") to include in
10701	// API requests with the JSON null value. By default, fields with empty
10702	// values are omitted from API requests. However, any field with an
10703	// empty value appearing in NullFields will be sent to the server as
10704	// null. It is an error if a field in this list has a non-empty value.
10705	// This may be used to include null fields in Patch requests.
10706	NullFields []string `json:"-"`
10707}
10708
10709func (s *GoogleCloudDialogflowV2beta1CreateMessageRequest) MarshalJSON() ([]byte, error) {
10710	type NoMethod GoogleCloudDialogflowV2beta1CreateMessageRequest
10711	raw := NoMethod(*s)
10712	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10713}
10714
10715// GoogleCloudDialogflowV2beta1DetectIntentRequest: The request to
10716// detect user's intent.
10717type GoogleCloudDialogflowV2beta1DetectIntentRequest struct {
10718	// InputAudio: The natural language speech audio to be processed. This
10719	// field should be populated iff `query_input` is set to an input audio
10720	// config. A single request can contain up to 1 minute of speech audio
10721	// data.
10722	InputAudio string `json:"inputAudio,omitempty"`
10723
10724	// OutputAudioConfig: Instructs the speech synthesizer how to generate
10725	// the output audio. If this field is not set and agent-level speech
10726	// synthesizer is not configured, no output audio is generated.
10727	OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
10728
10729	// OutputAudioConfigMask: Mask for output_audio_config indicating which
10730	// settings in this request-level config should override speech
10731	// synthesizer settings defined at agent-level. If unspecified or empty,
10732	// output_audio_config replaces the agent-level config in its entirety.
10733	OutputAudioConfigMask string `json:"outputAudioConfigMask,omitempty"`
10734
10735	// QueryInput: Required. The input specification. It can be set to: 1.
10736	// an audio config which instructs the speech recognizer how to process
10737	// the speech audio, 2. a conversational query in the form of text, or
10738	// 3. an event that specifies which intent to trigger.
10739	QueryInput *GoogleCloudDialogflowV2beta1QueryInput `json:"queryInput,omitempty"`
10740
10741	// QueryParams: The parameters of this query.
10742	QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
10743
10744	// ForceSendFields is a list of field names (e.g. "InputAudio") to
10745	// unconditionally include in API requests. By default, fields with
10746	// empty values are omitted from API requests. However, any non-pointer,
10747	// non-interface field appearing in ForceSendFields will be sent to the
10748	// server regardless of whether the field is empty or not. This may be
10749	// used to include empty fields in Patch requests.
10750	ForceSendFields []string `json:"-"`
10751
10752	// NullFields is a list of field names (e.g. "InputAudio") to include in
10753	// API requests with the JSON null value. By default, fields with empty
10754	// values are omitted from API requests. However, any field with an
10755	// empty value appearing in NullFields will be sent to the server as
10756	// null. It is an error if a field in this list has a non-empty value.
10757	// This may be used to include null fields in Patch requests.
10758	NullFields []string `json:"-"`
10759}
10760
10761func (s *GoogleCloudDialogflowV2beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
10762	type NoMethod GoogleCloudDialogflowV2beta1DetectIntentRequest
10763	raw := NoMethod(*s)
10764	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10765}
10766
10767// GoogleCloudDialogflowV2beta1DetectIntentResponse: The message
10768// returned from the DetectIntent method.
10769type GoogleCloudDialogflowV2beta1DetectIntentResponse struct {
10770	// AlternativeQueryResults: If Knowledge Connectors are enabled, there
10771	// could be more than one result returned for a given query or event,
10772	// and this field will contain all results except for the top one, which
10773	// is captured in query_result. The alternative results are ordered by
10774	// decreasing `QueryResult.intent_detection_confidence`. If Knowledge
10775	// Connectors are disabled, this field will be empty until multiple
10776	// responses for regular intents are supported, at which point those
10777	// additional results will be surfaced here.
10778	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
10779
10780	// OutputAudio: The audio data bytes encoded as specified in the
10781	// request. Note: The output audio is generated based on the values of
10782	// default platform text responses found in the
10783	// `query_result.fulfillment_messages` field. If multiple default text
10784	// responses exist, they will be concatenated when generating audio. If
10785	// no default platform text responses exist, the generated audio content
10786	// will be empty. In some scenarios, multiple output audio fields may be
10787	// present in the response structure. In these cases, only the
10788	// top-most-level audio output has content.
10789	OutputAudio string `json:"outputAudio,omitempty"`
10790
10791	// OutputAudioConfig: The config used by the speech synthesizer to
10792	// generate the output audio.
10793	OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
10794
10795	// QueryResult: The selected results of the conversational query or
10796	// event processing. See `alternative_query_results` for additional
10797	// potential results.
10798	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
10799
10800	// ResponseId: The unique identifier of the response. It can be used to
10801	// locate a response in the training example set or for reporting
10802	// issues.
10803	ResponseId string `json:"responseId,omitempty"`
10804
10805	// WebhookStatus: Specifies the status of the webhook request.
10806	WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"`
10807
10808	// ServerResponse contains the HTTP response code and headers from the
10809	// server.
10810	googleapi.ServerResponse `json:"-"`
10811
10812	// ForceSendFields is a list of field names (e.g.
10813	// "AlternativeQueryResults") to unconditionally include in API
10814	// requests. By default, fields with empty values are omitted from API
10815	// requests. However, any non-pointer, non-interface field appearing in
10816	// ForceSendFields will be sent to the server regardless of whether the
10817	// field is empty or not. This may be used to include empty fields in
10818	// Patch requests.
10819	ForceSendFields []string `json:"-"`
10820
10821	// NullFields is a list of field names (e.g. "AlternativeQueryResults")
10822	// to include in API requests with the JSON null value. By default,
10823	// fields with empty values are omitted from API requests. However, any
10824	// field with an empty value appearing in NullFields will be sent to the
10825	// server as null. It is an error if a field in this list has a
10826	// non-empty value. This may be used to include null fields in Patch
10827	// requests.
10828	NullFields []string `json:"-"`
10829}
10830
10831func (s *GoogleCloudDialogflowV2beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
10832	type NoMethod GoogleCloudDialogflowV2beta1DetectIntentResponse
10833	raw := NoMethod(*s)
10834	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10835}
10836
10837// GoogleCloudDialogflowV2beta1Document: A knowledge document to be used
10838// by a KnowledgeBase. For more information, see the knowledge base
10839// guide (https://cloud.google.com/dialogflow/docs/how/knowledge-bases).
10840// Note: The `projects.agent.knowledgeBases.documents` resource is
10841// deprecated; only use `projects.knowledgeBases.documents`.
10842type GoogleCloudDialogflowV2beta1Document struct {
10843	// Content: The raw content of the document. This field is only
10844	// permitted for EXTRACTIVE_QA and FAQ knowledge types. Note: This field
10845	// is in the process of being deprecated, please use raw_content
10846	// instead.
10847	Content string `json:"content,omitempty"`
10848
10849	// ContentUri: The URI where the file content is located. For documents
10850	// stored in Google Cloud Storage, these URIs must have the form
10851	// `gs:///`. NOTE: External URLs must correspond to public webpages,
10852	// i.e., they must be indexed by Google Search. In particular, URLs for
10853	// showing documents in Google Cloud Storage (i.e. the URL in your
10854	// browser) are not supported. Instead use the `gs://` format URI
10855	// described above.
10856	ContentUri string `json:"contentUri,omitempty"`
10857
10858	// DisplayName: Required. The display name of the document. The name
10859	// must be 1024 bytes or less; otherwise, the creation request fails.
10860	DisplayName string `json:"displayName,omitempty"`
10861
10862	// EnableAutoReload: Optional. If true, we try to automatically reload
10863	// the document every day (at a time picked by the system). If false or
10864	// unspecified, we don't try to automatically reload the document.
10865	// Currently you can only enable automatic reload for documents sourced
10866	// from a public url, see `source` field for the source types. Reload
10867	// status can be tracked in `latest_reload_status`. If a reload fails,
10868	// we will keep the document unchanged. If a reload fails with internal
10869	// errors, the system will try to reload the document on the next day.
10870	// If a reload fails with non-retriable errors (e.g. PERMISION_DENIED),
10871	// the system will not try to reload the document anymore. You need to
10872	// manually reload the document successfully by calling `ReloadDocument`
10873	// and clear the errors.
10874	EnableAutoReload bool `json:"enableAutoReload,omitempty"`
10875
10876	// KnowledgeTypes: Required. The knowledge type of document content.
10877	//
10878	// Possible values:
10879	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or
10880	// arbitrary.
10881	//   "FAQ" - The document content contains question and answer pairs as
10882	// either HTML or CSV. Typical FAQ HTML formats are parsed accurately,
10883	// but unusual formats may fail to be parsed. CSV must have questions in
10884	// the first column and answers in the second, with no header. Because
10885	// of this explicit format, they are always parsed accurately.
10886	//   "EXTRACTIVE_QA" - Documents for which unstructured text is
10887	// extracted and used for question answering.
10888	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can
10889	// be used for query results. Only for Contact Center Solutions on
10890	// Dialogflow.
10891	//   "SMART_REPLY" - The legacy enum for agent-facing smart reply
10892	// feature.
10893	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
10894
10895	// LatestReloadStatus: Output only. The time and status of the latest
10896	// reload. This reload may have been triggered automatically or manually
10897	// and may not have succeeded.
10898	LatestReloadStatus *GoogleCloudDialogflowV2beta1DocumentReloadStatus `json:"latestReloadStatus,omitempty"`
10899
10900	// Metadata: Optional. Metadata for the document. The metadata supports
10901	// arbitrary key-value pairs. Suggested use cases include storing a
10902	// document's title, an external URL distinct from the document's
10903	// content_uri, etc. The max size of a `key` or a `value` of the
10904	// metadata is 1024 bytes.
10905	Metadata map[string]string `json:"metadata,omitempty"`
10906
10907	// MimeType: Required. The MIME type of this document.
10908	MimeType string `json:"mimeType,omitempty"`
10909
10910	// Name: Optional. The document resource name. The name must be empty
10911	// when creating a document. Format:
10912	// `projects//locations//knowledgeBases//documents/`.
10913	Name string `json:"name,omitempty"`
10914
10915	// RawContent: The raw content of the document. This field is only
10916	// permitted for EXTRACTIVE_QA and FAQ knowledge types.
10917	RawContent string `json:"rawContent,omitempty"`
10918
10919	// ServerResponse contains the HTTP response code and headers from the
10920	// server.
10921	googleapi.ServerResponse `json:"-"`
10922
10923	// ForceSendFields is a list of field names (e.g. "Content") to
10924	// unconditionally include in API requests. By default, fields with
10925	// empty values are omitted from API requests. However, any non-pointer,
10926	// non-interface field appearing in ForceSendFields will be sent to the
10927	// server regardless of whether the field is empty or not. This may be
10928	// used to include empty fields in Patch requests.
10929	ForceSendFields []string `json:"-"`
10930
10931	// NullFields is a list of field names (e.g. "Content") to include in
10932	// API requests with the JSON null value. By default, fields with empty
10933	// values are omitted from API requests. However, any field with an
10934	// empty value appearing in NullFields will be sent to the server as
10935	// null. It is an error if a field in this list has a non-empty value.
10936	// This may be used to include null fields in Patch requests.
10937	NullFields []string `json:"-"`
10938}
10939
10940func (s *GoogleCloudDialogflowV2beta1Document) MarshalJSON() ([]byte, error) {
10941	type NoMethod GoogleCloudDialogflowV2beta1Document
10942	raw := NoMethod(*s)
10943	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10944}
10945
10946// GoogleCloudDialogflowV2beta1DocumentReloadStatus: The status of a
10947// reload attempt.
10948type GoogleCloudDialogflowV2beta1DocumentReloadStatus struct {
10949	// Status: Output only. The status of a reload attempt or the initial
10950	// load.
10951	Status *GoogleRpcStatus `json:"status,omitempty"`
10952
10953	// Time: Output only. The time of a reload attempt. This reload may have
10954	// been triggered automatically or manually and may not have succeeded.
10955	Time string `json:"time,omitempty"`
10956
10957	// ForceSendFields is a list of field names (e.g. "Status") to
10958	// unconditionally include in API requests. By default, fields with
10959	// empty values are omitted from API requests. However, any non-pointer,
10960	// non-interface field appearing in ForceSendFields will be sent to the
10961	// server regardless of whether the field is empty or not. This may be
10962	// used to include empty fields in Patch requests.
10963	ForceSendFields []string `json:"-"`
10964
10965	// NullFields is a list of field names (e.g. "Status") to include in API
10966	// requests with the JSON null value. By default, fields with empty
10967	// values are omitted from API requests. However, any field with an
10968	// empty value appearing in NullFields will be sent to the server as
10969	// null. It is an error if a field in this list has a non-empty value.
10970	// This may be used to include null fields in Patch requests.
10971	NullFields []string `json:"-"`
10972}
10973
10974func (s *GoogleCloudDialogflowV2beta1DocumentReloadStatus) MarshalJSON() ([]byte, error) {
10975	type NoMethod GoogleCloudDialogflowV2beta1DocumentReloadStatus
10976	raw := NoMethod(*s)
10977	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10978}
10979
10980// GoogleCloudDialogflowV2beta1DtmfParameters: The message in the
10981// response that indicates the parameters of DTMF.
10982type GoogleCloudDialogflowV2beta1DtmfParameters struct {
10983	// AcceptsDtmfInput: Indicates whether DTMF input can be handled in the
10984	// next request.
10985	AcceptsDtmfInput bool `json:"acceptsDtmfInput,omitempty"`
10986
10987	// ForceSendFields is a list of field names (e.g. "AcceptsDtmfInput") to
10988	// unconditionally include in API requests. By default, fields with
10989	// empty values are omitted from API requests. However, any non-pointer,
10990	// non-interface field appearing in ForceSendFields will be sent to the
10991	// server regardless of whether the field is empty or not. This may be
10992	// used to include empty fields in Patch requests.
10993	ForceSendFields []string `json:"-"`
10994
10995	// NullFields is a list of field names (e.g. "AcceptsDtmfInput") to
10996	// include in API requests with the JSON null value. By default, fields
10997	// with empty values are omitted from API requests. However, any field
10998	// with an empty value appearing in NullFields will be sent to the
10999	// server as null. It is an error if a field in this list has a
11000	// non-empty value. This may be used to include null fields in Patch
11001	// requests.
11002	NullFields []string `json:"-"`
11003}
11004
11005func (s *GoogleCloudDialogflowV2beta1DtmfParameters) MarshalJSON() ([]byte, error) {
11006	type NoMethod GoogleCloudDialogflowV2beta1DtmfParameters
11007	raw := NoMethod(*s)
11008	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11009}
11010
11011// GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a
11012// type, called the entity type, which dictates exactly how data from an
11013// end-user expression is extracted. Dialogflow provides predefined
11014// system entities that can match many common types of data. For
11015// example, there are system entities for matching dates, times, colors,
11016// email addresses, and so on. You can also create your own custom
11017// entities for matching custom data. For example, you could define a
11018// vegetable entity that can match the types of vegetables available for
11019// purchase with a grocery store agent. For more information, see the
11020// Entity guide
11021// (https://cloud.google.com/dialogflow/docs/entities-overview).
11022type GoogleCloudDialogflowV2beta1EntityType struct {
11023	// AutoExpansionMode: Optional. Indicates whether the entity type can be
11024	// automatically expanded.
11025	//
11026	// Possible values:
11027	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
11028	// entity.
11029	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
11030	// that have not been explicitly listed in the entity.
11031	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
11032
11033	// DisplayName: Required. The name of the entity type.
11034	DisplayName string `json:"displayName,omitempty"`
11035
11036	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction
11037	// during classification.
11038	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
11039
11040	// Entities: Optional. The collection of entity entries associated with
11041	// the entity type.
11042	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
11043
11044	// Kind: Required. Indicates the kind of entity type.
11045	//
11046	// Possible values:
11047	//   "KIND_UNSPECIFIED" - Not specified. This value should be never
11048	// used.
11049	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms
11050	// to a reference value.
11051	//   "KIND_LIST" - List entity types contain a set of entries that do
11052	// not map to reference values. However, list entity types can contain
11053	// references to other entity types (with or without aliases).
11054	//   "KIND_REGEXP" - Regexp entity types allow to specify regular
11055	// expressions in entries values.
11056	Kind string `json:"kind,omitempty"`
11057
11058	// Name: The unique identifier of the entity type. Required for
11059	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
11060	// methods. Supported formats: - `projects//agent/entityTypes/` -
11061	// `projects//locations//agent/entityTypes/`
11062	Name string `json:"name,omitempty"`
11063
11064	// ServerResponse contains the HTTP response code and headers from the
11065	// server.
11066	googleapi.ServerResponse `json:"-"`
11067
11068	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
11069	// to unconditionally include in API requests. By default, fields with
11070	// empty values are omitted from API requests. However, any non-pointer,
11071	// non-interface field appearing in ForceSendFields will be sent to the
11072	// server regardless of whether the field is empty or not. This may be
11073	// used to include empty fields in Patch requests.
11074	ForceSendFields []string `json:"-"`
11075
11076	// NullFields is a list of field names (e.g. "AutoExpansionMode") to
11077	// include in API requests with the JSON null value. By default, fields
11078	// with empty values are omitted from API requests. However, any field
11079	// with an empty value appearing in NullFields will be sent to the
11080	// server as null. It is an error if a field in this list has a
11081	// non-empty value. This may be used to include null fields in Patch
11082	// requests.
11083	NullFields []string `json:"-"`
11084}
11085
11086func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
11087	type NoMethod GoogleCloudDialogflowV2beta1EntityType
11088	raw := NoMethod(*s)
11089	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11090}
11091
11092// GoogleCloudDialogflowV2beta1EntityTypeBatch: This message is a
11093// wrapper around a collection of entity types.
11094type GoogleCloudDialogflowV2beta1EntityTypeBatch struct {
11095	// EntityTypes: A collection of entity types.
11096	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
11097
11098	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
11099	// unconditionally include in API requests. By default, fields with
11100	// empty values are omitted from API requests. However, any non-pointer,
11101	// non-interface field appearing in ForceSendFields will be sent to the
11102	// server regardless of whether the field is empty or not. This may be
11103	// used to include empty fields in Patch requests.
11104	ForceSendFields []string `json:"-"`
11105
11106	// NullFields is a list of field names (e.g. "EntityTypes") to include
11107	// in API requests with the JSON null value. By default, fields with
11108	// empty values are omitted from API requests. However, any field with
11109	// an empty value appearing in NullFields will be sent to the server as
11110	// null. It is an error if a field in this list has a non-empty value.
11111	// This may be used to include null fields in Patch requests.
11112	NullFields []string `json:"-"`
11113}
11114
11115func (s *GoogleCloudDialogflowV2beta1EntityTypeBatch) MarshalJSON() ([]byte, error) {
11116	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeBatch
11117	raw := NoMethod(*s)
11118	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11119}
11120
11121// GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for
11122// an associated entity type.
11123type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
11124	// Synonyms: Required. A collection of value synonyms. For example, if
11125	// the entity type is *vegetable*, and `value` is *scallions*, a synonym
11126	// could be *green onions*. For `KIND_LIST` entity types: * This
11127	// collection must contain exactly one synonym equal to `value`.
11128	Synonyms []string `json:"synonyms,omitempty"`
11129
11130	// Value: Required. The primary value associated with this entity entry.
11131	// For example, if the entity type is *vegetable*, the value could be
11132	// *scallions*. For `KIND_MAP` entity types: * A reference value to be
11133	// used in place of synonyms. For `KIND_LIST` entity types: * A string
11134	// that can contain references to other entity types (with or without
11135	// aliases).
11136	Value string `json:"value,omitempty"`
11137
11138	// ForceSendFields is a list of field names (e.g. "Synonyms") to
11139	// unconditionally include in API requests. By default, fields with
11140	// empty values are omitted from API requests. However, any non-pointer,
11141	// non-interface field appearing in ForceSendFields will be sent to the
11142	// server regardless of whether the field is empty or not. This may be
11143	// used to include empty fields in Patch requests.
11144	ForceSendFields []string `json:"-"`
11145
11146	// NullFields is a list of field names (e.g. "Synonyms") to include in
11147	// API requests with the JSON null value. By default, fields with empty
11148	// values are omitted from API requests. However, any field with an
11149	// empty value appearing in NullFields will be sent to the server as
11150	// null. It is an error if a field in this list has a non-empty value.
11151	// This may be used to include null fields in Patch requests.
11152	NullFields []string `json:"-"`
11153}
11154
11155func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
11156	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
11157	raw := NoMethod(*s)
11158	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11159}
11160
11161// GoogleCloudDialogflowV2beta1Environment: You can create multiple
11162// versions of your agent and publish them to separate environments.
11163// When you edit an agent, you are editing the draft agent. At any
11164// point, you can save the draft agent as an agent version, which is an
11165// immutable snapshot of your agent. When you save the draft agent, it
11166// is published to the default environment. When you create agent
11167// versions, you can publish them to custom environments. You can create
11168// a variety of custom environments for: - testing - development -
11169// production - etc. For more information, see the versions and
11170// environments guide
11171// (https://cloud.google.com/dialogflow/docs/agents-versions).
11172type GoogleCloudDialogflowV2beta1Environment struct {
11173	// AgentVersion: Optional. The agent version loaded into this
11174	// environment. Supported formats: - `projects//agent/versions/` -
11175	// `projects//locations//agent/versions/`
11176	AgentVersion string `json:"agentVersion,omitempty"`
11177
11178	// Description: Optional. The developer-provided description for this
11179	// environment. The maximum length is 500 characters. If exceeded, the
11180	// request is rejected.
11181	Description string `json:"description,omitempty"`
11182
11183	// Fulfillment: Optional. The fulfillment settings to use for this
11184	// environment.
11185	Fulfillment *GoogleCloudDialogflowV2beta1Fulfillment `json:"fulfillment,omitempty"`
11186
11187	// Name: Output only. The unique identifier of this agent environment.
11188	// Supported formats: - `projects//agent/environments/` -
11189	// `projects//locations//agent/environments/`
11190	Name string `json:"name,omitempty"`
11191
11192	// State: Output only. The state of this environment. This field is
11193	// read-only, i.e., it cannot be set by create and update methods.
11194	//
11195	// Possible values:
11196	//   "STATE_UNSPECIFIED" - Not specified. This value is not used.
11197	//   "STOPPED" - Stopped.
11198	//   "LOADING" - Loading.
11199	//   "RUNNING" - Running.
11200	State string `json:"state,omitempty"`
11201
11202	// TextToSpeechSettings: Optional. Text to speech settings for this
11203	// environment.
11204	TextToSpeechSettings *GoogleCloudDialogflowV2beta1TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
11205
11206	// UpdateTime: Output only. The last update time of this environment.
11207	// This field is read-only, i.e., it cannot be set by create and update
11208	// methods.
11209	UpdateTime string `json:"updateTime,omitempty"`
11210
11211	// ServerResponse contains the HTTP response code and headers from the
11212	// server.
11213	googleapi.ServerResponse `json:"-"`
11214
11215	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
11216	// unconditionally include in API requests. By default, fields with
11217	// empty values are omitted from API requests. However, any non-pointer,
11218	// non-interface field appearing in ForceSendFields will be sent to the
11219	// server regardless of whether the field is empty or not. This may be
11220	// used to include empty fields in Patch requests.
11221	ForceSendFields []string `json:"-"`
11222
11223	// NullFields is a list of field names (e.g. "AgentVersion") to include
11224	// in API requests with the JSON null value. By default, fields with
11225	// empty values are omitted from API requests. However, any field with
11226	// an empty value appearing in NullFields will be sent to the server as
11227	// null. It is an error if a field in this list has a non-empty value.
11228	// This may be used to include null fields in Patch requests.
11229	NullFields []string `json:"-"`
11230}
11231
11232func (s *GoogleCloudDialogflowV2beta1Environment) MarshalJSON() ([]byte, error) {
11233	type NoMethod GoogleCloudDialogflowV2beta1Environment
11234	raw := NoMethod(*s)
11235	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11236}
11237
11238// GoogleCloudDialogflowV2beta1EnvironmentHistory: The response message
11239// for Environments.GetEnvironmentHistory.
11240type GoogleCloudDialogflowV2beta1EnvironmentHistory struct {
11241	// Entries: Output only. The list of agent environments. There will be a
11242	// maximum number of items returned based on the page_size field in the
11243	// request.
11244	Entries []*GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry `json:"entries,omitempty"`
11245
11246	// NextPageToken: Output only. Token to retrieve the next page of
11247	// results, or empty if there are no more results in the list.
11248	NextPageToken string `json:"nextPageToken,omitempty"`
11249
11250	// Parent: Output only. The name of the environment this history is for.
11251	// Supported formats: - `projects//agent/environments/` -
11252	// `projects//locations//agent/environments/`
11253	Parent string `json:"parent,omitempty"`
11254
11255	// ServerResponse contains the HTTP response code and headers from the
11256	// server.
11257	googleapi.ServerResponse `json:"-"`
11258
11259	// ForceSendFields is a list of field names (e.g. "Entries") to
11260	// unconditionally include in API requests. By default, fields with
11261	// empty values are omitted from API requests. However, any non-pointer,
11262	// non-interface field appearing in ForceSendFields will be sent to the
11263	// server regardless of whether the field is empty or not. This may be
11264	// used to include empty fields in Patch requests.
11265	ForceSendFields []string `json:"-"`
11266
11267	// NullFields is a list of field names (e.g. "Entries") to include in
11268	// API requests with the JSON null value. By default, fields with empty
11269	// values are omitted from API requests. However, any field with an
11270	// empty value appearing in NullFields will be sent to the server as
11271	// null. It is an error if a field in this list has a non-empty value.
11272	// This may be used to include null fields in Patch requests.
11273	NullFields []string `json:"-"`
11274}
11275
11276func (s *GoogleCloudDialogflowV2beta1EnvironmentHistory) MarshalJSON() ([]byte, error) {
11277	type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistory
11278	raw := NoMethod(*s)
11279	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11280}
11281
11282// GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry: Represents an
11283// environment history entry.
11284type GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry struct {
11285	// AgentVersion: The agent version loaded into this environment history
11286	// entry.
11287	AgentVersion string `json:"agentVersion,omitempty"`
11288
11289	// CreateTime: The creation time of this environment history entry.
11290	CreateTime string `json:"createTime,omitempty"`
11291
11292	// Description: The developer-provided description for this environment
11293	// history entry.
11294	Description string `json:"description,omitempty"`
11295
11296	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
11297	// unconditionally include in API requests. By default, fields with
11298	// empty values are omitted from API requests. However, any non-pointer,
11299	// non-interface field appearing in ForceSendFields will be sent to the
11300	// server regardless of whether the field is empty or not. This may be
11301	// used to include empty fields in Patch requests.
11302	ForceSendFields []string `json:"-"`
11303
11304	// NullFields is a list of field names (e.g. "AgentVersion") to include
11305	// in API requests with the JSON null value. By default, fields with
11306	// empty values are omitted from API requests. However, any field with
11307	// an empty value appearing in NullFields will be sent to the server as
11308	// null. It is an error if a field in this list has a non-empty value.
11309	// This may be used to include null fields in Patch requests.
11310	NullFields []string `json:"-"`
11311}
11312
11313func (s *GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry) MarshalJSON() ([]byte, error) {
11314	type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
11315	raw := NoMethod(*s)
11316	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11317}
11318
11319// GoogleCloudDialogflowV2beta1EventInput: Events allow for matching
11320// intents by event name instead of the natural language input. For
11321// instance, input `` can trigger a personalized welcome response. The
11322// parameter `name` may be used by the agent in the response: "Hello
11323// #welcome_event.name! What can I do for you today?".
11324type GoogleCloudDialogflowV2beta1EventInput struct {
11325	// LanguageCode: Required. The language of this query. See Language
11326	// Support (https://cloud.google.com/dialogflow/docs/reference/language)
11327	// for a list of the currently supported language codes. Note that
11328	// queries in the same session do not necessarily need to specify the
11329	// same language.
11330	LanguageCode string `json:"languageCode,omitempty"`
11331
11332	// Name: Required. The unique identifier of the event.
11333	Name string `json:"name,omitempty"`
11334
11335	// Parameters: The collection of parameters associated with the event.
11336	// Depending on your protocol or client library language, this is a map,
11337	// associative array, symbol table, dictionary, or JSON object composed
11338	// of a collection of (MapKey, MapValue) pairs: - MapKey type: string -
11339	// MapKey value: parameter name - MapValue type: - If parameter's entity
11340	// type is a composite entity: map - Else: depending on parameter value
11341	// type, could be one of string, number, boolean, null, list or map -
11342	// MapValue value: - If parameter's entity type is a composite entity:
11343	// map from composite entity property names to property values - Else:
11344	// parameter value
11345	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
11346
11347	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
11348	// unconditionally include in API requests. By default, fields with
11349	// empty values are omitted from API requests. However, any non-pointer,
11350	// non-interface field appearing in ForceSendFields will be sent to the
11351	// server regardless of whether the field is empty or not. This may be
11352	// used to include empty fields in Patch requests.
11353	ForceSendFields []string `json:"-"`
11354
11355	// NullFields is a list of field names (e.g. "LanguageCode") to include
11356	// in API requests with the JSON null value. By default, fields with
11357	// empty values are omitted from API requests. However, any field with
11358	// an empty value appearing in NullFields will be sent to the server as
11359	// null. It is an error if a field in this list has a non-empty value.
11360	// This may be used to include null fields in Patch requests.
11361	NullFields []string `json:"-"`
11362}
11363
11364func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
11365	type NoMethod GoogleCloudDialogflowV2beta1EventInput
11366	raw := NoMethod(*s)
11367	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11368}
11369
11370// GoogleCloudDialogflowV2beta1ExportAgentRequest: The request message
11371// for Agents.ExportAgent.
11372type GoogleCloudDialogflowV2beta1ExportAgentRequest struct {
11373	// AgentUri: Optional. The Google Cloud Storage
11374	// (https://cloud.google.com/storage/docs/) URI to export the agent to.
11375	// The format of this URI must be `gs:///`. If left unspecified, the
11376	// serialized agent is returned inline.
11377	AgentUri string `json:"agentUri,omitempty"`
11378
11379	// ForceSendFields is a list of field names (e.g. "AgentUri") to
11380	// unconditionally include in API requests. By default, fields with
11381	// empty values are omitted from API requests. However, any non-pointer,
11382	// non-interface field appearing in ForceSendFields will be sent to the
11383	// server regardless of whether the field is empty or not. This may be
11384	// used to include empty fields in Patch requests.
11385	ForceSendFields []string `json:"-"`
11386
11387	// NullFields is a list of field names (e.g. "AgentUri") to include in
11388	// API requests with the JSON null value. By default, fields with empty
11389	// values are omitted from API requests. However, any field with an
11390	// empty value appearing in NullFields will be sent to the server as
11391	// null. It is an error if a field in this list has a non-empty value.
11392	// This may be used to include null fields in Patch requests.
11393	NullFields []string `json:"-"`
11394}
11395
11396func (s *GoogleCloudDialogflowV2beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
11397	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentRequest
11398	raw := NoMethod(*s)
11399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11400}
11401
11402// GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message
11403// for Agents.ExportAgent.
11404type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
11405	// AgentContent: Zip compressed raw byte content for agent.
11406	AgentContent string `json:"agentContent,omitempty"`
11407
11408	// AgentUri: The URI to a file containing the exported agent. This field
11409	// is populated only if `agent_uri` is specified in
11410	// `ExportAgentRequest`.
11411	AgentUri string `json:"agentUri,omitempty"`
11412
11413	// ForceSendFields is a list of field names (e.g. "AgentContent") to
11414	// unconditionally include in API requests. By default, fields with
11415	// empty values are omitted from API requests. However, any non-pointer,
11416	// non-interface field appearing in ForceSendFields will be sent to the
11417	// server regardless of whether the field is empty or not. This may be
11418	// used to include empty fields in Patch requests.
11419	ForceSendFields []string `json:"-"`
11420
11421	// NullFields is a list of field names (e.g. "AgentContent") to include
11422	// in API requests with the JSON null value. By default, fields with
11423	// empty values are omitted from API requests. However, any field with
11424	// an empty value appearing in NullFields will be sent to the server as
11425	// null. It is an error if a field in this list has a non-empty value.
11426	// This may be used to include null fields in Patch requests.
11427	NullFields []string `json:"-"`
11428}
11429
11430func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
11431	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
11432	raw := NoMethod(*s)
11433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11434}
11435
11436// GoogleCloudDialogflowV2beta1FaqAnswer: Represents answer from
11437// "frequently asked questions".
11438type GoogleCloudDialogflowV2beta1FaqAnswer struct {
11439	// Answer: The piece of text from the `source` knowledge base document.
11440	Answer string `json:"answer,omitempty"`
11441
11442	// AnswerRecord: The name of answer record, in the format of
11443	// "projects//locations//answerRecords/"
11444	AnswerRecord string `json:"answerRecord,omitempty"`
11445
11446	// Confidence: The system's confidence score that this Knowledge answer
11447	// is a good match for this conversational query, range from 0.0
11448	// (completely uncertain) to 1.0 (completely certain).
11449	Confidence float64 `json:"confidence,omitempty"`
11450
11451	// Metadata: A map that contains metadata about the answer and the
11452	// document from which it originates.
11453	Metadata map[string]string `json:"metadata,omitempty"`
11454
11455	// Question: The corresponding FAQ question.
11456	Question string `json:"question,omitempty"`
11457
11458	// Source: Indicates which Knowledge Document this answer was extracted
11459	// from. Format:
11460	// `projects//locations//agent/knowledgeBases//documents/`.
11461	Source string `json:"source,omitempty"`
11462
11463	// ForceSendFields is a list of field names (e.g. "Answer") to
11464	// unconditionally include in API requests. By default, fields with
11465	// empty values are omitted from API requests. However, any non-pointer,
11466	// non-interface field appearing in ForceSendFields will be sent to the
11467	// server regardless of whether the field is empty or not. This may be
11468	// used to include empty fields in Patch requests.
11469	ForceSendFields []string `json:"-"`
11470
11471	// NullFields is a list of field names (e.g. "Answer") to include in API
11472	// requests with the JSON null value. By default, fields with empty
11473	// values are omitted from API requests. However, any field with an
11474	// empty value appearing in NullFields will be sent to the server as
11475	// null. It is an error if a field in this list has a non-empty value.
11476	// This may be used to include null fields in Patch requests.
11477	NullFields []string `json:"-"`
11478}
11479
11480func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
11481	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
11482	raw := NoMethod(*s)
11483	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11484}
11485
11486func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
11487	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
11488	var s1 struct {
11489		Confidence gensupport.JSONFloat64 `json:"confidence"`
11490		*NoMethod
11491	}
11492	s1.NoMethod = (*NoMethod)(s)
11493	if err := json.Unmarshal(data, &s1); err != nil {
11494		return err
11495	}
11496	s.Confidence = float64(s1.Confidence)
11497	return nil
11498}
11499
11500// GoogleCloudDialogflowV2beta1Fulfillment: By default, your agent
11501// responds to a matched intent with a static response. As an
11502// alternative, you can provide a more dynamic response by using
11503// fulfillment. When you enable fulfillment for an intent, Dialogflow
11504// responds to that intent by calling a service that you define. For
11505// example, if an end-user wants to schedule a haircut on Friday, your
11506// service can check your database and respond to the end-user with
11507// availability information for Friday. For more information, see the
11508// fulfillment guide
11509// (https://cloud.google.com/dialogflow/docs/fulfillment-overview).
11510type GoogleCloudDialogflowV2beta1Fulfillment struct {
11511	// DisplayName: The human-readable name of the fulfillment, unique
11512	// within the agent. This field is not used for Fulfillment in an
11513	// Environment.
11514	DisplayName string `json:"displayName,omitempty"`
11515
11516	// Enabled: Whether fulfillment is enabled.
11517	Enabled bool `json:"enabled,omitempty"`
11518
11519	// Features: The field defines whether the fulfillment is enabled for
11520	// certain features.
11521	Features []*GoogleCloudDialogflowV2beta1FulfillmentFeature `json:"features,omitempty"`
11522
11523	// GenericWebService: Configuration for a generic web service.
11524	GenericWebService *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService `json:"genericWebService,omitempty"`
11525
11526	// Name: Required. The unique identifier of the fulfillment. Supported
11527	// formats: - `projects//agent/fulfillment` -
11528	// `projects//locations//agent/fulfillment` This field is not used for
11529	// Fulfillment in an Environment.
11530	Name string `json:"name,omitempty"`
11531
11532	// ServerResponse contains the HTTP response code and headers from the
11533	// server.
11534	googleapi.ServerResponse `json:"-"`
11535
11536	// ForceSendFields is a list of field names (e.g. "DisplayName") to
11537	// unconditionally include in API requests. By default, fields with
11538	// empty values are omitted from API requests. However, any non-pointer,
11539	// non-interface field appearing in ForceSendFields will be sent to the
11540	// server regardless of whether the field is empty or not. This may be
11541	// used to include empty fields in Patch requests.
11542	ForceSendFields []string `json:"-"`
11543
11544	// NullFields is a list of field names (e.g. "DisplayName") to include
11545	// in API requests with the JSON null value. By default, fields with
11546	// empty values are omitted from API requests. However, any field with
11547	// an empty value appearing in NullFields will be sent to the server as
11548	// null. It is an error if a field in this list has a non-empty value.
11549	// This may be used to include null fields in Patch requests.
11550	NullFields []string `json:"-"`
11551}
11552
11553func (s *GoogleCloudDialogflowV2beta1Fulfillment) MarshalJSON() ([]byte, error) {
11554	type NoMethod GoogleCloudDialogflowV2beta1Fulfillment
11555	raw := NoMethod(*s)
11556	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11557}
11558
11559// GoogleCloudDialogflowV2beta1FulfillmentFeature: Whether fulfillment
11560// is enabled for the specific feature.
11561type GoogleCloudDialogflowV2beta1FulfillmentFeature struct {
11562	// Type: The type of the feature that enabled for fulfillment.
11563	//
11564	// Possible values:
11565	//   "TYPE_UNSPECIFIED" - Feature type not specified.
11566	//   "SMALLTALK" - Fulfillment is enabled for SmallTalk.
11567	Type string `json:"type,omitempty"`
11568
11569	// ForceSendFields is a list of field names (e.g. "Type") to
11570	// unconditionally include in API requests. By default, fields with
11571	// empty values are omitted from API requests. However, any non-pointer,
11572	// non-interface field appearing in ForceSendFields will be sent to the
11573	// server regardless of whether the field is empty or not. This may be
11574	// used to include empty fields in Patch requests.
11575	ForceSendFields []string `json:"-"`
11576
11577	// NullFields is a list of field names (e.g. "Type") to include in API
11578	// requests with the JSON null value. By default, fields with empty
11579	// values are omitted from API requests. However, any field with an
11580	// empty value appearing in NullFields will be sent to the server as
11581	// null. It is an error if a field in this list has a non-empty value.
11582	// This may be used to include null fields in Patch requests.
11583	NullFields []string `json:"-"`
11584}
11585
11586func (s *GoogleCloudDialogflowV2beta1FulfillmentFeature) MarshalJSON() ([]byte, error) {
11587	type NoMethod GoogleCloudDialogflowV2beta1FulfillmentFeature
11588	raw := NoMethod(*s)
11589	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11590}
11591
11592// GoogleCloudDialogflowV2beta1FulfillmentGenericWebService: Represents
11593// configuration for a generic web service. Dialogflow supports two
11594// mechanisms for authentications: - Basic authentication with username
11595// and password. - Authentication with additional authentication
11596// headers. More information could be found at:
11597// https://cloud.google.com/dialogflow/docs/fulfillment-configure.
11598type GoogleCloudDialogflowV2beta1FulfillmentGenericWebService struct {
11599	// IsCloudFunction: Optional. Indicates if generic web service is
11600	// created through Cloud Functions integration. Defaults to false.
11601	// is_cloud_function is deprecated. Cloud functions can be configured by
11602	// its uri as a regular web service now.
11603	IsCloudFunction bool `json:"isCloudFunction,omitempty"`
11604
11605	// Password: The password for HTTP Basic authentication.
11606	Password string `json:"password,omitempty"`
11607
11608	// RequestHeaders: The HTTP request headers to send together with
11609	// fulfillment requests.
11610	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
11611
11612	// Uri: Required. The fulfillment URI for receiving POST requests. It
11613	// must use https protocol.
11614	Uri string `json:"uri,omitempty"`
11615
11616	// Username: The user name for HTTP Basic authentication.
11617	Username string `json:"username,omitempty"`
11618
11619	// ForceSendFields is a list of field names (e.g. "IsCloudFunction") to
11620	// unconditionally include in API requests. By default, fields with
11621	// empty values are omitted from API requests. However, any non-pointer,
11622	// non-interface field appearing in ForceSendFields will be sent to the
11623	// server regardless of whether the field is empty or not. This may be
11624	// used to include empty fields in Patch requests.
11625	ForceSendFields []string `json:"-"`
11626
11627	// NullFields is a list of field names (e.g. "IsCloudFunction") to
11628	// include in API requests with the JSON null value. By default, fields
11629	// with empty values are omitted from API requests. However, any field
11630	// with an empty value appearing in NullFields will be sent to the
11631	// server as null. It is an error if a field in this list has a
11632	// non-empty value. This may be used to include null fields in Patch
11633	// requests.
11634	NullFields []string `json:"-"`
11635}
11636
11637func (s *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService) MarshalJSON() ([]byte, error) {
11638	type NoMethod GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
11639	raw := NoMethod(*s)
11640	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11641}
11642
11643// GoogleCloudDialogflowV2beta1GcsSource: Google Cloud Storage location
11644// for single input.
11645type GoogleCloudDialogflowV2beta1GcsSource struct {
11646	// Uri: Required. The Google Cloud Storage URIs for the inputs. A URI is
11647	// of the form: gs://bucket/object-prefix-or-name Whether a prefix or
11648	// name is used depends on the use case.
11649	Uri string `json:"uri,omitempty"`
11650
11651	// ForceSendFields is a list of field names (e.g. "Uri") 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. "Uri") to include in API
11660	// requests with the JSON null value. By default, fields with empty
11661	// values are omitted from API requests. However, any field with an
11662	// 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 *GoogleCloudDialogflowV2beta1GcsSource) MarshalJSON() ([]byte, error) {
11669	type NoMethod GoogleCloudDialogflowV2beta1GcsSource
11670	raw := NoMethod(*s)
11671	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11672}
11673
11674// GoogleCloudDialogflowV2beta1GcsSources: Google Cloud Storage
11675// locations for the inputs.
11676type GoogleCloudDialogflowV2beta1GcsSources struct {
11677	// Uris: Required. Google Cloud Storage URIs for the inputs. A URI is of
11678	// the form: gs://bucket/object-prefix-or-name Whether a prefix or name
11679	// is used depends on the use case.
11680	Uris []string `json:"uris,omitempty"`
11681
11682	// ForceSendFields is a list of field names (e.g. "Uris") to
11683	// unconditionally include in API requests. By default, fields with
11684	// empty values are omitted from API requests. However, any non-pointer,
11685	// non-interface field appearing in ForceSendFields will be sent to the
11686	// server regardless of whether the field is empty or not. This may be
11687	// used to include empty fields in Patch requests.
11688	ForceSendFields []string `json:"-"`
11689
11690	// NullFields is a list of field names (e.g. "Uris") to include in API
11691	// requests with the JSON null value. By default, fields with empty
11692	// values are omitted from API requests. However, any field with an
11693	// empty value appearing in NullFields will be sent to the server as
11694	// null. It is an error if a field in this list has a non-empty value.
11695	// This may be used to include null fields in Patch requests.
11696	NullFields []string `json:"-"`
11697}
11698
11699func (s *GoogleCloudDialogflowV2beta1GcsSources) MarshalJSON() ([]byte, error) {
11700	type NoMethod GoogleCloudDialogflowV2beta1GcsSources
11701	raw := NoMethod(*s)
11702	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11703}
11704
11705// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig: Defines the
11706// Human Agent Assistant to connect to a conversation.
11707type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig struct {
11708	// EndUserSuggestionConfig: Configuration for agent assistance of end
11709	// user participant. Currently, this feature is not general available,
11710	// please contact Google to get access.
11711	EndUserSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"endUserSuggestionConfig,omitempty"`
11712
11713	// HumanAgentSuggestionConfig: Configuration for agent assistance of
11714	// human agent participant.
11715	HumanAgentSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"humanAgentSuggestionConfig,omitempty"`
11716
11717	// MessageAnalysisConfig: Configuration for message analysis.
11718	MessageAnalysisConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig `json:"messageAnalysisConfig,omitempty"`
11719
11720	// NotificationConfig: Pub/Sub topic on which to publish new agent
11721	// assistant events.
11722	NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
11723
11724	// ForceSendFields is a list of field names (e.g.
11725	// "EndUserSuggestionConfig") to unconditionally include in API
11726	// requests. By default, fields with empty values are omitted from API
11727	// requests. However, any non-pointer, non-interface field appearing in
11728	// ForceSendFields will be sent to the server regardless of whether the
11729	// field is empty or not. This may be used to include empty fields in
11730	// Patch requests.
11731	ForceSendFields []string `json:"-"`
11732
11733	// NullFields is a list of field names (e.g. "EndUserSuggestionConfig")
11734	// to include in API requests with the JSON null value. By default,
11735	// fields with empty values are omitted from API requests. However, any
11736	// field with an empty value appearing in NullFields will be sent to the
11737	// server as null. It is an error if a field in this list has a
11738	// non-empty value. This may be used to include null fields in Patch
11739	// requests.
11740	NullFields []string `json:"-"`
11741}
11742
11743func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig) MarshalJSON() ([]byte, error) {
11744	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
11745	raw := NoMethod(*s)
11746	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11747}
11748
11749// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModel
11750// Config: Custom conversation models used in agent assist feature.
11751// Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
11752type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig struct {
11753	// Model: Conversation model resource name. Format:
11754	// `projects//conversationModels/`.
11755	Model string `json:"model,omitempty"`
11756
11757	// ForceSendFields is a list of field names (e.g. "Model") to
11758	// unconditionally include in API requests. By default, fields with
11759	// empty values are omitted from API requests. However, any non-pointer,
11760	// non-interface field appearing in ForceSendFields will be sent to the
11761	// server regardless of whether the field is empty or not. This may be
11762	// used to include empty fields in Patch requests.
11763	ForceSendFields []string `json:"-"`
11764
11765	// NullFields is a list of field names (e.g. "Model") to include in API
11766	// requests with the JSON null value. By default, fields with empty
11767	// values are omitted from API requests. However, any field with an
11768	// empty value appearing in NullFields will be sent to the server as
11769	// null. It is an error if a field in this list has a non-empty value.
11770	// This may be used to include null fields in Patch requests.
11771	NullFields []string `json:"-"`
11772}
11773
11774func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig) MarshalJSON() ([]byte, error) {
11775	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
11776	raw := NoMethod(*s)
11777	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11778}
11779
11780// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisCo
11781// nfig: Configuration for analyses to run on each conversation message.
11782type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig struct {
11783	// EnableEntityExtraction: Enable entity extraction in conversation
11784	// messages on agent assist stage
11785	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
11786	// If unspecified, defaults to false. Currently, this feature is not
11787	// general available, please contact Google to get access.
11788	EnableEntityExtraction bool `json:"enableEntityExtraction,omitempty"`
11789
11790	// EnableSentimentAnalysis: Enable sentiment analysis in conversation
11791	// messages on agent assist stage
11792	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
11793	// If unspecified, defaults to false. Sentiment analysis inspects user
11794	// input and identifies the prevailing subjective opinion, especially to
11795	// determine a user's attitude as positive, negative, or neutral:
11796	// https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
11797	// For Participants.StreamingAnalyzeContent method, result will be in
11798	// StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For
11799	// Participants.AnalyzeContent method, result will be in
11800	// AnalyzeContentResponse.message.SentimentAnalysisResult For
11801	// Conversations.ListMessages method, result will be in
11802	// ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub
11803	// notification is configured, result will be in
11804	// ConversationEvent.new_message_payload.SentimentAnalysisResult.
11805	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
11806
11807	// ForceSendFields is a list of field names (e.g.
11808	// "EnableEntityExtraction") to unconditionally include in API requests.
11809	// By default, fields with empty values are omitted from API requests.
11810	// However, any non-pointer, non-interface field appearing in
11811	// ForceSendFields will be sent to the server regardless of whether the
11812	// field is empty or not. This may be used to include empty fields in
11813	// Patch requests.
11814	ForceSendFields []string `json:"-"`
11815
11816	// NullFields is a list of field names (e.g. "EnableEntityExtraction")
11817	// to include in API requests with the JSON null value. By default,
11818	// fields with empty values are omitted from API requests. However, any
11819	// field with an empty value appearing in NullFields will be sent to the
11820	// server as null. It is an error if a field in this list has a
11821	// non-empty value. This may be used to include null fields in Patch
11822	// requests.
11823	NullFields []string `json:"-"`
11824}
11825
11826func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig) MarshalJSON() ([]byte, error) {
11827	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
11828	raw := NoMethod(*s)
11829	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11830}
11831
11832// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig:
11833//  Detail human agent assistant config.
11834type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig struct {
11835	// FeatureConfigs: Configuration of different suggestion features. One
11836	// feature can have only one config.
11837	FeatureConfigs []*GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"featureConfigs,omitempty"`
11838
11839	// GroupSuggestionResponses: If `group_suggestion_responses` is false,
11840	// and there are multiple `feature_configs` in `event based suggestion`
11841	// or StreamingAnalyzeContent, we will try to deliver suggestions to
11842	// customers as soon as we get new suggestion. Different type of
11843	// suggestions based on the same context will be in separate Pub/Sub
11844	// event or `StreamingAnalyzeContentResponse`. If
11845	// `group_suggestion_responses` set to true. All the suggestions to the
11846	// same participant based on the same context will be grouped into a
11847	// single Pub/Sub event or StreamingAnalyzeContentResponse.
11848	GroupSuggestionResponses bool `json:"groupSuggestionResponses,omitempty"`
11849
11850	// ForceSendFields is a list of field names (e.g. "FeatureConfigs") to
11851	// unconditionally include in API requests. By default, fields with
11852	// empty values are omitted from API requests. However, any non-pointer,
11853	// non-interface field appearing in ForceSendFields will be sent to the
11854	// server regardless of whether the field is empty or not. This may be
11855	// used to include empty fields in Patch requests.
11856	ForceSendFields []string `json:"-"`
11857
11858	// NullFields is a list of field names (e.g. "FeatureConfigs") to
11859	// include in API requests with the JSON null value. By default, fields
11860	// with empty values are omitted from API requests. However, any field
11861	// with an empty value appearing in NullFields will be sent to the
11862	// server as null. It is an error if a field in this list has a
11863	// non-empty value. This may be used to include null fields in Patch
11864	// requests.
11865	NullFields []string `json:"-"`
11866}
11867
11868func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig) MarshalJSON() ([]byte, error) {
11869	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig
11870	raw := NoMethod(*s)
11871	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11872}
11873
11874// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeature
11875// Config: Config for suggestion features.
11876type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig struct {
11877	// ConversationModelConfig: Configs of custom conversation model.
11878	ConversationModelConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig `json:"conversationModelConfig,omitempty"`
11879
11880	// EnableEventBasedSuggestion: Automatically iterates all participants
11881	// and tries to compile suggestions. Supported features:
11882	// ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST.
11883	EnableEventBasedSuggestion bool `json:"enableEventBasedSuggestion,omitempty"`
11884
11885	// QueryConfig: Configs of query.
11886	QueryConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig `json:"queryConfig,omitempty"`
11887
11888	// SuggestionFeature: The suggestion feature.
11889	SuggestionFeature *GoogleCloudDialogflowV2beta1SuggestionFeature `json:"suggestionFeature,omitempty"`
11890
11891	// SuggestionTriggerSettings: Settings of suggestion trigger. Currently,
11892	// only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use this
11893	// field.
11894	SuggestionTriggerSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings `json:"suggestionTriggerSettings,omitempty"`
11895
11896	// ForceSendFields is a list of field names (e.g.
11897	// "ConversationModelConfig") to unconditionally include in API
11898	// requests. By default, fields with empty values are omitted from API
11899	// requests. However, any non-pointer, non-interface field appearing in
11900	// ForceSendFields will be sent to the server regardless of whether the
11901	// field is empty or not. This may be used to include empty fields in
11902	// Patch requests.
11903	ForceSendFields []string `json:"-"`
11904
11905	// NullFields is a list of field names (e.g. "ConversationModelConfig")
11906	// to include in API requests with the JSON null value. By default,
11907	// fields with empty values are omitted from API requests. However, any
11908	// field with an empty value appearing in NullFields will be sent to the
11909	// server as null. It is an error if a field in this list has a
11910	// non-empty value. This may be used to include null fields in Patch
11911	// requests.
11912	NullFields []string `json:"-"`
11913}
11914
11915func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig) MarshalJSON() ([]byte, error) {
11916	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig
11917	raw := NoMethod(*s)
11918	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11919}
11920
11921// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
11922// nfig: Config for suggestion query.
11923type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig struct {
11924	// ConfidenceThreshold: Confidence threshold of query result. Agent
11925	// Assist gives each suggestion a score in the range [0.0, 1.0], based
11926	// on the relevance between the suggestion and the current conversation
11927	// context. A score of 0.0 has no relevance, while a score of 1.0 has
11928	// high relevance. Only suggestions with a score greater than or equal
11929	// to the value of this field are included in the results. For a
11930	// baseline model (the default), the recommended value is in the range
11931	// [0.05, 0.1]. For a custom model, there is no recommended value. Tune
11932	// this value by starting from a very low value and slowly increasing
11933	// until you have desired results. If this field is not set, it is
11934	// default to 0.0, which means that all suggestions are returned.
11935	// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY,
11936	// SMART_COMPOSE.
11937	ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
11938
11939	// ContextFilterSettings: Determines how recent conversation context is
11940	// filtered when generating suggestions. If unspecified, no messages
11941	// will be dropped.
11942	ContextFilterSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings `json:"contextFilterSettings,omitempty"`
11943
11944	// DialogflowQuerySource: Query from Dialogflow agent. It is used by
11945	// DIALOGFLOW_ASSIST.
11946	DialogflowQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource `json:"dialogflowQuerySource,omitempty"`
11947
11948	// DocumentQuerySource: Query from knowledge base document. It is used
11949	// by: SMART_REPLY, SMART_COMPOSE.
11950	DocumentQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource `json:"documentQuerySource,omitempty"`
11951
11952	// KnowledgeBaseQuerySource: Query from knowledgebase. It is used by:
11953	// ARTICLE_SUGGESTION, FAQ.
11954	KnowledgeBaseQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource `json:"knowledgeBaseQuerySource,omitempty"`
11955
11956	// MaxResults: Maximum number of results to return. Currently, if unset,
11957	// defaults to 10. And the max number is 20.
11958	MaxResults int64 `json:"maxResults,omitempty"`
11959
11960	// ForceSendFields is a list of field names (e.g. "ConfidenceThreshold")
11961	// to unconditionally include in API requests. By default, fields with
11962	// empty values are omitted from API requests. However, any non-pointer,
11963	// non-interface field appearing in ForceSendFields will be sent to the
11964	// server regardless of whether the field is empty or not. This may be
11965	// used to include empty fields in Patch requests.
11966	ForceSendFields []string `json:"-"`
11967
11968	// NullFields is a list of field names (e.g. "ConfidenceThreshold") to
11969	// include in API requests with the JSON null value. By default, fields
11970	// with empty values are omitted from API requests. However, any field
11971	// with an empty value appearing in NullFields will be sent to the
11972	// server as null. It is an error if a field in this list has a
11973	// non-empty value. This may be used to include null fields in Patch
11974	// requests.
11975	NullFields []string `json:"-"`
11976}
11977
11978func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) MarshalJSON() ([]byte, error) {
11979	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
11980	raw := NoMethod(*s)
11981	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11982}
11983
11984func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) UnmarshalJSON(data []byte) error {
11985	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
11986	var s1 struct {
11987		ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
11988		*NoMethod
11989	}
11990	s1.NoMethod = (*NoMethod)(s)
11991	if err := json.Unmarshal(data, &s1); err != nil {
11992		return err
11993	}
11994	s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
11995	return nil
11996}
11997
11998// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
11999// nfigContextFilterSettings: Settings that determine how to filter
12000// recent conversation context when generating suggestions.
12001type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings struct {
12002	// DropHandoffMessages: If set to true, the last message from virtual
12003	// agent (hand off message) and the message before it (trigger message
12004	// of hand off) are dropped.
12005	DropHandoffMessages bool `json:"dropHandoffMessages,omitempty"`
12006
12007	// DropIvrMessages: If set to true, all messages from ivr stage are
12008	// dropped.
12009	DropIvrMessages bool `json:"dropIvrMessages,omitempty"`
12010
12011	// DropVirtualAgentMessages: If set to true, all messages from virtual
12012	// agent are dropped.
12013	DropVirtualAgentMessages bool `json:"dropVirtualAgentMessages,omitempty"`
12014
12015	// ForceSendFields is a list of field names (e.g. "DropHandoffMessages")
12016	// to unconditionally include in API requests. By default, fields with
12017	// empty values are omitted from API requests. However, any non-pointer,
12018	// non-interface field appearing in ForceSendFields will be sent to the
12019	// server regardless of whether the field is empty or not. This may be
12020	// used to include empty fields in Patch requests.
12021	ForceSendFields []string `json:"-"`
12022
12023	// NullFields is a list of field names (e.g. "DropHandoffMessages") to
12024	// include in API requests with the JSON null value. By default, fields
12025	// with empty values are omitted from API requests. However, any field
12026	// with an empty value appearing in NullFields will be sent to the
12027	// server as null. It is an error if a field in this list has a
12028	// non-empty value. This may be used to include null fields in Patch
12029	// requests.
12030	NullFields []string `json:"-"`
12031}
12032
12033func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings) MarshalJSON() ([]byte, error) {
12034	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
12035	raw := NoMethod(*s)
12036	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12037}
12038
12039// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12040// nfigDialogflowQuerySource: Dialogflow source setting. Supported
12041// feature: DIALOGFLOW_ASSIST.
12042type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource struct {
12043	// Agent: Required. The name of a dialogflow virtual agent used for end
12044	// user side intent detection and suggestion. Format:
12045	// `projects//locations//agent`. When multiple agents are allowed in the
12046	// same Dialogflow project.
12047	Agent string `json:"agent,omitempty"`
12048
12049	// ForceSendFields is a list of field names (e.g. "Agent") to
12050	// unconditionally include in API requests. By default, fields with
12051	// empty values are omitted from API requests. However, any non-pointer,
12052	// non-interface field appearing in ForceSendFields will be sent to the
12053	// server regardless of whether the field is empty or not. This may be
12054	// used to include empty fields in Patch requests.
12055	ForceSendFields []string `json:"-"`
12056
12057	// NullFields is a list of field names (e.g. "Agent") to include in API
12058	// requests with the JSON null value. By default, fields with empty
12059	// values are omitted from API requests. However, any field with an
12060	// empty value appearing in NullFields will be sent to the server as
12061	// null. It is an error if a field in this list has a non-empty value.
12062	// This may be used to include null fields in Patch requests.
12063	NullFields []string `json:"-"`
12064}
12065
12066func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource) MarshalJSON() ([]byte, error) {
12067	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
12068	raw := NoMethod(*s)
12069	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12070}
12071
12072// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12073// nfigDocumentQuerySource: Document source settings. Supported
12074// features: SMART_REPLY, SMART_COMPOSE.
12075type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource struct {
12076	// Documents: Required. Knowledge documents to query from. Format:
12077	// `projects//locations//knowledgeBases//documents/`. Currently, only
12078	// one document is supported.
12079	Documents []string `json:"documents,omitempty"`
12080
12081	// ForceSendFields is a list of field names (e.g. "Documents") to
12082	// unconditionally include in API requests. By default, fields with
12083	// empty values are omitted from API requests. However, any non-pointer,
12084	// non-interface field appearing in ForceSendFields will be sent to the
12085	// server regardless of whether the field is empty or not. This may be
12086	// used to include empty fields in Patch requests.
12087	ForceSendFields []string `json:"-"`
12088
12089	// NullFields is a list of field names (e.g. "Documents") to include in
12090	// API requests with the JSON null value. By default, fields with empty
12091	// values are omitted from API requests. However, any field with an
12092	// empty value appearing in NullFields will be sent to the server as
12093	// null. It is an error if a field in this list has a non-empty value.
12094	// This may be used to include null fields in Patch requests.
12095	NullFields []string `json:"-"`
12096}
12097
12098func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource) MarshalJSON() ([]byte, error) {
12099	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
12100	raw := NoMethod(*s)
12101	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12102}
12103
12104// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryCo
12105// nfigKnowledgeBaseQuerySource: Knowledge base source settings.
12106// Supported features: ARTICLE_SUGGESTION, FAQ.
12107type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource struct {
12108	// KnowledgeBases: Required. Knowledge bases to query. Format:
12109	// `projects//locations//knowledgeBases/`. Currently, only one knowledge
12110	// base is supported.
12111	KnowledgeBases []string `json:"knowledgeBases,omitempty"`
12112
12113	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
12114	// unconditionally include in API requests. By default, fields with
12115	// empty values are omitted from API requests. However, any non-pointer,
12116	// non-interface field appearing in ForceSendFields will be sent to the
12117	// server regardless of whether the field is empty or not. This may be
12118	// used to include empty fields in Patch requests.
12119	ForceSendFields []string `json:"-"`
12120
12121	// NullFields is a list of field names (e.g. "KnowledgeBases") to
12122	// include in API requests with the JSON null value. By default, fields
12123	// with empty values are omitted from API requests. However, any field
12124	// with an empty value appearing in NullFields will be sent to the
12125	// server as null. It is an error if a field in this list has a
12126	// non-empty value. This may be used to include null fields in Patch
12127	// requests.
12128	NullFields []string `json:"-"`
12129}
12130
12131func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource) MarshalJSON() ([]byte, error) {
12132	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
12133	raw := NoMethod(*s)
12134	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12135}
12136
12137// GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTrigger
12138// Settings: Settings of suggestion trigger.
12139type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings struct {
12140	// NoSmallTalk: Do not trigger if last utterance is small talk.
12141	NoSmallTalk bool `json:"noSmallTalk,omitempty"`
12142
12143	// OnlyEndUser: Only trigger suggestion if participant role of last
12144	// utterance is END_USER.
12145	OnlyEndUser bool `json:"onlyEndUser,omitempty"`
12146
12147	// ForceSendFields is a list of field names (e.g. "NoSmallTalk") to
12148	// unconditionally include in API requests. By default, fields with
12149	// empty values are omitted from API requests. However, any non-pointer,
12150	// non-interface field appearing in ForceSendFields will be sent to the
12151	// server regardless of whether the field is empty or not. This may be
12152	// used to include empty fields in Patch requests.
12153	ForceSendFields []string `json:"-"`
12154
12155	// NullFields is a list of field names (e.g. "NoSmallTalk") to include
12156	// in API requests with the JSON null value. By default, fields with
12157	// empty values are omitted from API requests. However, any field with
12158	// an empty value appearing in NullFields will be sent to the server as
12159	// null. It is an error if a field in this list has a non-empty value.
12160	// This may be used to include null fields in Patch requests.
12161	NullFields []string `json:"-"`
12162}
12163
12164func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings) MarshalJSON() ([]byte, error) {
12165	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings
12166	raw := NoMethod(*s)
12167	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12168}
12169
12170// GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent: Output only.
12171// Represents a notification sent to Pub/Sub subscribers for agent
12172// assistant events in a specific conversation.
12173type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
12174	// Conversation: The conversation this notification refers to. Format:
12175	// `projects//conversations/`.
12176	Conversation string `json:"conversation,omitempty"`
12177
12178	// Participant: The participant that the suggestion is compiled for. And
12179	// This field is used to call Participants.ListSuggestions API. Format:
12180	// `projects//conversations//participants/`. It will not be set in
12181	// legacy workflow. HumanAgentAssistantConfig.name for more information.
12182	Participant string `json:"participant,omitempty"`
12183
12184	// SuggestionResults: The suggestion results payload that this
12185	// notification refers to. It will only be set when
12186	// HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses
12187	// sets to true.
12188	SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
12189
12190	// ForceSendFields is a list of field names (e.g. "Conversation") to
12191	// unconditionally include in API requests. By default, fields with
12192	// empty values are omitted from API requests. However, any non-pointer,
12193	// non-interface field appearing in ForceSendFields will be sent to the
12194	// server regardless of whether the field is empty or not. This may be
12195	// used to include empty fields in Patch requests.
12196	ForceSendFields []string `json:"-"`
12197
12198	// NullFields is a list of field names (e.g. "Conversation") to include
12199	// in API requests with the JSON null value. By default, fields with
12200	// empty values are omitted from API requests. However, any field with
12201	// an empty value appearing in NullFields will be sent to the server as
12202	// null. It is an error if a field in this list has a non-empty value.
12203	// This may be used to include null fields in Patch requests.
12204	NullFields []string `json:"-"`
12205}
12206
12207func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
12208	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
12209	raw := NoMethod(*s)
12210	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12211}
12212
12213// GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig: Defines the hand
12214// off to a live agent, typically on which external agent service
12215// provider to connect to a conversation. Currently, this feature is not
12216// general available, please contact Google to get access.
12217type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig struct {
12218	// LivePersonConfig: Uses LivePerson (https://www.liveperson.com).
12219	LivePersonConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig `json:"livePersonConfig,omitempty"`
12220
12221	// SalesforceLiveAgentConfig: Uses Salesforce Live Agent.
12222	SalesforceLiveAgentConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig `json:"salesforceLiveAgentConfig,omitempty"`
12223
12224	// ForceSendFields is a list of field names (e.g. "LivePersonConfig") to
12225	// unconditionally include in API requests. By default, fields with
12226	// empty values are omitted from API requests. However, any non-pointer,
12227	// non-interface field appearing in ForceSendFields will be sent to the
12228	// server regardless of whether the field is empty or not. This may be
12229	// used to include empty fields in Patch requests.
12230	ForceSendFields []string `json:"-"`
12231
12232	// NullFields is a list of field names (e.g. "LivePersonConfig") to
12233	// include in API requests with the JSON null value. By default, fields
12234	// with empty values are omitted from API requests. However, any field
12235	// with an empty value appearing in NullFields will be sent to the
12236	// server as null. It is an error if a field in this list has a
12237	// non-empty value. This may be used to include null fields in Patch
12238	// requests.
12239	NullFields []string `json:"-"`
12240}
12241
12242func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig) MarshalJSON() ([]byte, error) {
12243	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
12244	raw := NoMethod(*s)
12245	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12246}
12247
12248// GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig:
12249// Configuration specific to LivePerson (https://www.liveperson.com).
12250type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig struct {
12251	// AccountNumber: Required. Account number of the LivePerson account to
12252	// connect. This is the account number you input at the login page.
12253	AccountNumber string `json:"accountNumber,omitempty"`
12254
12255	// ForceSendFields is a list of field names (e.g. "AccountNumber") to
12256	// unconditionally include in API requests. By default, fields with
12257	// empty values are omitted from API requests. However, any non-pointer,
12258	// non-interface field appearing in ForceSendFields will be sent to the
12259	// server regardless of whether the field is empty or not. This may be
12260	// used to include empty fields in Patch requests.
12261	ForceSendFields []string `json:"-"`
12262
12263	// NullFields is a list of field names (e.g. "AccountNumber") to include
12264	// in API requests with the JSON null value. By default, fields with
12265	// empty values are omitted from API requests. However, any field with
12266	// an empty value appearing in NullFields will be sent to the server as
12267	// null. It is an error if a field in this list has a non-empty value.
12268	// This may be used to include null fields in Patch requests.
12269	NullFields []string `json:"-"`
12270}
12271
12272func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig) MarshalJSON() ([]byte, error) {
12273	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
12274	raw := NoMethod(*s)
12275	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12276}
12277
12278// GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgent
12279// Config: Configuration specific to Salesforce Live Agent.
12280type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig struct {
12281	// ButtonId: Required. Live Agent chat button ID.
12282	ButtonId string `json:"buttonId,omitempty"`
12283
12284	// DeploymentId: Required. Live Agent deployment ID.
12285	DeploymentId string `json:"deploymentId,omitempty"`
12286
12287	// EndpointDomain: Required. Domain of the Live Agent endpoint for this
12288	// agent. You can find the endpoint URL in the `Live Agent settings`
12289	// page. For example if URL has the form
12290	// https://d.la4-c2-phx.salesforceliveagent.com/..., you should fill in
12291	// d.la4-c2-phx.salesforceliveagent.com.
12292	EndpointDomain string `json:"endpointDomain,omitempty"`
12293
12294	// OrganizationId: Required. The organization ID of the Salesforce
12295	// account.
12296	OrganizationId string `json:"organizationId,omitempty"`
12297
12298	// ForceSendFields is a list of field names (e.g. "ButtonId") to
12299	// unconditionally include in API requests. By default, fields with
12300	// empty values are omitted from API requests. However, any non-pointer,
12301	// non-interface field appearing in ForceSendFields will be sent to the
12302	// server regardless of whether the field is empty or not. This may be
12303	// used to include empty fields in Patch requests.
12304	ForceSendFields []string `json:"-"`
12305
12306	// NullFields is a list of field names (e.g. "ButtonId") to include in
12307	// API requests with the JSON null value. By default, fields with empty
12308	// values are omitted from API requests. However, any field with an
12309	// empty value appearing in NullFields will be sent to the server as
12310	// null. It is an error if a field in this list has a non-empty value.
12311	// This may be used to include null fields in Patch requests.
12312	NullFields []string `json:"-"`
12313}
12314
12315func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig) MarshalJSON() ([]byte, error) {
12316	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig
12317	raw := NoMethod(*s)
12318	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12319}
12320
12321// GoogleCloudDialogflowV2beta1ImportAgentRequest: The request message
12322// for Agents.ImportAgent.
12323type GoogleCloudDialogflowV2beta1ImportAgentRequest struct {
12324	// AgentContent: Zip compressed raw byte content for agent.
12325	AgentContent string `json:"agentContent,omitempty"`
12326
12327	// AgentUri: The URI to a Google Cloud Storage file containing the agent
12328	// to import. Note: The URI must start with "gs://".
12329	AgentUri string `json:"agentUri,omitempty"`
12330
12331	// ForceSendFields is a list of field names (e.g. "AgentContent") to
12332	// unconditionally include in API requests. By default, fields with
12333	// empty values are omitted from API requests. However, any non-pointer,
12334	// non-interface field appearing in ForceSendFields will be sent to the
12335	// server regardless of whether the field is empty or not. This may be
12336	// used to include empty fields in Patch requests.
12337	ForceSendFields []string `json:"-"`
12338
12339	// NullFields is a list of field names (e.g. "AgentContent") to include
12340	// in API requests with the JSON null value. By default, fields with
12341	// empty values are omitted from API requests. However, any field with
12342	// an empty value appearing in NullFields will be sent to the server as
12343	// null. It is an error if a field in this list has a non-empty value.
12344	// This may be used to include null fields in Patch requests.
12345	NullFields []string `json:"-"`
12346}
12347
12348func (s *GoogleCloudDialogflowV2beta1ImportAgentRequest) MarshalJSON() ([]byte, error) {
12349	type NoMethod GoogleCloudDialogflowV2beta1ImportAgentRequest
12350	raw := NoMethod(*s)
12351	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12352}
12353
12354// GoogleCloudDialogflowV2beta1ImportDocumentTemplate: The template used
12355// for importing documents.
12356type GoogleCloudDialogflowV2beta1ImportDocumentTemplate struct {
12357	// KnowledgeTypes: Required. The knowledge type of document content.
12358	//
12359	// Possible values:
12360	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or
12361	// arbitrary.
12362	//   "FAQ" - The document content contains question and answer pairs as
12363	// either HTML or CSV. Typical FAQ HTML formats are parsed accurately,
12364	// but unusual formats may fail to be parsed. CSV must have questions in
12365	// the first column and answers in the second, with no header. Because
12366	// of this explicit format, they are always parsed accurately.
12367	//   "EXTRACTIVE_QA" - Documents for which unstructured text is
12368	// extracted and used for question answering.
12369	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can
12370	// be used for query results. Only for Contact Center Solutions on
12371	// Dialogflow.
12372	//   "SMART_REPLY" - The legacy enum for agent-facing smart reply
12373	// feature.
12374	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
12375
12376	// Metadata: Metadata for the document. The metadata supports arbitrary
12377	// key-value pairs. Suggested use cases include storing a document's
12378	// title, an external URL distinct from the document's content_uri, etc.
12379	// The max size of a `key` or a `value` of the metadata is 1024 bytes.
12380	Metadata map[string]string `json:"metadata,omitempty"`
12381
12382	// MimeType: Required. The MIME type of the document.
12383	MimeType string `json:"mimeType,omitempty"`
12384
12385	// ForceSendFields is a list of field names (e.g. "KnowledgeTypes") 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. "KnowledgeTypes") to
12394	// include in API requests with the JSON null value. By default, fields
12395	// with empty values are omitted from API requests. However, any field
12396	// with an empty value appearing in NullFields will be sent to the
12397	// server as null. It is an error if a field in this list has a
12398	// non-empty value. This may be used to include null fields in Patch
12399	// requests.
12400	NullFields []string `json:"-"`
12401}
12402
12403func (s *GoogleCloudDialogflowV2beta1ImportDocumentTemplate) MarshalJSON() ([]byte, error) {
12404	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentTemplate
12405	raw := NoMethod(*s)
12406	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12407}
12408
12409// GoogleCloudDialogflowV2beta1ImportDocumentsRequest: Request message
12410// for Documents.ImportDocuments.
12411type GoogleCloudDialogflowV2beta1ImportDocumentsRequest struct {
12412	// DocumentTemplate: Required. Document template used for importing all
12413	// the documents.
12414	DocumentTemplate *GoogleCloudDialogflowV2beta1ImportDocumentTemplate `json:"documentTemplate,omitempty"`
12415
12416	// GcsSource: The Google Cloud Storage location for the documents. The
12417	// path can include a wildcard. These URIs may have the forms `gs:///`.
12418	// `gs:////*.`.
12419	GcsSource *GoogleCloudDialogflowV2beta1GcsSources `json:"gcsSource,omitempty"`
12420
12421	// ImportGcsCustomMetadata: Whether to import custom metadata from
12422	// Google Cloud Storage. Only valid when the document source is Google
12423	// Cloud Storage URI.
12424	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
12425
12426	// ForceSendFields is a list of field names (e.g. "DocumentTemplate") to
12427	// unconditionally include in API requests. By default, fields with
12428	// empty values are omitted from API requests. However, any non-pointer,
12429	// non-interface field appearing in ForceSendFields will be sent to the
12430	// server regardless of whether the field is empty or not. This may be
12431	// used to include empty fields in Patch requests.
12432	ForceSendFields []string `json:"-"`
12433
12434	// NullFields is a list of field names (e.g. "DocumentTemplate") to
12435	// include in API requests with the JSON null value. By default, fields
12436	// with empty values are omitted from API requests. However, any field
12437	// with an empty value appearing in NullFields will be sent to the
12438	// server as null. It is an error if a field in this list has a
12439	// non-empty value. This may be used to include null fields in Patch
12440	// requests.
12441	NullFields []string `json:"-"`
12442}
12443
12444func (s *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
12445	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsRequest
12446	raw := NoMethod(*s)
12447	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12448}
12449
12450// GoogleCloudDialogflowV2beta1ImportDocumentsResponse: Response message
12451// for Documents.ImportDocuments.
12452type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
12453	// Warnings: Includes details about skipped documents or any other
12454	// warnings.
12455	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
12456
12457	// ForceSendFields is a list of field names (e.g. "Warnings") to
12458	// unconditionally include in API requests. By default, fields with
12459	// empty values are omitted from API requests. However, any non-pointer,
12460	// non-interface field appearing in ForceSendFields will be sent to the
12461	// server regardless of whether the field is empty or not. This may be
12462	// used to include empty fields in Patch requests.
12463	ForceSendFields []string `json:"-"`
12464
12465	// NullFields is a list of field names (e.g. "Warnings") to include in
12466	// API requests with the JSON null value. By default, fields with empty
12467	// values are omitted from API requests. However, any field with an
12468	// empty value appearing in NullFields will be sent to the server as
12469	// null. It is an error if a field in this list has a non-empty value.
12470	// This may be used to include null fields in Patch requests.
12471	NullFields []string `json:"-"`
12472}
12473
12474func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
12475	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
12476	raw := NoMethod(*s)
12477	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12478}
12479
12480// GoogleCloudDialogflowV2beta1InputAudioConfig: Instructs the speech
12481// recognizer on how to process the audio content.
12482type GoogleCloudDialogflowV2beta1InputAudioConfig struct {
12483	// AudioEncoding: Required. Audio encoding of the audio content to
12484	// process.
12485	//
12486	// Possible values:
12487	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
12488	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
12489	// little-endian samples (Linear PCM).
12490	//   "AUDIO_ENCODING_FLAC" -
12491	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
12492	// Audio Codec) is the recommended encoding because it is lossless
12493	// (therefore recognition is not compromised) and requires only about
12494	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
12495	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
12496	// are supported.
12497	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
12498	// samples using G.711 PCMU/mu-law.
12499	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
12500	// `sample_rate_hertz` must be 8000.
12501	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
12502	// `sample_rate_hertz` must be 16000.
12503	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
12504	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
12505	// `sample_rate_hertz` must be 16000.
12506	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
12507	// encodings is not recommended, if a very low bitrate encoding is
12508	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
12509	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
12510	// a header byte in each block, as in MIME type
12511	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
12512	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
12513	// The stream is a sequence of blocks, one block per RTP packet. Each
12514	// block starts with a byte containing the length of the block, in
12515	// bytes, followed by one or more frames of Speex data, padded to an
12516	// integral number of bytes (octets) as specified in RFC 5574. In other
12517	// words, each RTP header is replaced with a single byte containing the
12518	// block length. Only Speex wideband is supported. `sample_rate_hertz`
12519	// must be 16000.
12520	AudioEncoding string `json:"audioEncoding,omitempty"`
12521
12522	// DisableNoSpeechRecognizedEvent: Only used in
12523	// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent.
12524	// If `false` and recognition doesn't return any result, trigger
12525	// `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
12526	DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"`
12527
12528	// EnableWordInfo: If `true`, Dialogflow returns SpeechWordInfo in
12529	// StreamingRecognitionResult with information about the recognized
12530	// speech words, e.g. start and end time offsets. If false or
12531	// unspecified, Speech doesn't return any word-level information.
12532	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
12533
12534	// LanguageCode: Required. The language of the supplied audio.
12535	// Dialogflow does not do translations. See Language Support
12536	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
12537	// list of the currently supported language codes. Note that queries in
12538	// the same session do not necessarily need to specify the same
12539	// language.
12540	LanguageCode string `json:"languageCode,omitempty"`
12541
12542	// Model: Which Speech model to select for the given request. Select the
12543	// model best suited to your domain to get best results. If a model is
12544	// not explicitly specified, then we auto-select a model based on the
12545	// parameters in the InputAudioConfig. If enhanced speech model is
12546	// enabled for the agent and an enhanced version of the specified model
12547	// for the language does not exist, then the speech is recognized using
12548	// the standard version of the specified model. Refer to Cloud Speech
12549	// API documentation
12550	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
12551	// for more details.
12552	Model string `json:"model,omitempty"`
12553
12554	// ModelVariant: Which variant of the Speech model to use.
12555	//
12556	// Possible values:
12557	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
12558	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
12559	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
12560	// model that the caller is eligible for. Please see the [Dialogflow
12561	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
12562	// to make your project eligible for enhanced models.
12563	//   "USE_STANDARD" - Use standard model variant even if an enhanced
12564	// model is available. See the [Cloud Speech
12565	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
12566	// odels) for details about enhanced models.
12567	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
12568	// variant does not exist for the given model and request language,
12569	// Dialogflow falls back to the standard variant. The [Cloud Speech
12570	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
12571	// odels) describes which models have enhanced variants. * If the API
12572	// caller isn't eligible for enhanced models, Dialogflow returns an
12573	// error. Please see the [Dialogflow
12574	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
12575	// to make your project eligible.
12576	ModelVariant string `json:"modelVariant,omitempty"`
12577
12578	// PhraseHints: A list of strings containing words and phrases that the
12579	// speech recognizer should recognize with higher likelihood. See the
12580	// Cloud Speech documentation
12581	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
12582	// for more details. This field is deprecated. Please use
12583	// speech_contexts () instead. If you specify both phrase_hints () and
12584	// speech_contexts (), Dialogflow will treat the phrase_hints () as a
12585	// single additional SpeechContext ().
12586	PhraseHints []string `json:"phraseHints,omitempty"`
12587
12588	// SampleRateHertz: Required. Sample rate (in Hertz) of the audio
12589	// content sent in the query. Refer to Cloud Speech API documentation
12590	// (https://cloud.google.com/speech-to-text/docs/basics) for more
12591	// details.
12592	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
12593
12594	// SingleUtterance: If `false` (default), recognition does not cease
12595	// until the client closes the stream. If `true`, the recognizer will
12596	// detect a single spoken utterance in input audio. Recognition ceases
12597	// when it detects the audio's voice has stopped or paused. In this
12598	// case, once a detected intent is received, the client should close the
12599	// stream and start a new request with a new stream as needed. Note:
12600	// This setting is relevant only for streaming methods. Note: When
12601	// specified, InputAudioConfig.single_utterance takes precedence over
12602	// StreamingDetectIntentRequest.single_utterance.
12603	SingleUtterance bool `json:"singleUtterance,omitempty"`
12604
12605	// SpeechContexts: Context information to assist speech recognition. See
12606	// the Cloud Speech documentation
12607	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
12608	// for more details.
12609	SpeechContexts []*GoogleCloudDialogflowV2beta1SpeechContext `json:"speechContexts,omitempty"`
12610
12611	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
12612	// unconditionally include in API requests. By default, fields with
12613	// empty values are omitted from API requests. However, any non-pointer,
12614	// non-interface field appearing in ForceSendFields will be sent to the
12615	// server regardless of whether the field is empty or not. This may be
12616	// used to include empty fields in Patch requests.
12617	ForceSendFields []string `json:"-"`
12618
12619	// NullFields is a list of field names (e.g. "AudioEncoding") to include
12620	// in API requests with the JSON null value. By default, fields with
12621	// empty values are omitted from API requests. However, any field with
12622	// an empty value appearing in NullFields will be sent to the server as
12623	// null. It is an error if a field in this list has a non-empty value.
12624	// This may be used to include null fields in Patch requests.
12625	NullFields []string `json:"-"`
12626}
12627
12628func (s *GoogleCloudDialogflowV2beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
12629	type NoMethod GoogleCloudDialogflowV2beta1InputAudioConfig
12630	raw := NoMethod(*s)
12631	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12632}
12633
12634// GoogleCloudDialogflowV2beta1Intent: An intent categorizes an
12635// end-user's intention for one conversation turn. For each agent, you
12636// define many intents, where your combined intents can handle a
12637// complete conversation. When an end-user writes or says something,
12638// referred to as an end-user expression or end-user input, Dialogflow
12639// matches the end-user input to the best intent in your agent. Matching
12640// an intent is also known as intent classification. For more
12641// information, see the intent guide
12642// (https://cloud.google.com/dialogflow/docs/intents-overview).
12643type GoogleCloudDialogflowV2beta1Intent struct {
12644	// Action: Optional. The name of the action associated with the intent.
12645	// Note: The action name must not contain whitespaces.
12646	Action string `json:"action,omitempty"`
12647
12648	// DefaultResponsePlatforms: Optional. The list of platforms for which
12649	// the first responses will be copied from the messages in
12650	// PLATFORM_UNSPECIFIED (i.e. default platform).
12651	//
12652	// Possible values:
12653	//   "PLATFORM_UNSPECIFIED" - Not specified.
12654	//   "FACEBOOK" - Facebook.
12655	//   "SLACK" - Slack.
12656	//   "TELEGRAM" - Telegram.
12657	//   "KIK" - Kik.
12658	//   "SKYPE" - Skype.
12659	//   "LINE" - Line.
12660	//   "VIBER" - Viber.
12661	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
12662	// format](https://developers.google.com/assistant/actions/build/json/dia
12663	// logflow-webhook-json)
12664	//   "TELEPHONY" - Telephony Gateway.
12665	//   "GOOGLE_HANGOUTS" - Google Hangouts.
12666	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
12667
12668	// DisplayName: Required. The name of this intent.
12669	DisplayName string `json:"displayName,omitempty"`
12670
12671	// EndInteraction: Optional. Indicates that this intent ends an
12672	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
12673	// phone gateway) use this information to close interaction with an end
12674	// user. Default is false.
12675	EndInteraction bool `json:"endInteraction,omitempty"`
12676
12677	// Events: Optional. The collection of event names that trigger the
12678	// intent. If the collection of input contexts is not empty, all of the
12679	// contexts must be present in the active user session for an event to
12680	// trigger this intent. Event names are limited to 150 characters.
12681	Events []string `json:"events,omitempty"`
12682
12683	// FollowupIntentInfo: Output only. Information about all followup
12684	// intents that have this intent as a direct or indirect parent. We
12685	// populate this field only in the output.
12686	FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
12687
12688	// InputContextNames: Optional. The list of context names required for
12689	// this intent to be triggered. Formats: -
12690	// `projects//agent/sessions/-/contexts/` -
12691	// `projects//locations//agent/sessions/-/contexts/`
12692	InputContextNames []string `json:"inputContextNames,omitempty"`
12693
12694	// IsFallback: Optional. Indicates whether this is a fallback intent.
12695	IsFallback bool `json:"isFallback,omitempty"`
12696
12697	// LiveAgentHandoff: Optional. Indicates that a live agent should be
12698	// brought in to handle the interaction with the user. In most cases,
12699	// when you set this flag to true, you would also want to set
12700	// end_interaction to true as well. Default is false.
12701	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
12702
12703	// Messages: Optional. The collection of rich messages corresponding to
12704	// the `Response` field in the Dialogflow console.
12705	Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
12706
12707	// MlDisabled: Optional. Indicates whether Machine Learning is disabled
12708	// for the intent. Note: If `ml_disabled` setting is set to true, then
12709	// this intent is not taken into account during inference in `ML ONLY`
12710	// match mode. Also, auto-markup in the UI is turned off.
12711	MlDisabled bool `json:"mlDisabled,omitempty"`
12712
12713	// MlEnabled: Optional. Indicates whether Machine Learning is enabled
12714	// for the intent. Note: If `ml_enabled` setting is set to false, then
12715	// this intent is not taken into account during inference in `ML ONLY`
12716	// match mode. Also, auto-markup in the UI is turned off. DEPRECATED!
12717	// Please use `ml_disabled` field instead. NOTE: If both `ml_enabled`
12718	// and `ml_disabled` are either not set or false, then the default value
12719	// is determined as follows: - Before April 15th, 2018 the default is:
12720	// ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the
12721	// default is: ml_enabled = true / ml_disabled = false.
12722	MlEnabled bool `json:"mlEnabled,omitempty"`
12723
12724	// Name: Optional. The unique identifier of this intent. Required for
12725	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods.
12726	// Supported formats: - `projects//agent/intents/` -
12727	// `projects//locations//agent/intents/`
12728	Name string `json:"name,omitempty"`
12729
12730	// OutputContexts: Optional. The collection of contexts that are
12731	// activated when the intent is matched. Context messages in this
12732	// collection should not set the parameters field. Setting the
12733	// `lifespan_count` to 0 will reset the context when the intent is
12734	// matched. Format: `projects//agent/sessions/-/contexts/`.
12735	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
12736
12737	// Parameters: Optional. The collection of parameters associated with
12738	// the intent.
12739	Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
12740
12741	// ParentFollowupIntentName: Optional. The unique identifier of the
12742	// parent intent in the chain of followup intents. You can set this
12743	// field when creating an intent, for example with CreateIntent or
12744	// BatchUpdateIntents, in order to make this intent a followup intent.
12745	// It identifies the parent followup intent. Format:
12746	// `projects//agent/intents/`.
12747	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
12748
12749	// Priority: Optional. The priority of this intent. Higher numbers
12750	// represent higher priorities. - If the supplied value is unspecified
12751	// or 0, the service translates the value to 500,000, which corresponds
12752	// to the `Normal` priority in the console. - If the supplied value is
12753	// negative, the intent is ignored in runtime detect intent requests.
12754	Priority int64 `json:"priority,omitempty"`
12755
12756	// ResetContexts: Optional. Indicates whether to delete all contexts in
12757	// the current session when this intent is matched.
12758	ResetContexts bool `json:"resetContexts,omitempty"`
12759
12760	// RootFollowupIntentName: Output only. The unique identifier of the
12761	// root intent in the chain of followup intents. It identifies the
12762	// correct followup intents chain for this intent. Format:
12763	// `projects//agent/intents/`.
12764	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
12765
12766	// TrainingPhrases: Optional. The collection of examples that the agent
12767	// is trained on.
12768	TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
12769
12770	// WebhookState: Optional. Indicates whether webhooks are enabled for
12771	// the intent.
12772	//
12773	// Possible values:
12774	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and
12775	// in the intent.
12776	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in
12777	// the intent.
12778	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in
12779	// the agent and in the intent. Also, each slot filling prompt is
12780	// forwarded to the webhook.
12781	WebhookState string `json:"webhookState,omitempty"`
12782
12783	// ServerResponse contains the HTTP response code and headers from the
12784	// server.
12785	googleapi.ServerResponse `json:"-"`
12786
12787	// ForceSendFields is a list of field names (e.g. "Action") to
12788	// unconditionally include in API requests. By default, fields with
12789	// empty values are omitted from API requests. However, any non-pointer,
12790	// non-interface field appearing in ForceSendFields will be sent to the
12791	// server regardless of whether the field is empty or not. This may be
12792	// used to include empty fields in Patch requests.
12793	ForceSendFields []string `json:"-"`
12794
12795	// NullFields is a list of field names (e.g. "Action") to include in API
12796	// requests with the JSON null value. By default, fields with empty
12797	// values are omitted from API requests. However, any field with an
12798	// empty value appearing in NullFields will be sent to the server as
12799	// null. It is an error if a field in this list has a non-empty value.
12800	// This may be used to include null fields in Patch requests.
12801	NullFields []string `json:"-"`
12802}
12803
12804func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
12805	type NoMethod GoogleCloudDialogflowV2beta1Intent
12806	raw := NoMethod(*s)
12807	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12808}
12809
12810// GoogleCloudDialogflowV2beta1IntentBatch: This message is a wrapper
12811// around a collection of intents.
12812type GoogleCloudDialogflowV2beta1IntentBatch struct {
12813	// Intents: A collection of intents.
12814	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
12815
12816	// ForceSendFields is a list of field names (e.g. "Intents") to
12817	// unconditionally include in API requests. By default, fields with
12818	// empty values are omitted from API requests. However, any non-pointer,
12819	// non-interface field appearing in ForceSendFields will be sent to the
12820	// server regardless of whether the field is empty or not. This may be
12821	// used to include empty fields in Patch requests.
12822	ForceSendFields []string `json:"-"`
12823
12824	// NullFields is a list of field names (e.g. "Intents") to include in
12825	// API requests with the JSON null value. By default, fields with empty
12826	// values are omitted from API requests. However, any field with an
12827	// empty value appearing in NullFields will be sent to the server as
12828	// null. It is an error if a field in this list has a non-empty value.
12829	// This may be used to include null fields in Patch requests.
12830	NullFields []string `json:"-"`
12831}
12832
12833func (s *GoogleCloudDialogflowV2beta1IntentBatch) MarshalJSON() ([]byte, error) {
12834	type NoMethod GoogleCloudDialogflowV2beta1IntentBatch
12835	raw := NoMethod(*s)
12836	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12837}
12838
12839// GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a
12840// single followup intent in the chain.
12841type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
12842	// FollowupIntentName: The unique identifier of the followup intent.
12843	// Format: `projects//agent/intents/`.
12844	FollowupIntentName string `json:"followupIntentName,omitempty"`
12845
12846	// ParentFollowupIntentName: The unique identifier of the followup
12847	// intent's parent. Format: `projects//agent/intents/`.
12848	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
12849
12850	// ForceSendFields is a list of field names (e.g. "FollowupIntentName")
12851	// to unconditionally include in API requests. By default, fields with
12852	// empty values are omitted from API requests. However, any non-pointer,
12853	// non-interface field appearing in ForceSendFields will be sent to the
12854	// server regardless of whether the field is empty or not. This may be
12855	// used to include empty fields in Patch requests.
12856	ForceSendFields []string `json:"-"`
12857
12858	// NullFields is a list of field names (e.g. "FollowupIntentName") to
12859	// include in API requests with the JSON null value. By default, fields
12860	// with empty values are omitted from API requests. However, any field
12861	// with an empty value appearing in NullFields will be sent to the
12862	// server as null. It is an error if a field in this list has a
12863	// non-empty value. This may be used to include null fields in Patch
12864	// requests.
12865	NullFields []string `json:"-"`
12866}
12867
12868func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
12869	type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
12870	raw := NoMethod(*s)
12871	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12872}
12873
12874// GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the
12875// `Response` field in the Dialogflow console.
12876type GoogleCloudDialogflowV2beta1IntentMessage struct {
12877	// BasicCard: Displays a basic card for Actions on Google.
12878	BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
12879
12880	// BrowseCarouselCard: Browse carousel card for Actions on Google.
12881	BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
12882
12883	// Card: Displays a card.
12884	Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
12885
12886	// CarouselSelect: Displays a carousel card for Actions on Google.
12887	CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
12888
12889	// Image: Displays an image.
12890	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
12891
12892	// LinkOutSuggestion: Displays a link out suggestion chip for Actions on
12893	// Google.
12894	LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
12895
12896	// ListSelect: Displays a list card for Actions on Google.
12897	ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
12898
12899	// MediaContent: The media content card for Actions on Google.
12900	MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
12901
12902	// Payload: A custom platform-specific response.
12903	Payload googleapi.RawMessage `json:"payload,omitempty"`
12904
12905	// Platform: Optional. The platform that this message is intended for.
12906	//
12907	// Possible values:
12908	//   "PLATFORM_UNSPECIFIED" - Not specified.
12909	//   "FACEBOOK" - Facebook.
12910	//   "SLACK" - Slack.
12911	//   "TELEGRAM" - Telegram.
12912	//   "KIK" - Kik.
12913	//   "SKYPE" - Skype.
12914	//   "LINE" - Line.
12915	//   "VIBER" - Viber.
12916	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
12917	// format](https://developers.google.com/assistant/actions/build/json/dia
12918	// logflow-webhook-json)
12919	//   "TELEPHONY" - Telephony Gateway.
12920	//   "GOOGLE_HANGOUTS" - Google Hangouts.
12921	Platform string `json:"platform,omitempty"`
12922
12923	// QuickReplies: Displays quick replies.
12924	QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
12925
12926	// RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card
12927	// response.
12928	RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
12929
12930	// RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich
12931	// card response.
12932	RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
12933
12934	// RbmText: Rich Business Messaging (RBM) text response. RBM allows
12935	// businesses to send enriched and branded versions of SMS. See
12936	// https://jibe.google.com/business-messaging.
12937	RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
12938
12939	// SimpleResponses: Returns a voice or text-only response for Actions on
12940	// Google.
12941	SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
12942
12943	// Suggestions: Displays suggestion chips for Actions on Google.
12944	Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
12945
12946	// TableCard: Table card for Actions on Google.
12947	TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
12948
12949	// TelephonyPlayAudio: Plays audio from a file in Telephony Gateway.
12950	TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
12951
12952	// TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway.
12953	TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
12954
12955	// TelephonyTransferCall: Transfers the call in Telephony Gateway.
12956	TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
12957
12958	// Text: Returns a text response.
12959	Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
12960
12961	// ForceSendFields is a list of field names (e.g. "BasicCard") to
12962	// unconditionally include in API requests. By default, fields with
12963	// empty values are omitted from API requests. However, any non-pointer,
12964	// non-interface field appearing in ForceSendFields will be sent to the
12965	// server regardless of whether the field is empty or not. This may be
12966	// used to include empty fields in Patch requests.
12967	ForceSendFields []string `json:"-"`
12968
12969	// NullFields is a list of field names (e.g. "BasicCard") to include in
12970	// API requests with the JSON null value. By default, fields with empty
12971	// values are omitted from API requests. However, any field with an
12972	// empty value appearing in NullFields will be sent to the server as
12973	// null. It is an error if a field in this list has a non-empty value.
12974	// This may be used to include null fields in Patch requests.
12975	NullFields []string `json:"-"`
12976}
12977
12978func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
12979	type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
12980	raw := NoMethod(*s)
12981	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12982}
12983
12984// GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card
12985// message. Useful for displaying information.
12986type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
12987	// Buttons: Optional. The collection of card buttons.
12988	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
12989
12990	// FormattedText: Required, unless image is present. The body text of
12991	// the card.
12992	FormattedText string `json:"formattedText,omitempty"`
12993
12994	// Image: Optional. The image for the card.
12995	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
12996
12997	// Subtitle: Optional. The subtitle of the card.
12998	Subtitle string `json:"subtitle,omitempty"`
12999
13000	// Title: Optional. The title of the card.
13001	Title string `json:"title,omitempty"`
13002
13003	// ForceSendFields is a list of field names (e.g. "Buttons") to
13004	// unconditionally include in API requests. By default, fields with
13005	// empty values are omitted from API requests. However, any non-pointer,
13006	// non-interface field appearing in ForceSendFields will be sent to the
13007	// server regardless of whether the field is empty or not. This may be
13008	// used to include empty fields in Patch requests.
13009	ForceSendFields []string `json:"-"`
13010
13011	// NullFields is a list of field names (e.g. "Buttons") to include in
13012	// API requests with the JSON null value. By default, fields with empty
13013	// values are omitted from API requests. However, any field with an
13014	// empty value appearing in NullFields will be sent to the server as
13015	// null. It is an error if a field in this list has a non-empty value.
13016	// This may be used to include null fields in Patch requests.
13017	NullFields []string `json:"-"`
13018}
13019
13020func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
13021	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
13022	raw := NoMethod(*s)
13023	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13024}
13025
13026// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button
13027// object that appears at the bottom of a card.
13028type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
13029	// OpenUriAction: Required. Action to take when a user taps on the
13030	// button.
13031	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
13032
13033	// Title: Required. The title of the button.
13034	Title string `json:"title,omitempty"`
13035
13036	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
13037	// unconditionally include in API requests. By default, fields with
13038	// empty values are omitted from API requests. However, any non-pointer,
13039	// non-interface field appearing in ForceSendFields will be sent to the
13040	// server regardless of whether the field is empty or not. This may be
13041	// used to include empty fields in Patch requests.
13042	ForceSendFields []string `json:"-"`
13043
13044	// NullFields is a list of field names (e.g. "OpenUriAction") to include
13045	// in API requests with the JSON null value. By default, fields with
13046	// empty values are omitted from API requests. However, any field with
13047	// an empty value appearing in NullFields will be sent to the server as
13048	// null. It is an error if a field in this list has a non-empty value.
13049	// This may be used to include null fields in Patch requests.
13050	NullFields []string `json:"-"`
13051}
13052
13053func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
13054	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
13055	raw := NoMethod(*s)
13056	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13057}
13058
13059// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction:
13060//  Opens the given URI.
13061type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
13062	// Uri: Required. The HTTP or HTTPS scheme URI.
13063	Uri string `json:"uri,omitempty"`
13064
13065	// ForceSendFields is a list of field names (e.g. "Uri") to
13066	// unconditionally include in API requests. By default, fields with
13067	// empty values are omitted from API requests. However, any non-pointer,
13068	// non-interface field appearing in ForceSendFields will be sent to the
13069	// server regardless of whether the field is empty or not. This may be
13070	// used to include empty fields in Patch requests.
13071	ForceSendFields []string `json:"-"`
13072
13073	// NullFields is a list of field names (e.g. "Uri") to include in API
13074	// requests with the JSON null value. By default, fields with empty
13075	// values are omitted from API requests. However, any field with an
13076	// empty value appearing in NullFields will be sent to the server as
13077	// null. It is an error if a field in this list has a non-empty value.
13078	// This may be used to include null fields in Patch requests.
13079	NullFields []string `json:"-"`
13080}
13081
13082func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
13083	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
13084	raw := NoMethod(*s)
13085	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13086}
13087
13088// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse
13089// Carousel Card for Actions on Google.
13090// https://developers.google.com/actions/assistant/responses#browsing_carousel
13091type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
13092	// ImageDisplayOptions: Optional. Settings for displaying the image.
13093	// Applies to every image in items.
13094	//
13095	// Possible values:
13096	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the
13097	// image and the image container with gray bars.
13098	//   "GRAY" - Fill the gaps between the image and the image container
13099	// with gray bars.
13100	//   "WHITE" - Fill the gaps between the image and the image container
13101	// with white bars.
13102	//   "CROPPED" - Image is scaled such that the image width and height
13103	// match or exceed the container dimensions. This may crop the top and
13104	// bottom of the image if the scaled image height is greater than the
13105	// container height, or crop the left and right of the image if the
13106	// scaled image width is greater than the container width. This is
13107	// similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video.
13108	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame
13109	// with a blurred copy of the same image.
13110	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
13111
13112	// Items: Required. List of items in the Browse Carousel Card. Minimum
13113	// of two items, maximum of ten.
13114	Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
13115
13116	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions")
13117	// to unconditionally include in API requests. By default, fields with
13118	// empty values are omitted from API requests. However, any non-pointer,
13119	// non-interface field appearing in ForceSendFields will be sent to the
13120	// server regardless of whether the field is empty or not. This may be
13121	// used to include empty fields in Patch requests.
13122	ForceSendFields []string `json:"-"`
13123
13124	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to
13125	// include in API requests with the JSON null value. By default, fields
13126	// with empty values are omitted from API requests. However, any field
13127	// with an empty value appearing in NullFields will be sent to the
13128	// server as null. It is an error if a field in this list has a
13129	// non-empty value. This may be used to include null fields in Patch
13130	// requests.
13131	NullFields []string `json:"-"`
13132}
13133
13134func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
13135	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
13136	raw := NoMethod(*s)
13137	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13138}
13139
13140// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou
13141// selCardItem: Browsing carousel tile
13142type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
13143	// Description: Optional. Description of the carousel item. Maximum of
13144	// four lines of text.
13145	Description string `json:"description,omitempty"`
13146
13147	// Footer: Optional. Text that appears at the bottom of the Browse
13148	// Carousel Card. Maximum of one line of text.
13149	Footer string `json:"footer,omitempty"`
13150
13151	// Image: Optional. Hero image for the carousel item.
13152	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13153
13154	// OpenUriAction: Required. Action to present to the user.
13155	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
13156
13157	// Title: Required. Title of the carousel item. Maximum of two lines of
13158	// text.
13159	Title string `json:"title,omitempty"`
13160
13161	// ForceSendFields is a list of field names (e.g. "Description") to
13162	// unconditionally include in API requests. By default, fields with
13163	// empty values are omitted from API requests. However, any non-pointer,
13164	// non-interface field appearing in ForceSendFields will be sent to the
13165	// server regardless of whether the field is empty or not. This may be
13166	// used to include empty fields in Patch requests.
13167	ForceSendFields []string `json:"-"`
13168
13169	// NullFields is a list of field names (e.g. "Description") to include
13170	// in API requests with the JSON null value. By default, fields with
13171	// empty values are omitted from API requests. However, any field with
13172	// an empty value appearing in NullFields will be sent to the server as
13173	// null. It is an error if a field in this list has a non-empty value.
13174	// This may be used to include null fields in Patch requests.
13175	NullFields []string `json:"-"`
13176}
13177
13178func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
13179	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
13180	raw := NoMethod(*s)
13181	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13182}
13183
13184// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou
13185// selCardItemOpenUrlAction: Actions on Google action to open a given
13186// url.
13187type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
13188	// Url: Required. URL
13189	Url string `json:"url,omitempty"`
13190
13191	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
13192	// opening the URL. Defaults to opening via web browser.
13193	//
13194	// Possible values:
13195	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
13196	//   "AMP_ACTION" - Url would be an amp action
13197	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a
13198	// canonical URL which refers to AMP content via .
13199	UrlTypeHint string `json:"urlTypeHint,omitempty"`
13200
13201	// ForceSendFields is a list of field names (e.g. "Url") to
13202	// unconditionally include in API requests. By default, fields with
13203	// empty values are omitted from API requests. However, any non-pointer,
13204	// non-interface field appearing in ForceSendFields will be sent to the
13205	// server regardless of whether the field is empty or not. This may be
13206	// used to include empty fields in Patch requests.
13207	ForceSendFields []string `json:"-"`
13208
13209	// NullFields is a list of field names (e.g. "Url") to include in API
13210	// requests with the JSON null value. By default, fields with empty
13211	// values are omitted from API requests. However, any field with an
13212	// empty value appearing in NullFields will be sent to the server as
13213	// null. It is an error if a field in this list has a non-empty value.
13214	// This may be used to include null fields in Patch requests.
13215	NullFields []string `json:"-"`
13216}
13217
13218func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
13219	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
13220	raw := NoMethod(*s)
13221	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13222}
13223
13224// GoogleCloudDialogflowV2beta1IntentMessageCard: The card response
13225// message.
13226type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
13227	// Buttons: Optional. The collection of card buttons.
13228	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
13229
13230	// ImageUri: Optional. The public URI to an image file for the card.
13231	ImageUri string `json:"imageUri,omitempty"`
13232
13233	// Subtitle: Optional. The subtitle of the card.
13234	Subtitle string `json:"subtitle,omitempty"`
13235
13236	// Title: Optional. The title of the card.
13237	Title string `json:"title,omitempty"`
13238
13239	// ForceSendFields is a list of field names (e.g. "Buttons") to
13240	// unconditionally include in API requests. By default, fields with
13241	// empty values are omitted from API requests. However, any non-pointer,
13242	// non-interface field appearing in ForceSendFields will be sent to the
13243	// server regardless of whether the field is empty or not. This may be
13244	// used to include empty fields in Patch requests.
13245	ForceSendFields []string `json:"-"`
13246
13247	// NullFields is a list of field names (e.g. "Buttons") to include in
13248	// API requests with the JSON null value. By default, fields with empty
13249	// values are omitted from API requests. However, any field with an
13250	// empty value appearing in NullFields will be sent to the server as
13251	// null. It is an error if a field in this list has a non-empty value.
13252	// This may be used to include null fields in Patch requests.
13253	NullFields []string `json:"-"`
13254}
13255
13256func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
13257	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
13258	raw := NoMethod(*s)
13259	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13260}
13261
13262// GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional.
13263// Contains information about a button.
13264type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
13265	// Postback: Optional. The text to send back to the Dialogflow API or a
13266	// URI to open.
13267	Postback string `json:"postback,omitempty"`
13268
13269	// Text: Optional. The text to show on the button.
13270	Text string `json:"text,omitempty"`
13271
13272	// ForceSendFields is a list of field names (e.g. "Postback") to
13273	// unconditionally include in API requests. By default, fields with
13274	// empty values are omitted from API requests. However, any non-pointer,
13275	// non-interface field appearing in ForceSendFields will be sent to the
13276	// server regardless of whether the field is empty or not. This may be
13277	// used to include empty fields in Patch requests.
13278	ForceSendFields []string `json:"-"`
13279
13280	// NullFields is a list of field names (e.g. "Postback") to include in
13281	// API requests with the JSON null value. By default, fields with empty
13282	// values are omitted from API requests. However, any field with an
13283	// empty value appearing in NullFields will be sent to the server as
13284	// null. It is an error if a field in this list has a non-empty value.
13285	// This may be used to include null fields in Patch requests.
13286	NullFields []string `json:"-"`
13287}
13288
13289func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
13290	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
13291	raw := NoMethod(*s)
13292	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13293}
13294
13295// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for
13296// presenting a carousel of options to select from.
13297type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
13298	// Items: Required. Carousel items.
13299	Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
13300
13301	// ForceSendFields is a list of field names (e.g. "Items") to
13302	// unconditionally include in API requests. By default, fields with
13303	// empty values are omitted from API requests. However, any non-pointer,
13304	// non-interface field appearing in ForceSendFields will be sent to the
13305	// server regardless of whether the field is empty or not. This may be
13306	// used to include empty fields in Patch requests.
13307	ForceSendFields []string `json:"-"`
13308
13309	// NullFields is a list of field names (e.g. "Items") to include in API
13310	// requests with the JSON null value. By default, fields with empty
13311	// values are omitted from API requests. However, any field with an
13312	// empty value appearing in NullFields will be sent to the server as
13313	// null. It is an error if a field in this list has a non-empty value.
13314	// This may be used to include null fields in Patch requests.
13315	NullFields []string `json:"-"`
13316}
13317
13318func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
13319	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
13320	raw := NoMethod(*s)
13321	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13322}
13323
13324// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item
13325// in the carousel.
13326type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
13327	// Description: Optional. The body text of the card.
13328	Description string `json:"description,omitempty"`
13329
13330	// Image: Optional. The image to display.
13331	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13332
13333	// Info: Required. Additional info about the option item.
13334	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
13335
13336	// Title: Required. Title of the carousel item.
13337	Title string `json:"title,omitempty"`
13338
13339	// ForceSendFields is a list of field names (e.g. "Description") to
13340	// unconditionally include in API requests. By default, fields with
13341	// empty values are omitted from API requests. However, any non-pointer,
13342	// non-interface field appearing in ForceSendFields will be sent to the
13343	// server regardless of whether the field is empty or not. This may be
13344	// used to include empty fields in Patch requests.
13345	ForceSendFields []string `json:"-"`
13346
13347	// NullFields is a list of field names (e.g. "Description") to include
13348	// in API requests with the JSON null value. By default, fields with
13349	// empty values are omitted from API requests. However, any field with
13350	// an empty value appearing in NullFields will be sent to the server as
13351	// null. It is an error if a field in this list has a non-empty value.
13352	// This may be used to include null fields in Patch requests.
13353	NullFields []string `json:"-"`
13354}
13355
13356func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
13357	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
13358	raw := NoMethod(*s)
13359	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13360}
13361
13362// GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column
13363// properties for TableCard.
13364type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
13365	// Header: Required. Column heading.
13366	Header string `json:"header,omitempty"`
13367
13368	// HorizontalAlignment: Optional. Defines text alignment for all cells
13369	// in this column.
13370	//
13371	// Possible values:
13372	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading
13373	// edge of the column.
13374	//   "LEADING" - Text is aligned to the leading edge of the column.
13375	//   "CENTER" - Text is centered in the column.
13376	//   "TRAILING" - Text is aligned to the trailing edge of the column.
13377	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
13378
13379	// ForceSendFields is a list of field names (e.g. "Header") to
13380	// unconditionally include in API requests. By default, fields with
13381	// empty values are omitted from API requests. However, any non-pointer,
13382	// non-interface field appearing in ForceSendFields will be sent to the
13383	// server regardless of whether the field is empty or not. This may be
13384	// used to include empty fields in Patch requests.
13385	ForceSendFields []string `json:"-"`
13386
13387	// NullFields is a list of field names (e.g. "Header") to include in API
13388	// requests with the JSON null value. By default, fields with empty
13389	// values are omitted from API requests. However, any field with an
13390	// empty value appearing in NullFields will be sent to the server as
13391	// null. It is an error if a field in this list has a non-empty value.
13392	// This may be used to include null fields in Patch requests.
13393	NullFields []string `json:"-"`
13394}
13395
13396func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
13397	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
13398	raw := NoMethod(*s)
13399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13400}
13401
13402// GoogleCloudDialogflowV2beta1IntentMessageImage: The image response
13403// message.
13404type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
13405	// AccessibilityText: A text description of the image to be used for
13406	// accessibility, e.g., screen readers. Required if image_uri is set for
13407	// CarouselSelect.
13408	AccessibilityText string `json:"accessibilityText,omitempty"`
13409
13410	// ImageUri: Optional. The public URI to an image file.
13411	ImageUri string `json:"imageUri,omitempty"`
13412
13413	// ForceSendFields is a list of field names (e.g. "AccessibilityText")
13414	// to unconditionally include in API requests. By default, fields with
13415	// empty values are omitted from API requests. However, any non-pointer,
13416	// non-interface field appearing in ForceSendFields will be sent to the
13417	// server regardless of whether the field is empty or not. This may be
13418	// used to include empty fields in Patch requests.
13419	ForceSendFields []string `json:"-"`
13420
13421	// NullFields is a list of field names (e.g. "AccessibilityText") to
13422	// include in API requests with the JSON null value. By default, fields
13423	// with empty values are omitted from API requests. However, any field
13424	// with an empty value appearing in NullFields will be sent to the
13425	// server as null. It is an error if a field in this list has a
13426	// non-empty value. This may be used to include null fields in Patch
13427	// requests.
13428	NullFields []string `json:"-"`
13429}
13430
13431func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
13432	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
13433	raw := NoMethod(*s)
13434	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13435}
13436
13437// GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The
13438// suggestion chip message that allows the user to jump out to the app
13439// or website associated with this agent.
13440type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
13441	// DestinationName: Required. The name of the app or site this chip is
13442	// linking to.
13443	DestinationName string `json:"destinationName,omitempty"`
13444
13445	// Uri: Required. The URI of the app or site to open when the user taps
13446	// the suggestion chip.
13447	Uri string `json:"uri,omitempty"`
13448
13449	// ForceSendFields is a list of field names (e.g. "DestinationName") to
13450	// unconditionally include in API requests. By default, fields with
13451	// empty values are omitted from API requests. However, any non-pointer,
13452	// non-interface field appearing in ForceSendFields will be sent to the
13453	// server regardless of whether the field is empty or not. This may be
13454	// used to include empty fields in Patch requests.
13455	ForceSendFields []string `json:"-"`
13456
13457	// NullFields is a list of field names (e.g. "DestinationName") to
13458	// include in API requests with the JSON null value. By default, fields
13459	// with empty values are omitted from API requests. However, any field
13460	// with an empty value appearing in NullFields will be sent to the
13461	// server as null. It is an error if a field in this list has a
13462	// non-empty value. This may be used to include null fields in Patch
13463	// requests.
13464	NullFields []string `json:"-"`
13465}
13466
13467func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
13468	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
13469	raw := NoMethod(*s)
13470	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13471}
13472
13473// GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for
13474// presenting a list of options to select from.
13475type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
13476	// Items: Required. List items.
13477	Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
13478
13479	// Subtitle: Optional. Subtitle of the list.
13480	Subtitle string `json:"subtitle,omitempty"`
13481
13482	// Title: Optional. The overall title of the list.
13483	Title string `json:"title,omitempty"`
13484
13485	// ForceSendFields is a list of field names (e.g. "Items") to
13486	// unconditionally include in API requests. By default, fields with
13487	// empty values are omitted from API requests. However, any non-pointer,
13488	// non-interface field appearing in ForceSendFields will be sent to the
13489	// server regardless of whether the field is empty or not. This may be
13490	// used to include empty fields in Patch requests.
13491	ForceSendFields []string `json:"-"`
13492
13493	// NullFields is a list of field names (e.g. "Items") to include in API
13494	// requests with the JSON null value. By default, fields with empty
13495	// values are omitted from API requests. However, any field with an
13496	// empty value appearing in NullFields will be sent to the server as
13497	// null. It is an error if a field in this list has a non-empty value.
13498	// This may be used to include null fields in Patch requests.
13499	NullFields []string `json:"-"`
13500}
13501
13502func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
13503	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
13504	raw := NoMethod(*s)
13505	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13506}
13507
13508// GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in
13509// the list.
13510type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
13511	// Description: Optional. The main text describing the item.
13512	Description string `json:"description,omitempty"`
13513
13514	// Image: Optional. The image to display.
13515	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13516
13517	// Info: Required. Additional information about this option.
13518	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
13519
13520	// Title: Required. The title of the list item.
13521	Title string `json:"title,omitempty"`
13522
13523	// ForceSendFields is a list of field names (e.g. "Description") to
13524	// unconditionally include in API requests. By default, fields with
13525	// empty values are omitted from API requests. However, any non-pointer,
13526	// non-interface field appearing in ForceSendFields will be sent to the
13527	// server regardless of whether the field is empty or not. This may be
13528	// used to include empty fields in Patch requests.
13529	ForceSendFields []string `json:"-"`
13530
13531	// NullFields is a list of field names (e.g. "Description") to include
13532	// in API requests with the JSON null value. By default, fields with
13533	// empty values are omitted from API requests. However, any field with
13534	// an empty value appearing in NullFields will be sent to the server as
13535	// null. It is an error if a field in this list has a non-empty value.
13536	// This may be used to include null fields in Patch requests.
13537	NullFields []string `json:"-"`
13538}
13539
13540func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
13541	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
13542	raw := NoMethod(*s)
13543	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13544}
13545
13546// GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media
13547// content card for Actions on Google.
13548type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
13549	// MediaObjects: Required. List of media objects.
13550	MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
13551
13552	// MediaType: Optional. What type of media is the content (ie "audio").
13553	//
13554	// Possible values:
13555	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
13556	//   "AUDIO" - Response media type is audio.
13557	MediaType string `json:"mediaType,omitempty"`
13558
13559	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
13560	// unconditionally include in API requests. By default, fields with
13561	// empty values are omitted from API requests. However, any non-pointer,
13562	// non-interface field appearing in ForceSendFields will be sent to the
13563	// server regardless of whether the field is empty or not. This may be
13564	// used to include empty fields in Patch requests.
13565	ForceSendFields []string `json:"-"`
13566
13567	// NullFields is a list of field names (e.g. "MediaObjects") to include
13568	// in API requests with the JSON null value. By default, fields with
13569	// empty values are omitted from API requests. However, any field with
13570	// an empty value appearing in NullFields will be sent to the server as
13571	// null. It is an error if a field in this list has a non-empty value.
13572	// This may be used to include null fields in Patch requests.
13573	NullFields []string `json:"-"`
13574}
13575
13576func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
13577	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
13578	raw := NoMethod(*s)
13579	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13580}
13581
13582// GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObje
13583// ct: Response media object for media content card.
13584type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
13585	// ContentUrl: Required. Url where the media is stored.
13586	ContentUrl string `json:"contentUrl,omitempty"`
13587
13588	// Description: Optional. Description of media card.
13589	Description string `json:"description,omitempty"`
13590
13591	// Icon: Optional. Icon to display above media content.
13592	Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
13593
13594	// LargeImage: Optional. Image to display above media content.
13595	LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
13596
13597	// Name: Required. Name of media card.
13598	Name string `json:"name,omitempty"`
13599
13600	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
13601	// unconditionally include in API requests. By default, fields with
13602	// empty values are omitted from API requests. However, any non-pointer,
13603	// non-interface field appearing in ForceSendFields will be sent to the
13604	// server regardless of whether the field is empty or not. This may be
13605	// used to include empty fields in Patch requests.
13606	ForceSendFields []string `json:"-"`
13607
13608	// NullFields is a list of field names (e.g. "ContentUrl") to include in
13609	// API requests with the JSON null value. By default, fields with empty
13610	// values are omitted from API requests. However, any field with an
13611	// empty value appearing in NullFields will be sent to the server as
13612	// null. It is an error if a field in this list has a non-empty value.
13613	// This may be used to include null fields in Patch requests.
13614	NullFields []string `json:"-"`
13615}
13616
13617func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
13618	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
13619	raw := NoMethod(*s)
13620	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13621}
13622
13623// GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick
13624// replies response message.
13625type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
13626	// QuickReplies: Optional. The collection of quick replies.
13627	QuickReplies []string `json:"quickReplies,omitempty"`
13628
13629	// Title: Optional. The title of the collection of quick replies.
13630	Title string `json:"title,omitempty"`
13631
13632	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
13633	// unconditionally include in API requests. By default, fields with
13634	// empty values are omitted from API requests. However, any non-pointer,
13635	// non-interface field appearing in ForceSendFields will be sent to the
13636	// server regardless of whether the field is empty or not. This may be
13637	// used to include empty fields in Patch requests.
13638	ForceSendFields []string `json:"-"`
13639
13640	// NullFields is a list of field names (e.g. "QuickReplies") to include
13641	// in API requests with the JSON null value. By default, fields with
13642	// empty values are omitted from API requests. However, any field with
13643	// an empty value appearing in NullFields will be sent to the server as
13644	// null. It is an error if a field in this list has a non-empty value.
13645	// This may be used to include null fields in Patch requests.
13646	NullFields []string `json:"-"`
13647}
13648
13649func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
13650	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
13651	raw := NoMethod(*s)
13652	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13653}
13654
13655// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich
13656// Business Messaging (RBM) Card content
13657type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
13658	// Description: Optional. Description of the card (at most 2000 bytes).
13659	// At least one of the title, description or media must be set.
13660	Description string `json:"description,omitempty"`
13661
13662	// Media: Optional. However at least one of the title, description or
13663	// media must be set. Media (image, GIF or a video) to include in the
13664	// card.
13665	Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
13666
13667	// Suggestions: Optional. List of suggestions to include in the card.
13668	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
13669
13670	// Title: Optional. Title of the card (at most 200 bytes). At least one
13671	// of the title, description or media must be set.
13672	Title string `json:"title,omitempty"`
13673
13674	// ForceSendFields is a list of field names (e.g. "Description") to
13675	// unconditionally include in API requests. By default, fields with
13676	// empty values are omitted from API requests. However, any non-pointer,
13677	// non-interface field appearing in ForceSendFields will be sent to the
13678	// server regardless of whether the field is empty or not. This may be
13679	// used to include empty fields in Patch requests.
13680	ForceSendFields []string `json:"-"`
13681
13682	// NullFields is a list of field names (e.g. "Description") to include
13683	// in API requests with the JSON null value. By default, fields with
13684	// empty values are omitted from API requests. However, any field with
13685	// an empty value appearing in NullFields will be sent to the server as
13686	// null. It is an error if a field in this list has a non-empty value.
13687	// This may be used to include null fields in Patch requests.
13688	NullFields []string `json:"-"`
13689}
13690
13691func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
13692	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
13693	raw := NoMethod(*s)
13694	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13695}
13696
13697// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich
13698// Business Messaging (RBM) Media displayed in Cards The following
13699// media-types are currently supported: Image Types * image/jpeg *
13700// image/jpg' * image/gif * image/png Video Types * video/h263 *
13701// video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm
13702type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
13703	// FileUri: Required. Publicly reachable URI of the file. The RBM
13704	// platform determines the MIME type of the file from the content-type
13705	// field in the HTTP headers when the platform fetches the file. The
13706	// content-type field must be present and accurate in the HTTP response
13707	// from the URL.
13708	FileUri string `json:"fileUri,omitempty"`
13709
13710	// Height: Required for cards with vertical orientation. The height of
13711	// the media within a rich card with a vertical layout. For a standalone
13712	// card with horizontal layout, height is not customizable, and this
13713	// field is ignored.
13714	//
13715	// Possible values:
13716	//   "HEIGHT_UNSPECIFIED" - Not specified.
13717	//   "SHORT" - 112 DP.
13718	//   "MEDIUM" - 168 DP.
13719	//   "TALL" - 264 DP. Not available for rich card carousels when the
13720	// card width is set to small.
13721	Height string `json:"height,omitempty"`
13722
13723	// ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If
13724	// you don't provide a thumbnail URI, the RBM platform displays a blank
13725	// placeholder thumbnail until the user's device downloads the file.
13726	// Depending on the user's setting, the file may not download
13727	// automatically and may require the user to tap a download button.
13728	ThumbnailUri string `json:"thumbnailUri,omitempty"`
13729
13730	// ForceSendFields is a list of field names (e.g. "FileUri") to
13731	// unconditionally include in API requests. By default, fields with
13732	// empty values are omitted from API requests. However, any non-pointer,
13733	// non-interface field appearing in ForceSendFields will be sent to the
13734	// server regardless of whether the field is empty or not. This may be
13735	// used to include empty fields in Patch requests.
13736	ForceSendFields []string `json:"-"`
13737
13738	// NullFields is a list of field names (e.g. "FileUri") to include in
13739	// API requests with the JSON null value. By default, fields with empty
13740	// values are omitted from API requests. However, any field with an
13741	// empty value appearing in NullFields will be sent to the server as
13742	// null. It is an error if a field in this list has a non-empty value.
13743	// This may be used to include null fields in Patch requests.
13744	NullFields []string `json:"-"`
13745}
13746
13747func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
13748	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
13749	raw := NoMethod(*s)
13750	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13751}
13752
13753// GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel
13754// Rich Business Messaging (RBM) rich card. Rich cards allow you to
13755// respond to users with more vivid content, e.g. with media and
13756// suggestions. If you want to show a single card with more control over
13757// the layout, please use RbmStandaloneCard instead.
13758type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
13759	// CardContents: Required. The cards in the carousel. A carousel must
13760	// have at least 2 cards and at most 10.
13761	CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
13762
13763	// CardWidth: Required. The width of the cards in the carousel.
13764	//
13765	// Possible values:
13766	//   "CARD_WIDTH_UNSPECIFIED" - Not specified.
13767	//   "SMALL" - 120 DP. Note that tall media cannot be used.
13768	//   "MEDIUM" - 232 DP.
13769	CardWidth string `json:"cardWidth,omitempty"`
13770
13771	// ForceSendFields is a list of field names (e.g. "CardContents") to
13772	// unconditionally include in API requests. By default, fields with
13773	// empty values are omitted from API requests. However, any non-pointer,
13774	// non-interface field appearing in ForceSendFields will be sent to the
13775	// server regardless of whether the field is empty or not. This may be
13776	// used to include empty fields in Patch requests.
13777	ForceSendFields []string `json:"-"`
13778
13779	// NullFields is a list of field names (e.g. "CardContents") to include
13780	// in API requests with the JSON null value. By default, fields with
13781	// empty values are omitted from API requests. However, any field with
13782	// an empty value appearing in NullFields will be sent to the server as
13783	// null. It is an error if a field in this list has a non-empty value.
13784	// This may be used to include null fields in Patch requests.
13785	NullFields []string `json:"-"`
13786}
13787
13788func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
13789	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
13790	raw := NoMethod(*s)
13791	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13792}
13793
13794// GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard:
13795// Standalone Rich Business Messaging (RBM) rich card. Rich cards allow
13796// you to respond to users with more vivid content, e.g. with media and
13797// suggestions. You can group multiple rich cards into one using
13798// RbmCarouselCard but carousel cards will give you less control over
13799// the card layout.
13800type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
13801	// CardContent: Required. Card content.
13802	CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
13803
13804	// CardOrientation: Required. Orientation of the card.
13805	//
13806	// Possible values:
13807	//   "CARD_ORIENTATION_UNSPECIFIED" - Not specified.
13808	//   "HORIZONTAL" - Horizontal layout.
13809	//   "VERTICAL" - Vertical layout.
13810	CardOrientation string `json:"cardOrientation,omitempty"`
13811
13812	// ThumbnailImageAlignment: Required if orientation is horizontal. Image
13813	// preview alignment for standalone cards with horizontal layout.
13814	//
13815	// Possible values:
13816	//   "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified.
13817	//   "LEFT" - Thumbnail preview is left-aligned.
13818	//   "RIGHT" - Thumbnail preview is right-aligned.
13819	ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
13820
13821	// ForceSendFields is a list of field names (e.g. "CardContent") to
13822	// unconditionally include in API requests. By default, fields with
13823	// empty values are omitted from API requests. However, any non-pointer,
13824	// non-interface field appearing in ForceSendFields will be sent to the
13825	// server regardless of whether the field is empty or not. This may be
13826	// used to include empty fields in Patch requests.
13827	ForceSendFields []string `json:"-"`
13828
13829	// NullFields is a list of field names (e.g. "CardContent") to include
13830	// in API requests with the JSON null value. By default, fields with
13831	// empty values are omitted from API requests. However, any field with
13832	// an empty value appearing in NullFields will be sent to the server as
13833	// null. It is an error if a field in this list has a non-empty value.
13834	// This may be used to include null fields in Patch requests.
13835	NullFields []string `json:"-"`
13836}
13837
13838func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
13839	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
13840	raw := NoMethod(*s)
13841	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13842}
13843
13844// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich
13845// Business Messaging (RBM) suggested client-side action that the user
13846// can choose from the card.
13847type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
13848	// Dial: Suggested client side action: Dial a phone number
13849	Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
13850
13851	// OpenUrl: Suggested client side action: Open a URI on device
13852	OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
13853
13854	// PostbackData: Opaque payload that the Dialogflow receives in a user
13855	// event when the user taps the suggested action. This data will be also
13856	// forwarded to webhook to allow performing custom business logic.
13857	PostbackData string `json:"postbackData,omitempty"`
13858
13859	// ShareLocation: Suggested client side action: Share user location
13860	ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
13861
13862	// Text: Text to display alongside the action.
13863	Text string `json:"text,omitempty"`
13864
13865	// ForceSendFields is a list of field names (e.g. "Dial") to
13866	// unconditionally include in API requests. By default, fields with
13867	// empty values are omitted from API requests. However, any non-pointer,
13868	// non-interface field appearing in ForceSendFields will be sent to the
13869	// server regardless of whether the field is empty or not. This may be
13870	// used to include empty fields in Patch requests.
13871	ForceSendFields []string `json:"-"`
13872
13873	// NullFields is a list of field names (e.g. "Dial") to include in API
13874	// requests with the JSON null value. By default, fields with empty
13875	// values are omitted from API requests. However, any field with an
13876	// empty value appearing in NullFields will be sent to the server as
13877	// null. It is an error if a field in this list has a non-empty value.
13878	// This may be used to include null fields in Patch requests.
13879	NullFields []string `json:"-"`
13880}
13881
13882func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
13883	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
13884	raw := NoMethod(*s)
13885	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13886}
13887
13888// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
13889// dActionDial: Opens the user's default dialer app with the specified
13890// phone number but does not dial automatically.
13891type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
13892	// PhoneNumber: Required. The phone number to fill in the default dialer
13893	// app. This field should be in E.164
13894	// (https://en.wikipedia.org/wiki/E.164) format. An example of a
13895	// correctly formatted phone number: +15556767888.
13896	PhoneNumber string `json:"phoneNumber,omitempty"`
13897
13898	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
13899	// unconditionally include in API requests. By default, fields with
13900	// empty values are omitted from API requests. However, any non-pointer,
13901	// non-interface field appearing in ForceSendFields will be sent to the
13902	// server regardless of whether the field is empty or not. This may be
13903	// used to include empty fields in Patch requests.
13904	ForceSendFields []string `json:"-"`
13905
13906	// NullFields is a list of field names (e.g. "PhoneNumber") to include
13907	// in API requests with the JSON null value. By default, fields with
13908	// empty values are omitted from API requests. However, any field with
13909	// an empty value appearing in NullFields will be sent to the server as
13910	// null. It is an error if a field in this list has a non-empty value.
13911	// This may be used to include null fields in Patch requests.
13912	NullFields []string `json:"-"`
13913}
13914
13915func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
13916	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
13917	raw := NoMethod(*s)
13918	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13919}
13920
13921// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
13922// dActionOpenUri: Opens the user's default web browser app to the
13923// specified uri If the user has an app installed that is registered as
13924// the default handler for the URL, then this app will be opened
13925// instead, and its icon will be used in the suggested action UI.
13926type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
13927	// Uri: Required. The uri to open on the user device
13928	Uri string `json:"uri,omitempty"`
13929
13930	// ForceSendFields is a list of field names (e.g. "Uri") to
13931	// unconditionally include in API requests. By default, fields with
13932	// empty values are omitted from API requests. However, any non-pointer,
13933	// non-interface field appearing in ForceSendFields will be sent to the
13934	// server regardless of whether the field is empty or not. This may be
13935	// used to include empty fields in Patch requests.
13936	ForceSendFields []string `json:"-"`
13937
13938	// NullFields is a list of field names (e.g. "Uri") to include in API
13939	// requests with the JSON null value. By default, fields with empty
13940	// values are omitted from API requests. However, any field with an
13941	// empty value appearing in NullFields will be sent to the server as
13942	// null. It is an error if a field in this list has a non-empty value.
13943	// This may be used to include null fields in Patch requests.
13944	NullFields []string `json:"-"`
13945}
13946
13947func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
13948	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
13949	raw := NoMethod(*s)
13950	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13951}
13952
13953// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
13954// dActionShareLocation: Opens the device's location chooser so the user
13955// can pick a location to send back to the agent.
13956type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
13957}
13958
13959// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich
13960// Business Messaging (RBM) suggested reply that the user can click
13961// instead of typing in their own response.
13962type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
13963	// PostbackData: Opaque payload that the Dialogflow receives in a user
13964	// event when the user taps the suggested reply. This data will be also
13965	// forwarded to webhook to allow performing custom business logic.
13966	PostbackData string `json:"postbackData,omitempty"`
13967
13968	// Text: Suggested reply text.
13969	Text string `json:"text,omitempty"`
13970
13971	// ForceSendFields is a list of field names (e.g. "PostbackData") to
13972	// unconditionally include in API requests. By default, fields with
13973	// empty values are omitted from API requests. However, any non-pointer,
13974	// non-interface field appearing in ForceSendFields will be sent to the
13975	// server regardless of whether the field is empty or not. This may be
13976	// used to include empty fields in Patch requests.
13977	ForceSendFields []string `json:"-"`
13978
13979	// NullFields is a list of field names (e.g. "PostbackData") to include
13980	// in API requests with the JSON null value. By default, fields with
13981	// empty values are omitted from API requests. However, any field with
13982	// an empty value appearing in NullFields will be sent to the server as
13983	// null. It is an error if a field in this list has a non-empty value.
13984	// This may be used to include null fields in Patch requests.
13985	NullFields []string `json:"-"`
13986}
13987
13988func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
13989	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
13990	raw := NoMethod(*s)
13991	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13992}
13993
13994// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business
13995// Messaging (RBM) suggestion. Suggestions allow user to easily
13996// select/click a predefined response or perform an action (like opening
13997// a web uri).
13998type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
13999	// Action: Predefined client side actions that user can choose
14000	Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
14001
14002	// Reply: Predefined replies for user to select instead of typing
14003	Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
14004
14005	// ForceSendFields is a list of field names (e.g. "Action") to
14006	// unconditionally include in API requests. By default, fields with
14007	// empty values are omitted from API requests. However, any non-pointer,
14008	// non-interface field appearing in ForceSendFields will be sent to the
14009	// server regardless of whether the field is empty or not. This may be
14010	// used to include empty fields in Patch requests.
14011	ForceSendFields []string `json:"-"`
14012
14013	// NullFields is a list of field names (e.g. "Action") to include in API
14014	// requests with the JSON null value. By default, fields with empty
14015	// values are omitted from API requests. However, any field with an
14016	// empty value appearing in NullFields will be sent to the server as
14017	// null. It is an error if a field in this list has a non-empty value.
14018	// This may be used to include null fields in Patch requests.
14019	NullFields []string `json:"-"`
14020}
14021
14022func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
14023	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
14024	raw := NoMethod(*s)
14025	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14026}
14027
14028// GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business
14029// Messaging (RBM) text response with suggestions.
14030type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
14031	// RbmSuggestion: Optional. One or more suggestions to show to the user.
14032	RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
14033
14034	// Text: Required. Text sent and displayed to the user.
14035	Text string `json:"text,omitempty"`
14036
14037	// ForceSendFields is a list of field names (e.g. "RbmSuggestion") to
14038	// unconditionally include in API requests. By default, fields with
14039	// empty values are omitted from API requests. However, any non-pointer,
14040	// non-interface field appearing in ForceSendFields will be sent to the
14041	// server regardless of whether the field is empty or not. This may be
14042	// used to include empty fields in Patch requests.
14043	ForceSendFields []string `json:"-"`
14044
14045	// NullFields is a list of field names (e.g. "RbmSuggestion") to include
14046	// in API requests with the JSON null value. By default, fields with
14047	// empty values are omitted from API requests. However, any field with
14048	// an empty value appearing in NullFields will be sent to the server as
14049	// null. It is an error if a field in this list has a non-empty value.
14050	// This may be used to include null fields in Patch requests.
14051	NullFields []string `json:"-"`
14052}
14053
14054func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
14055	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
14056	raw := NoMethod(*s)
14057	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14058}
14059
14060// GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional
14061// info about the select item for when it is triggered in a dialog.
14062type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
14063	// Key: Required. A unique key that will be sent back to the agent if
14064	// this response is given.
14065	Key string `json:"key,omitempty"`
14066
14067	// Synonyms: Optional. A list of synonyms that can also be used to
14068	// trigger this item in dialog.
14069	Synonyms []string `json:"synonyms,omitempty"`
14070
14071	// ForceSendFields is a list of field names (e.g. "Key") to
14072	// unconditionally include in API requests. By default, fields with
14073	// empty values are omitted from API requests. However, any non-pointer,
14074	// non-interface field appearing in ForceSendFields will be sent to the
14075	// server regardless of whether the field is empty or not. This may be
14076	// used to include empty fields in Patch requests.
14077	ForceSendFields []string `json:"-"`
14078
14079	// NullFields is a list of field names (e.g. "Key") to include in API
14080	// requests with the JSON null value. By default, fields with empty
14081	// values are omitted from API requests. However, any field with an
14082	// empty value appearing in NullFields will be sent to the server as
14083	// null. It is an error if a field in this list has a non-empty value.
14084	// This may be used to include null fields in Patch requests.
14085	NullFields []string `json:"-"`
14086}
14087
14088func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
14089	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
14090	raw := NoMethod(*s)
14091	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14092}
14093
14094// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple
14095// response message containing speech or text.
14096type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
14097	// DisplayText: Optional. The text to display.
14098	DisplayText string `json:"displayText,omitempty"`
14099
14100	// Ssml: One of text_to_speech or ssml must be provided. Structured
14101	// spoken response to the user in the SSML format. Mutually exclusive
14102	// with text_to_speech.
14103	Ssml string `json:"ssml,omitempty"`
14104
14105	// TextToSpeech: One of text_to_speech or ssml must be provided. The
14106	// plain text of the speech output. Mutually exclusive with ssml.
14107	TextToSpeech string `json:"textToSpeech,omitempty"`
14108
14109	// ForceSendFields is a list of field names (e.g. "DisplayText") to
14110	// unconditionally include in API requests. By default, fields with
14111	// empty values are omitted from API requests. However, any non-pointer,
14112	// non-interface field appearing in ForceSendFields will be sent to the
14113	// server regardless of whether the field is empty or not. This may be
14114	// used to include empty fields in Patch requests.
14115	ForceSendFields []string `json:"-"`
14116
14117	// NullFields is a list of field names (e.g. "DisplayText") to include
14118	// in API requests with the JSON null value. By default, fields with
14119	// empty values are omitted from API requests. However, any field with
14120	// an empty value appearing in NullFields will be sent to the server as
14121	// null. It is an error if a field in this list has a non-empty value.
14122	// This may be used to include null fields in Patch requests.
14123	NullFields []string `json:"-"`
14124}
14125
14126func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
14127	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
14128	raw := NoMethod(*s)
14129	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14130}
14131
14132// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The
14133// collection of simple response candidates. This message in
14134// `QueryResult.fulfillment_messages` and
14135// `WebhookResponse.fulfillment_messages` should contain only one
14136// `SimpleResponse`.
14137type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
14138	// SimpleResponses: Required. The list of simple responses.
14139	SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
14140
14141	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
14142	// unconditionally include in API requests. By default, fields with
14143	// empty values are omitted from API requests. However, any non-pointer,
14144	// non-interface field appearing in ForceSendFields will be sent to the
14145	// server regardless of whether the field is empty or not. This may be
14146	// used to include empty fields in Patch requests.
14147	ForceSendFields []string `json:"-"`
14148
14149	// NullFields is a list of field names (e.g. "SimpleResponses") to
14150	// include in API requests with the JSON null value. By default, fields
14151	// with empty values are omitted from API requests. However, any field
14152	// with an empty value appearing in NullFields will be sent to the
14153	// server as null. It is an error if a field in this list has a
14154	// non-empty value. This may be used to include null fields in Patch
14155	// requests.
14156	NullFields []string `json:"-"`
14157}
14158
14159func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
14160	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
14161	raw := NoMethod(*s)
14162	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14163}
14164
14165// GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion
14166// chip message that the user can tap to quickly post a reply to the
14167// conversation.
14168type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
14169	// Title: Required. The text shown the in the suggestion chip.
14170	Title string `json:"title,omitempty"`
14171
14172	// ForceSendFields is a list of field names (e.g. "Title") to
14173	// unconditionally include in API requests. By default, fields with
14174	// empty values are omitted from API requests. However, any non-pointer,
14175	// non-interface field appearing in ForceSendFields will be sent to the
14176	// server regardless of whether the field is empty or not. This may be
14177	// used to include empty fields in Patch requests.
14178	ForceSendFields []string `json:"-"`
14179
14180	// NullFields is a list of field names (e.g. "Title") to include in API
14181	// requests with the JSON null value. By default, fields with empty
14182	// values are omitted from API requests. However, any field with an
14183	// empty value appearing in NullFields will be sent to the server as
14184	// null. It is an error if a field in this list has a non-empty value.
14185	// This may be used to include null fields in Patch requests.
14186	NullFields []string `json:"-"`
14187}
14188
14189func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
14190	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
14191	raw := NoMethod(*s)
14192	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14193}
14194
14195// GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection
14196// of suggestions.
14197type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
14198	// Suggestions: Required. The list of suggested replies.
14199	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
14200
14201	// ForceSendFields is a list of field names (e.g. "Suggestions") to
14202	// unconditionally include in API requests. By default, fields with
14203	// empty values are omitted from API requests. However, any non-pointer,
14204	// non-interface field appearing in ForceSendFields will be sent to the
14205	// server regardless of whether the field is empty or not. This may be
14206	// used to include empty fields in Patch requests.
14207	ForceSendFields []string `json:"-"`
14208
14209	// NullFields is a list of field names (e.g. "Suggestions") to include
14210	// in API requests with the JSON null value. By default, fields with
14211	// empty values are omitted from API requests. However, any field with
14212	// an empty value appearing in NullFields will be sent to the server as
14213	// null. It is an error if a field in this list has a non-empty value.
14214	// This may be used to include null fields in Patch requests.
14215	NullFields []string `json:"-"`
14216}
14217
14218func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
14219	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
14220	raw := NoMethod(*s)
14221	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14222}
14223
14224// GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for
14225// Actions on Google.
14226type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
14227	// Buttons: Optional. List of buttons for the card.
14228	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
14229
14230	// ColumnProperties: Optional. Display properties for the columns in
14231	// this table.
14232	ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
14233
14234	// Image: Optional. Image which should be displayed on the card.
14235	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14236
14237	// Rows: Optional. Rows in this table of data.
14238	Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
14239
14240	// Subtitle: Optional. Subtitle to the title.
14241	Subtitle string `json:"subtitle,omitempty"`
14242
14243	// Title: Required. Title of the card.
14244	Title string `json:"title,omitempty"`
14245
14246	// ForceSendFields is a list of field names (e.g. "Buttons") to
14247	// unconditionally include in API requests. By default, fields with
14248	// empty values are omitted from API requests. However, any non-pointer,
14249	// non-interface field appearing in ForceSendFields will be sent to the
14250	// server regardless of whether the field is empty or not. This may be
14251	// used to include empty fields in Patch requests.
14252	ForceSendFields []string `json:"-"`
14253
14254	// NullFields is a list of field names (e.g. "Buttons") to include in
14255	// API requests with the JSON null value. By default, fields with empty
14256	// values are omitted from API requests. However, any field with an
14257	// empty value appearing in NullFields will be sent to the server as
14258	// null. It is an error if a field in this list has a non-empty value.
14259	// This may be used to include null fields in Patch requests.
14260	NullFields []string `json:"-"`
14261}
14262
14263func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
14264	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
14265	raw := NoMethod(*s)
14266	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14267}
14268
14269// GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of
14270// TableCardRow.
14271type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
14272	// Text: Required. Text in this cell.
14273	Text string `json:"text,omitempty"`
14274
14275	// ForceSendFields is a list of field names (e.g. "Text") 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. "Text") to include in API
14284	// requests with the JSON null value. By default, fields with empty
14285	// values are omitted from API requests. However, any field with an
14286	// 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 *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
14293	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
14294	raw := NoMethod(*s)
14295	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14296}
14297
14298// GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of
14299// TableCard.
14300type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
14301	// Cells: Optional. List of cells that make up this row.
14302	Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
14303
14304	// DividerAfter: Optional. Whether to add a visual divider after this
14305	// row.
14306	DividerAfter bool `json:"dividerAfter,omitempty"`
14307
14308	// ForceSendFields is a list of field names (e.g. "Cells") to
14309	// unconditionally include in API requests. By default, fields with
14310	// empty values are omitted from API requests. However, any non-pointer,
14311	// non-interface field appearing in ForceSendFields will be sent to the
14312	// server regardless of whether the field is empty or not. This may be
14313	// used to include empty fields in Patch requests.
14314	ForceSendFields []string `json:"-"`
14315
14316	// NullFields is a list of field names (e.g. "Cells") to include in API
14317	// requests with the JSON null value. By default, fields with empty
14318	// values are omitted from API requests. However, any field with an
14319	// empty value appearing in NullFields will be sent to the server as
14320	// null. It is an error if a field in this list has a non-empty value.
14321	// This may be used to include null fields in Patch requests.
14322	NullFields []string `json:"-"`
14323}
14324
14325func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
14326	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
14327	raw := NoMethod(*s)
14328	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14329}
14330
14331// GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays
14332// audio from a file in Telephony Gateway.
14333type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
14334	// AudioUri: Required. URI to a Google Cloud Storage object containing
14335	// the audio to play, e.g., "gs://bucket/object". The object must
14336	// contain a single channel (mono) of linear PCM audio (2 bytes /
14337	// sample) at 8kHz. This object must be readable by the
14338	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
14339	// where is the number of the Telephony Gateway project (usually the
14340	// same as the Dialogflow agent project). If the Google Cloud Storage
14341	// bucket is in the Telephony Gateway project, this permission is added
14342	// by default when enabling the Dialogflow V2 API. For audio from other
14343	// sources, consider using the `TelephonySynthesizeSpeech` message with
14344	// SSML.
14345	AudioUri string `json:"audioUri,omitempty"`
14346
14347	// ForceSendFields is a list of field names (e.g. "AudioUri") to
14348	// unconditionally include in API requests. By default, fields with
14349	// empty values are omitted from API requests. However, any non-pointer,
14350	// non-interface field appearing in ForceSendFields will be sent to the
14351	// server regardless of whether the field is empty or not. This may be
14352	// used to include empty fields in Patch requests.
14353	ForceSendFields []string `json:"-"`
14354
14355	// NullFields is a list of field names (e.g. "AudioUri") to include in
14356	// API requests with the JSON null value. By default, fields with empty
14357	// values are omitted from API requests. However, any field with an
14358	// empty value appearing in NullFields will be sent to the server as
14359	// null. It is an error if a field in this list has a non-empty value.
14360	// This may be used to include null fields in Patch requests.
14361	NullFields []string `json:"-"`
14362}
14363
14364func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
14365	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
14366	raw := NoMethod(*s)
14367	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14368}
14369
14370// GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech:
14371// Synthesizes speech and plays back the synthesized audio to the caller
14372// in Telephony Gateway. Telephony Gateway takes the synthesizer
14373// settings from `DetectIntentResponse.output_audio_config` which can
14374// either be set at request-level or can come from the agent-level
14375// synthesizer config.
14376type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
14377	// Ssml: The SSML to be synthesized. For more information, see SSML
14378	// (https://developers.google.com/actions/reference/ssml).
14379	Ssml string `json:"ssml,omitempty"`
14380
14381	// Text: The raw text to be synthesized.
14382	Text string `json:"text,omitempty"`
14383
14384	// ForceSendFields is a list of field names (e.g. "Ssml") to
14385	// unconditionally include in API requests. By default, fields with
14386	// empty values are omitted from API requests. However, any non-pointer,
14387	// non-interface field appearing in ForceSendFields will be sent to the
14388	// server regardless of whether the field is empty or not. This may be
14389	// used to include empty fields in Patch requests.
14390	ForceSendFields []string `json:"-"`
14391
14392	// NullFields is a list of field names (e.g. "Ssml") to include in API
14393	// requests with the JSON null value. By default, fields with empty
14394	// values are omitted from API requests. However, any field with an
14395	// empty value appearing in NullFields will be sent to the server as
14396	// null. It is an error if a field in this list has a non-empty value.
14397	// This may be used to include null fields in Patch requests.
14398	NullFields []string `json:"-"`
14399}
14400
14401func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
14402	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
14403	raw := NoMethod(*s)
14404	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14405}
14406
14407// GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall:
14408// Transfers the call in Telephony Gateway.
14409type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
14410	// PhoneNumber: Required. The phone number to transfer the call to in
14411	// E.164 format (https://en.wikipedia.org/wiki/E.164). We currently only
14412	// allow transferring to US numbers (+1xxxyyyzzzz).
14413	PhoneNumber string `json:"phoneNumber,omitempty"`
14414
14415	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
14416	// unconditionally include in API requests. By default, fields with
14417	// empty values are omitted from API requests. However, any non-pointer,
14418	// non-interface field appearing in ForceSendFields will be sent to the
14419	// server regardless of whether the field is empty or not. This may be
14420	// used to include empty fields in Patch requests.
14421	ForceSendFields []string `json:"-"`
14422
14423	// NullFields is a list of field names (e.g. "PhoneNumber") to include
14424	// in API requests with the JSON null value. By default, fields with
14425	// empty values are omitted from API requests. However, any field with
14426	// an empty value appearing in NullFields will be sent to the server as
14427	// null. It is an error if a field in this list has a non-empty value.
14428	// This may be used to include null fields in Patch requests.
14429	NullFields []string `json:"-"`
14430}
14431
14432func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
14433	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
14434	raw := NoMethod(*s)
14435	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14436}
14437
14438// GoogleCloudDialogflowV2beta1IntentMessageText: The text response
14439// message.
14440type GoogleCloudDialogflowV2beta1IntentMessageText struct {
14441	// Text: Optional. The collection of the agent's responses.
14442	Text []string `json:"text,omitempty"`
14443
14444	// ForceSendFields is a list of field names (e.g. "Text") to
14445	// unconditionally include in API requests. By default, fields with
14446	// empty values are omitted from API requests. However, any non-pointer,
14447	// non-interface field appearing in ForceSendFields will be sent to the
14448	// server regardless of whether the field is empty or not. This may be
14449	// used to include empty fields in Patch requests.
14450	ForceSendFields []string `json:"-"`
14451
14452	// NullFields is a list of field names (e.g. "Text") to include in API
14453	// requests with the JSON null value. By default, fields with empty
14454	// values are omitted from API requests. However, any field with an
14455	// empty value appearing in NullFields will be sent to the server as
14456	// null. It is an error if a field in this list has a non-empty value.
14457	// This may be used to include null fields in Patch requests.
14458	NullFields []string `json:"-"`
14459}
14460
14461func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
14462	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
14463	raw := NoMethod(*s)
14464	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14465}
14466
14467// GoogleCloudDialogflowV2beta1IntentParameter: Represents intent
14468// parameters.
14469type GoogleCloudDialogflowV2beta1IntentParameter struct {
14470	// DefaultValue: Optional. The default value to use when the `value`
14471	// yields an empty result. Default values can be extracted from contexts
14472	// by using the following syntax: `#context_name.parameter_name`.
14473	DefaultValue string `json:"defaultValue,omitempty"`
14474
14475	// DisplayName: Required. The name of the parameter.
14476	DisplayName string `json:"displayName,omitempty"`
14477
14478	// EntityTypeDisplayName: Optional. The name of the entity type,
14479	// prefixed with `@`, that describes values of the parameter. If the
14480	// parameter is required, this must be provided.
14481	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
14482
14483	// IsList: Optional. Indicates whether the parameter represents a list
14484	// of values.
14485	IsList bool `json:"isList,omitempty"`
14486
14487	// Mandatory: Optional. Indicates whether the parameter is required.
14488	// That is, whether the intent cannot be completed without collecting
14489	// the parameter value.
14490	Mandatory bool `json:"mandatory,omitempty"`
14491
14492	// Name: The unique identifier of this parameter.
14493	Name string `json:"name,omitempty"`
14494
14495	// Prompts: Optional. The collection of prompts that the agent can
14496	// present to the user in order to collect a value for the parameter.
14497	Prompts []string `json:"prompts,omitempty"`
14498
14499	// Value: Optional. The definition of the parameter value. It can be: -
14500	// a constant string, - a parameter value defined as `$parameter_name`,
14501	// - an original parameter value defined as `$parameter_name.original`,
14502	// - a parameter value from some context defined as
14503	// `#context_name.parameter_name`.
14504	Value string `json:"value,omitempty"`
14505
14506	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
14507	// unconditionally include in API requests. By default, fields with
14508	// empty values are omitted from API requests. However, any non-pointer,
14509	// non-interface field appearing in ForceSendFields will be sent to the
14510	// server regardless of whether the field is empty or not. This may be
14511	// used to include empty fields in Patch requests.
14512	ForceSendFields []string `json:"-"`
14513
14514	// NullFields is a list of field names (e.g. "DefaultValue") to include
14515	// in API requests with the JSON null value. By default, fields with
14516	// empty values are omitted from API requests. However, any field with
14517	// an empty value appearing in NullFields will be sent to the server as
14518	// null. It is an error if a field in this list has a non-empty value.
14519	// This may be used to include null fields in Patch requests.
14520	NullFields []string `json:"-"`
14521}
14522
14523func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
14524	type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
14525	raw := NoMethod(*s)
14526	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14527}
14528
14529// GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an
14530// example that the agent is trained on.
14531type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
14532	// Name: Output only. The unique identifier of this training phrase.
14533	Name string `json:"name,omitempty"`
14534
14535	// Parts: Required. The ordered list of training phrase parts. The parts
14536	// are concatenated in order to form the training phrase. Note: The API
14537	// does not automatically annotate training phrases like the Dialogflow
14538	// Console does. Note: Do not forget to include whitespace at part
14539	// boundaries, so the training phrase is well formatted when the parts
14540	// are concatenated. If the training phrase does not need to be
14541	// annotated with parameters, you just need a single part with only the
14542	// Part.text field set. If you want to annotate the training phrase, you
14543	// must create multiple parts, where the fields of each part are
14544	// populated in one of two ways: - `Part.text` is set to a part of the
14545	// phrase that has no parameters. - `Part.text` is set to a part of the
14546	// phrase that you want to annotate, and the `entity_type`, `alias`, and
14547	// `user_defined` fields are all set.
14548	Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
14549
14550	// TimesAddedCount: Optional. Indicates how many times this example was
14551	// added to the intent. Each time a developer adds an existing sample by
14552	// editing an intent or training, this counter is increased.
14553	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
14554
14555	// Type: Required. The type of the training phrase.
14556	//
14557	// Possible values:
14558	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be
14559	// used.
14560	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names,
14561	// but example parts can be annotated with entity types.
14562	//   "TEMPLATE" - Templates are not annotated with entity types, but
14563	// they can contain @-prefixed entity type names as substrings. Template
14564	// mode has been deprecated. Example mode is the only supported way to
14565	// create new training phrases. If you have existing training phrases
14566	// that you've created in template mode, those will continue to work.
14567	Type string `json:"type,omitempty"`
14568
14569	// ForceSendFields is a list of field names (e.g. "Name") to
14570	// unconditionally include in API requests. By default, fields with
14571	// empty values are omitted from API requests. However, any non-pointer,
14572	// non-interface field appearing in ForceSendFields will be sent to the
14573	// server regardless of whether the field is empty or not. This may be
14574	// used to include empty fields in Patch requests.
14575	ForceSendFields []string `json:"-"`
14576
14577	// NullFields is a list of field names (e.g. "Name") to include in API
14578	// requests with the JSON null value. By default, fields with empty
14579	// values are omitted from API requests. However, any field with an
14580	// empty value appearing in NullFields will be sent to the server as
14581	// null. It is an error if a field in this list has a non-empty value.
14582	// This may be used to include null fields in Patch requests.
14583	NullFields []string `json:"-"`
14584}
14585
14586func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
14587	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
14588	raw := NoMethod(*s)
14589	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14590}
14591
14592// GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a
14593// part of a training phrase.
14594type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
14595	// Alias: Optional. The parameter name for the value extracted from the
14596	// annotated part of the example. This field is required for annotated
14597	// parts of the training phrase.
14598	Alias string `json:"alias,omitempty"`
14599
14600	// EntityType: Optional. The entity type name prefixed with `@`. This
14601	// field is required for annotated parts of the training phrase.
14602	EntityType string `json:"entityType,omitempty"`
14603
14604	// Text: Required. The text for this part.
14605	Text string `json:"text,omitempty"`
14606
14607	// UserDefined: Optional. Indicates whether the text was manually
14608	// annotated. This field is set to true when the Dialogflow Console is
14609	// used to manually annotate the part. When creating an annotated part
14610	// with the API, you must set this to true.
14611	UserDefined bool `json:"userDefined,omitempty"`
14612
14613	// ForceSendFields is a list of field names (e.g. "Alias") to
14614	// unconditionally include in API requests. By default, fields with
14615	// empty values are omitted from API requests. However, any non-pointer,
14616	// non-interface field appearing in ForceSendFields will be sent to the
14617	// server regardless of whether the field is empty or not. This may be
14618	// used to include empty fields in Patch requests.
14619	ForceSendFields []string `json:"-"`
14620
14621	// NullFields is a list of field names (e.g. "Alias") to include in API
14622	// requests with the JSON null value. By default, fields with empty
14623	// values are omitted from API requests. However, any field with an
14624	// empty value appearing in NullFields will be sent to the server as
14625	// null. It is an error if a field in this list has a non-empty value.
14626	// This may be used to include null fields in Patch requests.
14627	NullFields []string `json:"-"`
14628}
14629
14630func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
14631	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
14632	raw := NoMethod(*s)
14633	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14634}
14635
14636// GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result
14637// of querying a Knowledge base.
14638type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
14639	// Answers: A list of answers from Knowledge Connector.
14640	Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
14641
14642	// ForceSendFields is a list of field names (e.g. "Answers") to
14643	// unconditionally include in API requests. By default, fields with
14644	// empty values are omitted from API requests. However, any non-pointer,
14645	// non-interface field appearing in ForceSendFields will be sent to the
14646	// server regardless of whether the field is empty or not. This may be
14647	// used to include empty fields in Patch requests.
14648	ForceSendFields []string `json:"-"`
14649
14650	// NullFields is a list of field names (e.g. "Answers") to include in
14651	// API requests with the JSON null value. By default, fields with empty
14652	// values are omitted from API requests. However, any field with an
14653	// empty value appearing in NullFields will be sent to the server as
14654	// null. It is an error if a field in this list has a non-empty value.
14655	// This may be used to include null fields in Patch requests.
14656	NullFields []string `json:"-"`
14657}
14658
14659func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
14660	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
14661	raw := NoMethod(*s)
14662	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14663}
14664
14665// GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from
14666// Knowledge Connector.
14667type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
14668	// Answer: The piece of text from the `source` knowledge base document
14669	// that answers this conversational query.
14670	Answer string `json:"answer,omitempty"`
14671
14672	// FaqQuestion: The corresponding FAQ question if the answer was
14673	// extracted from a FAQ Document, empty otherwise.
14674	FaqQuestion string `json:"faqQuestion,omitempty"`
14675
14676	// MatchConfidence: The system's confidence score that this Knowledge
14677	// answer is a good match for this conversational query. The range is
14678	// from 0.0 (completely uncertain) to 1.0 (completely certain). Note:
14679	// The confidence score is likely to vary somewhat (possibly even for
14680	// identical requests), as the underlying model is under constant
14681	// improvement. It may be deprecated in the future. We recommend using
14682	// `match_confidence_level` which should be generally more stable.
14683	MatchConfidence float64 `json:"matchConfidence,omitempty"`
14684
14685	// MatchConfidenceLevel: The system's confidence level that this
14686	// knowledge answer is a good match for this conversational query. NOTE:
14687	// The confidence level for a given `` pair may change without notice,
14688	// as it depends on models that are constantly being improved. However,
14689	// it will change less frequently than the confidence score below, and
14690	// should be preferred for referencing the quality of an answer.
14691	//
14692	// Possible values:
14693	//   "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified.
14694	//   "LOW" - Indicates that the confidence is low.
14695	//   "MEDIUM" - Indicates our confidence is medium.
14696	//   "HIGH" - Indicates our confidence is high.
14697	MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
14698
14699	// Source: Indicates which Knowledge Document this answer was extracted
14700	// from. Format: `projects//knowledgeBases//documents/`.
14701	Source string `json:"source,omitempty"`
14702
14703	// ForceSendFields is a list of field names (e.g. "Answer") to
14704	// unconditionally include in API requests. By default, fields with
14705	// empty values are omitted from API requests. However, any non-pointer,
14706	// non-interface field appearing in ForceSendFields will be sent to the
14707	// server regardless of whether the field is empty or not. This may be
14708	// used to include empty fields in Patch requests.
14709	ForceSendFields []string `json:"-"`
14710
14711	// NullFields is a list of field names (e.g. "Answer") to include in API
14712	// requests with the JSON null value. By default, fields with empty
14713	// values are omitted from API requests. However, any field with an
14714	// empty value appearing in NullFields will be sent to the server as
14715	// null. It is an error if a field in this list has a non-empty value.
14716	// This may be used to include null fields in Patch requests.
14717	NullFields []string `json:"-"`
14718}
14719
14720func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
14721	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
14722	raw := NoMethod(*s)
14723	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14724}
14725
14726func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
14727	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
14728	var s1 struct {
14729		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
14730		*NoMethod
14731	}
14732	s1.NoMethod = (*NoMethod)(s)
14733	if err := json.Unmarshal(data, &s1); err != nil {
14734		return err
14735	}
14736	s.MatchConfidence = float64(s1.MatchConfidence)
14737	return nil
14738}
14739
14740// GoogleCloudDialogflowV2beta1KnowledgeBase: A knowledge base
14741// represents a collection of knowledge documents that you provide to
14742// Dialogflow. Your knowledge documents contain information that may be
14743// useful during conversations with end-users. Some Dialogflow features
14744// use knowledge bases when looking for a response to an end-user input.
14745// For more information, see the knowledge base guide
14746// (https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note:
14747// The `projects.agent.knowledgeBases` resource is deprecated; only use
14748// `projects.knowledgeBases`.
14749type GoogleCloudDialogflowV2beta1KnowledgeBase struct {
14750	// DisplayName: Required. The display name of the knowledge base. The
14751	// name must be 1024 bytes or less; otherwise, the creation request
14752	// fails.
14753	DisplayName string `json:"displayName,omitempty"`
14754
14755	// LanguageCode: Language which represents the KnowledgeBase. When the
14756	// KnowledgeBase is created/updated, this is populated for all non en-us
14757	// languages. If not populated, the default language en-us applies.
14758	LanguageCode string `json:"languageCode,omitempty"`
14759
14760	// Name: The knowledge base resource name. The name must be empty when
14761	// creating a knowledge base. Format:
14762	// `projects//locations//knowledgeBases/`.
14763	Name string `json:"name,omitempty"`
14764
14765	// ServerResponse contains the HTTP response code and headers from the
14766	// server.
14767	googleapi.ServerResponse `json:"-"`
14768
14769	// ForceSendFields is a list of field names (e.g. "DisplayName") to
14770	// unconditionally include in API requests. By default, fields with
14771	// empty values are omitted from API requests. However, any non-pointer,
14772	// non-interface field appearing in ForceSendFields will be sent to the
14773	// server regardless of whether the field is empty or not. This may be
14774	// used to include empty fields in Patch requests.
14775	ForceSendFields []string `json:"-"`
14776
14777	// NullFields is a list of field names (e.g. "DisplayName") to include
14778	// in API requests with the JSON null value. By default, fields with
14779	// empty values are omitted from API requests. However, any field with
14780	// an empty value appearing in NullFields will be sent to the server as
14781	// null. It is an error if a field in this list has a non-empty value.
14782	// This may be used to include null fields in Patch requests.
14783	NullFields []string `json:"-"`
14784}
14785
14786func (s *GoogleCloudDialogflowV2beta1KnowledgeBase) MarshalJSON() ([]byte, error) {
14787	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeBase
14788	raw := NoMethod(*s)
14789	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14790}
14791
14792// GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in
14793// google::longrunning::Operation for Knowledge operations.
14794type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
14795	// State: Required. Output only. The current state of this operation.
14796	//
14797	// Possible values:
14798	//   "STATE_UNSPECIFIED" - State unspecified.
14799	//   "PENDING" - The operation has been created.
14800	//   "RUNNING" - The operation is currently running.
14801	//   "DONE" - The operation is done, either cancelled or completed.
14802	State string `json:"state,omitempty"`
14803
14804	// ForceSendFields is a list of field names (e.g. "State") to
14805	// unconditionally include in API requests. By default, fields with
14806	// empty values are omitted from API requests. However, any non-pointer,
14807	// non-interface field appearing in ForceSendFields will be sent to the
14808	// server regardless of whether the field is empty or not. This may be
14809	// used to include empty fields in Patch requests.
14810	ForceSendFields []string `json:"-"`
14811
14812	// NullFields is a list of field names (e.g. "State") to include in API
14813	// requests with the JSON null value. By default, fields with empty
14814	// values are omitted from API requests. However, any field with an
14815	// empty value appearing in NullFields will be sent to the server as
14816	// null. It is an error if a field in this list has a non-empty value.
14817	// This may be used to include null fields in Patch requests.
14818	NullFields []string `json:"-"`
14819}
14820
14821func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
14822	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
14823	raw := NoMethod(*s)
14824	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14825}
14826
14827// GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse: Response
14828// message for AnswerRecords.ListAnswerRecords.
14829type GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse struct {
14830	// AnswerRecords: The list of answer records.
14831	AnswerRecords []*GoogleCloudDialogflowV2beta1AnswerRecord `json:"answerRecords,omitempty"`
14832
14833	// NextPageToken: A token to retrieve next page of results. Or empty if
14834	// there are no more results. Pass this value in the
14835	// ListAnswerRecordsRequest.page_token field in the subsequent call to
14836	// `ListAnswerRecords` method to retrieve the next page of results.
14837	NextPageToken string `json:"nextPageToken,omitempty"`
14838
14839	// ServerResponse contains the HTTP response code and headers from the
14840	// server.
14841	googleapi.ServerResponse `json:"-"`
14842
14843	// ForceSendFields is a list of field names (e.g. "AnswerRecords") to
14844	// unconditionally include in API requests. By default, fields with
14845	// empty values are omitted from API requests. However, any non-pointer,
14846	// non-interface field appearing in ForceSendFields will be sent to the
14847	// server regardless of whether the field is empty or not. This may be
14848	// used to include empty fields in Patch requests.
14849	ForceSendFields []string `json:"-"`
14850
14851	// NullFields is a list of field names (e.g. "AnswerRecords") to include
14852	// in API requests with the JSON null value. By default, fields with
14853	// empty values are omitted from API requests. However, any field with
14854	// an empty value appearing in NullFields will be sent to the server as
14855	// null. It is an error if a field in this list has a non-empty value.
14856	// This may be used to include null fields in Patch requests.
14857	NullFields []string `json:"-"`
14858}
14859
14860func (s *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) MarshalJSON() ([]byte, error) {
14861	type NoMethod GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
14862	raw := NoMethod(*s)
14863	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14864}
14865
14866// GoogleCloudDialogflowV2beta1ListContextsResponse: The response
14867// message for Contexts.ListContexts.
14868type GoogleCloudDialogflowV2beta1ListContextsResponse struct {
14869	// Contexts: The list of contexts. There will be a maximum number of
14870	// items returned based on the page_size field in the request.
14871	Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
14872
14873	// NextPageToken: Token to retrieve the next page of results, or empty
14874	// if there are no more results in the list.
14875	NextPageToken string `json:"nextPageToken,omitempty"`
14876
14877	// ServerResponse contains the HTTP response code and headers from the
14878	// server.
14879	googleapi.ServerResponse `json:"-"`
14880
14881	// ForceSendFields is a list of field names (e.g. "Contexts") to
14882	// unconditionally include in API requests. By default, fields with
14883	// empty values are omitted from API requests. However, any non-pointer,
14884	// non-interface field appearing in ForceSendFields will be sent to the
14885	// server regardless of whether the field is empty or not. This may be
14886	// used to include empty fields in Patch requests.
14887	ForceSendFields []string `json:"-"`
14888
14889	// NullFields is a list of field names (e.g. "Contexts") to include in
14890	// API requests with the JSON null value. By default, fields with empty
14891	// values are omitted from API requests. However, any field with an
14892	// empty value appearing in NullFields will be sent to the server as
14893	// null. It is an error if a field in this list has a non-empty value.
14894	// This may be used to include null fields in Patch requests.
14895	NullFields []string `json:"-"`
14896}
14897
14898func (s *GoogleCloudDialogflowV2beta1ListContextsResponse) MarshalJSON() ([]byte, error) {
14899	type NoMethod GoogleCloudDialogflowV2beta1ListContextsResponse
14900	raw := NoMethod(*s)
14901	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14902}
14903
14904// GoogleCloudDialogflowV2beta1ListConversationProfilesResponse: The
14905// response message for ConversationProfiles.ListConversationProfiles.
14906type GoogleCloudDialogflowV2beta1ListConversationProfilesResponse struct {
14907	// ConversationProfiles: The list of project conversation profiles.
14908	// There is a maximum number of items returned based on the page_size
14909	// field in the request.
14910	ConversationProfiles []*GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfiles,omitempty"`
14911
14912	// NextPageToken: Token to retrieve the next page of results, or empty
14913	// if there are no more results in the list.
14914	NextPageToken string `json:"nextPageToken,omitempty"`
14915
14916	// ServerResponse contains the HTTP response code and headers from the
14917	// server.
14918	googleapi.ServerResponse `json:"-"`
14919
14920	// ForceSendFields is a list of field names (e.g.
14921	// "ConversationProfiles") to unconditionally include in API requests.
14922	// By default, fields with empty values are omitted from API requests.
14923	// However, any non-pointer, non-interface field appearing in
14924	// ForceSendFields will be sent to the server regardless of whether the
14925	// field is empty or not. This may be used to include empty fields in
14926	// Patch requests.
14927	ForceSendFields []string `json:"-"`
14928
14929	// NullFields is a list of field names (e.g. "ConversationProfiles") to
14930	// include in API requests with the JSON null value. By default, fields
14931	// with empty values are omitted from API requests. However, any field
14932	// with an empty value appearing in NullFields will be sent to the
14933	// server as null. It is an error if a field in this list has a
14934	// non-empty value. This may be used to include null fields in Patch
14935	// requests.
14936	NullFields []string `json:"-"`
14937}
14938
14939func (s *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) MarshalJSON() ([]byte, error) {
14940	type NoMethod GoogleCloudDialogflowV2beta1ListConversationProfilesResponse
14941	raw := NoMethod(*s)
14942	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14943}
14944
14945// GoogleCloudDialogflowV2beta1ListConversationsResponse: The response
14946// message for Conversations.ListConversations.
14947type GoogleCloudDialogflowV2beta1ListConversationsResponse struct {
14948	// Conversations: The list of conversations. There will be a maximum
14949	// number of items returned based on the page_size field in the request.
14950	Conversations []*GoogleCloudDialogflowV2beta1Conversation `json:"conversations,omitempty"`
14951
14952	// NextPageToken: Token to retrieve the next page of results, or empty
14953	// if there are no more results in the list.
14954	NextPageToken string `json:"nextPageToken,omitempty"`
14955
14956	// ServerResponse contains the HTTP response code and headers from the
14957	// server.
14958	googleapi.ServerResponse `json:"-"`
14959
14960	// ForceSendFields is a list of field names (e.g. "Conversations") to
14961	// unconditionally include in API requests. By default, fields with
14962	// empty values are omitted from API requests. However, any non-pointer,
14963	// non-interface field appearing in ForceSendFields will be sent to the
14964	// server regardless of whether the field is empty or not. This may be
14965	// used to include empty fields in Patch requests.
14966	ForceSendFields []string `json:"-"`
14967
14968	// NullFields is a list of field names (e.g. "Conversations") to include
14969	// in API requests with the JSON null value. By default, fields with
14970	// empty values are omitted from API requests. However, any field with
14971	// an empty value appearing in NullFields will be sent to the server as
14972	// null. It is an error if a field in this list has a non-empty value.
14973	// This may be used to include null fields in Patch requests.
14974	NullFields []string `json:"-"`
14975}
14976
14977func (s *GoogleCloudDialogflowV2beta1ListConversationsResponse) MarshalJSON() ([]byte, error) {
14978	type NoMethod GoogleCloudDialogflowV2beta1ListConversationsResponse
14979	raw := NoMethod(*s)
14980	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14981}
14982
14983// GoogleCloudDialogflowV2beta1ListDocumentsResponse: Response message
14984// for Documents.ListDocuments.
14985type GoogleCloudDialogflowV2beta1ListDocumentsResponse struct {
14986	// Documents: The list of documents.
14987	Documents []*GoogleCloudDialogflowV2beta1Document `json:"documents,omitempty"`
14988
14989	// NextPageToken: Token to retrieve the next page of results, or empty
14990	// if there are no more results in the list.
14991	NextPageToken string `json:"nextPageToken,omitempty"`
14992
14993	// ServerResponse contains the HTTP response code and headers from the
14994	// server.
14995	googleapi.ServerResponse `json:"-"`
14996
14997	// ForceSendFields is a list of field names (e.g. "Documents") to
14998	// unconditionally include in API requests. By default, fields with
14999	// empty values are omitted from API requests. However, any non-pointer,
15000	// non-interface field appearing in ForceSendFields will be sent to the
15001	// server regardless of whether the field is empty or not. This may be
15002	// used to include empty fields in Patch requests.
15003	ForceSendFields []string `json:"-"`
15004
15005	// NullFields is a list of field names (e.g. "Documents") to include in
15006	// API requests with the JSON null value. By default, fields with empty
15007	// values are omitted from API requests. However, any field with an
15008	// empty value appearing in NullFields will be sent to the server as
15009	// null. It is an error if a field in this list has a non-empty value.
15010	// This may be used to include null fields in Patch requests.
15011	NullFields []string `json:"-"`
15012}
15013
15014func (s *GoogleCloudDialogflowV2beta1ListDocumentsResponse) MarshalJSON() ([]byte, error) {
15015	type NoMethod GoogleCloudDialogflowV2beta1ListDocumentsResponse
15016	raw := NoMethod(*s)
15017	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15018}
15019
15020// GoogleCloudDialogflowV2beta1ListEntityTypesResponse: The response
15021// message for EntityTypes.ListEntityTypes.
15022type GoogleCloudDialogflowV2beta1ListEntityTypesResponse struct {
15023	// EntityTypes: The list of agent entity types. There will be a maximum
15024	// number of items returned based on the page_size field in the request.
15025	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
15026
15027	// NextPageToken: Token to retrieve the next page of results, or empty
15028	// if there are no more results in the list.
15029	NextPageToken string `json:"nextPageToken,omitempty"`
15030
15031	// ServerResponse contains the HTTP response code and headers from the
15032	// server.
15033	googleapi.ServerResponse `json:"-"`
15034
15035	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
15036	// unconditionally include in API requests. By default, fields with
15037	// empty values are omitted from API requests. However, any non-pointer,
15038	// non-interface field appearing in ForceSendFields will be sent to the
15039	// server regardless of whether the field is empty or not. This may be
15040	// used to include empty fields in Patch requests.
15041	ForceSendFields []string `json:"-"`
15042
15043	// NullFields is a list of field names (e.g. "EntityTypes") to include
15044	// in API requests with the JSON null value. By default, fields with
15045	// empty values are omitted from API requests. However, any field with
15046	// an empty value appearing in NullFields will be sent to the server as
15047	// null. It is an error if a field in this list has a non-empty value.
15048	// This may be used to include null fields in Patch requests.
15049	NullFields []string `json:"-"`
15050}
15051
15052func (s *GoogleCloudDialogflowV2beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
15053	type NoMethod GoogleCloudDialogflowV2beta1ListEntityTypesResponse
15054	raw := NoMethod(*s)
15055	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15056}
15057
15058// GoogleCloudDialogflowV2beta1ListEnvironmentsResponse: The response
15059// message for Environments.ListEnvironments.
15060type GoogleCloudDialogflowV2beta1ListEnvironmentsResponse struct {
15061	// Environments: The list of agent environments. There will be a maximum
15062	// number of items returned based on the page_size field in the request.
15063	Environments []*GoogleCloudDialogflowV2beta1Environment `json:"environments,omitempty"`
15064
15065	// NextPageToken: Token to retrieve the next page of results, or empty
15066	// if there are no more results in the list.
15067	NextPageToken string `json:"nextPageToken,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. "Environments") 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. "Environments") 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 *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
15091	type NoMethod GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
15092	raw := NoMethod(*s)
15093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15094}
15095
15096// GoogleCloudDialogflowV2beta1ListIntentsResponse: The response message
15097// for Intents.ListIntents.
15098type GoogleCloudDialogflowV2beta1ListIntentsResponse struct {
15099	// Intents: The list of agent intents. There will be a maximum number of
15100	// items returned based on the page_size field in the request.
15101	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
15102
15103	// NextPageToken: Token to retrieve the next page of results, or empty
15104	// if there are no more results in the list.
15105	NextPageToken string `json:"nextPageToken,omitempty"`
15106
15107	// ServerResponse contains the HTTP response code and headers from the
15108	// server.
15109	googleapi.ServerResponse `json:"-"`
15110
15111	// ForceSendFields is a list of field names (e.g. "Intents") to
15112	// unconditionally include in API requests. By default, fields with
15113	// empty values are omitted from API requests. However, any non-pointer,
15114	// non-interface field appearing in ForceSendFields will be sent to the
15115	// server regardless of whether the field is empty or not. This may be
15116	// used to include empty fields in Patch requests.
15117	ForceSendFields []string `json:"-"`
15118
15119	// NullFields is a list of field names (e.g. "Intents") to include in
15120	// API requests with the JSON null value. By default, fields with empty
15121	// values are omitted from API requests. However, any field with an
15122	// empty value appearing in NullFields will be sent to the server as
15123	// null. It is an error if a field in this list has a non-empty value.
15124	// This may be used to include null fields in Patch requests.
15125	NullFields []string `json:"-"`
15126}
15127
15128func (s *GoogleCloudDialogflowV2beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
15129	type NoMethod GoogleCloudDialogflowV2beta1ListIntentsResponse
15130	raw := NoMethod(*s)
15131	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15132}
15133
15134// GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse: Response
15135// message for KnowledgeBases.ListKnowledgeBases.
15136type GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse struct {
15137	// KnowledgeBases: The list of knowledge bases.
15138	KnowledgeBases []*GoogleCloudDialogflowV2beta1KnowledgeBase `json:"knowledgeBases,omitempty"`
15139
15140	// NextPageToken: Token to retrieve the next page of results, or empty
15141	// if there are no more results in the list.
15142	NextPageToken string `json:"nextPageToken,omitempty"`
15143
15144	// ServerResponse contains the HTTP response code and headers from the
15145	// server.
15146	googleapi.ServerResponse `json:"-"`
15147
15148	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
15149	// unconditionally include in API requests. By default, fields with
15150	// empty values are omitted from API requests. However, any non-pointer,
15151	// non-interface field appearing in ForceSendFields will be sent to the
15152	// server regardless of whether the field is empty or not. This may be
15153	// used to include empty fields in Patch requests.
15154	ForceSendFields []string `json:"-"`
15155
15156	// NullFields is a list of field names (e.g. "KnowledgeBases") to
15157	// include in API requests with the JSON null value. By default, fields
15158	// with empty values are omitted from API requests. However, any field
15159	// with an empty value appearing in NullFields will be sent to the
15160	// server as null. It is an error if a field in this list has a
15161	// non-empty value. This may be used to include null fields in Patch
15162	// requests.
15163	NullFields []string `json:"-"`
15164}
15165
15166func (s *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) MarshalJSON() ([]byte, error) {
15167	type NoMethod GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse
15168	raw := NoMethod(*s)
15169	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15170}
15171
15172// GoogleCloudDialogflowV2beta1ListMessagesResponse: The response
15173// message for Conversations.ListMessages.
15174type GoogleCloudDialogflowV2beta1ListMessagesResponse struct {
15175	// Messages: Required. The list of messages. There will be a maximum
15176	// number of items returned based on the page_size field in the request.
15177	// `messages` is sorted by `create_time` in descending order.
15178	Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
15179
15180	// NextPageToken: Optional. Token to retrieve the next page of results,
15181	// or empty if there are no more results in the list.
15182	NextPageToken string `json:"nextPageToken,omitempty"`
15183
15184	// ServerResponse contains the HTTP response code and headers from the
15185	// server.
15186	googleapi.ServerResponse `json:"-"`
15187
15188	// ForceSendFields is a list of field names (e.g. "Messages") to
15189	// unconditionally include in API requests. By default, fields with
15190	// empty values are omitted from API requests. However, any non-pointer,
15191	// non-interface field appearing in ForceSendFields will be sent to the
15192	// server regardless of whether the field is empty or not. This may be
15193	// used to include empty fields in Patch requests.
15194	ForceSendFields []string `json:"-"`
15195
15196	// NullFields is a list of field names (e.g. "Messages") to include in
15197	// API requests with the JSON null value. By default, fields with empty
15198	// values are omitted from API requests. However, any field with an
15199	// empty value appearing in NullFields will be sent to the server as
15200	// null. It is an error if a field in this list has a non-empty value.
15201	// This may be used to include null fields in Patch requests.
15202	NullFields []string `json:"-"`
15203}
15204
15205func (s *GoogleCloudDialogflowV2beta1ListMessagesResponse) MarshalJSON() ([]byte, error) {
15206	type NoMethod GoogleCloudDialogflowV2beta1ListMessagesResponse
15207	raw := NoMethod(*s)
15208	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15209}
15210
15211// GoogleCloudDialogflowV2beta1ListParticipantsResponse: The response
15212// message for Participants.ListParticipants.
15213type GoogleCloudDialogflowV2beta1ListParticipantsResponse struct {
15214	// NextPageToken: Token to retrieve the next page of results or empty if
15215	// there are no more results in the list.
15216	NextPageToken string `json:"nextPageToken,omitempty"`
15217
15218	// Participants: The list of participants. There is a maximum number of
15219	// items returned based on the page_size field in the request.
15220	Participants []*GoogleCloudDialogflowV2beta1Participant `json:"participants,omitempty"`
15221
15222	// ServerResponse contains the HTTP response code and headers from the
15223	// server.
15224	googleapi.ServerResponse `json:"-"`
15225
15226	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15227	// unconditionally include in API requests. By default, fields with
15228	// empty values are omitted from API requests. However, any non-pointer,
15229	// non-interface field appearing in ForceSendFields will be sent to the
15230	// server regardless of whether the field is empty or not. This may be
15231	// used to include empty fields in Patch requests.
15232	ForceSendFields []string `json:"-"`
15233
15234	// NullFields is a list of field names (e.g. "NextPageToken") to include
15235	// in API requests with the JSON null value. By default, fields with
15236	// empty values are omitted from API requests. However, any field with
15237	// an empty value appearing in NullFields will be sent to the server as
15238	// null. It is an error if a field in this list has a non-empty value.
15239	// This may be used to include null fields in Patch requests.
15240	NullFields []string `json:"-"`
15241}
15242
15243func (s *GoogleCloudDialogflowV2beta1ListParticipantsResponse) MarshalJSON() ([]byte, error) {
15244	type NoMethod GoogleCloudDialogflowV2beta1ListParticipantsResponse
15245	raw := NoMethod(*s)
15246	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15247}
15248
15249// GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse: The
15250// response message for SessionEntityTypes.ListSessionEntityTypes.
15251type GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse struct {
15252	// NextPageToken: Token to retrieve the next page of results, or empty
15253	// if there are no more results in the list.
15254	NextPageToken string `json:"nextPageToken,omitempty"`
15255
15256	// SessionEntityTypes: The list of session entity types. There will be a
15257	// maximum number of items returned based on the page_size field in the
15258	// request.
15259	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
15260
15261	// ServerResponse contains the HTTP response code and headers from the
15262	// server.
15263	googleapi.ServerResponse `json:"-"`
15264
15265	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15266	// unconditionally include in API requests. By default, fields with
15267	// empty values are omitted from API requests. However, any non-pointer,
15268	// non-interface field appearing in ForceSendFields will be sent to the
15269	// server regardless of whether the field is empty or not. This may be
15270	// used to include empty fields in Patch requests.
15271	ForceSendFields []string `json:"-"`
15272
15273	// NullFields is a list of field names (e.g. "NextPageToken") to include
15274	// in API requests with the JSON null value. By default, fields with
15275	// empty values are omitted from API requests. However, any field with
15276	// an empty value appearing in NullFields will be sent to the server as
15277	// null. It is an error if a field in this list has a non-empty value.
15278	// This may be used to include null fields in Patch requests.
15279	NullFields []string `json:"-"`
15280}
15281
15282func (s *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
15283	type NoMethod GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
15284	raw := NoMethod(*s)
15285	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15286}
15287
15288// GoogleCloudDialogflowV2beta1ListSuggestionsResponse: The response
15289// message for Participants.ListSuggestions.
15290type GoogleCloudDialogflowV2beta1ListSuggestionsResponse struct {
15291	// NextPageToken: Optional. Token to retrieve the next page of results
15292	// or empty if there are no more results in the list.
15293	NextPageToken string `json:"nextPageToken,omitempty"`
15294
15295	// Suggestions: Required. The list of suggestions. There will be a
15296	// maximum number of items returned based on the page_size field in the
15297	// request. `suggestions` is sorted by `create_time` in descending
15298	// order.
15299	Suggestions []*GoogleCloudDialogflowV2beta1Suggestion `json:"suggestions,omitempty"`
15300
15301	// ServerResponse contains the HTTP response code and headers from the
15302	// server.
15303	googleapi.ServerResponse `json:"-"`
15304
15305	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15306	// unconditionally include in API requests. By default, fields with
15307	// empty values are omitted from API requests. However, any non-pointer,
15308	// non-interface field appearing in ForceSendFields will be sent to the
15309	// server regardless of whether the field is empty or not. This may be
15310	// used to include empty fields in Patch requests.
15311	ForceSendFields []string `json:"-"`
15312
15313	// NullFields is a list of field names (e.g. "NextPageToken") to include
15314	// in API requests with the JSON null value. By default, fields with
15315	// empty values are omitted from API requests. However, any field with
15316	// an empty value appearing in NullFields will be sent to the server as
15317	// null. It is an error if a field in this list has a non-empty value.
15318	// This may be used to include null fields in Patch requests.
15319	NullFields []string `json:"-"`
15320}
15321
15322func (s *GoogleCloudDialogflowV2beta1ListSuggestionsResponse) MarshalJSON() ([]byte, error) {
15323	type NoMethod GoogleCloudDialogflowV2beta1ListSuggestionsResponse
15324	raw := NoMethod(*s)
15325	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15326}
15327
15328// GoogleCloudDialogflowV2beta1ListVersionsResponse: The response
15329// message for Versions.ListVersions.
15330type GoogleCloudDialogflowV2beta1ListVersionsResponse struct {
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	// Versions: The list of agent versions. There will be a maximum number
15336	// of items returned based on the page_size field in the request.
15337	Versions []*GoogleCloudDialogflowV2beta1Version `json:"versions,omitempty"`
15338
15339	// ServerResponse contains the HTTP response code and headers from the
15340	// server.
15341	googleapi.ServerResponse `json:"-"`
15342
15343	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
15344	// unconditionally include in API requests. By default, fields with
15345	// empty values are omitted from API requests. However, any non-pointer,
15346	// non-interface field appearing in ForceSendFields will be sent to the
15347	// server regardless of whether the field is empty or not. This may be
15348	// used to include empty fields in Patch requests.
15349	ForceSendFields []string `json:"-"`
15350
15351	// NullFields is a list of field names (e.g. "NextPageToken") to include
15352	// in API requests with the JSON null value. By default, fields with
15353	// empty values are omitted from API requests. However, any field with
15354	// an empty value appearing in NullFields will be sent to the server as
15355	// null. It is an error if a field in this list has a non-empty value.
15356	// This may be used to include null fields in Patch requests.
15357	NullFields []string `json:"-"`
15358}
15359
15360func (s *GoogleCloudDialogflowV2beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
15361	type NoMethod GoogleCloudDialogflowV2beta1ListVersionsResponse
15362	raw := NoMethod(*s)
15363	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15364}
15365
15366// GoogleCloudDialogflowV2beta1LoggingConfig: Defines logging behavior
15367// for conversation lifecycle events.
15368type GoogleCloudDialogflowV2beta1LoggingConfig struct {
15369	// EnableStackdriverLogging: Whether to log conversation events like
15370	// CONVERSATION_STARTED to Stackdriver in the conversation project as
15371	// JSON format ConversationEvent protos.
15372	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
15373
15374	// ForceSendFields is a list of field names (e.g.
15375	// "EnableStackdriverLogging") to unconditionally include in API
15376	// requests. By default, fields with empty values are omitted from API
15377	// requests. However, any non-pointer, non-interface field appearing in
15378	// ForceSendFields will be sent to the server regardless of whether the
15379	// field is empty or not. This may be used to include empty fields in
15380	// Patch requests.
15381	ForceSendFields []string `json:"-"`
15382
15383	// NullFields is a list of field names (e.g. "EnableStackdriverLogging")
15384	// to include in API requests with the JSON null value. By default,
15385	// fields with empty values are omitted from API requests. However, any
15386	// field with an empty value appearing in NullFields will be sent to the
15387	// server as null. It is an error if a field in this list has a
15388	// non-empty value. This may be used to include null fields in Patch
15389	// requests.
15390	NullFields []string `json:"-"`
15391}
15392
15393func (s *GoogleCloudDialogflowV2beta1LoggingConfig) MarshalJSON() ([]byte, error) {
15394	type NoMethod GoogleCloudDialogflowV2beta1LoggingConfig
15395	raw := NoMethod(*s)
15396	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15397}
15398
15399// GoogleCloudDialogflowV2beta1Message: Represents a message posted into
15400// a conversation.
15401type GoogleCloudDialogflowV2beta1Message struct {
15402	// Content: Required. The message content.
15403	Content string `json:"content,omitempty"`
15404
15405	// CreateTime: Output only. The time when the message was created in
15406	// Contact Center AI.
15407	CreateTime string `json:"createTime,omitempty"`
15408
15409	// LanguageCode: Optional. The message language. This should be a BCP-47
15410	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
15411	// "en-US".
15412	LanguageCode string `json:"languageCode,omitempty"`
15413
15414	// MessageAnnotation: Output only. The annotation for the message.
15415	MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
15416
15417	// Name: Optional. The unique identifier of the message. Format:
15418	// `projects//locations//conversations//messages/`.
15419	Name string `json:"name,omitempty"`
15420
15421	// Participant: Output only. The participant that sends this message.
15422	Participant string `json:"participant,omitempty"`
15423
15424	// ParticipantRole: Output only. The role of the participant.
15425	//
15426	// Possible values:
15427	//   "ROLE_UNSPECIFIED" - Participant role not set.
15428	//   "HUMAN_AGENT" - Participant is a human agent.
15429	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
15430	// Dialogflow agent.
15431	//   "END_USER" - Participant is an end user that has called or chatted
15432	// with Dialogflow services.
15433	ParticipantRole string `json:"participantRole,omitempty"`
15434
15435	// SendTime: Optional. The time when the message was sent.
15436	SendTime string `json:"sendTime,omitempty"`
15437
15438	// SentimentAnalysis: Output only. The sentiment analysis result for the
15439	// message.
15440	SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
15441
15442	// ForceSendFields is a list of field names (e.g. "Content") to
15443	// unconditionally include in API requests. By default, fields with
15444	// empty values are omitted from API requests. However, any non-pointer,
15445	// non-interface field appearing in ForceSendFields will be sent to the
15446	// server regardless of whether the field is empty or not. This may be
15447	// used to include empty fields in Patch requests.
15448	ForceSendFields []string `json:"-"`
15449
15450	// NullFields is a list of field names (e.g. "Content") to include in
15451	// API requests with the JSON null value. By default, fields with empty
15452	// values are omitted from API requests. However, any field with an
15453	// empty value appearing in NullFields will be sent to the server as
15454	// null. It is an error if a field in this list has a non-empty value.
15455	// This may be used to include null fields in Patch requests.
15456	NullFields []string `json:"-"`
15457}
15458
15459func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
15460	type NoMethod GoogleCloudDialogflowV2beta1Message
15461	raw := NoMethod(*s)
15462	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15463}
15464
15465// GoogleCloudDialogflowV2beta1MessageAnnotation: Represents the result
15466// of annotation for the message.
15467type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
15468	// ContainEntities: Required. Indicates whether the text message
15469	// contains entities.
15470	ContainEntities bool `json:"containEntities,omitempty"`
15471
15472	// Parts: Optional. The collection of annotated message parts ordered by
15473	// their position in the message. You can recover the annotated message
15474	// by concatenating [AnnotatedMessagePart.text].
15475	Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
15476
15477	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
15478	// unconditionally include in API requests. By default, fields with
15479	// empty values are omitted from API requests. However, any non-pointer,
15480	// non-interface field appearing in ForceSendFields will be sent to the
15481	// server regardless of whether the field is empty or not. This may be
15482	// used to include empty fields in Patch requests.
15483	ForceSendFields []string `json:"-"`
15484
15485	// NullFields is a list of field names (e.g. "ContainEntities") to
15486	// include in API requests with the JSON null value. By default, fields
15487	// with empty values are omitted from API requests. However, any field
15488	// with an empty value appearing in NullFields will be sent to the
15489	// server as null. It is an error if a field in this list has a
15490	// non-empty value. This may be used to include null fields in Patch
15491	// requests.
15492	NullFields []string `json:"-"`
15493}
15494
15495func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
15496	type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
15497	raw := NoMethod(*s)
15498	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15499}
15500
15501// GoogleCloudDialogflowV2beta1NotificationConfig: Defines notification
15502// behavior.
15503type GoogleCloudDialogflowV2beta1NotificationConfig struct {
15504	// MessageFormat: Format of message.
15505	//
15506	// Possible values:
15507	//   "MESSAGE_FORMAT_UNSPECIFIED" - If it is unspecified, PROTO will be
15508	// used.
15509	//   "PROTO" - Pubsub message will be serialized proto.
15510	//   "JSON" - Pubsub message will be json.
15511	MessageFormat string `json:"messageFormat,omitempty"`
15512
15513	// Topic: Name of the Pub/Sub topic to publish conversation events like
15514	// CONVERSATION_STARTED as serialized ConversationEvent protos.
15515	// Notification works for phone calls, if this topic either is in the
15516	// same project as the conversation or you grant
15517	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow
15518	// Service Agent` role in the topic project. Format:
15519	// `projects//locations//topics/`.
15520	Topic string `json:"topic,omitempty"`
15521
15522	// ForceSendFields is a list of field names (e.g. "MessageFormat") to
15523	// unconditionally include in API requests. By default, fields with
15524	// empty values are omitted from API requests. However, any non-pointer,
15525	// non-interface field appearing in ForceSendFields will be sent to the
15526	// server regardless of whether the field is empty or not. This may be
15527	// used to include empty fields in Patch requests.
15528	ForceSendFields []string `json:"-"`
15529
15530	// NullFields is a list of field names (e.g. "MessageFormat") to include
15531	// in API requests with the JSON null value. By default, fields with
15532	// empty values are omitted from API requests. However, any field with
15533	// an empty value appearing in NullFields will be sent to the server as
15534	// null. It is an error if a field in this list has a non-empty value.
15535	// This may be used to include null fields in Patch requests.
15536	NullFields []string `json:"-"`
15537}
15538
15539func (s *GoogleCloudDialogflowV2beta1NotificationConfig) MarshalJSON() ([]byte, error) {
15540	type NoMethod GoogleCloudDialogflowV2beta1NotificationConfig
15541	raw := NoMethod(*s)
15542	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15543}
15544
15545// GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents
15546// the contents of the original request that was passed to the
15547// `[Streaming]DetectIntent` call.
15548type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
15549	// Payload: Optional. This field is set to the value of the
15550	// `QueryParameters.payload` field passed in the request. Some
15551	// integrations that query a Dialogflow agent may provide additional
15552	// information in the payload. In particular, for the Dialogflow Phone
15553	// Gateway integration, this field has the form: { "telephony": {
15554	// "caller_id": "+18558363987" } } Note: The caller ID field
15555	// (`caller_id`) will be redacted for Trial Edition agents and populated
15556	// with the caller ID in E.164 format
15557	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
15558	Payload googleapi.RawMessage `json:"payload,omitempty"`
15559
15560	// Source: The source of this request, e.g., `google`, `facebook`,
15561	// `slack`. It is set by Dialogflow-owned servers.
15562	Source string `json:"source,omitempty"`
15563
15564	// Version: Optional. The version of the protocol used for this request.
15565	// This field is AoG-specific.
15566	Version string `json:"version,omitempty"`
15567
15568	// ForceSendFields is a list of field names (e.g. "Payload") to
15569	// unconditionally include in API requests. By default, fields with
15570	// empty values are omitted from API requests. However, any non-pointer,
15571	// non-interface field appearing in ForceSendFields will be sent to the
15572	// server regardless of whether the field is empty or not. This may be
15573	// used to include empty fields in Patch requests.
15574	ForceSendFields []string `json:"-"`
15575
15576	// NullFields is a list of field names (e.g. "Payload") to include in
15577	// API requests with the JSON null value. By default, fields with empty
15578	// values are omitted from API requests. However, any field with an
15579	// empty value appearing in NullFields will be sent to the server as
15580	// null. It is an error if a field in this list has a non-empty value.
15581	// This may be used to include null fields in Patch requests.
15582	NullFields []string `json:"-"`
15583}
15584
15585func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
15586	type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
15587	raw := NoMethod(*s)
15588	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15589}
15590
15591// GoogleCloudDialogflowV2beta1OutputAudio: Represents the natural
15592// language speech audio to be played to the end user.
15593type GoogleCloudDialogflowV2beta1OutputAudio struct {
15594	// Audio: Required. The natural language speech audio.
15595	Audio string `json:"audio,omitempty"`
15596
15597	// Config: Required. Instructs the speech synthesizer how to generate
15598	// the speech audio.
15599	Config *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"config,omitempty"`
15600
15601	// ForceSendFields is a list of field names (e.g. "Audio") to
15602	// unconditionally include in API requests. By default, fields with
15603	// empty values are omitted from API requests. However, any non-pointer,
15604	// non-interface field appearing in ForceSendFields will be sent to the
15605	// server regardless of whether the field is empty or not. This may be
15606	// used to include empty fields in Patch requests.
15607	ForceSendFields []string `json:"-"`
15608
15609	// NullFields is a list of field names (e.g. "Audio") to include in API
15610	// requests with the JSON null value. By default, fields with empty
15611	// values are omitted from API requests. However, any field with an
15612	// empty value appearing in NullFields will be sent to the server as
15613	// null. It is an error if a field in this list has a non-empty value.
15614	// This may be used to include null fields in Patch requests.
15615	NullFields []string `json:"-"`
15616}
15617
15618func (s *GoogleCloudDialogflowV2beta1OutputAudio) MarshalJSON() ([]byte, error) {
15619	type NoMethod GoogleCloudDialogflowV2beta1OutputAudio
15620	raw := NoMethod(*s)
15621	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15622}
15623
15624// GoogleCloudDialogflowV2beta1OutputAudioConfig: Instructs the speech
15625// synthesizer how to generate the output audio content. If this audio
15626// config is supplied in a request, it overrides all existing
15627// text-to-speech settings applied to the agent.
15628type GoogleCloudDialogflowV2beta1OutputAudioConfig struct {
15629	// AudioEncoding: Required. Audio encoding of the synthesized audio
15630	// content.
15631	//
15632	// Possible values:
15633	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
15634	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
15635	// little-endian samples (Linear PCM). Audio content returned as
15636	// LINEAR16 also contains a WAV header.
15637	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
15638	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
15639	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an
15640	// ogg container. The result will be a file which can be played natively
15641	// on Android, and in browsers (at least Chrome and Firefox). The
15642	// quality of the encoding is considerably higher than MP3 while using
15643	// approximately the same bitrate.
15644	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit
15645	// audio samples using G.711 PCMU/mu-law.
15646	AudioEncoding string `json:"audioEncoding,omitempty"`
15647
15648	// SampleRateHertz: The synthesis sample rate (in hertz) for this audio.
15649	// If not provided, then the synthesizer will use the default sample
15650	// rate based on the audio encoding. If this is different from the
15651	// voice's natural sample rate, then the synthesizer will honor this
15652	// request by converting to the desired sample rate (which might result
15653	// in worse audio quality).
15654	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
15655
15656	// SynthesizeSpeechConfig: Configuration of how speech should be
15657	// synthesized.
15658	SynthesizeSpeechConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
15659
15660	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
15661	// unconditionally include in API requests. By default, fields with
15662	// empty values are omitted from API requests. However, any non-pointer,
15663	// non-interface field appearing in ForceSendFields will be sent to the
15664	// server regardless of whether the field is empty or not. This may be
15665	// used to include empty fields in Patch requests.
15666	ForceSendFields []string `json:"-"`
15667
15668	// NullFields is a list of field names (e.g. "AudioEncoding") to include
15669	// in API requests with the JSON null value. By default, fields with
15670	// empty values are omitted from API requests. However, any field with
15671	// an empty value appearing in NullFields will be sent to the server as
15672	// null. It is an error if a field in this list has a non-empty value.
15673	// This may be used to include null fields in Patch requests.
15674	NullFields []string `json:"-"`
15675}
15676
15677func (s *GoogleCloudDialogflowV2beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
15678	type NoMethod GoogleCloudDialogflowV2beta1OutputAudioConfig
15679	raw := NoMethod(*s)
15680	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15681}
15682
15683// GoogleCloudDialogflowV2beta1Participant: Represents a conversation
15684// participant (human agent, virtual agent, end-user).
15685type GoogleCloudDialogflowV2beta1Participant struct {
15686	// Name: Optional. The unique identifier of this participant. Format:
15687	// `projects//locations//conversations//participants/`.
15688	Name string `json:"name,omitempty"`
15689
15690	// ObfuscatedExternalUserId: Optional. Obfuscated user id that should be
15691	// associated with the created participant. You can specify a user id as
15692	// follows: 1. If you set this field in CreateParticipantRequest or
15693	// UpdateParticipantRequest, Dialogflow adds the obfuscated user id with
15694	// the participant. 2. If you set this field in AnalyzeContent or
15695	// StreamingAnalyzeContent, Dialogflow will update
15696	// Participant.obfuscated_external_user_id. Dialogflow uses this user id
15697	// for following purposes: 1) Billing and measurement. If user with the
15698	// same obfuscated_external_user_id is created in a later conversation,
15699	// dialogflow will know it's the same user. 2) Agent assist suggestion
15700	// personalization. For example, Dialogflow can use it to provide
15701	// personalized smart reply suggestions for this user. Note: * Please
15702	// never pass raw user ids to Dialogflow. Always obfuscate your user id
15703	// first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex
15704	// digest of a hash function like SHA-512. * The length of the user id
15705	// must be <= 256 characters.
15706	ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
15707
15708	// Role: Immutable. The role this participant plays in the conversation.
15709	// This field must be set during participant creation and is then
15710	// immutable.
15711	//
15712	// Possible values:
15713	//   "ROLE_UNSPECIFIED" - Participant role not set.
15714	//   "HUMAN_AGENT" - Participant is a human agent.
15715	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
15716	// Dialogflow agent.
15717	//   "END_USER" - Participant is an end user that has called or chatted
15718	// with Dialogflow services.
15719	Role string `json:"role,omitempty"`
15720
15721	// ServerResponse contains the HTTP response code and headers from the
15722	// server.
15723	googleapi.ServerResponse `json:"-"`
15724
15725	// ForceSendFields is a list of field names (e.g. "Name") to
15726	// unconditionally include in API requests. By default, fields with
15727	// empty values are omitted from API requests. However, any non-pointer,
15728	// non-interface field appearing in ForceSendFields will be sent to the
15729	// server regardless of whether the field is empty or not. This may be
15730	// used to include empty fields in Patch requests.
15731	ForceSendFields []string `json:"-"`
15732
15733	// NullFields is a list of field names (e.g. "Name") to include in API
15734	// requests with the JSON null value. By default, fields with empty
15735	// values are omitted from API requests. However, any field with an
15736	// empty value appearing in NullFields will be sent to the server as
15737	// null. It is an error if a field in this list has a non-empty value.
15738	// This may be used to include null fields in Patch requests.
15739	NullFields []string `json:"-"`
15740}
15741
15742func (s *GoogleCloudDialogflowV2beta1Participant) MarshalJSON() ([]byte, error) {
15743	type NoMethod GoogleCloudDialogflowV2beta1Participant
15744	raw := NoMethod(*s)
15745	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15746}
15747
15748// GoogleCloudDialogflowV2beta1QueryInput: Represents the query input.
15749// It can contain either: 1. An audio config which instructs the speech
15750// recognizer how to process the speech audio. 2. A conversational query
15751// in the form of text. 3. An event that specifies which intent to
15752// trigger.
15753type GoogleCloudDialogflowV2beta1QueryInput struct {
15754	// AudioConfig: Instructs the speech recognizer how to process the
15755	// speech audio.
15756	AudioConfig *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"audioConfig,omitempty"`
15757
15758	// Dtmf: The DTMF digits used to invoke intent and fill in parameter
15759	// value.
15760	Dtmf *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents `json:"dtmf,omitempty"`
15761
15762	// Event: The event to be processed.
15763	Event *GoogleCloudDialogflowV2beta1EventInput `json:"event,omitempty"`
15764
15765	// Text: The natural language text to be processed.
15766	Text *GoogleCloudDialogflowV2beta1TextInput `json:"text,omitempty"`
15767
15768	// ForceSendFields is a list of field names (e.g. "AudioConfig") to
15769	// unconditionally include in API requests. By default, fields with
15770	// empty values are omitted from API requests. However, any non-pointer,
15771	// non-interface field appearing in ForceSendFields will be sent to the
15772	// server regardless of whether the field is empty or not. This may be
15773	// used to include empty fields in Patch requests.
15774	ForceSendFields []string `json:"-"`
15775
15776	// NullFields is a list of field names (e.g. "AudioConfig") to include
15777	// in API requests with the JSON null value. By default, fields with
15778	// empty values are omitted from API requests. However, any field with
15779	// an empty value appearing in NullFields will be sent to the server as
15780	// null. It is an error if a field in this list has a non-empty value.
15781	// This may be used to include null fields in Patch requests.
15782	NullFields []string `json:"-"`
15783}
15784
15785func (s *GoogleCloudDialogflowV2beta1QueryInput) MarshalJSON() ([]byte, error) {
15786	type NoMethod GoogleCloudDialogflowV2beta1QueryInput
15787	raw := NoMethod(*s)
15788	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15789}
15790
15791// GoogleCloudDialogflowV2beta1QueryParameters: Represents the
15792// parameters of the conversational query.
15793type GoogleCloudDialogflowV2beta1QueryParameters struct {
15794	// Contexts: The collection of contexts to be activated before this
15795	// query is executed.
15796	Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
15797
15798	// GeoLocation: The geo location of this conversational query.
15799	GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
15800
15801	// KnowledgeBaseNames: KnowledgeBases to get alternative results from.
15802	// If not set, the KnowledgeBases enabled in the agent (through UI) will
15803	// be used. Format: `projects//knowledgeBases/`.
15804	KnowledgeBaseNames []string `json:"knowledgeBaseNames,omitempty"`
15805
15806	// Payload: This field can be used to pass custom data to your webhook.
15807	// Arbitrary JSON objects are supported. If supplied, the value is used
15808	// to populate the
15809	// `WebhookRequest.original_detect_intent_request.payload` field sent to
15810	// your webhook.
15811	Payload googleapi.RawMessage `json:"payload,omitempty"`
15812
15813	// ResetContexts: Specifies whether to delete all contexts in the
15814	// current session before the new ones are activated.
15815	ResetContexts bool `json:"resetContexts,omitempty"`
15816
15817	// SentimentAnalysisRequestConfig: Configures the type of sentiment
15818	// analysis to perform. If not provided, sentiment analysis is not
15819	// performed. Note: Sentiment Analysis is only currently available for
15820	// Essentials Edition agents.
15821	SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig `json:"sentimentAnalysisRequestConfig,omitempty"`
15822
15823	// SessionEntityTypes: Additional session entity types to replace or
15824	// extend developer entity types with. The entity synonyms apply to all
15825	// languages and persist for the session of this query.
15826	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
15827
15828	// SubAgents: For mega agent query, directly specify which sub agents to
15829	// query. If any specified sub agent is not linked to the mega agent, an
15830	// error will be returned. If empty, Dialogflow will decide which sub
15831	// agents to query. If specified for a non-mega-agent query, will be
15832	// silently ignored.
15833	SubAgents []*GoogleCloudDialogflowV2beta1SubAgent `json:"subAgents,omitempty"`
15834
15835	// TimeZone: The time zone of this conversational query from the time
15836	// zone database (https://www.iana.org/time-zones), e.g.,
15837	// America/New_York, Europe/Paris. If not provided, the time zone
15838	// specified in agent settings is used.
15839	TimeZone string `json:"timeZone,omitempty"`
15840
15841	// WebhookHeaders: This field can be used to pass HTTP headers for a
15842	// webhook call. These headers will be sent to webhook along with the
15843	// headers that have been configured through Dialogflow web console. The
15844	// headers defined within this field will overwrite the headers
15845	// configured through Dialogflow console if there is a conflict. Header
15846	// names are case-insensitive. Google's specified headers are not
15847	// allowed. Including: "Host", "Content-Length", "Connection", "From",
15848	// "User-Agent", "Accept-Encoding", "If-Modified-Since",
15849	// "If-None-Match", "X-Forwarded-For", etc.
15850	WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
15851
15852	// ForceSendFields is a list of field names (e.g. "Contexts") to
15853	// unconditionally include in API requests. By default, fields with
15854	// empty values are omitted from API requests. However, any non-pointer,
15855	// non-interface field appearing in ForceSendFields will be sent to the
15856	// server regardless of whether the field is empty or not. This may be
15857	// used to include empty fields in Patch requests.
15858	ForceSendFields []string `json:"-"`
15859
15860	// NullFields is a list of field names (e.g. "Contexts") to include in
15861	// API requests with the JSON null value. By default, fields with empty
15862	// values are omitted from API requests. However, any field with an
15863	// empty value appearing in NullFields will be sent to the server as
15864	// null. It is an error if a field in this list has a non-empty value.
15865	// This may be used to include null fields in Patch requests.
15866	NullFields []string `json:"-"`
15867}
15868
15869func (s *GoogleCloudDialogflowV2beta1QueryParameters) MarshalJSON() ([]byte, error) {
15870	type NoMethod GoogleCloudDialogflowV2beta1QueryParameters
15871	raw := NoMethod(*s)
15872	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15873}
15874
15875// GoogleCloudDialogflowV2beta1QueryResult: Represents the result of
15876// conversational query or event processing.
15877type GoogleCloudDialogflowV2beta1QueryResult struct {
15878	// Action: The action name from the matched intent.
15879	Action string `json:"action,omitempty"`
15880
15881	// AllRequiredParamsPresent: This field is set to: - `false` if the
15882	// matched intent has required parameters and not all of the required
15883	// parameter values have been collected. - `true` if all required
15884	// parameter values have been collected, or if the matched intent
15885	// doesn't contain any required parameters.
15886	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
15887
15888	// DiagnosticInfo: Free-form diagnostic information for the associated
15889	// detect intent request. The fields of this data can change without
15890	// notice, so you should not write code that depends on its structure.
15891	// The data may contain: - webhook call latency - webhook errors
15892	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
15893
15894	// FulfillmentMessages: The collection of rich messages to present to
15895	// the user.
15896	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
15897
15898	// FulfillmentText: The text to be pronounced to the user or shown on
15899	// the screen. Note: This is a legacy field, `fulfillment_messages`
15900	// should be preferred.
15901	FulfillmentText string `json:"fulfillmentText,omitempty"`
15902
15903	// Intent: The intent that matched the conversational query. Some, not
15904	// all fields are filled in this message, including but not limited to:
15905	// `name`, `display_name`, `end_interaction` and `is_fallback`.
15906	Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
15907
15908	// IntentDetectionConfidence: The intent detection confidence. Values
15909	// range from 0.0 (completely uncertain) to 1.0 (completely certain).
15910	// This value is for informational purpose only and is only used to help
15911	// match the best intent within the classification threshold. This value
15912	// may change for the same end-user expression at any time due to a
15913	// model retraining or change in implementation. If there are `multiple
15914	// knowledge_answers` messages, this value is set to the greatest
15915	// `knowledgeAnswers.match_confidence` value in the list.
15916	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
15917
15918	// KnowledgeAnswers: The result from Knowledge Connector (if any),
15919	// ordered by decreasing `KnowledgeAnswers.match_confidence`.
15920	KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
15921
15922	// LanguageCode: The language that was triggered during intent
15923	// detection. See Language Support
15924	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
15925	// list of the currently supported language codes.
15926	LanguageCode string `json:"languageCode,omitempty"`
15927
15928	// OutputContexts: The collection of output contexts. If applicable,
15929	// `output_contexts.parameters` contains entries with name `.original`
15930	// containing the original parameter values before the query.
15931	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
15932
15933	// Parameters: The collection of extracted parameters. Depending on your
15934	// protocol or client library language, this is a map, associative
15935	// array, symbol table, dictionary, or JSON object composed of a
15936	// collection of (MapKey, MapValue) pairs: - MapKey type: string -
15937	// MapKey value: parameter name - MapValue type: - If parameter's entity
15938	// type is a composite entity: map - Else: depending on parameter value
15939	// type, could be one of string, number, boolean, null, list or map -
15940	// MapValue value: - If parameter's entity type is a composite entity:
15941	// map from composite entity property names to property values - Else:
15942	// parameter value
15943	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15944
15945	// QueryText: The original conversational query text: - If natural
15946	// language text was provided as input, `query_text` contains a copy of
15947	// the input. - If natural language speech audio was provided as input,
15948	// `query_text` contains the speech recognition result. If speech
15949	// recognizer produced multiple alternatives, a particular one is
15950	// picked. - If automatic spell correction is enabled, `query_text` will
15951	// contain the corrected user input.
15952	QueryText string `json:"queryText,omitempty"`
15953
15954	// SentimentAnalysisResult: The sentiment analysis result, which depends
15955	// on the `sentiment_analysis_request_config` specified in the request.
15956	SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
15957
15958	// SpeechRecognitionConfidence: The Speech recognition confidence
15959	// between 0.0 and 1.0. A higher number indicates an estimated greater
15960	// likelihood that the recognized words are correct. The default of 0.0
15961	// is a sentinel value indicating that confidence was not set. This
15962	// field is not guaranteed to be accurate or set. In particular this
15963	// field isn't set for StreamingDetectIntent since the streaming
15964	// endpoint has separate confidence estimates per portion of the audio
15965	// in StreamingRecognitionResult.
15966	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
15967
15968	// WebhookPayload: If the query was fulfilled by a webhook call, this
15969	// field is set to the value of the `payload` field returned in the
15970	// webhook response.
15971	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
15972
15973	// WebhookSource: If the query was fulfilled by a webhook call, this
15974	// field is set to the value of the `source` field returned in the
15975	// webhook response.
15976	WebhookSource string `json:"webhookSource,omitempty"`
15977
15978	// ForceSendFields is a list of field names (e.g. "Action") to
15979	// unconditionally include in API requests. By default, fields with
15980	// empty values are omitted from API requests. However, any non-pointer,
15981	// non-interface field appearing in ForceSendFields will be sent to the
15982	// server regardless of whether the field is empty or not. This may be
15983	// used to include empty fields in Patch requests.
15984	ForceSendFields []string `json:"-"`
15985
15986	// NullFields is a list of field names (e.g. "Action") to include in API
15987	// requests with the JSON null value. By default, fields with empty
15988	// values are omitted from API requests. However, any field with an
15989	// empty value appearing in NullFields will be sent to the server as
15990	// null. It is an error if a field in this list has a non-empty value.
15991	// This may be used to include null fields in Patch requests.
15992	NullFields []string `json:"-"`
15993}
15994
15995func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
15996	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
15997	raw := NoMethod(*s)
15998	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15999}
16000
16001func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
16002	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
16003	var s1 struct {
16004		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
16005		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
16006		*NoMethod
16007	}
16008	s1.NoMethod = (*NoMethod)(s)
16009	if err := json.Unmarshal(data, &s1); err != nil {
16010		return err
16011	}
16012	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
16013	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
16014	return nil
16015}
16016
16017// GoogleCloudDialogflowV2beta1ReloadDocumentRequest: Request message
16018// for Documents.ReloadDocument.
16019type GoogleCloudDialogflowV2beta1ReloadDocumentRequest struct {
16020	// GcsSource: The path for a Cloud Storage source file for reloading
16021	// document content. If not provided, the Document's existing source
16022	// will be reloaded.
16023	GcsSource *GoogleCloudDialogflowV2beta1GcsSource `json:"gcsSource,omitempty"`
16024
16025	// ImportGcsCustomMetadata: Whether to import custom metadata from
16026	// Google Cloud Storage. Only valid when the document source is Google
16027	// Cloud Storage URI.
16028	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
16029
16030	// ForceSendFields is a list of field names (e.g. "GcsSource") to
16031	// unconditionally include in API requests. By default, fields with
16032	// empty values are omitted from API requests. However, any non-pointer,
16033	// non-interface field appearing in ForceSendFields will be sent to the
16034	// server regardless of whether the field is empty or not. This may be
16035	// used to include empty fields in Patch requests.
16036	ForceSendFields []string `json:"-"`
16037
16038	// NullFields is a list of field names (e.g. "GcsSource") to include in
16039	// API requests with the JSON null value. By default, fields with empty
16040	// values are omitted from API requests. However, any field with an
16041	// empty value appearing in NullFields will be sent to the server as
16042	// null. It is an error if a field in this list has a non-empty value.
16043	// This may be used to include null fields in Patch requests.
16044	NullFields []string `json:"-"`
16045}
16046
16047func (s *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) MarshalJSON() ([]byte, error) {
16048	type NoMethod GoogleCloudDialogflowV2beta1ReloadDocumentRequest
16049	raw := NoMethod(*s)
16050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16051}
16052
16053// GoogleCloudDialogflowV2beta1ResponseMessage: Response messages from
16054// an automated agent.
16055type GoogleCloudDialogflowV2beta1ResponseMessage struct {
16056	// EndInteraction: A signal that indicates the interaction with the
16057	// Dialogflow agent has ended.
16058	EndInteraction *GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
16059
16060	// LiveAgentHandoff: Hands off conversation to a live agent.
16061	LiveAgentHandoff *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
16062
16063	// Payload: Returns a response containing a custom, platform-specific
16064	// payload.
16065	Payload googleapi.RawMessage `json:"payload,omitempty"`
16066
16067	// Text: Returns a text response.
16068	Text *GoogleCloudDialogflowV2beta1ResponseMessageText `json:"text,omitempty"`
16069
16070	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
16071	// unconditionally include in API requests. By default, fields with
16072	// empty values are omitted from API requests. However, any non-pointer,
16073	// non-interface field appearing in ForceSendFields will be sent to the
16074	// server regardless of whether the field is empty or not. This may be
16075	// used to include empty fields in Patch requests.
16076	ForceSendFields []string `json:"-"`
16077
16078	// NullFields is a list of field names (e.g. "EndInteraction") to
16079	// include in API requests with the JSON null value. By default, fields
16080	// with empty values are omitted from API requests. However, any field
16081	// with an empty value appearing in NullFields will be sent to the
16082	// server as null. It is an error if a field in this list has a
16083	// non-empty value. This may be used to include null fields in Patch
16084	// requests.
16085	NullFields []string `json:"-"`
16086}
16087
16088func (s *GoogleCloudDialogflowV2beta1ResponseMessage) MarshalJSON() ([]byte, error) {
16089	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessage
16090	raw := NoMethod(*s)
16091	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16092}
16093
16094// GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction: Indicates
16095// that interaction with the Dialogflow agent has ended.
16096type GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction struct {
16097}
16098
16099// GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff:
16100// Indicates that the conversation should be handed off to a human
16101// agent. Dialogflow only uses this to determine which conversations
16102// were handed off to a human agent for measurement purposes. What else
16103// to do with this signal is up to you and your handoff procedures. You
16104// may set this, for example: * In the entry fulfillment of a CX Page if
16105// entering the page indicates something went extremely wrong in the
16106// conversation. * In a webhook response when you determine that the
16107// customer issue can only be handled by a human.
16108type GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff struct {
16109	// Metadata: Custom metadata for your handoff procedure. Dialogflow
16110	// doesn't impose any structure on this.
16111	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
16112
16113	// ForceSendFields is a list of field names (e.g. "Metadata") to
16114	// unconditionally include in API requests. By default, fields with
16115	// empty values are omitted from API requests. However, any non-pointer,
16116	// non-interface field appearing in ForceSendFields will be sent to the
16117	// server regardless of whether the field is empty or not. This may be
16118	// used to include empty fields in Patch requests.
16119	ForceSendFields []string `json:"-"`
16120
16121	// NullFields is a list of field names (e.g. "Metadata") to include in
16122	// API requests with the JSON null value. By default, fields with empty
16123	// values are omitted from API requests. However, any field with an
16124	// empty value appearing in NullFields will be sent to the server as
16125	// null. It is an error if a field in this list has a non-empty value.
16126	// This may be used to include null fields in Patch requests.
16127	NullFields []string `json:"-"`
16128}
16129
16130func (s *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
16131	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff
16132	raw := NoMethod(*s)
16133	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16134}
16135
16136// GoogleCloudDialogflowV2beta1ResponseMessageText: The text response
16137// message.
16138type GoogleCloudDialogflowV2beta1ResponseMessageText struct {
16139	// Text: A collection of text responses.
16140	Text []string `json:"text,omitempty"`
16141
16142	// ForceSendFields is a list of field names (e.g. "Text") to
16143	// unconditionally include in API requests. By default, fields with
16144	// empty values are omitted from API requests. However, any non-pointer,
16145	// non-interface field appearing in ForceSendFields will be sent to the
16146	// server regardless of whether the field is empty or not. This may be
16147	// used to include empty fields in Patch requests.
16148	ForceSendFields []string `json:"-"`
16149
16150	// NullFields is a list of field names (e.g. "Text") to include in API
16151	// requests with the JSON null value. By default, fields with empty
16152	// values are omitted from API requests. However, any field with an
16153	// empty value appearing in NullFields will be sent to the server as
16154	// null. It is an error if a field in this list has a non-empty value.
16155	// This may be used to include null fields in Patch requests.
16156	NullFields []string `json:"-"`
16157}
16158
16159func (s *GoogleCloudDialogflowV2beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
16160	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageText
16161	raw := NoMethod(*s)
16162	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16163}
16164
16165// GoogleCloudDialogflowV2beta1RestoreAgentRequest: The request message
16166// for Agents.RestoreAgent.
16167type GoogleCloudDialogflowV2beta1RestoreAgentRequest struct {
16168	// AgentContent: Zip compressed raw byte content for agent.
16169	AgentContent string `json:"agentContent,omitempty"`
16170
16171	// AgentUri: The URI to a Google Cloud Storage file containing the agent
16172	// to restore. Note: The URI must start with "gs://".
16173	AgentUri string `json:"agentUri,omitempty"`
16174
16175	// ForceSendFields is a list of field names (e.g. "AgentContent") to
16176	// unconditionally include in API requests. By default, fields with
16177	// empty values are omitted from API requests. However, any non-pointer,
16178	// non-interface field appearing in ForceSendFields will be sent to the
16179	// server regardless of whether the field is empty or not. This may be
16180	// used to include empty fields in Patch requests.
16181	ForceSendFields []string `json:"-"`
16182
16183	// NullFields is a list of field names (e.g. "AgentContent") to include
16184	// in API requests with the JSON null value. By default, fields with
16185	// empty values are omitted from API requests. However, any field with
16186	// an empty value appearing in NullFields will be sent to the server as
16187	// null. It is an error if a field in this list has a non-empty value.
16188	// This may be used to include null fields in Patch requests.
16189	NullFields []string `json:"-"`
16190}
16191
16192func (s *GoogleCloudDialogflowV2beta1RestoreAgentRequest) MarshalJSON() ([]byte, error) {
16193	type NoMethod GoogleCloudDialogflowV2beta1RestoreAgentRequest
16194	raw := NoMethod(*s)
16195	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16196}
16197
16198// GoogleCloudDialogflowV2beta1SearchAgentsResponse: The response
16199// message for Agents.SearchAgents.
16200type GoogleCloudDialogflowV2beta1SearchAgentsResponse struct {
16201	// Agents: The list of agents. There will be a maximum number of items
16202	// returned based on the page_size field in the request.
16203	Agents []*GoogleCloudDialogflowV2beta1Agent `json:"agents,omitempty"`
16204
16205	// NextPageToken: Token to retrieve the next page of results, or empty
16206	// if there are no more results in the list.
16207	NextPageToken string `json:"nextPageToken,omitempty"`
16208
16209	// ServerResponse contains the HTTP response code and headers from the
16210	// server.
16211	googleapi.ServerResponse `json:"-"`
16212
16213	// ForceSendFields is a list of field names (e.g. "Agents") to
16214	// unconditionally include in API requests. By default, fields with
16215	// empty values are omitted from API requests. However, any non-pointer,
16216	// non-interface field appearing in ForceSendFields will be sent to the
16217	// server regardless of whether the field is empty or not. This may be
16218	// used to include empty fields in Patch requests.
16219	ForceSendFields []string `json:"-"`
16220
16221	// NullFields is a list of field names (e.g. "Agents") to include in API
16222	// requests with the JSON null value. By default, fields with empty
16223	// values are omitted from API requests. However, any field with an
16224	// empty value appearing in NullFields will be sent to the server as
16225	// null. It is an error if a field in this list has a non-empty value.
16226	// This may be used to include null fields in Patch requests.
16227	NullFields []string `json:"-"`
16228}
16229
16230func (s *GoogleCloudDialogflowV2beta1SearchAgentsResponse) MarshalJSON() ([]byte, error) {
16231	type NoMethod GoogleCloudDialogflowV2beta1SearchAgentsResponse
16232	raw := NoMethod(*s)
16233	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16234}
16235
16236// GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as
16237// positive/negative feeling or association, for a unit of analysis,
16238// such as the query text.
16239type GoogleCloudDialogflowV2beta1Sentiment struct {
16240	// Magnitude: A non-negative number in the [0, +inf) range, which
16241	// represents the absolute magnitude of sentiment, regardless of score
16242	// (positive or negative).
16243	Magnitude float64 `json:"magnitude,omitempty"`
16244
16245	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
16246	// (positive sentiment).
16247	Score float64 `json:"score,omitempty"`
16248
16249	// ForceSendFields is a list of field names (e.g. "Magnitude") to
16250	// unconditionally include in API requests. By default, fields with
16251	// empty values are omitted from API requests. However, any non-pointer,
16252	// non-interface field appearing in ForceSendFields will be sent to the
16253	// server regardless of whether the field is empty or not. This may be
16254	// used to include empty fields in Patch requests.
16255	ForceSendFields []string `json:"-"`
16256
16257	// NullFields is a list of field names (e.g. "Magnitude") to include in
16258	// API requests with the JSON null value. By default, fields with empty
16259	// values are omitted from API requests. However, any field with an
16260	// empty value appearing in NullFields will be sent to the server as
16261	// null. It is an error if a field in this list has a non-empty value.
16262	// This may be used to include null fields in Patch requests.
16263	NullFields []string `json:"-"`
16264}
16265
16266func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
16267	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
16268	raw := NoMethod(*s)
16269	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16270}
16271
16272func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
16273	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
16274	var s1 struct {
16275		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
16276		Score     gensupport.JSONFloat64 `json:"score"`
16277		*NoMethod
16278	}
16279	s1.NoMethod = (*NoMethod)(s)
16280	if err := json.Unmarshal(data, &s1); err != nil {
16281		return err
16282	}
16283	s.Magnitude = float64(s1.Magnitude)
16284	s.Score = float64(s1.Score)
16285	return nil
16286}
16287
16288// GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig:
16289// Configures the types of sentiment analysis to perform.
16290type GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig struct {
16291	// AnalyzeQueryTextSentiment: Instructs the service to perform sentiment
16292	// analysis on `query_text`. If not provided, sentiment analysis is not
16293	// performed on `query_text`.
16294	AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
16295
16296	// ForceSendFields is a list of field names (e.g.
16297	// "AnalyzeQueryTextSentiment") to unconditionally include in API
16298	// requests. By default, fields with empty values are omitted from API
16299	// requests. However, any non-pointer, non-interface field appearing in
16300	// ForceSendFields will be sent to the server regardless of whether the
16301	// field is empty or not. This may be used to include empty fields in
16302	// Patch requests.
16303	ForceSendFields []string `json:"-"`
16304
16305	// NullFields is a list of field names (e.g.
16306	// "AnalyzeQueryTextSentiment") to include in API requests with the JSON
16307	// null value. By default, fields with empty values are omitted from API
16308	// requests. However, any field with an empty value appearing in
16309	// NullFields will be sent to the server as null. It is an error if a
16310	// field in this list has a non-empty value. This may be used to include
16311	// null fields in Patch requests.
16312	NullFields []string `json:"-"`
16313}
16314
16315func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig) MarshalJSON() ([]byte, error) {
16316	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
16317	raw := NoMethod(*s)
16318	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16319}
16320
16321// GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of
16322// sentiment analysis. Sentiment analysis inspects user input and
16323// identifies the prevailing subjective opinion, especially to determine
16324// a user's attitude as positive, negative, or neutral. For
16325// Participants.DetectIntent, it needs to be configured in
16326// DetectIntentRequest.query_params. For
16327// Participants.StreamingDetectIntent, it needs to be configured in
16328// StreamingDetectIntentRequest.query_params. And for
16329// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent,
16330// it needs to be configured in
16331// ConversationProfile.human_agent_assistant_config
16332type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
16333	// QueryTextSentiment: The sentiment analysis result for `query_text`.
16334	QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
16335
16336	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment")
16337	// to unconditionally include in API requests. By default, fields with
16338	// empty values are omitted from API requests. However, any non-pointer,
16339	// non-interface field appearing in ForceSendFields will be sent to the
16340	// server regardless of whether the field is empty or not. This may be
16341	// used to include empty fields in Patch requests.
16342	ForceSendFields []string `json:"-"`
16343
16344	// NullFields is a list of field names (e.g. "QueryTextSentiment") to
16345	// include in API requests with the JSON null value. By default, fields
16346	// with empty values are omitted from API requests. However, any field
16347	// with an empty value appearing in NullFields will be sent to the
16348	// server as null. It is an error if a field in this list has a
16349	// non-empty value. This may be used to include null fields in Patch
16350	// requests.
16351	NullFields []string `json:"-"`
16352}
16353
16354func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
16355	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
16356	raw := NoMethod(*s)
16357	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16358}
16359
16360// GoogleCloudDialogflowV2beta1SessionEntityType: A session represents a
16361// conversation between a Dialogflow agent and an end-user. You can
16362// create special entities, called session entities, during a session.
16363// Session entities can extend or replace custom entity types and only
16364// exist during the session that they were created for. All session
16365// data, including session entities, is stored by Dialogflow for 20
16366// minutes. For more information, see the session entity guide
16367// (https://cloud.google.com/dialogflow/docs/entities-session).
16368type GoogleCloudDialogflowV2beta1SessionEntityType struct {
16369	// Entities: Required. The collection of entities associated with this
16370	// session entity type.
16371	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
16372
16373	// EntityOverrideMode: Required. Indicates whether the additional data
16374	// should override or supplement the custom entity type definition.
16375	//
16376	// Possible values:
16377	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value
16378	// should be never used.
16379	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session
16380	// entities overrides the collection of entities in the corresponding
16381	// custom entity type.
16382	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session
16383	// entities extends the collection of entities in the corresponding
16384	// custom entity type. Note: Even in this override mode calls to
16385	// `ListSessionEntityTypes`, `GetSessionEntityType`,
16386	// `CreateSessionEntityType` and `UpdateSessionEntityType` only return
16387	// the additional entities added in this session entity type. If you
16388	// want to get the supplemented list, please call
16389	// EntityTypes.GetEntityType on the custom entity type and merge.
16390	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
16391
16392	// Name: Required. The unique identifier of this session entity type.
16393	// Supported formats: - `projects//agent/sessions//entityTypes/` -
16394	// `projects//locations//agent/sessions//entityTypes/` -
16395	// `projects//agent/environments//users//sessions//entityTypes/` -
16396	// `projects//locations//agent/environments/
16397	// /users//sessions//entityTypes/` If `Location ID` is not specified we
16398	// assume default 'us' location. If `Environment ID` is not specified,
16399	// we assume default 'draft' environment. If `User ID` is not specified,
16400	// we assume default '-' user. `` must be the display name of an
16401	// existing entity type in the same agent that will be overridden or
16402	// supplemented.
16403	Name string `json:"name,omitempty"`
16404
16405	// ServerResponse contains the HTTP response code and headers from the
16406	// server.
16407	googleapi.ServerResponse `json:"-"`
16408
16409	// ForceSendFields is a list of field names (e.g. "Entities") to
16410	// unconditionally include in API requests. By default, fields with
16411	// empty values are omitted from API requests. However, any non-pointer,
16412	// non-interface field appearing in ForceSendFields will be sent to the
16413	// server regardless of whether the field is empty or not. This may be
16414	// used to include empty fields in Patch requests.
16415	ForceSendFields []string `json:"-"`
16416
16417	// NullFields is a list of field names (e.g. "Entities") to include in
16418	// API requests with the JSON null value. By default, fields with empty
16419	// values are omitted from API requests. However, any field with an
16420	// empty value appearing in NullFields will be sent to the server as
16421	// null. It is an error if a field in this list has a non-empty value.
16422	// This may be used to include null fields in Patch requests.
16423	NullFields []string `json:"-"`
16424}
16425
16426func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
16427	type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
16428	raw := NoMethod(*s)
16429	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16430}
16431
16432// GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart
16433// reply answer.
16434type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
16435	// AnswerRecord: The name of answer record, in the format of
16436	// "projects//locations//answerRecords/"
16437	AnswerRecord string `json:"answerRecord,omitempty"`
16438
16439	// Confidence: Smart reply confidence. The system's confidence score
16440	// that this reply is a good match for this conversation, as a value
16441	// from 0.0 (completely uncertain) to 1.0 (completely certain).
16442	Confidence float64 `json:"confidence,omitempty"`
16443
16444	// Reply: The content of the reply.
16445	Reply string `json:"reply,omitempty"`
16446
16447	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
16448	// unconditionally include in API requests. By default, fields with
16449	// empty values are omitted from API requests. However, any non-pointer,
16450	// non-interface field appearing in ForceSendFields will be sent to the
16451	// server regardless of whether the field is empty or not. This may be
16452	// used to include empty fields in Patch requests.
16453	ForceSendFields []string `json:"-"`
16454
16455	// NullFields is a list of field names (e.g. "AnswerRecord") to include
16456	// in API requests with the JSON null value. By default, fields with
16457	// empty values are omitted from API requests. However, any field with
16458	// an empty value appearing in NullFields will be sent to the server as
16459	// null. It is an error if a field in this list has a non-empty value.
16460	// This may be used to include null fields in Patch requests.
16461	NullFields []string `json:"-"`
16462}
16463
16464func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
16465	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
16466	raw := NoMethod(*s)
16467	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16468}
16469
16470func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
16471	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
16472	var s1 struct {
16473		Confidence gensupport.JSONFloat64 `json:"confidence"`
16474		*NoMethod
16475	}
16476	s1.NoMethod = (*NoMethod)(s)
16477	if err := json.Unmarshal(data, &s1); err != nil {
16478		return err
16479	}
16480	s.Confidence = float64(s1.Confidence)
16481	return nil
16482}
16483
16484// GoogleCloudDialogflowV2beta1SpeechContext: Hints for the speech
16485// recognizer to help with recognition in a specific conversation state.
16486type GoogleCloudDialogflowV2beta1SpeechContext struct {
16487	// Boost: Optional. Boost for this context compared to other contexts: *
16488	// If the boost is positive, Dialogflow will increase the probability
16489	// that the phrases in this context are recognized over similar sounding
16490	// phrases. * If the boost is unspecified or non-positive, Dialogflow
16491	// will not apply any boost. Dialogflow recommends that you use boosts
16492	// in the range (0, 20] and that you find a value that fits your use
16493	// case with binary search.
16494	Boost float64 `json:"boost,omitempty"`
16495
16496	// Phrases: Optional. A list of strings containing words and phrases
16497	// that the speech recognizer should recognize with higher likelihood.
16498	// This list can be used to: * improve accuracy for words and phrases
16499	// you expect the user to say, e.g. typical commands for your Dialogflow
16500	// agent * add additional words to the speech recognizer vocabulary *
16501	// ... See the Cloud Speech documentation
16502	// (https://cloud.google.com/speech-to-text/quotas) for usage limits.
16503	Phrases []string `json:"phrases,omitempty"`
16504
16505	// ForceSendFields is a list of field names (e.g. "Boost") to
16506	// unconditionally include in API requests. By default, fields with
16507	// empty values are omitted from API requests. However, any non-pointer,
16508	// non-interface field appearing in ForceSendFields will be sent to the
16509	// server regardless of whether the field is empty or not. This may be
16510	// used to include empty fields in Patch requests.
16511	ForceSendFields []string `json:"-"`
16512
16513	// NullFields is a list of field names (e.g. "Boost") to include in API
16514	// requests with the JSON null value. By default, fields with empty
16515	// values are omitted from API requests. However, any field with an
16516	// empty value appearing in NullFields will be sent to the server as
16517	// null. It is an error if a field in this list has a non-empty value.
16518	// This may be used to include null fields in Patch requests.
16519	NullFields []string `json:"-"`
16520}
16521
16522func (s *GoogleCloudDialogflowV2beta1SpeechContext) MarshalJSON() ([]byte, error) {
16523	type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
16524	raw := NoMethod(*s)
16525	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16526}
16527
16528func (s *GoogleCloudDialogflowV2beta1SpeechContext) UnmarshalJSON(data []byte) error {
16529	type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
16530	var s1 struct {
16531		Boost gensupport.JSONFloat64 `json:"boost"`
16532		*NoMethod
16533	}
16534	s1.NoMethod = (*NoMethod)(s)
16535	if err := json.Unmarshal(data, &s1); err != nil {
16536		return err
16537	}
16538	s.Boost = float64(s1.Boost)
16539	return nil
16540}
16541
16542// GoogleCloudDialogflowV2beta1SpeechToTextConfig: Configures speech
16543// transcription for ConversationProfile.
16544type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct {
16545	// SpeechModelVariant: Optional. The speech model used in speech to
16546	// text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will
16547	// be treated as `USE_ENHANCED`. It can be overridden in
16548	// AnalyzeContentRequest and StreamingAnalyzeContentRequest request.
16549	//
16550	// Possible values:
16551	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
16552	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
16553	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
16554	// model that the caller is eligible for. Please see the [Dialogflow
16555	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
16556	// to make your project eligible for enhanced models.
16557	//   "USE_STANDARD" - Use standard model variant even if an enhanced
16558	// model is available. See the [Cloud Speech
16559	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
16560	// odels) for details about enhanced models.
16561	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
16562	// variant does not exist for the given model and request language,
16563	// Dialogflow falls back to the standard variant. The [Cloud Speech
16564	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
16565	// odels) describes which models have enhanced variants. * If the API
16566	// caller isn't eligible for enhanced models, Dialogflow returns an
16567	// error. Please see the [Dialogflow
16568	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
16569	// to make your project eligible.
16570	SpeechModelVariant string `json:"speechModelVariant,omitempty"`
16571
16572	// ForceSendFields is a list of field names (e.g. "SpeechModelVariant")
16573	// to unconditionally include in API requests. By default, fields with
16574	// empty values are omitted from API requests. However, any non-pointer,
16575	// non-interface field appearing in ForceSendFields will be sent to the
16576	// server regardless of whether the field is empty or not. This may be
16577	// used to include empty fields in Patch requests.
16578	ForceSendFields []string `json:"-"`
16579
16580	// NullFields is a list of field names (e.g. "SpeechModelVariant") to
16581	// include in API requests with the JSON null value. By default, fields
16582	// with empty values are omitted from API requests. However, any field
16583	// with an empty value appearing in NullFields will be sent to the
16584	// server as null. It is an error if a field in this list has a
16585	// non-empty value. This may be used to include null fields in Patch
16586	// requests.
16587	NullFields []string `json:"-"`
16588}
16589
16590func (s *GoogleCloudDialogflowV2beta1SpeechToTextConfig) MarshalJSON() ([]byte, error) {
16591	type NoMethod GoogleCloudDialogflowV2beta1SpeechToTextConfig
16592	raw := NoMethod(*s)
16593	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16594}
16595
16596// GoogleCloudDialogflowV2beta1SubAgent: Contains basic configuration
16597// for a sub-agent.
16598type GoogleCloudDialogflowV2beta1SubAgent struct {
16599	// Environment: Optional. The unique identifier (`environment name` in
16600	// dialogflow console) of this sub-agent environment. Assumes draft
16601	// environment if `environment` is not set.
16602	Environment string `json:"environment,omitempty"`
16603
16604	// Project: Required. The project of this agent. Format: `projects/` or
16605	// `projects//locations/`.
16606	Project string `json:"project,omitempty"`
16607
16608	// ForceSendFields is a list of field names (e.g. "Environment") to
16609	// unconditionally include in API requests. By default, fields with
16610	// empty values are omitted from API requests. However, any non-pointer,
16611	// non-interface field appearing in ForceSendFields will be sent to the
16612	// server regardless of whether the field is empty or not. This may be
16613	// used to include empty fields in Patch requests.
16614	ForceSendFields []string `json:"-"`
16615
16616	// NullFields is a list of field names (e.g. "Environment") to include
16617	// in API requests with the JSON null value. By default, fields with
16618	// empty values are omitted from API requests. However, any field with
16619	// an empty value appearing in NullFields will be sent to the server as
16620	// null. It is an error if a field in this list has a non-empty value.
16621	// This may be used to include null fields in Patch requests.
16622	NullFields []string `json:"-"`
16623}
16624
16625func (s *GoogleCloudDialogflowV2beta1SubAgent) MarshalJSON() ([]byte, error) {
16626	type NoMethod GoogleCloudDialogflowV2beta1SubAgent
16627	raw := NoMethod(*s)
16628	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16629}
16630
16631// GoogleCloudDialogflowV2beta1SuggestArticlesRequest: The request
16632// message for Participants.SuggestArticles.
16633type GoogleCloudDialogflowV2beta1SuggestArticlesRequest struct {
16634	// ContextSize: Optional. Max number of messages prior to and including
16635	// latest_message to use as context when compiling the suggestion. By
16636	// default 20 and at most 50.
16637	ContextSize int64 `json:"contextSize,omitempty"`
16638
16639	// LatestMessage: Optional. The name of the latest conversation message
16640	// to compile suggestion for. If empty, it will be the latest message of
16641	// the conversation. Format:
16642	// `projects//locations//conversations//messages/`.
16643	LatestMessage string `json:"latestMessage,omitempty"`
16644
16645	// ForceSendFields is a list of field names (e.g. "ContextSize") to
16646	// unconditionally include in API requests. By default, fields with
16647	// empty values are omitted from API requests. However, any non-pointer,
16648	// non-interface field appearing in ForceSendFields will be sent to the
16649	// server regardless of whether the field is empty or not. This may be
16650	// used to include empty fields in Patch requests.
16651	ForceSendFields []string `json:"-"`
16652
16653	// NullFields is a list of field names (e.g. "ContextSize") to include
16654	// in API requests with the JSON null value. By default, fields with
16655	// empty values are omitted from API requests. However, any field with
16656	// an empty value appearing in NullFields will be sent to the server as
16657	// null. It is an error if a field in this list has a non-empty value.
16658	// This may be used to include null fields in Patch requests.
16659	NullFields []string `json:"-"`
16660}
16661
16662func (s *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) MarshalJSON() ([]byte, error) {
16663	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesRequest
16664	raw := NoMethod(*s)
16665	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16666}
16667
16668// GoogleCloudDialogflowV2beta1SuggestArticlesResponse: The response
16669// message for Participants.SuggestArticles.
16670type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
16671	// ArticleAnswers: Output only. Articles ordered by score in descending
16672	// order.
16673	ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
16674
16675	// ContextSize: Number of messages prior to and including latest_message
16676	// to compile the suggestion. It may be smaller than the
16677	// SuggestArticlesResponse.context_size field in the request if there
16678	// aren't that many messages in the conversation.
16679	ContextSize int64 `json:"contextSize,omitempty"`
16680
16681	// LatestMessage: The name of the latest conversation message used to
16682	// compile suggestion for. Format:
16683	// `projects//locations//conversations//messages/`.
16684	LatestMessage string `json:"latestMessage,omitempty"`
16685
16686	// ServerResponse contains the HTTP response code and headers from the
16687	// server.
16688	googleapi.ServerResponse `json:"-"`
16689
16690	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
16691	// unconditionally include in API requests. By default, fields with
16692	// empty values are omitted from API requests. However, any non-pointer,
16693	// non-interface field appearing in ForceSendFields will be sent to the
16694	// server regardless of whether the field is empty or not. This may be
16695	// used to include empty fields in Patch requests.
16696	ForceSendFields []string `json:"-"`
16697
16698	// NullFields is a list of field names (e.g. "ArticleAnswers") to
16699	// include in API requests with the JSON null value. By default, fields
16700	// with empty values are omitted from API requests. However, any field
16701	// with an empty value appearing in NullFields will be sent to the
16702	// server as null. It is an error if a field in this list has a
16703	// non-empty value. This may be used to include null fields in Patch
16704	// requests.
16705	NullFields []string `json:"-"`
16706}
16707
16708func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
16709	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
16710	raw := NoMethod(*s)
16711	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16712}
16713
16714// GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest: The request
16715// message for Participants.SuggestFaqAnswers.
16716type GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest struct {
16717	// ContextSize: Optional. Max number of messages prior to and including
16718	// [latest_message] to use as context when compiling the suggestion. By
16719	// default 20 and at most 50.
16720	ContextSize int64 `json:"contextSize,omitempty"`
16721
16722	// LatestMessage: Optional. The name of the latest conversation message
16723	// to compile suggestion for. If empty, it will be the latest message of
16724	// the conversation. Format:
16725	// `projects//locations//conversations//messages/`.
16726	LatestMessage string `json:"latestMessage,omitempty"`
16727
16728	// ForceSendFields is a list of field names (e.g. "ContextSize") to
16729	// unconditionally include in API requests. By default, fields with
16730	// empty values are omitted from API requests. However, any non-pointer,
16731	// non-interface field appearing in ForceSendFields will be sent to the
16732	// server regardless of whether the field is empty or not. This may be
16733	// used to include empty fields in Patch requests.
16734	ForceSendFields []string `json:"-"`
16735
16736	// NullFields is a list of field names (e.g. "ContextSize") to include
16737	// in API requests with the JSON null value. By default, fields with
16738	// empty values are omitted from API requests. However, any field with
16739	// an empty value appearing in NullFields will be sent to the server as
16740	// null. It is an error if a field in this list has a non-empty value.
16741	// This may be used to include null fields in Patch requests.
16742	NullFields []string `json:"-"`
16743}
16744
16745func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) MarshalJSON() ([]byte, error) {
16746	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
16747	raw := NoMethod(*s)
16748	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16749}
16750
16751// GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: The request
16752// message for Participants.SuggestFaqAnswers.
16753type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
16754	// ContextSize: Number of messages prior to and including latest_message
16755	// to compile the suggestion. It may be smaller than the
16756	// SuggestFaqAnswersRequest.context_size field in the request if there
16757	// aren't that many messages in the conversation.
16758	ContextSize int64 `json:"contextSize,omitempty"`
16759
16760	// FaqAnswers: Output only. Answers extracted from FAQ documents.
16761	FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
16762
16763	// LatestMessage: The name of the latest conversation message used to
16764	// compile suggestion for. Format:
16765	// `projects//locations//conversations//messages/`.
16766	LatestMessage string `json:"latestMessage,omitempty"`
16767
16768	// ServerResponse contains the HTTP response code and headers from the
16769	// server.
16770	googleapi.ServerResponse `json:"-"`
16771
16772	// ForceSendFields is a list of field names (e.g. "ContextSize") to
16773	// unconditionally include in API requests. By default, fields with
16774	// empty values are omitted from API requests. However, any non-pointer,
16775	// non-interface field appearing in ForceSendFields will be sent to the
16776	// server regardless of whether the field is empty or not. This may be
16777	// used to include empty fields in Patch requests.
16778	ForceSendFields []string `json:"-"`
16779
16780	// NullFields is a list of field names (e.g. "ContextSize") to include
16781	// in API requests with the JSON null value. By default, fields with
16782	// empty values are omitted from API requests. However, any field with
16783	// an empty value appearing in NullFields will be sent to the server as
16784	// null. It is an error if a field in this list has a non-empty value.
16785	// This may be used to include null fields in Patch requests.
16786	NullFields []string `json:"-"`
16787}
16788
16789func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
16790	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
16791	raw := NoMethod(*s)
16792	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16793}
16794
16795// GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest: The request
16796// message for Participants.SuggestSmartReplies.
16797type GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest struct {
16798	// ContextSize: Optional. Max number of messages prior to and including
16799	// [latest_message] to use as context when compiling the suggestion. By
16800	// default 20 and at most 50.
16801	ContextSize int64 `json:"contextSize,omitempty"`
16802
16803	// CurrentTextInput: The current natural language text segment to
16804	// compile suggestion for. This provides a way for user to get follow up
16805	// smart reply suggestion after a smart reply selection, without sending
16806	// a text message.
16807	CurrentTextInput *GoogleCloudDialogflowV2beta1TextInput `json:"currentTextInput,omitempty"`
16808
16809	// LatestMessage: The name of the latest conversation message to compile
16810	// suggestion for. If empty, it will be the latest message of the
16811	// conversation. Format:
16812	// `projects//locations//conversations//messages/`.
16813	LatestMessage string `json:"latestMessage,omitempty"`
16814
16815	// ForceSendFields is a list of field names (e.g. "ContextSize") to
16816	// unconditionally include in API requests. By default, fields with
16817	// empty values are omitted from API requests. However, any non-pointer,
16818	// non-interface field appearing in ForceSendFields will be sent to the
16819	// server regardless of whether the field is empty or not. This may be
16820	// used to include empty fields in Patch requests.
16821	ForceSendFields []string `json:"-"`
16822
16823	// NullFields is a list of field names (e.g. "ContextSize") to include
16824	// in API requests with the JSON null value. By default, fields with
16825	// empty values are omitted from API requests. However, any field with
16826	// an empty value appearing in NullFields will be sent to the server as
16827	// null. It is an error if a field in this list has a non-empty value.
16828	// This may be used to include null fields in Patch requests.
16829	NullFields []string `json:"-"`
16830}
16831
16832func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) MarshalJSON() ([]byte, error) {
16833	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
16834	raw := NoMethod(*s)
16835	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16836}
16837
16838// GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse: The response
16839// message for Participants.SuggestSmartReplies.
16840type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
16841	// ContextSize: Number of messages prior to and including latest_message
16842	// to compile the suggestion. It may be smaller than the
16843	// SuggestSmartRepliesRequest.context_size field in the request if there
16844	// aren't that many messages in the conversation.
16845	ContextSize int64 `json:"contextSize,omitempty"`
16846
16847	// LatestMessage: The name of the latest conversation message used to
16848	// compile suggestion for. Format:
16849	// `projects//locations//conversations//messages/`.
16850	LatestMessage string `json:"latestMessage,omitempty"`
16851
16852	// SmartReplyAnswers: Output only. Multiple reply options provided by
16853	// smart reply service. The order is based on the rank of the model
16854	// prediction. The maximum number of the returned replies is set in
16855	// SmartReplyConfig.
16856	SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
16857
16858	// ServerResponse contains the HTTP response code and headers from the
16859	// server.
16860	googleapi.ServerResponse `json:"-"`
16861
16862	// ForceSendFields is a list of field names (e.g. "ContextSize") to
16863	// unconditionally include in API requests. By default, fields with
16864	// empty values are omitted from API requests. However, any non-pointer,
16865	// non-interface field appearing in ForceSendFields will be sent to the
16866	// server regardless of whether the field is empty or not. This may be
16867	// used to include empty fields in Patch requests.
16868	ForceSendFields []string `json:"-"`
16869
16870	// NullFields is a list of field names (e.g. "ContextSize") to include
16871	// in API requests with the JSON null value. By default, fields with
16872	// empty values are omitted from API requests. However, any field with
16873	// an empty value appearing in NullFields will be sent to the server as
16874	// null. It is an error if a field in this list has a non-empty value.
16875	// This may be used to include null fields in Patch requests.
16876	NullFields []string `json:"-"`
16877}
16878
16879func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
16880	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
16881	raw := NoMethod(*s)
16882	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16883}
16884
16885// GoogleCloudDialogflowV2beta1Suggestion: Represents a suggestion for a
16886// human agent.
16887type GoogleCloudDialogflowV2beta1Suggestion struct {
16888	// Articles: Output only. Articles ordered by score in descending order.
16889	Articles []*GoogleCloudDialogflowV2beta1SuggestionArticle `json:"articles,omitempty"`
16890
16891	// CreateTime: Output only. The time the suggestion was created.
16892	CreateTime string `json:"createTime,omitempty"`
16893
16894	// FaqAnswers: Output only. Answers extracted from FAQ documents.
16895	FaqAnswers []*GoogleCloudDialogflowV2beta1SuggestionFaqAnswer `json:"faqAnswers,omitempty"`
16896
16897	// LatestMessage: Output only. Latest message used as context to compile
16898	// this suggestion. Format:
16899	// `projects//locations//conversations//messages/`.
16900	LatestMessage string `json:"latestMessage,omitempty"`
16901
16902	// Name: Output only. The name of this suggestion. Format:
16903	// `projects//locations//conversations//participants/*/suggestions/`.
16904	Name string `json:"name,omitempty"`
16905
16906	// ForceSendFields is a list of field names (e.g. "Articles") to
16907	// unconditionally include in API requests. By default, fields with
16908	// empty values are omitted from API requests. However, any non-pointer,
16909	// non-interface field appearing in ForceSendFields will be sent to the
16910	// server regardless of whether the field is empty or not. This may be
16911	// used to include empty fields in Patch requests.
16912	ForceSendFields []string `json:"-"`
16913
16914	// NullFields is a list of field names (e.g. "Articles") to include in
16915	// API requests with the JSON null value. By default, fields with empty
16916	// values are omitted from API requests. However, any field with an
16917	// empty value appearing in NullFields will be sent to the server as
16918	// null. It is an error if a field in this list has a non-empty value.
16919	// This may be used to include null fields in Patch requests.
16920	NullFields []string `json:"-"`
16921}
16922
16923func (s *GoogleCloudDialogflowV2beta1Suggestion) MarshalJSON() ([]byte, error) {
16924	type NoMethod GoogleCloudDialogflowV2beta1Suggestion
16925	raw := NoMethod(*s)
16926	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16927}
16928
16929// GoogleCloudDialogflowV2beta1SuggestionArticle: Represents suggested
16930// article.
16931type GoogleCloudDialogflowV2beta1SuggestionArticle struct {
16932	// AnswerRecord: Output only. The name of answer record, in the format
16933	// of "projects//locations//answerRecords/"
16934	AnswerRecord string `json:"answerRecord,omitempty"`
16935
16936	// Metadata: Output only. A map that contains metadata about the answer
16937	// and the document from which it originates.
16938	Metadata map[string]string `json:"metadata,omitempty"`
16939
16940	// Snippets: Output only. Article snippets.
16941	Snippets []string `json:"snippets,omitempty"`
16942
16943	// Title: Output only. The article title.
16944	Title string `json:"title,omitempty"`
16945
16946	// Uri: Output only. The article URI.
16947	Uri string `json:"uri,omitempty"`
16948
16949	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
16950	// unconditionally include in API requests. By default, fields with
16951	// empty values are omitted from API requests. However, any non-pointer,
16952	// non-interface field appearing in ForceSendFields will be sent to the
16953	// server regardless of whether the field is empty or not. This may be
16954	// used to include empty fields in Patch requests.
16955	ForceSendFields []string `json:"-"`
16956
16957	// NullFields is a list of field names (e.g. "AnswerRecord") to include
16958	// in API requests with the JSON null value. By default, fields with
16959	// empty values are omitted from API requests. However, any field with
16960	// an empty value appearing in NullFields will be sent to the server as
16961	// null. It is an error if a field in this list has a non-empty value.
16962	// This may be used to include null fields in Patch requests.
16963	NullFields []string `json:"-"`
16964}
16965
16966func (s *GoogleCloudDialogflowV2beta1SuggestionArticle) MarshalJSON() ([]byte, error) {
16967	type NoMethod GoogleCloudDialogflowV2beta1SuggestionArticle
16968	raw := NoMethod(*s)
16969	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16970}
16971
16972// GoogleCloudDialogflowV2beta1SuggestionFaqAnswer: Represents suggested
16973// answer from "frequently asked questions".
16974type GoogleCloudDialogflowV2beta1SuggestionFaqAnswer struct {
16975	// Answer: Output only. The piece of text from the `source` knowledge
16976	// base document.
16977	Answer string `json:"answer,omitempty"`
16978
16979	// AnswerRecord: Output only. The name of answer record, in the format
16980	// of "projects//locations//answerRecords/"
16981	AnswerRecord string `json:"answerRecord,omitempty"`
16982
16983	// Confidence: The system's confidence score that this Knowledge answer
16984	// is a good match for this conversational query, range from 0.0
16985	// (completely uncertain) to 1.0 (completely certain).
16986	Confidence float64 `json:"confidence,omitempty"`
16987
16988	// Metadata: Output only. A map that contains metadata about the answer
16989	// and the document from which it originates.
16990	Metadata map[string]string `json:"metadata,omitempty"`
16991
16992	// Question: Output only. The corresponding FAQ question.
16993	Question string `json:"question,omitempty"`
16994
16995	// Source: Output only. Indicates which Knowledge Document this answer
16996	// was extracted from. Format:
16997	// `projects//locations//agent/knowledgeBases//documents/`.
16998	Source string `json:"source,omitempty"`
16999
17000	// ForceSendFields is a list of field names (e.g. "Answer") to
17001	// unconditionally include in API requests. By default, fields with
17002	// empty values are omitted from API requests. However, any non-pointer,
17003	// non-interface field appearing in ForceSendFields will be sent to the
17004	// server regardless of whether the field is empty or not. This may be
17005	// used to include empty fields in Patch requests.
17006	ForceSendFields []string `json:"-"`
17007
17008	// NullFields is a list of field names (e.g. "Answer") to include in API
17009	// requests with the JSON null value. By default, fields with empty
17010	// values are omitted from API requests. However, any field with an
17011	// empty value appearing in NullFields will be sent to the server as
17012	// null. It is an error if a field in this list has a non-empty value.
17013	// This may be used to include null fields in Patch requests.
17014	NullFields []string `json:"-"`
17015}
17016
17017func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) MarshalJSON() ([]byte, error) {
17018	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
17019	raw := NoMethod(*s)
17020	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17021}
17022
17023func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) UnmarshalJSON(data []byte) error {
17024	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
17025	var s1 struct {
17026		Confidence gensupport.JSONFloat64 `json:"confidence"`
17027		*NoMethod
17028	}
17029	s1.NoMethod = (*NoMethod)(s)
17030	if err := json.Unmarshal(data, &s1); err != nil {
17031		return err
17032	}
17033	s.Confidence = float64(s1.Confidence)
17034	return nil
17035}
17036
17037// GoogleCloudDialogflowV2beta1SuggestionFeature: The type of Human
17038// Agent Assistant API suggestion to perform, and the maximum number of
17039// results to return for that type. Multiple `Feature` objects can be
17040// specified in the `features` list.
17041type GoogleCloudDialogflowV2beta1SuggestionFeature struct {
17042	// Type: Type of Human Agent Assistant API feature to request.
17043	//
17044	// Possible values:
17045	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
17046	//   "ARTICLE_SUGGESTION" - Run article suggestion model.
17047	//   "FAQ" - Run FAQ model.
17048	//   "SMART_REPLY" - Run smart reply model.
17049	Type string `json:"type,omitempty"`
17050
17051	// ForceSendFields is a list of field names (e.g. "Type") to
17052	// unconditionally include in API requests. By default, fields with
17053	// empty values are omitted from API requests. However, any non-pointer,
17054	// non-interface field appearing in ForceSendFields will be sent to the
17055	// server regardless of whether the field is empty or not. This may be
17056	// used to include empty fields in Patch requests.
17057	ForceSendFields []string `json:"-"`
17058
17059	// NullFields is a list of field names (e.g. "Type") to include in API
17060	// requests with the JSON null value. By default, fields with empty
17061	// values are omitted from API requests. However, any field with an
17062	// empty value appearing in NullFields will be sent to the server as
17063	// null. It is an error if a field in this list has a non-empty value.
17064	// This may be used to include null fields in Patch requests.
17065	NullFields []string `json:"-"`
17066}
17067
17068func (s *GoogleCloudDialogflowV2beta1SuggestionFeature) MarshalJSON() ([]byte, error) {
17069	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFeature
17070	raw := NoMethod(*s)
17071	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17072}
17073
17074// GoogleCloudDialogflowV2beta1SuggestionResult: One response of
17075// different type of suggestion response which is used in the response
17076// of Participants.AnalyzeContent and Participants.AnalyzeContent, as
17077// well as HumanAgentAssistantEvent.
17078type GoogleCloudDialogflowV2beta1SuggestionResult struct {
17079	// Error: Error status if the request failed.
17080	Error *GoogleRpcStatus `json:"error,omitempty"`
17081
17082	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
17083	// ARTICLE_SUGGESTION.
17084	SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
17085
17086	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is
17087	// for FAQ_ANSWER.
17088	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
17089
17090	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request
17091	// is for SMART_REPLY.
17092	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
17093
17094	// ForceSendFields is a list of field names (e.g. "Error") to
17095	// unconditionally include in API requests. By default, fields with
17096	// empty values are omitted from API requests. However, any non-pointer,
17097	// non-interface field appearing in ForceSendFields will be sent to the
17098	// server regardless of whether the field is empty or not. This may be
17099	// used to include empty fields in Patch requests.
17100	ForceSendFields []string `json:"-"`
17101
17102	// NullFields is a list of field names (e.g. "Error") to include in API
17103	// requests with the JSON null value. By default, fields with empty
17104	// values are omitted from API requests. However, any field with an
17105	// empty value appearing in NullFields will be sent to the server as
17106	// null. It is an error if a field in this list has a non-empty value.
17107	// This may be used to include null fields in Patch requests.
17108	NullFields []string `json:"-"`
17109}
17110
17111func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
17112	type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
17113	raw := NoMethod(*s)
17114	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17115}
17116
17117// GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig: Configuration of
17118// how speech should be synthesized.
17119type GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig struct {
17120	// EffectsProfileId: Optional. An identifier which selects 'audio
17121	// effects' profiles that are applied on (post synthesized) text to
17122	// speech. Effects are applied on top of each other in the order they
17123	// are given.
17124	EffectsProfileId []string `json:"effectsProfileId,omitempty"`
17125
17126	// Pitch: Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means
17127	// increase 20 semitones from the original pitch. -20 means decrease 20
17128	// semitones from the original pitch.
17129	Pitch float64 `json:"pitch,omitempty"`
17130
17131	// SpeakingRate: Optional. Speaking rate/speed, in the range [0.25,
17132	// 4.0]. 1.0 is the normal native speed supported by the specific voice.
17133	// 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0),
17134	// defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0
17135	// will return an error.
17136	SpeakingRate float64 `json:"speakingRate,omitempty"`
17137
17138	// Voice: Optional. The desired voice of the synthesized audio.
17139	Voice *GoogleCloudDialogflowV2beta1VoiceSelectionParams `json:"voice,omitempty"`
17140
17141	// VolumeGainDb: Optional. Volume gain (in dB) of the normal native
17142	// volume supported by the specific voice, in the range [-96.0, 16.0].
17143	// If unset, or set to a value of 0.0 (dB), will play at normal native
17144	// signal amplitude. A value of -6.0 (dB) will play at approximately
17145	// half the amplitude of the normal native signal amplitude. A value of
17146	// +6.0 (dB) will play at approximately twice the amplitude of the
17147	// normal native signal amplitude. We strongly recommend not to exceed
17148	// +10 (dB) as there's usually no effective increase in loudness for any
17149	// value greater than that.
17150	VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
17151
17152	// ForceSendFields is a list of field names (e.g. "EffectsProfileId") to
17153	// unconditionally include in API requests. By default, fields with
17154	// empty values are omitted from API requests. However, any non-pointer,
17155	// non-interface field appearing in ForceSendFields will be sent to the
17156	// server regardless of whether the field is empty or not. This may be
17157	// used to include empty fields in Patch requests.
17158	ForceSendFields []string `json:"-"`
17159
17160	// NullFields is a list of field names (e.g. "EffectsProfileId") to
17161	// include in API requests with the JSON null value. By default, fields
17162	// with empty values are omitted from API requests. However, any field
17163	// with an empty value appearing in NullFields will be sent to the
17164	// server as null. It is an error if a field in this list has a
17165	// non-empty value. This may be used to include null fields in Patch
17166	// requests.
17167	NullFields []string `json:"-"`
17168}
17169
17170func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
17171	type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
17172	raw := NoMethod(*s)
17173	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17174}
17175
17176func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
17177	type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
17178	var s1 struct {
17179		Pitch        gensupport.JSONFloat64 `json:"pitch"`
17180		SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
17181		VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
17182		*NoMethod
17183	}
17184	s1.NoMethod = (*NoMethod)(s)
17185	if err := json.Unmarshal(data, &s1); err != nil {
17186		return err
17187	}
17188	s.Pitch = float64(s1.Pitch)
17189	s.SpeakingRate = float64(s1.SpeakingRate)
17190	s.VolumeGainDb = float64(s1.VolumeGainDb)
17191	return nil
17192}
17193
17194// GoogleCloudDialogflowV2beta1TelephonyDtmfEvents: A wrapper of
17195// repeated TelephonyDtmf digits.
17196type GoogleCloudDialogflowV2beta1TelephonyDtmfEvents struct {
17197	// DtmfEvents: A sequence of TelephonyDtmf digits.
17198	//
17199	// Possible values:
17200	//   "TELEPHONY_DTMF_UNSPECIFIED" - Not specified. This value may be
17201	// used to indicate an absent digit.
17202	//   "DTMF_ONE" - Number: '1'.
17203	//   "DTMF_TWO" - Number: '2'.
17204	//   "DTMF_THREE" - Number: '3'.
17205	//   "DTMF_FOUR" - Number: '4'.
17206	//   "DTMF_FIVE" - Number: '5'.
17207	//   "DTMF_SIX" - Number: '6'.
17208	//   "DTMF_SEVEN" - Number: '7'.
17209	//   "DTMF_EIGHT" - Number: '8'.
17210	//   "DTMF_NINE" - Number: '9'.
17211	//   "DTMF_ZERO" - Number: '0'.
17212	//   "DTMF_A" - Letter: 'A'.
17213	//   "DTMF_B" - Letter: 'B'.
17214	//   "DTMF_C" - Letter: 'C'.
17215	//   "DTMF_D" - Letter: 'D'.
17216	//   "DTMF_STAR" - Asterisk/star: '*'.
17217	//   "DTMF_POUND" - Pound/diamond/hash/square/gate/octothorpe: '#'.
17218	DtmfEvents []string `json:"dtmfEvents,omitempty"`
17219
17220	// ForceSendFields is a list of field names (e.g. "DtmfEvents") to
17221	// unconditionally include in API requests. By default, fields with
17222	// empty values are omitted from API requests. However, any non-pointer,
17223	// non-interface field appearing in ForceSendFields will be sent to the
17224	// server regardless of whether the field is empty or not. This may be
17225	// used to include empty fields in Patch requests.
17226	ForceSendFields []string `json:"-"`
17227
17228	// NullFields is a list of field names (e.g. "DtmfEvents") to include in
17229	// API requests with the JSON null value. By default, fields with empty
17230	// values are omitted from API requests. However, any field with an
17231	// empty value appearing in NullFields will be sent to the server as
17232	// null. It is an error if a field in this list has a non-empty value.
17233	// This may be used to include null fields in Patch requests.
17234	NullFields []string `json:"-"`
17235}
17236
17237func (s *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents) MarshalJSON() ([]byte, error) {
17238	type NoMethod GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
17239	raw := NoMethod(*s)
17240	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17241}
17242
17243// GoogleCloudDialogflowV2beta1TextInput: Represents the natural
17244// language text to be processed.
17245type GoogleCloudDialogflowV2beta1TextInput struct {
17246	// LanguageCode: Required. The language of this conversational query.
17247	// See Language Support
17248	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
17249	// list of the currently supported language codes. Note that queries in
17250	// the same session do not necessarily need to specify the same
17251	// language.
17252	LanguageCode string `json:"languageCode,omitempty"`
17253
17254	// Text: Required. The UTF-8 encoded natural language text to be
17255	// processed. Text length must not exceed 256 characters.
17256	Text string `json:"text,omitempty"`
17257
17258	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
17259	// unconditionally include in API requests. By default, fields with
17260	// empty values are omitted from API requests. However, any non-pointer,
17261	// non-interface field appearing in ForceSendFields will be sent to the
17262	// server regardless of whether the field is empty or not. This may be
17263	// used to include empty fields in Patch requests.
17264	ForceSendFields []string `json:"-"`
17265
17266	// NullFields is a list of field names (e.g. "LanguageCode") to include
17267	// in API requests with the JSON null value. By default, fields with
17268	// empty values are omitted from API requests. However, any field with
17269	// an empty value appearing in NullFields will be sent to the server as
17270	// null. It is an error if a field in this list has a non-empty value.
17271	// This may be used to include null fields in Patch requests.
17272	NullFields []string `json:"-"`
17273}
17274
17275func (s *GoogleCloudDialogflowV2beta1TextInput) MarshalJSON() ([]byte, error) {
17276	type NoMethod GoogleCloudDialogflowV2beta1TextInput
17277	raw := NoMethod(*s)
17278	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17279}
17280
17281// GoogleCloudDialogflowV2beta1TextToSpeechSettings: Instructs the
17282// speech synthesizer on how to generate the output audio content.
17283type GoogleCloudDialogflowV2beta1TextToSpeechSettings struct {
17284	// EnableTextToSpeech: Optional. Indicates whether text to speech is
17285	// enabled. Even when this field is false, other settings in this proto
17286	// are still retained.
17287	EnableTextToSpeech bool `json:"enableTextToSpeech,omitempty"`
17288
17289	// OutputAudioEncoding: Required. Audio encoding of the synthesized
17290	// audio content.
17291	//
17292	// Possible values:
17293	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
17294	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
17295	// little-endian samples (Linear PCM). Audio content returned as
17296	// LINEAR16 also contains a WAV header.
17297	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
17298	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
17299	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an
17300	// ogg container. The result will be a file which can be played natively
17301	// on Android, and in browsers (at least Chrome and Firefox). The
17302	// quality of the encoding is considerably higher than MP3 while using
17303	// approximately the same bitrate.
17304	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit
17305	// audio samples using G.711 PCMU/mu-law.
17306	OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"`
17307
17308	// SampleRateHertz: Optional. The synthesis sample rate (in hertz) for
17309	// this audio. If not provided, then the synthesizer will use the
17310	// default sample rate based on the audio encoding. If this is different
17311	// from the voice's natural sample rate, then the synthesizer will honor
17312	// this request by converting to the desired sample rate (which might
17313	// result in worse audio quality).
17314	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
17315
17316	// SynthesizeSpeechConfigs: Optional. Configuration of how speech should
17317	// be synthesized, mapping from language
17318	// (https://cloud.google.com/dialogflow/docs/reference/language) to
17319	// SynthesizeSpeechConfig.
17320	SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
17321
17322	// ForceSendFields is a list of field names (e.g. "EnableTextToSpeech")
17323	// to unconditionally include in API requests. By default, fields with
17324	// empty values are omitted from API requests. However, any non-pointer,
17325	// non-interface field appearing in ForceSendFields will be sent to the
17326	// server regardless of whether the field is empty or not. This may be
17327	// used to include empty fields in Patch requests.
17328	ForceSendFields []string `json:"-"`
17329
17330	// NullFields is a list of field names (e.g. "EnableTextToSpeech") to
17331	// include in API requests with the JSON null value. By default, fields
17332	// with empty values are omitted from API requests. However, any field
17333	// with an empty value appearing in NullFields will be sent to the
17334	// server as null. It is an error if a field in this list has a
17335	// non-empty value. This may be used to include null fields in Patch
17336	// requests.
17337	NullFields []string `json:"-"`
17338}
17339
17340func (s *GoogleCloudDialogflowV2beta1TextToSpeechSettings) MarshalJSON() ([]byte, error) {
17341	type NoMethod GoogleCloudDialogflowV2beta1TextToSpeechSettings
17342	raw := NoMethod(*s)
17343	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17344}
17345
17346// GoogleCloudDialogflowV2beta1TrainAgentRequest: The request message
17347// for Agents.TrainAgent.
17348type GoogleCloudDialogflowV2beta1TrainAgentRequest struct {
17349}
17350
17351// GoogleCloudDialogflowV2beta1ValidationError: Represents a single
17352// validation error.
17353type GoogleCloudDialogflowV2beta1ValidationError struct {
17354	// Entries: The names of the entries that the error is associated with.
17355	// Format: - "projects//agent", if the error is associated with the
17356	// entire agent. - "projects//agent/intents/", if the error is
17357	// associated with certain intents. -
17358	// "projects//agent/intents//trainingPhrases/", if the error is
17359	// associated with certain intent training phrases. -
17360	// "projects//agent/intents//parameters/", if the error is associated
17361	// with certain intent parameters. - "projects//agent/entities/", if the
17362	// error is associated with certain entities.
17363	Entries []string `json:"entries,omitempty"`
17364
17365	// ErrorMessage: The detailed error messsage.
17366	ErrorMessage string `json:"errorMessage,omitempty"`
17367
17368	// Severity: The severity of the error.
17369	//
17370	// Possible values:
17371	//   "SEVERITY_UNSPECIFIED" - Not specified. This value should never be
17372	// used.
17373	//   "INFO" - The agent doesn't follow Dialogflow best practices.
17374	//   "WARNING" - The agent may not behave as expected.
17375	//   "ERROR" - The agent may experience partial failures.
17376	//   "CRITICAL" - The agent may completely fail.
17377	Severity string `json:"severity,omitempty"`
17378
17379	// ForceSendFields is a list of field names (e.g. "Entries") to
17380	// unconditionally include in API requests. By default, fields with
17381	// empty values are omitted from API requests. However, any non-pointer,
17382	// non-interface field appearing in ForceSendFields will be sent to the
17383	// server regardless of whether the field is empty or not. This may be
17384	// used to include empty fields in Patch requests.
17385	ForceSendFields []string `json:"-"`
17386
17387	// NullFields is a list of field names (e.g. "Entries") to include in
17388	// API requests with the JSON null value. By default, fields with empty
17389	// values are omitted from API requests. However, any field with an
17390	// empty value appearing in NullFields will be sent to the server as
17391	// null. It is an error if a field in this list has a non-empty value.
17392	// This may be used to include null fields in Patch requests.
17393	NullFields []string `json:"-"`
17394}
17395
17396func (s *GoogleCloudDialogflowV2beta1ValidationError) MarshalJSON() ([]byte, error) {
17397	type NoMethod GoogleCloudDialogflowV2beta1ValidationError
17398	raw := NoMethod(*s)
17399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17400}
17401
17402// GoogleCloudDialogflowV2beta1ValidationResult: Represents the output
17403// of agent validation.
17404type GoogleCloudDialogflowV2beta1ValidationResult struct {
17405	// ValidationErrors: Contains all validation errors.
17406	ValidationErrors []*GoogleCloudDialogflowV2beta1ValidationError `json:"validationErrors,omitempty"`
17407
17408	// ServerResponse contains the HTTP response code and headers from the
17409	// server.
17410	googleapi.ServerResponse `json:"-"`
17411
17412	// ForceSendFields is a list of field names (e.g. "ValidationErrors") to
17413	// unconditionally include in API requests. By default, fields with
17414	// empty values are omitted from API requests. However, any non-pointer,
17415	// non-interface field appearing in ForceSendFields will be sent to the
17416	// server regardless of whether the field is empty or not. This may be
17417	// used to include empty fields in Patch requests.
17418	ForceSendFields []string `json:"-"`
17419
17420	// NullFields is a list of field names (e.g. "ValidationErrors") to
17421	// include in API requests with the JSON null value. By default, fields
17422	// with empty values are omitted from API requests. However, any field
17423	// with an empty value appearing in NullFields will be sent to the
17424	// server as null. It is an error if a field in this list has a
17425	// non-empty value. This may be used to include null fields in Patch
17426	// requests.
17427	NullFields []string `json:"-"`
17428}
17429
17430func (s *GoogleCloudDialogflowV2beta1ValidationResult) MarshalJSON() ([]byte, error) {
17431	type NoMethod GoogleCloudDialogflowV2beta1ValidationResult
17432	raw := NoMethod(*s)
17433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17434}
17435
17436// GoogleCloudDialogflowV2beta1Version: You can create multiple versions
17437// of your agent and publish them to separate environments. When you
17438// edit an agent, you are editing the draft agent. At any point, you can
17439// save the draft agent as an agent version, which is an immutable
17440// snapshot of your agent. When you save the draft agent, it is
17441// published to the default environment. When you create agent versions,
17442// you can publish them to custom environments. You can create a variety
17443// of custom environments for: - testing - development - production -
17444// etc. For more information, see the versions and environments guide
17445// (https://cloud.google.com/dialogflow/docs/agents-versions).
17446type GoogleCloudDialogflowV2beta1Version struct {
17447	// CreateTime: Output only. The creation time of this version. This
17448	// field is read-only, i.e., it cannot be set by create and update
17449	// methods.
17450	CreateTime string `json:"createTime,omitempty"`
17451
17452	// Description: Optional. The developer-provided description of this
17453	// version.
17454	Description string `json:"description,omitempty"`
17455
17456	// Name: Output only. The unique identifier of this agent version.
17457	// Supported formats: - `projects//agent/versions/` -
17458	// `projects//locations//agent/versions/`
17459	Name string `json:"name,omitempty"`
17460
17461	// Status: Output only. The status of this version. This field is
17462	// read-only and cannot be set by create and update methods.
17463	//
17464	// Possible values:
17465	//   "VERSION_STATUS_UNSPECIFIED" - Not specified. This value is not
17466	// used.
17467	//   "IN_PROGRESS" - Version is not ready to serve (e.g. training is in
17468	// progress).
17469	//   "READY" - Version is ready to serve.
17470	//   "FAILED" - Version training failed.
17471	Status string `json:"status,omitempty"`
17472
17473	// VersionNumber: Output only. The sequential number of this version.
17474	// This field is read-only which means it cannot be set by create and
17475	// update methods.
17476	VersionNumber int64 `json:"versionNumber,omitempty"`
17477
17478	// ServerResponse contains the HTTP response code and headers from the
17479	// server.
17480	googleapi.ServerResponse `json:"-"`
17481
17482	// ForceSendFields is a list of field names (e.g. "CreateTime") to
17483	// unconditionally include in API requests. By default, fields with
17484	// empty values are omitted from API requests. However, any non-pointer,
17485	// non-interface field appearing in ForceSendFields will be sent to the
17486	// server regardless of whether the field is empty or not. This may be
17487	// used to include empty fields in Patch requests.
17488	ForceSendFields []string `json:"-"`
17489
17490	// NullFields is a list of field names (e.g. "CreateTime") to include in
17491	// API requests with the JSON null value. By default, fields with empty
17492	// values are omitted from API requests. However, any field with an
17493	// empty value appearing in NullFields will be sent to the server as
17494	// null. It is an error if a field in this list has a non-empty value.
17495	// This may be used to include null fields in Patch requests.
17496	NullFields []string `json:"-"`
17497}
17498
17499func (s *GoogleCloudDialogflowV2beta1Version) MarshalJSON() ([]byte, error) {
17500	type NoMethod GoogleCloudDialogflowV2beta1Version
17501	raw := NoMethod(*s)
17502	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17503}
17504
17505// GoogleCloudDialogflowV2beta1VoiceSelectionParams: Description of
17506// which voice to use for speech synthesis.
17507type GoogleCloudDialogflowV2beta1VoiceSelectionParams struct {
17508	// Name: Optional. The name of the voice. If not set, the service will
17509	// choose a voice based on the other parameters such as language_code
17510	// and ssml_gender. For the list of available voices, please refer to
17511	// Supported voices and languages
17512	// (https://cloud.google.com/text-to-speech/docs/voices).
17513	Name string `json:"name,omitempty"`
17514
17515	// SsmlGender: Optional. The preferred gender of the voice. If not set,
17516	// the service will choose a voice based on the other parameters such as
17517	// language_code and name. Note that this is only a preference, not
17518	// requirement. If a voice of the appropriate gender is not available,
17519	// the synthesizer should substitute a voice with a different gender
17520	// rather than failing the request.
17521	//
17522	// Possible values:
17523	//   "SSML_VOICE_GENDER_UNSPECIFIED" - An unspecified gender, which
17524	// means that the client doesn't care which gender the selected voice
17525	// will have.
17526	//   "SSML_VOICE_GENDER_MALE" - A male voice.
17527	//   "SSML_VOICE_GENDER_FEMALE" - A female voice.
17528	//   "SSML_VOICE_GENDER_NEUTRAL" - A gender-neutral voice.
17529	SsmlGender string `json:"ssmlGender,omitempty"`
17530
17531	// ForceSendFields is a list of field names (e.g. "Name") to
17532	// unconditionally include in API requests. By default, fields with
17533	// empty values are omitted from API requests. However, any non-pointer,
17534	// non-interface field appearing in ForceSendFields will be sent to the
17535	// server regardless of whether the field is empty or not. This may be
17536	// used to include empty fields in Patch requests.
17537	ForceSendFields []string `json:"-"`
17538
17539	// NullFields is a list of field names (e.g. "Name") to include in API
17540	// requests with the JSON null value. By default, fields with empty
17541	// values are omitted from API requests. However, any field with an
17542	// empty value appearing in NullFields will be sent to the server as
17543	// null. It is an error if a field in this list has a non-empty value.
17544	// This may be used to include null fields in Patch requests.
17545	NullFields []string `json:"-"`
17546}
17547
17548func (s *GoogleCloudDialogflowV2beta1VoiceSelectionParams) MarshalJSON() ([]byte, error) {
17549	type NoMethod GoogleCloudDialogflowV2beta1VoiceSelectionParams
17550	raw := NoMethod(*s)
17551	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17552}
17553
17554// GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a
17555// webhook call.
17556type GoogleCloudDialogflowV2beta1WebhookRequest struct {
17557	// AlternativeQueryResults: Alternative query results from
17558	// KnowledgeService.
17559	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
17560
17561	// OriginalDetectIntentRequest: Optional. The contents of the original
17562	// request that was passed to `[Streaming]DetectIntent` call.
17563	OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
17564
17565	// QueryResult: The result of the conversational query or event
17566	// processing. Contains the same value as
17567	// `[Streaming]DetectIntentResponse.query_result`.
17568	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
17569
17570	// ResponseId: The unique identifier of the response. Contains the same
17571	// value as `[Streaming]DetectIntentResponse.response_id`.
17572	ResponseId string `json:"responseId,omitempty"`
17573
17574	// Session: The unique identifier of detectIntent request session. Can
17575	// be used to identify end-user inside webhook implementation. Supported
17576	// formats: - `projects//agent/sessions/, -
17577	// `projects//locations//agent/sessions/`, -
17578	// `projects//agent/environments//users//sessions/`, -
17579	// `projects//locations//agent/environments//users//sessions/`,
17580	Session string `json:"session,omitempty"`
17581
17582	// ForceSendFields is a list of field names (e.g.
17583	// "AlternativeQueryResults") to unconditionally include in API
17584	// requests. By default, fields with empty values are omitted from API
17585	// requests. However, any non-pointer, non-interface field appearing in
17586	// ForceSendFields will be sent to the server regardless of whether the
17587	// field is empty or not. This may be used to include empty fields in
17588	// Patch requests.
17589	ForceSendFields []string `json:"-"`
17590
17591	// NullFields is a list of field names (e.g. "AlternativeQueryResults")
17592	// to include in API requests with the JSON null value. By default,
17593	// fields with empty values are omitted from API requests. However, any
17594	// field with an empty value appearing in NullFields will be sent to the
17595	// server as null. It is an error if a field in this list has a
17596	// non-empty value. This may be used to include null fields in Patch
17597	// requests.
17598	NullFields []string `json:"-"`
17599}
17600
17601func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
17602	type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
17603	raw := NoMethod(*s)
17604	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17605}
17606
17607// GoogleCloudDialogflowV2beta1WebhookResponse: The response message for
17608// a webhook call. This response is validated by the Dialogflow server.
17609// If validation fails, an error will be returned in the
17610// QueryResult.diagnostic_info field. Setting JSON fields to an empty
17611// value with the wrong type is a common error. To avoid this error: -
17612// Use "" for empty strings - Use `{}` or `null` for empty objects -
17613// Use `[]` or `null` for empty arrays For more information, see the
17614// Protocol Buffers Language Guide
17615// (https://developers.google.com/protocol-buffers/docs/proto3#json).
17616type GoogleCloudDialogflowV2beta1WebhookResponse struct {
17617	// EndInteraction: Optional. Indicates that this intent ends an
17618	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
17619	// phone gateway) use this information to close interaction with an end
17620	// user. Default is false.
17621	EndInteraction bool `json:"endInteraction,omitempty"`
17622
17623	// FollowupEventInput: Optional. Invokes the supplied events. When this
17624	// field is set, Dialogflow ignores the `fulfillment_text`,
17625	// `fulfillment_messages`, and `payload` fields.
17626	FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
17627
17628	// FulfillmentMessages: Optional. The rich response messages intended
17629	// for the end-user. When provided, Dialogflow uses this field to
17630	// populate QueryResult.fulfillment_messages sent to the integration or
17631	// API caller.
17632	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
17633
17634	// FulfillmentText: Optional. The text response message intended for the
17635	// end-user. It is recommended to use
17636	// `fulfillment_messages.text.text[0]` instead. When provided,
17637	// Dialogflow uses this field to populate QueryResult.fulfillment_text
17638	// sent to the integration or API caller.
17639	FulfillmentText string `json:"fulfillmentText,omitempty"`
17640
17641	// LiveAgentHandoff: Indicates that a live agent should be brought in to
17642	// handle the interaction with the user. In most cases, when you set
17643	// this flag to true, you would also want to set end_interaction to true
17644	// as well. Default is false.
17645	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
17646
17647	// OutputContexts: Optional. The collection of output contexts that will
17648	// overwrite currently active contexts for the session and reset their
17649	// lifespans. When provided, Dialogflow uses this field to populate
17650	// QueryResult.output_contexts sent to the integration or API caller.
17651	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
17652
17653	// Payload: Optional. This field can be used to pass custom data from
17654	// your webhook to the integration or API caller. Arbitrary JSON objects
17655	// are supported. When provided, Dialogflow uses this field to populate
17656	// QueryResult.webhook_payload sent to the integration or API caller.
17657	// This field is also used by the Google Assistant integration
17658	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
17659	// response messages. See the format definition at Google Assistant
17660	// Dialogflow webhook format
17661	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
17662	Payload googleapi.RawMessage `json:"payload,omitempty"`
17663
17664	// SessionEntityTypes: Optional. Additional session entity types to
17665	// replace or extend developer entity types with. The entity synonyms
17666	// apply to all languages and persist for the session. Setting this data
17667	// from a webhook overwrites the session entity types that have been set
17668	// using `detectIntent`, `streamingDetectIntent` or SessionEntityType
17669	// management methods.
17670	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
17671
17672	// Source: Optional. A custom field used to identify the webhook source.
17673	// Arbitrary strings are supported. When provided, Dialogflow uses this
17674	// field to populate QueryResult.webhook_source sent to the integration
17675	// or API caller.
17676	Source string `json:"source,omitempty"`
17677
17678	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
17679	// unconditionally include in API requests. By default, fields with
17680	// empty values are omitted from API requests. However, any non-pointer,
17681	// non-interface field appearing in ForceSendFields will be sent to the
17682	// server regardless of whether the field is empty or not. This may be
17683	// used to include empty fields in Patch requests.
17684	ForceSendFields []string `json:"-"`
17685
17686	// NullFields is a list of field names (e.g. "EndInteraction") to
17687	// include in API requests with the JSON null value. By default, fields
17688	// with empty values are omitted from API requests. However, any field
17689	// with an empty value appearing in NullFields will be sent to the
17690	// server as null. It is an error if a field in this list has a
17691	// non-empty value. This may be used to include null fields in Patch
17692	// requests.
17693	NullFields []string `json:"-"`
17694}
17695
17696func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
17697	type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
17698	raw := NoMethod(*s)
17699	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17700}
17701
17702// GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata:
17703// Metadata for CreateDocument operation.
17704type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
17705	// GenericMetadata: The generic information of the operation.
17706	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
17707
17708	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
17709	// unconditionally include in API requests. By default, fields with
17710	// empty values are omitted from API requests. However, any non-pointer,
17711	// non-interface field appearing in ForceSendFields will be sent to the
17712	// server regardless of whether the field is empty or not. This may be
17713	// used to include empty fields in Patch requests.
17714	ForceSendFields []string `json:"-"`
17715
17716	// NullFields is a list of field names (e.g. "GenericMetadata") to
17717	// include in API requests with the JSON null value. By default, fields
17718	// with empty values are omitted from API requests. However, any field
17719	// with an empty value appearing in NullFields will be sent to the
17720	// server as null. It is an error if a field in this list has a
17721	// non-empty value. This may be used to include null fields in Patch
17722	// requests.
17723	NullFields []string `json:"-"`
17724}
17725
17726func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
17727	type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
17728	raw := NoMethod(*s)
17729	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17730}
17731
17732// GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata:
17733// Metadata for DeleteDocument operation.
17734type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
17735	// GenericMetadata: The generic information of the operation.
17736	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
17737
17738	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
17739	// unconditionally include in API requests. By default, fields with
17740	// empty values are omitted from API requests. However, any non-pointer,
17741	// non-interface field appearing in ForceSendFields will be sent to the
17742	// server regardless of whether the field is empty or not. This may be
17743	// used to include empty fields in Patch requests.
17744	ForceSendFields []string `json:"-"`
17745
17746	// NullFields is a list of field names (e.g. "GenericMetadata") to
17747	// include in API requests with the JSON null value. By default, fields
17748	// with empty values are omitted from API requests. However, any field
17749	// with an empty value appearing in NullFields will be sent to the
17750	// server as null. It is an error if a field in this list has a
17751	// non-empty value. This may be used to include null fields in Patch
17752	// requests.
17753	NullFields []string `json:"-"`
17754}
17755
17756func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
17757	type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
17758	raw := NoMethod(*s)
17759	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17760}
17761
17762// GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata:
17763// Metadata in google::longrunning::Operation for Knowledge operations.
17764type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
17765	// State: Required. Output only. The current state of this operation.
17766	//
17767	// Possible values:
17768	//   "STATE_UNSPECIFIED" - State unspecified.
17769	//   "PENDING" - The operation has been created.
17770	//   "RUNNING" - The operation is currently running.
17771	//   "DONE" - The operation is done, either cancelled or completed.
17772	State string `json:"state,omitempty"`
17773
17774	// ForceSendFields is a list of field names (e.g. "State") to
17775	// unconditionally include in API requests. By default, fields with
17776	// empty values are omitted from API requests. However, any non-pointer,
17777	// non-interface field appearing in ForceSendFields will be sent to the
17778	// server regardless of whether the field is empty or not. This may be
17779	// used to include empty fields in Patch requests.
17780	ForceSendFields []string `json:"-"`
17781
17782	// NullFields is a list of field names (e.g. "State") to include in API
17783	// requests with the JSON null value. By default, fields with empty
17784	// values are omitted from API requests. However, any field with an
17785	// empty value appearing in NullFields will be sent to the server as
17786	// null. It is an error if a field in this list has a non-empty value.
17787	// This may be used to include null fields in Patch requests.
17788	NullFields []string `json:"-"`
17789}
17790
17791func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
17792	type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
17793	raw := NoMethod(*s)
17794	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17795}
17796
17797// GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata:
17798// Metadata for ImportDocuments operation.
17799type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
17800	// GenericMetadata: The generic information of the operation.
17801	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
17802
17803	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
17804	// unconditionally include in API requests. By default, fields with
17805	// empty values are omitted from API requests. However, any non-pointer,
17806	// non-interface field appearing in ForceSendFields will be sent to the
17807	// server regardless of whether the field is empty or not. This may be
17808	// used to include empty fields in Patch requests.
17809	ForceSendFields []string `json:"-"`
17810
17811	// NullFields is a list of field names (e.g. "GenericMetadata") to
17812	// include in API requests with the JSON null value. By default, fields
17813	// with empty values are omitted from API requests. However, any field
17814	// with an empty value appearing in NullFields will be sent to the
17815	// server as null. It is an error if a field in this list has a
17816	// non-empty value. This may be used to include null fields in Patch
17817	// requests.
17818	NullFields []string `json:"-"`
17819}
17820
17821func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
17822	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
17823	raw := NoMethod(*s)
17824	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17825}
17826
17827// GoogleCloudDialogflowV3alpha1ImportDocumentsResponse: Response
17828// message for Documents.ImportDocuments.
17829type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
17830	// Warnings: Includes details about skipped documents or any other
17831	// warnings.
17832	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
17833
17834	// ForceSendFields is a list of field names (e.g. "Warnings") to
17835	// unconditionally include in API requests. By default, fields with
17836	// empty values are omitted from API requests. However, any non-pointer,
17837	// non-interface field appearing in ForceSendFields will be sent to the
17838	// server regardless of whether the field is empty or not. This may be
17839	// used to include empty fields in Patch requests.
17840	ForceSendFields []string `json:"-"`
17841
17842	// NullFields is a list of field names (e.g. "Warnings") to include in
17843	// API requests with the JSON null value. By default, fields with empty
17844	// values are omitted from API requests. However, any field with an
17845	// empty value appearing in NullFields will be sent to the server as
17846	// null. It is an error if a field in this list has a non-empty value.
17847	// This may be used to include null fields in Patch requests.
17848	NullFields []string `json:"-"`
17849}
17850
17851func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
17852	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
17853	raw := NoMethod(*s)
17854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17855}
17856
17857// GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata:
17858// Metadata for ReloadDocument operation.
17859type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
17860	// GenericMetadata: The generic information of the operation.
17861	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
17862
17863	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
17864	// unconditionally include in API requests. By default, fields with
17865	// empty values are omitted from API requests. However, any non-pointer,
17866	// non-interface field appearing in ForceSendFields will be sent to the
17867	// server regardless of whether the field is empty or not. This may be
17868	// used to include empty fields in Patch requests.
17869	ForceSendFields []string `json:"-"`
17870
17871	// NullFields is a list of field names (e.g. "GenericMetadata") to
17872	// include in API requests with the JSON null value. By default, fields
17873	// with empty values are omitted from API requests. However, any field
17874	// with an empty value appearing in NullFields will be sent to the
17875	// server as null. It is an error if a field in this list has a
17876	// non-empty value. This may be used to include null fields in Patch
17877	// requests.
17878	NullFields []string `json:"-"`
17879}
17880
17881func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
17882	type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
17883	raw := NoMethod(*s)
17884	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17885}
17886
17887// GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata:
17888// Metadata for UpdateDocument operation.
17889type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
17890	// GenericMetadata: The generic information of the operation.
17891	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
17892
17893	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
17894	// unconditionally include in API requests. By default, fields with
17895	// empty values are omitted from API requests. However, any non-pointer,
17896	// non-interface field appearing in ForceSendFields will be sent to the
17897	// server regardless of whether the field is empty or not. This may be
17898	// used to include empty fields in Patch requests.
17899	ForceSendFields []string `json:"-"`
17900
17901	// NullFields is a list of field names (e.g. "GenericMetadata") to
17902	// include in API requests with the JSON null value. By default, fields
17903	// with empty values are omitted from API requests. However, any field
17904	// with an empty value appearing in NullFields will be sent to the
17905	// server as null. It is an error if a field in this list has a
17906	// non-empty value. This may be used to include null fields in Patch
17907	// requests.
17908	NullFields []string `json:"-"`
17909}
17910
17911func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
17912	type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
17913	raw := NoMethod(*s)
17914	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17915}
17916
17917// GoogleLongrunningListOperationsResponse: The response message for
17918// Operations.ListOperations.
17919type GoogleLongrunningListOperationsResponse struct {
17920	// NextPageToken: The standard List next-page token.
17921	NextPageToken string `json:"nextPageToken,omitempty"`
17922
17923	// Operations: A list of operations that matches the specified filter in
17924	// the request.
17925	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
17926
17927	// ServerResponse contains the HTTP response code and headers from the
17928	// server.
17929	googleapi.ServerResponse `json:"-"`
17930
17931	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
17932	// unconditionally include in API requests. By default, fields with
17933	// empty values are omitted from API requests. However, any non-pointer,
17934	// non-interface field appearing in ForceSendFields will be sent to the
17935	// server regardless of whether the field is empty or not. This may be
17936	// used to include empty fields in Patch requests.
17937	ForceSendFields []string `json:"-"`
17938
17939	// NullFields is a list of field names (e.g. "NextPageToken") to include
17940	// in API requests with the JSON null value. By default, fields with
17941	// empty values are omitted from API requests. However, any field with
17942	// an empty value appearing in NullFields will be sent to the server as
17943	// null. It is an error if a field in this list has a non-empty value.
17944	// This may be used to include null fields in Patch requests.
17945	NullFields []string `json:"-"`
17946}
17947
17948func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
17949	type NoMethod GoogleLongrunningListOperationsResponse
17950	raw := NoMethod(*s)
17951	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
17952}
17953
17954// GoogleLongrunningOperation: This resource represents a long-running
17955// operation that is the result of a network API call.
17956type GoogleLongrunningOperation struct {
17957	// Done: If the value is `false`, it means the operation is still in
17958	// progress. If `true`, the operation is completed, and either `error`
17959	// or `response` is available.
17960	Done bool `json:"done,omitempty"`
17961
17962	// Error: The error result of the operation in case of failure or
17963	// cancellation.
17964	Error *GoogleRpcStatus `json:"error,omitempty"`
17965
17966	// Metadata: Service-specific metadata associated with the operation. It
17967	// typically contains progress information and common metadata such as
17968	// create time. Some services might not provide such metadata. Any
17969	// method that returns a long-running operation should document the
17970	// metadata type, if any.
17971	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
17972
17973	// Name: The server-assigned name, which is only unique within the same
17974	// service that originally returns it. If you use the default HTTP
17975	// mapping, the `name` should be a resource name ending with
17976	// `operations/{unique_id}`.
17977	Name string `json:"name,omitempty"`
17978
17979	// Response: The normal response of the operation in case of success. If
17980	// the original method returns no data on success, such as `Delete`, the
17981	// response is `google.protobuf.Empty`. If the original method is
17982	// standard `Get`/`Create`/`Update`, the response should be the
17983	// resource. For other methods, the response should have the type
17984	// `XxxResponse`, where `Xxx` is the original method name. For example,
17985	// if the original method name is `TakeSnapshot()`, the inferred
17986	// response type is `TakeSnapshotResponse`.
17987	Response googleapi.RawMessage `json:"response,omitempty"`
17988
17989	// ServerResponse contains the HTTP response code and headers from the
17990	// server.
17991	googleapi.ServerResponse `json:"-"`
17992
17993	// ForceSendFields is a list of field names (e.g. "Done") to
17994	// unconditionally include in API requests. By default, fields with
17995	// empty values are omitted from API requests. However, any non-pointer,
17996	// non-interface field appearing in ForceSendFields will be sent to the
17997	// server regardless of whether the field is empty or not. This may be
17998	// used to include empty fields in Patch requests.
17999	ForceSendFields []string `json:"-"`
18000
18001	// NullFields is a list of field names (e.g. "Done") to include in API
18002	// requests with the JSON null value. By default, fields with empty
18003	// values are omitted from API requests. However, any field with an
18004	// empty value appearing in NullFields will be sent to the server as
18005	// null. It is an error if a field in this list has a non-empty value.
18006	// This may be used to include null fields in Patch requests.
18007	NullFields []string `json:"-"`
18008}
18009
18010func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
18011	type NoMethod GoogleLongrunningOperation
18012	raw := NoMethod(*s)
18013	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18014}
18015
18016// GoogleProtobufEmpty: A generic empty message that you can re-use to
18017// avoid defining duplicated empty messages in your APIs. A typical
18018// example is to use it as the request or the response type of an API
18019// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
18020// returns (google.protobuf.Empty); } The JSON representation for
18021// `Empty` is empty JSON object `{}`.
18022type GoogleProtobufEmpty struct {
18023	// ServerResponse contains the HTTP response code and headers from the
18024	// server.
18025	googleapi.ServerResponse `json:"-"`
18026}
18027
18028// GoogleRpcStatus: The `Status` type defines a logical error model that
18029// is suitable for different programming environments, including REST
18030// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
18031// `Status` message contains three pieces of data: error code, error
18032// message, and error details. You can find out more about this error
18033// model and how to work with it in the API Design Guide
18034// (https://cloud.google.com/apis/design/errors).
18035type GoogleRpcStatus struct {
18036	// Code: The status code, which should be an enum value of
18037	// google.rpc.Code.
18038	Code int64 `json:"code,omitempty"`
18039
18040	// Details: A list of messages that carry the error details. There is a
18041	// common set of message types for APIs to use.
18042	Details []googleapi.RawMessage `json:"details,omitempty"`
18043
18044	// Message: A developer-facing error message, which should be in
18045	// English. Any user-facing error message should be localized and sent
18046	// in the google.rpc.Status.details field, or localized by the client.
18047	Message string `json:"message,omitempty"`
18048
18049	// ForceSendFields is a list of field names (e.g. "Code") to
18050	// unconditionally include in API requests. By default, fields with
18051	// empty values are omitted from API requests. However, any non-pointer,
18052	// non-interface field appearing in ForceSendFields will be sent to the
18053	// server regardless of whether the field is empty or not. This may be
18054	// used to include empty fields in Patch requests.
18055	ForceSendFields []string `json:"-"`
18056
18057	// NullFields is a list of field names (e.g. "Code") to include in API
18058	// requests with the JSON null value. By default, fields with empty
18059	// values are omitted from API requests. However, any field with an
18060	// empty value appearing in NullFields will be sent to the server as
18061	// null. It is an error if a field in this list has a non-empty value.
18062	// This may be used to include null fields in Patch requests.
18063	NullFields []string `json:"-"`
18064}
18065
18066func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
18067	type NoMethod GoogleRpcStatus
18068	raw := NoMethod(*s)
18069	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18070}
18071
18072// GoogleTypeLatLng: An object that represents a latitude/longitude
18073// pair. This is expressed as a pair of doubles to represent degrees
18074// latitude and degrees longitude. Unless specified otherwise, this
18075// object must conform to the WGS84 standard. Values must be within
18076// normalized ranges.
18077type GoogleTypeLatLng struct {
18078	// Latitude: The latitude in degrees. It must be in the range [-90.0,
18079	// +90.0].
18080	Latitude float64 `json:"latitude,omitempty"`
18081
18082	// Longitude: The longitude in degrees. It must be in the range [-180.0,
18083	// +180.0].
18084	Longitude float64 `json:"longitude,omitempty"`
18085
18086	// ForceSendFields is a list of field names (e.g. "Latitude") to
18087	// unconditionally include in API requests. By default, fields with
18088	// empty values are omitted from API requests. However, any non-pointer,
18089	// non-interface field appearing in ForceSendFields will be sent to the
18090	// server regardless of whether the field is empty or not. This may be
18091	// used to include empty fields in Patch requests.
18092	ForceSendFields []string `json:"-"`
18093
18094	// NullFields is a list of field names (e.g. "Latitude") to include in
18095	// API requests with the JSON null value. By default, fields with empty
18096	// values are omitted from API requests. However, any field with an
18097	// empty value appearing in NullFields will be sent to the server as
18098	// null. It is an error if a field in this list has a non-empty value.
18099	// This may be used to include null fields in Patch requests.
18100	NullFields []string `json:"-"`
18101}
18102
18103func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
18104	type NoMethod GoogleTypeLatLng
18105	raw := NoMethod(*s)
18106	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
18107}
18108
18109func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
18110	type NoMethod GoogleTypeLatLng
18111	var s1 struct {
18112		Latitude  gensupport.JSONFloat64 `json:"latitude"`
18113		Longitude gensupport.JSONFloat64 `json:"longitude"`
18114		*NoMethod
18115	}
18116	s1.NoMethod = (*NoMethod)(s)
18117	if err := json.Unmarshal(data, &s1); err != nil {
18118		return err
18119	}
18120	s.Latitude = float64(s1.Latitude)
18121	s.Longitude = float64(s1.Longitude)
18122	return nil
18123}
18124
18125// method id "dialogflow.projects.deleteAgent":
18126
18127type ProjectsDeleteAgentCall struct {
18128	s          *Service
18129	parent     string
18130	urlParams_ gensupport.URLParams
18131	ctx_       context.Context
18132	header_    http.Header
18133}
18134
18135// DeleteAgent: Deletes the specified agent.
18136//
18137// - parent: The project that the agent to delete is associated with.
18138//   Format: `projects/` or `projects//locations/`.
18139func (r *ProjectsService) DeleteAgent(parent string) *ProjectsDeleteAgentCall {
18140	c := &ProjectsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18141	c.parent = parent
18142	return c
18143}
18144
18145// Fields allows partial responses to be retrieved. See
18146// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18147// for more information.
18148func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall {
18149	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18150	return c
18151}
18152
18153// Context sets the context to be used in this call's Do method. Any
18154// pending HTTP request will be aborted if the provided context is
18155// canceled.
18156func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall {
18157	c.ctx_ = ctx
18158	return c
18159}
18160
18161// Header returns an http.Header that can be modified by the caller to
18162// add HTTP headers to the request.
18163func (c *ProjectsDeleteAgentCall) Header() http.Header {
18164	if c.header_ == nil {
18165		c.header_ = make(http.Header)
18166	}
18167	return c.header_
18168}
18169
18170func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
18171	reqHeaders := make(http.Header)
18172	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
18173	for k, v := range c.header_ {
18174		reqHeaders[k] = v
18175	}
18176	reqHeaders.Set("User-Agent", c.s.userAgent())
18177	var body io.Reader = nil
18178	c.urlParams_.Set("alt", alt)
18179	c.urlParams_.Set("prettyPrint", "false")
18180	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
18181	urls += "?" + c.urlParams_.Encode()
18182	req, err := http.NewRequest("DELETE", urls, body)
18183	if err != nil {
18184		return nil, err
18185	}
18186	req.Header = reqHeaders
18187	googleapi.Expand(req.URL, map[string]string{
18188		"parent": c.parent,
18189	})
18190	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18191}
18192
18193// Do executes the "dialogflow.projects.deleteAgent" call.
18194// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
18195// non-2xx status code is an error. Response headers are in either
18196// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
18197// returned at all) in error.(*googleapi.Error).Header. Use
18198// googleapi.IsNotModified to check whether the returned error was
18199// because http.StatusNotModified was returned.
18200func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18201	gensupport.SetOptions(c.urlParams_, opts...)
18202	res, err := c.doRequest("json")
18203	if res != nil && res.StatusCode == http.StatusNotModified {
18204		if res.Body != nil {
18205			res.Body.Close()
18206		}
18207		return nil, &googleapi.Error{
18208			Code:   res.StatusCode,
18209			Header: res.Header,
18210		}
18211	}
18212	if err != nil {
18213		return nil, err
18214	}
18215	defer googleapi.CloseBody(res)
18216	if err := googleapi.CheckResponse(res); err != nil {
18217		return nil, err
18218	}
18219	ret := &GoogleProtobufEmpty{
18220		ServerResponse: googleapi.ServerResponse{
18221			Header:         res.Header,
18222			HTTPStatusCode: res.StatusCode,
18223		},
18224	}
18225	target := &ret
18226	if err := gensupport.DecodeResponse(target, res); err != nil {
18227		return nil, err
18228	}
18229	return ret, nil
18230	// {
18231	//   "description": "Deletes the specified agent.",
18232	//   "flatPath": "v2beta1/projects/{projectsId}/agent",
18233	//   "httpMethod": "DELETE",
18234	//   "id": "dialogflow.projects.deleteAgent",
18235	//   "parameterOrder": [
18236	//     "parent"
18237	//   ],
18238	//   "parameters": {
18239	//     "parent": {
18240	//       "description": "Required. The project that the agent to delete is associated with. Format: `projects/` or `projects//locations/`.",
18241	//       "location": "path",
18242	//       "pattern": "^projects/[^/]+$",
18243	//       "required": true,
18244	//       "type": "string"
18245	//     }
18246	//   },
18247	//   "path": "v2beta1/{+parent}/agent",
18248	//   "response": {
18249	//     "$ref": "GoogleProtobufEmpty"
18250	//   },
18251	//   "scopes": [
18252	//     "https://www.googleapis.com/auth/cloud-platform",
18253	//     "https://www.googleapis.com/auth/dialogflow"
18254	//   ]
18255	// }
18256
18257}
18258
18259// method id "dialogflow.projects.getAgent":
18260
18261type ProjectsGetAgentCall struct {
18262	s            *Service
18263	parent       string
18264	urlParams_   gensupport.URLParams
18265	ifNoneMatch_ string
18266	ctx_         context.Context
18267	header_      http.Header
18268}
18269
18270// GetAgent: Retrieves the specified agent.
18271//
18272// - parent: The project that the agent to fetch is associated with.
18273//   Format: `projects/` or `projects//locations/`.
18274func (r *ProjectsService) GetAgent(parent string) *ProjectsGetAgentCall {
18275	c := &ProjectsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18276	c.parent = parent
18277	return c
18278}
18279
18280// Fields allows partial responses to be retrieved. See
18281// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18282// for more information.
18283func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall {
18284	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18285	return c
18286}
18287
18288// IfNoneMatch sets the optional parameter which makes the operation
18289// fail if the object's ETag matches the given value. This is useful for
18290// getting updates only after the object has changed since the last
18291// request. Use googleapi.IsNotModified to check whether the response
18292// error from Do is the result of In-None-Match.
18293func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall {
18294	c.ifNoneMatch_ = entityTag
18295	return c
18296}
18297
18298// Context sets the context to be used in this call's Do method. Any
18299// pending HTTP request will be aborted if the provided context is
18300// canceled.
18301func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall {
18302	c.ctx_ = ctx
18303	return c
18304}
18305
18306// Header returns an http.Header that can be modified by the caller to
18307// add HTTP headers to the request.
18308func (c *ProjectsGetAgentCall) Header() http.Header {
18309	if c.header_ == nil {
18310		c.header_ = make(http.Header)
18311	}
18312	return c.header_
18313}
18314
18315func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) {
18316	reqHeaders := make(http.Header)
18317	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
18318	for k, v := range c.header_ {
18319		reqHeaders[k] = v
18320	}
18321	reqHeaders.Set("User-Agent", c.s.userAgent())
18322	if c.ifNoneMatch_ != "" {
18323		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18324	}
18325	var body io.Reader = nil
18326	c.urlParams_.Set("alt", alt)
18327	c.urlParams_.Set("prettyPrint", "false")
18328	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
18329	urls += "?" + c.urlParams_.Encode()
18330	req, err := http.NewRequest("GET", urls, body)
18331	if err != nil {
18332		return nil, err
18333	}
18334	req.Header = reqHeaders
18335	googleapi.Expand(req.URL, map[string]string{
18336		"parent": c.parent,
18337	})
18338	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18339}
18340
18341// Do executes the "dialogflow.projects.getAgent" call.
18342// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
18343// non-nil. Any non-2xx status code is an error. Response headers are in
18344// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
18345// (if a response was returned at all) in
18346// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18347// whether the returned error was because http.StatusNotModified was
18348// returned.
18349func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
18350	gensupport.SetOptions(c.urlParams_, opts...)
18351	res, err := c.doRequest("json")
18352	if res != nil && res.StatusCode == http.StatusNotModified {
18353		if res.Body != nil {
18354			res.Body.Close()
18355		}
18356		return nil, &googleapi.Error{
18357			Code:   res.StatusCode,
18358			Header: res.Header,
18359		}
18360	}
18361	if err != nil {
18362		return nil, err
18363	}
18364	defer googleapi.CloseBody(res)
18365	if err := googleapi.CheckResponse(res); err != nil {
18366		return nil, err
18367	}
18368	ret := &GoogleCloudDialogflowV2beta1Agent{
18369		ServerResponse: googleapi.ServerResponse{
18370			Header:         res.Header,
18371			HTTPStatusCode: res.StatusCode,
18372		},
18373	}
18374	target := &ret
18375	if err := gensupport.DecodeResponse(target, res); err != nil {
18376		return nil, err
18377	}
18378	return ret, nil
18379	// {
18380	//   "description": "Retrieves the specified agent.",
18381	//   "flatPath": "v2beta1/projects/{projectsId}/agent",
18382	//   "httpMethod": "GET",
18383	//   "id": "dialogflow.projects.getAgent",
18384	//   "parameterOrder": [
18385	//     "parent"
18386	//   ],
18387	//   "parameters": {
18388	//     "parent": {
18389	//       "description": "Required. The project that the agent to fetch is associated with. Format: `projects/` or `projects//locations/`.",
18390	//       "location": "path",
18391	//       "pattern": "^projects/[^/]+$",
18392	//       "required": true,
18393	//       "type": "string"
18394	//     }
18395	//   },
18396	//   "path": "v2beta1/{+parent}/agent",
18397	//   "response": {
18398	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
18399	//   },
18400	//   "scopes": [
18401	//     "https://www.googleapis.com/auth/cloud-platform",
18402	//     "https://www.googleapis.com/auth/dialogflow"
18403	//   ]
18404	// }
18405
18406}
18407
18408// method id "dialogflow.projects.setAgent":
18409
18410type ProjectsSetAgentCall struct {
18411	s                                 *Service
18412	parent                            string
18413	googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
18414	urlParams_                        gensupport.URLParams
18415	ctx_                              context.Context
18416	header_                           http.Header
18417}
18418
18419// SetAgent: Creates/updates the specified agent.
18420//
18421// - parent: The project of this agent. Format: `projects/` or
18422//   `projects//locations/`.
18423func (r *ProjectsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsSetAgentCall {
18424	c := &ProjectsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18425	c.parent = parent
18426	c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
18427	return c
18428}
18429
18430// UpdateMask sets the optional parameter "updateMask": The mask to
18431// control which fields get updated.
18432func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall {
18433	c.urlParams_.Set("updateMask", updateMask)
18434	return c
18435}
18436
18437// Fields allows partial responses to be retrieved. See
18438// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18439// for more information.
18440func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall {
18441	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18442	return c
18443}
18444
18445// Context sets the context to be used in this call's Do method. Any
18446// pending HTTP request will be aborted if the provided context is
18447// canceled.
18448func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall {
18449	c.ctx_ = ctx
18450	return c
18451}
18452
18453// Header returns an http.Header that can be modified by the caller to
18454// add HTTP headers to the request.
18455func (c *ProjectsSetAgentCall) Header() http.Header {
18456	if c.header_ == nil {
18457		c.header_ = make(http.Header)
18458	}
18459	return c.header_
18460}
18461
18462func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) {
18463	reqHeaders := make(http.Header)
18464	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
18465	for k, v := range c.header_ {
18466		reqHeaders[k] = v
18467	}
18468	reqHeaders.Set("User-Agent", c.s.userAgent())
18469	var body io.Reader = nil
18470	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
18471	if err != nil {
18472		return nil, err
18473	}
18474	reqHeaders.Set("Content-Type", "application/json")
18475	c.urlParams_.Set("alt", alt)
18476	c.urlParams_.Set("prettyPrint", "false")
18477	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
18478	urls += "?" + c.urlParams_.Encode()
18479	req, err := http.NewRequest("POST", urls, body)
18480	if err != nil {
18481		return nil, err
18482	}
18483	req.Header = reqHeaders
18484	googleapi.Expand(req.URL, map[string]string{
18485		"parent": c.parent,
18486	})
18487	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18488}
18489
18490// Do executes the "dialogflow.projects.setAgent" call.
18491// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
18492// non-nil. Any non-2xx status code is an error. Response headers are in
18493// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
18494// (if a response was returned at all) in
18495// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18496// whether the returned error was because http.StatusNotModified was
18497// returned.
18498func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
18499	gensupport.SetOptions(c.urlParams_, opts...)
18500	res, err := c.doRequest("json")
18501	if res != nil && res.StatusCode == http.StatusNotModified {
18502		if res.Body != nil {
18503			res.Body.Close()
18504		}
18505		return nil, &googleapi.Error{
18506			Code:   res.StatusCode,
18507			Header: res.Header,
18508		}
18509	}
18510	if err != nil {
18511		return nil, err
18512	}
18513	defer googleapi.CloseBody(res)
18514	if err := googleapi.CheckResponse(res); err != nil {
18515		return nil, err
18516	}
18517	ret := &GoogleCloudDialogflowV2beta1Agent{
18518		ServerResponse: googleapi.ServerResponse{
18519			Header:         res.Header,
18520			HTTPStatusCode: res.StatusCode,
18521		},
18522	}
18523	target := &ret
18524	if err := gensupport.DecodeResponse(target, res); err != nil {
18525		return nil, err
18526	}
18527	return ret, nil
18528	// {
18529	//   "description": "Creates/updates the specified agent.",
18530	//   "flatPath": "v2beta1/projects/{projectsId}/agent",
18531	//   "httpMethod": "POST",
18532	//   "id": "dialogflow.projects.setAgent",
18533	//   "parameterOrder": [
18534	//     "parent"
18535	//   ],
18536	//   "parameters": {
18537	//     "parent": {
18538	//       "description": "Required. The project of this agent. Format: `projects/` or `projects//locations/`",
18539	//       "location": "path",
18540	//       "pattern": "^projects/[^/]+$",
18541	//       "required": true,
18542	//       "type": "string"
18543	//     },
18544	//     "updateMask": {
18545	//       "description": "Optional. The mask to control which fields get updated.",
18546	//       "format": "google-fieldmask",
18547	//       "location": "query",
18548	//       "type": "string"
18549	//     }
18550	//   },
18551	//   "path": "v2beta1/{+parent}/agent",
18552	//   "request": {
18553	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
18554	//   },
18555	//   "response": {
18556	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
18557	//   },
18558	//   "scopes": [
18559	//     "https://www.googleapis.com/auth/cloud-platform",
18560	//     "https://www.googleapis.com/auth/dialogflow"
18561	//   ]
18562	// }
18563
18564}
18565
18566// method id "dialogflow.projects.agent.export":
18567
18568type ProjectsAgentExportCall struct {
18569	s                                              *Service
18570	parent                                         string
18571	googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
18572	urlParams_                                     gensupport.URLParams
18573	ctx_                                           context.Context
18574	header_                                        http.Header
18575}
18576
18577// Export: Exports the specified agent to a ZIP file. Operation
18578//
18579// - parent: The project that the agent to export is associated with.
18580//   Format: `projects/` or `projects//locations/`.
18581func (r *ProjectsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsAgentExportCall {
18582	c := &ProjectsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18583	c.parent = parent
18584	c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
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 *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall {
18592	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18593	return c
18594}
18595
18596// Context sets the context to be used in this call's Do method. Any
18597// pending HTTP request will be aborted if the provided context is
18598// canceled.
18599func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall {
18600	c.ctx_ = ctx
18601	return c
18602}
18603
18604// Header returns an http.Header that can be modified by the caller to
18605// add HTTP headers to the request.
18606func (c *ProjectsAgentExportCall) Header() http.Header {
18607	if c.header_ == nil {
18608		c.header_ = make(http.Header)
18609	}
18610	return c.header_
18611}
18612
18613func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) {
18614	reqHeaders := make(http.Header)
18615	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
18616	for k, v := range c.header_ {
18617		reqHeaders[k] = v
18618	}
18619	reqHeaders.Set("User-Agent", c.s.userAgent())
18620	var body io.Reader = nil
18621	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
18622	if err != nil {
18623		return nil, err
18624	}
18625	reqHeaders.Set("Content-Type", "application/json")
18626	c.urlParams_.Set("alt", alt)
18627	c.urlParams_.Set("prettyPrint", "false")
18628	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
18629	urls += "?" + c.urlParams_.Encode()
18630	req, err := http.NewRequest("POST", urls, body)
18631	if err != nil {
18632		return nil, err
18633	}
18634	req.Header = reqHeaders
18635	googleapi.Expand(req.URL, map[string]string{
18636		"parent": c.parent,
18637	})
18638	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18639}
18640
18641// Do executes the "dialogflow.projects.agent.export" call.
18642// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
18643// Any non-2xx status code is an error. Response headers are in either
18644// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
18645// was returned at all) in error.(*googleapi.Error).Header. Use
18646// googleapi.IsNotModified to check whether the returned error was
18647// because http.StatusNotModified was returned.
18648func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18649	gensupport.SetOptions(c.urlParams_, opts...)
18650	res, err := c.doRequest("json")
18651	if res != nil && res.StatusCode == http.StatusNotModified {
18652		if res.Body != nil {
18653			res.Body.Close()
18654		}
18655		return nil, &googleapi.Error{
18656			Code:   res.StatusCode,
18657			Header: res.Header,
18658		}
18659	}
18660	if err != nil {
18661		return nil, err
18662	}
18663	defer googleapi.CloseBody(res)
18664	if err := googleapi.CheckResponse(res); err != nil {
18665		return nil, err
18666	}
18667	ret := &GoogleLongrunningOperation{
18668		ServerResponse: googleapi.ServerResponse{
18669			Header:         res.Header,
18670			HTTPStatusCode: res.StatusCode,
18671		},
18672	}
18673	target := &ret
18674	if err := gensupport.DecodeResponse(target, res); err != nil {
18675		return nil, err
18676	}
18677	return ret, nil
18678	// {
18679	//   "description": "Exports the specified agent to a ZIP file. Operation ",
18680	//   "flatPath": "v2beta1/projects/{projectsId}/agent:export",
18681	//   "httpMethod": "POST",
18682	//   "id": "dialogflow.projects.agent.export",
18683	//   "parameterOrder": [
18684	//     "parent"
18685	//   ],
18686	//   "parameters": {
18687	//     "parent": {
18688	//       "description": "Required. The project that the agent to export is associated with. Format: `projects/` or `projects//locations/`.",
18689	//       "location": "path",
18690	//       "pattern": "^projects/[^/]+$",
18691	//       "required": true,
18692	//       "type": "string"
18693	//     }
18694	//   },
18695	//   "path": "v2beta1/{+parent}/agent:export",
18696	//   "request": {
18697	//     "$ref": "GoogleCloudDialogflowV2beta1ExportAgentRequest"
18698	//   },
18699	//   "response": {
18700	//     "$ref": "GoogleLongrunningOperation"
18701	//   },
18702	//   "scopes": [
18703	//     "https://www.googleapis.com/auth/cloud-platform",
18704	//     "https://www.googleapis.com/auth/dialogflow"
18705	//   ]
18706	// }
18707
18708}
18709
18710// method id "dialogflow.projects.agent.getFulfillment":
18711
18712type ProjectsAgentGetFulfillmentCall struct {
18713	s            *Service
18714	name         string
18715	urlParams_   gensupport.URLParams
18716	ifNoneMatch_ string
18717	ctx_         context.Context
18718	header_      http.Header
18719}
18720
18721// GetFulfillment: Retrieves the fulfillment.
18722//
18723// - name: The name of the fulfillment. Supported formats: -
18724//   `projects//agent/fulfillment` -
18725//   `projects//locations//agent/fulfillment`.
18726func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall {
18727	c := &ProjectsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18728	c.name = name
18729	return c
18730}
18731
18732// Fields allows partial responses to be retrieved. See
18733// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18734// for more information.
18735func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall {
18736	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18737	return c
18738}
18739
18740// IfNoneMatch sets the optional parameter which makes the operation
18741// fail if the object's ETag matches the given value. This is useful for
18742// getting updates only after the object has changed since the last
18743// request. Use googleapi.IsNotModified to check whether the response
18744// error from Do is the result of In-None-Match.
18745func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall {
18746	c.ifNoneMatch_ = entityTag
18747	return c
18748}
18749
18750// Context sets the context to be used in this call's Do method. Any
18751// pending HTTP request will be aborted if the provided context is
18752// canceled.
18753func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall {
18754	c.ctx_ = ctx
18755	return c
18756}
18757
18758// Header returns an http.Header that can be modified by the caller to
18759// add HTTP headers to the request.
18760func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header {
18761	if c.header_ == nil {
18762		c.header_ = make(http.Header)
18763	}
18764	return c.header_
18765}
18766
18767func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
18768	reqHeaders := make(http.Header)
18769	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
18770	for k, v := range c.header_ {
18771		reqHeaders[k] = v
18772	}
18773	reqHeaders.Set("User-Agent", c.s.userAgent())
18774	if c.ifNoneMatch_ != "" {
18775		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18776	}
18777	var body io.Reader = nil
18778	c.urlParams_.Set("alt", alt)
18779	c.urlParams_.Set("prettyPrint", "false")
18780	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
18781	urls += "?" + c.urlParams_.Encode()
18782	req, err := http.NewRequest("GET", urls, body)
18783	if err != nil {
18784		return nil, err
18785	}
18786	req.Header = reqHeaders
18787	googleapi.Expand(req.URL, map[string]string{
18788		"name": c.name,
18789	})
18790	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18791}
18792
18793// Do executes the "dialogflow.projects.agent.getFulfillment" call.
18794// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
18795// be non-nil. Any non-2xx status code is an error. Response headers are
18796// in either
18797// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
18798// a response was returned at all) in error.(*googleapi.Error).Header.
18799// Use googleapi.IsNotModified to check whether the returned error was
18800// because http.StatusNotModified was returned.
18801func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
18802	gensupport.SetOptions(c.urlParams_, opts...)
18803	res, err := c.doRequest("json")
18804	if res != nil && res.StatusCode == http.StatusNotModified {
18805		if res.Body != nil {
18806			res.Body.Close()
18807		}
18808		return nil, &googleapi.Error{
18809			Code:   res.StatusCode,
18810			Header: res.Header,
18811		}
18812	}
18813	if err != nil {
18814		return nil, err
18815	}
18816	defer googleapi.CloseBody(res)
18817	if err := googleapi.CheckResponse(res); err != nil {
18818		return nil, err
18819	}
18820	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
18821		ServerResponse: googleapi.ServerResponse{
18822			Header:         res.Header,
18823			HTTPStatusCode: res.StatusCode,
18824		},
18825	}
18826	target := &ret
18827	if err := gensupport.DecodeResponse(target, res); err != nil {
18828		return nil, err
18829	}
18830	return ret, nil
18831	// {
18832	//   "description": "Retrieves the fulfillment.",
18833	//   "flatPath": "v2beta1/projects/{projectsId}/agent/fulfillment",
18834	//   "httpMethod": "GET",
18835	//   "id": "dialogflow.projects.agent.getFulfillment",
18836	//   "parameterOrder": [
18837	//     "name"
18838	//   ],
18839	//   "parameters": {
18840	//     "name": {
18841	//       "description": "Required. The name of the fulfillment. Supported formats: - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`",
18842	//       "location": "path",
18843	//       "pattern": "^projects/[^/]+/agent/fulfillment$",
18844	//       "required": true,
18845	//       "type": "string"
18846	//     }
18847	//   },
18848	//   "path": "v2beta1/{+name}",
18849	//   "response": {
18850	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
18851	//   },
18852	//   "scopes": [
18853	//     "https://www.googleapis.com/auth/cloud-platform",
18854	//     "https://www.googleapis.com/auth/dialogflow"
18855	//   ]
18856	// }
18857
18858}
18859
18860// method id "dialogflow.projects.agent.getValidationResult":
18861
18862type ProjectsAgentGetValidationResultCall struct {
18863	s            *Service
18864	parent       string
18865	urlParams_   gensupport.URLParams
18866	ifNoneMatch_ string
18867	ctx_         context.Context
18868	header_      http.Header
18869}
18870
18871// GetValidationResult: Gets agent validation result. Agent validation
18872// is performed during training time and is updated automatically when
18873// training is completed.
18874//
18875// - parent: The project that the agent is associated with. Format:
18876//   `projects/` or `projects//locations/`.
18877func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall {
18878	c := &ProjectsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18879	c.parent = parent
18880	return c
18881}
18882
18883// LanguageCode sets the optional parameter "languageCode": The language
18884// for which you want a validation result. If not specified, the agent's
18885// default language is used. Many languages
18886// (https://cloud.google.com/dialogflow/docs/reference/language) are
18887// supported. Note: languages must be enabled in the agent before they
18888// can be used.
18889func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall {
18890	c.urlParams_.Set("languageCode", languageCode)
18891	return c
18892}
18893
18894// Fields allows partial responses to be retrieved. See
18895// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18896// for more information.
18897func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall {
18898	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18899	return c
18900}
18901
18902// IfNoneMatch sets the optional parameter which makes the operation
18903// fail if the object's ETag matches the given value. This is useful for
18904// getting updates only after the object has changed since the last
18905// request. Use googleapi.IsNotModified to check whether the response
18906// error from Do is the result of In-None-Match.
18907func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall {
18908	c.ifNoneMatch_ = entityTag
18909	return c
18910}
18911
18912// Context sets the context to be used in this call's Do method. Any
18913// pending HTTP request will be aborted if the provided context is
18914// canceled.
18915func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall {
18916	c.ctx_ = ctx
18917	return c
18918}
18919
18920// Header returns an http.Header that can be modified by the caller to
18921// add HTTP headers to the request.
18922func (c *ProjectsAgentGetValidationResultCall) Header() http.Header {
18923	if c.header_ == nil {
18924		c.header_ = make(http.Header)
18925	}
18926	return c.header_
18927}
18928
18929func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
18930	reqHeaders := make(http.Header)
18931	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
18932	for k, v := range c.header_ {
18933		reqHeaders[k] = v
18934	}
18935	reqHeaders.Set("User-Agent", c.s.userAgent())
18936	if c.ifNoneMatch_ != "" {
18937		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18938	}
18939	var body io.Reader = nil
18940	c.urlParams_.Set("alt", alt)
18941	c.urlParams_.Set("prettyPrint", "false")
18942	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
18943	urls += "?" + c.urlParams_.Encode()
18944	req, err := http.NewRequest("GET", urls, body)
18945	if err != nil {
18946		return nil, err
18947	}
18948	req.Header = reqHeaders
18949	googleapi.Expand(req.URL, map[string]string{
18950		"parent": c.parent,
18951	})
18952	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18953}
18954
18955// Do executes the "dialogflow.projects.agent.getValidationResult" call.
18956// Exactly one of *GoogleCloudDialogflowV2beta1ValidationResult or error
18957// will be non-nil. Any non-2xx status code is an error. Response
18958// headers are in either
18959// *GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header
18960// or (if a response was returned at all) in
18961// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18962// whether the returned error was because http.StatusNotModified was
18963// returned.
18964func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
18965	gensupport.SetOptions(c.urlParams_, opts...)
18966	res, err := c.doRequest("json")
18967	if res != nil && res.StatusCode == http.StatusNotModified {
18968		if res.Body != nil {
18969			res.Body.Close()
18970		}
18971		return nil, &googleapi.Error{
18972			Code:   res.StatusCode,
18973			Header: res.Header,
18974		}
18975	}
18976	if err != nil {
18977		return nil, err
18978	}
18979	defer googleapi.CloseBody(res)
18980	if err := googleapi.CheckResponse(res); err != nil {
18981		return nil, err
18982	}
18983	ret := &GoogleCloudDialogflowV2beta1ValidationResult{
18984		ServerResponse: googleapi.ServerResponse{
18985			Header:         res.Header,
18986			HTTPStatusCode: res.StatusCode,
18987		},
18988	}
18989	target := &ret
18990	if err := gensupport.DecodeResponse(target, res); err != nil {
18991		return nil, err
18992	}
18993	return ret, nil
18994	// {
18995	//   "description": "Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.",
18996	//   "flatPath": "v2beta1/projects/{projectsId}/agent/validationResult",
18997	//   "httpMethod": "GET",
18998	//   "id": "dialogflow.projects.agent.getValidationResult",
18999	//   "parameterOrder": [
19000	//     "parent"
19001	//   ],
19002	//   "parameters": {
19003	//     "languageCode": {
19004	//       "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.",
19005	//       "location": "query",
19006	//       "type": "string"
19007	//     },
19008	//     "parent": {
19009	//       "description": "Required. The project that the agent is associated with. Format: `projects/` or `projects//locations/`.",
19010	//       "location": "path",
19011	//       "pattern": "^projects/[^/]+$",
19012	//       "required": true,
19013	//       "type": "string"
19014	//     }
19015	//   },
19016	//   "path": "v2beta1/{+parent}/agent/validationResult",
19017	//   "response": {
19018	//     "$ref": "GoogleCloudDialogflowV2beta1ValidationResult"
19019	//   },
19020	//   "scopes": [
19021	//     "https://www.googleapis.com/auth/cloud-platform",
19022	//     "https://www.googleapis.com/auth/dialogflow"
19023	//   ]
19024	// }
19025
19026}
19027
19028// method id "dialogflow.projects.agent.import":
19029
19030type ProjectsAgentImportCall struct {
19031	s                                              *Service
19032	parent                                         string
19033	googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
19034	urlParams_                                     gensupport.URLParams
19035	ctx_                                           context.Context
19036	header_                                        http.Header
19037}
19038
19039// Import: Imports the specified agent from a ZIP file. Uploads new
19040// intents and entity types without deleting the existing ones. Intents
19041// and entity types with the same name are replaced with the new
19042// versions from ImportAgentRequest. After the import, the imported
19043// draft agent will be trained automatically (unless disabled in agent
19044// settings). However, once the import is done, training may not be
19045// completed yet. Please call TrainAgent and wait for the operation it
19046// returns in order to train explicitly. Operation An operation which
19047// tracks when importing is complete. It only tracks when the draft
19048// agent is updated not when it is done training.
19049//
19050// - parent: The project that the agent to import is associated with.
19051//   Format: `projects/` or `projects//locations/`.
19052func (r *ProjectsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsAgentImportCall {
19053	c := &ProjectsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19054	c.parent = parent
19055	c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
19056	return c
19057}
19058
19059// Fields allows partial responses to be retrieved. See
19060// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19061// for more information.
19062func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall {
19063	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19064	return c
19065}
19066
19067// Context sets the context to be used in this call's Do method. Any
19068// pending HTTP request will be aborted if the provided context is
19069// canceled.
19070func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall {
19071	c.ctx_ = ctx
19072	return c
19073}
19074
19075// Header returns an http.Header that can be modified by the caller to
19076// add HTTP headers to the request.
19077func (c *ProjectsAgentImportCall) Header() http.Header {
19078	if c.header_ == nil {
19079		c.header_ = make(http.Header)
19080	}
19081	return c.header_
19082}
19083
19084func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) {
19085	reqHeaders := make(http.Header)
19086	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
19087	for k, v := range c.header_ {
19088		reqHeaders[k] = v
19089	}
19090	reqHeaders.Set("User-Agent", c.s.userAgent())
19091	var body io.Reader = nil
19092	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
19093	if err != nil {
19094		return nil, err
19095	}
19096	reqHeaders.Set("Content-Type", "application/json")
19097	c.urlParams_.Set("alt", alt)
19098	c.urlParams_.Set("prettyPrint", "false")
19099	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
19100	urls += "?" + c.urlParams_.Encode()
19101	req, err := http.NewRequest("POST", urls, body)
19102	if err != nil {
19103		return nil, err
19104	}
19105	req.Header = reqHeaders
19106	googleapi.Expand(req.URL, map[string]string{
19107		"parent": c.parent,
19108	})
19109	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19110}
19111
19112// Do executes the "dialogflow.projects.agent.import" call.
19113// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19114// Any non-2xx status code is an error. Response headers are in either
19115// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19116// was returned at all) in error.(*googleapi.Error).Header. Use
19117// googleapi.IsNotModified to check whether the returned error was
19118// because http.StatusNotModified was returned.
19119func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19120	gensupport.SetOptions(c.urlParams_, opts...)
19121	res, err := c.doRequest("json")
19122	if res != nil && res.StatusCode == http.StatusNotModified {
19123		if res.Body != nil {
19124			res.Body.Close()
19125		}
19126		return nil, &googleapi.Error{
19127			Code:   res.StatusCode,
19128			Header: res.Header,
19129		}
19130	}
19131	if err != nil {
19132		return nil, err
19133	}
19134	defer googleapi.CloseBody(res)
19135	if err := googleapi.CheckResponse(res); err != nil {
19136		return nil, err
19137	}
19138	ret := &GoogleLongrunningOperation{
19139		ServerResponse: googleapi.ServerResponse{
19140			Header:         res.Header,
19141			HTTPStatusCode: res.StatusCode,
19142		},
19143	}
19144	target := &ret
19145	if err := gensupport.DecodeResponse(target, res); err != nil {
19146		return nil, err
19147	}
19148	return ret, nil
19149	// {
19150	//   "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. Operation An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.",
19151	//   "flatPath": "v2beta1/projects/{projectsId}/agent:import",
19152	//   "httpMethod": "POST",
19153	//   "id": "dialogflow.projects.agent.import",
19154	//   "parameterOrder": [
19155	//     "parent"
19156	//   ],
19157	//   "parameters": {
19158	//     "parent": {
19159	//       "description": "Required. The project that the agent to import is associated with. Format: `projects/` or `projects//locations/`.",
19160	//       "location": "path",
19161	//       "pattern": "^projects/[^/]+$",
19162	//       "required": true,
19163	//       "type": "string"
19164	//     }
19165	//   },
19166	//   "path": "v2beta1/{+parent}/agent:import",
19167	//   "request": {
19168	//     "$ref": "GoogleCloudDialogflowV2beta1ImportAgentRequest"
19169	//   },
19170	//   "response": {
19171	//     "$ref": "GoogleLongrunningOperation"
19172	//   },
19173	//   "scopes": [
19174	//     "https://www.googleapis.com/auth/cloud-platform",
19175	//     "https://www.googleapis.com/auth/dialogflow"
19176	//   ]
19177	// }
19178
19179}
19180
19181// method id "dialogflow.projects.agent.restore":
19182
19183type ProjectsAgentRestoreCall struct {
19184	s                                               *Service
19185	parent                                          string
19186	googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
19187	urlParams_                                      gensupport.URLParams
19188	ctx_                                            context.Context
19189	header_                                         http.Header
19190}
19191
19192// Restore: Restores the specified agent from a ZIP file. Replaces the
19193// current agent version with a new one. All the intents and entity
19194// types in the older version are deleted. After the restore, the
19195// restored draft agent will be trained automatically (unless disabled
19196// in agent settings). However, once the restore is done, training may
19197// not be completed yet. Please call TrainAgent and wait for the
19198// operation it returns in order to train explicitly. Operation An
19199// operation which tracks when restoring is complete. It only tracks
19200// when the draft agent is updated not when it is done training.
19201//
19202// - parent: The project that the agent to restore is associated with.
19203//   Format: `projects/` or `projects//locations/`.
19204func (r *ProjectsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsAgentRestoreCall {
19205	c := &ProjectsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19206	c.parent = parent
19207	c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
19208	return c
19209}
19210
19211// Fields allows partial responses to be retrieved. See
19212// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19213// for more information.
19214func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall {
19215	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19216	return c
19217}
19218
19219// Context sets the context to be used in this call's Do method. Any
19220// pending HTTP request will be aborted if the provided context is
19221// canceled.
19222func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall {
19223	c.ctx_ = ctx
19224	return c
19225}
19226
19227// Header returns an http.Header that can be modified by the caller to
19228// add HTTP headers to the request.
19229func (c *ProjectsAgentRestoreCall) Header() http.Header {
19230	if c.header_ == nil {
19231		c.header_ = make(http.Header)
19232	}
19233	return c.header_
19234}
19235
19236func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
19237	reqHeaders := make(http.Header)
19238	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
19239	for k, v := range c.header_ {
19240		reqHeaders[k] = v
19241	}
19242	reqHeaders.Set("User-Agent", c.s.userAgent())
19243	var body io.Reader = nil
19244	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
19245	if err != nil {
19246		return nil, err
19247	}
19248	reqHeaders.Set("Content-Type", "application/json")
19249	c.urlParams_.Set("alt", alt)
19250	c.urlParams_.Set("prettyPrint", "false")
19251	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
19252	urls += "?" + c.urlParams_.Encode()
19253	req, err := http.NewRequest("POST", urls, body)
19254	if err != nil {
19255		return nil, err
19256	}
19257	req.Header = reqHeaders
19258	googleapi.Expand(req.URL, map[string]string{
19259		"parent": c.parent,
19260	})
19261	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19262}
19263
19264// Do executes the "dialogflow.projects.agent.restore" call.
19265// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19266// Any non-2xx status code is an error. Response headers are in either
19267// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19268// was returned at all) in error.(*googleapi.Error).Header. Use
19269// googleapi.IsNotModified to check whether the returned error was
19270// because http.StatusNotModified was returned.
19271func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19272	gensupport.SetOptions(c.urlParams_, opts...)
19273	res, err := c.doRequest("json")
19274	if res != nil && res.StatusCode == http.StatusNotModified {
19275		if res.Body != nil {
19276			res.Body.Close()
19277		}
19278		return nil, &googleapi.Error{
19279			Code:   res.StatusCode,
19280			Header: res.Header,
19281		}
19282	}
19283	if err != nil {
19284		return nil, err
19285	}
19286	defer googleapi.CloseBody(res)
19287	if err := googleapi.CheckResponse(res); err != nil {
19288		return nil, err
19289	}
19290	ret := &GoogleLongrunningOperation{
19291		ServerResponse: googleapi.ServerResponse{
19292			Header:         res.Header,
19293			HTTPStatusCode: res.StatusCode,
19294		},
19295	}
19296	target := &ret
19297	if err := gensupport.DecodeResponse(target, res); err != nil {
19298		return nil, err
19299	}
19300	return ret, nil
19301	// {
19302	//   "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. Operation An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.",
19303	//   "flatPath": "v2beta1/projects/{projectsId}/agent:restore",
19304	//   "httpMethod": "POST",
19305	//   "id": "dialogflow.projects.agent.restore",
19306	//   "parameterOrder": [
19307	//     "parent"
19308	//   ],
19309	//   "parameters": {
19310	//     "parent": {
19311	//       "description": "Required. The project that the agent to restore is associated with. Format: `projects/` or `projects//locations/`.",
19312	//       "location": "path",
19313	//       "pattern": "^projects/[^/]+$",
19314	//       "required": true,
19315	//       "type": "string"
19316	//     }
19317	//   },
19318	//   "path": "v2beta1/{+parent}/agent:restore",
19319	//   "request": {
19320	//     "$ref": "GoogleCloudDialogflowV2beta1RestoreAgentRequest"
19321	//   },
19322	//   "response": {
19323	//     "$ref": "GoogleLongrunningOperation"
19324	//   },
19325	//   "scopes": [
19326	//     "https://www.googleapis.com/auth/cloud-platform",
19327	//     "https://www.googleapis.com/auth/dialogflow"
19328	//   ]
19329	// }
19330
19331}
19332
19333// method id "dialogflow.projects.agent.search":
19334
19335type ProjectsAgentSearchCall struct {
19336	s            *Service
19337	parent       string
19338	urlParams_   gensupport.URLParams
19339	ifNoneMatch_ string
19340	ctx_         context.Context
19341	header_      http.Header
19342}
19343
19344// Search: Returns the list of agents. Since there is at most one
19345// conversational agent per project, this method is useful primarily for
19346// listing all agents across projects the caller has access to. One can
19347// achieve that with a wildcard project collection id "-". Refer to List
19348// Sub-Collections
19349// (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
19350//
19351// - parent: The project to list agents from. Format: `projects/` or
19352//   `projects//locations/`.
19353func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall {
19354	c := &ProjectsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19355	c.parent = parent
19356	return c
19357}
19358
19359// PageSize sets the optional parameter "pageSize": The maximum number
19360// of items to return in a single page. By default 100 and at most 1000.
19361func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall {
19362	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19363	return c
19364}
19365
19366// PageToken sets the optional parameter "pageToken": The
19367// next_page_token value returned from a previous list request.
19368func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall {
19369	c.urlParams_.Set("pageToken", pageToken)
19370	return c
19371}
19372
19373// Fields allows partial responses to be retrieved. See
19374// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19375// for more information.
19376func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall {
19377	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19378	return c
19379}
19380
19381// IfNoneMatch sets the optional parameter which makes the operation
19382// fail if the object's ETag matches the given value. This is useful for
19383// getting updates only after the object has changed since the last
19384// request. Use googleapi.IsNotModified to check whether the response
19385// error from Do is the result of In-None-Match.
19386func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall {
19387	c.ifNoneMatch_ = entityTag
19388	return c
19389}
19390
19391// Context sets the context to be used in this call's Do method. Any
19392// pending HTTP request will be aborted if the provided context is
19393// canceled.
19394func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall {
19395	c.ctx_ = ctx
19396	return c
19397}
19398
19399// Header returns an http.Header that can be modified by the caller to
19400// add HTTP headers to the request.
19401func (c *ProjectsAgentSearchCall) Header() http.Header {
19402	if c.header_ == nil {
19403		c.header_ = make(http.Header)
19404	}
19405	return c.header_
19406}
19407
19408func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
19409	reqHeaders := make(http.Header)
19410	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
19411	for k, v := range c.header_ {
19412		reqHeaders[k] = v
19413	}
19414	reqHeaders.Set("User-Agent", c.s.userAgent())
19415	if c.ifNoneMatch_ != "" {
19416		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19417	}
19418	var body io.Reader = nil
19419	c.urlParams_.Set("alt", alt)
19420	c.urlParams_.Set("prettyPrint", "false")
19421	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
19422	urls += "?" + c.urlParams_.Encode()
19423	req, err := http.NewRequest("GET", urls, body)
19424	if err != nil {
19425		return nil, err
19426	}
19427	req.Header = reqHeaders
19428	googleapi.Expand(req.URL, map[string]string{
19429		"parent": c.parent,
19430	})
19431	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19432}
19433
19434// Do executes the "dialogflow.projects.agent.search" call.
19435// Exactly one of *GoogleCloudDialogflowV2beta1SearchAgentsResponse or
19436// error will be non-nil. Any non-2xx status code is an error. Response
19437// headers are in either
19438// *GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Heade
19439// r or (if a response was returned at all) in
19440// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19441// whether the returned error was because http.StatusNotModified was
19442// returned.
19443func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
19444	gensupport.SetOptions(c.urlParams_, opts...)
19445	res, err := c.doRequest("json")
19446	if res != nil && res.StatusCode == http.StatusNotModified {
19447		if res.Body != nil {
19448			res.Body.Close()
19449		}
19450		return nil, &googleapi.Error{
19451			Code:   res.StatusCode,
19452			Header: res.Header,
19453		}
19454	}
19455	if err != nil {
19456		return nil, err
19457	}
19458	defer googleapi.CloseBody(res)
19459	if err := googleapi.CheckResponse(res); err != nil {
19460		return nil, err
19461	}
19462	ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
19463		ServerResponse: googleapi.ServerResponse{
19464			Header:         res.Header,
19465			HTTPStatusCode: res.StatusCode,
19466		},
19467	}
19468	target := &ret
19469	if err := gensupport.DecodeResponse(target, res); err != nil {
19470		return nil, err
19471	}
19472	return ret, nil
19473	// {
19474	//   "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).",
19475	//   "flatPath": "v2beta1/projects/{projectsId}/agent:search",
19476	//   "httpMethod": "GET",
19477	//   "id": "dialogflow.projects.agent.search",
19478	//   "parameterOrder": [
19479	//     "parent"
19480	//   ],
19481	//   "parameters": {
19482	//     "pageSize": {
19483	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
19484	//       "format": "int32",
19485	//       "location": "query",
19486	//       "type": "integer"
19487	//     },
19488	//     "pageToken": {
19489	//       "description": "Optional. The next_page_token value returned from a previous list request.",
19490	//       "location": "query",
19491	//       "type": "string"
19492	//     },
19493	//     "parent": {
19494	//       "description": "Required. The project to list agents from. Format: `projects/` or `projects//locations/`.",
19495	//       "location": "path",
19496	//       "pattern": "^projects/[^/]+$",
19497	//       "required": true,
19498	//       "type": "string"
19499	//     }
19500	//   },
19501	//   "path": "v2beta1/{+parent}/agent:search",
19502	//   "response": {
19503	//     "$ref": "GoogleCloudDialogflowV2beta1SearchAgentsResponse"
19504	//   },
19505	//   "scopes": [
19506	//     "https://www.googleapis.com/auth/cloud-platform",
19507	//     "https://www.googleapis.com/auth/dialogflow"
19508	//   ]
19509	// }
19510
19511}
19512
19513// Pages invokes f for each page of results.
19514// A non-nil error returned from f will halt the iteration.
19515// The provided context supersedes any context provided to the Context method.
19516func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
19517	c.ctx_ = ctx
19518	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
19519	for {
19520		x, err := c.Do()
19521		if err != nil {
19522			return err
19523		}
19524		if err := f(x); err != nil {
19525			return err
19526		}
19527		if x.NextPageToken == "" {
19528			return nil
19529		}
19530		c.PageToken(x.NextPageToken)
19531	}
19532}
19533
19534// method id "dialogflow.projects.agent.train":
19535
19536type ProjectsAgentTrainCall struct {
19537	s                                             *Service
19538	parent                                        string
19539	googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
19540	urlParams_                                    gensupport.URLParams
19541	ctx_                                          context.Context
19542	header_                                       http.Header
19543}
19544
19545// Train: Trains the specified agent. Operation
19546//
19547// - parent: The project that the agent to train is associated with.
19548//   Format: `projects/` or `projects//locations/`.
19549func (r *ProjectsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsAgentTrainCall {
19550	c := &ProjectsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19551	c.parent = parent
19552	c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
19553	return c
19554}
19555
19556// Fields allows partial responses to be retrieved. See
19557// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19558// for more information.
19559func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall {
19560	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19561	return c
19562}
19563
19564// Context sets the context to be used in this call's Do method. Any
19565// pending HTTP request will be aborted if the provided context is
19566// canceled.
19567func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall {
19568	c.ctx_ = ctx
19569	return c
19570}
19571
19572// Header returns an http.Header that can be modified by the caller to
19573// add HTTP headers to the request.
19574func (c *ProjectsAgentTrainCall) Header() http.Header {
19575	if c.header_ == nil {
19576		c.header_ = make(http.Header)
19577	}
19578	return c.header_
19579}
19580
19581func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
19582	reqHeaders := make(http.Header)
19583	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
19584	for k, v := range c.header_ {
19585		reqHeaders[k] = v
19586	}
19587	reqHeaders.Set("User-Agent", c.s.userAgent())
19588	var body io.Reader = nil
19589	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
19590	if err != nil {
19591		return nil, err
19592	}
19593	reqHeaders.Set("Content-Type", "application/json")
19594	c.urlParams_.Set("alt", alt)
19595	c.urlParams_.Set("prettyPrint", "false")
19596	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
19597	urls += "?" + c.urlParams_.Encode()
19598	req, err := http.NewRequest("POST", urls, body)
19599	if err != nil {
19600		return nil, err
19601	}
19602	req.Header = reqHeaders
19603	googleapi.Expand(req.URL, map[string]string{
19604		"parent": c.parent,
19605	})
19606	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19607}
19608
19609// Do executes the "dialogflow.projects.agent.train" call.
19610// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19611// Any non-2xx status code is an error. Response headers are in either
19612// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19613// was returned at all) in error.(*googleapi.Error).Header. Use
19614// googleapi.IsNotModified to check whether the returned error was
19615// because http.StatusNotModified was returned.
19616func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19617	gensupport.SetOptions(c.urlParams_, opts...)
19618	res, err := c.doRequest("json")
19619	if res != nil && res.StatusCode == http.StatusNotModified {
19620		if res.Body != nil {
19621			res.Body.Close()
19622		}
19623		return nil, &googleapi.Error{
19624			Code:   res.StatusCode,
19625			Header: res.Header,
19626		}
19627	}
19628	if err != nil {
19629		return nil, err
19630	}
19631	defer googleapi.CloseBody(res)
19632	if err := googleapi.CheckResponse(res); err != nil {
19633		return nil, err
19634	}
19635	ret := &GoogleLongrunningOperation{
19636		ServerResponse: googleapi.ServerResponse{
19637			Header:         res.Header,
19638			HTTPStatusCode: res.StatusCode,
19639		},
19640	}
19641	target := &ret
19642	if err := gensupport.DecodeResponse(target, res); err != nil {
19643		return nil, err
19644	}
19645	return ret, nil
19646	// {
19647	//   "description": "Trains the specified agent. Operation ",
19648	//   "flatPath": "v2beta1/projects/{projectsId}/agent:train",
19649	//   "httpMethod": "POST",
19650	//   "id": "dialogflow.projects.agent.train",
19651	//   "parameterOrder": [
19652	//     "parent"
19653	//   ],
19654	//   "parameters": {
19655	//     "parent": {
19656	//       "description": "Required. The project that the agent to train is associated with. Format: `projects/` or `projects//locations/`.",
19657	//       "location": "path",
19658	//       "pattern": "^projects/[^/]+$",
19659	//       "required": true,
19660	//       "type": "string"
19661	//     }
19662	//   },
19663	//   "path": "v2beta1/{+parent}/agent:train",
19664	//   "request": {
19665	//     "$ref": "GoogleCloudDialogflowV2beta1TrainAgentRequest"
19666	//   },
19667	//   "response": {
19668	//     "$ref": "GoogleLongrunningOperation"
19669	//   },
19670	//   "scopes": [
19671	//     "https://www.googleapis.com/auth/cloud-platform",
19672	//     "https://www.googleapis.com/auth/dialogflow"
19673	//   ]
19674	// }
19675
19676}
19677
19678// method id "dialogflow.projects.agent.updateFulfillment":
19679
19680type ProjectsAgentUpdateFulfillmentCall struct {
19681	s                                       *Service
19682	nameid                                  string
19683	googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
19684	urlParams_                              gensupport.URLParams
19685	ctx_                                    context.Context
19686	header_                                 http.Header
19687}
19688
19689// UpdateFulfillment: Updates the fulfillment.
19690//
19691// - name: The unique identifier of the fulfillment. Supported formats:
19692//   - `projects//agent/fulfillment` -
19693//   `projects//locations//agent/fulfillment` This field is not used for
19694//   Fulfillment in an Environment.
19695func (r *ProjectsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsAgentUpdateFulfillmentCall {
19696	c := &ProjectsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19697	c.nameid = nameid
19698	c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
19699	return c
19700}
19701
19702// UpdateMask sets the optional parameter "updateMask": Required. The
19703// mask to control which fields get updated. If the mask is not present,
19704// all fields will be updated.
19705func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall {
19706	c.urlParams_.Set("updateMask", updateMask)
19707	return c
19708}
19709
19710// Fields allows partial responses to be retrieved. See
19711// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19712// for more information.
19713func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall {
19714	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19715	return c
19716}
19717
19718// Context sets the context to be used in this call's Do method. Any
19719// pending HTTP request will be aborted if the provided context is
19720// canceled.
19721func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall {
19722	c.ctx_ = ctx
19723	return c
19724}
19725
19726// Header returns an http.Header that can be modified by the caller to
19727// add HTTP headers to the request.
19728func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header {
19729	if c.header_ == nil {
19730		c.header_ = make(http.Header)
19731	}
19732	return c.header_
19733}
19734
19735func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
19736	reqHeaders := make(http.Header)
19737	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
19738	for k, v := range c.header_ {
19739		reqHeaders[k] = v
19740	}
19741	reqHeaders.Set("User-Agent", c.s.userAgent())
19742	var body io.Reader = nil
19743	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
19744	if err != nil {
19745		return nil, err
19746	}
19747	reqHeaders.Set("Content-Type", "application/json")
19748	c.urlParams_.Set("alt", alt)
19749	c.urlParams_.Set("prettyPrint", "false")
19750	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
19751	urls += "?" + c.urlParams_.Encode()
19752	req, err := http.NewRequest("PATCH", urls, body)
19753	if err != nil {
19754		return nil, err
19755	}
19756	req.Header = reqHeaders
19757	googleapi.Expand(req.URL, map[string]string{
19758		"name": c.nameid,
19759	})
19760	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19761}
19762
19763// Do executes the "dialogflow.projects.agent.updateFulfillment" call.
19764// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
19765// be non-nil. Any non-2xx status code is an error. Response headers are
19766// in either
19767// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
19768// a response was returned at all) in error.(*googleapi.Error).Header.
19769// Use googleapi.IsNotModified to check whether the returned error was
19770// because http.StatusNotModified was returned.
19771func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
19772	gensupport.SetOptions(c.urlParams_, opts...)
19773	res, err := c.doRequest("json")
19774	if res != nil && res.StatusCode == http.StatusNotModified {
19775		if res.Body != nil {
19776			res.Body.Close()
19777		}
19778		return nil, &googleapi.Error{
19779			Code:   res.StatusCode,
19780			Header: res.Header,
19781		}
19782	}
19783	if err != nil {
19784		return nil, err
19785	}
19786	defer googleapi.CloseBody(res)
19787	if err := googleapi.CheckResponse(res); err != nil {
19788		return nil, err
19789	}
19790	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
19791		ServerResponse: googleapi.ServerResponse{
19792			Header:         res.Header,
19793			HTTPStatusCode: res.StatusCode,
19794		},
19795	}
19796	target := &ret
19797	if err := gensupport.DecodeResponse(target, res); err != nil {
19798		return nil, err
19799	}
19800	return ret, nil
19801	// {
19802	//   "description": "Updates the fulfillment.",
19803	//   "flatPath": "v2beta1/projects/{projectsId}/agent/fulfillment",
19804	//   "httpMethod": "PATCH",
19805	//   "id": "dialogflow.projects.agent.updateFulfillment",
19806	//   "parameterOrder": [
19807	//     "name"
19808	//   ],
19809	//   "parameters": {
19810	//     "name": {
19811	//       "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.",
19812	//       "location": "path",
19813	//       "pattern": "^projects/[^/]+/agent/fulfillment$",
19814	//       "required": true,
19815	//       "type": "string"
19816	//     },
19817	//     "updateMask": {
19818	//       "description": "Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
19819	//       "format": "google-fieldmask",
19820	//       "location": "query",
19821	//       "type": "string"
19822	//     }
19823	//   },
19824	//   "path": "v2beta1/{+name}",
19825	//   "request": {
19826	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
19827	//   },
19828	//   "response": {
19829	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
19830	//   },
19831	//   "scopes": [
19832	//     "https://www.googleapis.com/auth/cloud-platform",
19833	//     "https://www.googleapis.com/auth/dialogflow"
19834	//   ]
19835	// }
19836
19837}
19838
19839// method id "dialogflow.projects.agent.entityTypes.batchDelete":
19840
19841type ProjectsAgentEntityTypesBatchDeleteCall struct {
19842	s                                                         *Service
19843	parent                                                    string
19844	googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
19845	urlParams_                                                gensupport.URLParams
19846	ctx_                                                      context.Context
19847	header_                                                   http.Header
19848}
19849
19850// BatchDelete: Deletes entity types in the specified agent. Operation
19851//
19852// - parent: The name of the agent to delete all entities types for.
19853//   Supported formats: - `projects//agent`, -
19854//   `projects//locations//agent`.
19855func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall {
19856	c := &ProjectsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19857	c.parent = parent
19858	c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
19859	return c
19860}
19861
19862// Fields allows partial responses to be retrieved. See
19863// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19864// for more information.
19865func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall {
19866	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19867	return c
19868}
19869
19870// Context sets the context to be used in this call's Do method. Any
19871// pending HTTP request will be aborted if the provided context is
19872// canceled.
19873func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall {
19874	c.ctx_ = ctx
19875	return c
19876}
19877
19878// Header returns an http.Header that can be modified by the caller to
19879// add HTTP headers to the request.
19880func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header {
19881	if c.header_ == nil {
19882		c.header_ = make(http.Header)
19883	}
19884	return c.header_
19885}
19886
19887func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
19888	reqHeaders := make(http.Header)
19889	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
19890	for k, v := range c.header_ {
19891		reqHeaders[k] = v
19892	}
19893	reqHeaders.Set("User-Agent", c.s.userAgent())
19894	var body io.Reader = nil
19895	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
19896	if err != nil {
19897		return nil, err
19898	}
19899	reqHeaders.Set("Content-Type", "application/json")
19900	c.urlParams_.Set("alt", alt)
19901	c.urlParams_.Set("prettyPrint", "false")
19902	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
19903	urls += "?" + c.urlParams_.Encode()
19904	req, err := http.NewRequest("POST", urls, body)
19905	if err != nil {
19906		return nil, err
19907	}
19908	req.Header = reqHeaders
19909	googleapi.Expand(req.URL, map[string]string{
19910		"parent": c.parent,
19911	})
19912	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19913}
19914
19915// Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call.
19916// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19917// Any non-2xx status code is an error. Response headers are in either
19918// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19919// was returned at all) in error.(*googleapi.Error).Header. Use
19920// googleapi.IsNotModified to check whether the returned error was
19921// because http.StatusNotModified was returned.
19922func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19923	gensupport.SetOptions(c.urlParams_, opts...)
19924	res, err := c.doRequest("json")
19925	if res != nil && res.StatusCode == http.StatusNotModified {
19926		if res.Body != nil {
19927			res.Body.Close()
19928		}
19929		return nil, &googleapi.Error{
19930			Code:   res.StatusCode,
19931			Header: res.Header,
19932		}
19933	}
19934	if err != nil {
19935		return nil, err
19936	}
19937	defer googleapi.CloseBody(res)
19938	if err := googleapi.CheckResponse(res); err != nil {
19939		return nil, err
19940	}
19941	ret := &GoogleLongrunningOperation{
19942		ServerResponse: googleapi.ServerResponse{
19943			Header:         res.Header,
19944			HTTPStatusCode: res.StatusCode,
19945		},
19946	}
19947	target := &ret
19948	if err := gensupport.DecodeResponse(target, res); err != nil {
19949		return nil, err
19950	}
19951	return ret, nil
19952	// {
19953	//   "description": "Deletes entity types in the specified agent. Operation ",
19954	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes:batchDelete",
19955	//   "httpMethod": "POST",
19956	//   "id": "dialogflow.projects.agent.entityTypes.batchDelete",
19957	//   "parameterOrder": [
19958	//     "parent"
19959	//   ],
19960	//   "parameters": {
19961	//     "parent": {
19962	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent`, - `projects//locations//agent`.",
19963	//       "location": "path",
19964	//       "pattern": "^projects/[^/]+/agent$",
19965	//       "required": true,
19966	//       "type": "string"
19967	//     }
19968	//   },
19969	//   "path": "v2beta1/{+parent}/entityTypes:batchDelete",
19970	//   "request": {
19971	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest"
19972	//   },
19973	//   "response": {
19974	//     "$ref": "GoogleLongrunningOperation"
19975	//   },
19976	//   "scopes": [
19977	//     "https://www.googleapis.com/auth/cloud-platform",
19978	//     "https://www.googleapis.com/auth/dialogflow"
19979	//   ]
19980	// }
19981
19982}
19983
19984// method id "dialogflow.projects.agent.entityTypes.batchUpdate":
19985
19986type ProjectsAgentEntityTypesBatchUpdateCall struct {
19987	s                                                         *Service
19988	parent                                                    string
19989	googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
19990	urlParams_                                                gensupport.URLParams
19991	ctx_                                                      context.Context
19992	header_                                                   http.Header
19993}
19994
19995// BatchUpdate: Updates/Creates multiple entity types in the specified
19996// agent. Operation
19997//
19998// - parent: The name of the agent to update or create entity types in.
19999//   Supported formats: - `projects//agent` -
20000//   `projects//locations//agent`.
20001func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall {
20002	c := &ProjectsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20003	c.parent = parent
20004	c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
20005	return c
20006}
20007
20008// Fields allows partial responses to be retrieved. See
20009// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20010// for more information.
20011func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall {
20012	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20013	return c
20014}
20015
20016// Context sets the context to be used in this call's Do method. Any
20017// pending HTTP request will be aborted if the provided context is
20018// canceled.
20019func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall {
20020	c.ctx_ = ctx
20021	return c
20022}
20023
20024// Header returns an http.Header that can be modified by the caller to
20025// add HTTP headers to the request.
20026func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header {
20027	if c.header_ == nil {
20028		c.header_ = make(http.Header)
20029	}
20030	return c.header_
20031}
20032
20033func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
20034	reqHeaders := make(http.Header)
20035	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
20036	for k, v := range c.header_ {
20037		reqHeaders[k] = v
20038	}
20039	reqHeaders.Set("User-Agent", c.s.userAgent())
20040	var body io.Reader = nil
20041	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
20042	if err != nil {
20043		return nil, err
20044	}
20045	reqHeaders.Set("Content-Type", "application/json")
20046	c.urlParams_.Set("alt", alt)
20047	c.urlParams_.Set("prettyPrint", "false")
20048	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
20049	urls += "?" + c.urlParams_.Encode()
20050	req, err := http.NewRequest("POST", urls, body)
20051	if err != nil {
20052		return nil, err
20053	}
20054	req.Header = reqHeaders
20055	googleapi.Expand(req.URL, map[string]string{
20056		"parent": c.parent,
20057	})
20058	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20059}
20060
20061// Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call.
20062// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
20063// Any non-2xx status code is an error. Response headers are in either
20064// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
20065// was returned at all) in error.(*googleapi.Error).Header. Use
20066// googleapi.IsNotModified to check whether the returned error was
20067// because http.StatusNotModified was returned.
20068func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20069	gensupport.SetOptions(c.urlParams_, opts...)
20070	res, err := c.doRequest("json")
20071	if res != nil && res.StatusCode == http.StatusNotModified {
20072		if res.Body != nil {
20073			res.Body.Close()
20074		}
20075		return nil, &googleapi.Error{
20076			Code:   res.StatusCode,
20077			Header: res.Header,
20078		}
20079	}
20080	if err != nil {
20081		return nil, err
20082	}
20083	defer googleapi.CloseBody(res)
20084	if err := googleapi.CheckResponse(res); err != nil {
20085		return nil, err
20086	}
20087	ret := &GoogleLongrunningOperation{
20088		ServerResponse: googleapi.ServerResponse{
20089			Header:         res.Header,
20090			HTTPStatusCode: res.StatusCode,
20091		},
20092	}
20093	target := &ret
20094	if err := gensupport.DecodeResponse(target, res); err != nil {
20095		return nil, err
20096	}
20097	return ret, nil
20098	// {
20099	//   "description": "Updates/Creates multiple entity types in the specified agent. Operation ",
20100	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes:batchUpdate",
20101	//   "httpMethod": "POST",
20102	//   "id": "dialogflow.projects.agent.entityTypes.batchUpdate",
20103	//   "parameterOrder": [
20104	//     "parent"
20105	//   ],
20106	//   "parameters": {
20107	//     "parent": {
20108	//       "description": "Required. The name of the agent to update or create entity types in. Supported formats: - `projects//agent` - `projects//locations//agent`",
20109	//       "location": "path",
20110	//       "pattern": "^projects/[^/]+/agent$",
20111	//       "required": true,
20112	//       "type": "string"
20113	//     }
20114	//   },
20115	//   "path": "v2beta1/{+parent}/entityTypes:batchUpdate",
20116	//   "request": {
20117	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest"
20118	//   },
20119	//   "response": {
20120	//     "$ref": "GoogleLongrunningOperation"
20121	//   },
20122	//   "scopes": [
20123	//     "https://www.googleapis.com/auth/cloud-platform",
20124	//     "https://www.googleapis.com/auth/dialogflow"
20125	//   ]
20126	// }
20127
20128}
20129
20130// method id "dialogflow.projects.agent.entityTypes.create":
20131
20132type ProjectsAgentEntityTypesCreateCall struct {
20133	s                                      *Service
20134	parent                                 string
20135	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
20136	urlParams_                             gensupport.URLParams
20137	ctx_                                   context.Context
20138	header_                                http.Header
20139}
20140
20141// Create: Creates an entity type in the specified agent.
20142//
20143// - parent: The agent to create a entity type for. Supported formats: -
20144//   `projects//agent` - `projects//locations//agent`.
20145func (r *ProjectsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesCreateCall {
20146	c := &ProjectsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20147	c.parent = parent
20148	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
20149	return c
20150}
20151
20152// LanguageCode sets the optional parameter "languageCode": The language
20153// used to access language-specific data. If not specified, the agent's
20154// default language is used. For more information, see Multilingual
20155// intent and entity data
20156// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
20157func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall {
20158	c.urlParams_.Set("languageCode", languageCode)
20159	return c
20160}
20161
20162// Fields allows partial responses to be retrieved. See
20163// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20164// for more information.
20165func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall {
20166	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20167	return c
20168}
20169
20170// Context sets the context to be used in this call's Do method. Any
20171// pending HTTP request will be aborted if the provided context is
20172// canceled.
20173func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall {
20174	c.ctx_ = ctx
20175	return c
20176}
20177
20178// Header returns an http.Header that can be modified by the caller to
20179// add HTTP headers to the request.
20180func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header {
20181	if c.header_ == nil {
20182		c.header_ = make(http.Header)
20183	}
20184	return c.header_
20185}
20186
20187func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
20188	reqHeaders := make(http.Header)
20189	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
20190	for k, v := range c.header_ {
20191		reqHeaders[k] = v
20192	}
20193	reqHeaders.Set("User-Agent", c.s.userAgent())
20194	var body io.Reader = nil
20195	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
20196	if err != nil {
20197		return nil, err
20198	}
20199	reqHeaders.Set("Content-Type", "application/json")
20200	c.urlParams_.Set("alt", alt)
20201	c.urlParams_.Set("prettyPrint", "false")
20202	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
20203	urls += "?" + c.urlParams_.Encode()
20204	req, err := http.NewRequest("POST", urls, body)
20205	if err != nil {
20206		return nil, err
20207	}
20208	req.Header = reqHeaders
20209	googleapi.Expand(req.URL, map[string]string{
20210		"parent": c.parent,
20211	})
20212	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20213}
20214
20215// Do executes the "dialogflow.projects.agent.entityTypes.create" call.
20216// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
20217// be non-nil. Any non-2xx status code is an error. Response headers are
20218// in either
20219// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
20220// a response was returned at all) in error.(*googleapi.Error).Header.
20221// Use googleapi.IsNotModified to check whether the returned error was
20222// because http.StatusNotModified was returned.
20223func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
20224	gensupport.SetOptions(c.urlParams_, opts...)
20225	res, err := c.doRequest("json")
20226	if res != nil && res.StatusCode == http.StatusNotModified {
20227		if res.Body != nil {
20228			res.Body.Close()
20229		}
20230		return nil, &googleapi.Error{
20231			Code:   res.StatusCode,
20232			Header: res.Header,
20233		}
20234	}
20235	if err != nil {
20236		return nil, err
20237	}
20238	defer googleapi.CloseBody(res)
20239	if err := googleapi.CheckResponse(res); err != nil {
20240		return nil, err
20241	}
20242	ret := &GoogleCloudDialogflowV2beta1EntityType{
20243		ServerResponse: googleapi.ServerResponse{
20244			Header:         res.Header,
20245			HTTPStatusCode: res.StatusCode,
20246		},
20247	}
20248	target := &ret
20249	if err := gensupport.DecodeResponse(target, res); err != nil {
20250		return nil, err
20251	}
20252	return ret, nil
20253	// {
20254	//   "description": "Creates an entity type in the specified agent.",
20255	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes",
20256	//   "httpMethod": "POST",
20257	//   "id": "dialogflow.projects.agent.entityTypes.create",
20258	//   "parameterOrder": [
20259	//     "parent"
20260	//   ],
20261	//   "parameters": {
20262	//     "languageCode": {
20263	//       "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).",
20264	//       "location": "query",
20265	//       "type": "string"
20266	//     },
20267	//     "parent": {
20268	//       "description": "Required. The agent to create a entity type for. Supported formats: - `projects//agent` - `projects//locations//agent`",
20269	//       "location": "path",
20270	//       "pattern": "^projects/[^/]+/agent$",
20271	//       "required": true,
20272	//       "type": "string"
20273	//     }
20274	//   },
20275	//   "path": "v2beta1/{+parent}/entityTypes",
20276	//   "request": {
20277	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20278	//   },
20279	//   "response": {
20280	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20281	//   },
20282	//   "scopes": [
20283	//     "https://www.googleapis.com/auth/cloud-platform",
20284	//     "https://www.googleapis.com/auth/dialogflow"
20285	//   ]
20286	// }
20287
20288}
20289
20290// method id "dialogflow.projects.agent.entityTypes.delete":
20291
20292type ProjectsAgentEntityTypesDeleteCall struct {
20293	s          *Service
20294	name       string
20295	urlParams_ gensupport.URLParams
20296	ctx_       context.Context
20297	header_    http.Header
20298}
20299
20300// Delete: Deletes the specified entity type.
20301//
20302// - name: The name of the entity type to delete. Supported formats: -
20303//   `projects//agent/entityTypes/` -
20304//   `projects//locations//agent/entityTypes/`.
20305func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall {
20306	c := &ProjectsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20307	c.name = name
20308	return c
20309}
20310
20311// Fields allows partial responses to be retrieved. See
20312// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20313// for more information.
20314func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall {
20315	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20316	return c
20317}
20318
20319// Context sets the context to be used in this call's Do method. Any
20320// pending HTTP request will be aborted if the provided context is
20321// canceled.
20322func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall {
20323	c.ctx_ = ctx
20324	return c
20325}
20326
20327// Header returns an http.Header that can be modified by the caller to
20328// add HTTP headers to the request.
20329func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header {
20330	if c.header_ == nil {
20331		c.header_ = make(http.Header)
20332	}
20333	return c.header_
20334}
20335
20336func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
20337	reqHeaders := make(http.Header)
20338	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
20339	for k, v := range c.header_ {
20340		reqHeaders[k] = v
20341	}
20342	reqHeaders.Set("User-Agent", c.s.userAgent())
20343	var body io.Reader = nil
20344	c.urlParams_.Set("alt", alt)
20345	c.urlParams_.Set("prettyPrint", "false")
20346	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20347	urls += "?" + c.urlParams_.Encode()
20348	req, err := http.NewRequest("DELETE", urls, body)
20349	if err != nil {
20350		return nil, err
20351	}
20352	req.Header = reqHeaders
20353	googleapi.Expand(req.URL, map[string]string{
20354		"name": c.name,
20355	})
20356	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20357}
20358
20359// Do executes the "dialogflow.projects.agent.entityTypes.delete" call.
20360// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
20361// non-2xx status code is an error. Response headers are in either
20362// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
20363// returned at all) in error.(*googleapi.Error).Header. Use
20364// googleapi.IsNotModified to check whether the returned error was
20365// because http.StatusNotModified was returned.
20366func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20367	gensupport.SetOptions(c.urlParams_, opts...)
20368	res, err := c.doRequest("json")
20369	if res != nil && res.StatusCode == http.StatusNotModified {
20370		if res.Body != nil {
20371			res.Body.Close()
20372		}
20373		return nil, &googleapi.Error{
20374			Code:   res.StatusCode,
20375			Header: res.Header,
20376		}
20377	}
20378	if err != nil {
20379		return nil, err
20380	}
20381	defer googleapi.CloseBody(res)
20382	if err := googleapi.CheckResponse(res); err != nil {
20383		return nil, err
20384	}
20385	ret := &GoogleProtobufEmpty{
20386		ServerResponse: googleapi.ServerResponse{
20387			Header:         res.Header,
20388			HTTPStatusCode: res.StatusCode,
20389		},
20390	}
20391	target := &ret
20392	if err := gensupport.DecodeResponse(target, res); err != nil {
20393		return nil, err
20394	}
20395	return ret, nil
20396	// {
20397	//   "description": "Deletes the specified entity type.",
20398	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}",
20399	//   "httpMethod": "DELETE",
20400	//   "id": "dialogflow.projects.agent.entityTypes.delete",
20401	//   "parameterOrder": [
20402	//     "name"
20403	//   ],
20404	//   "parameters": {
20405	//     "name": {
20406	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
20407	//       "location": "path",
20408	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
20409	//       "required": true,
20410	//       "type": "string"
20411	//     }
20412	//   },
20413	//   "path": "v2beta1/{+name}",
20414	//   "response": {
20415	//     "$ref": "GoogleProtobufEmpty"
20416	//   },
20417	//   "scopes": [
20418	//     "https://www.googleapis.com/auth/cloud-platform",
20419	//     "https://www.googleapis.com/auth/dialogflow"
20420	//   ]
20421	// }
20422
20423}
20424
20425// method id "dialogflow.projects.agent.entityTypes.get":
20426
20427type ProjectsAgentEntityTypesGetCall struct {
20428	s            *Service
20429	name         string
20430	urlParams_   gensupport.URLParams
20431	ifNoneMatch_ string
20432	ctx_         context.Context
20433	header_      http.Header
20434}
20435
20436// Get: Retrieves the specified entity type.
20437//
20438// - name: The name of the entity type. Supported formats: -
20439//   `projects//agent/entityTypes/` -
20440//   `projects//locations//agent/entityTypes/`.
20441func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall {
20442	c := &ProjectsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20443	c.name = name
20444	return c
20445}
20446
20447// LanguageCode sets the optional parameter "languageCode": The language
20448// used to access language-specific data. If not specified, the agent's
20449// default language is used. For more information, see Multilingual
20450// intent and entity data
20451// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
20452func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall {
20453	c.urlParams_.Set("languageCode", languageCode)
20454	return c
20455}
20456
20457// Fields allows partial responses to be retrieved. See
20458// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20459// for more information.
20460func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall {
20461	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20462	return c
20463}
20464
20465// IfNoneMatch sets the optional parameter which makes the operation
20466// fail if the object's ETag matches the given value. This is useful for
20467// getting updates only after the object has changed since the last
20468// request. Use googleapi.IsNotModified to check whether the response
20469// error from Do is the result of In-None-Match.
20470func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall {
20471	c.ifNoneMatch_ = entityTag
20472	return c
20473}
20474
20475// Context sets the context to be used in this call's Do method. Any
20476// pending HTTP request will be aborted if the provided context is
20477// canceled.
20478func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall {
20479	c.ctx_ = ctx
20480	return c
20481}
20482
20483// Header returns an http.Header that can be modified by the caller to
20484// add HTTP headers to the request.
20485func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header {
20486	if c.header_ == nil {
20487		c.header_ = make(http.Header)
20488	}
20489	return c.header_
20490}
20491
20492func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
20493	reqHeaders := make(http.Header)
20494	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
20495	for k, v := range c.header_ {
20496		reqHeaders[k] = v
20497	}
20498	reqHeaders.Set("User-Agent", c.s.userAgent())
20499	if c.ifNoneMatch_ != "" {
20500		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20501	}
20502	var body io.Reader = nil
20503	c.urlParams_.Set("alt", alt)
20504	c.urlParams_.Set("prettyPrint", "false")
20505	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20506	urls += "?" + c.urlParams_.Encode()
20507	req, err := http.NewRequest("GET", urls, body)
20508	if err != nil {
20509		return nil, err
20510	}
20511	req.Header = reqHeaders
20512	googleapi.Expand(req.URL, map[string]string{
20513		"name": c.name,
20514	})
20515	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20516}
20517
20518// Do executes the "dialogflow.projects.agent.entityTypes.get" call.
20519// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
20520// be non-nil. Any non-2xx status code is an error. Response headers are
20521// in either
20522// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
20523// a response was returned at all) in error.(*googleapi.Error).Header.
20524// Use googleapi.IsNotModified to check whether the returned error was
20525// because http.StatusNotModified was returned.
20526func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
20527	gensupport.SetOptions(c.urlParams_, opts...)
20528	res, err := c.doRequest("json")
20529	if res != nil && res.StatusCode == http.StatusNotModified {
20530		if res.Body != nil {
20531			res.Body.Close()
20532		}
20533		return nil, &googleapi.Error{
20534			Code:   res.StatusCode,
20535			Header: res.Header,
20536		}
20537	}
20538	if err != nil {
20539		return nil, err
20540	}
20541	defer googleapi.CloseBody(res)
20542	if err := googleapi.CheckResponse(res); err != nil {
20543		return nil, err
20544	}
20545	ret := &GoogleCloudDialogflowV2beta1EntityType{
20546		ServerResponse: googleapi.ServerResponse{
20547			Header:         res.Header,
20548			HTTPStatusCode: res.StatusCode,
20549		},
20550	}
20551	target := &ret
20552	if err := gensupport.DecodeResponse(target, res); err != nil {
20553		return nil, err
20554	}
20555	return ret, nil
20556	// {
20557	//   "description": "Retrieves the specified entity type.",
20558	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}",
20559	//   "httpMethod": "GET",
20560	//   "id": "dialogflow.projects.agent.entityTypes.get",
20561	//   "parameterOrder": [
20562	//     "name"
20563	//   ],
20564	//   "parameters": {
20565	//     "languageCode": {
20566	//       "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).",
20567	//       "location": "query",
20568	//       "type": "string"
20569	//     },
20570	//     "name": {
20571	//       "description": "Required. The name of the entity type. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
20572	//       "location": "path",
20573	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
20574	//       "required": true,
20575	//       "type": "string"
20576	//     }
20577	//   },
20578	//   "path": "v2beta1/{+name}",
20579	//   "response": {
20580	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20581	//   },
20582	//   "scopes": [
20583	//     "https://www.googleapis.com/auth/cloud-platform",
20584	//     "https://www.googleapis.com/auth/dialogflow"
20585	//   ]
20586	// }
20587
20588}
20589
20590// method id "dialogflow.projects.agent.entityTypes.list":
20591
20592type ProjectsAgentEntityTypesListCall struct {
20593	s            *Service
20594	parent       string
20595	urlParams_   gensupport.URLParams
20596	ifNoneMatch_ string
20597	ctx_         context.Context
20598	header_      http.Header
20599}
20600
20601// List: Returns the list of all entity types in the specified agent.
20602//
20603// - parent: The agent to list all entity types from. Supported formats:
20604//   - `projects//agent` - `projects//locations//agent`.
20605func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall {
20606	c := &ProjectsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20607	c.parent = parent
20608	return c
20609}
20610
20611// LanguageCode sets the optional parameter "languageCode": The language
20612// used to access language-specific data. If not specified, the agent's
20613// default language is used. For more information, see Multilingual
20614// intent and entity data
20615// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
20616func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall {
20617	c.urlParams_.Set("languageCode", languageCode)
20618	return c
20619}
20620
20621// PageSize sets the optional parameter "pageSize": The maximum number
20622// of items to return in a single page. By default 100 and at most 1000.
20623func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall {
20624	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20625	return c
20626}
20627
20628// PageToken sets the optional parameter "pageToken": The
20629// next_page_token value returned from a previous list request.
20630func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall {
20631	c.urlParams_.Set("pageToken", pageToken)
20632	return c
20633}
20634
20635// Fields allows partial responses to be retrieved. See
20636// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20637// for more information.
20638func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall {
20639	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20640	return c
20641}
20642
20643// IfNoneMatch sets the optional parameter which makes the operation
20644// fail if the object's ETag matches the given value. This is useful for
20645// getting updates only after the object has changed since the last
20646// request. Use googleapi.IsNotModified to check whether the response
20647// error from Do is the result of In-None-Match.
20648func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall {
20649	c.ifNoneMatch_ = entityTag
20650	return c
20651}
20652
20653// Context sets the context to be used in this call's Do method. Any
20654// pending HTTP request will be aborted if the provided context is
20655// canceled.
20656func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall {
20657	c.ctx_ = ctx
20658	return c
20659}
20660
20661// Header returns an http.Header that can be modified by the caller to
20662// add HTTP headers to the request.
20663func (c *ProjectsAgentEntityTypesListCall) Header() http.Header {
20664	if c.header_ == nil {
20665		c.header_ = make(http.Header)
20666	}
20667	return c.header_
20668}
20669
20670func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
20671	reqHeaders := make(http.Header)
20672	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
20673	for k, v := range c.header_ {
20674		reqHeaders[k] = v
20675	}
20676	reqHeaders.Set("User-Agent", c.s.userAgent())
20677	if c.ifNoneMatch_ != "" {
20678		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20679	}
20680	var body io.Reader = nil
20681	c.urlParams_.Set("alt", alt)
20682	c.urlParams_.Set("prettyPrint", "false")
20683	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
20684	urls += "?" + c.urlParams_.Encode()
20685	req, err := http.NewRequest("GET", urls, body)
20686	if err != nil {
20687		return nil, err
20688	}
20689	req.Header = reqHeaders
20690	googleapi.Expand(req.URL, map[string]string{
20691		"parent": c.parent,
20692	})
20693	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20694}
20695
20696// Do executes the "dialogflow.projects.agent.entityTypes.list" call.
20697// Exactly one of *GoogleCloudDialogflowV2beta1ListEntityTypesResponse
20698// or error will be non-nil. Any non-2xx status code is an error.
20699// Response headers are in either
20700// *GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.He
20701// ader or (if a response was returned at all) in
20702// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20703// whether the returned error was because http.StatusNotModified was
20704// returned.
20705func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
20706	gensupport.SetOptions(c.urlParams_, opts...)
20707	res, err := c.doRequest("json")
20708	if res != nil && res.StatusCode == http.StatusNotModified {
20709		if res.Body != nil {
20710			res.Body.Close()
20711		}
20712		return nil, &googleapi.Error{
20713			Code:   res.StatusCode,
20714			Header: res.Header,
20715		}
20716	}
20717	if err != nil {
20718		return nil, err
20719	}
20720	defer googleapi.CloseBody(res)
20721	if err := googleapi.CheckResponse(res); err != nil {
20722		return nil, err
20723	}
20724	ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
20725		ServerResponse: googleapi.ServerResponse{
20726			Header:         res.Header,
20727			HTTPStatusCode: res.StatusCode,
20728		},
20729	}
20730	target := &ret
20731	if err := gensupport.DecodeResponse(target, res); err != nil {
20732		return nil, err
20733	}
20734	return ret, nil
20735	// {
20736	//   "description": "Returns the list of all entity types in the specified agent.",
20737	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes",
20738	//   "httpMethod": "GET",
20739	//   "id": "dialogflow.projects.agent.entityTypes.list",
20740	//   "parameterOrder": [
20741	//     "parent"
20742	//   ],
20743	//   "parameters": {
20744	//     "languageCode": {
20745	//       "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).",
20746	//       "location": "query",
20747	//       "type": "string"
20748	//     },
20749	//     "pageSize": {
20750	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
20751	//       "format": "int32",
20752	//       "location": "query",
20753	//       "type": "integer"
20754	//     },
20755	//     "pageToken": {
20756	//       "description": "Optional. The next_page_token value returned from a previous list request.",
20757	//       "location": "query",
20758	//       "type": "string"
20759	//     },
20760	//     "parent": {
20761	//       "description": "Required. The agent to list all entity types from. Supported formats: - `projects//agent` - `projects//locations//agent`",
20762	//       "location": "path",
20763	//       "pattern": "^projects/[^/]+/agent$",
20764	//       "required": true,
20765	//       "type": "string"
20766	//     }
20767	//   },
20768	//   "path": "v2beta1/{+parent}/entityTypes",
20769	//   "response": {
20770	//     "$ref": "GoogleCloudDialogflowV2beta1ListEntityTypesResponse"
20771	//   },
20772	//   "scopes": [
20773	//     "https://www.googleapis.com/auth/cloud-platform",
20774	//     "https://www.googleapis.com/auth/dialogflow"
20775	//   ]
20776	// }
20777
20778}
20779
20780// Pages invokes f for each page of results.
20781// A non-nil error returned from f will halt the iteration.
20782// The provided context supersedes any context provided to the Context method.
20783func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
20784	c.ctx_ = ctx
20785	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
20786	for {
20787		x, err := c.Do()
20788		if err != nil {
20789			return err
20790		}
20791		if err := f(x); err != nil {
20792			return err
20793		}
20794		if x.NextPageToken == "" {
20795			return nil
20796		}
20797		c.PageToken(x.NextPageToken)
20798	}
20799}
20800
20801// method id "dialogflow.projects.agent.entityTypes.patch":
20802
20803type ProjectsAgentEntityTypesPatchCall struct {
20804	s                                      *Service
20805	nameid                                 string
20806	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
20807	urlParams_                             gensupport.URLParams
20808	ctx_                                   context.Context
20809	header_                                http.Header
20810}
20811
20812// Patch: Updates the specified entity type.
20813//
20814// - name: The unique identifier of the entity type. Required for
20815//   EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
20816//   methods. Supported formats: - `projects//agent/entityTypes/` -
20817//   `projects//locations//agent/entityTypes/`.
20818func (r *ProjectsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesPatchCall {
20819	c := &ProjectsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20820	c.nameid = nameid
20821	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
20822	return c
20823}
20824
20825// LanguageCode sets the optional parameter "languageCode": The language
20826// used to access language-specific data. If not specified, the agent's
20827// default language is used. For more information, see Multilingual
20828// intent and entity data
20829// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
20830func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall {
20831	c.urlParams_.Set("languageCode", languageCode)
20832	return c
20833}
20834
20835// UpdateMask sets the optional parameter "updateMask": The mask to
20836// control which fields get updated.
20837func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall {
20838	c.urlParams_.Set("updateMask", updateMask)
20839	return c
20840}
20841
20842// Fields allows partial responses to be retrieved. See
20843// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20844// for more information.
20845func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall {
20846	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20847	return c
20848}
20849
20850// Context sets the context to be used in this call's Do method. Any
20851// pending HTTP request will be aborted if the provided context is
20852// canceled.
20853func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall {
20854	c.ctx_ = ctx
20855	return c
20856}
20857
20858// Header returns an http.Header that can be modified by the caller to
20859// add HTTP headers to the request.
20860func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header {
20861	if c.header_ == nil {
20862		c.header_ = make(http.Header)
20863	}
20864	return c.header_
20865}
20866
20867func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
20868	reqHeaders := make(http.Header)
20869	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
20870	for k, v := range c.header_ {
20871		reqHeaders[k] = v
20872	}
20873	reqHeaders.Set("User-Agent", c.s.userAgent())
20874	var body io.Reader = nil
20875	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
20876	if err != nil {
20877		return nil, err
20878	}
20879	reqHeaders.Set("Content-Type", "application/json")
20880	c.urlParams_.Set("alt", alt)
20881	c.urlParams_.Set("prettyPrint", "false")
20882	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20883	urls += "?" + c.urlParams_.Encode()
20884	req, err := http.NewRequest("PATCH", urls, body)
20885	if err != nil {
20886		return nil, err
20887	}
20888	req.Header = reqHeaders
20889	googleapi.Expand(req.URL, map[string]string{
20890		"name": c.nameid,
20891	})
20892	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20893}
20894
20895// Do executes the "dialogflow.projects.agent.entityTypes.patch" call.
20896// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
20897// be non-nil. Any non-2xx status code is an error. Response headers are
20898// in either
20899// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
20900// a response was returned at all) in error.(*googleapi.Error).Header.
20901// Use googleapi.IsNotModified to check whether the returned error was
20902// because http.StatusNotModified was returned.
20903func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
20904	gensupport.SetOptions(c.urlParams_, opts...)
20905	res, err := c.doRequest("json")
20906	if res != nil && res.StatusCode == http.StatusNotModified {
20907		if res.Body != nil {
20908			res.Body.Close()
20909		}
20910		return nil, &googleapi.Error{
20911			Code:   res.StatusCode,
20912			Header: res.Header,
20913		}
20914	}
20915	if err != nil {
20916		return nil, err
20917	}
20918	defer googleapi.CloseBody(res)
20919	if err := googleapi.CheckResponse(res); err != nil {
20920		return nil, err
20921	}
20922	ret := &GoogleCloudDialogflowV2beta1EntityType{
20923		ServerResponse: googleapi.ServerResponse{
20924			Header:         res.Header,
20925			HTTPStatusCode: res.StatusCode,
20926		},
20927	}
20928	target := &ret
20929	if err := gensupport.DecodeResponse(target, res); err != nil {
20930		return nil, err
20931	}
20932	return ret, nil
20933	// {
20934	//   "description": "Updates the specified entity type.",
20935	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}",
20936	//   "httpMethod": "PATCH",
20937	//   "id": "dialogflow.projects.agent.entityTypes.patch",
20938	//   "parameterOrder": [
20939	//     "name"
20940	//   ],
20941	//   "parameters": {
20942	//     "languageCode": {
20943	//       "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).",
20944	//       "location": "query",
20945	//       "type": "string"
20946	//     },
20947	//     "name": {
20948	//       "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/`",
20949	//       "location": "path",
20950	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
20951	//       "required": true,
20952	//       "type": "string"
20953	//     },
20954	//     "updateMask": {
20955	//       "description": "Optional. The mask to control which fields get updated.",
20956	//       "format": "google-fieldmask",
20957	//       "location": "query",
20958	//       "type": "string"
20959	//     }
20960	//   },
20961	//   "path": "v2beta1/{+name}",
20962	//   "request": {
20963	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20964	//   },
20965	//   "response": {
20966	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
20967	//   },
20968	//   "scopes": [
20969	//     "https://www.googleapis.com/auth/cloud-platform",
20970	//     "https://www.googleapis.com/auth/dialogflow"
20971	//   ]
20972	// }
20973
20974}
20975
20976// method id "dialogflow.projects.agent.entityTypes.entities.batchCreate":
20977
20978type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {
20979	s                                                      *Service
20980	parent                                                 string
20981	googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
20982	urlParams_                                             gensupport.URLParams
20983	ctx_                                                   context.Context
20984	header_                                                http.Header
20985}
20986
20987// BatchCreate: Creates multiple new entities in the specified entity
20988// type. Operation
20989//
20990// - parent: The name of the entity type to create entities in.
20991//   Supported formats: - `projects//agent/entityTypes/` -
20992//   `projects//locations//agent/entityTypes/`.
20993func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
20994	c := &ProjectsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20995	c.parent = parent
20996	c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
20997	return c
20998}
20999
21000// Fields allows partial responses to be retrieved. See
21001// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21002// for more information.
21003func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21004	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21005	return c
21006}
21007
21008// Context sets the context to be used in this call's Do method. Any
21009// pending HTTP request will be aborted if the provided context is
21010// canceled.
21011func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21012	c.ctx_ = ctx
21013	return c
21014}
21015
21016// Header returns an http.Header that can be modified by the caller to
21017// add HTTP headers to the request.
21018func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
21019	if c.header_ == nil {
21020		c.header_ = make(http.Header)
21021	}
21022	return c.header_
21023}
21024
21025func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
21026	reqHeaders := make(http.Header)
21027	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
21028	for k, v := range c.header_ {
21029		reqHeaders[k] = v
21030	}
21031	reqHeaders.Set("User-Agent", c.s.userAgent())
21032	var body io.Reader = nil
21033	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
21034	if err != nil {
21035		return nil, err
21036	}
21037	reqHeaders.Set("Content-Type", "application/json")
21038	c.urlParams_.Set("alt", alt)
21039	c.urlParams_.Set("prettyPrint", "false")
21040	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
21041	urls += "?" + c.urlParams_.Encode()
21042	req, err := http.NewRequest("POST", urls, body)
21043	if err != nil {
21044		return nil, err
21045	}
21046	req.Header = reqHeaders
21047	googleapi.Expand(req.URL, map[string]string{
21048		"parent": c.parent,
21049	})
21050	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21051}
21052
21053// Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call.
21054// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21055// Any non-2xx status code is an error. Response headers are in either
21056// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21057// was returned at all) in error.(*googleapi.Error).Header. Use
21058// googleapi.IsNotModified to check whether the returned error was
21059// because http.StatusNotModified was returned.
21060func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21061	gensupport.SetOptions(c.urlParams_, opts...)
21062	res, err := c.doRequest("json")
21063	if res != nil && res.StatusCode == http.StatusNotModified {
21064		if res.Body != nil {
21065			res.Body.Close()
21066		}
21067		return nil, &googleapi.Error{
21068			Code:   res.StatusCode,
21069			Header: res.Header,
21070		}
21071	}
21072	if err != nil {
21073		return nil, err
21074	}
21075	defer googleapi.CloseBody(res)
21076	if err := googleapi.CheckResponse(res); err != nil {
21077		return nil, err
21078	}
21079	ret := &GoogleLongrunningOperation{
21080		ServerResponse: googleapi.ServerResponse{
21081			Header:         res.Header,
21082			HTTPStatusCode: res.StatusCode,
21083		},
21084	}
21085	target := &ret
21086	if err := gensupport.DecodeResponse(target, res); err != nil {
21087		return nil, err
21088	}
21089	return ret, nil
21090	// {
21091	//   "description": "Creates multiple new entities in the specified entity type. Operation ",
21092	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}/entities:batchCreate",
21093	//   "httpMethod": "POST",
21094	//   "id": "dialogflow.projects.agent.entityTypes.entities.batchCreate",
21095	//   "parameterOrder": [
21096	//     "parent"
21097	//   ],
21098	//   "parameters": {
21099	//     "parent": {
21100	//       "description": "Required. The name of the entity type to create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
21101	//       "location": "path",
21102	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
21103	//       "required": true,
21104	//       "type": "string"
21105	//     }
21106	//   },
21107	//   "path": "v2beta1/{+parent}/entities:batchCreate",
21108	//   "request": {
21109	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest"
21110	//   },
21111	//   "response": {
21112	//     "$ref": "GoogleLongrunningOperation"
21113	//   },
21114	//   "scopes": [
21115	//     "https://www.googleapis.com/auth/cloud-platform",
21116	//     "https://www.googleapis.com/auth/dialogflow"
21117	//   ]
21118	// }
21119
21120}
21121
21122// method id "dialogflow.projects.agent.entityTypes.entities.batchDelete":
21123
21124type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {
21125	s                                                      *Service
21126	parent                                                 string
21127	googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
21128	urlParams_                                             gensupport.URLParams
21129	ctx_                                                   context.Context
21130	header_                                                http.Header
21131}
21132
21133// BatchDelete: Deletes entities in the specified entity type. Operation
21134//
21135// - parent: The name of the entity type to delete entries for.
21136//   Supported formats: - `projects//agent/entityTypes/` -
21137//   `projects//locations//agent/entityTypes/`.
21138func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21139	c := &ProjectsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21140	c.parent = parent
21141	c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
21142	return c
21143}
21144
21145// Fields allows partial responses to be retrieved. See
21146// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21147// for more information.
21148func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21149	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21150	return c
21151}
21152
21153// Context sets the context to be used in this call's Do method. Any
21154// pending HTTP request will be aborted if the provided context is
21155// canceled.
21156func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21157	c.ctx_ = ctx
21158	return c
21159}
21160
21161// Header returns an http.Header that can be modified by the caller to
21162// add HTTP headers to the request.
21163func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
21164	if c.header_ == nil {
21165		c.header_ = make(http.Header)
21166	}
21167	return c.header_
21168}
21169
21170func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
21171	reqHeaders := make(http.Header)
21172	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
21173	for k, v := range c.header_ {
21174		reqHeaders[k] = v
21175	}
21176	reqHeaders.Set("User-Agent", c.s.userAgent())
21177	var body io.Reader = nil
21178	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
21179	if err != nil {
21180		return nil, err
21181	}
21182	reqHeaders.Set("Content-Type", "application/json")
21183	c.urlParams_.Set("alt", alt)
21184	c.urlParams_.Set("prettyPrint", "false")
21185	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
21186	urls += "?" + c.urlParams_.Encode()
21187	req, err := http.NewRequest("POST", urls, body)
21188	if err != nil {
21189		return nil, err
21190	}
21191	req.Header = reqHeaders
21192	googleapi.Expand(req.URL, map[string]string{
21193		"parent": c.parent,
21194	})
21195	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21196}
21197
21198// Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call.
21199// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21200// Any non-2xx status code is an error. Response headers are in either
21201// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21202// was returned at all) in error.(*googleapi.Error).Header. Use
21203// googleapi.IsNotModified to check whether the returned error was
21204// because http.StatusNotModified was returned.
21205func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21206	gensupport.SetOptions(c.urlParams_, opts...)
21207	res, err := c.doRequest("json")
21208	if res != nil && res.StatusCode == http.StatusNotModified {
21209		if res.Body != nil {
21210			res.Body.Close()
21211		}
21212		return nil, &googleapi.Error{
21213			Code:   res.StatusCode,
21214			Header: res.Header,
21215		}
21216	}
21217	if err != nil {
21218		return nil, err
21219	}
21220	defer googleapi.CloseBody(res)
21221	if err := googleapi.CheckResponse(res); err != nil {
21222		return nil, err
21223	}
21224	ret := &GoogleLongrunningOperation{
21225		ServerResponse: googleapi.ServerResponse{
21226			Header:         res.Header,
21227			HTTPStatusCode: res.StatusCode,
21228		},
21229	}
21230	target := &ret
21231	if err := gensupport.DecodeResponse(target, res); err != nil {
21232		return nil, err
21233	}
21234	return ret, nil
21235	// {
21236	//   "description": "Deletes entities in the specified entity type. Operation ",
21237	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}/entities:batchDelete",
21238	//   "httpMethod": "POST",
21239	//   "id": "dialogflow.projects.agent.entityTypes.entities.batchDelete",
21240	//   "parameterOrder": [
21241	//     "parent"
21242	//   ],
21243	//   "parameters": {
21244	//     "parent": {
21245	//       "description": "Required. The name of the entity type to delete entries for. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
21246	//       "location": "path",
21247	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
21248	//       "required": true,
21249	//       "type": "string"
21250	//     }
21251	//   },
21252	//   "path": "v2beta1/{+parent}/entities:batchDelete",
21253	//   "request": {
21254	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest"
21255	//   },
21256	//   "response": {
21257	//     "$ref": "GoogleLongrunningOperation"
21258	//   },
21259	//   "scopes": [
21260	//     "https://www.googleapis.com/auth/cloud-platform",
21261	//     "https://www.googleapis.com/auth/dialogflow"
21262	//   ]
21263	// }
21264
21265}
21266
21267// method id "dialogflow.projects.agent.entityTypes.entities.batchUpdate":
21268
21269type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {
21270	s                                                      *Service
21271	parent                                                 string
21272	googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
21273	urlParams_                                             gensupport.URLParams
21274	ctx_                                                   context.Context
21275	header_                                                http.Header
21276}
21277
21278// BatchUpdate: Updates or creates multiple entities in the specified
21279// entity type. This method does not affect entities in the entity type
21280// that aren't explicitly specified in the request. Operation
21281//
21282// - parent: The name of the entity type to update or create entities
21283//   in. Supported formats: - `projects//agent/entityTypes/` -
21284//   `projects//locations//agent/entityTypes/`.
21285func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21286	c := &ProjectsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21287	c.parent = parent
21288	c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
21289	return c
21290}
21291
21292// Fields allows partial responses to be retrieved. See
21293// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21294// for more information.
21295func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21296	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21297	return c
21298}
21299
21300// Context sets the context to be used in this call's Do method. Any
21301// pending HTTP request will be aborted if the provided context is
21302// canceled.
21303func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21304	c.ctx_ = ctx
21305	return c
21306}
21307
21308// Header returns an http.Header that can be modified by the caller to
21309// add HTTP headers to the request.
21310func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
21311	if c.header_ == nil {
21312		c.header_ = make(http.Header)
21313	}
21314	return c.header_
21315}
21316
21317func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
21318	reqHeaders := make(http.Header)
21319	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
21320	for k, v := range c.header_ {
21321		reqHeaders[k] = v
21322	}
21323	reqHeaders.Set("User-Agent", c.s.userAgent())
21324	var body io.Reader = nil
21325	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
21326	if err != nil {
21327		return nil, err
21328	}
21329	reqHeaders.Set("Content-Type", "application/json")
21330	c.urlParams_.Set("alt", alt)
21331	c.urlParams_.Set("prettyPrint", "false")
21332	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
21333	urls += "?" + c.urlParams_.Encode()
21334	req, err := http.NewRequest("POST", urls, body)
21335	if err != nil {
21336		return nil, err
21337	}
21338	req.Header = reqHeaders
21339	googleapi.Expand(req.URL, map[string]string{
21340		"parent": c.parent,
21341	})
21342	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21343}
21344
21345// Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call.
21346// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
21347// Any non-2xx status code is an error. Response headers are in either
21348// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
21349// was returned at all) in error.(*googleapi.Error).Header. Use
21350// googleapi.IsNotModified to check whether the returned error was
21351// because http.StatusNotModified was returned.
21352func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21353	gensupport.SetOptions(c.urlParams_, opts...)
21354	res, err := c.doRequest("json")
21355	if res != nil && res.StatusCode == http.StatusNotModified {
21356		if res.Body != nil {
21357			res.Body.Close()
21358		}
21359		return nil, &googleapi.Error{
21360			Code:   res.StatusCode,
21361			Header: res.Header,
21362		}
21363	}
21364	if err != nil {
21365		return nil, err
21366	}
21367	defer googleapi.CloseBody(res)
21368	if err := googleapi.CheckResponse(res); err != nil {
21369		return nil, err
21370	}
21371	ret := &GoogleLongrunningOperation{
21372		ServerResponse: googleapi.ServerResponse{
21373			Header:         res.Header,
21374			HTTPStatusCode: res.StatusCode,
21375		},
21376	}
21377	target := &ret
21378	if err := gensupport.DecodeResponse(target, res); err != nil {
21379		return nil, err
21380	}
21381	return ret, nil
21382	// {
21383	//   "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. Operation ",
21384	//   "flatPath": "v2beta1/projects/{projectsId}/agent/entityTypes/{entityTypesId}/entities:batchUpdate",
21385	//   "httpMethod": "POST",
21386	//   "id": "dialogflow.projects.agent.entityTypes.entities.batchUpdate",
21387	//   "parameterOrder": [
21388	//     "parent"
21389	//   ],
21390	//   "parameters": {
21391	//     "parent": {
21392	//       "description": "Required. The name of the entity type to update or create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
21393	//       "location": "path",
21394	//       "pattern": "^projects/[^/]+/agent/entityTypes/[^/]+$",
21395	//       "required": true,
21396	//       "type": "string"
21397	//     }
21398	//   },
21399	//   "path": "v2beta1/{+parent}/entities:batchUpdate",
21400	//   "request": {
21401	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest"
21402	//   },
21403	//   "response": {
21404	//     "$ref": "GoogleLongrunningOperation"
21405	//   },
21406	//   "scopes": [
21407	//     "https://www.googleapis.com/auth/cloud-platform",
21408	//     "https://www.googleapis.com/auth/dialogflow"
21409	//   ]
21410	// }
21411
21412}
21413
21414// method id "dialogflow.projects.agent.environments.create":
21415
21416type ProjectsAgentEnvironmentsCreateCall struct {
21417	s                                       *Service
21418	parent                                  string
21419	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
21420	urlParams_                              gensupport.URLParams
21421	ctx_                                    context.Context
21422	header_                                 http.Header
21423}
21424
21425// Create: Creates an agent environment.
21426//
21427// - parent: The agent to create an environment for. Supported formats:
21428//   - `projects//agent` - `projects//locations//agent`.
21429func (r *ProjectsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsCreateCall {
21430	c := &ProjectsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21431	c.parent = parent
21432	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
21433	return c
21434}
21435
21436// EnvironmentId sets the optional parameter "environmentId": Required.
21437// The unique id of the new environment.
21438func (c *ProjectsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsAgentEnvironmentsCreateCall {
21439	c.urlParams_.Set("environmentId", environmentId)
21440	return c
21441}
21442
21443// Fields allows partial responses to be retrieved. See
21444// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21445// for more information.
21446func (c *ProjectsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsCreateCall {
21447	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21448	return c
21449}
21450
21451// Context sets the context to be used in this call's Do method. Any
21452// pending HTTP request will be aborted if the provided context is
21453// canceled.
21454func (c *ProjectsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsCreateCall {
21455	c.ctx_ = ctx
21456	return c
21457}
21458
21459// Header returns an http.Header that can be modified by the caller to
21460// add HTTP headers to the request.
21461func (c *ProjectsAgentEnvironmentsCreateCall) Header() http.Header {
21462	if c.header_ == nil {
21463		c.header_ = make(http.Header)
21464	}
21465	return c.header_
21466}
21467
21468func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
21469	reqHeaders := make(http.Header)
21470	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
21471	for k, v := range c.header_ {
21472		reqHeaders[k] = v
21473	}
21474	reqHeaders.Set("User-Agent", c.s.userAgent())
21475	var body io.Reader = nil
21476	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
21477	if err != nil {
21478		return nil, err
21479	}
21480	reqHeaders.Set("Content-Type", "application/json")
21481	c.urlParams_.Set("alt", alt)
21482	c.urlParams_.Set("prettyPrint", "false")
21483	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
21484	urls += "?" + c.urlParams_.Encode()
21485	req, err := http.NewRequest("POST", urls, body)
21486	if err != nil {
21487		return nil, err
21488	}
21489	req.Header = reqHeaders
21490	googleapi.Expand(req.URL, map[string]string{
21491		"parent": c.parent,
21492	})
21493	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21494}
21495
21496// Do executes the "dialogflow.projects.agent.environments.create" call.
21497// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
21498// be non-nil. Any non-2xx status code is an error. Response headers are
21499// in either
21500// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
21501// a response was returned at all) in error.(*googleapi.Error).Header.
21502// Use googleapi.IsNotModified to check whether the returned error was
21503// because http.StatusNotModified was returned.
21504func (c *ProjectsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
21505	gensupport.SetOptions(c.urlParams_, opts...)
21506	res, err := c.doRequest("json")
21507	if res != nil && res.StatusCode == http.StatusNotModified {
21508		if res.Body != nil {
21509			res.Body.Close()
21510		}
21511		return nil, &googleapi.Error{
21512			Code:   res.StatusCode,
21513			Header: res.Header,
21514		}
21515	}
21516	if err != nil {
21517		return nil, err
21518	}
21519	defer googleapi.CloseBody(res)
21520	if err := googleapi.CheckResponse(res); err != nil {
21521		return nil, err
21522	}
21523	ret := &GoogleCloudDialogflowV2beta1Environment{
21524		ServerResponse: googleapi.ServerResponse{
21525			Header:         res.Header,
21526			HTTPStatusCode: res.StatusCode,
21527		},
21528	}
21529	target := &ret
21530	if err := gensupport.DecodeResponse(target, res); err != nil {
21531		return nil, err
21532	}
21533	return ret, nil
21534	// {
21535	//   "description": "Creates an agent environment.",
21536	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments",
21537	//   "httpMethod": "POST",
21538	//   "id": "dialogflow.projects.agent.environments.create",
21539	//   "parameterOrder": [
21540	//     "parent"
21541	//   ],
21542	//   "parameters": {
21543	//     "environmentId": {
21544	//       "description": "Required. The unique id of the new environment.",
21545	//       "location": "query",
21546	//       "type": "string"
21547	//     },
21548	//     "parent": {
21549	//       "description": "Required. The agent to create an environment for. Supported formats: - `projects//agent` - `projects//locations//agent`",
21550	//       "location": "path",
21551	//       "pattern": "^projects/[^/]+/agent$",
21552	//       "required": true,
21553	//       "type": "string"
21554	//     }
21555	//   },
21556	//   "path": "v2beta1/{+parent}/environments",
21557	//   "request": {
21558	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
21559	//   },
21560	//   "response": {
21561	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
21562	//   },
21563	//   "scopes": [
21564	//     "https://www.googleapis.com/auth/cloud-platform",
21565	//     "https://www.googleapis.com/auth/dialogflow"
21566	//   ]
21567	// }
21568
21569}
21570
21571// method id "dialogflow.projects.agent.environments.delete":
21572
21573type ProjectsAgentEnvironmentsDeleteCall struct {
21574	s          *Service
21575	name       string
21576	urlParams_ gensupport.URLParams
21577	ctx_       context.Context
21578	header_    http.Header
21579}
21580
21581// Delete: Deletes the specified agent environment.
21582//
21583// - name: The name of the environment to delete. / Format: -
21584//   `projects//agent/environments/` -
21585//   `projects//locations//agent/environments/`.
21586func (r *ProjectsAgentEnvironmentsService) Delete(name string) *ProjectsAgentEnvironmentsDeleteCall {
21587	c := &ProjectsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21588	c.name = name
21589	return c
21590}
21591
21592// Fields allows partial responses to be retrieved. See
21593// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21594// for more information.
21595func (c *ProjectsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsDeleteCall {
21596	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21597	return c
21598}
21599
21600// Context sets the context to be used in this call's Do method. Any
21601// pending HTTP request will be aborted if the provided context is
21602// canceled.
21603func (c *ProjectsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsDeleteCall {
21604	c.ctx_ = ctx
21605	return c
21606}
21607
21608// Header returns an http.Header that can be modified by the caller to
21609// add HTTP headers to the request.
21610func (c *ProjectsAgentEnvironmentsDeleteCall) Header() http.Header {
21611	if c.header_ == nil {
21612		c.header_ = make(http.Header)
21613	}
21614	return c.header_
21615}
21616
21617func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
21618	reqHeaders := make(http.Header)
21619	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
21620	for k, v := range c.header_ {
21621		reqHeaders[k] = v
21622	}
21623	reqHeaders.Set("User-Agent", c.s.userAgent())
21624	var body io.Reader = nil
21625	c.urlParams_.Set("alt", alt)
21626	c.urlParams_.Set("prettyPrint", "false")
21627	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
21628	urls += "?" + c.urlParams_.Encode()
21629	req, err := http.NewRequest("DELETE", urls, body)
21630	if err != nil {
21631		return nil, err
21632	}
21633	req.Header = reqHeaders
21634	googleapi.Expand(req.URL, map[string]string{
21635		"name": c.name,
21636	})
21637	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21638}
21639
21640// Do executes the "dialogflow.projects.agent.environments.delete" call.
21641// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21642// non-2xx status code is an error. Response headers are in either
21643// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21644// returned at all) in error.(*googleapi.Error).Header. Use
21645// googleapi.IsNotModified to check whether the returned error was
21646// because http.StatusNotModified was returned.
21647func (c *ProjectsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21648	gensupport.SetOptions(c.urlParams_, opts...)
21649	res, err := c.doRequest("json")
21650	if res != nil && res.StatusCode == http.StatusNotModified {
21651		if res.Body != nil {
21652			res.Body.Close()
21653		}
21654		return nil, &googleapi.Error{
21655			Code:   res.StatusCode,
21656			Header: res.Header,
21657		}
21658	}
21659	if err != nil {
21660		return nil, err
21661	}
21662	defer googleapi.CloseBody(res)
21663	if err := googleapi.CheckResponse(res); err != nil {
21664		return nil, err
21665	}
21666	ret := &GoogleProtobufEmpty{
21667		ServerResponse: googleapi.ServerResponse{
21668			Header:         res.Header,
21669			HTTPStatusCode: res.StatusCode,
21670		},
21671	}
21672	target := &ret
21673	if err := gensupport.DecodeResponse(target, res); err != nil {
21674		return nil, err
21675	}
21676	return ret, nil
21677	// {
21678	//   "description": "Deletes the specified agent environment.",
21679	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}",
21680	//   "httpMethod": "DELETE",
21681	//   "id": "dialogflow.projects.agent.environments.delete",
21682	//   "parameterOrder": [
21683	//     "name"
21684	//   ],
21685	//   "parameters": {
21686	//     "name": {
21687	//       "description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
21688	//       "location": "path",
21689	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
21690	//       "required": true,
21691	//       "type": "string"
21692	//     }
21693	//   },
21694	//   "path": "v2beta1/{+name}",
21695	//   "response": {
21696	//     "$ref": "GoogleProtobufEmpty"
21697	//   },
21698	//   "scopes": [
21699	//     "https://www.googleapis.com/auth/cloud-platform",
21700	//     "https://www.googleapis.com/auth/dialogflow"
21701	//   ]
21702	// }
21703
21704}
21705
21706// method id "dialogflow.projects.agent.environments.get":
21707
21708type ProjectsAgentEnvironmentsGetCall struct {
21709	s            *Service
21710	name         string
21711	urlParams_   gensupport.URLParams
21712	ifNoneMatch_ string
21713	ctx_         context.Context
21714	header_      http.Header
21715}
21716
21717// Get: Retrieves the specified agent environment.
21718//
21719// - name: The name of the environment. Supported formats: -
21720//   `projects//agent/environments/` -
21721//   `projects//locations//agent/environments/`.
21722func (r *ProjectsAgentEnvironmentsService) Get(name string) *ProjectsAgentEnvironmentsGetCall {
21723	c := &ProjectsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21724	c.name = name
21725	return c
21726}
21727
21728// Fields allows partial responses to be retrieved. See
21729// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21730// for more information.
21731func (c *ProjectsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetCall {
21732	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21733	return c
21734}
21735
21736// IfNoneMatch sets the optional parameter which makes the operation
21737// fail if the object's ETag matches the given value. This is useful for
21738// getting updates only after the object has changed since the last
21739// request. Use googleapi.IsNotModified to check whether the response
21740// error from Do is the result of In-None-Match.
21741func (c *ProjectsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetCall {
21742	c.ifNoneMatch_ = entityTag
21743	return c
21744}
21745
21746// Context sets the context to be used in this call's Do method. Any
21747// pending HTTP request will be aborted if the provided context is
21748// canceled.
21749func (c *ProjectsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetCall {
21750	c.ctx_ = ctx
21751	return c
21752}
21753
21754// Header returns an http.Header that can be modified by the caller to
21755// add HTTP headers to the request.
21756func (c *ProjectsAgentEnvironmentsGetCall) Header() http.Header {
21757	if c.header_ == nil {
21758		c.header_ = make(http.Header)
21759	}
21760	return c.header_
21761}
21762
21763func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
21764	reqHeaders := make(http.Header)
21765	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
21766	for k, v := range c.header_ {
21767		reqHeaders[k] = v
21768	}
21769	reqHeaders.Set("User-Agent", c.s.userAgent())
21770	if c.ifNoneMatch_ != "" {
21771		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21772	}
21773	var body io.Reader = nil
21774	c.urlParams_.Set("alt", alt)
21775	c.urlParams_.Set("prettyPrint", "false")
21776	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
21777	urls += "?" + c.urlParams_.Encode()
21778	req, err := http.NewRequest("GET", urls, body)
21779	if err != nil {
21780		return nil, err
21781	}
21782	req.Header = reqHeaders
21783	googleapi.Expand(req.URL, map[string]string{
21784		"name": c.name,
21785	})
21786	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21787}
21788
21789// Do executes the "dialogflow.projects.agent.environments.get" call.
21790// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
21791// be non-nil. Any non-2xx status code is an error. Response headers are
21792// in either
21793// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
21794// a response was returned at all) in error.(*googleapi.Error).Header.
21795// Use googleapi.IsNotModified to check whether the returned error was
21796// because http.StatusNotModified was returned.
21797func (c *ProjectsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
21798	gensupport.SetOptions(c.urlParams_, opts...)
21799	res, err := c.doRequest("json")
21800	if res != nil && res.StatusCode == http.StatusNotModified {
21801		if res.Body != nil {
21802			res.Body.Close()
21803		}
21804		return nil, &googleapi.Error{
21805			Code:   res.StatusCode,
21806			Header: res.Header,
21807		}
21808	}
21809	if err != nil {
21810		return nil, err
21811	}
21812	defer googleapi.CloseBody(res)
21813	if err := googleapi.CheckResponse(res); err != nil {
21814		return nil, err
21815	}
21816	ret := &GoogleCloudDialogflowV2beta1Environment{
21817		ServerResponse: googleapi.ServerResponse{
21818			Header:         res.Header,
21819			HTTPStatusCode: res.StatusCode,
21820		},
21821	}
21822	target := &ret
21823	if err := gensupport.DecodeResponse(target, res); err != nil {
21824		return nil, err
21825	}
21826	return ret, nil
21827	// {
21828	//   "description": "Retrieves the specified agent environment.",
21829	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}",
21830	//   "httpMethod": "GET",
21831	//   "id": "dialogflow.projects.agent.environments.get",
21832	//   "parameterOrder": [
21833	//     "name"
21834	//   ],
21835	//   "parameters": {
21836	//     "name": {
21837	//       "description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
21838	//       "location": "path",
21839	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
21840	//       "required": true,
21841	//       "type": "string"
21842	//     }
21843	//   },
21844	//   "path": "v2beta1/{+name}",
21845	//   "response": {
21846	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
21847	//   },
21848	//   "scopes": [
21849	//     "https://www.googleapis.com/auth/cloud-platform",
21850	//     "https://www.googleapis.com/auth/dialogflow"
21851	//   ]
21852	// }
21853
21854}
21855
21856// method id "dialogflow.projects.agent.environments.getHistory":
21857
21858type ProjectsAgentEnvironmentsGetHistoryCall struct {
21859	s            *Service
21860	parent       string
21861	urlParams_   gensupport.URLParams
21862	ifNoneMatch_ string
21863	ctx_         context.Context
21864	header_      http.Header
21865}
21866
21867// GetHistory: Gets the history of the specified environment.
21868//
21869// - parent: The name of the environment to retrieve history for.
21870//   Supported formats: - `projects//agent/environments/` -
21871//   `projects//locations//agent/environments/`.
21872func (r *ProjectsAgentEnvironmentsService) GetHistory(parent string) *ProjectsAgentEnvironmentsGetHistoryCall {
21873	c := &ProjectsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21874	c.parent = parent
21875	return c
21876}
21877
21878// PageSize sets the optional parameter "pageSize": The maximum number
21879// of items to return in a single page. By default 100 and at most 1000.
21880func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsGetHistoryCall {
21881	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21882	return c
21883}
21884
21885// PageToken sets the optional parameter "pageToken": The
21886// next_page_token value returned from a previous list request.
21887func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsGetHistoryCall {
21888	c.urlParams_.Set("pageToken", pageToken)
21889	return c
21890}
21891
21892// Fields allows partial responses to be retrieved. See
21893// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21894// for more information.
21895func (c *ProjectsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetHistoryCall {
21896	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21897	return c
21898}
21899
21900// IfNoneMatch sets the optional parameter which makes the operation
21901// fail if the object's ETag matches the given value. This is useful for
21902// getting updates only after the object has changed since the last
21903// request. Use googleapi.IsNotModified to check whether the response
21904// error from Do is the result of In-None-Match.
21905func (c *ProjectsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetHistoryCall {
21906	c.ifNoneMatch_ = entityTag
21907	return c
21908}
21909
21910// Context sets the context to be used in this call's Do method. Any
21911// pending HTTP request will be aborted if the provided context is
21912// canceled.
21913func (c *ProjectsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetHistoryCall {
21914	c.ctx_ = ctx
21915	return c
21916}
21917
21918// Header returns an http.Header that can be modified by the caller to
21919// add HTTP headers to the request.
21920func (c *ProjectsAgentEnvironmentsGetHistoryCall) Header() http.Header {
21921	if c.header_ == nil {
21922		c.header_ = make(http.Header)
21923	}
21924	return c.header_
21925}
21926
21927func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
21928	reqHeaders := make(http.Header)
21929	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
21930	for k, v := range c.header_ {
21931		reqHeaders[k] = v
21932	}
21933	reqHeaders.Set("User-Agent", c.s.userAgent())
21934	if c.ifNoneMatch_ != "" {
21935		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21936	}
21937	var body io.Reader = nil
21938	c.urlParams_.Set("alt", alt)
21939	c.urlParams_.Set("prettyPrint", "false")
21940	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
21941	urls += "?" + c.urlParams_.Encode()
21942	req, err := http.NewRequest("GET", urls, body)
21943	if err != nil {
21944		return nil, err
21945	}
21946	req.Header = reqHeaders
21947	googleapi.Expand(req.URL, map[string]string{
21948		"parent": c.parent,
21949	})
21950	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21951}
21952
21953// Do executes the "dialogflow.projects.agent.environments.getHistory" call.
21954// Exactly one of *GoogleCloudDialogflowV2beta1EnvironmentHistory or
21955// error will be non-nil. Any non-2xx status code is an error. Response
21956// headers are in either
21957// *GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header
21958// or (if a response was returned at all) in
21959// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21960// whether the returned error was because http.StatusNotModified was
21961// returned.
21962func (c *ProjectsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
21963	gensupport.SetOptions(c.urlParams_, opts...)
21964	res, err := c.doRequest("json")
21965	if res != nil && res.StatusCode == http.StatusNotModified {
21966		if res.Body != nil {
21967			res.Body.Close()
21968		}
21969		return nil, &googleapi.Error{
21970			Code:   res.StatusCode,
21971			Header: res.Header,
21972		}
21973	}
21974	if err != nil {
21975		return nil, err
21976	}
21977	defer googleapi.CloseBody(res)
21978	if err := googleapi.CheckResponse(res); err != nil {
21979		return nil, err
21980	}
21981	ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
21982		ServerResponse: googleapi.ServerResponse{
21983			Header:         res.Header,
21984			HTTPStatusCode: res.StatusCode,
21985		},
21986	}
21987	target := &ret
21988	if err := gensupport.DecodeResponse(target, res); err != nil {
21989		return nil, err
21990	}
21991	return ret, nil
21992	// {
21993	//   "description": "Gets the history of the specified environment.",
21994	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/history",
21995	//   "httpMethod": "GET",
21996	//   "id": "dialogflow.projects.agent.environments.getHistory",
21997	//   "parameterOrder": [
21998	//     "parent"
21999	//   ],
22000	//   "parameters": {
22001	//     "pageSize": {
22002	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
22003	//       "format": "int32",
22004	//       "location": "query",
22005	//       "type": "integer"
22006	//     },
22007	//     "pageToken": {
22008	//       "description": "Optional. The next_page_token value returned from a previous list request.",
22009	//       "location": "query",
22010	//       "type": "string"
22011	//     },
22012	//     "parent": {
22013	//       "description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
22014	//       "location": "path",
22015	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22016	//       "required": true,
22017	//       "type": "string"
22018	//     }
22019	//   },
22020	//   "path": "v2beta1/{+parent}/history",
22021	//   "response": {
22022	//     "$ref": "GoogleCloudDialogflowV2beta1EnvironmentHistory"
22023	//   },
22024	//   "scopes": [
22025	//     "https://www.googleapis.com/auth/cloud-platform",
22026	//     "https://www.googleapis.com/auth/dialogflow"
22027	//   ]
22028	// }
22029
22030}
22031
22032// Pages invokes f for each page of results.
22033// A non-nil error returned from f will halt the iteration.
22034// The provided context supersedes any context provided to the Context method.
22035func (c *ProjectsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
22036	c.ctx_ = ctx
22037	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
22038	for {
22039		x, err := c.Do()
22040		if err != nil {
22041			return err
22042		}
22043		if err := f(x); err != nil {
22044			return err
22045		}
22046		if x.NextPageToken == "" {
22047			return nil
22048		}
22049		c.PageToken(x.NextPageToken)
22050	}
22051}
22052
22053// method id "dialogflow.projects.agent.environments.list":
22054
22055type ProjectsAgentEnvironmentsListCall struct {
22056	s            *Service
22057	parent       string
22058	urlParams_   gensupport.URLParams
22059	ifNoneMatch_ string
22060	ctx_         context.Context
22061	header_      http.Header
22062}
22063
22064// List: Returns the list of all non-draft environments of the specified
22065// agent.
22066//
22067// - parent: The agent to list all environments from. Format: -
22068//   `projects//agent` - `projects//locations//agent`.
22069func (r *ProjectsAgentEnvironmentsService) List(parent string) *ProjectsAgentEnvironmentsListCall {
22070	c := &ProjectsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22071	c.parent = parent
22072	return c
22073}
22074
22075// PageSize sets the optional parameter "pageSize": The maximum number
22076// of items to return in a single page. By default 100 and at most 1000.
22077func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall {
22078	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22079	return c
22080}
22081
22082// PageToken sets the optional parameter "pageToken": The
22083// next_page_token value returned from a previous list request.
22084func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall {
22085	c.urlParams_.Set("pageToken", pageToken)
22086	return c
22087}
22088
22089// Fields allows partial responses to be retrieved. See
22090// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22091// for more information.
22092func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall {
22093	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22094	return c
22095}
22096
22097// IfNoneMatch sets the optional parameter which makes the operation
22098// fail if the object's ETag matches the given value. This is useful for
22099// getting updates only after the object has changed since the last
22100// request. Use googleapi.IsNotModified to check whether the response
22101// error from Do is the result of In-None-Match.
22102func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall {
22103	c.ifNoneMatch_ = entityTag
22104	return c
22105}
22106
22107// Context sets the context to be used in this call's Do method. Any
22108// pending HTTP request will be aborted if the provided context is
22109// canceled.
22110func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall {
22111	c.ctx_ = ctx
22112	return c
22113}
22114
22115// Header returns an http.Header that can be modified by the caller to
22116// add HTTP headers to the request.
22117func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header {
22118	if c.header_ == nil {
22119		c.header_ = make(http.Header)
22120	}
22121	return c.header_
22122}
22123
22124func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
22125	reqHeaders := make(http.Header)
22126	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
22127	for k, v := range c.header_ {
22128		reqHeaders[k] = v
22129	}
22130	reqHeaders.Set("User-Agent", c.s.userAgent())
22131	if c.ifNoneMatch_ != "" {
22132		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22133	}
22134	var body io.Reader = nil
22135	c.urlParams_.Set("alt", alt)
22136	c.urlParams_.Set("prettyPrint", "false")
22137	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
22138	urls += "?" + c.urlParams_.Encode()
22139	req, err := http.NewRequest("GET", urls, body)
22140	if err != nil {
22141		return nil, err
22142	}
22143	req.Header = reqHeaders
22144	googleapi.Expand(req.URL, map[string]string{
22145		"parent": c.parent,
22146	})
22147	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22148}
22149
22150// Do executes the "dialogflow.projects.agent.environments.list" call.
22151// Exactly one of *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
22152// or error will be non-nil. Any non-2xx status code is an error.
22153// Response headers are in either
22154// *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.H
22155// eader or (if a response was returned at all) in
22156// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22157// whether the returned error was because http.StatusNotModified was
22158// returned.
22159func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
22160	gensupport.SetOptions(c.urlParams_, opts...)
22161	res, err := c.doRequest("json")
22162	if res != nil && res.StatusCode == http.StatusNotModified {
22163		if res.Body != nil {
22164			res.Body.Close()
22165		}
22166		return nil, &googleapi.Error{
22167			Code:   res.StatusCode,
22168			Header: res.Header,
22169		}
22170	}
22171	if err != nil {
22172		return nil, err
22173	}
22174	defer googleapi.CloseBody(res)
22175	if err := googleapi.CheckResponse(res); err != nil {
22176		return nil, err
22177	}
22178	ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
22179		ServerResponse: googleapi.ServerResponse{
22180			Header:         res.Header,
22181			HTTPStatusCode: res.StatusCode,
22182		},
22183	}
22184	target := &ret
22185	if err := gensupport.DecodeResponse(target, res); err != nil {
22186		return nil, err
22187	}
22188	return ret, nil
22189	// {
22190	//   "description": "Returns the list of all non-draft environments of the specified agent.",
22191	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments",
22192	//   "httpMethod": "GET",
22193	//   "id": "dialogflow.projects.agent.environments.list",
22194	//   "parameterOrder": [
22195	//     "parent"
22196	//   ],
22197	//   "parameters": {
22198	//     "pageSize": {
22199	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
22200	//       "format": "int32",
22201	//       "location": "query",
22202	//       "type": "integer"
22203	//     },
22204	//     "pageToken": {
22205	//       "description": "Optional. The next_page_token value returned from a previous list request.",
22206	//       "location": "query",
22207	//       "type": "string"
22208	//     },
22209	//     "parent": {
22210	//       "description": "Required. The agent to list all environments from. Format: - `projects//agent` - `projects//locations//agent`",
22211	//       "location": "path",
22212	//       "pattern": "^projects/[^/]+/agent$",
22213	//       "required": true,
22214	//       "type": "string"
22215	//     }
22216	//   },
22217	//   "path": "v2beta1/{+parent}/environments",
22218	//   "response": {
22219	//     "$ref": "GoogleCloudDialogflowV2beta1ListEnvironmentsResponse"
22220	//   },
22221	//   "scopes": [
22222	//     "https://www.googleapis.com/auth/cloud-platform",
22223	//     "https://www.googleapis.com/auth/dialogflow"
22224	//   ]
22225	// }
22226
22227}
22228
22229// Pages invokes f for each page of results.
22230// A non-nil error returned from f will halt the iteration.
22231// The provided context supersedes any context provided to the Context method.
22232func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
22233	c.ctx_ = ctx
22234	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
22235	for {
22236		x, err := c.Do()
22237		if err != nil {
22238			return err
22239		}
22240		if err := f(x); err != nil {
22241			return err
22242		}
22243		if x.NextPageToken == "" {
22244			return nil
22245		}
22246		c.PageToken(x.NextPageToken)
22247	}
22248}
22249
22250// method id "dialogflow.projects.agent.environments.patch":
22251
22252type ProjectsAgentEnvironmentsPatchCall struct {
22253	s                                       *Service
22254	nameid                                  string
22255	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
22256	urlParams_                              gensupport.URLParams
22257	ctx_                                    context.Context
22258	header_                                 http.Header
22259}
22260
22261// Patch: Updates the specified agent environment. This method allows
22262// you to deploy new agent versions into the environment. When an
22263// environment is pointed to a new agent version by setting
22264// `environment.agent_version`, the environment is temporarily set to
22265// the `LOADING` state. During that time, the environment keeps on
22266// serving the previous version of the agent. After the new agent
22267// version is done loading, the environment is set back to the `RUNNING`
22268// state. You can use "-" as Environment ID in environment name to
22269// update version in "draft" environment. WARNING: this will negate all
22270// recent changes to draft and can't be undone. You may want to save the
22271// draft to a version before calling this function.
22272//
22273// - name: Output only. The unique identifier of this agent environment.
22274//   Supported formats: - `projects//agent/environments/` -
22275//   `projects//locations//agent/environments/`.
22276func (r *ProjectsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsPatchCall {
22277	c := &ProjectsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22278	c.nameid = nameid
22279	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
22280	return c
22281}
22282
22283// AllowLoadToDraftAndDiscardChanges sets the optional parameter
22284// "allowLoadToDraftAndDiscardChanges": This field is used to prevent
22285// accidental overwrite of the draft environment, which is an operation
22286// that cannot be undone. To confirm that the caller desires this
22287// overwrite, this field must be explicitly set to true when updating
22288// the draft environment (environment ID = `-`).
22289func (c *ProjectsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsAgentEnvironmentsPatchCall {
22290	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
22291	return c
22292}
22293
22294// UpdateMask sets the optional parameter "updateMask": Required. The
22295// mask to control which fields get updated.
22296func (c *ProjectsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsPatchCall {
22297	c.urlParams_.Set("updateMask", updateMask)
22298	return c
22299}
22300
22301// Fields allows partial responses to be retrieved. See
22302// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22303// for more information.
22304func (c *ProjectsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsPatchCall {
22305	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22306	return c
22307}
22308
22309// Context sets the context to be used in this call's Do method. Any
22310// pending HTTP request will be aborted if the provided context is
22311// canceled.
22312func (c *ProjectsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsPatchCall {
22313	c.ctx_ = ctx
22314	return c
22315}
22316
22317// Header returns an http.Header that can be modified by the caller to
22318// add HTTP headers to the request.
22319func (c *ProjectsAgentEnvironmentsPatchCall) Header() http.Header {
22320	if c.header_ == nil {
22321		c.header_ = make(http.Header)
22322	}
22323	return c.header_
22324}
22325
22326func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
22327	reqHeaders := make(http.Header)
22328	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
22329	for k, v := range c.header_ {
22330		reqHeaders[k] = v
22331	}
22332	reqHeaders.Set("User-Agent", c.s.userAgent())
22333	var body io.Reader = nil
22334	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
22335	if err != nil {
22336		return nil, err
22337	}
22338	reqHeaders.Set("Content-Type", "application/json")
22339	c.urlParams_.Set("alt", alt)
22340	c.urlParams_.Set("prettyPrint", "false")
22341	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
22342	urls += "?" + c.urlParams_.Encode()
22343	req, err := http.NewRequest("PATCH", urls, body)
22344	if err != nil {
22345		return nil, err
22346	}
22347	req.Header = reqHeaders
22348	googleapi.Expand(req.URL, map[string]string{
22349		"name": c.nameid,
22350	})
22351	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22352}
22353
22354// Do executes the "dialogflow.projects.agent.environments.patch" call.
22355// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
22356// be non-nil. Any non-2xx status code is an error. Response headers are
22357// in either
22358// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
22359// a response was returned at all) in error.(*googleapi.Error).Header.
22360// Use googleapi.IsNotModified to check whether the returned error was
22361// because http.StatusNotModified was returned.
22362func (c *ProjectsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
22363	gensupport.SetOptions(c.urlParams_, opts...)
22364	res, err := c.doRequest("json")
22365	if res != nil && res.StatusCode == http.StatusNotModified {
22366		if res.Body != nil {
22367			res.Body.Close()
22368		}
22369		return nil, &googleapi.Error{
22370			Code:   res.StatusCode,
22371			Header: res.Header,
22372		}
22373	}
22374	if err != nil {
22375		return nil, err
22376	}
22377	defer googleapi.CloseBody(res)
22378	if err := googleapi.CheckResponse(res); err != nil {
22379		return nil, err
22380	}
22381	ret := &GoogleCloudDialogflowV2beta1Environment{
22382		ServerResponse: googleapi.ServerResponse{
22383			Header:         res.Header,
22384			HTTPStatusCode: res.StatusCode,
22385		},
22386	}
22387	target := &ret
22388	if err := gensupport.DecodeResponse(target, res); err != nil {
22389		return nil, err
22390	}
22391	return ret, nil
22392	// {
22393	//   "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.",
22394	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}",
22395	//   "httpMethod": "PATCH",
22396	//   "id": "dialogflow.projects.agent.environments.patch",
22397	//   "parameterOrder": [
22398	//     "name"
22399	//   ],
22400	//   "parameters": {
22401	//     "allowLoadToDraftAndDiscardChanges": {
22402	//       "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 = `-`).",
22403	//       "location": "query",
22404	//       "type": "boolean"
22405	//     },
22406	//     "name": {
22407	//       "description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
22408	//       "location": "path",
22409	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22410	//       "required": true,
22411	//       "type": "string"
22412	//     },
22413	//     "updateMask": {
22414	//       "description": "Required. The mask to control which fields get updated.",
22415	//       "format": "google-fieldmask",
22416	//       "location": "query",
22417	//       "type": "string"
22418	//     }
22419	//   },
22420	//   "path": "v2beta1/{+name}",
22421	//   "request": {
22422	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
22423	//   },
22424	//   "response": {
22425	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
22426	//   },
22427	//   "scopes": [
22428	//     "https://www.googleapis.com/auth/cloud-platform",
22429	//     "https://www.googleapis.com/auth/dialogflow"
22430	//   ]
22431	// }
22432
22433}
22434
22435// method id "dialogflow.projects.agent.environments.intents.list":
22436
22437type ProjectsAgentEnvironmentsIntentsListCall struct {
22438	s            *Service
22439	parent       string
22440	urlParams_   gensupport.URLParams
22441	ifNoneMatch_ string
22442	ctx_         context.Context
22443	header_      http.Header
22444}
22445
22446// List: Returns the list of all intents in the specified agent.
22447//
22448// - parent: The agent to list all intents from. Format:
22449//   `projects//agent`.
22450func (r *ProjectsAgentEnvironmentsIntentsService) List(parent string) *ProjectsAgentEnvironmentsIntentsListCall {
22451	c := &ProjectsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22452	c.parent = parent
22453	return c
22454}
22455
22456// IntentView sets the optional parameter "intentView": The resource
22457// view to apply to the returned intent.
22458//
22459// Possible values:
22460//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
22461// in the response.
22462//   "INTENT_VIEW_FULL" - All fields are populated.
22463func (c *ProjectsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsAgentEnvironmentsIntentsListCall {
22464	c.urlParams_.Set("intentView", intentView)
22465	return c
22466}
22467
22468// LanguageCode sets the optional parameter "languageCode": The language
22469// used to access language-specific data. If not specified, the agent's
22470// default language is used. For more information, see Multilingual
22471// intent and entity data
22472// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
22473func (c *ProjectsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentEnvironmentsIntentsListCall {
22474	c.urlParams_.Set("languageCode", languageCode)
22475	return c
22476}
22477
22478// PageSize sets the optional parameter "pageSize": The maximum number
22479// of items to return in a single page. By default 100 and at most 1000.
22480func (c *ProjectsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsIntentsListCall {
22481	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22482	return c
22483}
22484
22485// PageToken sets the optional parameter "pageToken": The
22486// next_page_token value returned from a previous list request.
22487func (c *ProjectsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsIntentsListCall {
22488	c.urlParams_.Set("pageToken", pageToken)
22489	return c
22490}
22491
22492// Fields allows partial responses to be retrieved. See
22493// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22494// for more information.
22495func (c *ProjectsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsIntentsListCall {
22496	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22497	return c
22498}
22499
22500// IfNoneMatch sets the optional parameter which makes the operation
22501// fail if the object's ETag matches the given value. This is useful for
22502// getting updates only after the object has changed since the last
22503// request. Use googleapi.IsNotModified to check whether the response
22504// error from Do is the result of In-None-Match.
22505func (c *ProjectsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsIntentsListCall {
22506	c.ifNoneMatch_ = entityTag
22507	return c
22508}
22509
22510// Context sets the context to be used in this call's Do method. Any
22511// pending HTTP request will be aborted if the provided context is
22512// canceled.
22513func (c *ProjectsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsIntentsListCall {
22514	c.ctx_ = ctx
22515	return c
22516}
22517
22518// Header returns an http.Header that can be modified by the caller to
22519// add HTTP headers to the request.
22520func (c *ProjectsAgentEnvironmentsIntentsListCall) Header() http.Header {
22521	if c.header_ == nil {
22522		c.header_ = make(http.Header)
22523	}
22524	return c.header_
22525}
22526
22527func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
22528	reqHeaders := make(http.Header)
22529	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
22530	for k, v := range c.header_ {
22531		reqHeaders[k] = v
22532	}
22533	reqHeaders.Set("User-Agent", c.s.userAgent())
22534	if c.ifNoneMatch_ != "" {
22535		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22536	}
22537	var body io.Reader = nil
22538	c.urlParams_.Set("alt", alt)
22539	c.urlParams_.Set("prettyPrint", "false")
22540	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
22541	urls += "?" + c.urlParams_.Encode()
22542	req, err := http.NewRequest("GET", urls, body)
22543	if err != nil {
22544		return nil, err
22545	}
22546	req.Header = reqHeaders
22547	googleapi.Expand(req.URL, map[string]string{
22548		"parent": c.parent,
22549	})
22550	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22551}
22552
22553// Do executes the "dialogflow.projects.agent.environments.intents.list" call.
22554// Exactly one of *GoogleCloudDialogflowV2beta1ListIntentsResponse or
22555// error will be non-nil. Any non-2xx status code is an error. Response
22556// headers are in either
22557// *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header
22558//  or (if a response was returned at all) in
22559// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22560// whether the returned error was because http.StatusNotModified was
22561// returned.
22562func (c *ProjectsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
22563	gensupport.SetOptions(c.urlParams_, opts...)
22564	res, err := c.doRequest("json")
22565	if res != nil && res.StatusCode == http.StatusNotModified {
22566		if res.Body != nil {
22567			res.Body.Close()
22568		}
22569		return nil, &googleapi.Error{
22570			Code:   res.StatusCode,
22571			Header: res.Header,
22572		}
22573	}
22574	if err != nil {
22575		return nil, err
22576	}
22577	defer googleapi.CloseBody(res)
22578	if err := googleapi.CheckResponse(res); err != nil {
22579		return nil, err
22580	}
22581	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
22582		ServerResponse: googleapi.ServerResponse{
22583			Header:         res.Header,
22584			HTTPStatusCode: res.StatusCode,
22585		},
22586	}
22587	target := &ret
22588	if err := gensupport.DecodeResponse(target, res); err != nil {
22589		return nil, err
22590	}
22591	return ret, nil
22592	// {
22593	//   "description": "Returns the list of all intents in the specified agent.",
22594	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/intents",
22595	//   "httpMethod": "GET",
22596	//   "id": "dialogflow.projects.agent.environments.intents.list",
22597	//   "parameterOrder": [
22598	//     "parent"
22599	//   ],
22600	//   "parameters": {
22601	//     "intentView": {
22602	//       "description": "Optional. The resource view to apply to the returned intent.",
22603	//       "enum": [
22604	//         "INTENT_VIEW_UNSPECIFIED",
22605	//         "INTENT_VIEW_FULL"
22606	//       ],
22607	//       "enumDescriptions": [
22608	//         "Training phrases field is not populated in the response.",
22609	//         "All fields are populated."
22610	//       ],
22611	//       "location": "query",
22612	//       "type": "string"
22613	//     },
22614	//     "languageCode": {
22615	//       "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).",
22616	//       "location": "query",
22617	//       "type": "string"
22618	//     },
22619	//     "pageSize": {
22620	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
22621	//       "format": "int32",
22622	//       "location": "query",
22623	//       "type": "integer"
22624	//     },
22625	//     "pageToken": {
22626	//       "description": "Optional. The next_page_token value returned from a previous list request.",
22627	//       "location": "query",
22628	//       "type": "string"
22629	//     },
22630	//     "parent": {
22631	//       "description": "Required. The agent to list all intents from. Format: `projects//agent`.",
22632	//       "location": "path",
22633	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+$",
22634	//       "required": true,
22635	//       "type": "string"
22636	//     }
22637	//   },
22638	//   "path": "v2beta1/{+parent}/intents",
22639	//   "response": {
22640	//     "$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
22641	//   },
22642	//   "scopes": [
22643	//     "https://www.googleapis.com/auth/cloud-platform",
22644	//     "https://www.googleapis.com/auth/dialogflow"
22645	//   ]
22646	// }
22647
22648}
22649
22650// Pages invokes f for each page of results.
22651// A non-nil error returned from f will halt the iteration.
22652// The provided context supersedes any context provided to the Context method.
22653func (c *ProjectsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
22654	c.ctx_ = ctx
22655	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
22656	for {
22657		x, err := c.Do()
22658		if err != nil {
22659			return err
22660		}
22661		if err := f(x); err != nil {
22662			return err
22663		}
22664		if x.NextPageToken == "" {
22665			return nil
22666		}
22667		c.PageToken(x.NextPageToken)
22668	}
22669}
22670
22671// method id "dialogflow.projects.agent.environments.users.sessions.deleteContexts":
22672
22673type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
22674	s          *Service
22675	parent     string
22676	urlParams_ gensupport.URLParams
22677	ctx_       context.Context
22678	header_    http.Header
22679}
22680
22681// DeleteContexts: Deletes all active contexts in the specified session.
22682//
22683// - parent: The name of the session to delete all contexts from.
22684//   Supported formats: - `projects//agent/sessions/, -
22685//   `projects//locations//agent/sessions/`, -
22686//   `projects//agent/environments//users//sessions/`, -
22687//   `projects//locations//agent/environments//users//sessions/`, If
22688//   `Location ID` is not specified we assume default 'us' location. If
22689//   `Environment ID` is not specified we assume default 'draft'
22690//   environment. If `User ID` is not specified, we assume default '-'
22691//   user.
22692func (r *ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22693	c := &ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22694	c.parent = parent
22695	return c
22696}
22697
22698// Fields allows partial responses to be retrieved. See
22699// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22700// for more information.
22701func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22702	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22703	return c
22704}
22705
22706// Context sets the context to be used in this call's Do method. Any
22707// pending HTTP request will be aborted if the provided context is
22708// canceled.
22709func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22710	c.ctx_ = ctx
22711	return c
22712}
22713
22714// Header returns an http.Header that can be modified by the caller to
22715// add HTTP headers to the request.
22716func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
22717	if c.header_ == nil {
22718		c.header_ = make(http.Header)
22719	}
22720	return c.header_
22721}
22722
22723func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
22724	reqHeaders := make(http.Header)
22725	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
22726	for k, v := range c.header_ {
22727		reqHeaders[k] = v
22728	}
22729	reqHeaders.Set("User-Agent", c.s.userAgent())
22730	var body io.Reader = nil
22731	c.urlParams_.Set("alt", alt)
22732	c.urlParams_.Set("prettyPrint", "false")
22733	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
22734	urls += "?" + c.urlParams_.Encode()
22735	req, err := http.NewRequest("DELETE", urls, body)
22736	if err != nil {
22737		return nil, err
22738	}
22739	req.Header = reqHeaders
22740	googleapi.Expand(req.URL, map[string]string{
22741		"parent": c.parent,
22742	})
22743	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22744}
22745
22746// Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call.
22747// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
22748// non-2xx status code is an error. Response headers are in either
22749// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
22750// returned at all) in error.(*googleapi.Error).Header. Use
22751// googleapi.IsNotModified to check whether the returned error was
22752// because http.StatusNotModified was returned.
22753func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22754	gensupport.SetOptions(c.urlParams_, opts...)
22755	res, err := c.doRequest("json")
22756	if res != nil && res.StatusCode == http.StatusNotModified {
22757		if res.Body != nil {
22758			res.Body.Close()
22759		}
22760		return nil, &googleapi.Error{
22761			Code:   res.StatusCode,
22762			Header: res.Header,
22763		}
22764	}
22765	if err != nil {
22766		return nil, err
22767	}
22768	defer googleapi.CloseBody(res)
22769	if err := googleapi.CheckResponse(res); err != nil {
22770		return nil, err
22771	}
22772	ret := &GoogleProtobufEmpty{
22773		ServerResponse: googleapi.ServerResponse{
22774			Header:         res.Header,
22775			HTTPStatusCode: res.StatusCode,
22776		},
22777	}
22778	target := &ret
22779	if err := gensupport.DecodeResponse(target, res); err != nil {
22780		return nil, err
22781	}
22782	return ret, nil
22783	// {
22784	//   "description": "Deletes all active contexts in the specified session.",
22785	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
22786	//   "httpMethod": "DELETE",
22787	//   "id": "dialogflow.projects.agent.environments.users.sessions.deleteContexts",
22788	//   "parameterOrder": [
22789	//     "parent"
22790	//   ],
22791	//   "parameters": {
22792	//     "parent": {
22793	//       "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.",
22794	//       "location": "path",
22795	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
22796	//       "required": true,
22797	//       "type": "string"
22798	//     }
22799	//   },
22800	//   "path": "v2beta1/{+parent}/contexts",
22801	//   "response": {
22802	//     "$ref": "GoogleProtobufEmpty"
22803	//   },
22804	//   "scopes": [
22805	//     "https://www.googleapis.com/auth/cloud-platform",
22806	//     "https://www.googleapis.com/auth/dialogflow"
22807	//   ]
22808	// }
22809
22810}
22811
22812// method id "dialogflow.projects.agent.environments.users.sessions.detectIntent":
22813
22814type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
22815	s                                               *Service
22816	sessionid                                       string
22817	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
22818	urlParams_                                      gensupport.URLParams
22819	ctx_                                            context.Context
22820	header_                                         http.Header
22821}
22822
22823// DetectIntent: Processes a natural language query and returns
22824// structured, actionable data as a result. This method is not
22825// idempotent, because it may cause contexts and session entity types to
22826// be updated, which in turn might affect results of future queries.
22827// Note: Always use agent versions for production traffic. See Versions
22828// and environments
22829// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
22830//
22831// - session: The name of the session this query is sent to. Supported
22832//   formats: - `projects//agent/sessions/, -
22833//   `projects//locations//agent/sessions/`, -
22834//   `projects//agent/environments//users//sessions/`, -
22835//   `projects//locations//agent/environments//users//sessions/`, If
22836//   `Location ID` is not specified we assume default 'us' location. If
22837//   `Environment ID` is not specified, we assume default 'draft'
22838//   environment (`Environment ID` might be referred to as environment
22839//   name at some places). If `User ID` is not specified, we are using
22840//   "-". It's up to the API caller to choose an appropriate `Session
22841//   ID` and `User Id`. They can be a random number or some type of user
22842//   and session identifiers (preferably hashed). The length of the
22843//   `Session ID` and `User ID` must not exceed 36 characters. For more
22844//   information, see the API interactions guide
22845//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
22846//   Always use agent versions for production traffic. See Versions and
22847//   environments
22848//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
22849func (r *ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22850	c := &ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22851	c.sessionid = sessionid
22852	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
22853	return c
22854}
22855
22856// Fields allows partial responses to be retrieved. See
22857// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22858// for more information.
22859func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22860	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22861	return c
22862}
22863
22864// Context sets the context to be used in this call's Do method. Any
22865// pending HTTP request will be aborted if the provided context is
22866// canceled.
22867func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22868	c.ctx_ = ctx
22869	return c
22870}
22871
22872// Header returns an http.Header that can be modified by the caller to
22873// add HTTP headers to the request.
22874func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
22875	if c.header_ == nil {
22876		c.header_ = make(http.Header)
22877	}
22878	return c.header_
22879}
22880
22881func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
22882	reqHeaders := make(http.Header)
22883	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
22884	for k, v := range c.header_ {
22885		reqHeaders[k] = v
22886	}
22887	reqHeaders.Set("User-Agent", c.s.userAgent())
22888	var body io.Reader = nil
22889	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
22890	if err != nil {
22891		return nil, err
22892	}
22893	reqHeaders.Set("Content-Type", "application/json")
22894	c.urlParams_.Set("alt", alt)
22895	c.urlParams_.Set("prettyPrint", "false")
22896	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
22897	urls += "?" + c.urlParams_.Encode()
22898	req, err := http.NewRequest("POST", urls, body)
22899	if err != nil {
22900		return nil, err
22901	}
22902	req.Header = reqHeaders
22903	googleapi.Expand(req.URL, map[string]string{
22904		"session": c.sessionid,
22905	})
22906	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22907}
22908
22909// Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call.
22910// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
22911// error will be non-nil. Any non-2xx status code is an error. Response
22912// headers are in either
22913// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
22914// r or (if a response was returned at all) in
22915// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22916// whether the returned error was because http.StatusNotModified was
22917// returned.
22918func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
22919	gensupport.SetOptions(c.urlParams_, opts...)
22920	res, err := c.doRequest("json")
22921	if res != nil && res.StatusCode == http.StatusNotModified {
22922		if res.Body != nil {
22923			res.Body.Close()
22924		}
22925		return nil, &googleapi.Error{
22926			Code:   res.StatusCode,
22927			Header: res.Header,
22928		}
22929	}
22930	if err != nil {
22931		return nil, err
22932	}
22933	defer googleapi.CloseBody(res)
22934	if err := googleapi.CheckResponse(res); err != nil {
22935		return nil, err
22936	}
22937	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
22938		ServerResponse: googleapi.ServerResponse{
22939			Header:         res.Header,
22940			HTTPStatusCode: res.StatusCode,
22941		},
22942	}
22943	target := &ret
22944	if err := gensupport.DecodeResponse(target, res); err != nil {
22945		return nil, err
22946	}
22947	return ret, nil
22948	// {
22949	//   "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).",
22950	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}:detectIntent",
22951	//   "httpMethod": "POST",
22952	//   "id": "dialogflow.projects.agent.environments.users.sessions.detectIntent",
22953	//   "parameterOrder": [
22954	//     "session"
22955	//   ],
22956	//   "parameters": {
22957	//     "session": {
22958	//       "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).",
22959	//       "location": "path",
22960	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
22961	//       "required": true,
22962	//       "type": "string"
22963	//     }
22964	//   },
22965	//   "path": "v2beta1/{+session}:detectIntent",
22966	//   "request": {
22967	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
22968	//   },
22969	//   "response": {
22970	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
22971	//   },
22972	//   "scopes": [
22973	//     "https://www.googleapis.com/auth/cloud-platform",
22974	//     "https://www.googleapis.com/auth/dialogflow"
22975	//   ]
22976	// }
22977
22978}
22979
22980// method id "dialogflow.projects.agent.environments.users.sessions.contexts.create":
22981
22982type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
22983	s                                   *Service
22984	parent                              string
22985	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
22986	urlParams_                          gensupport.URLParams
22987	ctx_                                context.Context
22988	header_                             http.Header
22989}
22990
22991// Create: Creates a context. If the specified context already exists,
22992// overrides the context.
22993//
22994// - parent: The session to create a context for. Supported formats: -
22995//   `projects//agent/sessions/, -
22996//   `projects//locations//agent/sessions/`, -
22997//   `projects//agent/environments//users//sessions/`, -
22998//   `projects//locations//agent/environments//users//sessions/`, If
22999//   `Location ID` is not specified we assume default 'us' location. If
23000//   `Environment ID` is not specified, we assume default 'draft'
23001//   environment. If `User ID` is not specified, we assume default '-'
23002//   user.
23003func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
23004	c := &ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23005	c.parent = parent
23006	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
23007	return c
23008}
23009
23010// Fields allows partial responses to be retrieved. See
23011// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23012// for more information.
23013func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
23014	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23015	return c
23016}
23017
23018// Context sets the context to be used in this call's Do method. Any
23019// pending HTTP request will be aborted if the provided context is
23020// canceled.
23021func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
23022	c.ctx_ = ctx
23023	return c
23024}
23025
23026// Header returns an http.Header that can be modified by the caller to
23027// add HTTP headers to the request.
23028func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
23029	if c.header_ == nil {
23030		c.header_ = make(http.Header)
23031	}
23032	return c.header_
23033}
23034
23035func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
23036	reqHeaders := make(http.Header)
23037	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
23038	for k, v := range c.header_ {
23039		reqHeaders[k] = v
23040	}
23041	reqHeaders.Set("User-Agent", c.s.userAgent())
23042	var body io.Reader = nil
23043	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
23044	if err != nil {
23045		return nil, err
23046	}
23047	reqHeaders.Set("Content-Type", "application/json")
23048	c.urlParams_.Set("alt", alt)
23049	c.urlParams_.Set("prettyPrint", "false")
23050	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
23051	urls += "?" + c.urlParams_.Encode()
23052	req, err := http.NewRequest("POST", urls, body)
23053	if err != nil {
23054		return nil, err
23055	}
23056	req.Header = reqHeaders
23057	googleapi.Expand(req.URL, map[string]string{
23058		"parent": c.parent,
23059	})
23060	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23061}
23062
23063// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call.
23064// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
23065// non-nil. Any non-2xx status code is an error. Response headers are in
23066// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
23067// (if a response was returned at all) in
23068// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23069// whether the returned error was because http.StatusNotModified was
23070// returned.
23071func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
23072	gensupport.SetOptions(c.urlParams_, opts...)
23073	res, err := c.doRequest("json")
23074	if res != nil && res.StatusCode == http.StatusNotModified {
23075		if res.Body != nil {
23076			res.Body.Close()
23077		}
23078		return nil, &googleapi.Error{
23079			Code:   res.StatusCode,
23080			Header: res.Header,
23081		}
23082	}
23083	if err != nil {
23084		return nil, err
23085	}
23086	defer googleapi.CloseBody(res)
23087	if err := googleapi.CheckResponse(res); err != nil {
23088		return nil, err
23089	}
23090	ret := &GoogleCloudDialogflowV2beta1Context{
23091		ServerResponse: googleapi.ServerResponse{
23092			Header:         res.Header,
23093			HTTPStatusCode: res.StatusCode,
23094		},
23095	}
23096	target := &ret
23097	if err := gensupport.DecodeResponse(target, res); err != nil {
23098		return nil, err
23099	}
23100	return ret, nil
23101	// {
23102	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
23103	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
23104	//   "httpMethod": "POST",
23105	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.create",
23106	//   "parameterOrder": [
23107	//     "parent"
23108	//   ],
23109	//   "parameters": {
23110	//     "parent": {
23111	//       "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.",
23112	//       "location": "path",
23113	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
23114	//       "required": true,
23115	//       "type": "string"
23116	//     }
23117	//   },
23118	//   "path": "v2beta1/{+parent}/contexts",
23119	//   "request": {
23120	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23121	//   },
23122	//   "response": {
23123	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23124	//   },
23125	//   "scopes": [
23126	//     "https://www.googleapis.com/auth/cloud-platform",
23127	//     "https://www.googleapis.com/auth/dialogflow"
23128	//   ]
23129	// }
23130
23131}
23132
23133// method id "dialogflow.projects.agent.environments.users.sessions.contexts.delete":
23134
23135type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
23136	s          *Service
23137	name       string
23138	urlParams_ gensupport.URLParams
23139	ctx_       context.Context
23140	header_    http.Header
23141}
23142
23143// Delete: Deletes the specified context.
23144//
23145// - name: The name of the context to delete. Supported formats: -
23146//   `projects//agent/sessions//contexts/`, -
23147//   `projects//locations//agent/sessions//contexts/`, -
23148//   `projects//agent/environments//users//sessions//contexts/`, -
23149//   `projects//locations//agent/environments//users//sessions//contexts/
23150//   `, If `Location ID` is not specified we assume default 'us'
23151//   location. If `Environment ID` is not specified, we assume default
23152//   'draft' environment. If `User ID` is not specified, we assume
23153//   default '-' user.
23154func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
23155	c := &ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23156	c.name = name
23157	return c
23158}
23159
23160// Fields allows partial responses to be retrieved. See
23161// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23162// for more information.
23163func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
23164	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23165	return c
23166}
23167
23168// Context sets the context to be used in this call's Do method. Any
23169// pending HTTP request will be aborted if the provided context is
23170// canceled.
23171func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
23172	c.ctx_ = ctx
23173	return c
23174}
23175
23176// Header returns an http.Header that can be modified by the caller to
23177// add HTTP headers to the request.
23178func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
23179	if c.header_ == nil {
23180		c.header_ = make(http.Header)
23181	}
23182	return c.header_
23183}
23184
23185func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
23186	reqHeaders := make(http.Header)
23187	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
23188	for k, v := range c.header_ {
23189		reqHeaders[k] = v
23190	}
23191	reqHeaders.Set("User-Agent", c.s.userAgent())
23192	var body io.Reader = nil
23193	c.urlParams_.Set("alt", alt)
23194	c.urlParams_.Set("prettyPrint", "false")
23195	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23196	urls += "?" + c.urlParams_.Encode()
23197	req, err := http.NewRequest("DELETE", urls, body)
23198	if err != nil {
23199		return nil, err
23200	}
23201	req.Header = reqHeaders
23202	googleapi.Expand(req.URL, map[string]string{
23203		"name": c.name,
23204	})
23205	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23206}
23207
23208// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call.
23209// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
23210// non-2xx status code is an error. Response headers are in either
23211// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
23212// returned at all) in error.(*googleapi.Error).Header. Use
23213// googleapi.IsNotModified to check whether the returned error was
23214// because http.StatusNotModified was returned.
23215func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23216	gensupport.SetOptions(c.urlParams_, opts...)
23217	res, err := c.doRequest("json")
23218	if res != nil && res.StatusCode == http.StatusNotModified {
23219		if res.Body != nil {
23220			res.Body.Close()
23221		}
23222		return nil, &googleapi.Error{
23223			Code:   res.StatusCode,
23224			Header: res.Header,
23225		}
23226	}
23227	if err != nil {
23228		return nil, err
23229	}
23230	defer googleapi.CloseBody(res)
23231	if err := googleapi.CheckResponse(res); err != nil {
23232		return nil, err
23233	}
23234	ret := &GoogleProtobufEmpty{
23235		ServerResponse: googleapi.ServerResponse{
23236			Header:         res.Header,
23237			HTTPStatusCode: res.StatusCode,
23238		},
23239	}
23240	target := &ret
23241	if err := gensupport.DecodeResponse(target, res); err != nil {
23242		return nil, err
23243	}
23244	return ret, nil
23245	// {
23246	//   "description": "Deletes the specified context.",
23247	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
23248	//   "httpMethod": "DELETE",
23249	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.delete",
23250	//   "parameterOrder": [
23251	//     "name"
23252	//   ],
23253	//   "parameters": {
23254	//     "name": {
23255	//       "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.",
23256	//       "location": "path",
23257	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
23258	//       "required": true,
23259	//       "type": "string"
23260	//     }
23261	//   },
23262	//   "path": "v2beta1/{+name}",
23263	//   "response": {
23264	//     "$ref": "GoogleProtobufEmpty"
23265	//   },
23266	//   "scopes": [
23267	//     "https://www.googleapis.com/auth/cloud-platform",
23268	//     "https://www.googleapis.com/auth/dialogflow"
23269	//   ]
23270	// }
23271
23272}
23273
23274// method id "dialogflow.projects.agent.environments.users.sessions.contexts.get":
23275
23276type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {
23277	s            *Service
23278	name         string
23279	urlParams_   gensupport.URLParams
23280	ifNoneMatch_ string
23281	ctx_         context.Context
23282	header_      http.Header
23283}
23284
23285// Get: Retrieves the specified context.
23286//
23287// - name: The name of the context. Supported formats: -
23288//   `projects//agent/sessions//contexts/`, -
23289//   `projects//locations//agent/sessions//contexts/`, -
23290//   `projects//agent/environments//users//sessions//contexts/`, -
23291//   `projects//locations//agent/environments//users//sessions//contexts/
23292//   `, If `Location ID` is not specified we assume default 'us'
23293//   location. If `Environment ID` is not specified, we assume default
23294//   'draft' environment. If `User ID` is not specified, we assume
23295//   default '-' user.
23296func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23297	c := &ProjectsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23298	c.name = name
23299	return c
23300}
23301
23302// Fields allows partial responses to be retrieved. See
23303// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23304// for more information.
23305func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23306	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23307	return c
23308}
23309
23310// IfNoneMatch sets the optional parameter which makes the operation
23311// fail if the object's ETag matches the given value. This is useful for
23312// getting updates only after the object has changed since the last
23313// request. Use googleapi.IsNotModified to check whether the response
23314// error from Do is the result of In-None-Match.
23315func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23316	c.ifNoneMatch_ = entityTag
23317	return c
23318}
23319
23320// Context sets the context to be used in this call's Do method. Any
23321// pending HTTP request will be aborted if the provided context is
23322// canceled.
23323func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
23324	c.ctx_ = ctx
23325	return c
23326}
23327
23328// Header returns an http.Header that can be modified by the caller to
23329// add HTTP headers to the request.
23330func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
23331	if c.header_ == nil {
23332		c.header_ = make(http.Header)
23333	}
23334	return c.header_
23335}
23336
23337func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
23338	reqHeaders := make(http.Header)
23339	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
23340	for k, v := range c.header_ {
23341		reqHeaders[k] = v
23342	}
23343	reqHeaders.Set("User-Agent", c.s.userAgent())
23344	if c.ifNoneMatch_ != "" {
23345		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23346	}
23347	var body io.Reader = nil
23348	c.urlParams_.Set("alt", alt)
23349	c.urlParams_.Set("prettyPrint", "false")
23350	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23351	urls += "?" + c.urlParams_.Encode()
23352	req, err := http.NewRequest("GET", urls, body)
23353	if err != nil {
23354		return nil, err
23355	}
23356	req.Header = reqHeaders
23357	googleapi.Expand(req.URL, map[string]string{
23358		"name": c.name,
23359	})
23360	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23361}
23362
23363// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call.
23364// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
23365// non-nil. Any non-2xx status code is an error. Response headers are in
23366// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
23367// (if a response was returned at all) in
23368// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23369// whether the returned error was because http.StatusNotModified was
23370// returned.
23371func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
23372	gensupport.SetOptions(c.urlParams_, opts...)
23373	res, err := c.doRequest("json")
23374	if res != nil && res.StatusCode == http.StatusNotModified {
23375		if res.Body != nil {
23376			res.Body.Close()
23377		}
23378		return nil, &googleapi.Error{
23379			Code:   res.StatusCode,
23380			Header: res.Header,
23381		}
23382	}
23383	if err != nil {
23384		return nil, err
23385	}
23386	defer googleapi.CloseBody(res)
23387	if err := googleapi.CheckResponse(res); err != nil {
23388		return nil, err
23389	}
23390	ret := &GoogleCloudDialogflowV2beta1Context{
23391		ServerResponse: googleapi.ServerResponse{
23392			Header:         res.Header,
23393			HTTPStatusCode: res.StatusCode,
23394		},
23395	}
23396	target := &ret
23397	if err := gensupport.DecodeResponse(target, res); err != nil {
23398		return nil, err
23399	}
23400	return ret, nil
23401	// {
23402	//   "description": "Retrieves the specified context.",
23403	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
23404	//   "httpMethod": "GET",
23405	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.get",
23406	//   "parameterOrder": [
23407	//     "name"
23408	//   ],
23409	//   "parameters": {
23410	//     "name": {
23411	//       "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.",
23412	//       "location": "path",
23413	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
23414	//       "required": true,
23415	//       "type": "string"
23416	//     }
23417	//   },
23418	//   "path": "v2beta1/{+name}",
23419	//   "response": {
23420	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23421	//   },
23422	//   "scopes": [
23423	//     "https://www.googleapis.com/auth/cloud-platform",
23424	//     "https://www.googleapis.com/auth/dialogflow"
23425	//   ]
23426	// }
23427
23428}
23429
23430// method id "dialogflow.projects.agent.environments.users.sessions.contexts.list":
23431
23432type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {
23433	s            *Service
23434	parent       string
23435	urlParams_   gensupport.URLParams
23436	ifNoneMatch_ string
23437	ctx_         context.Context
23438	header_      http.Header
23439}
23440
23441// List: Returns the list of all contexts in the specified session.
23442//
23443// - parent: The session to list all contexts from. Supported formats: -
23444//   `projects//agent/sessions/, -
23445//   `projects//locations//agent/sessions/`, -
23446//   `projects//agent/environments//users//sessions/`, -
23447//   `projects//locations//agent/environments//users//sessions/`, If
23448//   `Location ID` is not specified we assume default 'us' location. If
23449//   `Environment ID` is not specified, we assume default 'draft'
23450//   environment. If `User ID` is not specified, we assume default '-'
23451//   user.
23452func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23453	c := &ProjectsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23454	c.parent = parent
23455	return c
23456}
23457
23458// PageSize sets the optional parameter "pageSize": The maximum number
23459// of items to return in a single page. By default 100 and at most 1000.
23460func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23461	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23462	return c
23463}
23464
23465// PageToken sets the optional parameter "pageToken": The
23466// next_page_token value returned from a previous list request.
23467func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23468	c.urlParams_.Set("pageToken", pageToken)
23469	return c
23470}
23471
23472// Fields allows partial responses to be retrieved. See
23473// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23474// for more information.
23475func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23476	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23477	return c
23478}
23479
23480// IfNoneMatch sets the optional parameter which makes the operation
23481// fail if the object's ETag matches the given value. This is useful for
23482// getting updates only after the object has changed since the last
23483// request. Use googleapi.IsNotModified to check whether the response
23484// error from Do is the result of In-None-Match.
23485func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23486	c.ifNoneMatch_ = entityTag
23487	return c
23488}
23489
23490// Context sets the context to be used in this call's Do method. Any
23491// pending HTTP request will be aborted if the provided context is
23492// canceled.
23493func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23494	c.ctx_ = ctx
23495	return c
23496}
23497
23498// Header returns an http.Header that can be modified by the caller to
23499// add HTTP headers to the request.
23500func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
23501	if c.header_ == nil {
23502		c.header_ = make(http.Header)
23503	}
23504	return c.header_
23505}
23506
23507func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
23508	reqHeaders := make(http.Header)
23509	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
23510	for k, v := range c.header_ {
23511		reqHeaders[k] = v
23512	}
23513	reqHeaders.Set("User-Agent", c.s.userAgent())
23514	if c.ifNoneMatch_ != "" {
23515		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23516	}
23517	var body io.Reader = nil
23518	c.urlParams_.Set("alt", alt)
23519	c.urlParams_.Set("prettyPrint", "false")
23520	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
23521	urls += "?" + c.urlParams_.Encode()
23522	req, err := http.NewRequest("GET", urls, body)
23523	if err != nil {
23524		return nil, err
23525	}
23526	req.Header = reqHeaders
23527	googleapi.Expand(req.URL, map[string]string{
23528		"parent": c.parent,
23529	})
23530	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23531}
23532
23533// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call.
23534// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
23535// error will be non-nil. Any non-2xx status code is an error. Response
23536// headers are in either
23537// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
23538// r or (if a response was returned at all) in
23539// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23540// whether the returned error was because http.StatusNotModified was
23541// returned.
23542func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
23543	gensupport.SetOptions(c.urlParams_, opts...)
23544	res, err := c.doRequest("json")
23545	if res != nil && res.StatusCode == http.StatusNotModified {
23546		if res.Body != nil {
23547			res.Body.Close()
23548		}
23549		return nil, &googleapi.Error{
23550			Code:   res.StatusCode,
23551			Header: res.Header,
23552		}
23553	}
23554	if err != nil {
23555		return nil, err
23556	}
23557	defer googleapi.CloseBody(res)
23558	if err := googleapi.CheckResponse(res); err != nil {
23559		return nil, err
23560	}
23561	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
23562		ServerResponse: googleapi.ServerResponse{
23563			Header:         res.Header,
23564			HTTPStatusCode: res.StatusCode,
23565		},
23566	}
23567	target := &ret
23568	if err := gensupport.DecodeResponse(target, res); err != nil {
23569		return nil, err
23570	}
23571	return ret, nil
23572	// {
23573	//   "description": "Returns the list of all contexts in the specified session.",
23574	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
23575	//   "httpMethod": "GET",
23576	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.list",
23577	//   "parameterOrder": [
23578	//     "parent"
23579	//   ],
23580	//   "parameters": {
23581	//     "pageSize": {
23582	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
23583	//       "format": "int32",
23584	//       "location": "query",
23585	//       "type": "integer"
23586	//     },
23587	//     "pageToken": {
23588	//       "description": "Optional. The next_page_token value returned from a previous list request.",
23589	//       "location": "query",
23590	//       "type": "string"
23591	//     },
23592	//     "parent": {
23593	//       "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.",
23594	//       "location": "path",
23595	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
23596	//       "required": true,
23597	//       "type": "string"
23598	//     }
23599	//   },
23600	//   "path": "v2beta1/{+parent}/contexts",
23601	//   "response": {
23602	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
23603	//   },
23604	//   "scopes": [
23605	//     "https://www.googleapis.com/auth/cloud-platform",
23606	//     "https://www.googleapis.com/auth/dialogflow"
23607	//   ]
23608	// }
23609
23610}
23611
23612// Pages invokes f for each page of results.
23613// A non-nil error returned from f will halt the iteration.
23614// The provided context supersedes any context provided to the Context method.
23615func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
23616	c.ctx_ = ctx
23617	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
23618	for {
23619		x, err := c.Do()
23620		if err != nil {
23621			return err
23622		}
23623		if err := f(x); err != nil {
23624			return err
23625		}
23626		if x.NextPageToken == "" {
23627			return nil
23628		}
23629		c.PageToken(x.NextPageToken)
23630	}
23631}
23632
23633// method id "dialogflow.projects.agent.environments.users.sessions.contexts.patch":
23634
23635type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
23636	s                                   *Service
23637	nameid                              string
23638	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
23639	urlParams_                          gensupport.URLParams
23640	ctx_                                context.Context
23641	header_                             http.Header
23642}
23643
23644// Patch: Updates the specified context.
23645//
23646// - name: The unique identifier of the context. Supported formats: -
23647//   `projects//agent/sessions//contexts/`, -
23648//   `projects//locations//agent/sessions//contexts/`, -
23649//   `projects//agent/environments//users//sessions//contexts/`, -
23650//   `projects//locations//agent/environments//users//sessions//contexts/
23651//   `, The `Context ID` is always converted to lowercase, may only
23652//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
23653//   long. If `Environment ID` is not specified, we assume default
23654//   'draft' environment. If `User ID` is not specified, we assume
23655//   default '-' user. The following context names are reserved for
23656//   internal use by Dialogflow. You should not use these contexts or
23657//   create contexts with these names: * `__system_counters__` *
23658//   `*_id_dialog_context` * `*_dialog_params_size`.
23659func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23660	c := &ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23661	c.nameid = nameid
23662	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
23663	return c
23664}
23665
23666// UpdateMask sets the optional parameter "updateMask": The mask to
23667// control which fields get updated.
23668func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23669	c.urlParams_.Set("updateMask", updateMask)
23670	return c
23671}
23672
23673// Fields allows partial responses to be retrieved. See
23674// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23675// for more information.
23676func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23677	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23678	return c
23679}
23680
23681// Context sets the context to be used in this call's Do method. Any
23682// pending HTTP request will be aborted if the provided context is
23683// canceled.
23684func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23685	c.ctx_ = ctx
23686	return c
23687}
23688
23689// Header returns an http.Header that can be modified by the caller to
23690// add HTTP headers to the request.
23691func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
23692	if c.header_ == nil {
23693		c.header_ = make(http.Header)
23694	}
23695	return c.header_
23696}
23697
23698func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
23699	reqHeaders := make(http.Header)
23700	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
23701	for k, v := range c.header_ {
23702		reqHeaders[k] = v
23703	}
23704	reqHeaders.Set("User-Agent", c.s.userAgent())
23705	var body io.Reader = nil
23706	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
23707	if err != nil {
23708		return nil, err
23709	}
23710	reqHeaders.Set("Content-Type", "application/json")
23711	c.urlParams_.Set("alt", alt)
23712	c.urlParams_.Set("prettyPrint", "false")
23713	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23714	urls += "?" + c.urlParams_.Encode()
23715	req, err := http.NewRequest("PATCH", urls, body)
23716	if err != nil {
23717		return nil, err
23718	}
23719	req.Header = reqHeaders
23720	googleapi.Expand(req.URL, map[string]string{
23721		"name": c.nameid,
23722	})
23723	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23724}
23725
23726// Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call.
23727// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
23728// non-nil. Any non-2xx status code is an error. Response headers are in
23729// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
23730// (if a response was returned at all) in
23731// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23732// whether the returned error was because http.StatusNotModified was
23733// returned.
23734func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
23735	gensupport.SetOptions(c.urlParams_, opts...)
23736	res, err := c.doRequest("json")
23737	if res != nil && res.StatusCode == http.StatusNotModified {
23738		if res.Body != nil {
23739			res.Body.Close()
23740		}
23741		return nil, &googleapi.Error{
23742			Code:   res.StatusCode,
23743			Header: res.Header,
23744		}
23745	}
23746	if err != nil {
23747		return nil, err
23748	}
23749	defer googleapi.CloseBody(res)
23750	if err := googleapi.CheckResponse(res); err != nil {
23751		return nil, err
23752	}
23753	ret := &GoogleCloudDialogflowV2beta1Context{
23754		ServerResponse: googleapi.ServerResponse{
23755			Header:         res.Header,
23756			HTTPStatusCode: res.StatusCode,
23757		},
23758	}
23759	target := &ret
23760	if err := gensupport.DecodeResponse(target, res); err != nil {
23761		return nil, err
23762	}
23763	return ret, nil
23764	// {
23765	//   "description": "Updates the specified context.",
23766	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
23767	//   "httpMethod": "PATCH",
23768	//   "id": "dialogflow.projects.agent.environments.users.sessions.contexts.patch",
23769	//   "parameterOrder": [
23770	//     "name"
23771	//   ],
23772	//   "parameters": {
23773	//     "name": {
23774	//       "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`",
23775	//       "location": "path",
23776	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
23777	//       "required": true,
23778	//       "type": "string"
23779	//     },
23780	//     "updateMask": {
23781	//       "description": "Optional. The mask to control which fields get updated.",
23782	//       "format": "google-fieldmask",
23783	//       "location": "query",
23784	//       "type": "string"
23785	//     }
23786	//   },
23787	//   "path": "v2beta1/{+name}",
23788	//   "request": {
23789	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23790	//   },
23791	//   "response": {
23792	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
23793	//   },
23794	//   "scopes": [
23795	//     "https://www.googleapis.com/auth/cloud-platform",
23796	//     "https://www.googleapis.com/auth/dialogflow"
23797	//   ]
23798	// }
23799
23800}
23801
23802// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.create":
23803
23804type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
23805	s                                             *Service
23806	parent                                        string
23807	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
23808	urlParams_                                    gensupport.URLParams
23809	ctx_                                          context.Context
23810	header_                                       http.Header
23811}
23812
23813// Create: Creates a session entity type. If the specified session
23814// entity type already exists, overrides the session entity type. This
23815// method doesn't work with Google Assistant integration. Contact
23816// Dialogflow support if you need to use session entities with Google
23817// Assistant integration.
23818//
23819// - parent: The session to create a session entity type for. Supported
23820//   formats: - `projects//agent/sessions/, -
23821//   `projects//locations//agent/sessions/`, -
23822//   `projects//agent/environments//users//sessions/`, -
23823//   `projects//locations//agent/environments//users//sessions/`, If
23824//   `Location ID` is not specified we assume default 'us' location. If
23825//   `Environment ID` is not specified, we assume default 'draft'
23826//   environment. If `User ID` is not specified, we assume default '-'
23827//   user.
23828func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23829	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23830	c.parent = parent
23831	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
23832	return c
23833}
23834
23835// Fields allows partial responses to be retrieved. See
23836// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23837// for more information.
23838func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23839	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23840	return c
23841}
23842
23843// Context sets the context to be used in this call's Do method. Any
23844// pending HTTP request will be aborted if the provided context is
23845// canceled.
23846func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23847	c.ctx_ = ctx
23848	return c
23849}
23850
23851// Header returns an http.Header that can be modified by the caller to
23852// add HTTP headers to the request.
23853func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
23854	if c.header_ == nil {
23855		c.header_ = make(http.Header)
23856	}
23857	return c.header_
23858}
23859
23860func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
23861	reqHeaders := make(http.Header)
23862	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
23863	for k, v := range c.header_ {
23864		reqHeaders[k] = v
23865	}
23866	reqHeaders.Set("User-Agent", c.s.userAgent())
23867	var body io.Reader = nil
23868	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
23869	if err != nil {
23870		return nil, err
23871	}
23872	reqHeaders.Set("Content-Type", "application/json")
23873	c.urlParams_.Set("alt", alt)
23874	c.urlParams_.Set("prettyPrint", "false")
23875	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
23876	urls += "?" + c.urlParams_.Encode()
23877	req, err := http.NewRequest("POST", urls, body)
23878	if err != nil {
23879		return nil, err
23880	}
23881	req.Header = reqHeaders
23882	googleapi.Expand(req.URL, map[string]string{
23883		"parent": c.parent,
23884	})
23885	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23886}
23887
23888// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call.
23889// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
23890// error will be non-nil. Any non-2xx status code is an error. Response
23891// headers are in either
23892// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
23893// or (if a response was returned at all) in
23894// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23895// whether the returned error was because http.StatusNotModified was
23896// returned.
23897func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
23898	gensupport.SetOptions(c.urlParams_, opts...)
23899	res, err := c.doRequest("json")
23900	if res != nil && res.StatusCode == http.StatusNotModified {
23901		if res.Body != nil {
23902			res.Body.Close()
23903		}
23904		return nil, &googleapi.Error{
23905			Code:   res.StatusCode,
23906			Header: res.Header,
23907		}
23908	}
23909	if err != nil {
23910		return nil, err
23911	}
23912	defer googleapi.CloseBody(res)
23913	if err := googleapi.CheckResponse(res); err != nil {
23914		return nil, err
23915	}
23916	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
23917		ServerResponse: googleapi.ServerResponse{
23918			Header:         res.Header,
23919			HTTPStatusCode: res.StatusCode,
23920		},
23921	}
23922	target := &ret
23923	if err := gensupport.DecodeResponse(target, res); err != nil {
23924		return nil, err
23925	}
23926	return ret, nil
23927	// {
23928	//   "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.",
23929	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
23930	//   "httpMethod": "POST",
23931	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.create",
23932	//   "parameterOrder": [
23933	//     "parent"
23934	//   ],
23935	//   "parameters": {
23936	//     "parent": {
23937	//       "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.",
23938	//       "location": "path",
23939	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
23940	//       "required": true,
23941	//       "type": "string"
23942	//     }
23943	//   },
23944	//   "path": "v2beta1/{+parent}/entityTypes",
23945	//   "request": {
23946	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
23947	//   },
23948	//   "response": {
23949	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
23950	//   },
23951	//   "scopes": [
23952	//     "https://www.googleapis.com/auth/cloud-platform",
23953	//     "https://www.googleapis.com/auth/dialogflow"
23954	//   ]
23955	// }
23956
23957}
23958
23959// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete":
23960
23961type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
23962	s          *Service
23963	name       string
23964	urlParams_ gensupport.URLParams
23965	ctx_       context.Context
23966	header_    http.Header
23967}
23968
23969// Delete: Deletes the specified session entity type. This method
23970// doesn't work with Google Assistant integration. Contact Dialogflow
23971// support if you need to use session entities with Google Assistant
23972// integration.
23973//
23974// - name: The name of the entity type to delete. Supported formats: -
23975//   `projects//agent/sessions//entityTypes/` -
23976//   `projects//locations//agent/sessions//entityTypes/` -
23977//   `projects//agent/environments//users//sessions//entityTypes/` -
23978//   `projects//locations//agent/environments/
23979//   /users//sessions//entityTypes/` If `Location ID` is not specified
23980//   we assume default 'us' location. If `Environment ID` is not
23981//   specified, we assume default 'draft' environment. If `User ID` is
23982//   not specified, we assume default '-' user.
23983func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23984	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23985	c.name = name
23986	return c
23987}
23988
23989// Fields allows partial responses to be retrieved. See
23990// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23991// for more information.
23992func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23993	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23994	return c
23995}
23996
23997// Context sets the context to be used in this call's Do method. Any
23998// pending HTTP request will be aborted if the provided context is
23999// canceled.
24000func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
24001	c.ctx_ = ctx
24002	return c
24003}
24004
24005// Header returns an http.Header that can be modified by the caller to
24006// add HTTP headers to the request.
24007func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
24008	if c.header_ == nil {
24009		c.header_ = make(http.Header)
24010	}
24011	return c.header_
24012}
24013
24014func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
24015	reqHeaders := make(http.Header)
24016	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
24017	for k, v := range c.header_ {
24018		reqHeaders[k] = v
24019	}
24020	reqHeaders.Set("User-Agent", c.s.userAgent())
24021	var body io.Reader = nil
24022	c.urlParams_.Set("alt", alt)
24023	c.urlParams_.Set("prettyPrint", "false")
24024	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24025	urls += "?" + c.urlParams_.Encode()
24026	req, err := http.NewRequest("DELETE", urls, body)
24027	if err != nil {
24028		return nil, err
24029	}
24030	req.Header = reqHeaders
24031	googleapi.Expand(req.URL, map[string]string{
24032		"name": c.name,
24033	})
24034	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24035}
24036
24037// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call.
24038// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
24039// non-2xx status code is an error. Response headers are in either
24040// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
24041// returned at all) in error.(*googleapi.Error).Header. Use
24042// googleapi.IsNotModified to check whether the returned error was
24043// because http.StatusNotModified was returned.
24044func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24045	gensupport.SetOptions(c.urlParams_, opts...)
24046	res, err := c.doRequest("json")
24047	if res != nil && res.StatusCode == http.StatusNotModified {
24048		if res.Body != nil {
24049			res.Body.Close()
24050		}
24051		return nil, &googleapi.Error{
24052			Code:   res.StatusCode,
24053			Header: res.Header,
24054		}
24055	}
24056	if err != nil {
24057		return nil, err
24058	}
24059	defer googleapi.CloseBody(res)
24060	if err := googleapi.CheckResponse(res); err != nil {
24061		return nil, err
24062	}
24063	ret := &GoogleProtobufEmpty{
24064		ServerResponse: googleapi.ServerResponse{
24065			Header:         res.Header,
24066			HTTPStatusCode: res.StatusCode,
24067		},
24068	}
24069	target := &ret
24070	if err := gensupport.DecodeResponse(target, res); err != nil {
24071		return nil, err
24072	}
24073	return ret, nil
24074	// {
24075	//   "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.",
24076	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
24077	//   "httpMethod": "DELETE",
24078	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete",
24079	//   "parameterOrder": [
24080	//     "name"
24081	//   ],
24082	//   "parameters": {
24083	//     "name": {
24084	//       "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.",
24085	//       "location": "path",
24086	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
24087	//       "required": true,
24088	//       "type": "string"
24089	//     }
24090	//   },
24091	//   "path": "v2beta1/{+name}",
24092	//   "response": {
24093	//     "$ref": "GoogleProtobufEmpty"
24094	//   },
24095	//   "scopes": [
24096	//     "https://www.googleapis.com/auth/cloud-platform",
24097	//     "https://www.googleapis.com/auth/dialogflow"
24098	//   ]
24099	// }
24100
24101}
24102
24103// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.get":
24104
24105type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
24106	s            *Service
24107	name         string
24108	urlParams_   gensupport.URLParams
24109	ifNoneMatch_ string
24110	ctx_         context.Context
24111	header_      http.Header
24112}
24113
24114// Get: Retrieves the specified session entity type. This method doesn't
24115// work with Google Assistant integration. Contact Dialogflow support if
24116// you need to use session entities with Google Assistant integration.
24117//
24118// - name: The name of the session entity type. Supported formats: -
24119//   `projects//agent/sessions//entityTypes/` -
24120//   `projects//locations//agent/sessions//entityTypes/` -
24121//   `projects//agent/environments//users//sessions//entityTypes/` -
24122//   `projects//locations//agent/environments/
24123//   /users//sessions//entityTypes/` If `Location ID` is not specified
24124//   we assume default 'us' location. If `Environment ID` is not
24125//   specified, we assume default 'draft' environment. If `User ID` is
24126//   not specified, we assume default '-' user.
24127func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24128	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24129	c.name = name
24130	return c
24131}
24132
24133// Fields allows partial responses to be retrieved. See
24134// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24135// for more information.
24136func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24137	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24138	return c
24139}
24140
24141// IfNoneMatch sets the optional parameter which makes the operation
24142// fail if the object's ETag matches the given value. This is useful for
24143// getting updates only after the object has changed since the last
24144// request. Use googleapi.IsNotModified to check whether the response
24145// error from Do is the result of In-None-Match.
24146func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24147	c.ifNoneMatch_ = entityTag
24148	return c
24149}
24150
24151// Context sets the context to be used in this call's Do method. Any
24152// pending HTTP request will be aborted if the provided context is
24153// canceled.
24154func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
24155	c.ctx_ = ctx
24156	return c
24157}
24158
24159// Header returns an http.Header that can be modified by the caller to
24160// add HTTP headers to the request.
24161func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
24162	if c.header_ == nil {
24163		c.header_ = make(http.Header)
24164	}
24165	return c.header_
24166}
24167
24168func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
24169	reqHeaders := make(http.Header)
24170	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
24171	for k, v := range c.header_ {
24172		reqHeaders[k] = v
24173	}
24174	reqHeaders.Set("User-Agent", c.s.userAgent())
24175	if c.ifNoneMatch_ != "" {
24176		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24177	}
24178	var body io.Reader = nil
24179	c.urlParams_.Set("alt", alt)
24180	c.urlParams_.Set("prettyPrint", "false")
24181	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24182	urls += "?" + c.urlParams_.Encode()
24183	req, err := http.NewRequest("GET", urls, body)
24184	if err != nil {
24185		return nil, err
24186	}
24187	req.Header = reqHeaders
24188	googleapi.Expand(req.URL, map[string]string{
24189		"name": c.name,
24190	})
24191	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24192}
24193
24194// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call.
24195// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
24196// error will be non-nil. Any non-2xx status code is an error. Response
24197// headers are in either
24198// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
24199// or (if a response was returned at all) in
24200// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24201// whether the returned error was because http.StatusNotModified was
24202// returned.
24203func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
24204	gensupport.SetOptions(c.urlParams_, opts...)
24205	res, err := c.doRequest("json")
24206	if res != nil && res.StatusCode == http.StatusNotModified {
24207		if res.Body != nil {
24208			res.Body.Close()
24209		}
24210		return nil, &googleapi.Error{
24211			Code:   res.StatusCode,
24212			Header: res.Header,
24213		}
24214	}
24215	if err != nil {
24216		return nil, err
24217	}
24218	defer googleapi.CloseBody(res)
24219	if err := googleapi.CheckResponse(res); err != nil {
24220		return nil, err
24221	}
24222	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
24223		ServerResponse: googleapi.ServerResponse{
24224			Header:         res.Header,
24225			HTTPStatusCode: res.StatusCode,
24226		},
24227	}
24228	target := &ret
24229	if err := gensupport.DecodeResponse(target, res); err != nil {
24230		return nil, err
24231	}
24232	return ret, nil
24233	// {
24234	//   "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.",
24235	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
24236	//   "httpMethod": "GET",
24237	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.get",
24238	//   "parameterOrder": [
24239	//     "name"
24240	//   ],
24241	//   "parameters": {
24242	//     "name": {
24243	//       "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.",
24244	//       "location": "path",
24245	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
24246	//       "required": true,
24247	//       "type": "string"
24248	//     }
24249	//   },
24250	//   "path": "v2beta1/{+name}",
24251	//   "response": {
24252	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24253	//   },
24254	//   "scopes": [
24255	//     "https://www.googleapis.com/auth/cloud-platform",
24256	//     "https://www.googleapis.com/auth/dialogflow"
24257	//   ]
24258	// }
24259
24260}
24261
24262// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.list":
24263
24264type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
24265	s            *Service
24266	parent       string
24267	urlParams_   gensupport.URLParams
24268	ifNoneMatch_ string
24269	ctx_         context.Context
24270	header_      http.Header
24271}
24272
24273// List: Returns the list of all session entity types in the specified
24274// session. This method doesn't work with Google Assistant integration.
24275// Contact Dialogflow support if you need to use session entities with
24276// Google Assistant integration.
24277//
24278// - parent: The session to list all session entity types from.
24279//   Supported formats: - `projects//agent/sessions/, -
24280//   `projects//locations//agent/sessions/`, -
24281//   `projects//agent/environments//users//sessions/`, -
24282//   `projects//locations//agent/environments//users//sessions/`, If
24283//   `Location ID` is not specified we assume default 'us' location. If
24284//   `Environment ID` is not specified, we assume default 'draft'
24285//   environment. If `User ID` is not specified, we assume default '-'
24286//   user.
24287func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24288	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24289	c.parent = parent
24290	return c
24291}
24292
24293// PageSize sets the optional parameter "pageSize": The maximum number
24294// of items to return in a single page. By default 100 and at most 1000.
24295func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24296	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24297	return c
24298}
24299
24300// PageToken sets the optional parameter "pageToken": The
24301// next_page_token value returned from a previous list request.
24302func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24303	c.urlParams_.Set("pageToken", pageToken)
24304	return c
24305}
24306
24307// Fields allows partial responses to be retrieved. See
24308// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24309// for more information.
24310func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24311	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24312	return c
24313}
24314
24315// IfNoneMatch sets the optional parameter which makes the operation
24316// fail if the object's ETag matches the given value. This is useful for
24317// getting updates only after the object has changed since the last
24318// request. Use googleapi.IsNotModified to check whether the response
24319// error from Do is the result of In-None-Match.
24320func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24321	c.ifNoneMatch_ = entityTag
24322	return c
24323}
24324
24325// Context sets the context to be used in this call's Do method. Any
24326// pending HTTP request will be aborted if the provided context is
24327// canceled.
24328func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
24329	c.ctx_ = ctx
24330	return c
24331}
24332
24333// Header returns an http.Header that can be modified by the caller to
24334// add HTTP headers to the request.
24335func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
24336	if c.header_ == nil {
24337		c.header_ = make(http.Header)
24338	}
24339	return c.header_
24340}
24341
24342func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
24343	reqHeaders := make(http.Header)
24344	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
24345	for k, v := range c.header_ {
24346		reqHeaders[k] = v
24347	}
24348	reqHeaders.Set("User-Agent", c.s.userAgent())
24349	if c.ifNoneMatch_ != "" {
24350		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24351	}
24352	var body io.Reader = nil
24353	c.urlParams_.Set("alt", alt)
24354	c.urlParams_.Set("prettyPrint", "false")
24355	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
24356	urls += "?" + c.urlParams_.Encode()
24357	req, err := http.NewRequest("GET", urls, body)
24358	if err != nil {
24359		return nil, err
24360	}
24361	req.Header = reqHeaders
24362	googleapi.Expand(req.URL, map[string]string{
24363		"parent": c.parent,
24364	})
24365	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24366}
24367
24368// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call.
24369// Exactly one of
24370// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
24371// will be non-nil. Any non-2xx status code is an error. Response
24372// headers are in either
24373// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
24374// onse.Header or (if a response was returned at all) in
24375// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24376// whether the returned error was because http.StatusNotModified was
24377// returned.
24378func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
24379	gensupport.SetOptions(c.urlParams_, opts...)
24380	res, err := c.doRequest("json")
24381	if res != nil && res.StatusCode == http.StatusNotModified {
24382		if res.Body != nil {
24383			res.Body.Close()
24384		}
24385		return nil, &googleapi.Error{
24386			Code:   res.StatusCode,
24387			Header: res.Header,
24388		}
24389	}
24390	if err != nil {
24391		return nil, err
24392	}
24393	defer googleapi.CloseBody(res)
24394	if err := googleapi.CheckResponse(res); err != nil {
24395		return nil, err
24396	}
24397	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
24398		ServerResponse: googleapi.ServerResponse{
24399			Header:         res.Header,
24400			HTTPStatusCode: res.StatusCode,
24401		},
24402	}
24403	target := &ret
24404	if err := gensupport.DecodeResponse(target, res); err != nil {
24405		return nil, err
24406	}
24407	return ret, nil
24408	// {
24409	//   "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.",
24410	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
24411	//   "httpMethod": "GET",
24412	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.list",
24413	//   "parameterOrder": [
24414	//     "parent"
24415	//   ],
24416	//   "parameters": {
24417	//     "pageSize": {
24418	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
24419	//       "format": "int32",
24420	//       "location": "query",
24421	//       "type": "integer"
24422	//     },
24423	//     "pageToken": {
24424	//       "description": "Optional. The next_page_token value returned from a previous list request.",
24425	//       "location": "query",
24426	//       "type": "string"
24427	//     },
24428	//     "parent": {
24429	//       "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.",
24430	//       "location": "path",
24431	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
24432	//       "required": true,
24433	//       "type": "string"
24434	//     }
24435	//   },
24436	//   "path": "v2beta1/{+parent}/entityTypes",
24437	//   "response": {
24438	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
24439	//   },
24440	//   "scopes": [
24441	//     "https://www.googleapis.com/auth/cloud-platform",
24442	//     "https://www.googleapis.com/auth/dialogflow"
24443	//   ]
24444	// }
24445
24446}
24447
24448// Pages invokes f for each page of results.
24449// A non-nil error returned from f will halt the iteration.
24450// The provided context supersedes any context provided to the Context method.
24451func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
24452	c.ctx_ = ctx
24453	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
24454	for {
24455		x, err := c.Do()
24456		if err != nil {
24457			return err
24458		}
24459		if err := f(x); err != nil {
24460			return err
24461		}
24462		if x.NextPageToken == "" {
24463			return nil
24464		}
24465		c.PageToken(x.NextPageToken)
24466	}
24467}
24468
24469// method id "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch":
24470
24471type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
24472	s                                             *Service
24473	nameid                                        string
24474	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
24475	urlParams_                                    gensupport.URLParams
24476	ctx_                                          context.Context
24477	header_                                       http.Header
24478}
24479
24480// Patch: Updates the specified session entity type. This method doesn't
24481// work with Google Assistant integration. Contact Dialogflow support if
24482// you need to use session entities with Google Assistant integration.
24483//
24484// - name: The unique identifier of this session entity type. Supported
24485//   formats: - `projects//agent/sessions//entityTypes/` -
24486//   `projects//locations//agent/sessions//entityTypes/` -
24487//   `projects//agent/environments//users//sessions//entityTypes/` -
24488//   `projects//locations//agent/environments/
24489//   /users//sessions//entityTypes/` If `Location ID` is not specified
24490//   we assume default 'us' location. If `Environment ID` is not
24491//   specified, we assume default 'draft' environment. If `User ID` is
24492//   not specified, we assume default '-' user. `` must be the display
24493//   name of an existing entity type in the same agent that will be
24494//   overridden or supplemented.
24495func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24496	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24497	c.nameid = nameid
24498	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
24499	return c
24500}
24501
24502// UpdateMask sets the optional parameter "updateMask": The mask to
24503// control which fields get updated.
24504func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24505	c.urlParams_.Set("updateMask", updateMask)
24506	return c
24507}
24508
24509// Fields allows partial responses to be retrieved. See
24510// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24511// for more information.
24512func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24513	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24514	return c
24515}
24516
24517// Context sets the context to be used in this call's Do method. Any
24518// pending HTTP request will be aborted if the provided context is
24519// canceled.
24520func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
24521	c.ctx_ = ctx
24522	return c
24523}
24524
24525// Header returns an http.Header that can be modified by the caller to
24526// add HTTP headers to the request.
24527func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
24528	if c.header_ == nil {
24529		c.header_ = make(http.Header)
24530	}
24531	return c.header_
24532}
24533
24534func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
24535	reqHeaders := make(http.Header)
24536	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
24537	for k, v := range c.header_ {
24538		reqHeaders[k] = v
24539	}
24540	reqHeaders.Set("User-Agent", c.s.userAgent())
24541	var body io.Reader = nil
24542	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
24543	if err != nil {
24544		return nil, err
24545	}
24546	reqHeaders.Set("Content-Type", "application/json")
24547	c.urlParams_.Set("alt", alt)
24548	c.urlParams_.Set("prettyPrint", "false")
24549	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24550	urls += "?" + c.urlParams_.Encode()
24551	req, err := http.NewRequest("PATCH", urls, body)
24552	if err != nil {
24553		return nil, err
24554	}
24555	req.Header = reqHeaders
24556	googleapi.Expand(req.URL, map[string]string{
24557		"name": c.nameid,
24558	})
24559	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24560}
24561
24562// Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call.
24563// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
24564// error will be non-nil. Any non-2xx status code is an error. Response
24565// headers are in either
24566// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
24567// or (if a response was returned at all) in
24568// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24569// whether the returned error was because http.StatusNotModified was
24570// returned.
24571func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
24572	gensupport.SetOptions(c.urlParams_, opts...)
24573	res, err := c.doRequest("json")
24574	if res != nil && res.StatusCode == http.StatusNotModified {
24575		if res.Body != nil {
24576			res.Body.Close()
24577		}
24578		return nil, &googleapi.Error{
24579			Code:   res.StatusCode,
24580			Header: res.Header,
24581		}
24582	}
24583	if err != nil {
24584		return nil, err
24585	}
24586	defer googleapi.CloseBody(res)
24587	if err := googleapi.CheckResponse(res); err != nil {
24588		return nil, err
24589	}
24590	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
24591		ServerResponse: googleapi.ServerResponse{
24592			Header:         res.Header,
24593			HTTPStatusCode: res.StatusCode,
24594		},
24595	}
24596	target := &ret
24597	if err := gensupport.DecodeResponse(target, res); err != nil {
24598		return nil, err
24599	}
24600	return ret, nil
24601	// {
24602	//   "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.",
24603	//   "flatPath": "v2beta1/projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
24604	//   "httpMethod": "PATCH",
24605	//   "id": "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch",
24606	//   "parameterOrder": [
24607	//     "name"
24608	//   ],
24609	//   "parameters": {
24610	//     "name": {
24611	//       "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.",
24612	//       "location": "path",
24613	//       "pattern": "^projects/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
24614	//       "required": true,
24615	//       "type": "string"
24616	//     },
24617	//     "updateMask": {
24618	//       "description": "Optional. The mask to control which fields get updated.",
24619	//       "format": "google-fieldmask",
24620	//       "location": "query",
24621	//       "type": "string"
24622	//     }
24623	//   },
24624	//   "path": "v2beta1/{+name}",
24625	//   "request": {
24626	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24627	//   },
24628	//   "response": {
24629	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
24630	//   },
24631	//   "scopes": [
24632	//     "https://www.googleapis.com/auth/cloud-platform",
24633	//     "https://www.googleapis.com/auth/dialogflow"
24634	//   ]
24635	// }
24636
24637}
24638
24639// method id "dialogflow.projects.agent.intents.batchDelete":
24640
24641type ProjectsAgentIntentsBatchDeleteCall struct {
24642	s                                                     *Service
24643	parent                                                string
24644	googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
24645	urlParams_                                            gensupport.URLParams
24646	ctx_                                                  context.Context
24647	header_                                               http.Header
24648}
24649
24650// BatchDelete: Deletes intents in the specified agent. Operation
24651//
24652// - parent: The name of the agent to delete all entities types for.
24653//   Supported formats: - `projects//agent` -
24654//   `projects//locations//agent`.
24655func (r *ProjectsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall {
24656	c := &ProjectsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24657	c.parent = parent
24658	c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
24659	return c
24660}
24661
24662// Fields allows partial responses to be retrieved. See
24663// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24664// for more information.
24665func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall {
24666	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24667	return c
24668}
24669
24670// Context sets the context to be used in this call's Do method. Any
24671// pending HTTP request will be aborted if the provided context is
24672// canceled.
24673func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall {
24674	c.ctx_ = ctx
24675	return c
24676}
24677
24678// Header returns an http.Header that can be modified by the caller to
24679// add HTTP headers to the request.
24680func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header {
24681	if c.header_ == nil {
24682		c.header_ = make(http.Header)
24683	}
24684	return c.header_
24685}
24686
24687func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
24688	reqHeaders := make(http.Header)
24689	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
24690	for k, v := range c.header_ {
24691		reqHeaders[k] = v
24692	}
24693	reqHeaders.Set("User-Agent", c.s.userAgent())
24694	var body io.Reader = nil
24695	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
24696	if err != nil {
24697		return nil, err
24698	}
24699	reqHeaders.Set("Content-Type", "application/json")
24700	c.urlParams_.Set("alt", alt)
24701	c.urlParams_.Set("prettyPrint", "false")
24702	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
24703	urls += "?" + c.urlParams_.Encode()
24704	req, err := http.NewRequest("POST", urls, body)
24705	if err != nil {
24706		return nil, err
24707	}
24708	req.Header = reqHeaders
24709	googleapi.Expand(req.URL, map[string]string{
24710		"parent": c.parent,
24711	})
24712	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24713}
24714
24715// Do executes the "dialogflow.projects.agent.intents.batchDelete" call.
24716// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24717// Any non-2xx status code is an error. Response headers are in either
24718// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24719// was returned at all) in error.(*googleapi.Error).Header. Use
24720// googleapi.IsNotModified to check whether the returned error was
24721// because http.StatusNotModified was returned.
24722func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24723	gensupport.SetOptions(c.urlParams_, opts...)
24724	res, err := c.doRequest("json")
24725	if res != nil && res.StatusCode == http.StatusNotModified {
24726		if res.Body != nil {
24727			res.Body.Close()
24728		}
24729		return nil, &googleapi.Error{
24730			Code:   res.StatusCode,
24731			Header: res.Header,
24732		}
24733	}
24734	if err != nil {
24735		return nil, err
24736	}
24737	defer googleapi.CloseBody(res)
24738	if err := googleapi.CheckResponse(res); err != nil {
24739		return nil, err
24740	}
24741	ret := &GoogleLongrunningOperation{
24742		ServerResponse: googleapi.ServerResponse{
24743			Header:         res.Header,
24744			HTTPStatusCode: res.StatusCode,
24745		},
24746	}
24747	target := &ret
24748	if err := gensupport.DecodeResponse(target, res); err != nil {
24749		return nil, err
24750	}
24751	return ret, nil
24752	// {
24753	//   "description": "Deletes intents in the specified agent. Operation ",
24754	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents:batchDelete",
24755	//   "httpMethod": "POST",
24756	//   "id": "dialogflow.projects.agent.intents.batchDelete",
24757	//   "parameterOrder": [
24758	//     "parent"
24759	//   ],
24760	//   "parameters": {
24761	//     "parent": {
24762	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent`",
24763	//       "location": "path",
24764	//       "pattern": "^projects/[^/]+/agent$",
24765	//       "required": true,
24766	//       "type": "string"
24767	//     }
24768	//   },
24769	//   "path": "v2beta1/{+parent}/intents:batchDelete",
24770	//   "request": {
24771	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest"
24772	//   },
24773	//   "response": {
24774	//     "$ref": "GoogleLongrunningOperation"
24775	//   },
24776	//   "scopes": [
24777	//     "https://www.googleapis.com/auth/cloud-platform",
24778	//     "https://www.googleapis.com/auth/dialogflow"
24779	//   ]
24780	// }
24781
24782}
24783
24784// method id "dialogflow.projects.agent.intents.batchUpdate":
24785
24786type ProjectsAgentIntentsBatchUpdateCall struct {
24787	s                                                     *Service
24788	parent                                                string
24789	googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
24790	urlParams_                                            gensupport.URLParams
24791	ctx_                                                  context.Context
24792	header_                                               http.Header
24793}
24794
24795// BatchUpdate: Updates/Creates multiple intents in the specified agent.
24796// Operation
24797//
24798// - parent: The name of the agent to update or create intents in.
24799//   Supported formats: - `projects//agent` -
24800//   `projects//locations//agent`.
24801func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall {
24802	c := &ProjectsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24803	c.parent = parent
24804	c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
24805	return c
24806}
24807
24808// Fields allows partial responses to be retrieved. See
24809// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24810// for more information.
24811func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall {
24812	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24813	return c
24814}
24815
24816// Context sets the context to be used in this call's Do method. Any
24817// pending HTTP request will be aborted if the provided context is
24818// canceled.
24819func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall {
24820	c.ctx_ = ctx
24821	return c
24822}
24823
24824// Header returns an http.Header that can be modified by the caller to
24825// add HTTP headers to the request.
24826func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header {
24827	if c.header_ == nil {
24828		c.header_ = make(http.Header)
24829	}
24830	return c.header_
24831}
24832
24833func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
24834	reqHeaders := make(http.Header)
24835	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
24836	for k, v := range c.header_ {
24837		reqHeaders[k] = v
24838	}
24839	reqHeaders.Set("User-Agent", c.s.userAgent())
24840	var body io.Reader = nil
24841	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
24842	if err != nil {
24843		return nil, err
24844	}
24845	reqHeaders.Set("Content-Type", "application/json")
24846	c.urlParams_.Set("alt", alt)
24847	c.urlParams_.Set("prettyPrint", "false")
24848	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
24849	urls += "?" + c.urlParams_.Encode()
24850	req, err := http.NewRequest("POST", urls, body)
24851	if err != nil {
24852		return nil, err
24853	}
24854	req.Header = reqHeaders
24855	googleapi.Expand(req.URL, map[string]string{
24856		"parent": c.parent,
24857	})
24858	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24859}
24860
24861// Do executes the "dialogflow.projects.agent.intents.batchUpdate" call.
24862// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24863// Any non-2xx status code is an error. Response headers are in either
24864// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24865// was returned at all) in error.(*googleapi.Error).Header. Use
24866// googleapi.IsNotModified to check whether the returned error was
24867// because http.StatusNotModified was returned.
24868func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24869	gensupport.SetOptions(c.urlParams_, opts...)
24870	res, err := c.doRequest("json")
24871	if res != nil && res.StatusCode == http.StatusNotModified {
24872		if res.Body != nil {
24873			res.Body.Close()
24874		}
24875		return nil, &googleapi.Error{
24876			Code:   res.StatusCode,
24877			Header: res.Header,
24878		}
24879	}
24880	if err != nil {
24881		return nil, err
24882	}
24883	defer googleapi.CloseBody(res)
24884	if err := googleapi.CheckResponse(res); err != nil {
24885		return nil, err
24886	}
24887	ret := &GoogleLongrunningOperation{
24888		ServerResponse: googleapi.ServerResponse{
24889			Header:         res.Header,
24890			HTTPStatusCode: res.StatusCode,
24891		},
24892	}
24893	target := &ret
24894	if err := gensupport.DecodeResponse(target, res); err != nil {
24895		return nil, err
24896	}
24897	return ret, nil
24898	// {
24899	//   "description": "Updates/Creates multiple intents in the specified agent. Operation ",
24900	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents:batchUpdate",
24901	//   "httpMethod": "POST",
24902	//   "id": "dialogflow.projects.agent.intents.batchUpdate",
24903	//   "parameterOrder": [
24904	//     "parent"
24905	//   ],
24906	//   "parameters": {
24907	//     "parent": {
24908	//       "description": "Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent`",
24909	//       "location": "path",
24910	//       "pattern": "^projects/[^/]+/agent$",
24911	//       "required": true,
24912	//       "type": "string"
24913	//     }
24914	//   },
24915	//   "path": "v2beta1/{+parent}/intents:batchUpdate",
24916	//   "request": {
24917	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest"
24918	//   },
24919	//   "response": {
24920	//     "$ref": "GoogleLongrunningOperation"
24921	//   },
24922	//   "scopes": [
24923	//     "https://www.googleapis.com/auth/cloud-platform",
24924	//     "https://www.googleapis.com/auth/dialogflow"
24925	//   ]
24926	// }
24927
24928}
24929
24930// method id "dialogflow.projects.agent.intents.create":
24931
24932type ProjectsAgentIntentsCreateCall struct {
24933	s                                  *Service
24934	parent                             string
24935	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
24936	urlParams_                         gensupport.URLParams
24937	ctx_                               context.Context
24938	header_                            http.Header
24939}
24940
24941// Create: Creates an intent in the specified agent.
24942//
24943// - parent: The agent to create a intent for. Supported formats: -
24944//   `projects//agent` - `projects//locations//agent`.
24945func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsCreateCall {
24946	c := &ProjectsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24947	c.parent = parent
24948	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
24949	return c
24950}
24951
24952// IntentView sets the optional parameter "intentView": The resource
24953// view to apply to the returned intent.
24954//
24955// Possible values:
24956//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
24957// in the response.
24958//   "INTENT_VIEW_FULL" - All fields are populated.
24959func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall {
24960	c.urlParams_.Set("intentView", intentView)
24961	return c
24962}
24963
24964// LanguageCode sets the optional parameter "languageCode": The language
24965// used to access language-specific data. If not specified, the agent's
24966// default language is used. For more information, see Multilingual
24967// intent and entity data
24968// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
24969func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall {
24970	c.urlParams_.Set("languageCode", languageCode)
24971	return c
24972}
24973
24974// Fields allows partial responses to be retrieved. See
24975// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24976// for more information.
24977func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall {
24978	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24979	return c
24980}
24981
24982// Context sets the context to be used in this call's Do method. Any
24983// pending HTTP request will be aborted if the provided context is
24984// canceled.
24985func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall {
24986	c.ctx_ = ctx
24987	return c
24988}
24989
24990// Header returns an http.Header that can be modified by the caller to
24991// add HTTP headers to the request.
24992func (c *ProjectsAgentIntentsCreateCall) Header() http.Header {
24993	if c.header_ == nil {
24994		c.header_ = make(http.Header)
24995	}
24996	return c.header_
24997}
24998
24999func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
25000	reqHeaders := make(http.Header)
25001	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
25002	for k, v := range c.header_ {
25003		reqHeaders[k] = v
25004	}
25005	reqHeaders.Set("User-Agent", c.s.userAgent())
25006	var body io.Reader = nil
25007	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
25008	if err != nil {
25009		return nil, err
25010	}
25011	reqHeaders.Set("Content-Type", "application/json")
25012	c.urlParams_.Set("alt", alt)
25013	c.urlParams_.Set("prettyPrint", "false")
25014	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
25015	urls += "?" + c.urlParams_.Encode()
25016	req, err := http.NewRequest("POST", urls, body)
25017	if err != nil {
25018		return nil, err
25019	}
25020	req.Header = reqHeaders
25021	googleapi.Expand(req.URL, map[string]string{
25022		"parent": c.parent,
25023	})
25024	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25025}
25026
25027// Do executes the "dialogflow.projects.agent.intents.create" call.
25028// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
25029// non-nil. Any non-2xx status code is an error. Response headers are in
25030// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
25031// (if a response was returned at all) in
25032// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25033// whether the returned error was because http.StatusNotModified was
25034// returned.
25035func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
25036	gensupport.SetOptions(c.urlParams_, opts...)
25037	res, err := c.doRequest("json")
25038	if res != nil && res.StatusCode == http.StatusNotModified {
25039		if res.Body != nil {
25040			res.Body.Close()
25041		}
25042		return nil, &googleapi.Error{
25043			Code:   res.StatusCode,
25044			Header: res.Header,
25045		}
25046	}
25047	if err != nil {
25048		return nil, err
25049	}
25050	defer googleapi.CloseBody(res)
25051	if err := googleapi.CheckResponse(res); err != nil {
25052		return nil, err
25053	}
25054	ret := &GoogleCloudDialogflowV2beta1Intent{
25055		ServerResponse: googleapi.ServerResponse{
25056			Header:         res.Header,
25057			HTTPStatusCode: res.StatusCode,
25058		},
25059	}
25060	target := &ret
25061	if err := gensupport.DecodeResponse(target, res); err != nil {
25062		return nil, err
25063	}
25064	return ret, nil
25065	// {
25066	//   "description": "Creates an intent in the specified agent.",
25067	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents",
25068	//   "httpMethod": "POST",
25069	//   "id": "dialogflow.projects.agent.intents.create",
25070	//   "parameterOrder": [
25071	//     "parent"
25072	//   ],
25073	//   "parameters": {
25074	//     "intentView": {
25075	//       "description": "Optional. The resource view to apply to the returned intent.",
25076	//       "enum": [
25077	//         "INTENT_VIEW_UNSPECIFIED",
25078	//         "INTENT_VIEW_FULL"
25079	//       ],
25080	//       "enumDescriptions": [
25081	//         "Training phrases field is not populated in the response.",
25082	//         "All fields are populated."
25083	//       ],
25084	//       "location": "query",
25085	//       "type": "string"
25086	//     },
25087	//     "languageCode": {
25088	//       "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).",
25089	//       "location": "query",
25090	//       "type": "string"
25091	//     },
25092	//     "parent": {
25093	//       "description": "Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent`",
25094	//       "location": "path",
25095	//       "pattern": "^projects/[^/]+/agent$",
25096	//       "required": true,
25097	//       "type": "string"
25098	//     }
25099	//   },
25100	//   "path": "v2beta1/{+parent}/intents",
25101	//   "request": {
25102	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25103	//   },
25104	//   "response": {
25105	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25106	//   },
25107	//   "scopes": [
25108	//     "https://www.googleapis.com/auth/cloud-platform",
25109	//     "https://www.googleapis.com/auth/dialogflow"
25110	//   ]
25111	// }
25112
25113}
25114
25115// method id "dialogflow.projects.agent.intents.delete":
25116
25117type ProjectsAgentIntentsDeleteCall struct {
25118	s          *Service
25119	name       string
25120	urlParams_ gensupport.URLParams
25121	ctx_       context.Context
25122	header_    http.Header
25123}
25124
25125// Delete: Deletes the specified intent and its direct or indirect
25126// followup intents.
25127//
25128// - name: The name of the intent to delete. If this intent has direct
25129//   or indirect followup intents, we also delete them. Supported
25130//   formats: - `projects//agent/intents/` -
25131//   `projects//locations//agent/intents/`.
25132func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall {
25133	c := &ProjectsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25134	c.name = name
25135	return c
25136}
25137
25138// Fields allows partial responses to be retrieved. See
25139// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25140// for more information.
25141func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall {
25142	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25143	return c
25144}
25145
25146// Context sets the context to be used in this call's Do method. Any
25147// pending HTTP request will be aborted if the provided context is
25148// canceled.
25149func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall {
25150	c.ctx_ = ctx
25151	return c
25152}
25153
25154// Header returns an http.Header that can be modified by the caller to
25155// add HTTP headers to the request.
25156func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header {
25157	if c.header_ == nil {
25158		c.header_ = make(http.Header)
25159	}
25160	return c.header_
25161}
25162
25163func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25164	reqHeaders := make(http.Header)
25165	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
25166	for k, v := range c.header_ {
25167		reqHeaders[k] = v
25168	}
25169	reqHeaders.Set("User-Agent", c.s.userAgent())
25170	var body io.Reader = nil
25171	c.urlParams_.Set("alt", alt)
25172	c.urlParams_.Set("prettyPrint", "false")
25173	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25174	urls += "?" + c.urlParams_.Encode()
25175	req, err := http.NewRequest("DELETE", urls, body)
25176	if err != nil {
25177		return nil, err
25178	}
25179	req.Header = reqHeaders
25180	googleapi.Expand(req.URL, map[string]string{
25181		"name": c.name,
25182	})
25183	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25184}
25185
25186// Do executes the "dialogflow.projects.agent.intents.delete" call.
25187// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
25188// non-2xx status code is an error. Response headers are in either
25189// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
25190// returned at all) in error.(*googleapi.Error).Header. Use
25191// googleapi.IsNotModified to check whether the returned error was
25192// because http.StatusNotModified was returned.
25193func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25194	gensupport.SetOptions(c.urlParams_, opts...)
25195	res, err := c.doRequest("json")
25196	if res != nil && res.StatusCode == http.StatusNotModified {
25197		if res.Body != nil {
25198			res.Body.Close()
25199		}
25200		return nil, &googleapi.Error{
25201			Code:   res.StatusCode,
25202			Header: res.Header,
25203		}
25204	}
25205	if err != nil {
25206		return nil, err
25207	}
25208	defer googleapi.CloseBody(res)
25209	if err := googleapi.CheckResponse(res); err != nil {
25210		return nil, err
25211	}
25212	ret := &GoogleProtobufEmpty{
25213		ServerResponse: googleapi.ServerResponse{
25214			Header:         res.Header,
25215			HTTPStatusCode: res.StatusCode,
25216		},
25217	}
25218	target := &ret
25219	if err := gensupport.DecodeResponse(target, res); err != nil {
25220		return nil, err
25221	}
25222	return ret, nil
25223	// {
25224	//   "description": "Deletes the specified intent and its direct or indirect followup intents.",
25225	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents/{intentsId}",
25226	//   "httpMethod": "DELETE",
25227	//   "id": "dialogflow.projects.agent.intents.delete",
25228	//   "parameterOrder": [
25229	//     "name"
25230	//   ],
25231	//   "parameters": {
25232	//     "name": {
25233	//       "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/`",
25234	//       "location": "path",
25235	//       "pattern": "^projects/[^/]+/agent/intents/[^/]+$",
25236	//       "required": true,
25237	//       "type": "string"
25238	//     }
25239	//   },
25240	//   "path": "v2beta1/{+name}",
25241	//   "response": {
25242	//     "$ref": "GoogleProtobufEmpty"
25243	//   },
25244	//   "scopes": [
25245	//     "https://www.googleapis.com/auth/cloud-platform",
25246	//     "https://www.googleapis.com/auth/dialogflow"
25247	//   ]
25248	// }
25249
25250}
25251
25252// method id "dialogflow.projects.agent.intents.get":
25253
25254type ProjectsAgentIntentsGetCall struct {
25255	s            *Service
25256	name         string
25257	urlParams_   gensupport.URLParams
25258	ifNoneMatch_ string
25259	ctx_         context.Context
25260	header_      http.Header
25261}
25262
25263// Get: Retrieves the specified intent.
25264//
25265// - name: The name of the intent. Supported formats: -
25266//   `projects//agent/intents/` - `projects//locations//agent/intents/`.
25267func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall {
25268	c := &ProjectsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25269	c.name = name
25270	return c
25271}
25272
25273// IntentView sets the optional parameter "intentView": The resource
25274// view to apply to the returned intent.
25275//
25276// Possible values:
25277//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
25278// in the response.
25279//   "INTENT_VIEW_FULL" - All fields are populated.
25280func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall {
25281	c.urlParams_.Set("intentView", intentView)
25282	return c
25283}
25284
25285// LanguageCode sets the optional parameter "languageCode": The language
25286// used to access language-specific data. If not specified, the agent's
25287// default language is used. For more information, see Multilingual
25288// intent and entity data
25289// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
25290func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall {
25291	c.urlParams_.Set("languageCode", languageCode)
25292	return c
25293}
25294
25295// Fields allows partial responses to be retrieved. See
25296// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25297// for more information.
25298func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall {
25299	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25300	return c
25301}
25302
25303// IfNoneMatch sets the optional parameter which makes the operation
25304// fail if the object's ETag matches the given value. This is useful for
25305// getting updates only after the object has changed since the last
25306// request. Use googleapi.IsNotModified to check whether the response
25307// error from Do is the result of In-None-Match.
25308func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall {
25309	c.ifNoneMatch_ = entityTag
25310	return c
25311}
25312
25313// Context sets the context to be used in this call's Do method. Any
25314// pending HTTP request will be aborted if the provided context is
25315// canceled.
25316func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall {
25317	c.ctx_ = ctx
25318	return c
25319}
25320
25321// Header returns an http.Header that can be modified by the caller to
25322// add HTTP headers to the request.
25323func (c *ProjectsAgentIntentsGetCall) Header() http.Header {
25324	if c.header_ == nil {
25325		c.header_ = make(http.Header)
25326	}
25327	return c.header_
25328}
25329
25330func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
25331	reqHeaders := make(http.Header)
25332	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
25333	for k, v := range c.header_ {
25334		reqHeaders[k] = v
25335	}
25336	reqHeaders.Set("User-Agent", c.s.userAgent())
25337	if c.ifNoneMatch_ != "" {
25338		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25339	}
25340	var body io.Reader = nil
25341	c.urlParams_.Set("alt", alt)
25342	c.urlParams_.Set("prettyPrint", "false")
25343	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25344	urls += "?" + c.urlParams_.Encode()
25345	req, err := http.NewRequest("GET", urls, body)
25346	if err != nil {
25347		return nil, err
25348	}
25349	req.Header = reqHeaders
25350	googleapi.Expand(req.URL, map[string]string{
25351		"name": c.name,
25352	})
25353	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25354}
25355
25356// Do executes the "dialogflow.projects.agent.intents.get" call.
25357// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
25358// non-nil. Any non-2xx status code is an error. Response headers are in
25359// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
25360// (if a response was returned at all) in
25361// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25362// whether the returned error was because http.StatusNotModified was
25363// returned.
25364func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
25365	gensupport.SetOptions(c.urlParams_, opts...)
25366	res, err := c.doRequest("json")
25367	if res != nil && res.StatusCode == http.StatusNotModified {
25368		if res.Body != nil {
25369			res.Body.Close()
25370		}
25371		return nil, &googleapi.Error{
25372			Code:   res.StatusCode,
25373			Header: res.Header,
25374		}
25375	}
25376	if err != nil {
25377		return nil, err
25378	}
25379	defer googleapi.CloseBody(res)
25380	if err := googleapi.CheckResponse(res); err != nil {
25381		return nil, err
25382	}
25383	ret := &GoogleCloudDialogflowV2beta1Intent{
25384		ServerResponse: googleapi.ServerResponse{
25385			Header:         res.Header,
25386			HTTPStatusCode: res.StatusCode,
25387		},
25388	}
25389	target := &ret
25390	if err := gensupport.DecodeResponse(target, res); err != nil {
25391		return nil, err
25392	}
25393	return ret, nil
25394	// {
25395	//   "description": "Retrieves the specified intent.",
25396	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents/{intentsId}",
25397	//   "httpMethod": "GET",
25398	//   "id": "dialogflow.projects.agent.intents.get",
25399	//   "parameterOrder": [
25400	//     "name"
25401	//   ],
25402	//   "parameters": {
25403	//     "intentView": {
25404	//       "description": "Optional. The resource view to apply to the returned intent.",
25405	//       "enum": [
25406	//         "INTENT_VIEW_UNSPECIFIED",
25407	//         "INTENT_VIEW_FULL"
25408	//       ],
25409	//       "enumDescriptions": [
25410	//         "Training phrases field is not populated in the response.",
25411	//         "All fields are populated."
25412	//       ],
25413	//       "location": "query",
25414	//       "type": "string"
25415	//     },
25416	//     "languageCode": {
25417	//       "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).",
25418	//       "location": "query",
25419	//       "type": "string"
25420	//     },
25421	//     "name": {
25422	//       "description": "Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
25423	//       "location": "path",
25424	//       "pattern": "^projects/[^/]+/agent/intents/[^/]+$",
25425	//       "required": true,
25426	//       "type": "string"
25427	//     }
25428	//   },
25429	//   "path": "v2beta1/{+name}",
25430	//   "response": {
25431	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25432	//   },
25433	//   "scopes": [
25434	//     "https://www.googleapis.com/auth/cloud-platform",
25435	//     "https://www.googleapis.com/auth/dialogflow"
25436	//   ]
25437	// }
25438
25439}
25440
25441// method id "dialogflow.projects.agent.intents.list":
25442
25443type ProjectsAgentIntentsListCall struct {
25444	s            *Service
25445	parent       string
25446	urlParams_   gensupport.URLParams
25447	ifNoneMatch_ string
25448	ctx_         context.Context
25449	header_      http.Header
25450}
25451
25452// List: Returns the list of all intents in the specified agent.
25453//
25454// - parent: The agent to list all intents from. Format:
25455//   `projects//agent`.
25456func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall {
25457	c := &ProjectsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25458	c.parent = parent
25459	return c
25460}
25461
25462// IntentView sets the optional parameter "intentView": The resource
25463// view to apply to the returned intent.
25464//
25465// Possible values:
25466//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
25467// in the response.
25468//   "INTENT_VIEW_FULL" - All fields are populated.
25469func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall {
25470	c.urlParams_.Set("intentView", intentView)
25471	return c
25472}
25473
25474// LanguageCode sets the optional parameter "languageCode": The language
25475// used to access language-specific data. If not specified, the agent's
25476// default language is used. For more information, see Multilingual
25477// intent and entity data
25478// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
25479func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall {
25480	c.urlParams_.Set("languageCode", languageCode)
25481	return c
25482}
25483
25484// PageSize sets the optional parameter "pageSize": The maximum number
25485// of items to return in a single page. By default 100 and at most 1000.
25486func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall {
25487	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25488	return c
25489}
25490
25491// PageToken sets the optional parameter "pageToken": The
25492// next_page_token value returned from a previous list request.
25493func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall {
25494	c.urlParams_.Set("pageToken", pageToken)
25495	return c
25496}
25497
25498// Fields allows partial responses to be retrieved. See
25499// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25500// for more information.
25501func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall {
25502	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25503	return c
25504}
25505
25506// IfNoneMatch sets the optional parameter which makes the operation
25507// fail if the object's ETag matches the given value. This is useful for
25508// getting updates only after the object has changed since the last
25509// request. Use googleapi.IsNotModified to check whether the response
25510// error from Do is the result of In-None-Match.
25511func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall {
25512	c.ifNoneMatch_ = entityTag
25513	return c
25514}
25515
25516// Context sets the context to be used in this call's Do method. Any
25517// pending HTTP request will be aborted if the provided context is
25518// canceled.
25519func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall {
25520	c.ctx_ = ctx
25521	return c
25522}
25523
25524// Header returns an http.Header that can be modified by the caller to
25525// add HTTP headers to the request.
25526func (c *ProjectsAgentIntentsListCall) Header() http.Header {
25527	if c.header_ == nil {
25528		c.header_ = make(http.Header)
25529	}
25530	return c.header_
25531}
25532
25533func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
25534	reqHeaders := make(http.Header)
25535	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
25536	for k, v := range c.header_ {
25537		reqHeaders[k] = v
25538	}
25539	reqHeaders.Set("User-Agent", c.s.userAgent())
25540	if c.ifNoneMatch_ != "" {
25541		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25542	}
25543	var body io.Reader = nil
25544	c.urlParams_.Set("alt", alt)
25545	c.urlParams_.Set("prettyPrint", "false")
25546	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
25547	urls += "?" + c.urlParams_.Encode()
25548	req, err := http.NewRequest("GET", urls, body)
25549	if err != nil {
25550		return nil, err
25551	}
25552	req.Header = reqHeaders
25553	googleapi.Expand(req.URL, map[string]string{
25554		"parent": c.parent,
25555	})
25556	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25557}
25558
25559// Do executes the "dialogflow.projects.agent.intents.list" call.
25560// Exactly one of *GoogleCloudDialogflowV2beta1ListIntentsResponse or
25561// error will be non-nil. Any non-2xx status code is an error. Response
25562// headers are in either
25563// *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header
25564//  or (if a response was returned at all) in
25565// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25566// whether the returned error was because http.StatusNotModified was
25567// returned.
25568func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
25569	gensupport.SetOptions(c.urlParams_, opts...)
25570	res, err := c.doRequest("json")
25571	if res != nil && res.StatusCode == http.StatusNotModified {
25572		if res.Body != nil {
25573			res.Body.Close()
25574		}
25575		return nil, &googleapi.Error{
25576			Code:   res.StatusCode,
25577			Header: res.Header,
25578		}
25579	}
25580	if err != nil {
25581		return nil, err
25582	}
25583	defer googleapi.CloseBody(res)
25584	if err := googleapi.CheckResponse(res); err != nil {
25585		return nil, err
25586	}
25587	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
25588		ServerResponse: googleapi.ServerResponse{
25589			Header:         res.Header,
25590			HTTPStatusCode: res.StatusCode,
25591		},
25592	}
25593	target := &ret
25594	if err := gensupport.DecodeResponse(target, res); err != nil {
25595		return nil, err
25596	}
25597	return ret, nil
25598	// {
25599	//   "description": "Returns the list of all intents in the specified agent.",
25600	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents",
25601	//   "httpMethod": "GET",
25602	//   "id": "dialogflow.projects.agent.intents.list",
25603	//   "parameterOrder": [
25604	//     "parent"
25605	//   ],
25606	//   "parameters": {
25607	//     "intentView": {
25608	//       "description": "Optional. The resource view to apply to the returned intent.",
25609	//       "enum": [
25610	//         "INTENT_VIEW_UNSPECIFIED",
25611	//         "INTENT_VIEW_FULL"
25612	//       ],
25613	//       "enumDescriptions": [
25614	//         "Training phrases field is not populated in the response.",
25615	//         "All fields are populated."
25616	//       ],
25617	//       "location": "query",
25618	//       "type": "string"
25619	//     },
25620	//     "languageCode": {
25621	//       "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).",
25622	//       "location": "query",
25623	//       "type": "string"
25624	//     },
25625	//     "pageSize": {
25626	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
25627	//       "format": "int32",
25628	//       "location": "query",
25629	//       "type": "integer"
25630	//     },
25631	//     "pageToken": {
25632	//       "description": "Optional. The next_page_token value returned from a previous list request.",
25633	//       "location": "query",
25634	//       "type": "string"
25635	//     },
25636	//     "parent": {
25637	//       "description": "Required. The agent to list all intents from. Format: `projects//agent`.",
25638	//       "location": "path",
25639	//       "pattern": "^projects/[^/]+/agent$",
25640	//       "required": true,
25641	//       "type": "string"
25642	//     }
25643	//   },
25644	//   "path": "v2beta1/{+parent}/intents",
25645	//   "response": {
25646	//     "$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
25647	//   },
25648	//   "scopes": [
25649	//     "https://www.googleapis.com/auth/cloud-platform",
25650	//     "https://www.googleapis.com/auth/dialogflow"
25651	//   ]
25652	// }
25653
25654}
25655
25656// Pages invokes f for each page of results.
25657// A non-nil error returned from f will halt the iteration.
25658// The provided context supersedes any context provided to the Context method.
25659func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
25660	c.ctx_ = ctx
25661	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
25662	for {
25663		x, err := c.Do()
25664		if err != nil {
25665			return err
25666		}
25667		if err := f(x); err != nil {
25668			return err
25669		}
25670		if x.NextPageToken == "" {
25671			return nil
25672		}
25673		c.PageToken(x.NextPageToken)
25674	}
25675}
25676
25677// method id "dialogflow.projects.agent.intents.patch":
25678
25679type ProjectsAgentIntentsPatchCall struct {
25680	s                                  *Service
25681	nameid                             string
25682	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
25683	urlParams_                         gensupport.URLParams
25684	ctx_                               context.Context
25685	header_                            http.Header
25686}
25687
25688// Patch: Updates the specified intent.
25689//
25690// - name: Optional. The unique identifier of this intent. Required for
25691//   Intents.UpdateIntent and Intents.BatchUpdateIntents methods.
25692//   Supported formats: - `projects//agent/intents/` -
25693//   `projects//locations//agent/intents/`.
25694func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsPatchCall {
25695	c := &ProjectsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25696	c.nameid = nameid
25697	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
25698	return c
25699}
25700
25701// IntentView sets the optional parameter "intentView": The resource
25702// view to apply to the returned intent.
25703//
25704// Possible values:
25705//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
25706// in the response.
25707//   "INTENT_VIEW_FULL" - All fields are populated.
25708func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall {
25709	c.urlParams_.Set("intentView", intentView)
25710	return c
25711}
25712
25713// LanguageCode sets the optional parameter "languageCode": The language
25714// used to access language-specific data. If not specified, the agent's
25715// default language is used. For more information, see Multilingual
25716// intent and entity data
25717// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
25718func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall {
25719	c.urlParams_.Set("languageCode", languageCode)
25720	return c
25721}
25722
25723// UpdateMask sets the optional parameter "updateMask": The mask to
25724// control which fields get updated.
25725func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall {
25726	c.urlParams_.Set("updateMask", updateMask)
25727	return c
25728}
25729
25730// Fields allows partial responses to be retrieved. See
25731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25732// for more information.
25733func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall {
25734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25735	return c
25736}
25737
25738// Context sets the context to be used in this call's Do method. Any
25739// pending HTTP request will be aborted if the provided context is
25740// canceled.
25741func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall {
25742	c.ctx_ = ctx
25743	return c
25744}
25745
25746// Header returns an http.Header that can be modified by the caller to
25747// add HTTP headers to the request.
25748func (c *ProjectsAgentIntentsPatchCall) Header() http.Header {
25749	if c.header_ == nil {
25750		c.header_ = make(http.Header)
25751	}
25752	return c.header_
25753}
25754
25755func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
25756	reqHeaders := make(http.Header)
25757	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
25758	for k, v := range c.header_ {
25759		reqHeaders[k] = v
25760	}
25761	reqHeaders.Set("User-Agent", c.s.userAgent())
25762	var body io.Reader = nil
25763	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
25764	if err != nil {
25765		return nil, err
25766	}
25767	reqHeaders.Set("Content-Type", "application/json")
25768	c.urlParams_.Set("alt", alt)
25769	c.urlParams_.Set("prettyPrint", "false")
25770	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25771	urls += "?" + c.urlParams_.Encode()
25772	req, err := http.NewRequest("PATCH", urls, body)
25773	if err != nil {
25774		return nil, err
25775	}
25776	req.Header = reqHeaders
25777	googleapi.Expand(req.URL, map[string]string{
25778		"name": c.nameid,
25779	})
25780	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25781}
25782
25783// Do executes the "dialogflow.projects.agent.intents.patch" call.
25784// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
25785// non-nil. Any non-2xx status code is an error. Response headers are in
25786// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
25787// (if a response was returned at all) in
25788// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25789// whether the returned error was because http.StatusNotModified was
25790// returned.
25791func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
25792	gensupport.SetOptions(c.urlParams_, opts...)
25793	res, err := c.doRequest("json")
25794	if res != nil && res.StatusCode == http.StatusNotModified {
25795		if res.Body != nil {
25796			res.Body.Close()
25797		}
25798		return nil, &googleapi.Error{
25799			Code:   res.StatusCode,
25800			Header: res.Header,
25801		}
25802	}
25803	if err != nil {
25804		return nil, err
25805	}
25806	defer googleapi.CloseBody(res)
25807	if err := googleapi.CheckResponse(res); err != nil {
25808		return nil, err
25809	}
25810	ret := &GoogleCloudDialogflowV2beta1Intent{
25811		ServerResponse: googleapi.ServerResponse{
25812			Header:         res.Header,
25813			HTTPStatusCode: res.StatusCode,
25814		},
25815	}
25816	target := &ret
25817	if err := gensupport.DecodeResponse(target, res); err != nil {
25818		return nil, err
25819	}
25820	return ret, nil
25821	// {
25822	//   "description": "Updates the specified intent.",
25823	//   "flatPath": "v2beta1/projects/{projectsId}/agent/intents/{intentsId}",
25824	//   "httpMethod": "PATCH",
25825	//   "id": "dialogflow.projects.agent.intents.patch",
25826	//   "parameterOrder": [
25827	//     "name"
25828	//   ],
25829	//   "parameters": {
25830	//     "intentView": {
25831	//       "description": "Optional. The resource view to apply to the returned intent.",
25832	//       "enum": [
25833	//         "INTENT_VIEW_UNSPECIFIED",
25834	//         "INTENT_VIEW_FULL"
25835	//       ],
25836	//       "enumDescriptions": [
25837	//         "Training phrases field is not populated in the response.",
25838	//         "All fields are populated."
25839	//       ],
25840	//       "location": "query",
25841	//       "type": "string"
25842	//     },
25843	//     "languageCode": {
25844	//       "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).",
25845	//       "location": "query",
25846	//       "type": "string"
25847	//     },
25848	//     "name": {
25849	//       "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/`",
25850	//       "location": "path",
25851	//       "pattern": "^projects/[^/]+/agent/intents/[^/]+$",
25852	//       "required": true,
25853	//       "type": "string"
25854	//     },
25855	//     "updateMask": {
25856	//       "description": "Optional. The mask to control which fields get updated.",
25857	//       "format": "google-fieldmask",
25858	//       "location": "query",
25859	//       "type": "string"
25860	//     }
25861	//   },
25862	//   "path": "v2beta1/{+name}",
25863	//   "request": {
25864	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25865	//   },
25866	//   "response": {
25867	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
25868	//   },
25869	//   "scopes": [
25870	//     "https://www.googleapis.com/auth/cloud-platform",
25871	//     "https://www.googleapis.com/auth/dialogflow"
25872	//   ]
25873	// }
25874
25875}
25876
25877// method id "dialogflow.projects.agent.knowledgeBases.create":
25878
25879type ProjectsAgentKnowledgeBasesCreateCall struct {
25880	s                                         *Service
25881	parent                                    string
25882	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
25883	urlParams_                                gensupport.URLParams
25884	ctx_                                      context.Context
25885	header_                                   http.Header
25886}
25887
25888// Create: Creates a knowledge base. Note: The
25889// `projects.agent.knowledgeBases` resource is deprecated; only use
25890// `projects.knowledgeBases`.
25891//
25892// - parent: The project to create a knowledge base for. Format:
25893//   `projects//locations/`.
25894func (r *ProjectsAgentKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesCreateCall {
25895	c := &ProjectsAgentKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25896	c.parent = parent
25897	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
25898	return c
25899}
25900
25901// Fields allows partial responses to be retrieved. See
25902// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25903// for more information.
25904func (c *ProjectsAgentKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesCreateCall {
25905	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25906	return c
25907}
25908
25909// Context sets the context to be used in this call's Do method. Any
25910// pending HTTP request will be aborted if the provided context is
25911// canceled.
25912func (c *ProjectsAgentKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesCreateCall {
25913	c.ctx_ = ctx
25914	return c
25915}
25916
25917// Header returns an http.Header that can be modified by the caller to
25918// add HTTP headers to the request.
25919func (c *ProjectsAgentKnowledgeBasesCreateCall) Header() http.Header {
25920	if c.header_ == nil {
25921		c.header_ = make(http.Header)
25922	}
25923	return c.header_
25924}
25925
25926func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
25927	reqHeaders := make(http.Header)
25928	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
25929	for k, v := range c.header_ {
25930		reqHeaders[k] = v
25931	}
25932	reqHeaders.Set("User-Agent", c.s.userAgent())
25933	var body io.Reader = nil
25934	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
25935	if err != nil {
25936		return nil, err
25937	}
25938	reqHeaders.Set("Content-Type", "application/json")
25939	c.urlParams_.Set("alt", alt)
25940	c.urlParams_.Set("prettyPrint", "false")
25941	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
25942	urls += "?" + c.urlParams_.Encode()
25943	req, err := http.NewRequest("POST", urls, body)
25944	if err != nil {
25945		return nil, err
25946	}
25947	req.Header = reqHeaders
25948	googleapi.Expand(req.URL, map[string]string{
25949		"parent": c.parent,
25950	})
25951	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25952}
25953
25954// Do executes the "dialogflow.projects.agent.knowledgeBases.create" call.
25955// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
25956// will be non-nil. Any non-2xx status code is an error. Response
25957// headers are in either
25958// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
25959// (if a response was returned at all) in
25960// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25961// whether the returned error was because http.StatusNotModified was
25962// returned.
25963func (c *ProjectsAgentKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
25964	gensupport.SetOptions(c.urlParams_, opts...)
25965	res, err := c.doRequest("json")
25966	if res != nil && res.StatusCode == http.StatusNotModified {
25967		if res.Body != nil {
25968			res.Body.Close()
25969		}
25970		return nil, &googleapi.Error{
25971			Code:   res.StatusCode,
25972			Header: res.Header,
25973		}
25974	}
25975	if err != nil {
25976		return nil, err
25977	}
25978	defer googleapi.CloseBody(res)
25979	if err := googleapi.CheckResponse(res); err != nil {
25980		return nil, err
25981	}
25982	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
25983		ServerResponse: googleapi.ServerResponse{
25984			Header:         res.Header,
25985			HTTPStatusCode: res.StatusCode,
25986		},
25987	}
25988	target := &ret
25989	if err := gensupport.DecodeResponse(target, res); err != nil {
25990		return nil, err
25991	}
25992	return ret, nil
25993	// {
25994	//   "description": "Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
25995	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases",
25996	//   "httpMethod": "POST",
25997	//   "id": "dialogflow.projects.agent.knowledgeBases.create",
25998	//   "parameterOrder": [
25999	//     "parent"
26000	//   ],
26001	//   "parameters": {
26002	//     "parent": {
26003	//       "description": "Required. The project to create a knowledge base for. Format: `projects//locations/`.",
26004	//       "location": "path",
26005	//       "pattern": "^projects/[^/]+/agent$",
26006	//       "required": true,
26007	//       "type": "string"
26008	//     }
26009	//   },
26010	//   "path": "v2beta1/{+parent}/knowledgeBases",
26011	//   "request": {
26012	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26013	//   },
26014	//   "response": {
26015	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26016	//   },
26017	//   "scopes": [
26018	//     "https://www.googleapis.com/auth/cloud-platform",
26019	//     "https://www.googleapis.com/auth/dialogflow"
26020	//   ]
26021	// }
26022
26023}
26024
26025// method id "dialogflow.projects.agent.knowledgeBases.delete":
26026
26027type ProjectsAgentKnowledgeBasesDeleteCall struct {
26028	s          *Service
26029	name       string
26030	urlParams_ gensupport.URLParams
26031	ctx_       context.Context
26032	header_    http.Header
26033}
26034
26035// Delete: Deletes the specified knowledge base. Note: The
26036// `projects.agent.knowledgeBases` resource is deprecated; only use
26037// `projects.knowledgeBases`.
26038//
26039// - name: The name of the knowledge base to delete. Format:
26040//   `projects//locations//knowledgeBases/`.
26041func (r *ProjectsAgentKnowledgeBasesService) Delete(name string) *ProjectsAgentKnowledgeBasesDeleteCall {
26042	c := &ProjectsAgentKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26043	c.name = name
26044	return c
26045}
26046
26047// Force sets the optional parameter "force": Force deletes the
26048// knowledge base. When set to true, any documents in the knowledge base
26049// are also deleted.
26050func (c *ProjectsAgentKnowledgeBasesDeleteCall) Force(force bool) *ProjectsAgentKnowledgeBasesDeleteCall {
26051	c.urlParams_.Set("force", fmt.Sprint(force))
26052	return c
26053}
26054
26055// Fields allows partial responses to be retrieved. See
26056// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26057// for more information.
26058func (c *ProjectsAgentKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDeleteCall {
26059	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26060	return c
26061}
26062
26063// Context sets the context to be used in this call's Do method. Any
26064// pending HTTP request will be aborted if the provided context is
26065// canceled.
26066func (c *ProjectsAgentKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDeleteCall {
26067	c.ctx_ = ctx
26068	return c
26069}
26070
26071// Header returns an http.Header that can be modified by the caller to
26072// add HTTP headers to the request.
26073func (c *ProjectsAgentKnowledgeBasesDeleteCall) Header() http.Header {
26074	if c.header_ == nil {
26075		c.header_ = make(http.Header)
26076	}
26077	return c.header_
26078}
26079
26080func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
26081	reqHeaders := make(http.Header)
26082	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
26083	for k, v := range c.header_ {
26084		reqHeaders[k] = v
26085	}
26086	reqHeaders.Set("User-Agent", c.s.userAgent())
26087	var body io.Reader = nil
26088	c.urlParams_.Set("alt", alt)
26089	c.urlParams_.Set("prettyPrint", "false")
26090	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26091	urls += "?" + c.urlParams_.Encode()
26092	req, err := http.NewRequest("DELETE", urls, body)
26093	if err != nil {
26094		return nil, err
26095	}
26096	req.Header = reqHeaders
26097	googleapi.Expand(req.URL, map[string]string{
26098		"name": c.name,
26099	})
26100	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26101}
26102
26103// Do executes the "dialogflow.projects.agent.knowledgeBases.delete" call.
26104// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
26105// non-2xx status code is an error. Response headers are in either
26106// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
26107// returned at all) in error.(*googleapi.Error).Header. Use
26108// googleapi.IsNotModified to check whether the returned error was
26109// because http.StatusNotModified was returned.
26110func (c *ProjectsAgentKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26111	gensupport.SetOptions(c.urlParams_, opts...)
26112	res, err := c.doRequest("json")
26113	if res != nil && res.StatusCode == http.StatusNotModified {
26114		if res.Body != nil {
26115			res.Body.Close()
26116		}
26117		return nil, &googleapi.Error{
26118			Code:   res.StatusCode,
26119			Header: res.Header,
26120		}
26121	}
26122	if err != nil {
26123		return nil, err
26124	}
26125	defer googleapi.CloseBody(res)
26126	if err := googleapi.CheckResponse(res); err != nil {
26127		return nil, err
26128	}
26129	ret := &GoogleProtobufEmpty{
26130		ServerResponse: googleapi.ServerResponse{
26131			Header:         res.Header,
26132			HTTPStatusCode: res.StatusCode,
26133		},
26134	}
26135	target := &ret
26136	if err := gensupport.DecodeResponse(target, res); err != nil {
26137		return nil, err
26138	}
26139	return ret, nil
26140	// {
26141	//   "description": "Deletes the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26142	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}",
26143	//   "httpMethod": "DELETE",
26144	//   "id": "dialogflow.projects.agent.knowledgeBases.delete",
26145	//   "parameterOrder": [
26146	//     "name"
26147	//   ],
26148	//   "parameters": {
26149	//     "force": {
26150	//       "description": "Optional. Force deletes the knowledge base. When set to true, any documents in the knowledge base are also deleted.",
26151	//       "location": "query",
26152	//       "type": "boolean"
26153	//     },
26154	//     "name": {
26155	//       "description": "Required. The name of the knowledge base to delete. Format: `projects//locations//knowledgeBases/`.",
26156	//       "location": "path",
26157	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
26158	//       "required": true,
26159	//       "type": "string"
26160	//     }
26161	//   },
26162	//   "path": "v2beta1/{+name}",
26163	//   "response": {
26164	//     "$ref": "GoogleProtobufEmpty"
26165	//   },
26166	//   "scopes": [
26167	//     "https://www.googleapis.com/auth/cloud-platform",
26168	//     "https://www.googleapis.com/auth/dialogflow"
26169	//   ]
26170	// }
26171
26172}
26173
26174// method id "dialogflow.projects.agent.knowledgeBases.get":
26175
26176type ProjectsAgentKnowledgeBasesGetCall struct {
26177	s            *Service
26178	name         string
26179	urlParams_   gensupport.URLParams
26180	ifNoneMatch_ string
26181	ctx_         context.Context
26182	header_      http.Header
26183}
26184
26185// Get: Retrieves the specified knowledge base. Note: The
26186// `projects.agent.knowledgeBases` resource is deprecated; only use
26187// `projects.knowledgeBases`.
26188//
26189// - name: The name of the knowledge base to retrieve. Format
26190//   `projects//locations//knowledgeBases/`.
26191func (r *ProjectsAgentKnowledgeBasesService) Get(name string) *ProjectsAgentKnowledgeBasesGetCall {
26192	c := &ProjectsAgentKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26193	c.name = name
26194	return c
26195}
26196
26197// Fields allows partial responses to be retrieved. See
26198// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26199// for more information.
26200func (c *ProjectsAgentKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesGetCall {
26201	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26202	return c
26203}
26204
26205// IfNoneMatch sets the optional parameter which makes the operation
26206// fail if the object's ETag matches the given value. This is useful for
26207// getting updates only after the object has changed since the last
26208// request. Use googleapi.IsNotModified to check whether the response
26209// error from Do is the result of In-None-Match.
26210func (c *ProjectsAgentKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesGetCall {
26211	c.ifNoneMatch_ = entityTag
26212	return c
26213}
26214
26215// Context sets the context to be used in this call's Do method. Any
26216// pending HTTP request will be aborted if the provided context is
26217// canceled.
26218func (c *ProjectsAgentKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesGetCall {
26219	c.ctx_ = ctx
26220	return c
26221}
26222
26223// Header returns an http.Header that can be modified by the caller to
26224// add HTTP headers to the request.
26225func (c *ProjectsAgentKnowledgeBasesGetCall) Header() http.Header {
26226	if c.header_ == nil {
26227		c.header_ = make(http.Header)
26228	}
26229	return c.header_
26230}
26231
26232func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
26233	reqHeaders := make(http.Header)
26234	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
26235	for k, v := range c.header_ {
26236		reqHeaders[k] = v
26237	}
26238	reqHeaders.Set("User-Agent", c.s.userAgent())
26239	if c.ifNoneMatch_ != "" {
26240		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26241	}
26242	var body io.Reader = nil
26243	c.urlParams_.Set("alt", alt)
26244	c.urlParams_.Set("prettyPrint", "false")
26245	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26246	urls += "?" + c.urlParams_.Encode()
26247	req, err := http.NewRequest("GET", urls, body)
26248	if err != nil {
26249		return nil, err
26250	}
26251	req.Header = reqHeaders
26252	googleapi.Expand(req.URL, map[string]string{
26253		"name": c.name,
26254	})
26255	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26256}
26257
26258// Do executes the "dialogflow.projects.agent.knowledgeBases.get" call.
26259// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
26260// will be non-nil. Any non-2xx status code is an error. Response
26261// headers are in either
26262// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
26263// (if a response was returned at all) in
26264// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26265// whether the returned error was because http.StatusNotModified was
26266// returned.
26267func (c *ProjectsAgentKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
26268	gensupport.SetOptions(c.urlParams_, opts...)
26269	res, err := c.doRequest("json")
26270	if res != nil && res.StatusCode == http.StatusNotModified {
26271		if res.Body != nil {
26272			res.Body.Close()
26273		}
26274		return nil, &googleapi.Error{
26275			Code:   res.StatusCode,
26276			Header: res.Header,
26277		}
26278	}
26279	if err != nil {
26280		return nil, err
26281	}
26282	defer googleapi.CloseBody(res)
26283	if err := googleapi.CheckResponse(res); err != nil {
26284		return nil, err
26285	}
26286	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
26287		ServerResponse: googleapi.ServerResponse{
26288			Header:         res.Header,
26289			HTTPStatusCode: res.StatusCode,
26290		},
26291	}
26292	target := &ret
26293	if err := gensupport.DecodeResponse(target, res); err != nil {
26294		return nil, err
26295	}
26296	return ret, nil
26297	// {
26298	//   "description": "Retrieves the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26299	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}",
26300	//   "httpMethod": "GET",
26301	//   "id": "dialogflow.projects.agent.knowledgeBases.get",
26302	//   "parameterOrder": [
26303	//     "name"
26304	//   ],
26305	//   "parameters": {
26306	//     "name": {
26307	//       "description": "Required. The name of the knowledge base to retrieve. Format `projects//locations//knowledgeBases/`.",
26308	//       "location": "path",
26309	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
26310	//       "required": true,
26311	//       "type": "string"
26312	//     }
26313	//   },
26314	//   "path": "v2beta1/{+name}",
26315	//   "response": {
26316	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26317	//   },
26318	//   "scopes": [
26319	//     "https://www.googleapis.com/auth/cloud-platform",
26320	//     "https://www.googleapis.com/auth/dialogflow"
26321	//   ]
26322	// }
26323
26324}
26325
26326// method id "dialogflow.projects.agent.knowledgeBases.list":
26327
26328type ProjectsAgentKnowledgeBasesListCall struct {
26329	s            *Service
26330	parent       string
26331	urlParams_   gensupport.URLParams
26332	ifNoneMatch_ string
26333	ctx_         context.Context
26334	header_      http.Header
26335}
26336
26337// List: Returns the list of all knowledge bases of the specified agent.
26338// Note: The `projects.agent.knowledgeBases` resource is deprecated;
26339// only use `projects.knowledgeBases`.
26340//
26341// - parent: The project to list of knowledge bases for. Format:
26342//   `projects//locations/`.
26343func (r *ProjectsAgentKnowledgeBasesService) List(parent string) *ProjectsAgentKnowledgeBasesListCall {
26344	c := &ProjectsAgentKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26345	c.parent = parent
26346	return c
26347}
26348
26349// Filter sets the optional parameter "filter": The filter expression
26350// used to filter knowledge bases returned by the list method. The
26351// expression has the following syntax: [AND ] ... The following fields
26352// and operators are supported: * display_name with has(:) operator *
26353// language_code with equals(=) operator Examples: *
26354// 'language_code=en-us' matches knowledge bases with en-us language
26355// code. * 'display_name:articles' matches knowledge bases whose display
26356// name contains "articles". * 'display_name:"Best Articles"' matches
26357// knowledge bases whose display name contains "Best Articles". *
26358// 'language_code=en-gb AND display_name=articles' matches all knowledge
26359// bases whose display name contains "articles" and whose language code
26360// is "en-gb". Note: An empty filter string (i.e. "") is a no-op and
26361// will result in no filtering. For more information about filtering,
26362// see API Filtering (https://aip.dev/160).
26363func (c *ProjectsAgentKnowledgeBasesListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesListCall {
26364	c.urlParams_.Set("filter", filter)
26365	return c
26366}
26367
26368// PageSize sets the optional parameter "pageSize": The maximum number
26369// of items to return in a single page. By default 10 and at most 100.
26370func (c *ProjectsAgentKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesListCall {
26371	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26372	return c
26373}
26374
26375// PageToken sets the optional parameter "pageToken": The
26376// next_page_token value returned from a previous list request.
26377func (c *ProjectsAgentKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesListCall {
26378	c.urlParams_.Set("pageToken", pageToken)
26379	return c
26380}
26381
26382// Fields allows partial responses to be retrieved. See
26383// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26384// for more information.
26385func (c *ProjectsAgentKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesListCall {
26386	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26387	return c
26388}
26389
26390// IfNoneMatch sets the optional parameter which makes the operation
26391// fail if the object's ETag matches the given value. This is useful for
26392// getting updates only after the object has changed since the last
26393// request. Use googleapi.IsNotModified to check whether the response
26394// error from Do is the result of In-None-Match.
26395func (c *ProjectsAgentKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesListCall {
26396	c.ifNoneMatch_ = entityTag
26397	return c
26398}
26399
26400// Context sets the context to be used in this call's Do method. Any
26401// pending HTTP request will be aborted if the provided context is
26402// canceled.
26403func (c *ProjectsAgentKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesListCall {
26404	c.ctx_ = ctx
26405	return c
26406}
26407
26408// Header returns an http.Header that can be modified by the caller to
26409// add HTTP headers to the request.
26410func (c *ProjectsAgentKnowledgeBasesListCall) Header() http.Header {
26411	if c.header_ == nil {
26412		c.header_ = make(http.Header)
26413	}
26414	return c.header_
26415}
26416
26417func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
26418	reqHeaders := make(http.Header)
26419	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
26420	for k, v := range c.header_ {
26421		reqHeaders[k] = v
26422	}
26423	reqHeaders.Set("User-Agent", c.s.userAgent())
26424	if c.ifNoneMatch_ != "" {
26425		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26426	}
26427	var body io.Reader = nil
26428	c.urlParams_.Set("alt", alt)
26429	c.urlParams_.Set("prettyPrint", "false")
26430	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
26431	urls += "?" + c.urlParams_.Encode()
26432	req, err := http.NewRequest("GET", urls, body)
26433	if err != nil {
26434		return nil, err
26435	}
26436	req.Header = reqHeaders
26437	googleapi.Expand(req.URL, map[string]string{
26438		"parent": c.parent,
26439	})
26440	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26441}
26442
26443// Do executes the "dialogflow.projects.agent.knowledgeBases.list" call.
26444// Exactly one of
26445// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse or error will
26446// be non-nil. Any non-2xx status code is an error. Response headers are
26447// in either
26448// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse
26449// .Header or (if a response was returned at all) in
26450// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26451// whether the returned error was because http.StatusNotModified was
26452// returned.
26453func (c *ProjectsAgentKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
26454	gensupport.SetOptions(c.urlParams_, opts...)
26455	res, err := c.doRequest("json")
26456	if res != nil && res.StatusCode == http.StatusNotModified {
26457		if res.Body != nil {
26458			res.Body.Close()
26459		}
26460		return nil, &googleapi.Error{
26461			Code:   res.StatusCode,
26462			Header: res.Header,
26463		}
26464	}
26465	if err != nil {
26466		return nil, err
26467	}
26468	defer googleapi.CloseBody(res)
26469	if err := googleapi.CheckResponse(res); err != nil {
26470		return nil, err
26471	}
26472	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
26473		ServerResponse: googleapi.ServerResponse{
26474			Header:         res.Header,
26475			HTTPStatusCode: res.StatusCode,
26476		},
26477	}
26478	target := &ret
26479	if err := gensupport.DecodeResponse(target, res); err != nil {
26480		return nil, err
26481	}
26482	return ret, nil
26483	// {
26484	//   "description": "Returns the list of all knowledge bases of the specified agent. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26485	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases",
26486	//   "httpMethod": "GET",
26487	//   "id": "dialogflow.projects.agent.knowledgeBases.list",
26488	//   "parameterOrder": [
26489	//     "parent"
26490	//   ],
26491	//   "parameters": {
26492	//     "filter": {
26493	//       "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).",
26494	//       "location": "query",
26495	//       "type": "string"
26496	//     },
26497	//     "pageSize": {
26498	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
26499	//       "format": "int32",
26500	//       "location": "query",
26501	//       "type": "integer"
26502	//     },
26503	//     "pageToken": {
26504	//       "description": "The next_page_token value returned from a previous list request.",
26505	//       "location": "query",
26506	//       "type": "string"
26507	//     },
26508	//     "parent": {
26509	//       "description": "Required. The project to list of knowledge bases for. Format: `projects//locations/`.",
26510	//       "location": "path",
26511	//       "pattern": "^projects/[^/]+/agent$",
26512	//       "required": true,
26513	//       "type": "string"
26514	//     }
26515	//   },
26516	//   "path": "v2beta1/{+parent}/knowledgeBases",
26517	//   "response": {
26518	//     "$ref": "GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse"
26519	//   },
26520	//   "scopes": [
26521	//     "https://www.googleapis.com/auth/cloud-platform",
26522	//     "https://www.googleapis.com/auth/dialogflow"
26523	//   ]
26524	// }
26525
26526}
26527
26528// Pages invokes f for each page of results.
26529// A non-nil error returned from f will halt the iteration.
26530// The provided context supersedes any context provided to the Context method.
26531func (c *ProjectsAgentKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
26532	c.ctx_ = ctx
26533	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
26534	for {
26535		x, err := c.Do()
26536		if err != nil {
26537			return err
26538		}
26539		if err := f(x); err != nil {
26540			return err
26541		}
26542		if x.NextPageToken == "" {
26543			return nil
26544		}
26545		c.PageToken(x.NextPageToken)
26546	}
26547}
26548
26549// method id "dialogflow.projects.agent.knowledgeBases.patch":
26550
26551type ProjectsAgentKnowledgeBasesPatchCall struct {
26552	s                                         *Service
26553	name                                      string
26554	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
26555	urlParams_                                gensupport.URLParams
26556	ctx_                                      context.Context
26557	header_                                   http.Header
26558}
26559
26560// Patch: Updates the specified knowledge base. Note: The
26561// `projects.agent.knowledgeBases` resource is deprecated; only use
26562// `projects.knowledgeBases`.
26563//
26564// - name: The knowledge base resource name. The name must be empty when
26565//   creating a knowledge base. Format:
26566//   `projects//locations//knowledgeBases/`.
26567func (r *ProjectsAgentKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesPatchCall {
26568	c := &ProjectsAgentKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26569	c.name = name
26570	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
26571	return c
26572}
26573
26574// UpdateMask sets the optional parameter "updateMask": Not specified
26575// means `update all`. Currently, only `display_name` can be updated, an
26576// InvalidArgument will be returned for attempting to update other
26577// fields.
26578func (c *ProjectsAgentKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesPatchCall {
26579	c.urlParams_.Set("updateMask", updateMask)
26580	return c
26581}
26582
26583// Fields allows partial responses to be retrieved. See
26584// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26585// for more information.
26586func (c *ProjectsAgentKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesPatchCall {
26587	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26588	return c
26589}
26590
26591// Context sets the context to be used in this call's Do method. Any
26592// pending HTTP request will be aborted if the provided context is
26593// canceled.
26594func (c *ProjectsAgentKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesPatchCall {
26595	c.ctx_ = ctx
26596	return c
26597}
26598
26599// Header returns an http.Header that can be modified by the caller to
26600// add HTTP headers to the request.
26601func (c *ProjectsAgentKnowledgeBasesPatchCall) Header() http.Header {
26602	if c.header_ == nil {
26603		c.header_ = make(http.Header)
26604	}
26605	return c.header_
26606}
26607
26608func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
26609	reqHeaders := make(http.Header)
26610	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
26611	for k, v := range c.header_ {
26612		reqHeaders[k] = v
26613	}
26614	reqHeaders.Set("User-Agent", c.s.userAgent())
26615	var body io.Reader = nil
26616	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
26617	if err != nil {
26618		return nil, err
26619	}
26620	reqHeaders.Set("Content-Type", "application/json")
26621	c.urlParams_.Set("alt", alt)
26622	c.urlParams_.Set("prettyPrint", "false")
26623	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26624	urls += "?" + c.urlParams_.Encode()
26625	req, err := http.NewRequest("PATCH", urls, body)
26626	if err != nil {
26627		return nil, err
26628	}
26629	req.Header = reqHeaders
26630	googleapi.Expand(req.URL, map[string]string{
26631		"name": c.name,
26632	})
26633	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26634}
26635
26636// Do executes the "dialogflow.projects.agent.knowledgeBases.patch" call.
26637// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
26638// will be non-nil. Any non-2xx status code is an error. Response
26639// headers are in either
26640// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
26641// (if a response was returned at all) in
26642// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26643// whether the returned error was because http.StatusNotModified was
26644// returned.
26645func (c *ProjectsAgentKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
26646	gensupport.SetOptions(c.urlParams_, opts...)
26647	res, err := c.doRequest("json")
26648	if res != nil && res.StatusCode == http.StatusNotModified {
26649		if res.Body != nil {
26650			res.Body.Close()
26651		}
26652		return nil, &googleapi.Error{
26653			Code:   res.StatusCode,
26654			Header: res.Header,
26655		}
26656	}
26657	if err != nil {
26658		return nil, err
26659	}
26660	defer googleapi.CloseBody(res)
26661	if err := googleapi.CheckResponse(res); err != nil {
26662		return nil, err
26663	}
26664	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
26665		ServerResponse: googleapi.ServerResponse{
26666			Header:         res.Header,
26667			HTTPStatusCode: res.StatusCode,
26668		},
26669	}
26670	target := &ret
26671	if err := gensupport.DecodeResponse(target, res); err != nil {
26672		return nil, err
26673	}
26674	return ret, nil
26675	// {
26676	//   "description": "Updates the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
26677	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}",
26678	//   "httpMethod": "PATCH",
26679	//   "id": "dialogflow.projects.agent.knowledgeBases.patch",
26680	//   "parameterOrder": [
26681	//     "name"
26682	//   ],
26683	//   "parameters": {
26684	//     "name": {
26685	//       "description": "The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.",
26686	//       "location": "path",
26687	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
26688	//       "required": true,
26689	//       "type": "string"
26690	//     },
26691	//     "updateMask": {
26692	//       "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.",
26693	//       "format": "google-fieldmask",
26694	//       "location": "query",
26695	//       "type": "string"
26696	//     }
26697	//   },
26698	//   "path": "v2beta1/{+name}",
26699	//   "request": {
26700	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26701	//   },
26702	//   "response": {
26703	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
26704	//   },
26705	//   "scopes": [
26706	//     "https://www.googleapis.com/auth/cloud-platform",
26707	//     "https://www.googleapis.com/auth/dialogflow"
26708	//   ]
26709	// }
26710
26711}
26712
26713// method id "dialogflow.projects.agent.knowledgeBases.documents.create":
26714
26715type ProjectsAgentKnowledgeBasesDocumentsCreateCall struct {
26716	s                                    *Service
26717	parent                               string
26718	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
26719	urlParams_                           gensupport.URLParams
26720	ctx_                                 context.Context
26721	header_                              http.Header
26722}
26723
26724// Create: Creates a new document. Note: The
26725// `projects.agent.knowledgeBases.documents` resource is deprecated;
26726// only use `projects.knowledgeBases.documents`.
26727//
26728// - parent: The knowledge base to create a document for. Format:
26729//   `projects//locations//knowledgeBases/`.
26730func (r *ProjectsAgentKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
26731	c := &ProjectsAgentKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26732	c.parent = parent
26733	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
26734	return c
26735}
26736
26737// ImportGcsCustomMetadata sets the optional parameter
26738// "importGcsCustomMetadata": Whether to import custom metadata from
26739// Google Cloud Storage. Only valid when the document source is Google
26740// Cloud Storage URI.
26741func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
26742	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
26743	return c
26744}
26745
26746// Fields allows partial responses to be retrieved. See
26747// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26748// for more information.
26749func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
26750	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26751	return c
26752}
26753
26754// Context sets the context to be used in this call's Do method. Any
26755// pending HTTP request will be aborted if the provided context is
26756// canceled.
26757func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
26758	c.ctx_ = ctx
26759	return c
26760}
26761
26762// Header returns an http.Header that can be modified by the caller to
26763// add HTTP headers to the request.
26764func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Header() http.Header {
26765	if c.header_ == nil {
26766		c.header_ = make(http.Header)
26767	}
26768	return c.header_
26769}
26770
26771func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
26772	reqHeaders := make(http.Header)
26773	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
26774	for k, v := range c.header_ {
26775		reqHeaders[k] = v
26776	}
26777	reqHeaders.Set("User-Agent", c.s.userAgent())
26778	var body io.Reader = nil
26779	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
26780	if err != nil {
26781		return nil, err
26782	}
26783	reqHeaders.Set("Content-Type", "application/json")
26784	c.urlParams_.Set("alt", alt)
26785	c.urlParams_.Set("prettyPrint", "false")
26786	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
26787	urls += "?" + c.urlParams_.Encode()
26788	req, err := http.NewRequest("POST", urls, body)
26789	if err != nil {
26790		return nil, err
26791	}
26792	req.Header = reqHeaders
26793	googleapi.Expand(req.URL, map[string]string{
26794		"parent": c.parent,
26795	})
26796	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26797}
26798
26799// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.create" call.
26800// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
26801// Any non-2xx status code is an error. Response headers are in either
26802// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
26803// was returned at all) in error.(*googleapi.Error).Header. Use
26804// googleapi.IsNotModified to check whether the returned error was
26805// because http.StatusNotModified was returned.
26806func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26807	gensupport.SetOptions(c.urlParams_, opts...)
26808	res, err := c.doRequest("json")
26809	if res != nil && res.StatusCode == http.StatusNotModified {
26810		if res.Body != nil {
26811			res.Body.Close()
26812		}
26813		return nil, &googleapi.Error{
26814			Code:   res.StatusCode,
26815			Header: res.Header,
26816		}
26817	}
26818	if err != nil {
26819		return nil, err
26820	}
26821	defer googleapi.CloseBody(res)
26822	if err := googleapi.CheckResponse(res); err != nil {
26823		return nil, err
26824	}
26825	ret := &GoogleLongrunningOperation{
26826		ServerResponse: googleapi.ServerResponse{
26827			Header:         res.Header,
26828			HTTPStatusCode: res.StatusCode,
26829		},
26830	}
26831	target := &ret
26832	if err := gensupport.DecodeResponse(target, res); err != nil {
26833		return nil, err
26834	}
26835	return ret, nil
26836	// {
26837	//   "description": "Creates a new document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
26838	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents",
26839	//   "httpMethod": "POST",
26840	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.create",
26841	//   "parameterOrder": [
26842	//     "parent"
26843	//   ],
26844	//   "parameters": {
26845	//     "importGcsCustomMetadata": {
26846	//       "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.",
26847	//       "location": "query",
26848	//       "type": "boolean"
26849	//     },
26850	//     "parent": {
26851	//       "description": "Required. The knowledge base to create a document for. Format: `projects//locations//knowledgeBases/`.",
26852	//       "location": "path",
26853	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
26854	//       "required": true,
26855	//       "type": "string"
26856	//     }
26857	//   },
26858	//   "path": "v2beta1/{+parent}/documents",
26859	//   "request": {
26860	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
26861	//   },
26862	//   "response": {
26863	//     "$ref": "GoogleLongrunningOperation"
26864	//   },
26865	//   "scopes": [
26866	//     "https://www.googleapis.com/auth/cloud-platform",
26867	//     "https://www.googleapis.com/auth/dialogflow"
26868	//   ]
26869	// }
26870
26871}
26872
26873// method id "dialogflow.projects.agent.knowledgeBases.documents.delete":
26874
26875type ProjectsAgentKnowledgeBasesDocumentsDeleteCall struct {
26876	s          *Service
26877	name       string
26878	urlParams_ gensupport.URLParams
26879	ctx_       context.Context
26880	header_    http.Header
26881}
26882
26883// Delete: Deletes the specified document. Note: The
26884// `projects.agent.knowledgeBases.documents` resource is deprecated;
26885// only use `projects.knowledgeBases.documents`.
26886//
26887// - name: The name of the document to delete. Format:
26888//   `projects//locations//knowledgeBases//documents/`.
26889func (r *ProjectsAgentKnowledgeBasesDocumentsService) Delete(name string) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
26890	c := &ProjectsAgentKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26891	c.name = name
26892	return c
26893}
26894
26895// Fields allows partial responses to be retrieved. See
26896// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26897// for more information.
26898func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
26899	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26900	return c
26901}
26902
26903// Context sets the context to be used in this call's Do method. Any
26904// pending HTTP request will be aborted if the provided context is
26905// canceled.
26906func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
26907	c.ctx_ = ctx
26908	return c
26909}
26910
26911// Header returns an http.Header that can be modified by the caller to
26912// add HTTP headers to the request.
26913func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
26914	if c.header_ == nil {
26915		c.header_ = make(http.Header)
26916	}
26917	return c.header_
26918}
26919
26920func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
26921	reqHeaders := make(http.Header)
26922	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
26923	for k, v := range c.header_ {
26924		reqHeaders[k] = v
26925	}
26926	reqHeaders.Set("User-Agent", c.s.userAgent())
26927	var body io.Reader = nil
26928	c.urlParams_.Set("alt", alt)
26929	c.urlParams_.Set("prettyPrint", "false")
26930	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26931	urls += "?" + c.urlParams_.Encode()
26932	req, err := http.NewRequest("DELETE", urls, body)
26933	if err != nil {
26934		return nil, err
26935	}
26936	req.Header = reqHeaders
26937	googleapi.Expand(req.URL, map[string]string{
26938		"name": c.name,
26939	})
26940	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26941}
26942
26943// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.delete" call.
26944// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
26945// Any non-2xx status code is an error. Response headers are in either
26946// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
26947// was returned at all) in error.(*googleapi.Error).Header. Use
26948// googleapi.IsNotModified to check whether the returned error was
26949// because http.StatusNotModified was returned.
26950func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26951	gensupport.SetOptions(c.urlParams_, opts...)
26952	res, err := c.doRequest("json")
26953	if res != nil && res.StatusCode == http.StatusNotModified {
26954		if res.Body != nil {
26955			res.Body.Close()
26956		}
26957		return nil, &googleapi.Error{
26958			Code:   res.StatusCode,
26959			Header: res.Header,
26960		}
26961	}
26962	if err != nil {
26963		return nil, err
26964	}
26965	defer googleapi.CloseBody(res)
26966	if err := googleapi.CheckResponse(res); err != nil {
26967		return nil, err
26968	}
26969	ret := &GoogleLongrunningOperation{
26970		ServerResponse: googleapi.ServerResponse{
26971			Header:         res.Header,
26972			HTTPStatusCode: res.StatusCode,
26973		},
26974	}
26975	target := &ret
26976	if err := gensupport.DecodeResponse(target, res); err != nil {
26977		return nil, err
26978	}
26979	return ret, nil
26980	// {
26981	//   "description": "Deletes the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
26982	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
26983	//   "httpMethod": "DELETE",
26984	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.delete",
26985	//   "parameterOrder": [
26986	//     "name"
26987	//   ],
26988	//   "parameters": {
26989	//     "name": {
26990	//       "description": "Required. The name of the document to delete. Format: `projects//locations//knowledgeBases//documents/`.",
26991	//       "location": "path",
26992	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
26993	//       "required": true,
26994	//       "type": "string"
26995	//     }
26996	//   },
26997	//   "path": "v2beta1/{+name}",
26998	//   "response": {
26999	//     "$ref": "GoogleLongrunningOperation"
27000	//   },
27001	//   "scopes": [
27002	//     "https://www.googleapis.com/auth/cloud-platform",
27003	//     "https://www.googleapis.com/auth/dialogflow"
27004	//   ]
27005	// }
27006
27007}
27008
27009// method id "dialogflow.projects.agent.knowledgeBases.documents.get":
27010
27011type ProjectsAgentKnowledgeBasesDocumentsGetCall struct {
27012	s            *Service
27013	name         string
27014	urlParams_   gensupport.URLParams
27015	ifNoneMatch_ string
27016	ctx_         context.Context
27017	header_      http.Header
27018}
27019
27020// Get: Retrieves the specified document. Note: The
27021// `projects.agent.knowledgeBases.documents` resource is deprecated;
27022// only use `projects.knowledgeBases.documents`.
27023//
27024// - name: The name of the document to retrieve. Format
27025//   `projects//locations//knowledgeBases//documents/`.
27026func (r *ProjectsAgentKnowledgeBasesDocumentsService) Get(name string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27027	c := &ProjectsAgentKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27028	c.name = name
27029	return c
27030}
27031
27032// Fields allows partial responses to be retrieved. See
27033// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27034// for more information.
27035func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27036	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27037	return c
27038}
27039
27040// IfNoneMatch sets the optional parameter which makes the operation
27041// fail if the object's ETag matches the given value. This is useful for
27042// getting updates only after the object has changed since the last
27043// request. Use googleapi.IsNotModified to check whether the response
27044// error from Do is the result of In-None-Match.
27045func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27046	c.ifNoneMatch_ = entityTag
27047	return c
27048}
27049
27050// Context sets the context to be used in this call's Do method. Any
27051// pending HTTP request will be aborted if the provided context is
27052// canceled.
27053func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
27054	c.ctx_ = ctx
27055	return c
27056}
27057
27058// Header returns an http.Header that can be modified by the caller to
27059// add HTTP headers to the request.
27060func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Header() http.Header {
27061	if c.header_ == nil {
27062		c.header_ = make(http.Header)
27063	}
27064	return c.header_
27065}
27066
27067func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
27068	reqHeaders := make(http.Header)
27069	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
27070	for k, v := range c.header_ {
27071		reqHeaders[k] = v
27072	}
27073	reqHeaders.Set("User-Agent", c.s.userAgent())
27074	if c.ifNoneMatch_ != "" {
27075		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27076	}
27077	var body io.Reader = nil
27078	c.urlParams_.Set("alt", alt)
27079	c.urlParams_.Set("prettyPrint", "false")
27080	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27081	urls += "?" + c.urlParams_.Encode()
27082	req, err := http.NewRequest("GET", urls, body)
27083	if err != nil {
27084		return nil, err
27085	}
27086	req.Header = reqHeaders
27087	googleapi.Expand(req.URL, map[string]string{
27088		"name": c.name,
27089	})
27090	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27091}
27092
27093// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.get" call.
27094// Exactly one of *GoogleCloudDialogflowV2beta1Document or error will be
27095// non-nil. Any non-2xx status code is an error. Response headers are in
27096// either *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or
27097// (if a response was returned at all) in
27098// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27099// whether the returned error was because http.StatusNotModified was
27100// returned.
27101func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
27102	gensupport.SetOptions(c.urlParams_, opts...)
27103	res, err := c.doRequest("json")
27104	if res != nil && res.StatusCode == http.StatusNotModified {
27105		if res.Body != nil {
27106			res.Body.Close()
27107		}
27108		return nil, &googleapi.Error{
27109			Code:   res.StatusCode,
27110			Header: res.Header,
27111		}
27112	}
27113	if err != nil {
27114		return nil, err
27115	}
27116	defer googleapi.CloseBody(res)
27117	if err := googleapi.CheckResponse(res); err != nil {
27118		return nil, err
27119	}
27120	ret := &GoogleCloudDialogflowV2beta1Document{
27121		ServerResponse: googleapi.ServerResponse{
27122			Header:         res.Header,
27123			HTTPStatusCode: res.StatusCode,
27124		},
27125	}
27126	target := &ret
27127	if err := gensupport.DecodeResponse(target, res); err != nil {
27128		return nil, err
27129	}
27130	return ret, nil
27131	// {
27132	//   "description": "Retrieves the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
27133	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
27134	//   "httpMethod": "GET",
27135	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.get",
27136	//   "parameterOrder": [
27137	//     "name"
27138	//   ],
27139	//   "parameters": {
27140	//     "name": {
27141	//       "description": "Required. The name of the document to retrieve. Format `projects//locations//knowledgeBases//documents/`.",
27142	//       "location": "path",
27143	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
27144	//       "required": true,
27145	//       "type": "string"
27146	//     }
27147	//   },
27148	//   "path": "v2beta1/{+name}",
27149	//   "response": {
27150	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
27151	//   },
27152	//   "scopes": [
27153	//     "https://www.googleapis.com/auth/cloud-platform",
27154	//     "https://www.googleapis.com/auth/dialogflow"
27155	//   ]
27156	// }
27157
27158}
27159
27160// method id "dialogflow.projects.agent.knowledgeBases.documents.list":
27161
27162type ProjectsAgentKnowledgeBasesDocumentsListCall struct {
27163	s            *Service
27164	parent       string
27165	urlParams_   gensupport.URLParams
27166	ifNoneMatch_ string
27167	ctx_         context.Context
27168	header_      http.Header
27169}
27170
27171// List: Returns the list of all documents of the knowledge base. Note:
27172// The `projects.agent.knowledgeBases.documents` resource is deprecated;
27173// only use `projects.knowledgeBases.documents`.
27174//
27175// - parent: The knowledge base to list all documents for. Format:
27176//   `projects//locations//knowledgeBases/`.
27177func (r *ProjectsAgentKnowledgeBasesDocumentsService) List(parent string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27178	c := &ProjectsAgentKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27179	c.parent = parent
27180	return c
27181}
27182
27183// Filter sets the optional parameter "filter": The filter expression
27184// used to filter documents returned by the list method. The expression
27185// has the following syntax: [AND ] ... The following fields and
27186// operators are supported: * knowledge_types with has(:) operator *
27187// display_name with has(:) operator * state with equals(=) operator
27188// Examples: * "knowledge_types:FAQ" matches documents with FAQ
27189// knowledge type. * "display_name:customer" matches documents whose
27190// display name contains "customer". * "state=ACTIVE" matches documents
27191// with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE" matches
27192// all active FAQ documents. For more information about filtering, see
27193// API Filtering (https://aip.dev/160).
27194func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27195	c.urlParams_.Set("filter", filter)
27196	return c
27197}
27198
27199// PageSize sets the optional parameter "pageSize": The maximum number
27200// of items to return in a single page. By default 10 and at most 100.
27201func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27202	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27203	return c
27204}
27205
27206// PageToken sets the optional parameter "pageToken": The
27207// next_page_token value returned from a previous list request.
27208func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27209	c.urlParams_.Set("pageToken", pageToken)
27210	return c
27211}
27212
27213// Fields allows partial responses to be retrieved. See
27214// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27215// for more information.
27216func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27217	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27218	return c
27219}
27220
27221// IfNoneMatch sets the optional parameter which makes the operation
27222// fail if the object's ETag matches the given value. This is useful for
27223// getting updates only after the object has changed since the last
27224// request. Use googleapi.IsNotModified to check whether the response
27225// error from Do is the result of In-None-Match.
27226func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27227	c.ifNoneMatch_ = entityTag
27228	return c
27229}
27230
27231// Context sets the context to be used in this call's Do method. Any
27232// pending HTTP request will be aborted if the provided context is
27233// canceled.
27234func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsListCall {
27235	c.ctx_ = ctx
27236	return c
27237}
27238
27239// Header returns an http.Header that can be modified by the caller to
27240// add HTTP headers to the request.
27241func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Header() http.Header {
27242	if c.header_ == nil {
27243		c.header_ = make(http.Header)
27244	}
27245	return c.header_
27246}
27247
27248func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
27249	reqHeaders := make(http.Header)
27250	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
27251	for k, v := range c.header_ {
27252		reqHeaders[k] = v
27253	}
27254	reqHeaders.Set("User-Agent", c.s.userAgent())
27255	if c.ifNoneMatch_ != "" {
27256		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27257	}
27258	var body io.Reader = nil
27259	c.urlParams_.Set("alt", alt)
27260	c.urlParams_.Set("prettyPrint", "false")
27261	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
27262	urls += "?" + c.urlParams_.Encode()
27263	req, err := http.NewRequest("GET", urls, body)
27264	if err != nil {
27265		return nil, err
27266	}
27267	req.Header = reqHeaders
27268	googleapi.Expand(req.URL, map[string]string{
27269		"parent": c.parent,
27270	})
27271	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27272}
27273
27274// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.list" call.
27275// Exactly one of *GoogleCloudDialogflowV2beta1ListDocumentsResponse or
27276// error will be non-nil. Any non-2xx status code is an error. Response
27277// headers are in either
27278// *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Head
27279// er or (if a response was returned at all) in
27280// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27281// whether the returned error was because http.StatusNotModified was
27282// returned.
27283func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
27284	gensupport.SetOptions(c.urlParams_, opts...)
27285	res, err := c.doRequest("json")
27286	if res != nil && res.StatusCode == http.StatusNotModified {
27287		if res.Body != nil {
27288			res.Body.Close()
27289		}
27290		return nil, &googleapi.Error{
27291			Code:   res.StatusCode,
27292			Header: res.Header,
27293		}
27294	}
27295	if err != nil {
27296		return nil, err
27297	}
27298	defer googleapi.CloseBody(res)
27299	if err := googleapi.CheckResponse(res); err != nil {
27300		return nil, err
27301	}
27302	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
27303		ServerResponse: googleapi.ServerResponse{
27304			Header:         res.Header,
27305			HTTPStatusCode: res.StatusCode,
27306		},
27307	}
27308	target := &ret
27309	if err := gensupport.DecodeResponse(target, res); err != nil {
27310		return nil, err
27311	}
27312	return ret, nil
27313	// {
27314	//   "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`.",
27315	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents",
27316	//   "httpMethod": "GET",
27317	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.list",
27318	//   "parameterOrder": [
27319	//     "parent"
27320	//   ],
27321	//   "parameters": {
27322	//     "filter": {
27323	//       "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).",
27324	//       "location": "query",
27325	//       "type": "string"
27326	//     },
27327	//     "pageSize": {
27328	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
27329	//       "format": "int32",
27330	//       "location": "query",
27331	//       "type": "integer"
27332	//     },
27333	//     "pageToken": {
27334	//       "description": "The next_page_token value returned from a previous list request.",
27335	//       "location": "query",
27336	//       "type": "string"
27337	//     },
27338	//     "parent": {
27339	//       "description": "Required. The knowledge base to list all documents for. Format: `projects//locations//knowledgeBases/`.",
27340	//       "location": "path",
27341	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+$",
27342	//       "required": true,
27343	//       "type": "string"
27344	//     }
27345	//   },
27346	//   "path": "v2beta1/{+parent}/documents",
27347	//   "response": {
27348	//     "$ref": "GoogleCloudDialogflowV2beta1ListDocumentsResponse"
27349	//   },
27350	//   "scopes": [
27351	//     "https://www.googleapis.com/auth/cloud-platform",
27352	//     "https://www.googleapis.com/auth/dialogflow"
27353	//   ]
27354	// }
27355
27356}
27357
27358// Pages invokes f for each page of results.
27359// A non-nil error returned from f will halt the iteration.
27360// The provided context supersedes any context provided to the Context method.
27361func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
27362	c.ctx_ = ctx
27363	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
27364	for {
27365		x, err := c.Do()
27366		if err != nil {
27367			return err
27368		}
27369		if err := f(x); err != nil {
27370			return err
27371		}
27372		if x.NextPageToken == "" {
27373			return nil
27374		}
27375		c.PageToken(x.NextPageToken)
27376	}
27377}
27378
27379// method id "dialogflow.projects.agent.knowledgeBases.documents.patch":
27380
27381type ProjectsAgentKnowledgeBasesDocumentsPatchCall struct {
27382	s                                    *Service
27383	name                                 string
27384	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
27385	urlParams_                           gensupport.URLParams
27386	ctx_                                 context.Context
27387	header_                              http.Header
27388}
27389
27390// Patch: Updates the specified document. Note: The
27391// `projects.agent.knowledgeBases.documents` resource is deprecated;
27392// only use `projects.knowledgeBases.documents`.
27393//
27394// - name: Optional. The document resource name. The name must be empty
27395//   when creating a document. Format:
27396//   `projects//locations//knowledgeBases//documents/`.
27397func (r *ProjectsAgentKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27398	c := &ProjectsAgentKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27399	c.name = name
27400	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
27401	return c
27402}
27403
27404// UpdateMask sets the optional parameter "updateMask": Not specified
27405// means `update all`. Currently, only `display_name` can be updated, an
27406// InvalidArgument will be returned for attempting to update other
27407// fields.
27408func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27409	c.urlParams_.Set("updateMask", updateMask)
27410	return c
27411}
27412
27413// Fields allows partial responses to be retrieved. See
27414// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27415// for more information.
27416func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27417	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27418	return c
27419}
27420
27421// Context sets the context to be used in this call's Do method. Any
27422// pending HTTP request will be aborted if the provided context is
27423// canceled.
27424func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
27425	c.ctx_ = ctx
27426	return c
27427}
27428
27429// Header returns an http.Header that can be modified by the caller to
27430// add HTTP headers to the request.
27431func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Header() http.Header {
27432	if c.header_ == nil {
27433		c.header_ = make(http.Header)
27434	}
27435	return c.header_
27436}
27437
27438func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
27439	reqHeaders := make(http.Header)
27440	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
27441	for k, v := range c.header_ {
27442		reqHeaders[k] = v
27443	}
27444	reqHeaders.Set("User-Agent", c.s.userAgent())
27445	var body io.Reader = nil
27446	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
27447	if err != nil {
27448		return nil, err
27449	}
27450	reqHeaders.Set("Content-Type", "application/json")
27451	c.urlParams_.Set("alt", alt)
27452	c.urlParams_.Set("prettyPrint", "false")
27453	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27454	urls += "?" + c.urlParams_.Encode()
27455	req, err := http.NewRequest("PATCH", urls, body)
27456	if err != nil {
27457		return nil, err
27458	}
27459	req.Header = reqHeaders
27460	googleapi.Expand(req.URL, map[string]string{
27461		"name": c.name,
27462	})
27463	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27464}
27465
27466// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.patch" call.
27467// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
27468// Any non-2xx status code is an error. Response headers are in either
27469// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
27470// was returned at all) in error.(*googleapi.Error).Header. Use
27471// googleapi.IsNotModified to check whether the returned error was
27472// because http.StatusNotModified was returned.
27473func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27474	gensupport.SetOptions(c.urlParams_, opts...)
27475	res, err := c.doRequest("json")
27476	if res != nil && res.StatusCode == http.StatusNotModified {
27477		if res.Body != nil {
27478			res.Body.Close()
27479		}
27480		return nil, &googleapi.Error{
27481			Code:   res.StatusCode,
27482			Header: res.Header,
27483		}
27484	}
27485	if err != nil {
27486		return nil, err
27487	}
27488	defer googleapi.CloseBody(res)
27489	if err := googleapi.CheckResponse(res); err != nil {
27490		return nil, err
27491	}
27492	ret := &GoogleLongrunningOperation{
27493		ServerResponse: googleapi.ServerResponse{
27494			Header:         res.Header,
27495			HTTPStatusCode: res.StatusCode,
27496		},
27497	}
27498	target := &ret
27499	if err := gensupport.DecodeResponse(target, res); err != nil {
27500		return nil, err
27501	}
27502	return ret, nil
27503	// {
27504	//   "description": "Updates the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
27505	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
27506	//   "httpMethod": "PATCH",
27507	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.patch",
27508	//   "parameterOrder": [
27509	//     "name"
27510	//   ],
27511	//   "parameters": {
27512	//     "name": {
27513	//       "description": "Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.",
27514	//       "location": "path",
27515	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
27516	//       "required": true,
27517	//       "type": "string"
27518	//     },
27519	//     "updateMask": {
27520	//       "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.",
27521	//       "format": "google-fieldmask",
27522	//       "location": "query",
27523	//       "type": "string"
27524	//     }
27525	//   },
27526	//   "path": "v2beta1/{+name}",
27527	//   "request": {
27528	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
27529	//   },
27530	//   "response": {
27531	//     "$ref": "GoogleLongrunningOperation"
27532	//   },
27533	//   "scopes": [
27534	//     "https://www.googleapis.com/auth/cloud-platform",
27535	//     "https://www.googleapis.com/auth/dialogflow"
27536	//   ]
27537	// }
27538
27539}
27540
27541// method id "dialogflow.projects.agent.knowledgeBases.documents.reload":
27542
27543type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct {
27544	s                                                 *Service
27545	name                                              string
27546	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
27547	urlParams_                                        gensupport.URLParams
27548	ctx_                                              context.Context
27549	header_                                           http.Header
27550}
27551
27552// Reload: Reloads the specified document from its specified source,
27553// content_uri or content. The previously loaded content of the document
27554// will be deleted. Note: Even when the content of the document has not
27555// changed, there still may be side effects because of internal
27556// implementation changes. Note: If the document source is Google Cloud
27557// Storage URI, its metadata will be replaced with the custom metadata
27558// from Google Cloud Storage if the `import_gcs_custom_metadata` field
27559// is set to true in the request. Note: The
27560// `projects.agent.knowledgeBases.documents` resource is deprecated;
27561// only use `projects.knowledgeBases.documents`.
27562//
27563// - name: The name of the document to reload. Format:
27564//   `projects//locations//knowledgeBases//documents/`.
27565func (r *ProjectsAgentKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
27566	c := &ProjectsAgentKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27567	c.name = name
27568	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
27569	return c
27570}
27571
27572// Fields allows partial responses to be retrieved. See
27573// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27574// for more information.
27575func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
27576	c.urlParams_.Set("fields", googleapi.CombineFields(s))
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 *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
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 *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Header() http.Header {
27591	if c.header_ == nil {
27592		c.header_ = make(http.Header)
27593	}
27594	return c.header_
27595}
27596
27597func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
27598	reqHeaders := make(http.Header)
27599	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
27600	for k, v := range c.header_ {
27601		reqHeaders[k] = v
27602	}
27603	reqHeaders.Set("User-Agent", c.s.userAgent())
27604	var body io.Reader = nil
27605	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
27606	if err != nil {
27607		return nil, err
27608	}
27609	reqHeaders.Set("Content-Type", "application/json")
27610	c.urlParams_.Set("alt", alt)
27611	c.urlParams_.Set("prettyPrint", "false")
27612	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
27613	urls += "?" + c.urlParams_.Encode()
27614	req, err := http.NewRequest("POST", urls, body)
27615	if err != nil {
27616		return nil, err
27617	}
27618	req.Header = reqHeaders
27619	googleapi.Expand(req.URL, map[string]string{
27620		"name": c.name,
27621	})
27622	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27623}
27624
27625// Do executes the "dialogflow.projects.agent.knowledgeBases.documents.reload" call.
27626// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
27627// Any non-2xx status code is an error. Response headers are in either
27628// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
27629// was returned at all) in error.(*googleapi.Error).Header. Use
27630// googleapi.IsNotModified to check whether the returned error was
27631// because http.StatusNotModified was returned.
27632func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{
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": "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`.",
27664	//   "flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
27665	//   "httpMethod": "POST",
27666	//   "id": "dialogflow.projects.agent.knowledgeBases.documents.reload",
27667	//   "parameterOrder": [
27668	//     "name"
27669	//   ],
27670	//   "parameters": {
27671	//     "name": {
27672	//       "description": "Required. The name of the document to reload. Format: `projects//locations//knowledgeBases//documents/`",
27673	//       "location": "path",
27674	//       "pattern": "^projects/[^/]+/agent/knowledgeBases/[^/]+/documents/[^/]+$",
27675	//       "required": true,
27676	//       "type": "string"
27677	//     }
27678	//   },
27679	//   "path": "v2beta1/{+name}:reload",
27680	//   "request": {
27681	//     "$ref": "GoogleCloudDialogflowV2beta1ReloadDocumentRequest"
27682	//   },
27683	//   "response": {
27684	//     "$ref": "GoogleLongrunningOperation"
27685	//   },
27686	//   "scopes": [
27687	//     "https://www.googleapis.com/auth/cloud-platform",
27688	//     "https://www.googleapis.com/auth/dialogflow"
27689	//   ]
27690	// }
27691
27692}
27693
27694// method id "dialogflow.projects.agent.sessions.deleteContexts":
27695
27696type ProjectsAgentSessionsDeleteContextsCall struct {
27697	s          *Service
27698	parent     string
27699	urlParams_ gensupport.URLParams
27700	ctx_       context.Context
27701	header_    http.Header
27702}
27703
27704// DeleteContexts: Deletes all active contexts in the specified session.
27705//
27706// - parent: The name of the session to delete all contexts from.
27707//   Supported formats: - `projects//agent/sessions/, -
27708//   `projects//locations//agent/sessions/`, -
27709//   `projects//agent/environments//users//sessions/`, -
27710//   `projects//locations//agent/environments//users//sessions/`, If
27711//   `Location ID` is not specified we assume default 'us' location. If
27712//   `Environment ID` is not specified we assume default 'draft'
27713//   environment. If `User ID` is not specified, we assume default '-'
27714//   user.
27715func (r *ProjectsAgentSessionsService) DeleteContexts(parent string) *ProjectsAgentSessionsDeleteContextsCall {
27716	c := &ProjectsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27717	c.parent = parent
27718	return c
27719}
27720
27721// Fields allows partial responses to be retrieved. See
27722// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27723// for more information.
27724func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall {
27725	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27726	return c
27727}
27728
27729// Context sets the context to be used in this call's Do method. Any
27730// pending HTTP request will be aborted if the provided context is
27731// canceled.
27732func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall {
27733	c.ctx_ = ctx
27734	return c
27735}
27736
27737// Header returns an http.Header that can be modified by the caller to
27738// add HTTP headers to the request.
27739func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header {
27740	if c.header_ == nil {
27741		c.header_ = make(http.Header)
27742	}
27743	return c.header_
27744}
27745
27746func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
27747	reqHeaders := make(http.Header)
27748	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
27749	for k, v := range c.header_ {
27750		reqHeaders[k] = v
27751	}
27752	reqHeaders.Set("User-Agent", c.s.userAgent())
27753	var body io.Reader = nil
27754	c.urlParams_.Set("alt", alt)
27755	c.urlParams_.Set("prettyPrint", "false")
27756	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
27757	urls += "?" + c.urlParams_.Encode()
27758	req, err := http.NewRequest("DELETE", urls, body)
27759	if err != nil {
27760		return nil, err
27761	}
27762	req.Header = reqHeaders
27763	googleapi.Expand(req.URL, map[string]string{
27764		"parent": c.parent,
27765	})
27766	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27767}
27768
27769// Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call.
27770// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27771// non-2xx status code is an error. Response headers are in either
27772// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27773// returned at all) in error.(*googleapi.Error).Header. Use
27774// googleapi.IsNotModified to check whether the returned error was
27775// because http.StatusNotModified was returned.
27776func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27777	gensupport.SetOptions(c.urlParams_, opts...)
27778	res, err := c.doRequest("json")
27779	if res != nil && res.StatusCode == http.StatusNotModified {
27780		if res.Body != nil {
27781			res.Body.Close()
27782		}
27783		return nil, &googleapi.Error{
27784			Code:   res.StatusCode,
27785			Header: res.Header,
27786		}
27787	}
27788	if err != nil {
27789		return nil, err
27790	}
27791	defer googleapi.CloseBody(res)
27792	if err := googleapi.CheckResponse(res); err != nil {
27793		return nil, err
27794	}
27795	ret := &GoogleProtobufEmpty{
27796		ServerResponse: googleapi.ServerResponse{
27797			Header:         res.Header,
27798			HTTPStatusCode: res.StatusCode,
27799		},
27800	}
27801	target := &ret
27802	if err := gensupport.DecodeResponse(target, res); err != nil {
27803		return nil, err
27804	}
27805	return ret, nil
27806	// {
27807	//   "description": "Deletes all active contexts in the specified session.",
27808	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts",
27809	//   "httpMethod": "DELETE",
27810	//   "id": "dialogflow.projects.agent.sessions.deleteContexts",
27811	//   "parameterOrder": [
27812	//     "parent"
27813	//   ],
27814	//   "parameters": {
27815	//     "parent": {
27816	//       "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.",
27817	//       "location": "path",
27818	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
27819	//       "required": true,
27820	//       "type": "string"
27821	//     }
27822	//   },
27823	//   "path": "v2beta1/{+parent}/contexts",
27824	//   "response": {
27825	//     "$ref": "GoogleProtobufEmpty"
27826	//   },
27827	//   "scopes": [
27828	//     "https://www.googleapis.com/auth/cloud-platform",
27829	//     "https://www.googleapis.com/auth/dialogflow"
27830	//   ]
27831	// }
27832
27833}
27834
27835// method id "dialogflow.projects.agent.sessions.detectIntent":
27836
27837type ProjectsAgentSessionsDetectIntentCall struct {
27838	s                                               *Service
27839	sessionid                                       string
27840	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
27841	urlParams_                                      gensupport.URLParams
27842	ctx_                                            context.Context
27843	header_                                         http.Header
27844}
27845
27846// DetectIntent: Processes a natural language query and returns
27847// structured, actionable data as a result. This method is not
27848// idempotent, because it may cause contexts and session entity types to
27849// be updated, which in turn might affect results of future queries.
27850// Note: Always use agent versions for production traffic. See Versions
27851// and environments
27852// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
27853//
27854// - session: The name of the session this query is sent to. Supported
27855//   formats: - `projects//agent/sessions/, -
27856//   `projects//locations//agent/sessions/`, -
27857//   `projects//agent/environments//users//sessions/`, -
27858//   `projects//locations//agent/environments//users//sessions/`, If
27859//   `Location ID` is not specified we assume default 'us' location. If
27860//   `Environment ID` is not specified, we assume default 'draft'
27861//   environment (`Environment ID` might be referred to as environment
27862//   name at some places). If `User ID` is not specified, we are using
27863//   "-". It's up to the API caller to choose an appropriate `Session
27864//   ID` and `User Id`. They can be a random number or some type of user
27865//   and session identifiers (preferably hashed). The length of the
27866//   `Session ID` and `User ID` must not exceed 36 characters. For more
27867//   information, see the API interactions guide
27868//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
27869//   Always use agent versions for production traffic. See Versions and
27870//   environments
27871//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
27872func (r *ProjectsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall {
27873	c := &ProjectsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27874	c.sessionid = sessionid
27875	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
27876	return c
27877}
27878
27879// Fields allows partial responses to be retrieved. See
27880// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27881// for more information.
27882func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall {
27883	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27884	return c
27885}
27886
27887// Context sets the context to be used in this call's Do method. Any
27888// pending HTTP request will be aborted if the provided context is
27889// canceled.
27890func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall {
27891	c.ctx_ = ctx
27892	return c
27893}
27894
27895// Header returns an http.Header that can be modified by the caller to
27896// add HTTP headers to the request.
27897func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header {
27898	if c.header_ == nil {
27899		c.header_ = make(http.Header)
27900	}
27901	return c.header_
27902}
27903
27904func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
27905	reqHeaders := make(http.Header)
27906	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
27907	for k, v := range c.header_ {
27908		reqHeaders[k] = v
27909	}
27910	reqHeaders.Set("User-Agent", c.s.userAgent())
27911	var body io.Reader = nil
27912	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
27913	if err != nil {
27914		return nil, err
27915	}
27916	reqHeaders.Set("Content-Type", "application/json")
27917	c.urlParams_.Set("alt", alt)
27918	c.urlParams_.Set("prettyPrint", "false")
27919	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
27920	urls += "?" + c.urlParams_.Encode()
27921	req, err := http.NewRequest("POST", urls, body)
27922	if err != nil {
27923		return nil, err
27924	}
27925	req.Header = reqHeaders
27926	googleapi.Expand(req.URL, map[string]string{
27927		"session": c.sessionid,
27928	})
27929	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27930}
27931
27932// Do executes the "dialogflow.projects.agent.sessions.detectIntent" call.
27933// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
27934// error will be non-nil. Any non-2xx status code is an error. Response
27935// headers are in either
27936// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
27937// r or (if a response was returned at all) in
27938// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27939// whether the returned error was because http.StatusNotModified was
27940// returned.
27941func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
27942	gensupport.SetOptions(c.urlParams_, opts...)
27943	res, err := c.doRequest("json")
27944	if res != nil && res.StatusCode == http.StatusNotModified {
27945		if res.Body != nil {
27946			res.Body.Close()
27947		}
27948		return nil, &googleapi.Error{
27949			Code:   res.StatusCode,
27950			Header: res.Header,
27951		}
27952	}
27953	if err != nil {
27954		return nil, err
27955	}
27956	defer googleapi.CloseBody(res)
27957	if err := googleapi.CheckResponse(res); err != nil {
27958		return nil, err
27959	}
27960	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
27961		ServerResponse: googleapi.ServerResponse{
27962			Header:         res.Header,
27963			HTTPStatusCode: res.StatusCode,
27964		},
27965	}
27966	target := &ret
27967	if err := gensupport.DecodeResponse(target, res); err != nil {
27968		return nil, err
27969	}
27970	return ret, nil
27971	// {
27972	//   "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).",
27973	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}:detectIntent",
27974	//   "httpMethod": "POST",
27975	//   "id": "dialogflow.projects.agent.sessions.detectIntent",
27976	//   "parameterOrder": [
27977	//     "session"
27978	//   ],
27979	//   "parameters": {
27980	//     "session": {
27981	//       "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).",
27982	//       "location": "path",
27983	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
27984	//       "required": true,
27985	//       "type": "string"
27986	//     }
27987	//   },
27988	//   "path": "v2beta1/{+session}:detectIntent",
27989	//   "request": {
27990	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
27991	//   },
27992	//   "response": {
27993	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
27994	//   },
27995	//   "scopes": [
27996	//     "https://www.googleapis.com/auth/cloud-platform",
27997	//     "https://www.googleapis.com/auth/dialogflow"
27998	//   ]
27999	// }
28000
28001}
28002
28003// method id "dialogflow.projects.agent.sessions.contexts.create":
28004
28005type ProjectsAgentSessionsContextsCreateCall struct {
28006	s                                   *Service
28007	parent                              string
28008	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
28009	urlParams_                          gensupport.URLParams
28010	ctx_                                context.Context
28011	header_                             http.Header
28012}
28013
28014// Create: Creates a context. If the specified context already exists,
28015// overrides the context.
28016//
28017// - parent: The session to create a context for. Supported formats: -
28018//   `projects//agent/sessions/, -
28019//   `projects//locations//agent/sessions/`, -
28020//   `projects//agent/environments//users//sessions/`, -
28021//   `projects//locations//agent/environments//users//sessions/`, If
28022//   `Location ID` is not specified we assume default 'us' location. If
28023//   `Environment ID` is not specified, we assume default 'draft'
28024//   environment. If `User ID` is not specified, we assume default '-'
28025//   user.
28026func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsCreateCall {
28027	c := &ProjectsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28028	c.parent = parent
28029	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
28030	return c
28031}
28032
28033// Fields allows partial responses to be retrieved. See
28034// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28035// for more information.
28036func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall {
28037	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28038	return c
28039}
28040
28041// Context sets the context to be used in this call's Do method. Any
28042// pending HTTP request will be aborted if the provided context is
28043// canceled.
28044func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall {
28045	c.ctx_ = ctx
28046	return c
28047}
28048
28049// Header returns an http.Header that can be modified by the caller to
28050// add HTTP headers to the request.
28051func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header {
28052	if c.header_ == nil {
28053		c.header_ = make(http.Header)
28054	}
28055	return c.header_
28056}
28057
28058func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
28059	reqHeaders := make(http.Header)
28060	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
28061	for k, v := range c.header_ {
28062		reqHeaders[k] = v
28063	}
28064	reqHeaders.Set("User-Agent", c.s.userAgent())
28065	var body io.Reader = nil
28066	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
28067	if err != nil {
28068		return nil, err
28069	}
28070	reqHeaders.Set("Content-Type", "application/json")
28071	c.urlParams_.Set("alt", alt)
28072	c.urlParams_.Set("prettyPrint", "false")
28073	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
28074	urls += "?" + c.urlParams_.Encode()
28075	req, err := http.NewRequest("POST", urls, body)
28076	if err != nil {
28077		return nil, err
28078	}
28079	req.Header = reqHeaders
28080	googleapi.Expand(req.URL, map[string]string{
28081		"parent": c.parent,
28082	})
28083	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28084}
28085
28086// Do executes the "dialogflow.projects.agent.sessions.contexts.create" call.
28087// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
28088// non-nil. Any non-2xx status code is an error. Response headers are in
28089// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
28090// (if a response was returned at all) in
28091// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28092// whether the returned error was because http.StatusNotModified was
28093// returned.
28094func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
28095	gensupport.SetOptions(c.urlParams_, opts...)
28096	res, err := c.doRequest("json")
28097	if res != nil && res.StatusCode == http.StatusNotModified {
28098		if res.Body != nil {
28099			res.Body.Close()
28100		}
28101		return nil, &googleapi.Error{
28102			Code:   res.StatusCode,
28103			Header: res.Header,
28104		}
28105	}
28106	if err != nil {
28107		return nil, err
28108	}
28109	defer googleapi.CloseBody(res)
28110	if err := googleapi.CheckResponse(res); err != nil {
28111		return nil, err
28112	}
28113	ret := &GoogleCloudDialogflowV2beta1Context{
28114		ServerResponse: googleapi.ServerResponse{
28115			Header:         res.Header,
28116			HTTPStatusCode: res.StatusCode,
28117		},
28118	}
28119	target := &ret
28120	if err := gensupport.DecodeResponse(target, res); err != nil {
28121		return nil, err
28122	}
28123	return ret, nil
28124	// {
28125	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
28126	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts",
28127	//   "httpMethod": "POST",
28128	//   "id": "dialogflow.projects.agent.sessions.contexts.create",
28129	//   "parameterOrder": [
28130	//     "parent"
28131	//   ],
28132	//   "parameters": {
28133	//     "parent": {
28134	//       "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.",
28135	//       "location": "path",
28136	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
28137	//       "required": true,
28138	//       "type": "string"
28139	//     }
28140	//   },
28141	//   "path": "v2beta1/{+parent}/contexts",
28142	//   "request": {
28143	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28144	//   },
28145	//   "response": {
28146	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28147	//   },
28148	//   "scopes": [
28149	//     "https://www.googleapis.com/auth/cloud-platform",
28150	//     "https://www.googleapis.com/auth/dialogflow"
28151	//   ]
28152	// }
28153
28154}
28155
28156// method id "dialogflow.projects.agent.sessions.contexts.delete":
28157
28158type ProjectsAgentSessionsContextsDeleteCall struct {
28159	s          *Service
28160	name       string
28161	urlParams_ gensupport.URLParams
28162	ctx_       context.Context
28163	header_    http.Header
28164}
28165
28166// Delete: Deletes the specified context.
28167//
28168// - name: The name of the context to delete. Supported formats: -
28169//   `projects//agent/sessions//contexts/`, -
28170//   `projects//locations//agent/sessions//contexts/`, -
28171//   `projects//agent/environments//users//sessions//contexts/`, -
28172//   `projects//locations//agent/environments//users//sessions//contexts/
28173//   `, If `Location ID` is not specified we assume default 'us'
28174//   location. If `Environment ID` is not specified, we assume default
28175//   'draft' environment. If `User ID` is not specified, we assume
28176//   default '-' user.
28177func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall {
28178	c := &ProjectsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28179	c.name = name
28180	return c
28181}
28182
28183// Fields allows partial responses to be retrieved. See
28184// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28185// for more information.
28186func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall {
28187	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28188	return c
28189}
28190
28191// Context sets the context to be used in this call's Do method. Any
28192// pending HTTP request will be aborted if the provided context is
28193// canceled.
28194func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall {
28195	c.ctx_ = ctx
28196	return c
28197}
28198
28199// Header returns an http.Header that can be modified by the caller to
28200// add HTTP headers to the request.
28201func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header {
28202	if c.header_ == nil {
28203		c.header_ = make(http.Header)
28204	}
28205	return c.header_
28206}
28207
28208func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
28209	reqHeaders := make(http.Header)
28210	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
28211	for k, v := range c.header_ {
28212		reqHeaders[k] = v
28213	}
28214	reqHeaders.Set("User-Agent", c.s.userAgent())
28215	var body io.Reader = nil
28216	c.urlParams_.Set("alt", alt)
28217	c.urlParams_.Set("prettyPrint", "false")
28218	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28219	urls += "?" + c.urlParams_.Encode()
28220	req, err := http.NewRequest("DELETE", urls, body)
28221	if err != nil {
28222		return nil, err
28223	}
28224	req.Header = reqHeaders
28225	googleapi.Expand(req.URL, map[string]string{
28226		"name": c.name,
28227	})
28228	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28229}
28230
28231// Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call.
28232// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28233// non-2xx status code is an error. Response headers are in either
28234// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28235// returned at all) in error.(*googleapi.Error).Header. Use
28236// googleapi.IsNotModified to check whether the returned error was
28237// because http.StatusNotModified was returned.
28238func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28239	gensupport.SetOptions(c.urlParams_, opts...)
28240	res, err := c.doRequest("json")
28241	if res != nil && res.StatusCode == http.StatusNotModified {
28242		if res.Body != nil {
28243			res.Body.Close()
28244		}
28245		return nil, &googleapi.Error{
28246			Code:   res.StatusCode,
28247			Header: res.Header,
28248		}
28249	}
28250	if err != nil {
28251		return nil, err
28252	}
28253	defer googleapi.CloseBody(res)
28254	if err := googleapi.CheckResponse(res); err != nil {
28255		return nil, err
28256	}
28257	ret := &GoogleProtobufEmpty{
28258		ServerResponse: googleapi.ServerResponse{
28259			Header:         res.Header,
28260			HTTPStatusCode: res.StatusCode,
28261		},
28262	}
28263	target := &ret
28264	if err := gensupport.DecodeResponse(target, res); err != nil {
28265		return nil, err
28266	}
28267	return ret, nil
28268	// {
28269	//   "description": "Deletes the specified context.",
28270	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
28271	//   "httpMethod": "DELETE",
28272	//   "id": "dialogflow.projects.agent.sessions.contexts.delete",
28273	//   "parameterOrder": [
28274	//     "name"
28275	//   ],
28276	//   "parameters": {
28277	//     "name": {
28278	//       "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.",
28279	//       "location": "path",
28280	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
28281	//       "required": true,
28282	//       "type": "string"
28283	//     }
28284	//   },
28285	//   "path": "v2beta1/{+name}",
28286	//   "response": {
28287	//     "$ref": "GoogleProtobufEmpty"
28288	//   },
28289	//   "scopes": [
28290	//     "https://www.googleapis.com/auth/cloud-platform",
28291	//     "https://www.googleapis.com/auth/dialogflow"
28292	//   ]
28293	// }
28294
28295}
28296
28297// method id "dialogflow.projects.agent.sessions.contexts.get":
28298
28299type ProjectsAgentSessionsContextsGetCall struct {
28300	s            *Service
28301	name         string
28302	urlParams_   gensupport.URLParams
28303	ifNoneMatch_ string
28304	ctx_         context.Context
28305	header_      http.Header
28306}
28307
28308// Get: Retrieves the specified context.
28309//
28310// - name: The name of the context. Supported formats: -
28311//   `projects//agent/sessions//contexts/`, -
28312//   `projects//locations//agent/sessions//contexts/`, -
28313//   `projects//agent/environments//users//sessions//contexts/`, -
28314//   `projects//locations//agent/environments//users//sessions//contexts/
28315//   `, If `Location ID` is not specified we assume default 'us'
28316//   location. If `Environment ID` is not specified, we assume default
28317//   'draft' environment. If `User ID` is not specified, we assume
28318//   default '-' user.
28319func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall {
28320	c := &ProjectsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28321	c.name = name
28322	return c
28323}
28324
28325// Fields allows partial responses to be retrieved. See
28326// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28327// for more information.
28328func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall {
28329	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28330	return c
28331}
28332
28333// IfNoneMatch sets the optional parameter which makes the operation
28334// fail if the object's ETag matches the given value. This is useful for
28335// getting updates only after the object has changed since the last
28336// request. Use googleapi.IsNotModified to check whether the response
28337// error from Do is the result of In-None-Match.
28338func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall {
28339	c.ifNoneMatch_ = entityTag
28340	return c
28341}
28342
28343// Context sets the context to be used in this call's Do method. Any
28344// pending HTTP request will be aborted if the provided context is
28345// canceled.
28346func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall {
28347	c.ctx_ = ctx
28348	return c
28349}
28350
28351// Header returns an http.Header that can be modified by the caller to
28352// add HTTP headers to the request.
28353func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header {
28354	if c.header_ == nil {
28355		c.header_ = make(http.Header)
28356	}
28357	return c.header_
28358}
28359
28360func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
28361	reqHeaders := make(http.Header)
28362	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
28363	for k, v := range c.header_ {
28364		reqHeaders[k] = v
28365	}
28366	reqHeaders.Set("User-Agent", c.s.userAgent())
28367	if c.ifNoneMatch_ != "" {
28368		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28369	}
28370	var body io.Reader = nil
28371	c.urlParams_.Set("alt", alt)
28372	c.urlParams_.Set("prettyPrint", "false")
28373	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28374	urls += "?" + c.urlParams_.Encode()
28375	req, err := http.NewRequest("GET", urls, body)
28376	if err != nil {
28377		return nil, err
28378	}
28379	req.Header = reqHeaders
28380	googleapi.Expand(req.URL, map[string]string{
28381		"name": c.name,
28382	})
28383	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28384}
28385
28386// Do executes the "dialogflow.projects.agent.sessions.contexts.get" call.
28387// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
28388// non-nil. Any non-2xx status code is an error. Response headers are in
28389// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
28390// (if a response was returned at all) in
28391// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28392// whether the returned error was because http.StatusNotModified was
28393// returned.
28394func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
28395	gensupport.SetOptions(c.urlParams_, opts...)
28396	res, err := c.doRequest("json")
28397	if res != nil && res.StatusCode == http.StatusNotModified {
28398		if res.Body != nil {
28399			res.Body.Close()
28400		}
28401		return nil, &googleapi.Error{
28402			Code:   res.StatusCode,
28403			Header: res.Header,
28404		}
28405	}
28406	if err != nil {
28407		return nil, err
28408	}
28409	defer googleapi.CloseBody(res)
28410	if err := googleapi.CheckResponse(res); err != nil {
28411		return nil, err
28412	}
28413	ret := &GoogleCloudDialogflowV2beta1Context{
28414		ServerResponse: googleapi.ServerResponse{
28415			Header:         res.Header,
28416			HTTPStatusCode: res.StatusCode,
28417		},
28418	}
28419	target := &ret
28420	if err := gensupport.DecodeResponse(target, res); err != nil {
28421		return nil, err
28422	}
28423	return ret, nil
28424	// {
28425	//   "description": "Retrieves the specified context.",
28426	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
28427	//   "httpMethod": "GET",
28428	//   "id": "dialogflow.projects.agent.sessions.contexts.get",
28429	//   "parameterOrder": [
28430	//     "name"
28431	//   ],
28432	//   "parameters": {
28433	//     "name": {
28434	//       "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.",
28435	//       "location": "path",
28436	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
28437	//       "required": true,
28438	//       "type": "string"
28439	//     }
28440	//   },
28441	//   "path": "v2beta1/{+name}",
28442	//   "response": {
28443	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28444	//   },
28445	//   "scopes": [
28446	//     "https://www.googleapis.com/auth/cloud-platform",
28447	//     "https://www.googleapis.com/auth/dialogflow"
28448	//   ]
28449	// }
28450
28451}
28452
28453// method id "dialogflow.projects.agent.sessions.contexts.list":
28454
28455type ProjectsAgentSessionsContextsListCall struct {
28456	s            *Service
28457	parent       string
28458	urlParams_   gensupport.URLParams
28459	ifNoneMatch_ string
28460	ctx_         context.Context
28461	header_      http.Header
28462}
28463
28464// List: Returns the list of all contexts in the specified session.
28465//
28466// - parent: The session to list all contexts from. Supported formats: -
28467//   `projects//agent/sessions/, -
28468//   `projects//locations//agent/sessions/`, -
28469//   `projects//agent/environments//users//sessions/`, -
28470//   `projects//locations//agent/environments//users//sessions/`, If
28471//   `Location ID` is not specified we assume default 'us' location. If
28472//   `Environment ID` is not specified, we assume default 'draft'
28473//   environment. If `User ID` is not specified, we assume default '-'
28474//   user.
28475func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall {
28476	c := &ProjectsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28477	c.parent = parent
28478	return c
28479}
28480
28481// PageSize sets the optional parameter "pageSize": The maximum number
28482// of items to return in a single page. By default 100 and at most 1000.
28483func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall {
28484	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28485	return c
28486}
28487
28488// PageToken sets the optional parameter "pageToken": The
28489// next_page_token value returned from a previous list request.
28490func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall {
28491	c.urlParams_.Set("pageToken", pageToken)
28492	return c
28493}
28494
28495// Fields allows partial responses to be retrieved. See
28496// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28497// for more information.
28498func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall {
28499	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28500	return c
28501}
28502
28503// IfNoneMatch sets the optional parameter which makes the operation
28504// fail if the object's ETag matches the given value. This is useful for
28505// getting updates only after the object has changed since the last
28506// request. Use googleapi.IsNotModified to check whether the response
28507// error from Do is the result of In-None-Match.
28508func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall {
28509	c.ifNoneMatch_ = entityTag
28510	return c
28511}
28512
28513// Context sets the context to be used in this call's Do method. Any
28514// pending HTTP request will be aborted if the provided context is
28515// canceled.
28516func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall {
28517	c.ctx_ = ctx
28518	return c
28519}
28520
28521// Header returns an http.Header that can be modified by the caller to
28522// add HTTP headers to the request.
28523func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header {
28524	if c.header_ == nil {
28525		c.header_ = make(http.Header)
28526	}
28527	return c.header_
28528}
28529
28530func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
28531	reqHeaders := make(http.Header)
28532	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
28533	for k, v := range c.header_ {
28534		reqHeaders[k] = v
28535	}
28536	reqHeaders.Set("User-Agent", c.s.userAgent())
28537	if c.ifNoneMatch_ != "" {
28538		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28539	}
28540	var body io.Reader = nil
28541	c.urlParams_.Set("alt", alt)
28542	c.urlParams_.Set("prettyPrint", "false")
28543	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
28544	urls += "?" + c.urlParams_.Encode()
28545	req, err := http.NewRequest("GET", urls, body)
28546	if err != nil {
28547		return nil, err
28548	}
28549	req.Header = reqHeaders
28550	googleapi.Expand(req.URL, map[string]string{
28551		"parent": c.parent,
28552	})
28553	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28554}
28555
28556// Do executes the "dialogflow.projects.agent.sessions.contexts.list" call.
28557// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
28558// error will be non-nil. Any non-2xx status code is an error. Response
28559// headers are in either
28560// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
28561// r or (if a response was returned at all) in
28562// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28563// whether the returned error was because http.StatusNotModified was
28564// returned.
28565func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
28566	gensupport.SetOptions(c.urlParams_, opts...)
28567	res, err := c.doRequest("json")
28568	if res != nil && res.StatusCode == http.StatusNotModified {
28569		if res.Body != nil {
28570			res.Body.Close()
28571		}
28572		return nil, &googleapi.Error{
28573			Code:   res.StatusCode,
28574			Header: res.Header,
28575		}
28576	}
28577	if err != nil {
28578		return nil, err
28579	}
28580	defer googleapi.CloseBody(res)
28581	if err := googleapi.CheckResponse(res); err != nil {
28582		return nil, err
28583	}
28584	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
28585		ServerResponse: googleapi.ServerResponse{
28586			Header:         res.Header,
28587			HTTPStatusCode: res.StatusCode,
28588		},
28589	}
28590	target := &ret
28591	if err := gensupport.DecodeResponse(target, res); err != nil {
28592		return nil, err
28593	}
28594	return ret, nil
28595	// {
28596	//   "description": "Returns the list of all contexts in the specified session.",
28597	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts",
28598	//   "httpMethod": "GET",
28599	//   "id": "dialogflow.projects.agent.sessions.contexts.list",
28600	//   "parameterOrder": [
28601	//     "parent"
28602	//   ],
28603	//   "parameters": {
28604	//     "pageSize": {
28605	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
28606	//       "format": "int32",
28607	//       "location": "query",
28608	//       "type": "integer"
28609	//     },
28610	//     "pageToken": {
28611	//       "description": "Optional. The next_page_token value returned from a previous list request.",
28612	//       "location": "query",
28613	//       "type": "string"
28614	//     },
28615	//     "parent": {
28616	//       "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.",
28617	//       "location": "path",
28618	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
28619	//       "required": true,
28620	//       "type": "string"
28621	//     }
28622	//   },
28623	//   "path": "v2beta1/{+parent}/contexts",
28624	//   "response": {
28625	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
28626	//   },
28627	//   "scopes": [
28628	//     "https://www.googleapis.com/auth/cloud-platform",
28629	//     "https://www.googleapis.com/auth/dialogflow"
28630	//   ]
28631	// }
28632
28633}
28634
28635// Pages invokes f for each page of results.
28636// A non-nil error returned from f will halt the iteration.
28637// The provided context supersedes any context provided to the Context method.
28638func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
28639	c.ctx_ = ctx
28640	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
28641	for {
28642		x, err := c.Do()
28643		if err != nil {
28644			return err
28645		}
28646		if err := f(x); err != nil {
28647			return err
28648		}
28649		if x.NextPageToken == "" {
28650			return nil
28651		}
28652		c.PageToken(x.NextPageToken)
28653	}
28654}
28655
28656// method id "dialogflow.projects.agent.sessions.contexts.patch":
28657
28658type ProjectsAgentSessionsContextsPatchCall struct {
28659	s                                   *Service
28660	nameid                              string
28661	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
28662	urlParams_                          gensupport.URLParams
28663	ctx_                                context.Context
28664	header_                             http.Header
28665}
28666
28667// Patch: Updates the specified context.
28668//
28669// - name: The unique identifier of the context. Supported formats: -
28670//   `projects//agent/sessions//contexts/`, -
28671//   `projects//locations//agent/sessions//contexts/`, -
28672//   `projects//agent/environments//users//sessions//contexts/`, -
28673//   `projects//locations//agent/environments//users//sessions//contexts/
28674//   `, The `Context ID` is always converted to lowercase, may only
28675//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
28676//   long. If `Environment ID` is not specified, we assume default
28677//   'draft' environment. If `User ID` is not specified, we assume
28678//   default '-' user. The following context names are reserved for
28679//   internal use by Dialogflow. You should not use these contexts or
28680//   create contexts with these names: * `__system_counters__` *
28681//   `*_id_dialog_context` * `*_dialog_params_size`.
28682func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsPatchCall {
28683	c := &ProjectsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28684	c.nameid = nameid
28685	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
28686	return c
28687}
28688
28689// UpdateMask sets the optional parameter "updateMask": The mask to
28690// control which fields get updated.
28691func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall {
28692	c.urlParams_.Set("updateMask", updateMask)
28693	return c
28694}
28695
28696// Fields allows partial responses to be retrieved. See
28697// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28698// for more information.
28699func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall {
28700	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28701	return c
28702}
28703
28704// Context sets the context to be used in this call's Do method. Any
28705// pending HTTP request will be aborted if the provided context is
28706// canceled.
28707func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall {
28708	c.ctx_ = ctx
28709	return c
28710}
28711
28712// Header returns an http.Header that can be modified by the caller to
28713// add HTTP headers to the request.
28714func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header {
28715	if c.header_ == nil {
28716		c.header_ = make(http.Header)
28717	}
28718	return c.header_
28719}
28720
28721func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
28722	reqHeaders := make(http.Header)
28723	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
28724	for k, v := range c.header_ {
28725		reqHeaders[k] = v
28726	}
28727	reqHeaders.Set("User-Agent", c.s.userAgent())
28728	var body io.Reader = nil
28729	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
28730	if err != nil {
28731		return nil, err
28732	}
28733	reqHeaders.Set("Content-Type", "application/json")
28734	c.urlParams_.Set("alt", alt)
28735	c.urlParams_.Set("prettyPrint", "false")
28736	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28737	urls += "?" + c.urlParams_.Encode()
28738	req, err := http.NewRequest("PATCH", urls, body)
28739	if err != nil {
28740		return nil, err
28741	}
28742	req.Header = reqHeaders
28743	googleapi.Expand(req.URL, map[string]string{
28744		"name": c.nameid,
28745	})
28746	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28747}
28748
28749// Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call.
28750// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
28751// non-nil. Any non-2xx status code is an error. Response headers are in
28752// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
28753// (if a response was returned at all) in
28754// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28755// whether the returned error was because http.StatusNotModified was
28756// returned.
28757func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
28758	gensupport.SetOptions(c.urlParams_, opts...)
28759	res, err := c.doRequest("json")
28760	if res != nil && res.StatusCode == http.StatusNotModified {
28761		if res.Body != nil {
28762			res.Body.Close()
28763		}
28764		return nil, &googleapi.Error{
28765			Code:   res.StatusCode,
28766			Header: res.Header,
28767		}
28768	}
28769	if err != nil {
28770		return nil, err
28771	}
28772	defer googleapi.CloseBody(res)
28773	if err := googleapi.CheckResponse(res); err != nil {
28774		return nil, err
28775	}
28776	ret := &GoogleCloudDialogflowV2beta1Context{
28777		ServerResponse: googleapi.ServerResponse{
28778			Header:         res.Header,
28779			HTTPStatusCode: res.StatusCode,
28780		},
28781	}
28782	target := &ret
28783	if err := gensupport.DecodeResponse(target, res); err != nil {
28784		return nil, err
28785	}
28786	return ret, nil
28787	// {
28788	//   "description": "Updates the specified context.",
28789	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
28790	//   "httpMethod": "PATCH",
28791	//   "id": "dialogflow.projects.agent.sessions.contexts.patch",
28792	//   "parameterOrder": [
28793	//     "name"
28794	//   ],
28795	//   "parameters": {
28796	//     "name": {
28797	//       "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`",
28798	//       "location": "path",
28799	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
28800	//       "required": true,
28801	//       "type": "string"
28802	//     },
28803	//     "updateMask": {
28804	//       "description": "Optional. The mask to control which fields get updated.",
28805	//       "format": "google-fieldmask",
28806	//       "location": "query",
28807	//       "type": "string"
28808	//     }
28809	//   },
28810	//   "path": "v2beta1/{+name}",
28811	//   "request": {
28812	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28813	//   },
28814	//   "response": {
28815	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
28816	//   },
28817	//   "scopes": [
28818	//     "https://www.googleapis.com/auth/cloud-platform",
28819	//     "https://www.googleapis.com/auth/dialogflow"
28820	//   ]
28821	// }
28822
28823}
28824
28825// method id "dialogflow.projects.agent.sessions.entityTypes.create":
28826
28827type ProjectsAgentSessionsEntityTypesCreateCall struct {
28828	s                                             *Service
28829	parent                                        string
28830	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
28831	urlParams_                                    gensupport.URLParams
28832	ctx_                                          context.Context
28833	header_                                       http.Header
28834}
28835
28836// Create: Creates a session entity type. If the specified session
28837// entity type already exists, overrides the session entity type. This
28838// method doesn't work with Google Assistant integration. Contact
28839// Dialogflow support if you need to use session entities with Google
28840// Assistant integration.
28841//
28842// - parent: The session to create a session entity type for. Supported
28843//   formats: - `projects//agent/sessions/, -
28844//   `projects//locations//agent/sessions/`, -
28845//   `projects//agent/environments//users//sessions/`, -
28846//   `projects//locations//agent/environments//users//sessions/`, If
28847//   `Location ID` is not specified we assume default 'us' location. If
28848//   `Environment ID` is not specified, we assume default 'draft'
28849//   environment. If `User ID` is not specified, we assume default '-'
28850//   user.
28851func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesCreateCall {
28852	c := &ProjectsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28853	c.parent = parent
28854	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
28855	return c
28856}
28857
28858// Fields allows partial responses to be retrieved. See
28859// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28860// for more information.
28861func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall {
28862	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28863	return c
28864}
28865
28866// Context sets the context to be used in this call's Do method. Any
28867// pending HTTP request will be aborted if the provided context is
28868// canceled.
28869func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall {
28870	c.ctx_ = ctx
28871	return c
28872}
28873
28874// Header returns an http.Header that can be modified by the caller to
28875// add HTTP headers to the request.
28876func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header {
28877	if c.header_ == nil {
28878		c.header_ = make(http.Header)
28879	}
28880	return c.header_
28881}
28882
28883func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
28884	reqHeaders := make(http.Header)
28885	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
28886	for k, v := range c.header_ {
28887		reqHeaders[k] = v
28888	}
28889	reqHeaders.Set("User-Agent", c.s.userAgent())
28890	var body io.Reader = nil
28891	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
28892	if err != nil {
28893		return nil, err
28894	}
28895	reqHeaders.Set("Content-Type", "application/json")
28896	c.urlParams_.Set("alt", alt)
28897	c.urlParams_.Set("prettyPrint", "false")
28898	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
28899	urls += "?" + c.urlParams_.Encode()
28900	req, err := http.NewRequest("POST", urls, body)
28901	if err != nil {
28902		return nil, err
28903	}
28904	req.Header = reqHeaders
28905	googleapi.Expand(req.URL, map[string]string{
28906		"parent": c.parent,
28907	})
28908	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28909}
28910
28911// Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call.
28912// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
28913// error will be non-nil. Any non-2xx status code is an error. Response
28914// headers are in either
28915// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
28916// or (if a response was returned at all) in
28917// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28918// whether the returned error was because http.StatusNotModified was
28919// returned.
28920func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
28921	gensupport.SetOptions(c.urlParams_, opts...)
28922	res, err := c.doRequest("json")
28923	if res != nil && res.StatusCode == http.StatusNotModified {
28924		if res.Body != nil {
28925			res.Body.Close()
28926		}
28927		return nil, &googleapi.Error{
28928			Code:   res.StatusCode,
28929			Header: res.Header,
28930		}
28931	}
28932	if err != nil {
28933		return nil, err
28934	}
28935	defer googleapi.CloseBody(res)
28936	if err := googleapi.CheckResponse(res); err != nil {
28937		return nil, err
28938	}
28939	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
28940		ServerResponse: googleapi.ServerResponse{
28941			Header:         res.Header,
28942			HTTPStatusCode: res.StatusCode,
28943		},
28944	}
28945	target := &ret
28946	if err := gensupport.DecodeResponse(target, res); err != nil {
28947		return nil, err
28948	}
28949	return ret, nil
28950	// {
28951	//   "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.",
28952	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes",
28953	//   "httpMethod": "POST",
28954	//   "id": "dialogflow.projects.agent.sessions.entityTypes.create",
28955	//   "parameterOrder": [
28956	//     "parent"
28957	//   ],
28958	//   "parameters": {
28959	//     "parent": {
28960	//       "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.",
28961	//       "location": "path",
28962	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
28963	//       "required": true,
28964	//       "type": "string"
28965	//     }
28966	//   },
28967	//   "path": "v2beta1/{+parent}/entityTypes",
28968	//   "request": {
28969	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
28970	//   },
28971	//   "response": {
28972	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
28973	//   },
28974	//   "scopes": [
28975	//     "https://www.googleapis.com/auth/cloud-platform",
28976	//     "https://www.googleapis.com/auth/dialogflow"
28977	//   ]
28978	// }
28979
28980}
28981
28982// method id "dialogflow.projects.agent.sessions.entityTypes.delete":
28983
28984type ProjectsAgentSessionsEntityTypesDeleteCall struct {
28985	s          *Service
28986	name       string
28987	urlParams_ gensupport.URLParams
28988	ctx_       context.Context
28989	header_    http.Header
28990}
28991
28992// Delete: Deletes the specified session entity type. This method
28993// doesn't work with Google Assistant integration. Contact Dialogflow
28994// support if you need to use session entities with Google Assistant
28995// integration.
28996//
28997// - name: The name of the entity type to delete. Supported formats: -
28998//   `projects//agent/sessions//entityTypes/` -
28999//   `projects//locations//agent/sessions//entityTypes/` -
29000//   `projects//agent/environments//users//sessions//entityTypes/` -
29001//   `projects//locations//agent/environments/
29002//   /users//sessions//entityTypes/` If `Location ID` is not specified
29003//   we assume default 'us' location. If `Environment ID` is not
29004//   specified, we assume default 'draft' environment. If `User ID` is
29005//   not specified, we assume default '-' user.
29006func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall {
29007	c := &ProjectsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29008	c.name = name
29009	return c
29010}
29011
29012// Fields allows partial responses to be retrieved. See
29013// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29014// for more information.
29015func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall {
29016	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29017	return c
29018}
29019
29020// Context sets the context to be used in this call's Do method. Any
29021// pending HTTP request will be aborted if the provided context is
29022// canceled.
29023func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall {
29024	c.ctx_ = ctx
29025	return c
29026}
29027
29028// Header returns an http.Header that can be modified by the caller to
29029// add HTTP headers to the request.
29030func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
29031	if c.header_ == nil {
29032		c.header_ = make(http.Header)
29033	}
29034	return c.header_
29035}
29036
29037func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
29038	reqHeaders := make(http.Header)
29039	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
29040	for k, v := range c.header_ {
29041		reqHeaders[k] = v
29042	}
29043	reqHeaders.Set("User-Agent", c.s.userAgent())
29044	var body io.Reader = nil
29045	c.urlParams_.Set("alt", alt)
29046	c.urlParams_.Set("prettyPrint", "false")
29047	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29048	urls += "?" + c.urlParams_.Encode()
29049	req, err := http.NewRequest("DELETE", urls, body)
29050	if err != nil {
29051		return nil, err
29052	}
29053	req.Header = reqHeaders
29054	googleapi.Expand(req.URL, map[string]string{
29055		"name": c.name,
29056	})
29057	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29058}
29059
29060// Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call.
29061// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29062// non-2xx status code is an error. Response headers are in either
29063// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29064// returned at all) in error.(*googleapi.Error).Header. Use
29065// googleapi.IsNotModified to check whether the returned error was
29066// because http.StatusNotModified was returned.
29067func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29068	gensupport.SetOptions(c.urlParams_, opts...)
29069	res, err := c.doRequest("json")
29070	if res != nil && res.StatusCode == http.StatusNotModified {
29071		if res.Body != nil {
29072			res.Body.Close()
29073		}
29074		return nil, &googleapi.Error{
29075			Code:   res.StatusCode,
29076			Header: res.Header,
29077		}
29078	}
29079	if err != nil {
29080		return nil, err
29081	}
29082	defer googleapi.CloseBody(res)
29083	if err := googleapi.CheckResponse(res); err != nil {
29084		return nil, err
29085	}
29086	ret := &GoogleProtobufEmpty{
29087		ServerResponse: googleapi.ServerResponse{
29088			Header:         res.Header,
29089			HTTPStatusCode: res.StatusCode,
29090		},
29091	}
29092	target := &ret
29093	if err := gensupport.DecodeResponse(target, res); err != nil {
29094		return nil, err
29095	}
29096	return ret, nil
29097	// {
29098	//   "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.",
29099	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
29100	//   "httpMethod": "DELETE",
29101	//   "id": "dialogflow.projects.agent.sessions.entityTypes.delete",
29102	//   "parameterOrder": [
29103	//     "name"
29104	//   ],
29105	//   "parameters": {
29106	//     "name": {
29107	//       "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.",
29108	//       "location": "path",
29109	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
29110	//       "required": true,
29111	//       "type": "string"
29112	//     }
29113	//   },
29114	//   "path": "v2beta1/{+name}",
29115	//   "response": {
29116	//     "$ref": "GoogleProtobufEmpty"
29117	//   },
29118	//   "scopes": [
29119	//     "https://www.googleapis.com/auth/cloud-platform",
29120	//     "https://www.googleapis.com/auth/dialogflow"
29121	//   ]
29122	// }
29123
29124}
29125
29126// method id "dialogflow.projects.agent.sessions.entityTypes.get":
29127
29128type ProjectsAgentSessionsEntityTypesGetCall struct {
29129	s            *Service
29130	name         string
29131	urlParams_   gensupport.URLParams
29132	ifNoneMatch_ string
29133	ctx_         context.Context
29134	header_      http.Header
29135}
29136
29137// Get: Retrieves the specified session entity type. This method doesn't
29138// work with Google Assistant integration. Contact Dialogflow support if
29139// you need to use session entities with Google Assistant integration.
29140//
29141// - name: The name of the session entity type. Supported formats: -
29142//   `projects//agent/sessions//entityTypes/` -
29143//   `projects//locations//agent/sessions//entityTypes/` -
29144//   `projects//agent/environments//users//sessions//entityTypes/` -
29145//   `projects//locations//agent/environments/
29146//   /users//sessions//entityTypes/` If `Location ID` is not specified
29147//   we assume default 'us' location. If `Environment ID` is not
29148//   specified, we assume default 'draft' environment. If `User ID` is
29149//   not specified, we assume default '-' user.
29150func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall {
29151	c := &ProjectsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29152	c.name = name
29153	return c
29154}
29155
29156// Fields allows partial responses to be retrieved. See
29157// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29158// for more information.
29159func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall {
29160	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29161	return c
29162}
29163
29164// IfNoneMatch sets the optional parameter which makes the operation
29165// fail if the object's ETag matches the given value. This is useful for
29166// getting updates only after the object has changed since the last
29167// request. Use googleapi.IsNotModified to check whether the response
29168// error from Do is the result of In-None-Match.
29169func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall {
29170	c.ifNoneMatch_ = entityTag
29171	return c
29172}
29173
29174// Context sets the context to be used in this call's Do method. Any
29175// pending HTTP request will be aborted if the provided context is
29176// canceled.
29177func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall {
29178	c.ctx_ = ctx
29179	return c
29180}
29181
29182// Header returns an http.Header that can be modified by the caller to
29183// add HTTP headers to the request.
29184func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header {
29185	if c.header_ == nil {
29186		c.header_ = make(http.Header)
29187	}
29188	return c.header_
29189}
29190
29191func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
29192	reqHeaders := make(http.Header)
29193	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
29194	for k, v := range c.header_ {
29195		reqHeaders[k] = v
29196	}
29197	reqHeaders.Set("User-Agent", c.s.userAgent())
29198	if c.ifNoneMatch_ != "" {
29199		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29200	}
29201	var body io.Reader = nil
29202	c.urlParams_.Set("alt", alt)
29203	c.urlParams_.Set("prettyPrint", "false")
29204	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29205	urls += "?" + c.urlParams_.Encode()
29206	req, err := http.NewRequest("GET", urls, body)
29207	if err != nil {
29208		return nil, err
29209	}
29210	req.Header = reqHeaders
29211	googleapi.Expand(req.URL, map[string]string{
29212		"name": c.name,
29213	})
29214	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29215}
29216
29217// Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call.
29218// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
29219// error will be non-nil. Any non-2xx status code is an error. Response
29220// headers are in either
29221// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
29222// or (if a response was returned at all) in
29223// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29224// whether the returned error was because http.StatusNotModified was
29225// returned.
29226func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
29227	gensupport.SetOptions(c.urlParams_, opts...)
29228	res, err := c.doRequest("json")
29229	if res != nil && res.StatusCode == http.StatusNotModified {
29230		if res.Body != nil {
29231			res.Body.Close()
29232		}
29233		return nil, &googleapi.Error{
29234			Code:   res.StatusCode,
29235			Header: res.Header,
29236		}
29237	}
29238	if err != nil {
29239		return nil, err
29240	}
29241	defer googleapi.CloseBody(res)
29242	if err := googleapi.CheckResponse(res); err != nil {
29243		return nil, err
29244	}
29245	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
29246		ServerResponse: googleapi.ServerResponse{
29247			Header:         res.Header,
29248			HTTPStatusCode: res.StatusCode,
29249		},
29250	}
29251	target := &ret
29252	if err := gensupport.DecodeResponse(target, res); err != nil {
29253		return nil, err
29254	}
29255	return ret, nil
29256	// {
29257	//   "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.",
29258	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
29259	//   "httpMethod": "GET",
29260	//   "id": "dialogflow.projects.agent.sessions.entityTypes.get",
29261	//   "parameterOrder": [
29262	//     "name"
29263	//   ],
29264	//   "parameters": {
29265	//     "name": {
29266	//       "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.",
29267	//       "location": "path",
29268	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
29269	//       "required": true,
29270	//       "type": "string"
29271	//     }
29272	//   },
29273	//   "path": "v2beta1/{+name}",
29274	//   "response": {
29275	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
29276	//   },
29277	//   "scopes": [
29278	//     "https://www.googleapis.com/auth/cloud-platform",
29279	//     "https://www.googleapis.com/auth/dialogflow"
29280	//   ]
29281	// }
29282
29283}
29284
29285// method id "dialogflow.projects.agent.sessions.entityTypes.list":
29286
29287type ProjectsAgentSessionsEntityTypesListCall struct {
29288	s            *Service
29289	parent       string
29290	urlParams_   gensupport.URLParams
29291	ifNoneMatch_ string
29292	ctx_         context.Context
29293	header_      http.Header
29294}
29295
29296// List: Returns the list of all session entity types in the specified
29297// session. This method doesn't work with Google Assistant integration.
29298// Contact Dialogflow support if you need to use session entities with
29299// Google Assistant integration.
29300//
29301// - parent: The session to list all session entity types from.
29302//   Supported formats: - `projects//agent/sessions/, -
29303//   `projects//locations//agent/sessions/`, -
29304//   `projects//agent/environments//users//sessions/`, -
29305//   `projects//locations//agent/environments//users//sessions/`, If
29306//   `Location ID` is not specified we assume default 'us' location. If
29307//   `Environment ID` is not specified, we assume default 'draft'
29308//   environment. If `User ID` is not specified, we assume default '-'
29309//   user.
29310func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall {
29311	c := &ProjectsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29312	c.parent = parent
29313	return c
29314}
29315
29316// PageSize sets the optional parameter "pageSize": The maximum number
29317// of items to return in a single page. By default 100 and at most 1000.
29318func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall {
29319	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29320	return c
29321}
29322
29323// PageToken sets the optional parameter "pageToken": The
29324// next_page_token value returned from a previous list request.
29325func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall {
29326	c.urlParams_.Set("pageToken", pageToken)
29327	return c
29328}
29329
29330// Fields allows partial responses to be retrieved. See
29331// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29332// for more information.
29333func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall {
29334	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29335	return c
29336}
29337
29338// IfNoneMatch sets the optional parameter which makes the operation
29339// fail if the object's ETag matches the given value. This is useful for
29340// getting updates only after the object has changed since the last
29341// request. Use googleapi.IsNotModified to check whether the response
29342// error from Do is the result of In-None-Match.
29343func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall {
29344	c.ifNoneMatch_ = entityTag
29345	return c
29346}
29347
29348// Context sets the context to be used in this call's Do method. Any
29349// pending HTTP request will be aborted if the provided context is
29350// canceled.
29351func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall {
29352	c.ctx_ = ctx
29353	return c
29354}
29355
29356// Header returns an http.Header that can be modified by the caller to
29357// add HTTP headers to the request.
29358func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header {
29359	if c.header_ == nil {
29360		c.header_ = make(http.Header)
29361	}
29362	return c.header_
29363}
29364
29365func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
29366	reqHeaders := make(http.Header)
29367	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
29368	for k, v := range c.header_ {
29369		reqHeaders[k] = v
29370	}
29371	reqHeaders.Set("User-Agent", c.s.userAgent())
29372	if c.ifNoneMatch_ != "" {
29373		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29374	}
29375	var body io.Reader = nil
29376	c.urlParams_.Set("alt", alt)
29377	c.urlParams_.Set("prettyPrint", "false")
29378	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
29379	urls += "?" + c.urlParams_.Encode()
29380	req, err := http.NewRequest("GET", urls, body)
29381	if err != nil {
29382		return nil, err
29383	}
29384	req.Header = reqHeaders
29385	googleapi.Expand(req.URL, map[string]string{
29386		"parent": c.parent,
29387	})
29388	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29389}
29390
29391// Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call.
29392// Exactly one of
29393// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
29394// will be non-nil. Any non-2xx status code is an error. Response
29395// headers are in either
29396// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
29397// onse.Header or (if a response was returned at all) in
29398// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29399// whether the returned error was because http.StatusNotModified was
29400// returned.
29401func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
29402	gensupport.SetOptions(c.urlParams_, opts...)
29403	res, err := c.doRequest("json")
29404	if res != nil && res.StatusCode == http.StatusNotModified {
29405		if res.Body != nil {
29406			res.Body.Close()
29407		}
29408		return nil, &googleapi.Error{
29409			Code:   res.StatusCode,
29410			Header: res.Header,
29411		}
29412	}
29413	if err != nil {
29414		return nil, err
29415	}
29416	defer googleapi.CloseBody(res)
29417	if err := googleapi.CheckResponse(res); err != nil {
29418		return nil, err
29419	}
29420	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
29421		ServerResponse: googleapi.ServerResponse{
29422			Header:         res.Header,
29423			HTTPStatusCode: res.StatusCode,
29424		},
29425	}
29426	target := &ret
29427	if err := gensupport.DecodeResponse(target, res); err != nil {
29428		return nil, err
29429	}
29430	return ret, nil
29431	// {
29432	//   "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.",
29433	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes",
29434	//   "httpMethod": "GET",
29435	//   "id": "dialogflow.projects.agent.sessions.entityTypes.list",
29436	//   "parameterOrder": [
29437	//     "parent"
29438	//   ],
29439	//   "parameters": {
29440	//     "pageSize": {
29441	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
29442	//       "format": "int32",
29443	//       "location": "query",
29444	//       "type": "integer"
29445	//     },
29446	//     "pageToken": {
29447	//       "description": "Optional. The next_page_token value returned from a previous list request.",
29448	//       "location": "query",
29449	//       "type": "string"
29450	//     },
29451	//     "parent": {
29452	//       "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.",
29453	//       "location": "path",
29454	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+$",
29455	//       "required": true,
29456	//       "type": "string"
29457	//     }
29458	//   },
29459	//   "path": "v2beta1/{+parent}/entityTypes",
29460	//   "response": {
29461	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
29462	//   },
29463	//   "scopes": [
29464	//     "https://www.googleapis.com/auth/cloud-platform",
29465	//     "https://www.googleapis.com/auth/dialogflow"
29466	//   ]
29467	// }
29468
29469}
29470
29471// Pages invokes f for each page of results.
29472// A non-nil error returned from f will halt the iteration.
29473// The provided context supersedes any context provided to the Context method.
29474func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
29475	c.ctx_ = ctx
29476	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
29477	for {
29478		x, err := c.Do()
29479		if err != nil {
29480			return err
29481		}
29482		if err := f(x); err != nil {
29483			return err
29484		}
29485		if x.NextPageToken == "" {
29486			return nil
29487		}
29488		c.PageToken(x.NextPageToken)
29489	}
29490}
29491
29492// method id "dialogflow.projects.agent.sessions.entityTypes.patch":
29493
29494type ProjectsAgentSessionsEntityTypesPatchCall struct {
29495	s                                             *Service
29496	nameid                                        string
29497	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
29498	urlParams_                                    gensupport.URLParams
29499	ctx_                                          context.Context
29500	header_                                       http.Header
29501}
29502
29503// Patch: Updates the specified session entity type. This method doesn't
29504// work with Google Assistant integration. Contact Dialogflow support if
29505// you need to use session entities with Google Assistant integration.
29506//
29507// - name: The unique identifier of this session entity type. Supported
29508//   formats: - `projects//agent/sessions//entityTypes/` -
29509//   `projects//locations//agent/sessions//entityTypes/` -
29510//   `projects//agent/environments//users//sessions//entityTypes/` -
29511//   `projects//locations//agent/environments/
29512//   /users//sessions//entityTypes/` If `Location ID` is not specified
29513//   we assume default 'us' location. If `Environment ID` is not
29514//   specified, we assume default 'draft' environment. If `User ID` is
29515//   not specified, we assume default '-' user. `` must be the display
29516//   name of an existing entity type in the same agent that will be
29517//   overridden or supplemented.
29518func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesPatchCall {
29519	c := &ProjectsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29520	c.nameid = nameid
29521	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
29522	return c
29523}
29524
29525// UpdateMask sets the optional parameter "updateMask": The mask to
29526// control which fields get updated.
29527func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall {
29528	c.urlParams_.Set("updateMask", updateMask)
29529	return c
29530}
29531
29532// Fields allows partial responses to be retrieved. See
29533// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29534// for more information.
29535func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall {
29536	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29537	return c
29538}
29539
29540// Context sets the context to be used in this call's Do method. Any
29541// pending HTTP request will be aborted if the provided context is
29542// canceled.
29543func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall {
29544	c.ctx_ = ctx
29545	return c
29546}
29547
29548// Header returns an http.Header that can be modified by the caller to
29549// add HTTP headers to the request.
29550func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header {
29551	if c.header_ == nil {
29552		c.header_ = make(http.Header)
29553	}
29554	return c.header_
29555}
29556
29557func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
29558	reqHeaders := make(http.Header)
29559	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
29560	for k, v := range c.header_ {
29561		reqHeaders[k] = v
29562	}
29563	reqHeaders.Set("User-Agent", c.s.userAgent())
29564	var body io.Reader = nil
29565	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
29566	if err != nil {
29567		return nil, err
29568	}
29569	reqHeaders.Set("Content-Type", "application/json")
29570	c.urlParams_.Set("alt", alt)
29571	c.urlParams_.Set("prettyPrint", "false")
29572	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29573	urls += "?" + c.urlParams_.Encode()
29574	req, err := http.NewRequest("PATCH", urls, body)
29575	if err != nil {
29576		return nil, err
29577	}
29578	req.Header = reqHeaders
29579	googleapi.Expand(req.URL, map[string]string{
29580		"name": c.nameid,
29581	})
29582	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29583}
29584
29585// Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call.
29586// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
29587// error will be non-nil. Any non-2xx status code is an error. Response
29588// headers are in either
29589// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
29590// or (if a response was returned at all) in
29591// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29592// whether the returned error was because http.StatusNotModified was
29593// returned.
29594func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
29595	gensupport.SetOptions(c.urlParams_, opts...)
29596	res, err := c.doRequest("json")
29597	if res != nil && res.StatusCode == http.StatusNotModified {
29598		if res.Body != nil {
29599			res.Body.Close()
29600		}
29601		return nil, &googleapi.Error{
29602			Code:   res.StatusCode,
29603			Header: res.Header,
29604		}
29605	}
29606	if err != nil {
29607		return nil, err
29608	}
29609	defer googleapi.CloseBody(res)
29610	if err := googleapi.CheckResponse(res); err != nil {
29611		return nil, err
29612	}
29613	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
29614		ServerResponse: googleapi.ServerResponse{
29615			Header:         res.Header,
29616			HTTPStatusCode: res.StatusCode,
29617		},
29618	}
29619	target := &ret
29620	if err := gensupport.DecodeResponse(target, res); err != nil {
29621		return nil, err
29622	}
29623	return ret, nil
29624	// {
29625	//   "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.",
29626	//   "flatPath": "v2beta1/projects/{projectsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
29627	//   "httpMethod": "PATCH",
29628	//   "id": "dialogflow.projects.agent.sessions.entityTypes.patch",
29629	//   "parameterOrder": [
29630	//     "name"
29631	//   ],
29632	//   "parameters": {
29633	//     "name": {
29634	//       "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.",
29635	//       "location": "path",
29636	//       "pattern": "^projects/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
29637	//       "required": true,
29638	//       "type": "string"
29639	//     },
29640	//     "updateMask": {
29641	//       "description": "Optional. The mask to control which fields get updated.",
29642	//       "format": "google-fieldmask",
29643	//       "location": "query",
29644	//       "type": "string"
29645	//     }
29646	//   },
29647	//   "path": "v2beta1/{+name}",
29648	//   "request": {
29649	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
29650	//   },
29651	//   "response": {
29652	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
29653	//   },
29654	//   "scopes": [
29655	//     "https://www.googleapis.com/auth/cloud-platform",
29656	//     "https://www.googleapis.com/auth/dialogflow"
29657	//   ]
29658	// }
29659
29660}
29661
29662// method id "dialogflow.projects.agent.versions.create":
29663
29664type ProjectsAgentVersionsCreateCall struct {
29665	s                                   *Service
29666	parent                              string
29667	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
29668	urlParams_                          gensupport.URLParams
29669	ctx_                                context.Context
29670	header_                             http.Header
29671}
29672
29673// Create: Creates an agent version. The new version points to the agent
29674// instance in the "default" environment.
29675//
29676// - parent: The agent to create a version for. Supported formats: -
29677//   `projects//agent` - `projects//locations//agent`.
29678func (r *ProjectsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsCreateCall {
29679	c := &ProjectsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29680	c.parent = parent
29681	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
29682	return c
29683}
29684
29685// Fields allows partial responses to be retrieved. See
29686// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29687// for more information.
29688func (c *ProjectsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsCreateCall {
29689	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29690	return c
29691}
29692
29693// Context sets the context to be used in this call's Do method. Any
29694// pending HTTP request will be aborted if the provided context is
29695// canceled.
29696func (c *ProjectsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsAgentVersionsCreateCall {
29697	c.ctx_ = ctx
29698	return c
29699}
29700
29701// Header returns an http.Header that can be modified by the caller to
29702// add HTTP headers to the request.
29703func (c *ProjectsAgentVersionsCreateCall) Header() http.Header {
29704	if c.header_ == nil {
29705		c.header_ = make(http.Header)
29706	}
29707	return c.header_
29708}
29709
29710func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
29711	reqHeaders := make(http.Header)
29712	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
29713	for k, v := range c.header_ {
29714		reqHeaders[k] = v
29715	}
29716	reqHeaders.Set("User-Agent", c.s.userAgent())
29717	var body io.Reader = nil
29718	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
29719	if err != nil {
29720		return nil, err
29721	}
29722	reqHeaders.Set("Content-Type", "application/json")
29723	c.urlParams_.Set("alt", alt)
29724	c.urlParams_.Set("prettyPrint", "false")
29725	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
29726	urls += "?" + c.urlParams_.Encode()
29727	req, err := http.NewRequest("POST", urls, body)
29728	if err != nil {
29729		return nil, err
29730	}
29731	req.Header = reqHeaders
29732	googleapi.Expand(req.URL, map[string]string{
29733		"parent": c.parent,
29734	})
29735	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29736}
29737
29738// Do executes the "dialogflow.projects.agent.versions.create" call.
29739// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
29740// non-nil. Any non-2xx status code is an error. Response headers are in
29741// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
29742// (if a response was returned at all) in
29743// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29744// whether the returned error was because http.StatusNotModified was
29745// returned.
29746func (c *ProjectsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
29747	gensupport.SetOptions(c.urlParams_, opts...)
29748	res, err := c.doRequest("json")
29749	if res != nil && res.StatusCode == http.StatusNotModified {
29750		if res.Body != nil {
29751			res.Body.Close()
29752		}
29753		return nil, &googleapi.Error{
29754			Code:   res.StatusCode,
29755			Header: res.Header,
29756		}
29757	}
29758	if err != nil {
29759		return nil, err
29760	}
29761	defer googleapi.CloseBody(res)
29762	if err := googleapi.CheckResponse(res); err != nil {
29763		return nil, err
29764	}
29765	ret := &GoogleCloudDialogflowV2beta1Version{
29766		ServerResponse: googleapi.ServerResponse{
29767			Header:         res.Header,
29768			HTTPStatusCode: res.StatusCode,
29769		},
29770	}
29771	target := &ret
29772	if err := gensupport.DecodeResponse(target, res); err != nil {
29773		return nil, err
29774	}
29775	return ret, nil
29776	// {
29777	//   "description": "Creates an agent version. The new version points to the agent instance in the \"default\" environment.",
29778	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions",
29779	//   "httpMethod": "POST",
29780	//   "id": "dialogflow.projects.agent.versions.create",
29781	//   "parameterOrder": [
29782	//     "parent"
29783	//   ],
29784	//   "parameters": {
29785	//     "parent": {
29786	//       "description": "Required. The agent to create a version for. Supported formats: - `projects//agent` - `projects//locations//agent`",
29787	//       "location": "path",
29788	//       "pattern": "^projects/[^/]+/agent$",
29789	//       "required": true,
29790	//       "type": "string"
29791	//     }
29792	//   },
29793	//   "path": "v2beta1/{+parent}/versions",
29794	//   "request": {
29795	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
29796	//   },
29797	//   "response": {
29798	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
29799	//   },
29800	//   "scopes": [
29801	//     "https://www.googleapis.com/auth/cloud-platform",
29802	//     "https://www.googleapis.com/auth/dialogflow"
29803	//   ]
29804	// }
29805
29806}
29807
29808// method id "dialogflow.projects.agent.versions.delete":
29809
29810type ProjectsAgentVersionsDeleteCall struct {
29811	s          *Service
29812	name       string
29813	urlParams_ gensupport.URLParams
29814	ctx_       context.Context
29815	header_    http.Header
29816}
29817
29818// Delete: Delete the specified agent version.
29819//
29820// - name: The name of the version to delete. Supported formats: -
29821//   `projects//agent/versions/` -
29822//   `projects//locations//agent/versions/`.
29823func (r *ProjectsAgentVersionsService) Delete(name string) *ProjectsAgentVersionsDeleteCall {
29824	c := &ProjectsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29825	c.name = name
29826	return c
29827}
29828
29829// Fields allows partial responses to be retrieved. See
29830// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29831// for more information.
29832func (c *ProjectsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsDeleteCall {
29833	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29834	return c
29835}
29836
29837// Context sets the context to be used in this call's Do method. Any
29838// pending HTTP request will be aborted if the provided context is
29839// canceled.
29840func (c *ProjectsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsAgentVersionsDeleteCall {
29841	c.ctx_ = ctx
29842	return c
29843}
29844
29845// Header returns an http.Header that can be modified by the caller to
29846// add HTTP headers to the request.
29847func (c *ProjectsAgentVersionsDeleteCall) Header() http.Header {
29848	if c.header_ == nil {
29849		c.header_ = make(http.Header)
29850	}
29851	return c.header_
29852}
29853
29854func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
29855	reqHeaders := make(http.Header)
29856	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
29857	for k, v := range c.header_ {
29858		reqHeaders[k] = v
29859	}
29860	reqHeaders.Set("User-Agent", c.s.userAgent())
29861	var body io.Reader = nil
29862	c.urlParams_.Set("alt", alt)
29863	c.urlParams_.Set("prettyPrint", "false")
29864	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29865	urls += "?" + c.urlParams_.Encode()
29866	req, err := http.NewRequest("DELETE", urls, body)
29867	if err != nil {
29868		return nil, err
29869	}
29870	req.Header = reqHeaders
29871	googleapi.Expand(req.URL, map[string]string{
29872		"name": c.name,
29873	})
29874	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29875}
29876
29877// Do executes the "dialogflow.projects.agent.versions.delete" call.
29878// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29879// non-2xx status code is an error. Response headers are in either
29880// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29881// returned at all) in error.(*googleapi.Error).Header. Use
29882// googleapi.IsNotModified to check whether the returned error was
29883// because http.StatusNotModified was returned.
29884func (c *ProjectsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29885	gensupport.SetOptions(c.urlParams_, opts...)
29886	res, err := c.doRequest("json")
29887	if res != nil && res.StatusCode == http.StatusNotModified {
29888		if res.Body != nil {
29889			res.Body.Close()
29890		}
29891		return nil, &googleapi.Error{
29892			Code:   res.StatusCode,
29893			Header: res.Header,
29894		}
29895	}
29896	if err != nil {
29897		return nil, err
29898	}
29899	defer googleapi.CloseBody(res)
29900	if err := googleapi.CheckResponse(res); err != nil {
29901		return nil, err
29902	}
29903	ret := &GoogleProtobufEmpty{
29904		ServerResponse: googleapi.ServerResponse{
29905			Header:         res.Header,
29906			HTTPStatusCode: res.StatusCode,
29907		},
29908	}
29909	target := &ret
29910	if err := gensupport.DecodeResponse(target, res); err != nil {
29911		return nil, err
29912	}
29913	return ret, nil
29914	// {
29915	//   "description": "Delete the specified agent version.",
29916	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions/{versionsId}",
29917	//   "httpMethod": "DELETE",
29918	//   "id": "dialogflow.projects.agent.versions.delete",
29919	//   "parameterOrder": [
29920	//     "name"
29921	//   ],
29922	//   "parameters": {
29923	//     "name": {
29924	//       "description": "Required. The name of the version to delete. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
29925	//       "location": "path",
29926	//       "pattern": "^projects/[^/]+/agent/versions/[^/]+$",
29927	//       "required": true,
29928	//       "type": "string"
29929	//     }
29930	//   },
29931	//   "path": "v2beta1/{+name}",
29932	//   "response": {
29933	//     "$ref": "GoogleProtobufEmpty"
29934	//   },
29935	//   "scopes": [
29936	//     "https://www.googleapis.com/auth/cloud-platform",
29937	//     "https://www.googleapis.com/auth/dialogflow"
29938	//   ]
29939	// }
29940
29941}
29942
29943// method id "dialogflow.projects.agent.versions.get":
29944
29945type ProjectsAgentVersionsGetCall struct {
29946	s            *Service
29947	name         string
29948	urlParams_   gensupport.URLParams
29949	ifNoneMatch_ string
29950	ctx_         context.Context
29951	header_      http.Header
29952}
29953
29954// Get: Retrieves the specified agent version.
29955//
29956// - name: The name of the version. Supported formats: -
29957//   `projects//agent/versions/` -
29958//   `projects//locations//agent/versions/`.
29959func (r *ProjectsAgentVersionsService) Get(name string) *ProjectsAgentVersionsGetCall {
29960	c := &ProjectsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29961	c.name = name
29962	return c
29963}
29964
29965// Fields allows partial responses to be retrieved. See
29966// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29967// for more information.
29968func (c *ProjectsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsGetCall {
29969	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29970	return c
29971}
29972
29973// IfNoneMatch sets the optional parameter which makes the operation
29974// fail if the object's ETag matches the given value. This is useful for
29975// getting updates only after the object has changed since the last
29976// request. Use googleapi.IsNotModified to check whether the response
29977// error from Do is the result of In-None-Match.
29978func (c *ProjectsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsGetCall {
29979	c.ifNoneMatch_ = entityTag
29980	return c
29981}
29982
29983// Context sets the context to be used in this call's Do method. Any
29984// pending HTTP request will be aborted if the provided context is
29985// canceled.
29986func (c *ProjectsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsAgentVersionsGetCall {
29987	c.ctx_ = ctx
29988	return c
29989}
29990
29991// Header returns an http.Header that can be modified by the caller to
29992// add HTTP headers to the request.
29993func (c *ProjectsAgentVersionsGetCall) Header() http.Header {
29994	if c.header_ == nil {
29995		c.header_ = make(http.Header)
29996	}
29997	return c.header_
29998}
29999
30000func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
30001	reqHeaders := make(http.Header)
30002	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
30003	for k, v := range c.header_ {
30004		reqHeaders[k] = v
30005	}
30006	reqHeaders.Set("User-Agent", c.s.userAgent())
30007	if c.ifNoneMatch_ != "" {
30008		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30009	}
30010	var body io.Reader = nil
30011	c.urlParams_.Set("alt", alt)
30012	c.urlParams_.Set("prettyPrint", "false")
30013	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30014	urls += "?" + c.urlParams_.Encode()
30015	req, err := http.NewRequest("GET", urls, body)
30016	if err != nil {
30017		return nil, err
30018	}
30019	req.Header = reqHeaders
30020	googleapi.Expand(req.URL, map[string]string{
30021		"name": c.name,
30022	})
30023	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30024}
30025
30026// Do executes the "dialogflow.projects.agent.versions.get" call.
30027// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
30028// non-nil. Any non-2xx status code is an error. Response headers are in
30029// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
30030// (if a response was returned at all) in
30031// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30032// whether the returned error was because http.StatusNotModified was
30033// returned.
30034func (c *ProjectsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
30035	gensupport.SetOptions(c.urlParams_, opts...)
30036	res, err := c.doRequest("json")
30037	if res != nil && res.StatusCode == http.StatusNotModified {
30038		if res.Body != nil {
30039			res.Body.Close()
30040		}
30041		return nil, &googleapi.Error{
30042			Code:   res.StatusCode,
30043			Header: res.Header,
30044		}
30045	}
30046	if err != nil {
30047		return nil, err
30048	}
30049	defer googleapi.CloseBody(res)
30050	if err := googleapi.CheckResponse(res); err != nil {
30051		return nil, err
30052	}
30053	ret := &GoogleCloudDialogflowV2beta1Version{
30054		ServerResponse: googleapi.ServerResponse{
30055			Header:         res.Header,
30056			HTTPStatusCode: res.StatusCode,
30057		},
30058	}
30059	target := &ret
30060	if err := gensupport.DecodeResponse(target, res); err != nil {
30061		return nil, err
30062	}
30063	return ret, nil
30064	// {
30065	//   "description": "Retrieves the specified agent version.",
30066	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions/{versionsId}",
30067	//   "httpMethod": "GET",
30068	//   "id": "dialogflow.projects.agent.versions.get",
30069	//   "parameterOrder": [
30070	//     "name"
30071	//   ],
30072	//   "parameters": {
30073	//     "name": {
30074	//       "description": "Required. The name of the version. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
30075	//       "location": "path",
30076	//       "pattern": "^projects/[^/]+/agent/versions/[^/]+$",
30077	//       "required": true,
30078	//       "type": "string"
30079	//     }
30080	//   },
30081	//   "path": "v2beta1/{+name}",
30082	//   "response": {
30083	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30084	//   },
30085	//   "scopes": [
30086	//     "https://www.googleapis.com/auth/cloud-platform",
30087	//     "https://www.googleapis.com/auth/dialogflow"
30088	//   ]
30089	// }
30090
30091}
30092
30093// method id "dialogflow.projects.agent.versions.list":
30094
30095type ProjectsAgentVersionsListCall struct {
30096	s            *Service
30097	parent       string
30098	urlParams_   gensupport.URLParams
30099	ifNoneMatch_ string
30100	ctx_         context.Context
30101	header_      http.Header
30102}
30103
30104// List: Returns the list of all versions of the specified agent.
30105//
30106// - parent: The agent to list all versions from. Supported formats: -
30107//   `projects//agent` - `projects//locations//agent`.
30108func (r *ProjectsAgentVersionsService) List(parent string) *ProjectsAgentVersionsListCall {
30109	c := &ProjectsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30110	c.parent = parent
30111	return c
30112}
30113
30114// PageSize sets the optional parameter "pageSize": The maximum number
30115// of items to return in a single page. By default 100 and at most 1000.
30116func (c *ProjectsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsAgentVersionsListCall {
30117	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30118	return c
30119}
30120
30121// PageToken sets the optional parameter "pageToken": The
30122// next_page_token value returned from a previous list request.
30123func (c *ProjectsAgentVersionsListCall) PageToken(pageToken string) *ProjectsAgentVersionsListCall {
30124	c.urlParams_.Set("pageToken", pageToken)
30125	return c
30126}
30127
30128// Fields allows partial responses to be retrieved. See
30129// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30130// for more information.
30131func (c *ProjectsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsListCall {
30132	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30133	return c
30134}
30135
30136// IfNoneMatch sets the optional parameter which makes the operation
30137// fail if the object's ETag matches the given value. This is useful for
30138// getting updates only after the object has changed since the last
30139// request. Use googleapi.IsNotModified to check whether the response
30140// error from Do is the result of In-None-Match.
30141func (c *ProjectsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsListCall {
30142	c.ifNoneMatch_ = entityTag
30143	return c
30144}
30145
30146// Context sets the context to be used in this call's Do method. Any
30147// pending HTTP request will be aborted if the provided context is
30148// canceled.
30149func (c *ProjectsAgentVersionsListCall) Context(ctx context.Context) *ProjectsAgentVersionsListCall {
30150	c.ctx_ = ctx
30151	return c
30152}
30153
30154// Header returns an http.Header that can be modified by the caller to
30155// add HTTP headers to the request.
30156func (c *ProjectsAgentVersionsListCall) Header() http.Header {
30157	if c.header_ == nil {
30158		c.header_ = make(http.Header)
30159	}
30160	return c.header_
30161}
30162
30163func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
30164	reqHeaders := make(http.Header)
30165	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
30166	for k, v := range c.header_ {
30167		reqHeaders[k] = v
30168	}
30169	reqHeaders.Set("User-Agent", c.s.userAgent())
30170	if c.ifNoneMatch_ != "" {
30171		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30172	}
30173	var body io.Reader = nil
30174	c.urlParams_.Set("alt", alt)
30175	c.urlParams_.Set("prettyPrint", "false")
30176	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
30177	urls += "?" + c.urlParams_.Encode()
30178	req, err := http.NewRequest("GET", urls, body)
30179	if err != nil {
30180		return nil, err
30181	}
30182	req.Header = reqHeaders
30183	googleapi.Expand(req.URL, map[string]string{
30184		"parent": c.parent,
30185	})
30186	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30187}
30188
30189// Do executes the "dialogflow.projects.agent.versions.list" call.
30190// Exactly one of *GoogleCloudDialogflowV2beta1ListVersionsResponse or
30191// error will be non-nil. Any non-2xx status code is an error. Response
30192// headers are in either
30193// *GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Heade
30194// r or (if a response was returned at all) in
30195// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30196// whether the returned error was because http.StatusNotModified was
30197// returned.
30198func (c *ProjectsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
30199	gensupport.SetOptions(c.urlParams_, opts...)
30200	res, err := c.doRequest("json")
30201	if res != nil && res.StatusCode == http.StatusNotModified {
30202		if res.Body != nil {
30203			res.Body.Close()
30204		}
30205		return nil, &googleapi.Error{
30206			Code:   res.StatusCode,
30207			Header: res.Header,
30208		}
30209	}
30210	if err != nil {
30211		return nil, err
30212	}
30213	defer googleapi.CloseBody(res)
30214	if err := googleapi.CheckResponse(res); err != nil {
30215		return nil, err
30216	}
30217	ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
30218		ServerResponse: googleapi.ServerResponse{
30219			Header:         res.Header,
30220			HTTPStatusCode: res.StatusCode,
30221		},
30222	}
30223	target := &ret
30224	if err := gensupport.DecodeResponse(target, res); err != nil {
30225		return nil, err
30226	}
30227	return ret, nil
30228	// {
30229	//   "description": "Returns the list of all versions of the specified agent.",
30230	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions",
30231	//   "httpMethod": "GET",
30232	//   "id": "dialogflow.projects.agent.versions.list",
30233	//   "parameterOrder": [
30234	//     "parent"
30235	//   ],
30236	//   "parameters": {
30237	//     "pageSize": {
30238	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
30239	//       "format": "int32",
30240	//       "location": "query",
30241	//       "type": "integer"
30242	//     },
30243	//     "pageToken": {
30244	//       "description": "Optional. The next_page_token value returned from a previous list request.",
30245	//       "location": "query",
30246	//       "type": "string"
30247	//     },
30248	//     "parent": {
30249	//       "description": "Required. The agent to list all versions from. Supported formats: - `projects//agent` - `projects//locations//agent`",
30250	//       "location": "path",
30251	//       "pattern": "^projects/[^/]+/agent$",
30252	//       "required": true,
30253	//       "type": "string"
30254	//     }
30255	//   },
30256	//   "path": "v2beta1/{+parent}/versions",
30257	//   "response": {
30258	//     "$ref": "GoogleCloudDialogflowV2beta1ListVersionsResponse"
30259	//   },
30260	//   "scopes": [
30261	//     "https://www.googleapis.com/auth/cloud-platform",
30262	//     "https://www.googleapis.com/auth/dialogflow"
30263	//   ]
30264	// }
30265
30266}
30267
30268// Pages invokes f for each page of results.
30269// A non-nil error returned from f will halt the iteration.
30270// The provided context supersedes any context provided to the Context method.
30271func (c *ProjectsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
30272	c.ctx_ = ctx
30273	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30274	for {
30275		x, err := c.Do()
30276		if err != nil {
30277			return err
30278		}
30279		if err := f(x); err != nil {
30280			return err
30281		}
30282		if x.NextPageToken == "" {
30283			return nil
30284		}
30285		c.PageToken(x.NextPageToken)
30286	}
30287}
30288
30289// method id "dialogflow.projects.agent.versions.patch":
30290
30291type ProjectsAgentVersionsPatchCall struct {
30292	s                                   *Service
30293	nameid                              string
30294	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
30295	urlParams_                          gensupport.URLParams
30296	ctx_                                context.Context
30297	header_                             http.Header
30298}
30299
30300// Patch: Updates the specified agent version. Note that this method
30301// does not allow you to update the state of the agent the given version
30302// points to. It allows you to update only mutable properties of the
30303// version resource.
30304//
30305// - name: Output only. The unique identifier of this agent version.
30306//   Supported formats: - `projects//agent/versions/` -
30307//   `projects//locations//agent/versions/`.
30308func (r *ProjectsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsPatchCall {
30309	c := &ProjectsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30310	c.nameid = nameid
30311	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
30312	return c
30313}
30314
30315// UpdateMask sets the optional parameter "updateMask": Required. The
30316// mask to control which fields get updated.
30317func (c *ProjectsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsAgentVersionsPatchCall {
30318	c.urlParams_.Set("updateMask", updateMask)
30319	return c
30320}
30321
30322// Fields allows partial responses to be retrieved. See
30323// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30324// for more information.
30325func (c *ProjectsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsPatchCall {
30326	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30327	return c
30328}
30329
30330// Context sets the context to be used in this call's Do method. Any
30331// pending HTTP request will be aborted if the provided context is
30332// canceled.
30333func (c *ProjectsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsAgentVersionsPatchCall {
30334	c.ctx_ = ctx
30335	return c
30336}
30337
30338// Header returns an http.Header that can be modified by the caller to
30339// add HTTP headers to the request.
30340func (c *ProjectsAgentVersionsPatchCall) Header() http.Header {
30341	if c.header_ == nil {
30342		c.header_ = make(http.Header)
30343	}
30344	return c.header_
30345}
30346
30347func (c *ProjectsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
30348	reqHeaders := make(http.Header)
30349	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
30350	for k, v := range c.header_ {
30351		reqHeaders[k] = v
30352	}
30353	reqHeaders.Set("User-Agent", c.s.userAgent())
30354	var body io.Reader = nil
30355	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
30356	if err != nil {
30357		return nil, err
30358	}
30359	reqHeaders.Set("Content-Type", "application/json")
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("PATCH", 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.nameid,
30371	})
30372	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30373}
30374
30375// Do executes the "dialogflow.projects.agent.versions.patch" 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 *ProjectsAgentVersionsPatchCall) 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": "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.",
30415	//   "flatPath": "v2beta1/projects/{projectsId}/agent/versions/{versionsId}",
30416	//   "httpMethod": "PATCH",
30417	//   "id": "dialogflow.projects.agent.versions.patch",
30418	//   "parameterOrder": [
30419	//     "name"
30420	//   ],
30421	//   "parameters": {
30422	//     "name": {
30423	//       "description": "Output only. The unique identifier of this agent 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	//     "updateMask": {
30430	//       "description": "Required. The mask to control which fields get updated.",
30431	//       "format": "google-fieldmask",
30432	//       "location": "query",
30433	//       "type": "string"
30434	//     }
30435	//   },
30436	//   "path": "v2beta1/{+name}",
30437	//   "request": {
30438	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30439	//   },
30440	//   "response": {
30441	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
30442	//   },
30443	//   "scopes": [
30444	//     "https://www.googleapis.com/auth/cloud-platform",
30445	//     "https://www.googleapis.com/auth/dialogflow"
30446	//   ]
30447	// }
30448
30449}
30450
30451// method id "dialogflow.projects.answerRecords.get":
30452
30453type ProjectsAnswerRecordsGetCall struct {
30454	s            *Service
30455	name         string
30456	urlParams_   gensupport.URLParams
30457	ifNoneMatch_ string
30458	ctx_         context.Context
30459	header_      http.Header
30460}
30461
30462// Get: Deprecated. Retrieves a specific answer record.
30463//
30464// - name: The name of the answer record to retrieve. Format:
30465//   `projects//locations//answerRecords/`.
30466func (r *ProjectsAnswerRecordsService) Get(name string) *ProjectsAnswerRecordsGetCall {
30467	c := &ProjectsAnswerRecordsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30468	c.name = name
30469	return c
30470}
30471
30472// Fields allows partial responses to be retrieved. See
30473// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30474// for more information.
30475func (c *ProjectsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsGetCall {
30476	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30477	return c
30478}
30479
30480// IfNoneMatch sets the optional parameter which makes the operation
30481// fail if the object's ETag matches the given value. This is useful for
30482// getting updates only after the object has changed since the last
30483// request. Use googleapi.IsNotModified to check whether the response
30484// error from Do is the result of In-None-Match.
30485func (c *ProjectsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsGetCall {
30486	c.ifNoneMatch_ = entityTag
30487	return c
30488}
30489
30490// Context sets the context to be used in this call's Do method. Any
30491// pending HTTP request will be aborted if the provided context is
30492// canceled.
30493func (c *ProjectsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsAnswerRecordsGetCall {
30494	c.ctx_ = ctx
30495	return c
30496}
30497
30498// Header returns an http.Header that can be modified by the caller to
30499// add HTTP headers to the request.
30500func (c *ProjectsAnswerRecordsGetCall) Header() http.Header {
30501	if c.header_ == nil {
30502		c.header_ = make(http.Header)
30503	}
30504	return c.header_
30505}
30506
30507func (c *ProjectsAnswerRecordsGetCall) doRequest(alt string) (*http.Response, error) {
30508	reqHeaders := make(http.Header)
30509	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
30510	for k, v := range c.header_ {
30511		reqHeaders[k] = v
30512	}
30513	reqHeaders.Set("User-Agent", c.s.userAgent())
30514	if c.ifNoneMatch_ != "" {
30515		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30516	}
30517	var body io.Reader = nil
30518	c.urlParams_.Set("alt", alt)
30519	c.urlParams_.Set("prettyPrint", "false")
30520	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30521	urls += "?" + c.urlParams_.Encode()
30522	req, err := http.NewRequest("GET", urls, body)
30523	if err != nil {
30524		return nil, err
30525	}
30526	req.Header = reqHeaders
30527	googleapi.Expand(req.URL, map[string]string{
30528		"name": c.name,
30529	})
30530	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30531}
30532
30533// Do executes the "dialogflow.projects.answerRecords.get" call.
30534// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
30535// will be non-nil. Any non-2xx status code is an error. Response
30536// headers are in either
30537// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
30538// (if a response was returned at all) in
30539// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30540// whether the returned error was because http.StatusNotModified was
30541// returned.
30542func (c *ProjectsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
30543	gensupport.SetOptions(c.urlParams_, opts...)
30544	res, err := c.doRequest("json")
30545	if res != nil && res.StatusCode == http.StatusNotModified {
30546		if res.Body != nil {
30547			res.Body.Close()
30548		}
30549		return nil, &googleapi.Error{
30550			Code:   res.StatusCode,
30551			Header: res.Header,
30552		}
30553	}
30554	if err != nil {
30555		return nil, err
30556	}
30557	defer googleapi.CloseBody(res)
30558	if err := googleapi.CheckResponse(res); err != nil {
30559		return nil, err
30560	}
30561	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
30562		ServerResponse: googleapi.ServerResponse{
30563			Header:         res.Header,
30564			HTTPStatusCode: res.StatusCode,
30565		},
30566	}
30567	target := &ret
30568	if err := gensupport.DecodeResponse(target, res); err != nil {
30569		return nil, err
30570	}
30571	return ret, nil
30572	// {
30573	//   "description": "Deprecated. Retrieves a specific answer record.",
30574	//   "flatPath": "v2beta1/projects/{projectsId}/answerRecords/{answerRecordsId}",
30575	//   "httpMethod": "GET",
30576	//   "id": "dialogflow.projects.answerRecords.get",
30577	//   "parameterOrder": [
30578	//     "name"
30579	//   ],
30580	//   "parameters": {
30581	//     "name": {
30582	//       "description": "Required. The name of the answer record to retrieve. Format: `projects//locations//answerRecords/`.",
30583	//       "location": "path",
30584	//       "pattern": "^projects/[^/]+/answerRecords/[^/]+$",
30585	//       "required": true,
30586	//       "type": "string"
30587	//     }
30588	//   },
30589	//   "path": "v2beta1/{+name}",
30590	//   "response": {
30591	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
30592	//   },
30593	//   "scopes": [
30594	//     "https://www.googleapis.com/auth/cloud-platform",
30595	//     "https://www.googleapis.com/auth/dialogflow"
30596	//   ]
30597	// }
30598
30599}
30600
30601// method id "dialogflow.projects.answerRecords.list":
30602
30603type ProjectsAnswerRecordsListCall struct {
30604	s            *Service
30605	parent       string
30606	urlParams_   gensupport.URLParams
30607	ifNoneMatch_ string
30608	ctx_         context.Context
30609	header_      http.Header
30610}
30611
30612// List: Returns the list of all answer records in the specified project
30613// in reverse chronological order.
30614//
30615// - parent: The project to list all answer records for in reverse
30616//   chronological order. Format: `projects//locations/`.
30617func (r *ProjectsAnswerRecordsService) List(parent string) *ProjectsAnswerRecordsListCall {
30618	c := &ProjectsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30619	c.parent = parent
30620	return c
30621}
30622
30623// PageSize sets the optional parameter "pageSize": The maximum number
30624// of records to return in a single page. The server may return fewer
30625// records than this. If unspecified, we use 10. The maximum is 100.
30626func (c *ProjectsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsAnswerRecordsListCall {
30627	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30628	return c
30629}
30630
30631// PageToken sets the optional parameter "pageToken": The
30632// ListAnswerRecordsResponse.next_page_token value returned from a
30633// previous list request used to continue listing on the next page.
30634func (c *ProjectsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsAnswerRecordsListCall {
30635	c.urlParams_.Set("pageToken", pageToken)
30636	return c
30637}
30638
30639// Fields allows partial responses to be retrieved. See
30640// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30641// for more information.
30642func (c *ProjectsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsListCall {
30643	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30644	return c
30645}
30646
30647// IfNoneMatch sets the optional parameter which makes the operation
30648// fail if the object's ETag matches the given value. This is useful for
30649// getting updates only after the object has changed since the last
30650// request. Use googleapi.IsNotModified to check whether the response
30651// error from Do is the result of In-None-Match.
30652func (c *ProjectsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsListCall {
30653	c.ifNoneMatch_ = entityTag
30654	return c
30655}
30656
30657// Context sets the context to be used in this call's Do method. Any
30658// pending HTTP request will be aborted if the provided context is
30659// canceled.
30660func (c *ProjectsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsAnswerRecordsListCall {
30661	c.ctx_ = ctx
30662	return c
30663}
30664
30665// Header returns an http.Header that can be modified by the caller to
30666// add HTTP headers to the request.
30667func (c *ProjectsAnswerRecordsListCall) Header() http.Header {
30668	if c.header_ == nil {
30669		c.header_ = make(http.Header)
30670	}
30671	return c.header_
30672}
30673
30674func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
30675	reqHeaders := make(http.Header)
30676	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
30677	for k, v := range c.header_ {
30678		reqHeaders[k] = v
30679	}
30680	reqHeaders.Set("User-Agent", c.s.userAgent())
30681	if c.ifNoneMatch_ != "" {
30682		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30683	}
30684	var body io.Reader = nil
30685	c.urlParams_.Set("alt", alt)
30686	c.urlParams_.Set("prettyPrint", "false")
30687	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
30688	urls += "?" + c.urlParams_.Encode()
30689	req, err := http.NewRequest("GET", urls, body)
30690	if err != nil {
30691		return nil, err
30692	}
30693	req.Header = reqHeaders
30694	googleapi.Expand(req.URL, map[string]string{
30695		"parent": c.parent,
30696	})
30697	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30698}
30699
30700// Do executes the "dialogflow.projects.answerRecords.list" call.
30701// Exactly one of *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
30702// or error will be non-nil. Any non-2xx status code is an error.
30703// Response headers are in either
30704// *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.
30705// Header or (if a response was returned at all) in
30706// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30707// whether the returned error was because http.StatusNotModified was
30708// returned.
30709func (c *ProjectsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
30710	gensupport.SetOptions(c.urlParams_, opts...)
30711	res, err := c.doRequest("json")
30712	if res != nil && res.StatusCode == http.StatusNotModified {
30713		if res.Body != nil {
30714			res.Body.Close()
30715		}
30716		return nil, &googleapi.Error{
30717			Code:   res.StatusCode,
30718			Header: res.Header,
30719		}
30720	}
30721	if err != nil {
30722		return nil, err
30723	}
30724	defer googleapi.CloseBody(res)
30725	if err := googleapi.CheckResponse(res); err != nil {
30726		return nil, err
30727	}
30728	ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
30729		ServerResponse: googleapi.ServerResponse{
30730			Header:         res.Header,
30731			HTTPStatusCode: res.StatusCode,
30732		},
30733	}
30734	target := &ret
30735	if err := gensupport.DecodeResponse(target, res); err != nil {
30736		return nil, err
30737	}
30738	return ret, nil
30739	// {
30740	//   "description": "Returns the list of all answer records in the specified project in reverse chronological order.",
30741	//   "flatPath": "v2beta1/projects/{projectsId}/answerRecords",
30742	//   "httpMethod": "GET",
30743	//   "id": "dialogflow.projects.answerRecords.list",
30744	//   "parameterOrder": [
30745	//     "parent"
30746	//   ],
30747	//   "parameters": {
30748	//     "pageSize": {
30749	//       "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.",
30750	//       "format": "int32",
30751	//       "location": "query",
30752	//       "type": "integer"
30753	//     },
30754	//     "pageToken": {
30755	//       "description": "Optional. The ListAnswerRecordsResponse.next_page_token value returned from a previous list request used to continue listing on the next page.",
30756	//       "location": "query",
30757	//       "type": "string"
30758	//     },
30759	//     "parent": {
30760	//       "description": "Required. The project to list all answer records for in reverse chronological order. Format: `projects//locations/`.",
30761	//       "location": "path",
30762	//       "pattern": "^projects/[^/]+$",
30763	//       "required": true,
30764	//       "type": "string"
30765	//     }
30766	//   },
30767	//   "path": "v2beta1/{+parent}/answerRecords",
30768	//   "response": {
30769	//     "$ref": "GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse"
30770	//   },
30771	//   "scopes": [
30772	//     "https://www.googleapis.com/auth/cloud-platform",
30773	//     "https://www.googleapis.com/auth/dialogflow"
30774	//   ]
30775	// }
30776
30777}
30778
30779// Pages invokes f for each page of results.
30780// A non-nil error returned from f will halt the iteration.
30781// The provided context supersedes any context provided to the Context method.
30782func (c *ProjectsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
30783	c.ctx_ = ctx
30784	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30785	for {
30786		x, err := c.Do()
30787		if err != nil {
30788			return err
30789		}
30790		if err := f(x); err != nil {
30791			return err
30792		}
30793		if x.NextPageToken == "" {
30794			return nil
30795		}
30796		c.PageToken(x.NextPageToken)
30797	}
30798}
30799
30800// method id "dialogflow.projects.answerRecords.patch":
30801
30802type ProjectsAnswerRecordsPatchCall struct {
30803	s                                        *Service
30804	nameid                                   string
30805	googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
30806	urlParams_                               gensupport.URLParams
30807	ctx_                                     context.Context
30808	header_                                  http.Header
30809}
30810
30811// Patch: Updates the specified answer record.
30812//
30813// - name: The unique identifier of this answer record. Required for
30814//   AnswerRecords.UpdateAnswerRecord method. Format:
30815//   `projects//locations//answerRecords/`.
30816func (r *ProjectsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsAnswerRecordsPatchCall {
30817	c := &ProjectsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30818	c.nameid = nameid
30819	c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
30820	return c
30821}
30822
30823// UpdateMask sets the optional parameter "updateMask": Required. The
30824// mask to control which fields get updated.
30825func (c *ProjectsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsAnswerRecordsPatchCall {
30826	c.urlParams_.Set("updateMask", updateMask)
30827	return c
30828}
30829
30830// Fields allows partial responses to be retrieved. See
30831// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30832// for more information.
30833func (c *ProjectsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsPatchCall {
30834	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30835	return c
30836}
30837
30838// Context sets the context to be used in this call's Do method. Any
30839// pending HTTP request will be aborted if the provided context is
30840// canceled.
30841func (c *ProjectsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsAnswerRecordsPatchCall {
30842	c.ctx_ = ctx
30843	return c
30844}
30845
30846// Header returns an http.Header that can be modified by the caller to
30847// add HTTP headers to the request.
30848func (c *ProjectsAnswerRecordsPatchCall) Header() http.Header {
30849	if c.header_ == nil {
30850		c.header_ = make(http.Header)
30851	}
30852	return c.header_
30853}
30854
30855func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
30856	reqHeaders := make(http.Header)
30857	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
30858	for k, v := range c.header_ {
30859		reqHeaders[k] = v
30860	}
30861	reqHeaders.Set("User-Agent", c.s.userAgent())
30862	var body io.Reader = nil
30863	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
30864	if err != nil {
30865		return nil, err
30866	}
30867	reqHeaders.Set("Content-Type", "application/json")
30868	c.urlParams_.Set("alt", alt)
30869	c.urlParams_.Set("prettyPrint", "false")
30870	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30871	urls += "?" + c.urlParams_.Encode()
30872	req, err := http.NewRequest("PATCH", urls, body)
30873	if err != nil {
30874		return nil, err
30875	}
30876	req.Header = reqHeaders
30877	googleapi.Expand(req.URL, map[string]string{
30878		"name": c.nameid,
30879	})
30880	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30881}
30882
30883// Do executes the "dialogflow.projects.answerRecords.patch" call.
30884// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
30885// will be non-nil. Any non-2xx status code is an error. Response
30886// headers are in either
30887// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
30888// (if a response was returned at all) in
30889// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30890// whether the returned error was because http.StatusNotModified was
30891// returned.
30892func (c *ProjectsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
30893	gensupport.SetOptions(c.urlParams_, opts...)
30894	res, err := c.doRequest("json")
30895	if res != nil && res.StatusCode == http.StatusNotModified {
30896		if res.Body != nil {
30897			res.Body.Close()
30898		}
30899		return nil, &googleapi.Error{
30900			Code:   res.StatusCode,
30901			Header: res.Header,
30902		}
30903	}
30904	if err != nil {
30905		return nil, err
30906	}
30907	defer googleapi.CloseBody(res)
30908	if err := googleapi.CheckResponse(res); err != nil {
30909		return nil, err
30910	}
30911	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
30912		ServerResponse: googleapi.ServerResponse{
30913			Header:         res.Header,
30914			HTTPStatusCode: res.StatusCode,
30915		},
30916	}
30917	target := &ret
30918	if err := gensupport.DecodeResponse(target, res); err != nil {
30919		return nil, err
30920	}
30921	return ret, nil
30922	// {
30923	//   "description": "Updates the specified answer record.",
30924	//   "flatPath": "v2beta1/projects/{projectsId}/answerRecords/{answerRecordsId}",
30925	//   "httpMethod": "PATCH",
30926	//   "id": "dialogflow.projects.answerRecords.patch",
30927	//   "parameterOrder": [
30928	//     "name"
30929	//   ],
30930	//   "parameters": {
30931	//     "name": {
30932	//       "description": "The unique identifier of this answer record. Required for AnswerRecords.UpdateAnswerRecord method. Format: `projects//locations//answerRecords/`.",
30933	//       "location": "path",
30934	//       "pattern": "^projects/[^/]+/answerRecords/[^/]+$",
30935	//       "required": true,
30936	//       "type": "string"
30937	//     },
30938	//     "updateMask": {
30939	//       "description": "Required. The mask to control which fields get updated.",
30940	//       "format": "google-fieldmask",
30941	//       "location": "query",
30942	//       "type": "string"
30943	//     }
30944	//   },
30945	//   "path": "v2beta1/{+name}",
30946	//   "request": {
30947	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
30948	//   },
30949	//   "response": {
30950	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
30951	//   },
30952	//   "scopes": [
30953	//     "https://www.googleapis.com/auth/cloud-platform",
30954	//     "https://www.googleapis.com/auth/dialogflow"
30955	//   ]
30956	// }
30957
30958}
30959
30960// method id "dialogflow.projects.conversationProfiles.create":
30961
30962type ProjectsConversationProfilesCreateCall struct {
30963	s                                               *Service
30964	parent                                          string
30965	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
30966	urlParams_                                      gensupport.URLParams
30967	ctx_                                            context.Context
30968	header_                                         http.Header
30969}
30970
30971// Create: Creates a conversation profile in the specified project.
30972// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
30973// aren't populated in the response. You can retrieve them via
30974// GetConversationProfile API.
30975//
30976// - parent: The project to create a conversation profile for. Format:
30977//   `projects//locations/`.
30978func (r *ProjectsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesCreateCall {
30979	c := &ProjectsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30980	c.parent = parent
30981	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
30982	return c
30983}
30984
30985// Fields allows partial responses to be retrieved. See
30986// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30987// for more information.
30988func (c *ProjectsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesCreateCall {
30989	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30990	return c
30991}
30992
30993// Context sets the context to be used in this call's Do method. Any
30994// pending HTTP request will be aborted if the provided context is
30995// canceled.
30996func (c *ProjectsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsConversationProfilesCreateCall {
30997	c.ctx_ = ctx
30998	return c
30999}
31000
31001// Header returns an http.Header that can be modified by the caller to
31002// add HTTP headers to the request.
31003func (c *ProjectsConversationProfilesCreateCall) Header() http.Header {
31004	if c.header_ == nil {
31005		c.header_ = make(http.Header)
31006	}
31007	return c.header_
31008}
31009
31010func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
31011	reqHeaders := make(http.Header)
31012	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
31013	for k, v := range c.header_ {
31014		reqHeaders[k] = v
31015	}
31016	reqHeaders.Set("User-Agent", c.s.userAgent())
31017	var body io.Reader = nil
31018	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
31019	if err != nil {
31020		return nil, err
31021	}
31022	reqHeaders.Set("Content-Type", "application/json")
31023	c.urlParams_.Set("alt", alt)
31024	c.urlParams_.Set("prettyPrint", "false")
31025	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
31026	urls += "?" + c.urlParams_.Encode()
31027	req, err := http.NewRequest("POST", urls, body)
31028	if err != nil {
31029		return nil, err
31030	}
31031	req.Header = reqHeaders
31032	googleapi.Expand(req.URL, map[string]string{
31033		"parent": c.parent,
31034	})
31035	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31036}
31037
31038// Do executes the "dialogflow.projects.conversationProfiles.create" call.
31039// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
31040// error will be non-nil. Any non-2xx status code is an error. Response
31041// headers are in either
31042// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
31043//  or (if a response was returned at all) in
31044// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31045// whether the returned error was because http.StatusNotModified was
31046// returned.
31047func (c *ProjectsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
31048	gensupport.SetOptions(c.urlParams_, opts...)
31049	res, err := c.doRequest("json")
31050	if res != nil && res.StatusCode == http.StatusNotModified {
31051		if res.Body != nil {
31052			res.Body.Close()
31053		}
31054		return nil, &googleapi.Error{
31055			Code:   res.StatusCode,
31056			Header: res.Header,
31057		}
31058	}
31059	if err != nil {
31060		return nil, err
31061	}
31062	defer googleapi.CloseBody(res)
31063	if err := googleapi.CheckResponse(res); err != nil {
31064		return nil, err
31065	}
31066	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
31067		ServerResponse: googleapi.ServerResponse{
31068			Header:         res.Header,
31069			HTTPStatusCode: res.StatusCode,
31070		},
31071	}
31072	target := &ret
31073	if err := gensupport.DecodeResponse(target, res); err != nil {
31074		return nil, err
31075	}
31076	return ret, nil
31077	// {
31078	//   "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.",
31079	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles",
31080	//   "httpMethod": "POST",
31081	//   "id": "dialogflow.projects.conversationProfiles.create",
31082	//   "parameterOrder": [
31083	//     "parent"
31084	//   ],
31085	//   "parameters": {
31086	//     "parent": {
31087	//       "description": "Required. The project to create a conversation profile for. Format: `projects//locations/`.",
31088	//       "location": "path",
31089	//       "pattern": "^projects/[^/]+$",
31090	//       "required": true,
31091	//       "type": "string"
31092	//     }
31093	//   },
31094	//   "path": "v2beta1/{+parent}/conversationProfiles",
31095	//   "request": {
31096	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31097	//   },
31098	//   "response": {
31099	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31100	//   },
31101	//   "scopes": [
31102	//     "https://www.googleapis.com/auth/cloud-platform",
31103	//     "https://www.googleapis.com/auth/dialogflow"
31104	//   ]
31105	// }
31106
31107}
31108
31109// method id "dialogflow.projects.conversationProfiles.delete":
31110
31111type ProjectsConversationProfilesDeleteCall struct {
31112	s          *Service
31113	name       string
31114	urlParams_ gensupport.URLParams
31115	ctx_       context.Context
31116	header_    http.Header
31117}
31118
31119// Delete: Deletes the specified conversation profile.
31120//
31121// - name: The name of the conversation profile to delete. Format:
31122//   `projects//locations//conversationProfiles/`.
31123func (r *ProjectsConversationProfilesService) Delete(name string) *ProjectsConversationProfilesDeleteCall {
31124	c := &ProjectsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31125	c.name = name
31126	return c
31127}
31128
31129// Fields allows partial responses to be retrieved. See
31130// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31131// for more information.
31132func (c *ProjectsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesDeleteCall {
31133	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31134	return c
31135}
31136
31137// Context sets the context to be used in this call's Do method. Any
31138// pending HTTP request will be aborted if the provided context is
31139// canceled.
31140func (c *ProjectsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsConversationProfilesDeleteCall {
31141	c.ctx_ = ctx
31142	return c
31143}
31144
31145// Header returns an http.Header that can be modified by the caller to
31146// add HTTP headers to the request.
31147func (c *ProjectsConversationProfilesDeleteCall) Header() http.Header {
31148	if c.header_ == nil {
31149		c.header_ = make(http.Header)
31150	}
31151	return c.header_
31152}
31153
31154func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
31155	reqHeaders := make(http.Header)
31156	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
31157	for k, v := range c.header_ {
31158		reqHeaders[k] = v
31159	}
31160	reqHeaders.Set("User-Agent", c.s.userAgent())
31161	var body io.Reader = nil
31162	c.urlParams_.Set("alt", alt)
31163	c.urlParams_.Set("prettyPrint", "false")
31164	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31165	urls += "?" + c.urlParams_.Encode()
31166	req, err := http.NewRequest("DELETE", urls, body)
31167	if err != nil {
31168		return nil, err
31169	}
31170	req.Header = reqHeaders
31171	googleapi.Expand(req.URL, map[string]string{
31172		"name": c.name,
31173	})
31174	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31175}
31176
31177// Do executes the "dialogflow.projects.conversationProfiles.delete" call.
31178// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
31179// non-2xx status code is an error. Response headers are in either
31180// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
31181// returned at all) in error.(*googleapi.Error).Header. Use
31182// googleapi.IsNotModified to check whether the returned error was
31183// because http.StatusNotModified was returned.
31184func (c *ProjectsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31185	gensupport.SetOptions(c.urlParams_, opts...)
31186	res, err := c.doRequest("json")
31187	if res != nil && res.StatusCode == http.StatusNotModified {
31188		if res.Body != nil {
31189			res.Body.Close()
31190		}
31191		return nil, &googleapi.Error{
31192			Code:   res.StatusCode,
31193			Header: res.Header,
31194		}
31195	}
31196	if err != nil {
31197		return nil, err
31198	}
31199	defer googleapi.CloseBody(res)
31200	if err := googleapi.CheckResponse(res); err != nil {
31201		return nil, err
31202	}
31203	ret := &GoogleProtobufEmpty{
31204		ServerResponse: googleapi.ServerResponse{
31205			Header:         res.Header,
31206			HTTPStatusCode: res.StatusCode,
31207		},
31208	}
31209	target := &ret
31210	if err := gensupport.DecodeResponse(target, res); err != nil {
31211		return nil, err
31212	}
31213	return ret, nil
31214	// {
31215	//   "description": "Deletes the specified conversation profile.",
31216	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles/{conversationProfilesId}",
31217	//   "httpMethod": "DELETE",
31218	//   "id": "dialogflow.projects.conversationProfiles.delete",
31219	//   "parameterOrder": [
31220	//     "name"
31221	//   ],
31222	//   "parameters": {
31223	//     "name": {
31224	//       "description": "Required. The name of the conversation profile to delete. Format: `projects//locations//conversationProfiles/`.",
31225	//       "location": "path",
31226	//       "pattern": "^projects/[^/]+/conversationProfiles/[^/]+$",
31227	//       "required": true,
31228	//       "type": "string"
31229	//     }
31230	//   },
31231	//   "path": "v2beta1/{+name}",
31232	//   "response": {
31233	//     "$ref": "GoogleProtobufEmpty"
31234	//   },
31235	//   "scopes": [
31236	//     "https://www.googleapis.com/auth/cloud-platform",
31237	//     "https://www.googleapis.com/auth/dialogflow"
31238	//   ]
31239	// }
31240
31241}
31242
31243// method id "dialogflow.projects.conversationProfiles.get":
31244
31245type ProjectsConversationProfilesGetCall struct {
31246	s            *Service
31247	name         string
31248	urlParams_   gensupport.URLParams
31249	ifNoneMatch_ string
31250	ctx_         context.Context
31251	header_      http.Header
31252}
31253
31254// Get: Retrieves the specified conversation profile.
31255//
31256// - name: The resource name of the conversation profile. Format:
31257//   `projects//locations//conversationProfiles/`.
31258func (r *ProjectsConversationProfilesService) Get(name string) *ProjectsConversationProfilesGetCall {
31259	c := &ProjectsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31260	c.name = name
31261	return c
31262}
31263
31264// Fields allows partial responses to be retrieved. See
31265// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31266// for more information.
31267func (c *ProjectsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesGetCall {
31268	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31269	return c
31270}
31271
31272// IfNoneMatch sets the optional parameter which makes the operation
31273// fail if the object's ETag matches the given value. This is useful for
31274// getting updates only after the object has changed since the last
31275// request. Use googleapi.IsNotModified to check whether the response
31276// error from Do is the result of In-None-Match.
31277func (c *ProjectsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesGetCall {
31278	c.ifNoneMatch_ = entityTag
31279	return c
31280}
31281
31282// Context sets the context to be used in this call's Do method. Any
31283// pending HTTP request will be aborted if the provided context is
31284// canceled.
31285func (c *ProjectsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsConversationProfilesGetCall {
31286	c.ctx_ = ctx
31287	return c
31288}
31289
31290// Header returns an http.Header that can be modified by the caller to
31291// add HTTP headers to the request.
31292func (c *ProjectsConversationProfilesGetCall) Header() http.Header {
31293	if c.header_ == nil {
31294		c.header_ = make(http.Header)
31295	}
31296	return c.header_
31297}
31298
31299func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
31300	reqHeaders := make(http.Header)
31301	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
31302	for k, v := range c.header_ {
31303		reqHeaders[k] = v
31304	}
31305	reqHeaders.Set("User-Agent", c.s.userAgent())
31306	if c.ifNoneMatch_ != "" {
31307		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31308	}
31309	var body io.Reader = nil
31310	c.urlParams_.Set("alt", alt)
31311	c.urlParams_.Set("prettyPrint", "false")
31312	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31313	urls += "?" + c.urlParams_.Encode()
31314	req, err := http.NewRequest("GET", urls, body)
31315	if err != nil {
31316		return nil, err
31317	}
31318	req.Header = reqHeaders
31319	googleapi.Expand(req.URL, map[string]string{
31320		"name": c.name,
31321	})
31322	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31323}
31324
31325// Do executes the "dialogflow.projects.conversationProfiles.get" call.
31326// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
31327// error will be non-nil. Any non-2xx status code is an error. Response
31328// headers are in either
31329// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
31330//  or (if a response was returned at all) in
31331// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31332// whether the returned error was because http.StatusNotModified was
31333// returned.
31334func (c *ProjectsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
31335	gensupport.SetOptions(c.urlParams_, opts...)
31336	res, err := c.doRequest("json")
31337	if res != nil && res.StatusCode == http.StatusNotModified {
31338		if res.Body != nil {
31339			res.Body.Close()
31340		}
31341		return nil, &googleapi.Error{
31342			Code:   res.StatusCode,
31343			Header: res.Header,
31344		}
31345	}
31346	if err != nil {
31347		return nil, err
31348	}
31349	defer googleapi.CloseBody(res)
31350	if err := googleapi.CheckResponse(res); err != nil {
31351		return nil, err
31352	}
31353	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
31354		ServerResponse: googleapi.ServerResponse{
31355			Header:         res.Header,
31356			HTTPStatusCode: res.StatusCode,
31357		},
31358	}
31359	target := &ret
31360	if err := gensupport.DecodeResponse(target, res); err != nil {
31361		return nil, err
31362	}
31363	return ret, nil
31364	// {
31365	//   "description": "Retrieves the specified conversation profile.",
31366	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles/{conversationProfilesId}",
31367	//   "httpMethod": "GET",
31368	//   "id": "dialogflow.projects.conversationProfiles.get",
31369	//   "parameterOrder": [
31370	//     "name"
31371	//   ],
31372	//   "parameters": {
31373	//     "name": {
31374	//       "description": "Required. The resource name of the conversation profile. Format: `projects//locations//conversationProfiles/`.",
31375	//       "location": "path",
31376	//       "pattern": "^projects/[^/]+/conversationProfiles/[^/]+$",
31377	//       "required": true,
31378	//       "type": "string"
31379	//     }
31380	//   },
31381	//   "path": "v2beta1/{+name}",
31382	//   "response": {
31383	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31384	//   },
31385	//   "scopes": [
31386	//     "https://www.googleapis.com/auth/cloud-platform",
31387	//     "https://www.googleapis.com/auth/dialogflow"
31388	//   ]
31389	// }
31390
31391}
31392
31393// method id "dialogflow.projects.conversationProfiles.list":
31394
31395type ProjectsConversationProfilesListCall struct {
31396	s            *Service
31397	parent       string
31398	urlParams_   gensupport.URLParams
31399	ifNoneMatch_ string
31400	ctx_         context.Context
31401	header_      http.Header
31402}
31403
31404// List: Returns the list of all conversation profiles in the specified
31405// project.
31406//
31407// - parent: The project to list all conversation profiles from. Format:
31408//   `projects//locations/`.
31409func (r *ProjectsConversationProfilesService) List(parent string) *ProjectsConversationProfilesListCall {
31410	c := &ProjectsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31411	c.parent = parent
31412	return c
31413}
31414
31415// PageSize sets the optional parameter "pageSize": The maximum number
31416// of items to return in a single page. By default 100 and at most 1000.
31417func (c *ProjectsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsConversationProfilesListCall {
31418	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31419	return c
31420}
31421
31422// PageToken sets the optional parameter "pageToken": The
31423// next_page_token value returned from a previous list request.
31424func (c *ProjectsConversationProfilesListCall) PageToken(pageToken string) *ProjectsConversationProfilesListCall {
31425	c.urlParams_.Set("pageToken", pageToken)
31426	return c
31427}
31428
31429// Fields allows partial responses to be retrieved. See
31430// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31431// for more information.
31432func (c *ProjectsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesListCall {
31433	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31434	return c
31435}
31436
31437// IfNoneMatch sets the optional parameter which makes the operation
31438// fail if the object's ETag matches the given value. This is useful for
31439// getting updates only after the object has changed since the last
31440// request. Use googleapi.IsNotModified to check whether the response
31441// error from Do is the result of In-None-Match.
31442func (c *ProjectsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesListCall {
31443	c.ifNoneMatch_ = entityTag
31444	return c
31445}
31446
31447// Context sets the context to be used in this call's Do method. Any
31448// pending HTTP request will be aborted if the provided context is
31449// canceled.
31450func (c *ProjectsConversationProfilesListCall) Context(ctx context.Context) *ProjectsConversationProfilesListCall {
31451	c.ctx_ = ctx
31452	return c
31453}
31454
31455// Header returns an http.Header that can be modified by the caller to
31456// add HTTP headers to the request.
31457func (c *ProjectsConversationProfilesListCall) Header() http.Header {
31458	if c.header_ == nil {
31459		c.header_ = make(http.Header)
31460	}
31461	return c.header_
31462}
31463
31464func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
31465	reqHeaders := make(http.Header)
31466	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
31467	for k, v := range c.header_ {
31468		reqHeaders[k] = v
31469	}
31470	reqHeaders.Set("User-Agent", c.s.userAgent())
31471	if c.ifNoneMatch_ != "" {
31472		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31473	}
31474	var body io.Reader = nil
31475	c.urlParams_.Set("alt", alt)
31476	c.urlParams_.Set("prettyPrint", "false")
31477	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
31478	urls += "?" + c.urlParams_.Encode()
31479	req, err := http.NewRequest("GET", urls, body)
31480	if err != nil {
31481		return nil, err
31482	}
31483	req.Header = reqHeaders
31484	googleapi.Expand(req.URL, map[string]string{
31485		"parent": c.parent,
31486	})
31487	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31488}
31489
31490// Do executes the "dialogflow.projects.conversationProfiles.list" call.
31491// Exactly one of
31492// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse or
31493// error will be non-nil. Any non-2xx status code is an error. Response
31494// headers are in either
31495// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerRe
31496// sponse.Header or (if a response was returned at all) in
31497// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31498// whether the returned error was because http.StatusNotModified was
31499// returned.
31500func (c *ProjectsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
31501	gensupport.SetOptions(c.urlParams_, opts...)
31502	res, err := c.doRequest("json")
31503	if res != nil && res.StatusCode == http.StatusNotModified {
31504		if res.Body != nil {
31505			res.Body.Close()
31506		}
31507		return nil, &googleapi.Error{
31508			Code:   res.StatusCode,
31509			Header: res.Header,
31510		}
31511	}
31512	if err != nil {
31513		return nil, err
31514	}
31515	defer googleapi.CloseBody(res)
31516	if err := googleapi.CheckResponse(res); err != nil {
31517		return nil, err
31518	}
31519	ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
31520		ServerResponse: googleapi.ServerResponse{
31521			Header:         res.Header,
31522			HTTPStatusCode: res.StatusCode,
31523		},
31524	}
31525	target := &ret
31526	if err := gensupport.DecodeResponse(target, res); err != nil {
31527		return nil, err
31528	}
31529	return ret, nil
31530	// {
31531	//   "description": "Returns the list of all conversation profiles in the specified project.",
31532	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles",
31533	//   "httpMethod": "GET",
31534	//   "id": "dialogflow.projects.conversationProfiles.list",
31535	//   "parameterOrder": [
31536	//     "parent"
31537	//   ],
31538	//   "parameters": {
31539	//     "pageSize": {
31540	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
31541	//       "format": "int32",
31542	//       "location": "query",
31543	//       "type": "integer"
31544	//     },
31545	//     "pageToken": {
31546	//       "description": "The next_page_token value returned from a previous list request.",
31547	//       "location": "query",
31548	//       "type": "string"
31549	//     },
31550	//     "parent": {
31551	//       "description": "Required. The project to list all conversation profiles from. Format: `projects//locations/`.",
31552	//       "location": "path",
31553	//       "pattern": "^projects/[^/]+$",
31554	//       "required": true,
31555	//       "type": "string"
31556	//     }
31557	//   },
31558	//   "path": "v2beta1/{+parent}/conversationProfiles",
31559	//   "response": {
31560	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationProfilesResponse"
31561	//   },
31562	//   "scopes": [
31563	//     "https://www.googleapis.com/auth/cloud-platform",
31564	//     "https://www.googleapis.com/auth/dialogflow"
31565	//   ]
31566	// }
31567
31568}
31569
31570// Pages invokes f for each page of results.
31571// A non-nil error returned from f will halt the iteration.
31572// The provided context supersedes any context provided to the Context method.
31573func (c *ProjectsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
31574	c.ctx_ = ctx
31575	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
31576	for {
31577		x, err := c.Do()
31578		if err != nil {
31579			return err
31580		}
31581		if err := f(x); err != nil {
31582			return err
31583		}
31584		if x.NextPageToken == "" {
31585			return nil
31586		}
31587		c.PageToken(x.NextPageToken)
31588	}
31589}
31590
31591// method id "dialogflow.projects.conversationProfiles.patch":
31592
31593type ProjectsConversationProfilesPatchCall struct {
31594	s                                               *Service
31595	nameid                                          string
31596	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
31597	urlParams_                                      gensupport.URLParams
31598	ctx_                                            context.Context
31599	header_                                         http.Header
31600}
31601
31602// Patch: Updates the specified conversation profile.
31603// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
31604// aren't populated in the response. You can retrieve them via
31605// GetConversationProfile API.
31606//
31607// - name: The unique identifier of this conversation profile. Format:
31608//   `projects//locations//conversationProfiles/`.
31609func (r *ProjectsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesPatchCall {
31610	c := &ProjectsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31611	c.nameid = nameid
31612	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
31613	return c
31614}
31615
31616// UpdateMask sets the optional parameter "updateMask": Required. The
31617// mask to control which fields to update.
31618func (c *ProjectsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsConversationProfilesPatchCall {
31619	c.urlParams_.Set("updateMask", updateMask)
31620	return c
31621}
31622
31623// Fields allows partial responses to be retrieved. See
31624// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31625// for more information.
31626func (c *ProjectsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesPatchCall {
31627	c.urlParams_.Set("fields", googleapi.CombineFields(s))
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 *ProjectsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsConversationProfilesPatchCall {
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 *ProjectsConversationProfilesPatchCall) Header() http.Header {
31642	if c.header_ == nil {
31643		c.header_ = make(http.Header)
31644	}
31645	return c.header_
31646}
31647
31648func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
31649	reqHeaders := make(http.Header)
31650	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
31651	for k, v := range c.header_ {
31652		reqHeaders[k] = v
31653	}
31654	reqHeaders.Set("User-Agent", c.s.userAgent())
31655	var body io.Reader = nil
31656	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
31657	if err != nil {
31658		return nil, err
31659	}
31660	reqHeaders.Set("Content-Type", "application/json")
31661	c.urlParams_.Set("alt", alt)
31662	c.urlParams_.Set("prettyPrint", "false")
31663	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31664	urls += "?" + c.urlParams_.Encode()
31665	req, err := http.NewRequest("PATCH", urls, body)
31666	if err != nil {
31667		return nil, err
31668	}
31669	req.Header = reqHeaders
31670	googleapi.Expand(req.URL, map[string]string{
31671		"name": c.nameid,
31672	})
31673	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31674}
31675
31676// Do executes the "dialogflow.projects.conversationProfiles.patch" call.
31677// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
31678// error will be non-nil. Any non-2xx status code is an error. Response
31679// headers are in either
31680// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
31681//  or (if a response was returned at all) in
31682// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31683// whether the returned error was because http.StatusNotModified was
31684// returned.
31685func (c *ProjectsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
31686	gensupport.SetOptions(c.urlParams_, opts...)
31687	res, err := c.doRequest("json")
31688	if res != nil && res.StatusCode == http.StatusNotModified {
31689		if res.Body != nil {
31690			res.Body.Close()
31691		}
31692		return nil, &googleapi.Error{
31693			Code:   res.StatusCode,
31694			Header: res.Header,
31695		}
31696	}
31697	if err != nil {
31698		return nil, err
31699	}
31700	defer googleapi.CloseBody(res)
31701	if err := googleapi.CheckResponse(res); err != nil {
31702		return nil, err
31703	}
31704	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
31705		ServerResponse: googleapi.ServerResponse{
31706			Header:         res.Header,
31707			HTTPStatusCode: res.StatusCode,
31708		},
31709	}
31710	target := &ret
31711	if err := gensupport.DecodeResponse(target, res); err != nil {
31712		return nil, err
31713	}
31714	return ret, nil
31715	// {
31716	//   "description": "Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.",
31717	//   "flatPath": "v2beta1/projects/{projectsId}/conversationProfiles/{conversationProfilesId}",
31718	//   "httpMethod": "PATCH",
31719	//   "id": "dialogflow.projects.conversationProfiles.patch",
31720	//   "parameterOrder": [
31721	//     "name"
31722	//   ],
31723	//   "parameters": {
31724	//     "name": {
31725	//       "description": "The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`.",
31726	//       "location": "path",
31727	//       "pattern": "^projects/[^/]+/conversationProfiles/[^/]+$",
31728	//       "required": true,
31729	//       "type": "string"
31730	//     },
31731	//     "updateMask": {
31732	//       "description": "Required. The mask to control which fields to update.",
31733	//       "format": "google-fieldmask",
31734	//       "location": "query",
31735	//       "type": "string"
31736	//     }
31737	//   },
31738	//   "path": "v2beta1/{+name}",
31739	//   "request": {
31740	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31741	//   },
31742	//   "response": {
31743	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
31744	//   },
31745	//   "scopes": [
31746	//     "https://www.googleapis.com/auth/cloud-platform",
31747	//     "https://www.googleapis.com/auth/dialogflow"
31748	//   ]
31749	// }
31750
31751}
31752
31753// method id "dialogflow.projects.conversations.complete":
31754
31755type ProjectsConversationsCompleteCall struct {
31756	s                                                       *Service
31757	nameid                                                  string
31758	googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
31759	urlParams_                                              gensupport.URLParams
31760	ctx_                                                    context.Context
31761	header_                                                 http.Header
31762}
31763
31764// Complete: Completes the specified conversation. Finished
31765// conversations are purged from the database after 30 days.
31766//
31767// - name: Resource identifier of the conversation to close. Format:
31768//   `projects//locations//conversations/`.
31769func (r *ProjectsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsConversationsCompleteCall {
31770	c := &ProjectsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31771	c.nameid = nameid
31772	c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
31773	return c
31774}
31775
31776// Fields allows partial responses to be retrieved. See
31777// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31778// for more information.
31779func (c *ProjectsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsConversationsCompleteCall {
31780	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31781	return c
31782}
31783
31784// Context sets the context to be used in this call's Do method. Any
31785// pending HTTP request will be aborted if the provided context is
31786// canceled.
31787func (c *ProjectsConversationsCompleteCall) Context(ctx context.Context) *ProjectsConversationsCompleteCall {
31788	c.ctx_ = ctx
31789	return c
31790}
31791
31792// Header returns an http.Header that can be modified by the caller to
31793// add HTTP headers to the request.
31794func (c *ProjectsConversationsCompleteCall) Header() http.Header {
31795	if c.header_ == nil {
31796		c.header_ = make(http.Header)
31797	}
31798	return c.header_
31799}
31800
31801func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
31802	reqHeaders := make(http.Header)
31803	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
31804	for k, v := range c.header_ {
31805		reqHeaders[k] = v
31806	}
31807	reqHeaders.Set("User-Agent", c.s.userAgent())
31808	var body io.Reader = nil
31809	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
31810	if err != nil {
31811		return nil, err
31812	}
31813	reqHeaders.Set("Content-Type", "application/json")
31814	c.urlParams_.Set("alt", alt)
31815	c.urlParams_.Set("prettyPrint", "false")
31816	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
31817	urls += "?" + c.urlParams_.Encode()
31818	req, err := http.NewRequest("POST", urls, body)
31819	if err != nil {
31820		return nil, err
31821	}
31822	req.Header = reqHeaders
31823	googleapi.Expand(req.URL, map[string]string{
31824		"name": c.nameid,
31825	})
31826	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31827}
31828
31829// Do executes the "dialogflow.projects.conversations.complete" call.
31830// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
31831// will be non-nil. Any non-2xx status code is an error. Response
31832// headers are in either
31833// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
31834// (if a response was returned at all) in
31835// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31836// whether the returned error was because http.StatusNotModified was
31837// returned.
31838func (c *ProjectsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
31839	gensupport.SetOptions(c.urlParams_, opts...)
31840	res, err := c.doRequest("json")
31841	if res != nil && res.StatusCode == http.StatusNotModified {
31842		if res.Body != nil {
31843			res.Body.Close()
31844		}
31845		return nil, &googleapi.Error{
31846			Code:   res.StatusCode,
31847			Header: res.Header,
31848		}
31849	}
31850	if err != nil {
31851		return nil, err
31852	}
31853	defer googleapi.CloseBody(res)
31854	if err := googleapi.CheckResponse(res); err != nil {
31855		return nil, err
31856	}
31857	ret := &GoogleCloudDialogflowV2beta1Conversation{
31858		ServerResponse: googleapi.ServerResponse{
31859			Header:         res.Header,
31860			HTTPStatusCode: res.StatusCode,
31861		},
31862	}
31863	target := &ret
31864	if err := gensupport.DecodeResponse(target, res); err != nil {
31865		return nil, err
31866	}
31867	return ret, nil
31868	// {
31869	//   "description": "Completes the specified conversation. Finished conversations are purged from the database after 30 days.",
31870	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}:complete",
31871	//   "httpMethod": "POST",
31872	//   "id": "dialogflow.projects.conversations.complete",
31873	//   "parameterOrder": [
31874	//     "name"
31875	//   ],
31876	//   "parameters": {
31877	//     "name": {
31878	//       "description": "Required. Resource identifier of the conversation to close. Format: `projects//locations//conversations/`.",
31879	//       "location": "path",
31880	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
31881	//       "required": true,
31882	//       "type": "string"
31883	//     }
31884	//   },
31885	//   "path": "v2beta1/{+name}:complete",
31886	//   "request": {
31887	//     "$ref": "GoogleCloudDialogflowV2beta1CompleteConversationRequest"
31888	//   },
31889	//   "response": {
31890	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
31891	//   },
31892	//   "scopes": [
31893	//     "https://www.googleapis.com/auth/cloud-platform",
31894	//     "https://www.googleapis.com/auth/dialogflow"
31895	//   ]
31896	// }
31897
31898}
31899
31900// method id "dialogflow.projects.conversations.create":
31901
31902type ProjectsConversationsCreateCall struct {
31903	s                                        *Service
31904	parentid                                 string
31905	googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
31906	urlParams_                               gensupport.URLParams
31907	ctx_                                     context.Context
31908	header_                                  http.Header
31909}
31910
31911// Create: Creates a new conversation. Conversations are auto-completed
31912// after 24 hours. Conversation Lifecycle: There are two stages during a
31913// conversation: Automated Agent Stage and Assist Stage. For Automated
31914// Agent Stage, there will be a dialogflow agent responding to user
31915// queries. For Assist Stage, there's no dialogflow agent responding to
31916// user queries. But we will provide suggestions which are generated
31917// from conversation. If Conversation.conversation_profile is configured
31918// for a dialogflow agent, conversation will start from `Automated Agent
31919// Stage`, otherwise, it will start from `Assist Stage`. And during
31920// `Automated Agent Stage`, once an Intent with
31921// Intent.live_agent_handoff is triggered, conversation will transfer to
31922// Assist Stage.
31923//
31924// - parent: Resource identifier of the project creating the
31925//   conversation. Format: `projects//locations/`.
31926func (r *ProjectsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsConversationsCreateCall {
31927	c := &ProjectsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31928	c.parentid = parentid
31929	c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
31930	return c
31931}
31932
31933// ConversationId sets the optional parameter "conversationId":
31934// Identifier of the conversation. Generally it's auto generated by
31935// Google. Only set it if you cannot wait for the response to return a
31936// auto-generated one to you. The conversation ID must be compliant with
31937// the regression fomula "a-zA-Z*" with the characters length in range
31938// of [3,64]. If the field is provided, the caller is resposible for 1.
31939// the uniqueness of the ID, otherwise the request will be rejected. 2.
31940// the consistency for whether to use custom ID or not under a project
31941// to better ensure uniqueness.
31942func (c *ProjectsConversationsCreateCall) ConversationId(conversationId string) *ProjectsConversationsCreateCall {
31943	c.urlParams_.Set("conversationId", conversationId)
31944	return c
31945}
31946
31947// Fields allows partial responses to be retrieved. See
31948// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31949// for more information.
31950func (c *ProjectsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsCreateCall {
31951	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31952	return c
31953}
31954
31955// Context sets the context to be used in this call's Do method. Any
31956// pending HTTP request will be aborted if the provided context is
31957// canceled.
31958func (c *ProjectsConversationsCreateCall) Context(ctx context.Context) *ProjectsConversationsCreateCall {
31959	c.ctx_ = ctx
31960	return c
31961}
31962
31963// Header returns an http.Header that can be modified by the caller to
31964// add HTTP headers to the request.
31965func (c *ProjectsConversationsCreateCall) Header() http.Header {
31966	if c.header_ == nil {
31967		c.header_ = make(http.Header)
31968	}
31969	return c.header_
31970}
31971
31972func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
31973	reqHeaders := make(http.Header)
31974	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
31975	for k, v := range c.header_ {
31976		reqHeaders[k] = v
31977	}
31978	reqHeaders.Set("User-Agent", c.s.userAgent())
31979	var body io.Reader = nil
31980	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
31981	if err != nil {
31982		return nil, err
31983	}
31984	reqHeaders.Set("Content-Type", "application/json")
31985	c.urlParams_.Set("alt", alt)
31986	c.urlParams_.Set("prettyPrint", "false")
31987	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
31988	urls += "?" + c.urlParams_.Encode()
31989	req, err := http.NewRequest("POST", urls, body)
31990	if err != nil {
31991		return nil, err
31992	}
31993	req.Header = reqHeaders
31994	googleapi.Expand(req.URL, map[string]string{
31995		"parent": c.parentid,
31996	})
31997	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31998}
31999
32000// Do executes the "dialogflow.projects.conversations.create" call.
32001// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
32002// will be non-nil. Any non-2xx status code is an error. Response
32003// headers are in either
32004// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
32005// (if a response was returned at all) in
32006// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32007// whether the returned error was because http.StatusNotModified was
32008// returned.
32009func (c *ProjectsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
32010	gensupport.SetOptions(c.urlParams_, opts...)
32011	res, err := c.doRequest("json")
32012	if res != nil && res.StatusCode == http.StatusNotModified {
32013		if res.Body != nil {
32014			res.Body.Close()
32015		}
32016		return nil, &googleapi.Error{
32017			Code:   res.StatusCode,
32018			Header: res.Header,
32019		}
32020	}
32021	if err != nil {
32022		return nil, err
32023	}
32024	defer googleapi.CloseBody(res)
32025	if err := googleapi.CheckResponse(res); err != nil {
32026		return nil, err
32027	}
32028	ret := &GoogleCloudDialogflowV2beta1Conversation{
32029		ServerResponse: googleapi.ServerResponse{
32030			Header:         res.Header,
32031			HTTPStatusCode: res.StatusCode,
32032		},
32033	}
32034	target := &ret
32035	if err := gensupport.DecodeResponse(target, res); err != nil {
32036		return nil, err
32037	}
32038	return ret, nil
32039	// {
32040	//   "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.",
32041	//   "flatPath": "v2beta1/projects/{projectsId}/conversations",
32042	//   "httpMethod": "POST",
32043	//   "id": "dialogflow.projects.conversations.create",
32044	//   "parameterOrder": [
32045	//     "parent"
32046	//   ],
32047	//   "parameters": {
32048	//     "conversationId": {
32049	//       "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.",
32050	//       "location": "query",
32051	//       "type": "string"
32052	//     },
32053	//     "parent": {
32054	//       "description": "Required. Resource identifier of the project creating the conversation. Format: `projects//locations/`.",
32055	//       "location": "path",
32056	//       "pattern": "^projects/[^/]+$",
32057	//       "required": true,
32058	//       "type": "string"
32059	//     }
32060	//   },
32061	//   "path": "v2beta1/{+parent}/conversations",
32062	//   "request": {
32063	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
32064	//   },
32065	//   "response": {
32066	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
32067	//   },
32068	//   "scopes": [
32069	//     "https://www.googleapis.com/auth/cloud-platform",
32070	//     "https://www.googleapis.com/auth/dialogflow"
32071	//   ]
32072	// }
32073
32074}
32075
32076// method id "dialogflow.projects.conversations.get":
32077
32078type ProjectsConversationsGetCall struct {
32079	s            *Service
32080	name         string
32081	urlParams_   gensupport.URLParams
32082	ifNoneMatch_ string
32083	ctx_         context.Context
32084	header_      http.Header
32085}
32086
32087// Get: Retrieves the specific conversation.
32088//
32089// - name: The name of the conversation. Format:
32090//   `projects//locations//conversations/`.
32091func (r *ProjectsConversationsService) Get(name string) *ProjectsConversationsGetCall {
32092	c := &ProjectsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32093	c.name = name
32094	return c
32095}
32096
32097// Fields allows partial responses to be retrieved. See
32098// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32099// for more information.
32100func (c *ProjectsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsGetCall {
32101	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32102	return c
32103}
32104
32105// IfNoneMatch sets the optional parameter which makes the operation
32106// fail if the object's ETag matches the given value. This is useful for
32107// getting updates only after the object has changed since the last
32108// request. Use googleapi.IsNotModified to check whether the response
32109// error from Do is the result of In-None-Match.
32110func (c *ProjectsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsGetCall {
32111	c.ifNoneMatch_ = entityTag
32112	return c
32113}
32114
32115// Context sets the context to be used in this call's Do method. Any
32116// pending HTTP request will be aborted if the provided context is
32117// canceled.
32118func (c *ProjectsConversationsGetCall) Context(ctx context.Context) *ProjectsConversationsGetCall {
32119	c.ctx_ = ctx
32120	return c
32121}
32122
32123// Header returns an http.Header that can be modified by the caller to
32124// add HTTP headers to the request.
32125func (c *ProjectsConversationsGetCall) Header() http.Header {
32126	if c.header_ == nil {
32127		c.header_ = make(http.Header)
32128	}
32129	return c.header_
32130}
32131
32132func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
32133	reqHeaders := make(http.Header)
32134	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
32135	for k, v := range c.header_ {
32136		reqHeaders[k] = v
32137	}
32138	reqHeaders.Set("User-Agent", c.s.userAgent())
32139	if c.ifNoneMatch_ != "" {
32140		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32141	}
32142	var body io.Reader = nil
32143	c.urlParams_.Set("alt", alt)
32144	c.urlParams_.Set("prettyPrint", "false")
32145	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
32146	urls += "?" + c.urlParams_.Encode()
32147	req, err := http.NewRequest("GET", urls, body)
32148	if err != nil {
32149		return nil, err
32150	}
32151	req.Header = reqHeaders
32152	googleapi.Expand(req.URL, map[string]string{
32153		"name": c.name,
32154	})
32155	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32156}
32157
32158// Do executes the "dialogflow.projects.conversations.get" call.
32159// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
32160// will be non-nil. Any non-2xx status code is an error. Response
32161// headers are in either
32162// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
32163// (if a response was returned at all) in
32164// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32165// whether the returned error was because http.StatusNotModified was
32166// returned.
32167func (c *ProjectsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
32168	gensupport.SetOptions(c.urlParams_, opts...)
32169	res, err := c.doRequest("json")
32170	if res != nil && res.StatusCode == http.StatusNotModified {
32171		if res.Body != nil {
32172			res.Body.Close()
32173		}
32174		return nil, &googleapi.Error{
32175			Code:   res.StatusCode,
32176			Header: res.Header,
32177		}
32178	}
32179	if err != nil {
32180		return nil, err
32181	}
32182	defer googleapi.CloseBody(res)
32183	if err := googleapi.CheckResponse(res); err != nil {
32184		return nil, err
32185	}
32186	ret := &GoogleCloudDialogflowV2beta1Conversation{
32187		ServerResponse: googleapi.ServerResponse{
32188			Header:         res.Header,
32189			HTTPStatusCode: res.StatusCode,
32190		},
32191	}
32192	target := &ret
32193	if err := gensupport.DecodeResponse(target, res); err != nil {
32194		return nil, err
32195	}
32196	return ret, nil
32197	// {
32198	//   "description": "Retrieves the specific conversation.",
32199	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}",
32200	//   "httpMethod": "GET",
32201	//   "id": "dialogflow.projects.conversations.get",
32202	//   "parameterOrder": [
32203	//     "name"
32204	//   ],
32205	//   "parameters": {
32206	//     "name": {
32207	//       "description": "Required. The name of the conversation. Format: `projects//locations//conversations/`.",
32208	//       "location": "path",
32209	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
32210	//       "required": true,
32211	//       "type": "string"
32212	//     }
32213	//   },
32214	//   "path": "v2beta1/{+name}",
32215	//   "response": {
32216	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
32217	//   },
32218	//   "scopes": [
32219	//     "https://www.googleapis.com/auth/cloud-platform",
32220	//     "https://www.googleapis.com/auth/dialogflow"
32221	//   ]
32222	// }
32223
32224}
32225
32226// method id "dialogflow.projects.conversations.list":
32227
32228type ProjectsConversationsListCall struct {
32229	s            *Service
32230	parent       string
32231	urlParams_   gensupport.URLParams
32232	ifNoneMatch_ string
32233	ctx_         context.Context
32234	header_      http.Header
32235}
32236
32237// List: Returns the list of all conversations in the specified project.
32238//
32239// - parent: The project from which to list all conversation. Format:
32240//   `projects//locations/`.
32241func (r *ProjectsConversationsService) List(parent string) *ProjectsConversationsListCall {
32242	c := &ProjectsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32243	c.parent = parent
32244	return c
32245}
32246
32247// Filter sets the optional parameter "filter": A filter expression that
32248// filters conversations listed in the response. In general, the
32249// expression must specify the field name, a comparison operator, and
32250// the value to use for filtering: - The value must be a string, a
32251// number, or a boolean. - The comparison operator must be either
32252// `=`,`!=`, `>`, or `<`. - To filter on multiple expressions, separate
32253// the expressions with `AND` or `OR` (omitting both implies `AND`). -
32254// For clarity, expressions can be enclosed in parentheses. Only
32255// `lifecycle_state` can be filtered on in this way. For example, the
32256// following expression only returns `COMPLETED` conversations:
32257// `lifecycle_state = "COMPLETED" For more information about filtering,
32258// see API Filtering (https://aip.dev/160).
32259func (c *ProjectsConversationsListCall) Filter(filter string) *ProjectsConversationsListCall {
32260	c.urlParams_.Set("filter", filter)
32261	return c
32262}
32263
32264// PageSize sets the optional parameter "pageSize": The maximum number
32265// of items to return in a single page. By default 100 and at most 1000.
32266func (c *ProjectsConversationsListCall) PageSize(pageSize int64) *ProjectsConversationsListCall {
32267	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32268	return c
32269}
32270
32271// PageToken sets the optional parameter "pageToken": The
32272// next_page_token value returned from a previous list request.
32273func (c *ProjectsConversationsListCall) PageToken(pageToken string) *ProjectsConversationsListCall {
32274	c.urlParams_.Set("pageToken", pageToken)
32275	return c
32276}
32277
32278// Fields allows partial responses to be retrieved. See
32279// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32280// for more information.
32281func (c *ProjectsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsListCall {
32282	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32283	return c
32284}
32285
32286// IfNoneMatch sets the optional parameter which makes the operation
32287// fail if the object's ETag matches the given value. This is useful for
32288// getting updates only after the object has changed since the last
32289// request. Use googleapi.IsNotModified to check whether the response
32290// error from Do is the result of In-None-Match.
32291func (c *ProjectsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsListCall {
32292	c.ifNoneMatch_ = entityTag
32293	return c
32294}
32295
32296// Context sets the context to be used in this call's Do method. Any
32297// pending HTTP request will be aborted if the provided context is
32298// canceled.
32299func (c *ProjectsConversationsListCall) Context(ctx context.Context) *ProjectsConversationsListCall {
32300	c.ctx_ = ctx
32301	return c
32302}
32303
32304// Header returns an http.Header that can be modified by the caller to
32305// add HTTP headers to the request.
32306func (c *ProjectsConversationsListCall) Header() http.Header {
32307	if c.header_ == nil {
32308		c.header_ = make(http.Header)
32309	}
32310	return c.header_
32311}
32312
32313func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, error) {
32314	reqHeaders := make(http.Header)
32315	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
32316	for k, v := range c.header_ {
32317		reqHeaders[k] = v
32318	}
32319	reqHeaders.Set("User-Agent", c.s.userAgent())
32320	if c.ifNoneMatch_ != "" {
32321		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32322	}
32323	var body io.Reader = nil
32324	c.urlParams_.Set("alt", alt)
32325	c.urlParams_.Set("prettyPrint", "false")
32326	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
32327	urls += "?" + c.urlParams_.Encode()
32328	req, err := http.NewRequest("GET", urls, body)
32329	if err != nil {
32330		return nil, err
32331	}
32332	req.Header = reqHeaders
32333	googleapi.Expand(req.URL, map[string]string{
32334		"parent": c.parent,
32335	})
32336	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32337}
32338
32339// Do executes the "dialogflow.projects.conversations.list" call.
32340// Exactly one of *GoogleCloudDialogflowV2beta1ListConversationsResponse
32341// or error will be non-nil. Any non-2xx status code is an error.
32342// Response headers are in either
32343// *GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.
32344// Header or (if a response was returned at all) in
32345// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32346// whether the returned error was because http.StatusNotModified was
32347// returned.
32348func (c *ProjectsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
32349	gensupport.SetOptions(c.urlParams_, opts...)
32350	res, err := c.doRequest("json")
32351	if res != nil && res.StatusCode == http.StatusNotModified {
32352		if res.Body != nil {
32353			res.Body.Close()
32354		}
32355		return nil, &googleapi.Error{
32356			Code:   res.StatusCode,
32357			Header: res.Header,
32358		}
32359	}
32360	if err != nil {
32361		return nil, err
32362	}
32363	defer googleapi.CloseBody(res)
32364	if err := googleapi.CheckResponse(res); err != nil {
32365		return nil, err
32366	}
32367	ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
32368		ServerResponse: googleapi.ServerResponse{
32369			Header:         res.Header,
32370			HTTPStatusCode: res.StatusCode,
32371		},
32372	}
32373	target := &ret
32374	if err := gensupport.DecodeResponse(target, res); err != nil {
32375		return nil, err
32376	}
32377	return ret, nil
32378	// {
32379	//   "description": "Returns the list of all conversations in the specified project.",
32380	//   "flatPath": "v2beta1/projects/{projectsId}/conversations",
32381	//   "httpMethod": "GET",
32382	//   "id": "dialogflow.projects.conversations.list",
32383	//   "parameterOrder": [
32384	//     "parent"
32385	//   ],
32386	//   "parameters": {
32387	//     "filter": {
32388	//       "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).",
32389	//       "location": "query",
32390	//       "type": "string"
32391	//     },
32392	//     "pageSize": {
32393	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
32394	//       "format": "int32",
32395	//       "location": "query",
32396	//       "type": "integer"
32397	//     },
32398	//     "pageToken": {
32399	//       "description": "Optional. The next_page_token value returned from a previous list request.",
32400	//       "location": "query",
32401	//       "type": "string"
32402	//     },
32403	//     "parent": {
32404	//       "description": "Required. The project from which to list all conversation. Format: `projects//locations/`.",
32405	//       "location": "path",
32406	//       "pattern": "^projects/[^/]+$",
32407	//       "required": true,
32408	//       "type": "string"
32409	//     }
32410	//   },
32411	//   "path": "v2beta1/{+parent}/conversations",
32412	//   "response": {
32413	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationsResponse"
32414	//   },
32415	//   "scopes": [
32416	//     "https://www.googleapis.com/auth/cloud-platform",
32417	//     "https://www.googleapis.com/auth/dialogflow"
32418	//   ]
32419	// }
32420
32421}
32422
32423// Pages invokes f for each page of results.
32424// A non-nil error returned from f will halt the iteration.
32425// The provided context supersedes any context provided to the Context method.
32426func (c *ProjectsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
32427	c.ctx_ = ctx
32428	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
32429	for {
32430		x, err := c.Do()
32431		if err != nil {
32432			return err
32433		}
32434		if err := f(x); err != nil {
32435			return err
32436		}
32437		if x.NextPageToken == "" {
32438			return nil
32439		}
32440		c.PageToken(x.NextPageToken)
32441	}
32442}
32443
32444// method id "dialogflow.projects.conversations.messages.batchCreate":
32445
32446type ProjectsConversationsMessagesBatchCreateCall struct {
32447	s                                                      *Service
32448	parentid                                               string
32449	googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
32450	urlParams_                                             gensupport.URLParams
32451	ctx_                                                   context.Context
32452	header_                                                http.Header
32453}
32454
32455// BatchCreate: Batch ingests messages to conversation. Customers can
32456// use this RPC to ingest historical messages to conversation.
32457//
32458// - parent: Resource identifier of the conversation to create message.
32459//   Format: `projects//locations//conversations/`.
32460func (r *ProjectsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsConversationsMessagesBatchCreateCall {
32461	c := &ProjectsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32462	c.parentid = parentid
32463	c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
32464	return c
32465}
32466
32467// Fields allows partial responses to be retrieved. See
32468// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32469// for more information.
32470func (c *ProjectsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesBatchCreateCall {
32471	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32472	return c
32473}
32474
32475// Context sets the context to be used in this call's Do method. Any
32476// pending HTTP request will be aborted if the provided context is
32477// canceled.
32478func (c *ProjectsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsConversationsMessagesBatchCreateCall {
32479	c.ctx_ = ctx
32480	return c
32481}
32482
32483// Header returns an http.Header that can be modified by the caller to
32484// add HTTP headers to the request.
32485func (c *ProjectsConversationsMessagesBatchCreateCall) Header() http.Header {
32486	if c.header_ == nil {
32487		c.header_ = make(http.Header)
32488	}
32489	return c.header_
32490}
32491
32492func (c *ProjectsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
32493	reqHeaders := make(http.Header)
32494	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
32495	for k, v := range c.header_ {
32496		reqHeaders[k] = v
32497	}
32498	reqHeaders.Set("User-Agent", c.s.userAgent())
32499	var body io.Reader = nil
32500	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
32501	if err != nil {
32502		return nil, err
32503	}
32504	reqHeaders.Set("Content-Type", "application/json")
32505	c.urlParams_.Set("alt", alt)
32506	c.urlParams_.Set("prettyPrint", "false")
32507	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
32508	urls += "?" + c.urlParams_.Encode()
32509	req, err := http.NewRequest("POST", urls, body)
32510	if err != nil {
32511		return nil, err
32512	}
32513	req.Header = reqHeaders
32514	googleapi.Expand(req.URL, map[string]string{
32515		"parent": c.parentid,
32516	})
32517	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32518}
32519
32520// Do executes the "dialogflow.projects.conversations.messages.batchCreate" call.
32521// Exactly one of
32522// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse or error
32523// will be non-nil. Any non-2xx status code is an error. Response
32524// headers are in either
32525// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.ServerRespons
32526// e.Header or (if a response was returned at all) in
32527// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32528// whether the returned error was because http.StatusNotModified was
32529// returned.
32530func (c *ProjectsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
32531	gensupport.SetOptions(c.urlParams_, opts...)
32532	res, err := c.doRequest("json")
32533	if res != nil && res.StatusCode == http.StatusNotModified {
32534		if res.Body != nil {
32535			res.Body.Close()
32536		}
32537		return nil, &googleapi.Error{
32538			Code:   res.StatusCode,
32539			Header: res.Header,
32540		}
32541	}
32542	if err != nil {
32543		return nil, err
32544	}
32545	defer googleapi.CloseBody(res)
32546	if err := googleapi.CheckResponse(res); err != nil {
32547		return nil, err
32548	}
32549	ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
32550		ServerResponse: googleapi.ServerResponse{
32551			Header:         res.Header,
32552			HTTPStatusCode: res.StatusCode,
32553		},
32554	}
32555	target := &ret
32556	if err := gensupport.DecodeResponse(target, res); err != nil {
32557		return nil, err
32558	}
32559	return ret, nil
32560	// {
32561	//   "description": "Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.",
32562	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/messages:batchCreate",
32563	//   "httpMethod": "POST",
32564	//   "id": "dialogflow.projects.conversations.messages.batchCreate",
32565	//   "parameterOrder": [
32566	//     "parent"
32567	//   ],
32568	//   "parameters": {
32569	//     "parent": {
32570	//       "description": "Required. Resource identifier of the conversation to create message. Format: `projects//locations//conversations/`.",
32571	//       "location": "path",
32572	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
32573	//       "required": true,
32574	//       "type": "string"
32575	//     }
32576	//   },
32577	//   "path": "v2beta1/{+parent}/messages:batchCreate",
32578	//   "request": {
32579	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest"
32580	//   },
32581	//   "response": {
32582	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse"
32583	//   },
32584	//   "scopes": [
32585	//     "https://www.googleapis.com/auth/cloud-platform",
32586	//     "https://www.googleapis.com/auth/dialogflow"
32587	//   ]
32588	// }
32589
32590}
32591
32592// method id "dialogflow.projects.conversations.messages.list":
32593
32594type ProjectsConversationsMessagesListCall struct {
32595	s            *Service
32596	parent       string
32597	urlParams_   gensupport.URLParams
32598	ifNoneMatch_ string
32599	ctx_         context.Context
32600	header_      http.Header
32601}
32602
32603// List: Lists messages that belong to a given conversation. `messages`
32604// are ordered by `create_time` in descending order. To fetch updates
32605// without duplication, send request with filter
32606// `create_time_epoch_microseconds > [first item's create_time of
32607// previous request]` and empty page_token.
32608//
32609// - parent: The name of the conversation to list messages for. Format:
32610//   `projects//locations//conversations/`.
32611func (r *ProjectsConversationsMessagesService) List(parent string) *ProjectsConversationsMessagesListCall {
32612	c := &ProjectsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32613	c.parent = parent
32614	return c
32615}
32616
32617// Filter sets the optional parameter "filter": Filter on message
32618// fields. Currently predicates on `create_time` and
32619// `create_time_epoch_microseconds` are supported. `create_time` only
32620// support milliseconds accuracy. E.g., `create_time_epoch_microseconds
32621// > 1551790877964485` or `create_time > "2017-01-15T01:30:15.01Z". For
32622// more information about filtering, see API Filtering
32623// (https://aip.dev/160).
32624func (c *ProjectsConversationsMessagesListCall) Filter(filter string) *ProjectsConversationsMessagesListCall {
32625	c.urlParams_.Set("filter", filter)
32626	return c
32627}
32628
32629// PageSize sets the optional parameter "pageSize": The maximum number
32630// of items to return in a single page. By default 100 and at most 1000.
32631func (c *ProjectsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsConversationsMessagesListCall {
32632	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32633	return c
32634}
32635
32636// PageToken sets the optional parameter "pageToken": The
32637// next_page_token value returned from a previous list request.
32638func (c *ProjectsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsConversationsMessagesListCall {
32639	c.urlParams_.Set("pageToken", pageToken)
32640	return c
32641}
32642
32643// Fields allows partial responses to be retrieved. See
32644// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32645// for more information.
32646func (c *ProjectsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesListCall {
32647	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32648	return c
32649}
32650
32651// IfNoneMatch sets the optional parameter which makes the operation
32652// fail if the object's ETag matches the given value. This is useful for
32653// getting updates only after the object has changed since the last
32654// request. Use googleapi.IsNotModified to check whether the response
32655// error from Do is the result of In-None-Match.
32656func (c *ProjectsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsConversationsMessagesListCall {
32657	c.ifNoneMatch_ = entityTag
32658	return c
32659}
32660
32661// Context sets the context to be used in this call's Do method. Any
32662// pending HTTP request will be aborted if the provided context is
32663// canceled.
32664func (c *ProjectsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsConversationsMessagesListCall {
32665	c.ctx_ = ctx
32666	return c
32667}
32668
32669// Header returns an http.Header that can be modified by the caller to
32670// add HTTP headers to the request.
32671func (c *ProjectsConversationsMessagesListCall) Header() http.Header {
32672	if c.header_ == nil {
32673		c.header_ = make(http.Header)
32674	}
32675	return c.header_
32676}
32677
32678func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
32679	reqHeaders := make(http.Header)
32680	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
32681	for k, v := range c.header_ {
32682		reqHeaders[k] = v
32683	}
32684	reqHeaders.Set("User-Agent", c.s.userAgent())
32685	if c.ifNoneMatch_ != "" {
32686		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32687	}
32688	var body io.Reader = nil
32689	c.urlParams_.Set("alt", alt)
32690	c.urlParams_.Set("prettyPrint", "false")
32691	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
32692	urls += "?" + c.urlParams_.Encode()
32693	req, err := http.NewRequest("GET", urls, body)
32694	if err != nil {
32695		return nil, err
32696	}
32697	req.Header = reqHeaders
32698	googleapi.Expand(req.URL, map[string]string{
32699		"parent": c.parent,
32700	})
32701	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32702}
32703
32704// Do executes the "dialogflow.projects.conversations.messages.list" call.
32705// Exactly one of *GoogleCloudDialogflowV2beta1ListMessagesResponse or
32706// error will be non-nil. Any non-2xx status code is an error. Response
32707// headers are in either
32708// *GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Heade
32709// r or (if a response was returned at all) in
32710// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32711// whether the returned error was because http.StatusNotModified was
32712// returned.
32713func (c *ProjectsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
32714	gensupport.SetOptions(c.urlParams_, opts...)
32715	res, err := c.doRequest("json")
32716	if res != nil && res.StatusCode == http.StatusNotModified {
32717		if res.Body != nil {
32718			res.Body.Close()
32719		}
32720		return nil, &googleapi.Error{
32721			Code:   res.StatusCode,
32722			Header: res.Header,
32723		}
32724	}
32725	if err != nil {
32726		return nil, err
32727	}
32728	defer googleapi.CloseBody(res)
32729	if err := googleapi.CheckResponse(res); err != nil {
32730		return nil, err
32731	}
32732	ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
32733		ServerResponse: googleapi.ServerResponse{
32734			Header:         res.Header,
32735			HTTPStatusCode: res.StatusCode,
32736		},
32737	}
32738	target := &ret
32739	if err := gensupport.DecodeResponse(target, res); err != nil {
32740		return nil, err
32741	}
32742	return ret, nil
32743	// {
32744	//   "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.",
32745	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/messages",
32746	//   "httpMethod": "GET",
32747	//   "id": "dialogflow.projects.conversations.messages.list",
32748	//   "parameterOrder": [
32749	//     "parent"
32750	//   ],
32751	//   "parameters": {
32752	//     "filter": {
32753	//       "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).",
32754	//       "location": "query",
32755	//       "type": "string"
32756	//     },
32757	//     "pageSize": {
32758	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
32759	//       "format": "int32",
32760	//       "location": "query",
32761	//       "type": "integer"
32762	//     },
32763	//     "pageToken": {
32764	//       "description": "Optional. The next_page_token value returned from a previous list request.",
32765	//       "location": "query",
32766	//       "type": "string"
32767	//     },
32768	//     "parent": {
32769	//       "description": "Required. The name of the conversation to list messages for. Format: `projects//locations//conversations/`",
32770	//       "location": "path",
32771	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
32772	//       "required": true,
32773	//       "type": "string"
32774	//     }
32775	//   },
32776	//   "path": "v2beta1/{+parent}/messages",
32777	//   "response": {
32778	//     "$ref": "GoogleCloudDialogflowV2beta1ListMessagesResponse"
32779	//   },
32780	//   "scopes": [
32781	//     "https://www.googleapis.com/auth/cloud-platform",
32782	//     "https://www.googleapis.com/auth/dialogflow"
32783	//   ]
32784	// }
32785
32786}
32787
32788// Pages invokes f for each page of results.
32789// A non-nil error returned from f will halt the iteration.
32790// The provided context supersedes any context provided to the Context method.
32791func (c *ProjectsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
32792	c.ctx_ = ctx
32793	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
32794	for {
32795		x, err := c.Do()
32796		if err != nil {
32797			return err
32798		}
32799		if err := f(x); err != nil {
32800			return err
32801		}
32802		if x.NextPageToken == "" {
32803			return nil
32804		}
32805		c.PageToken(x.NextPageToken)
32806	}
32807}
32808
32809// method id "dialogflow.projects.conversations.participants.analyzeContent":
32810
32811type ProjectsConversationsParticipantsAnalyzeContentCall struct {
32812	s                                                 *Service
32813	participant                                       string
32814	googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
32815	urlParams_                                        gensupport.URLParams
32816	ctx_                                              context.Context
32817	header_                                           http.Header
32818}
32819
32820// AnalyzeContent: Adds a text (chat, for example), or audio (phone
32821// recording, for example) message from a participant into the
32822// conversation. Note: Always use agent versions for production traffic
32823// sent to virtual agents. See Versions and environments
32824// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
32825//
32826// - participant: The name of the participant this text comes from.
32827//   Format: `projects//locations//conversations//participants/`.
32828func (r *ProjectsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsConversationsParticipantsAnalyzeContentCall {
32829	c := &ProjectsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32830	c.participant = participant
32831	c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
32832	return c
32833}
32834
32835// Fields allows partial responses to be retrieved. See
32836// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32837// for more information.
32838func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsAnalyzeContentCall {
32839	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32840	return c
32841}
32842
32843// Context sets the context to be used in this call's Do method. Any
32844// pending HTTP request will be aborted if the provided context is
32845// canceled.
32846func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsConversationsParticipantsAnalyzeContentCall {
32847	c.ctx_ = ctx
32848	return c
32849}
32850
32851// Header returns an http.Header that can be modified by the caller to
32852// add HTTP headers to the request.
32853func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
32854	if c.header_ == nil {
32855		c.header_ = make(http.Header)
32856	}
32857	return c.header_
32858}
32859
32860func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
32861	reqHeaders := make(http.Header)
32862	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
32863	for k, v := range c.header_ {
32864		reqHeaders[k] = v
32865	}
32866	reqHeaders.Set("User-Agent", c.s.userAgent())
32867	var body io.Reader = nil
32868	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
32869	if err != nil {
32870		return nil, err
32871	}
32872	reqHeaders.Set("Content-Type", "application/json")
32873	c.urlParams_.Set("alt", alt)
32874	c.urlParams_.Set("prettyPrint", "false")
32875	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
32876	urls += "?" + c.urlParams_.Encode()
32877	req, err := http.NewRequest("POST", urls, body)
32878	if err != nil {
32879		return nil, err
32880	}
32881	req.Header = reqHeaders
32882	googleapi.Expand(req.URL, map[string]string{
32883		"participant": c.participant,
32884	})
32885	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32886}
32887
32888// Do executes the "dialogflow.projects.conversations.participants.analyzeContent" call.
32889// Exactly one of *GoogleCloudDialogflowV2beta1AnalyzeContentResponse or
32890// error will be non-nil. Any non-2xx status code is an error. Response
32891// headers are in either
32892// *GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Hea
32893// der or (if a response was returned at all) in
32894// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32895// whether the returned error was because http.StatusNotModified was
32896// returned.
32897func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
32898	gensupport.SetOptions(c.urlParams_, opts...)
32899	res, err := c.doRequest("json")
32900	if res != nil && res.StatusCode == http.StatusNotModified {
32901		if res.Body != nil {
32902			res.Body.Close()
32903		}
32904		return nil, &googleapi.Error{
32905			Code:   res.StatusCode,
32906			Header: res.Header,
32907		}
32908	}
32909	if err != nil {
32910		return nil, err
32911	}
32912	defer googleapi.CloseBody(res)
32913	if err := googleapi.CheckResponse(res); err != nil {
32914		return nil, err
32915	}
32916	ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
32917		ServerResponse: googleapi.ServerResponse{
32918			Header:         res.Header,
32919			HTTPStatusCode: res.StatusCode,
32920		},
32921	}
32922	target := &ret
32923	if err := gensupport.DecodeResponse(target, res); err != nil {
32924		return nil, err
32925	}
32926	return ret, nil
32927	// {
32928	//   "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).",
32929	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}:analyzeContent",
32930	//   "httpMethod": "POST",
32931	//   "id": "dialogflow.projects.conversations.participants.analyzeContent",
32932	//   "parameterOrder": [
32933	//     "participant"
32934	//   ],
32935	//   "parameters": {
32936	//     "participant": {
32937	//       "description": "Required. The name of the participant this text comes from. Format: `projects//locations//conversations//participants/`.",
32938	//       "location": "path",
32939	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
32940	//       "required": true,
32941	//       "type": "string"
32942	//     }
32943	//   },
32944	//   "path": "v2beta1/{+participant}:analyzeContent",
32945	//   "request": {
32946	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentRequest"
32947	//   },
32948	//   "response": {
32949	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentResponse"
32950	//   },
32951	//   "scopes": [
32952	//     "https://www.googleapis.com/auth/cloud-platform",
32953	//     "https://www.googleapis.com/auth/dialogflow"
32954	//   ]
32955	// }
32956
32957}
32958
32959// method id "dialogflow.projects.conversations.participants.create":
32960
32961type ProjectsConversationsParticipantsCreateCall struct {
32962	s                                       *Service
32963	parentid                                string
32964	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
32965	urlParams_                              gensupport.URLParams
32966	ctx_                                    context.Context
32967	header_                                 http.Header
32968}
32969
32970// Create: Creates a new participant in a conversation.
32971//
32972// - parent: Resource identifier of the conversation adding the
32973//   participant. Format: `projects//locations//conversations/`.
32974func (r *ProjectsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsCreateCall {
32975	c := &ProjectsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32976	c.parentid = parentid
32977	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
32978	return c
32979}
32980
32981// Fields allows partial responses to be retrieved. See
32982// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32983// for more information.
32984func (c *ProjectsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsCreateCall {
32985	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32986	return c
32987}
32988
32989// Context sets the context to be used in this call's Do method. Any
32990// pending HTTP request will be aborted if the provided context is
32991// canceled.
32992func (c *ProjectsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsConversationsParticipantsCreateCall {
32993	c.ctx_ = ctx
32994	return c
32995}
32996
32997// Header returns an http.Header that can be modified by the caller to
32998// add HTTP headers to the request.
32999func (c *ProjectsConversationsParticipantsCreateCall) Header() http.Header {
33000	if c.header_ == nil {
33001		c.header_ = make(http.Header)
33002	}
33003	return c.header_
33004}
33005
33006func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
33007	reqHeaders := make(http.Header)
33008	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
33009	for k, v := range c.header_ {
33010		reqHeaders[k] = v
33011	}
33012	reqHeaders.Set("User-Agent", c.s.userAgent())
33013	var body io.Reader = nil
33014	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
33015	if err != nil {
33016		return nil, err
33017	}
33018	reqHeaders.Set("Content-Type", "application/json")
33019	c.urlParams_.Set("alt", alt)
33020	c.urlParams_.Set("prettyPrint", "false")
33021	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
33022	urls += "?" + c.urlParams_.Encode()
33023	req, err := http.NewRequest("POST", urls, body)
33024	if err != nil {
33025		return nil, err
33026	}
33027	req.Header = reqHeaders
33028	googleapi.Expand(req.URL, map[string]string{
33029		"parent": c.parentid,
33030	})
33031	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33032}
33033
33034// Do executes the "dialogflow.projects.conversations.participants.create" call.
33035// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
33036// be non-nil. Any non-2xx status code is an error. Response headers are
33037// in either
33038// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
33039// a response was returned at all) in error.(*googleapi.Error).Header.
33040// Use googleapi.IsNotModified to check whether the returned error was
33041// because http.StatusNotModified was returned.
33042func (c *ProjectsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
33043	gensupport.SetOptions(c.urlParams_, opts...)
33044	res, err := c.doRequest("json")
33045	if res != nil && res.StatusCode == http.StatusNotModified {
33046		if res.Body != nil {
33047			res.Body.Close()
33048		}
33049		return nil, &googleapi.Error{
33050			Code:   res.StatusCode,
33051			Header: res.Header,
33052		}
33053	}
33054	if err != nil {
33055		return nil, err
33056	}
33057	defer googleapi.CloseBody(res)
33058	if err := googleapi.CheckResponse(res); err != nil {
33059		return nil, err
33060	}
33061	ret := &GoogleCloudDialogflowV2beta1Participant{
33062		ServerResponse: googleapi.ServerResponse{
33063			Header:         res.Header,
33064			HTTPStatusCode: res.StatusCode,
33065		},
33066	}
33067	target := &ret
33068	if err := gensupport.DecodeResponse(target, res); err != nil {
33069		return nil, err
33070	}
33071	return ret, nil
33072	// {
33073	//   "description": "Creates a new participant in a conversation.",
33074	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants",
33075	//   "httpMethod": "POST",
33076	//   "id": "dialogflow.projects.conversations.participants.create",
33077	//   "parameterOrder": [
33078	//     "parent"
33079	//   ],
33080	//   "parameters": {
33081	//     "parent": {
33082	//       "description": "Required. Resource identifier of the conversation adding the participant. Format: `projects//locations//conversations/`.",
33083	//       "location": "path",
33084	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
33085	//       "required": true,
33086	//       "type": "string"
33087	//     }
33088	//   },
33089	//   "path": "v2beta1/{+parent}/participants",
33090	//   "request": {
33091	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33092	//   },
33093	//   "response": {
33094	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33095	//   },
33096	//   "scopes": [
33097	//     "https://www.googleapis.com/auth/cloud-platform",
33098	//     "https://www.googleapis.com/auth/dialogflow"
33099	//   ]
33100	// }
33101
33102}
33103
33104// method id "dialogflow.projects.conversations.participants.get":
33105
33106type ProjectsConversationsParticipantsGetCall struct {
33107	s            *Service
33108	name         string
33109	urlParams_   gensupport.URLParams
33110	ifNoneMatch_ string
33111	ctx_         context.Context
33112	header_      http.Header
33113}
33114
33115// Get: Retrieves a conversation participant.
33116//
33117// - name: The name of the participant. Format:
33118//   `projects//locations//conversations//participants/`.
33119func (r *ProjectsConversationsParticipantsService) Get(name string) *ProjectsConversationsParticipantsGetCall {
33120	c := &ProjectsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33121	c.name = name
33122	return c
33123}
33124
33125// Fields allows partial responses to be retrieved. See
33126// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33127// for more information.
33128func (c *ProjectsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsGetCall {
33129	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33130	return c
33131}
33132
33133// IfNoneMatch sets the optional parameter which makes the operation
33134// fail if the object's ETag matches the given value. This is useful for
33135// getting updates only after the object has changed since the last
33136// request. Use googleapi.IsNotModified to check whether the response
33137// error from Do is the result of In-None-Match.
33138func (c *ProjectsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsGetCall {
33139	c.ifNoneMatch_ = entityTag
33140	return c
33141}
33142
33143// Context sets the context to be used in this call's Do method. Any
33144// pending HTTP request will be aborted if the provided context is
33145// canceled.
33146func (c *ProjectsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsConversationsParticipantsGetCall {
33147	c.ctx_ = ctx
33148	return c
33149}
33150
33151// Header returns an http.Header that can be modified by the caller to
33152// add HTTP headers to the request.
33153func (c *ProjectsConversationsParticipantsGetCall) Header() http.Header {
33154	if c.header_ == nil {
33155		c.header_ = make(http.Header)
33156	}
33157	return c.header_
33158}
33159
33160func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
33161	reqHeaders := make(http.Header)
33162	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
33163	for k, v := range c.header_ {
33164		reqHeaders[k] = v
33165	}
33166	reqHeaders.Set("User-Agent", c.s.userAgent())
33167	if c.ifNoneMatch_ != "" {
33168		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33169	}
33170	var body io.Reader = nil
33171	c.urlParams_.Set("alt", alt)
33172	c.urlParams_.Set("prettyPrint", "false")
33173	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
33174	urls += "?" + c.urlParams_.Encode()
33175	req, err := http.NewRequest("GET", urls, body)
33176	if err != nil {
33177		return nil, err
33178	}
33179	req.Header = reqHeaders
33180	googleapi.Expand(req.URL, map[string]string{
33181		"name": c.name,
33182	})
33183	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33184}
33185
33186// Do executes the "dialogflow.projects.conversations.participants.get" call.
33187// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
33188// be non-nil. Any non-2xx status code is an error. Response headers are
33189// in either
33190// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
33191// a response was returned at all) in error.(*googleapi.Error).Header.
33192// Use googleapi.IsNotModified to check whether the returned error was
33193// because http.StatusNotModified was returned.
33194func (c *ProjectsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
33195	gensupport.SetOptions(c.urlParams_, opts...)
33196	res, err := c.doRequest("json")
33197	if res != nil && res.StatusCode == http.StatusNotModified {
33198		if res.Body != nil {
33199			res.Body.Close()
33200		}
33201		return nil, &googleapi.Error{
33202			Code:   res.StatusCode,
33203			Header: res.Header,
33204		}
33205	}
33206	if err != nil {
33207		return nil, err
33208	}
33209	defer googleapi.CloseBody(res)
33210	if err := googleapi.CheckResponse(res); err != nil {
33211		return nil, err
33212	}
33213	ret := &GoogleCloudDialogflowV2beta1Participant{
33214		ServerResponse: googleapi.ServerResponse{
33215			Header:         res.Header,
33216			HTTPStatusCode: res.StatusCode,
33217		},
33218	}
33219	target := &ret
33220	if err := gensupport.DecodeResponse(target, res); err != nil {
33221		return nil, err
33222	}
33223	return ret, nil
33224	// {
33225	//   "description": "Retrieves a conversation participant.",
33226	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}",
33227	//   "httpMethod": "GET",
33228	//   "id": "dialogflow.projects.conversations.participants.get",
33229	//   "parameterOrder": [
33230	//     "name"
33231	//   ],
33232	//   "parameters": {
33233	//     "name": {
33234	//       "description": "Required. The name of the participant. Format: `projects//locations//conversations//participants/`.",
33235	//       "location": "path",
33236	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
33237	//       "required": true,
33238	//       "type": "string"
33239	//     }
33240	//   },
33241	//   "path": "v2beta1/{+name}",
33242	//   "response": {
33243	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33244	//   },
33245	//   "scopes": [
33246	//     "https://www.googleapis.com/auth/cloud-platform",
33247	//     "https://www.googleapis.com/auth/dialogflow"
33248	//   ]
33249	// }
33250
33251}
33252
33253// method id "dialogflow.projects.conversations.participants.list":
33254
33255type ProjectsConversationsParticipantsListCall struct {
33256	s            *Service
33257	parent       string
33258	urlParams_   gensupport.URLParams
33259	ifNoneMatch_ string
33260	ctx_         context.Context
33261	header_      http.Header
33262}
33263
33264// List: Returns the list of all participants in the specified
33265// conversation.
33266//
33267// - parent: The conversation to list all participants from. Format:
33268//   `projects//locations//conversations/`.
33269func (r *ProjectsConversationsParticipantsService) List(parent string) *ProjectsConversationsParticipantsListCall {
33270	c := &ProjectsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33271	c.parent = parent
33272	return c
33273}
33274
33275// PageSize sets the optional parameter "pageSize": The maximum number
33276// of items to return in a single page. By default 100 and at most 1000.
33277func (c *ProjectsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsListCall {
33278	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33279	return c
33280}
33281
33282// PageToken sets the optional parameter "pageToken": The
33283// next_page_token value returned from a previous list request.
33284func (c *ProjectsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsListCall {
33285	c.urlParams_.Set("pageToken", pageToken)
33286	return c
33287}
33288
33289// Fields allows partial responses to be retrieved. See
33290// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33291// for more information.
33292func (c *ProjectsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsListCall {
33293	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33294	return c
33295}
33296
33297// IfNoneMatch sets the optional parameter which makes the operation
33298// fail if the object's ETag matches the given value. This is useful for
33299// getting updates only after the object has changed since the last
33300// request. Use googleapi.IsNotModified to check whether the response
33301// error from Do is the result of In-None-Match.
33302func (c *ProjectsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsListCall {
33303	c.ifNoneMatch_ = entityTag
33304	return c
33305}
33306
33307// Context sets the context to be used in this call's Do method. Any
33308// pending HTTP request will be aborted if the provided context is
33309// canceled.
33310func (c *ProjectsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsListCall {
33311	c.ctx_ = ctx
33312	return c
33313}
33314
33315// Header returns an http.Header that can be modified by the caller to
33316// add HTTP headers to the request.
33317func (c *ProjectsConversationsParticipantsListCall) Header() http.Header {
33318	if c.header_ == nil {
33319		c.header_ = make(http.Header)
33320	}
33321	return c.header_
33322}
33323
33324func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
33325	reqHeaders := make(http.Header)
33326	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
33327	for k, v := range c.header_ {
33328		reqHeaders[k] = v
33329	}
33330	reqHeaders.Set("User-Agent", c.s.userAgent())
33331	if c.ifNoneMatch_ != "" {
33332		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33333	}
33334	var body io.Reader = nil
33335	c.urlParams_.Set("alt", alt)
33336	c.urlParams_.Set("prettyPrint", "false")
33337	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
33338	urls += "?" + c.urlParams_.Encode()
33339	req, err := http.NewRequest("GET", urls, body)
33340	if err != nil {
33341		return nil, err
33342	}
33343	req.Header = reqHeaders
33344	googleapi.Expand(req.URL, map[string]string{
33345		"parent": c.parent,
33346	})
33347	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33348}
33349
33350// Do executes the "dialogflow.projects.conversations.participants.list" call.
33351// Exactly one of *GoogleCloudDialogflowV2beta1ListParticipantsResponse
33352// or error will be non-nil. Any non-2xx status code is an error.
33353// Response headers are in either
33354// *GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.H
33355// eader or (if a response was returned at all) in
33356// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33357// whether the returned error was because http.StatusNotModified was
33358// returned.
33359func (c *ProjectsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
33360	gensupport.SetOptions(c.urlParams_, opts...)
33361	res, err := c.doRequest("json")
33362	if res != nil && res.StatusCode == http.StatusNotModified {
33363		if res.Body != nil {
33364			res.Body.Close()
33365		}
33366		return nil, &googleapi.Error{
33367			Code:   res.StatusCode,
33368			Header: res.Header,
33369		}
33370	}
33371	if err != nil {
33372		return nil, err
33373	}
33374	defer googleapi.CloseBody(res)
33375	if err := googleapi.CheckResponse(res); err != nil {
33376		return nil, err
33377	}
33378	ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
33379		ServerResponse: googleapi.ServerResponse{
33380			Header:         res.Header,
33381			HTTPStatusCode: res.StatusCode,
33382		},
33383	}
33384	target := &ret
33385	if err := gensupport.DecodeResponse(target, res); err != nil {
33386		return nil, err
33387	}
33388	return ret, nil
33389	// {
33390	//   "description": "Returns the list of all participants in the specified conversation.",
33391	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants",
33392	//   "httpMethod": "GET",
33393	//   "id": "dialogflow.projects.conversations.participants.list",
33394	//   "parameterOrder": [
33395	//     "parent"
33396	//   ],
33397	//   "parameters": {
33398	//     "pageSize": {
33399	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
33400	//       "format": "int32",
33401	//       "location": "query",
33402	//       "type": "integer"
33403	//     },
33404	//     "pageToken": {
33405	//       "description": "Optional. The next_page_token value returned from a previous list request.",
33406	//       "location": "query",
33407	//       "type": "string"
33408	//     },
33409	//     "parent": {
33410	//       "description": "Required. The conversation to list all participants from. Format: `projects//locations//conversations/`.",
33411	//       "location": "path",
33412	//       "pattern": "^projects/[^/]+/conversations/[^/]+$",
33413	//       "required": true,
33414	//       "type": "string"
33415	//     }
33416	//   },
33417	//   "path": "v2beta1/{+parent}/participants",
33418	//   "response": {
33419	//     "$ref": "GoogleCloudDialogflowV2beta1ListParticipantsResponse"
33420	//   },
33421	//   "scopes": [
33422	//     "https://www.googleapis.com/auth/cloud-platform",
33423	//     "https://www.googleapis.com/auth/dialogflow"
33424	//   ]
33425	// }
33426
33427}
33428
33429// Pages invokes f for each page of results.
33430// A non-nil error returned from f will halt the iteration.
33431// The provided context supersedes any context provided to the Context method.
33432func (c *ProjectsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
33433	c.ctx_ = ctx
33434	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
33435	for {
33436		x, err := c.Do()
33437		if err != nil {
33438			return err
33439		}
33440		if err := f(x); err != nil {
33441			return err
33442		}
33443		if x.NextPageToken == "" {
33444			return nil
33445		}
33446		c.PageToken(x.NextPageToken)
33447	}
33448}
33449
33450// method id "dialogflow.projects.conversations.participants.patch":
33451
33452type ProjectsConversationsParticipantsPatchCall struct {
33453	s                                       *Service
33454	nameid                                  string
33455	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
33456	urlParams_                              gensupport.URLParams
33457	ctx_                                    context.Context
33458	header_                                 http.Header
33459}
33460
33461// Patch: Updates the specified participant.
33462//
33463// - name: Optional. The unique identifier of this participant. Format:
33464//   `projects//locations//conversations//participants/`.
33465func (r *ProjectsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsPatchCall {
33466	c := &ProjectsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33467	c.nameid = nameid
33468	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
33469	return c
33470}
33471
33472// UpdateMask sets the optional parameter "updateMask": Required. The
33473// mask to specify which fields to update.
33474func (c *ProjectsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsConversationsParticipantsPatchCall {
33475	c.urlParams_.Set("updateMask", updateMask)
33476	return c
33477}
33478
33479// Fields allows partial responses to be retrieved. See
33480// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33481// for more information.
33482func (c *ProjectsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsPatchCall {
33483	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33484	return c
33485}
33486
33487// Context sets the context to be used in this call's Do method. Any
33488// pending HTTP request will be aborted if the provided context is
33489// canceled.
33490func (c *ProjectsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsConversationsParticipantsPatchCall {
33491	c.ctx_ = ctx
33492	return c
33493}
33494
33495// Header returns an http.Header that can be modified by the caller to
33496// add HTTP headers to the request.
33497func (c *ProjectsConversationsParticipantsPatchCall) Header() http.Header {
33498	if c.header_ == nil {
33499		c.header_ = make(http.Header)
33500	}
33501	return c.header_
33502}
33503
33504func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
33505	reqHeaders := make(http.Header)
33506	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
33507	for k, v := range c.header_ {
33508		reqHeaders[k] = v
33509	}
33510	reqHeaders.Set("User-Agent", c.s.userAgent())
33511	var body io.Reader = nil
33512	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
33513	if err != nil {
33514		return nil, err
33515	}
33516	reqHeaders.Set("Content-Type", "application/json")
33517	c.urlParams_.Set("alt", alt)
33518	c.urlParams_.Set("prettyPrint", "false")
33519	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
33520	urls += "?" + c.urlParams_.Encode()
33521	req, err := http.NewRequest("PATCH", urls, body)
33522	if err != nil {
33523		return nil, err
33524	}
33525	req.Header = reqHeaders
33526	googleapi.Expand(req.URL, map[string]string{
33527		"name": c.nameid,
33528	})
33529	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33530}
33531
33532// Do executes the "dialogflow.projects.conversations.participants.patch" call.
33533// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
33534// be non-nil. Any non-2xx status code is an error. Response headers are
33535// in either
33536// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
33537// a response was returned at all) in error.(*googleapi.Error).Header.
33538// Use googleapi.IsNotModified to check whether the returned error was
33539// because http.StatusNotModified was returned.
33540func (c *ProjectsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
33541	gensupport.SetOptions(c.urlParams_, opts...)
33542	res, err := c.doRequest("json")
33543	if res != nil && res.StatusCode == http.StatusNotModified {
33544		if res.Body != nil {
33545			res.Body.Close()
33546		}
33547		return nil, &googleapi.Error{
33548			Code:   res.StatusCode,
33549			Header: res.Header,
33550		}
33551	}
33552	if err != nil {
33553		return nil, err
33554	}
33555	defer googleapi.CloseBody(res)
33556	if err := googleapi.CheckResponse(res); err != nil {
33557		return nil, err
33558	}
33559	ret := &GoogleCloudDialogflowV2beta1Participant{
33560		ServerResponse: googleapi.ServerResponse{
33561			Header:         res.Header,
33562			HTTPStatusCode: res.StatusCode,
33563		},
33564	}
33565	target := &ret
33566	if err := gensupport.DecodeResponse(target, res); err != nil {
33567		return nil, err
33568	}
33569	return ret, nil
33570	// {
33571	//   "description": "Updates the specified participant.",
33572	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}",
33573	//   "httpMethod": "PATCH",
33574	//   "id": "dialogflow.projects.conversations.participants.patch",
33575	//   "parameterOrder": [
33576	//     "name"
33577	//   ],
33578	//   "parameters": {
33579	//     "name": {
33580	//       "description": "Optional. The unique identifier of this participant. Format: `projects//locations//conversations//participants/`.",
33581	//       "location": "path",
33582	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
33583	//       "required": true,
33584	//       "type": "string"
33585	//     },
33586	//     "updateMask": {
33587	//       "description": "Required. The mask to specify which fields to update.",
33588	//       "format": "google-fieldmask",
33589	//       "location": "query",
33590	//       "type": "string"
33591	//     }
33592	//   },
33593	//   "path": "v2beta1/{+name}",
33594	//   "request": {
33595	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33596	//   },
33597	//   "response": {
33598	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
33599	//   },
33600	//   "scopes": [
33601	//     "https://www.googleapis.com/auth/cloud-platform",
33602	//     "https://www.googleapis.com/auth/dialogflow"
33603	//   ]
33604	// }
33605
33606}
33607
33608// method id "dialogflow.projects.conversations.participants.suggestions.compile":
33609
33610type ProjectsConversationsParticipantsSuggestionsCompileCall struct {
33611	s                                                    *Service
33612	parent                                               string
33613	googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest
33614	urlParams_                                           gensupport.URLParams
33615	ctx_                                                 context.Context
33616	header_                                              http.Header
33617}
33618
33619// Compile: Deprecated. use SuggestArticles and SuggestFaqAnswers
33620// instead. Gets suggestions for a participant based on specific
33621// historical messages. Note that ListSuggestions will only list the
33622// auto-generated suggestions, while CompileSuggestion will try to
33623// compile suggestion based on the provided conversation context in the
33624// real time.
33625//
33626// - parent: The name of the participant to fetch suggestion for.
33627//   Format: `projects//locations//conversations//participants/`.
33628func (r *ProjectsConversationsParticipantsSuggestionsService) Compile(parent string, googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) *ProjectsConversationsParticipantsSuggestionsCompileCall {
33629	c := &ProjectsConversationsParticipantsSuggestionsCompileCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33630	c.parent = parent
33631	c.googleclouddialogflowv2beta1compilesuggestionrequest = googleclouddialogflowv2beta1compilesuggestionrequest
33632	return c
33633}
33634
33635// Fields allows partial responses to be retrieved. See
33636// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33637// for more information.
33638func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsCompileCall {
33639	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33640	return c
33641}
33642
33643// Context sets the context to be used in this call's Do method. Any
33644// pending HTTP request will be aborted if the provided context is
33645// canceled.
33646func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsCompileCall {
33647	c.ctx_ = ctx
33648	return c
33649}
33650
33651// Header returns an http.Header that can be modified by the caller to
33652// add HTTP headers to the request.
33653func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Header() http.Header {
33654	if c.header_ == nil {
33655		c.header_ = make(http.Header)
33656	}
33657	return c.header_
33658}
33659
33660func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) doRequest(alt string) (*http.Response, error) {
33661	reqHeaders := make(http.Header)
33662	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
33663	for k, v := range c.header_ {
33664		reqHeaders[k] = v
33665	}
33666	reqHeaders.Set("User-Agent", c.s.userAgent())
33667	var body io.Reader = nil
33668	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1compilesuggestionrequest)
33669	if err != nil {
33670		return nil, err
33671	}
33672	reqHeaders.Set("Content-Type", "application/json")
33673	c.urlParams_.Set("alt", alt)
33674	c.urlParams_.Set("prettyPrint", "false")
33675	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:compile")
33676	urls += "?" + c.urlParams_.Encode()
33677	req, err := http.NewRequest("POST", urls, body)
33678	if err != nil {
33679		return nil, err
33680	}
33681	req.Header = reqHeaders
33682	googleapi.Expand(req.URL, map[string]string{
33683		"parent": c.parent,
33684	})
33685	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33686}
33687
33688// Do executes the "dialogflow.projects.conversations.participants.suggestions.compile" call.
33689// Exactly one of *GoogleCloudDialogflowV2beta1CompileSuggestionResponse
33690// or error will be non-nil. Any non-2xx status code is an error.
33691// Response headers are in either
33692// *GoogleCloudDialogflowV2beta1CompileSuggestionResponse.ServerResponse.
33693// Header or (if a response was returned at all) in
33694// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33695// whether the returned error was because http.StatusNotModified was
33696// returned.
33697func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1CompileSuggestionResponse, error) {
33698	gensupport.SetOptions(c.urlParams_, opts...)
33699	res, err := c.doRequest("json")
33700	if res != nil && res.StatusCode == http.StatusNotModified {
33701		if res.Body != nil {
33702			res.Body.Close()
33703		}
33704		return nil, &googleapi.Error{
33705			Code:   res.StatusCode,
33706			Header: res.Header,
33707		}
33708	}
33709	if err != nil {
33710		return nil, err
33711	}
33712	defer googleapi.CloseBody(res)
33713	if err := googleapi.CheckResponse(res); err != nil {
33714		return nil, err
33715	}
33716	ret := &GoogleCloudDialogflowV2beta1CompileSuggestionResponse{
33717		ServerResponse: googleapi.ServerResponse{
33718			Header:         res.Header,
33719			HTTPStatusCode: res.StatusCode,
33720		},
33721	}
33722	target := &ret
33723	if err := gensupport.DecodeResponse(target, res); err != nil {
33724		return nil, err
33725	}
33726	return ret, nil
33727	// {
33728	//   "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.",
33729	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:compile",
33730	//   "httpMethod": "POST",
33731	//   "id": "dialogflow.projects.conversations.participants.suggestions.compile",
33732	//   "parameterOrder": [
33733	//     "parent"
33734	//   ],
33735	//   "parameters": {
33736	//     "parent": {
33737	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
33738	//       "location": "path",
33739	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
33740	//       "required": true,
33741	//       "type": "string"
33742	//     }
33743	//   },
33744	//   "path": "v2beta1/{+parent}/suggestions:compile",
33745	//   "request": {
33746	//     "$ref": "GoogleCloudDialogflowV2beta1CompileSuggestionRequest"
33747	//   },
33748	//   "response": {
33749	//     "$ref": "GoogleCloudDialogflowV2beta1CompileSuggestionResponse"
33750	//   },
33751	//   "scopes": [
33752	//     "https://www.googleapis.com/auth/cloud-platform",
33753	//     "https://www.googleapis.com/auth/dialogflow"
33754	//   ]
33755	// }
33756
33757}
33758
33759// method id "dialogflow.projects.conversations.participants.suggestions.list":
33760
33761type ProjectsConversationsParticipantsSuggestionsListCall struct {
33762	s            *Service
33763	parent       string
33764	urlParams_   gensupport.URLParams
33765	ifNoneMatch_ string
33766	ctx_         context.Context
33767	header_      http.Header
33768}
33769
33770// List: Deprecated: Use inline suggestion, event based suggestion or
33771// Suggestion* API instead. See HumanAgentAssistantConfig.name for more
33772// details. Removal Date: 2020-09-01. Retrieves suggestions for live
33773// agents. This method should be used by human agent client software to
33774// fetch auto generated suggestions in real-time, while the conversation
33775// with an end user is in progress. The functionality is implemented in
33776// terms of the list pagination
33777// (/apis/design/design_patterns#list_pagination) design pattern. The
33778// client app should use the `next_page_token` field to fetch the next
33779// batch of suggestions. `suggestions` are sorted by `create_time` in
33780// descending order. To fetch latest suggestion, just set `page_size` to
33781// 1. To fetch new suggestions without duplication, send request with
33782// filter `create_time_epoch_microseconds > [first item's create_time of
33783// previous request]` and empty page_token.
33784//
33785// - parent: The name of the participant to fetch suggestions for.
33786//   Format: `projects//locations//conversations//participants/`.
33787func (r *ProjectsConversationsParticipantsSuggestionsService) List(parent string) *ProjectsConversationsParticipantsSuggestionsListCall {
33788	c := &ProjectsConversationsParticipantsSuggestionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33789	c.parent = parent
33790	return c
33791}
33792
33793// Filter sets the optional parameter "filter": Filter on suggestions
33794// fields. Currently predicates on `create_time` and
33795// `create_time_epoch_microseconds` are supported. `create_time` only
33796// support milliseconds accuracy. E.g., `create_time_epoch_microseconds
33797// > 1551790877964485` or `create_time > "2017-01-15T01:30:15.01Z" For
33798// more information about filtering, see API Filtering
33799// (https://aip.dev/160).
33800func (c *ProjectsConversationsParticipantsSuggestionsListCall) Filter(filter string) *ProjectsConversationsParticipantsSuggestionsListCall {
33801	c.urlParams_.Set("filter", filter)
33802	return c
33803}
33804
33805// PageSize sets the optional parameter "pageSize": The maximum number
33806// of items to return in a single page. The default value is 100; the
33807// maximum value is 1000.
33808func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsSuggestionsListCall {
33809	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33810	return c
33811}
33812
33813// PageToken sets the optional parameter "pageToken": The
33814// next_page_token value returned from a previous list request.
33815func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsSuggestionsListCall {
33816	c.urlParams_.Set("pageToken", pageToken)
33817	return c
33818}
33819
33820// Fields allows partial responses to be retrieved. See
33821// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33822// for more information.
33823func (c *ProjectsConversationsParticipantsSuggestionsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsListCall {
33824	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33825	return c
33826}
33827
33828// IfNoneMatch sets the optional parameter which makes the operation
33829// fail if the object's ETag matches the given value. This is useful for
33830// getting updates only after the object has changed since the last
33831// request. Use googleapi.IsNotModified to check whether the response
33832// error from Do is the result of In-None-Match.
33833func (c *ProjectsConversationsParticipantsSuggestionsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsSuggestionsListCall {
33834	c.ifNoneMatch_ = entityTag
33835	return c
33836}
33837
33838// Context sets the context to be used in this call's Do method. Any
33839// pending HTTP request will be aborted if the provided context is
33840// canceled.
33841func (c *ProjectsConversationsParticipantsSuggestionsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsListCall {
33842	c.ctx_ = ctx
33843	return c
33844}
33845
33846// Header returns an http.Header that can be modified by the caller to
33847// add HTTP headers to the request.
33848func (c *ProjectsConversationsParticipantsSuggestionsListCall) Header() http.Header {
33849	if c.header_ == nil {
33850		c.header_ = make(http.Header)
33851	}
33852	return c.header_
33853}
33854
33855func (c *ProjectsConversationsParticipantsSuggestionsListCall) doRequest(alt string) (*http.Response, error) {
33856	reqHeaders := make(http.Header)
33857	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
33858	for k, v := range c.header_ {
33859		reqHeaders[k] = v
33860	}
33861	reqHeaders.Set("User-Agent", c.s.userAgent())
33862	if c.ifNoneMatch_ != "" {
33863		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33864	}
33865	var body io.Reader = nil
33866	c.urlParams_.Set("alt", alt)
33867	c.urlParams_.Set("prettyPrint", "false")
33868	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions")
33869	urls += "?" + c.urlParams_.Encode()
33870	req, err := http.NewRequest("GET", urls, body)
33871	if err != nil {
33872		return nil, err
33873	}
33874	req.Header = reqHeaders
33875	googleapi.Expand(req.URL, map[string]string{
33876		"parent": c.parent,
33877	})
33878	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33879}
33880
33881// Do executes the "dialogflow.projects.conversations.participants.suggestions.list" call.
33882// Exactly one of *GoogleCloudDialogflowV2beta1ListSuggestionsResponse
33883// or error will be non-nil. Any non-2xx status code is an error.
33884// Response headers are in either
33885// *GoogleCloudDialogflowV2beta1ListSuggestionsResponse.ServerResponse.He
33886// ader or (if a response was returned at all) in
33887// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33888// whether the returned error was because http.StatusNotModified was
33889// returned.
33890func (c *ProjectsConversationsParticipantsSuggestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSuggestionsResponse, error) {
33891	gensupport.SetOptions(c.urlParams_, opts...)
33892	res, err := c.doRequest("json")
33893	if res != nil && res.StatusCode == http.StatusNotModified {
33894		if res.Body != nil {
33895			res.Body.Close()
33896		}
33897		return nil, &googleapi.Error{
33898			Code:   res.StatusCode,
33899			Header: res.Header,
33900		}
33901	}
33902	if err != nil {
33903		return nil, err
33904	}
33905	defer googleapi.CloseBody(res)
33906	if err := googleapi.CheckResponse(res); err != nil {
33907		return nil, err
33908	}
33909	ret := &GoogleCloudDialogflowV2beta1ListSuggestionsResponse{
33910		ServerResponse: googleapi.ServerResponse{
33911			Header:         res.Header,
33912			HTTPStatusCode: res.StatusCode,
33913		},
33914	}
33915	target := &ret
33916	if err := gensupport.DecodeResponse(target, res); err != nil {
33917		return nil, err
33918	}
33919	return ret, nil
33920	// {
33921	//   "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](/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.",
33922	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions",
33923	//   "httpMethod": "GET",
33924	//   "id": "dialogflow.projects.conversations.participants.suggestions.list",
33925	//   "parameterOrder": [
33926	//     "parent"
33927	//   ],
33928	//   "parameters": {
33929	//     "filter": {
33930	//       "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).",
33931	//       "location": "query",
33932	//       "type": "string"
33933	//     },
33934	//     "pageSize": {
33935	//       "description": "Optional. The maximum number of items to return in a single page. The default value is 100; the maximum value is 1000.",
33936	//       "format": "int32",
33937	//       "location": "query",
33938	//       "type": "integer"
33939	//     },
33940	//     "pageToken": {
33941	//       "description": "Optional. The next_page_token value returned from a previous list request.",
33942	//       "location": "query",
33943	//       "type": "string"
33944	//     },
33945	//     "parent": {
33946	//       "description": "Required. The name of the participant to fetch suggestions for. Format: `projects//locations//conversations//participants/`.",
33947	//       "location": "path",
33948	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
33949	//       "required": true,
33950	//       "type": "string"
33951	//     }
33952	//   },
33953	//   "path": "v2beta1/{+parent}/suggestions",
33954	//   "response": {
33955	//     "$ref": "GoogleCloudDialogflowV2beta1ListSuggestionsResponse"
33956	//   },
33957	//   "scopes": [
33958	//     "https://www.googleapis.com/auth/cloud-platform",
33959	//     "https://www.googleapis.com/auth/dialogflow"
33960	//   ]
33961	// }
33962
33963}
33964
33965// Pages invokes f for each page of results.
33966// A non-nil error returned from f will halt the iteration.
33967// The provided context supersedes any context provided to the Context method.
33968func (c *ProjectsConversationsParticipantsSuggestionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSuggestionsResponse) error) error {
33969	c.ctx_ = ctx
33970	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
33971	for {
33972		x, err := c.Do()
33973		if err != nil {
33974			return err
33975		}
33976		if err := f(x); err != nil {
33977			return err
33978		}
33979		if x.NextPageToken == "" {
33980			return nil
33981		}
33982		c.PageToken(x.NextPageToken)
33983	}
33984}
33985
33986// method id "dialogflow.projects.conversations.participants.suggestions.suggestArticles":
33987
33988type ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
33989	s                                                  *Service
33990	parent                                             string
33991	googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
33992	urlParams_                                         gensupport.URLParams
33993	ctx_                                               context.Context
33994	header_                                            http.Header
33995}
33996
33997// SuggestArticles: Gets suggested articles for a participant based on
33998// specific historical messages. Note that ListSuggestions will only
33999// list the auto-generated suggestions, while CompileSuggestion will try
34000// to compile suggestion based on the provided conversation context in
34001// the real time.
34002//
34003// - parent: The name of the participant to fetch suggestion for.
34004//   Format: `projects//locations//conversations//participants/`.
34005func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
34006	c := &ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34007	c.parent = parent
34008	c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
34009	return c
34010}
34011
34012// Fields allows partial responses to be retrieved. See
34013// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34014// for more information.
34015func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
34016	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34017	return c
34018}
34019
34020// Context sets the context to be used in this call's Do method. Any
34021// pending HTTP request will be aborted if the provided context is
34022// canceled.
34023func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
34024	c.ctx_ = ctx
34025	return c
34026}
34027
34028// Header returns an http.Header that can be modified by the caller to
34029// add HTTP headers to the request.
34030func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
34031	if c.header_ == nil {
34032		c.header_ = make(http.Header)
34033	}
34034	return c.header_
34035}
34036
34037func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
34038	reqHeaders := make(http.Header)
34039	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
34040	for k, v := range c.header_ {
34041		reqHeaders[k] = v
34042	}
34043	reqHeaders.Set("User-Agent", c.s.userAgent())
34044	var body io.Reader = nil
34045	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
34046	if err != nil {
34047		return nil, err
34048	}
34049	reqHeaders.Set("Content-Type", "application/json")
34050	c.urlParams_.Set("alt", alt)
34051	c.urlParams_.Set("prettyPrint", "false")
34052	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
34053	urls += "?" + c.urlParams_.Encode()
34054	req, err := http.NewRequest("POST", urls, body)
34055	if err != nil {
34056		return nil, err
34057	}
34058	req.Header = reqHeaders
34059	googleapi.Expand(req.URL, map[string]string{
34060		"parent": c.parent,
34061	})
34062	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34063}
34064
34065// Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestArticles" call.
34066// Exactly one of *GoogleCloudDialogflowV2beta1SuggestArticlesResponse
34067// or error will be non-nil. Any non-2xx status code is an error.
34068// Response headers are in either
34069// *GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.He
34070// ader or (if a response was returned at all) in
34071// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34072// whether the returned error was because http.StatusNotModified was
34073// returned.
34074func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
34075	gensupport.SetOptions(c.urlParams_, opts...)
34076	res, err := c.doRequest("json")
34077	if res != nil && res.StatusCode == http.StatusNotModified {
34078		if res.Body != nil {
34079			res.Body.Close()
34080		}
34081		return nil, &googleapi.Error{
34082			Code:   res.StatusCode,
34083			Header: res.Header,
34084		}
34085	}
34086	if err != nil {
34087		return nil, err
34088	}
34089	defer googleapi.CloseBody(res)
34090	if err := googleapi.CheckResponse(res); err != nil {
34091		return nil, err
34092	}
34093	ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
34094		ServerResponse: googleapi.ServerResponse{
34095			Header:         res.Header,
34096			HTTPStatusCode: res.StatusCode,
34097		},
34098	}
34099	target := &ret
34100	if err := gensupport.DecodeResponse(target, res); err != nil {
34101		return nil, err
34102	}
34103	return ret, nil
34104	// {
34105	//   "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.",
34106	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestArticles",
34107	//   "httpMethod": "POST",
34108	//   "id": "dialogflow.projects.conversations.participants.suggestions.suggestArticles",
34109	//   "parameterOrder": [
34110	//     "parent"
34111	//   ],
34112	//   "parameters": {
34113	//     "parent": {
34114	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
34115	//       "location": "path",
34116	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34117	//       "required": true,
34118	//       "type": "string"
34119	//     }
34120	//   },
34121	//   "path": "v2beta1/{+parent}/suggestions:suggestArticles",
34122	//   "request": {
34123	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesRequest"
34124	//   },
34125	//   "response": {
34126	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesResponse"
34127	//   },
34128	//   "scopes": [
34129	//     "https://www.googleapis.com/auth/cloud-platform",
34130	//     "https://www.googleapis.com/auth/dialogflow"
34131	//   ]
34132	// }
34133
34134}
34135
34136// method id "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers":
34137
34138type ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
34139	s                                                    *Service
34140	parent                                               string
34141	googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
34142	urlParams_                                           gensupport.URLParams
34143	ctx_                                                 context.Context
34144	header_                                              http.Header
34145}
34146
34147// SuggestFaqAnswers: Gets suggested faq answers for a participant based
34148// on specific historical messages.
34149//
34150// - parent: The name of the participant to fetch suggestion for.
34151//   Format: `projects//locations//conversations//participants/`.
34152func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
34153	c := &ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34154	c.parent = parent
34155	c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
34156	return c
34157}
34158
34159// Fields allows partial responses to be retrieved. See
34160// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34161// for more information.
34162func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
34163	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34164	return c
34165}
34166
34167// Context sets the context to be used in this call's Do method. Any
34168// pending HTTP request will be aborted if the provided context is
34169// canceled.
34170func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
34171	c.ctx_ = ctx
34172	return c
34173}
34174
34175// Header returns an http.Header that can be modified by the caller to
34176// add HTTP headers to the request.
34177func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
34178	if c.header_ == nil {
34179		c.header_ = make(http.Header)
34180	}
34181	return c.header_
34182}
34183
34184func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
34185	reqHeaders := make(http.Header)
34186	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
34187	for k, v := range c.header_ {
34188		reqHeaders[k] = v
34189	}
34190	reqHeaders.Set("User-Agent", c.s.userAgent())
34191	var body io.Reader = nil
34192	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
34193	if err != nil {
34194		return nil, err
34195	}
34196	reqHeaders.Set("Content-Type", "application/json")
34197	c.urlParams_.Set("alt", alt)
34198	c.urlParams_.Set("prettyPrint", "false")
34199	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
34200	urls += "?" + c.urlParams_.Encode()
34201	req, err := http.NewRequest("POST", urls, body)
34202	if err != nil {
34203		return nil, err
34204	}
34205	req.Header = reqHeaders
34206	googleapi.Expand(req.URL, map[string]string{
34207		"parent": c.parent,
34208	})
34209	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34210}
34211
34212// Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers" call.
34213// Exactly one of *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
34214// or error will be non-nil. Any non-2xx status code is an error.
34215// Response headers are in either
34216// *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.
34217// Header or (if a response was returned at all) in
34218// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34219// whether the returned error was because http.StatusNotModified was
34220// returned.
34221func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
34222	gensupport.SetOptions(c.urlParams_, opts...)
34223	res, err := c.doRequest("json")
34224	if res != nil && res.StatusCode == http.StatusNotModified {
34225		if res.Body != nil {
34226			res.Body.Close()
34227		}
34228		return nil, &googleapi.Error{
34229			Code:   res.StatusCode,
34230			Header: res.Header,
34231		}
34232	}
34233	if err != nil {
34234		return nil, err
34235	}
34236	defer googleapi.CloseBody(res)
34237	if err := googleapi.CheckResponse(res); err != nil {
34238		return nil, err
34239	}
34240	ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
34241		ServerResponse: googleapi.ServerResponse{
34242			Header:         res.Header,
34243			HTTPStatusCode: res.StatusCode,
34244		},
34245	}
34246	target := &ret
34247	if err := gensupport.DecodeResponse(target, res); err != nil {
34248		return nil, err
34249	}
34250	return ret, nil
34251	// {
34252	//   "description": "Gets suggested faq answers for a participant based on specific historical messages.",
34253	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestFaqAnswers",
34254	//   "httpMethod": "POST",
34255	//   "id": "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers",
34256	//   "parameterOrder": [
34257	//     "parent"
34258	//   ],
34259	//   "parameters": {
34260	//     "parent": {
34261	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
34262	//       "location": "path",
34263	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34264	//       "required": true,
34265	//       "type": "string"
34266	//     }
34267	//   },
34268	//   "path": "v2beta1/{+parent}/suggestions:suggestFaqAnswers",
34269	//   "request": {
34270	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest"
34271	//   },
34272	//   "response": {
34273	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse"
34274	//   },
34275	//   "scopes": [
34276	//     "https://www.googleapis.com/auth/cloud-platform",
34277	//     "https://www.googleapis.com/auth/dialogflow"
34278	//   ]
34279	// }
34280
34281}
34282
34283// method id "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies":
34284
34285type ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
34286	s                                                      *Service
34287	parent                                                 string
34288	googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
34289	urlParams_                                             gensupport.URLParams
34290	ctx_                                                   context.Context
34291	header_                                                http.Header
34292}
34293
34294// SuggestSmartReplies: Gets smart replies for a participant based on
34295// specific historical messages.
34296//
34297// - parent: The name of the participant to fetch suggestion for.
34298//   Format: `projects//locations//conversations//participants/`.
34299func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
34300	c := &ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34301	c.parent = parent
34302	c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
34303	return c
34304}
34305
34306// Fields allows partial responses to be retrieved. See
34307// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34308// for more information.
34309func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
34310	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34311	return c
34312}
34313
34314// Context sets the context to be used in this call's Do method. Any
34315// pending HTTP request will be aborted if the provided context is
34316// canceled.
34317func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
34318	c.ctx_ = ctx
34319	return c
34320}
34321
34322// Header returns an http.Header that can be modified by the caller to
34323// add HTTP headers to the request.
34324func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
34325	if c.header_ == nil {
34326		c.header_ = make(http.Header)
34327	}
34328	return c.header_
34329}
34330
34331func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
34332	reqHeaders := make(http.Header)
34333	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
34334	for k, v := range c.header_ {
34335		reqHeaders[k] = v
34336	}
34337	reqHeaders.Set("User-Agent", c.s.userAgent())
34338	var body io.Reader = nil
34339	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
34340	if err != nil {
34341		return nil, err
34342	}
34343	reqHeaders.Set("Content-Type", "application/json")
34344	c.urlParams_.Set("alt", alt)
34345	c.urlParams_.Set("prettyPrint", "false")
34346	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
34347	urls += "?" + c.urlParams_.Encode()
34348	req, err := http.NewRequest("POST", urls, body)
34349	if err != nil {
34350		return nil, err
34351	}
34352	req.Header = reqHeaders
34353	googleapi.Expand(req.URL, map[string]string{
34354		"parent": c.parent,
34355	})
34356	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34357}
34358
34359// Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies" call.
34360// Exactly one of
34361// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse or error
34362// will be non-nil. Any non-2xx status code is an error. Response
34363// headers are in either
34364// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.ServerRespons
34365// e.Header or (if a response was returned at all) in
34366// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34367// whether the returned error was because http.StatusNotModified was
34368// returned.
34369func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
34370	gensupport.SetOptions(c.urlParams_, opts...)
34371	res, err := c.doRequest("json")
34372	if res != nil && res.StatusCode == http.StatusNotModified {
34373		if res.Body != nil {
34374			res.Body.Close()
34375		}
34376		return nil, &googleapi.Error{
34377			Code:   res.StatusCode,
34378			Header: res.Header,
34379		}
34380	}
34381	if err != nil {
34382		return nil, err
34383	}
34384	defer googleapi.CloseBody(res)
34385	if err := googleapi.CheckResponse(res); err != nil {
34386		return nil, err
34387	}
34388	ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
34389		ServerResponse: googleapi.ServerResponse{
34390			Header:         res.Header,
34391			HTTPStatusCode: res.StatusCode,
34392		},
34393	}
34394	target := &ret
34395	if err := gensupport.DecodeResponse(target, res); err != nil {
34396		return nil, err
34397	}
34398	return ret, nil
34399	// {
34400	//   "description": "Gets smart replies for a participant based on specific historical messages.",
34401	//   "flatPath": "v2beta1/projects/{projectsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestSmartReplies",
34402	//   "httpMethod": "POST",
34403	//   "id": "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies",
34404	//   "parameterOrder": [
34405	//     "parent"
34406	//   ],
34407	//   "parameters": {
34408	//     "parent": {
34409	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
34410	//       "location": "path",
34411	//       "pattern": "^projects/[^/]+/conversations/[^/]+/participants/[^/]+$",
34412	//       "required": true,
34413	//       "type": "string"
34414	//     }
34415	//   },
34416	//   "path": "v2beta1/{+parent}/suggestions:suggestSmartReplies",
34417	//   "request": {
34418	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest"
34419	//   },
34420	//   "response": {
34421	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse"
34422	//   },
34423	//   "scopes": [
34424	//     "https://www.googleapis.com/auth/cloud-platform",
34425	//     "https://www.googleapis.com/auth/dialogflow"
34426	//   ]
34427	// }
34428
34429}
34430
34431// method id "dialogflow.projects.knowledgeBases.create":
34432
34433type ProjectsKnowledgeBasesCreateCall struct {
34434	s                                         *Service
34435	parent                                    string
34436	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
34437	urlParams_                                gensupport.URLParams
34438	ctx_                                      context.Context
34439	header_                                   http.Header
34440}
34441
34442// Create: Creates a knowledge base. Note: The
34443// `projects.agent.knowledgeBases` resource is deprecated; only use
34444// `projects.knowledgeBases`.
34445//
34446// - parent: The project to create a knowledge base for. Format:
34447//   `projects//locations/`.
34448func (r *ProjectsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesCreateCall {
34449	c := &ProjectsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34450	c.parent = parent
34451	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
34452	return c
34453}
34454
34455// Fields allows partial responses to be retrieved. See
34456// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34457// for more information.
34458func (c *ProjectsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesCreateCall {
34459	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34460	return c
34461}
34462
34463// Context sets the context to be used in this call's Do method. Any
34464// pending HTTP request will be aborted if the provided context is
34465// canceled.
34466func (c *ProjectsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesCreateCall {
34467	c.ctx_ = ctx
34468	return c
34469}
34470
34471// Header returns an http.Header that can be modified by the caller to
34472// add HTTP headers to the request.
34473func (c *ProjectsKnowledgeBasesCreateCall) Header() http.Header {
34474	if c.header_ == nil {
34475		c.header_ = make(http.Header)
34476	}
34477	return c.header_
34478}
34479
34480func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
34481	reqHeaders := make(http.Header)
34482	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
34483	for k, v := range c.header_ {
34484		reqHeaders[k] = v
34485	}
34486	reqHeaders.Set("User-Agent", c.s.userAgent())
34487	var body io.Reader = nil
34488	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
34489	if err != nil {
34490		return nil, err
34491	}
34492	reqHeaders.Set("Content-Type", "application/json")
34493	c.urlParams_.Set("alt", alt)
34494	c.urlParams_.Set("prettyPrint", "false")
34495	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
34496	urls += "?" + c.urlParams_.Encode()
34497	req, err := http.NewRequest("POST", urls, body)
34498	if err != nil {
34499		return nil, err
34500	}
34501	req.Header = reqHeaders
34502	googleapi.Expand(req.URL, map[string]string{
34503		"parent": c.parent,
34504	})
34505	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34506}
34507
34508// Do executes the "dialogflow.projects.knowledgeBases.create" call.
34509// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
34510// will be non-nil. Any non-2xx status code is an error. Response
34511// headers are in either
34512// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
34513// (if a response was returned at all) in
34514// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34515// whether the returned error was because http.StatusNotModified was
34516// returned.
34517func (c *ProjectsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
34518	gensupport.SetOptions(c.urlParams_, opts...)
34519	res, err := c.doRequest("json")
34520	if res != nil && res.StatusCode == http.StatusNotModified {
34521		if res.Body != nil {
34522			res.Body.Close()
34523		}
34524		return nil, &googleapi.Error{
34525			Code:   res.StatusCode,
34526			Header: res.Header,
34527		}
34528	}
34529	if err != nil {
34530		return nil, err
34531	}
34532	defer googleapi.CloseBody(res)
34533	if err := googleapi.CheckResponse(res); err != nil {
34534		return nil, err
34535	}
34536	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
34537		ServerResponse: googleapi.ServerResponse{
34538			Header:         res.Header,
34539			HTTPStatusCode: res.StatusCode,
34540		},
34541	}
34542	target := &ret
34543	if err := gensupport.DecodeResponse(target, res); err != nil {
34544		return nil, err
34545	}
34546	return ret, nil
34547	// {
34548	//   "description": "Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
34549	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases",
34550	//   "httpMethod": "POST",
34551	//   "id": "dialogflow.projects.knowledgeBases.create",
34552	//   "parameterOrder": [
34553	//     "parent"
34554	//   ],
34555	//   "parameters": {
34556	//     "parent": {
34557	//       "description": "Required. The project to create a knowledge base for. Format: `projects//locations/`.",
34558	//       "location": "path",
34559	//       "pattern": "^projects/[^/]+$",
34560	//       "required": true,
34561	//       "type": "string"
34562	//     }
34563	//   },
34564	//   "path": "v2beta1/{+parent}/knowledgeBases",
34565	//   "request": {
34566	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
34567	//   },
34568	//   "response": {
34569	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
34570	//   },
34571	//   "scopes": [
34572	//     "https://www.googleapis.com/auth/cloud-platform",
34573	//     "https://www.googleapis.com/auth/dialogflow"
34574	//   ]
34575	// }
34576
34577}
34578
34579// method id "dialogflow.projects.knowledgeBases.delete":
34580
34581type ProjectsKnowledgeBasesDeleteCall struct {
34582	s          *Service
34583	name       string
34584	urlParams_ gensupport.URLParams
34585	ctx_       context.Context
34586	header_    http.Header
34587}
34588
34589// Delete: Deletes the specified knowledge base. Note: The
34590// `projects.agent.knowledgeBases` resource is deprecated; only use
34591// `projects.knowledgeBases`.
34592//
34593// - name: The name of the knowledge base to delete. Format:
34594//   `projects//locations//knowledgeBases/`.
34595func (r *ProjectsKnowledgeBasesService) Delete(name string) *ProjectsKnowledgeBasesDeleteCall {
34596	c := &ProjectsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34597	c.name = name
34598	return c
34599}
34600
34601// Force sets the optional parameter "force": Force deletes the
34602// knowledge base. When set to true, any documents in the knowledge base
34603// are also deleted.
34604func (c *ProjectsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsKnowledgeBasesDeleteCall {
34605	c.urlParams_.Set("force", fmt.Sprint(force))
34606	return c
34607}
34608
34609// Fields allows partial responses to be retrieved. See
34610// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34611// for more information.
34612func (c *ProjectsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDeleteCall {
34613	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34614	return c
34615}
34616
34617// Context sets the context to be used in this call's Do method. Any
34618// pending HTTP request will be aborted if the provided context is
34619// canceled.
34620func (c *ProjectsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDeleteCall {
34621	c.ctx_ = ctx
34622	return c
34623}
34624
34625// Header returns an http.Header that can be modified by the caller to
34626// add HTTP headers to the request.
34627func (c *ProjectsKnowledgeBasesDeleteCall) Header() http.Header {
34628	if c.header_ == nil {
34629		c.header_ = make(http.Header)
34630	}
34631	return c.header_
34632}
34633
34634func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
34635	reqHeaders := make(http.Header)
34636	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
34637	for k, v := range c.header_ {
34638		reqHeaders[k] = v
34639	}
34640	reqHeaders.Set("User-Agent", c.s.userAgent())
34641	var body io.Reader = nil
34642	c.urlParams_.Set("alt", alt)
34643	c.urlParams_.Set("prettyPrint", "false")
34644	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
34645	urls += "?" + c.urlParams_.Encode()
34646	req, err := http.NewRequest("DELETE", urls, body)
34647	if err != nil {
34648		return nil, err
34649	}
34650	req.Header = reqHeaders
34651	googleapi.Expand(req.URL, map[string]string{
34652		"name": c.name,
34653	})
34654	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34655}
34656
34657// Do executes the "dialogflow.projects.knowledgeBases.delete" call.
34658// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
34659// non-2xx status code is an error. Response headers are in either
34660// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
34661// returned at all) in error.(*googleapi.Error).Header. Use
34662// googleapi.IsNotModified to check whether the returned error was
34663// because http.StatusNotModified was returned.
34664func (c *ProjectsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
34665	gensupport.SetOptions(c.urlParams_, opts...)
34666	res, err := c.doRequest("json")
34667	if res != nil && res.StatusCode == http.StatusNotModified {
34668		if res.Body != nil {
34669			res.Body.Close()
34670		}
34671		return nil, &googleapi.Error{
34672			Code:   res.StatusCode,
34673			Header: res.Header,
34674		}
34675	}
34676	if err != nil {
34677		return nil, err
34678	}
34679	defer googleapi.CloseBody(res)
34680	if err := googleapi.CheckResponse(res); err != nil {
34681		return nil, err
34682	}
34683	ret := &GoogleProtobufEmpty{
34684		ServerResponse: googleapi.ServerResponse{
34685			Header:         res.Header,
34686			HTTPStatusCode: res.StatusCode,
34687		},
34688	}
34689	target := &ret
34690	if err := gensupport.DecodeResponse(target, res); err != nil {
34691		return nil, err
34692	}
34693	return ret, nil
34694	// {
34695	//   "description": "Deletes the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
34696	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}",
34697	//   "httpMethod": "DELETE",
34698	//   "id": "dialogflow.projects.knowledgeBases.delete",
34699	//   "parameterOrder": [
34700	//     "name"
34701	//   ],
34702	//   "parameters": {
34703	//     "force": {
34704	//       "description": "Optional. Force deletes the knowledge base. When set to true, any documents in the knowledge base are also deleted.",
34705	//       "location": "query",
34706	//       "type": "boolean"
34707	//     },
34708	//     "name": {
34709	//       "description": "Required. The name of the knowledge base to delete. Format: `projects//locations//knowledgeBases/`.",
34710	//       "location": "path",
34711	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
34712	//       "required": true,
34713	//       "type": "string"
34714	//     }
34715	//   },
34716	//   "path": "v2beta1/{+name}",
34717	//   "response": {
34718	//     "$ref": "GoogleProtobufEmpty"
34719	//   },
34720	//   "scopes": [
34721	//     "https://www.googleapis.com/auth/cloud-platform",
34722	//     "https://www.googleapis.com/auth/dialogflow"
34723	//   ]
34724	// }
34725
34726}
34727
34728// method id "dialogflow.projects.knowledgeBases.get":
34729
34730type ProjectsKnowledgeBasesGetCall struct {
34731	s            *Service
34732	name         string
34733	urlParams_   gensupport.URLParams
34734	ifNoneMatch_ string
34735	ctx_         context.Context
34736	header_      http.Header
34737}
34738
34739// Get: Retrieves the specified knowledge base. Note: The
34740// `projects.agent.knowledgeBases` resource is deprecated; only use
34741// `projects.knowledgeBases`.
34742//
34743// - name: The name of the knowledge base to retrieve. Format
34744//   `projects//locations//knowledgeBases/`.
34745func (r *ProjectsKnowledgeBasesService) Get(name string) *ProjectsKnowledgeBasesGetCall {
34746	c := &ProjectsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34747	c.name = name
34748	return c
34749}
34750
34751// Fields allows partial responses to be retrieved. See
34752// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34753// for more information.
34754func (c *ProjectsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesGetCall {
34755	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34756	return c
34757}
34758
34759// IfNoneMatch sets the optional parameter which makes the operation
34760// fail if the object's ETag matches the given value. This is useful for
34761// getting updates only after the object has changed since the last
34762// request. Use googleapi.IsNotModified to check whether the response
34763// error from Do is the result of In-None-Match.
34764func (c *ProjectsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesGetCall {
34765	c.ifNoneMatch_ = entityTag
34766	return c
34767}
34768
34769// Context sets the context to be used in this call's Do method. Any
34770// pending HTTP request will be aborted if the provided context is
34771// canceled.
34772func (c *ProjectsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesGetCall {
34773	c.ctx_ = ctx
34774	return c
34775}
34776
34777// Header returns an http.Header that can be modified by the caller to
34778// add HTTP headers to the request.
34779func (c *ProjectsKnowledgeBasesGetCall) Header() http.Header {
34780	if c.header_ == nil {
34781		c.header_ = make(http.Header)
34782	}
34783	return c.header_
34784}
34785
34786func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
34787	reqHeaders := make(http.Header)
34788	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
34789	for k, v := range c.header_ {
34790		reqHeaders[k] = v
34791	}
34792	reqHeaders.Set("User-Agent", c.s.userAgent())
34793	if c.ifNoneMatch_ != "" {
34794		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34795	}
34796	var body io.Reader = nil
34797	c.urlParams_.Set("alt", alt)
34798	c.urlParams_.Set("prettyPrint", "false")
34799	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
34800	urls += "?" + c.urlParams_.Encode()
34801	req, err := http.NewRequest("GET", urls, body)
34802	if err != nil {
34803		return nil, err
34804	}
34805	req.Header = reqHeaders
34806	googleapi.Expand(req.URL, map[string]string{
34807		"name": c.name,
34808	})
34809	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34810}
34811
34812// Do executes the "dialogflow.projects.knowledgeBases.get" call.
34813// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
34814// will be non-nil. Any non-2xx status code is an error. Response
34815// headers are in either
34816// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
34817// (if a response was returned at all) in
34818// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34819// whether the returned error was because http.StatusNotModified was
34820// returned.
34821func (c *ProjectsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
34822	gensupport.SetOptions(c.urlParams_, opts...)
34823	res, err := c.doRequest("json")
34824	if res != nil && res.StatusCode == http.StatusNotModified {
34825		if res.Body != nil {
34826			res.Body.Close()
34827		}
34828		return nil, &googleapi.Error{
34829			Code:   res.StatusCode,
34830			Header: res.Header,
34831		}
34832	}
34833	if err != nil {
34834		return nil, err
34835	}
34836	defer googleapi.CloseBody(res)
34837	if err := googleapi.CheckResponse(res); err != nil {
34838		return nil, err
34839	}
34840	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
34841		ServerResponse: googleapi.ServerResponse{
34842			Header:         res.Header,
34843			HTTPStatusCode: res.StatusCode,
34844		},
34845	}
34846	target := &ret
34847	if err := gensupport.DecodeResponse(target, res); err != nil {
34848		return nil, err
34849	}
34850	return ret, nil
34851	// {
34852	//   "description": "Retrieves the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
34853	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}",
34854	//   "httpMethod": "GET",
34855	//   "id": "dialogflow.projects.knowledgeBases.get",
34856	//   "parameterOrder": [
34857	//     "name"
34858	//   ],
34859	//   "parameters": {
34860	//     "name": {
34861	//       "description": "Required. The name of the knowledge base to retrieve. Format `projects//locations//knowledgeBases/`.",
34862	//       "location": "path",
34863	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
34864	//       "required": true,
34865	//       "type": "string"
34866	//     }
34867	//   },
34868	//   "path": "v2beta1/{+name}",
34869	//   "response": {
34870	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
34871	//   },
34872	//   "scopes": [
34873	//     "https://www.googleapis.com/auth/cloud-platform",
34874	//     "https://www.googleapis.com/auth/dialogflow"
34875	//   ]
34876	// }
34877
34878}
34879
34880// method id "dialogflow.projects.knowledgeBases.list":
34881
34882type ProjectsKnowledgeBasesListCall struct {
34883	s            *Service
34884	parent       string
34885	urlParams_   gensupport.URLParams
34886	ifNoneMatch_ string
34887	ctx_         context.Context
34888	header_      http.Header
34889}
34890
34891// List: Returns the list of all knowledge bases of the specified agent.
34892// Note: The `projects.agent.knowledgeBases` resource is deprecated;
34893// only use `projects.knowledgeBases`.
34894//
34895// - parent: The project to list of knowledge bases for. Format:
34896//   `projects//locations/`.
34897func (r *ProjectsKnowledgeBasesService) List(parent string) *ProjectsKnowledgeBasesListCall {
34898	c := &ProjectsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34899	c.parent = parent
34900	return c
34901}
34902
34903// Filter sets the optional parameter "filter": The filter expression
34904// used to filter knowledge bases returned by the list method. The
34905// expression has the following syntax: [AND ] ... The following fields
34906// and operators are supported: * display_name with has(:) operator *
34907// language_code with equals(=) operator Examples: *
34908// 'language_code=en-us' matches knowledge bases with en-us language
34909// code. * 'display_name:articles' matches knowledge bases whose display
34910// name contains "articles". * 'display_name:"Best Articles"' matches
34911// knowledge bases whose display name contains "Best Articles". *
34912// 'language_code=en-gb AND display_name=articles' matches all knowledge
34913// bases whose display name contains "articles" and whose language code
34914// is "en-gb". Note: An empty filter string (i.e. "") is a no-op and
34915// will result in no filtering. For more information about filtering,
34916// see API Filtering (https://aip.dev/160).
34917func (c *ProjectsKnowledgeBasesListCall) Filter(filter string) *ProjectsKnowledgeBasesListCall {
34918	c.urlParams_.Set("filter", filter)
34919	return c
34920}
34921
34922// PageSize sets the optional parameter "pageSize": The maximum number
34923// of items to return in a single page. By default 10 and at most 100.
34924func (c *ProjectsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesListCall {
34925	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34926	return c
34927}
34928
34929// PageToken sets the optional parameter "pageToken": The
34930// next_page_token value returned from a previous list request.
34931func (c *ProjectsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesListCall {
34932	c.urlParams_.Set("pageToken", pageToken)
34933	return c
34934}
34935
34936// Fields allows partial responses to be retrieved. See
34937// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34938// for more information.
34939func (c *ProjectsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesListCall {
34940	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34941	return c
34942}
34943
34944// IfNoneMatch sets the optional parameter which makes the operation
34945// fail if the object's ETag matches the given value. This is useful for
34946// getting updates only after the object has changed since the last
34947// request. Use googleapi.IsNotModified to check whether the response
34948// error from Do is the result of In-None-Match.
34949func (c *ProjectsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesListCall {
34950	c.ifNoneMatch_ = entityTag
34951	return c
34952}
34953
34954// Context sets the context to be used in this call's Do method. Any
34955// pending HTTP request will be aborted if the provided context is
34956// canceled.
34957func (c *ProjectsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesListCall {
34958	c.ctx_ = ctx
34959	return c
34960}
34961
34962// Header returns an http.Header that can be modified by the caller to
34963// add HTTP headers to the request.
34964func (c *ProjectsKnowledgeBasesListCall) Header() http.Header {
34965	if c.header_ == nil {
34966		c.header_ = make(http.Header)
34967	}
34968	return c.header_
34969}
34970
34971func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
34972	reqHeaders := make(http.Header)
34973	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
34974	for k, v := range c.header_ {
34975		reqHeaders[k] = v
34976	}
34977	reqHeaders.Set("User-Agent", c.s.userAgent())
34978	if c.ifNoneMatch_ != "" {
34979		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34980	}
34981	var body io.Reader = nil
34982	c.urlParams_.Set("alt", alt)
34983	c.urlParams_.Set("prettyPrint", "false")
34984	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
34985	urls += "?" + c.urlParams_.Encode()
34986	req, err := http.NewRequest("GET", urls, body)
34987	if err != nil {
34988		return nil, err
34989	}
34990	req.Header = reqHeaders
34991	googleapi.Expand(req.URL, map[string]string{
34992		"parent": c.parent,
34993	})
34994	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34995}
34996
34997// Do executes the "dialogflow.projects.knowledgeBases.list" call.
34998// Exactly one of
34999// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse or error will
35000// be non-nil. Any non-2xx status code is an error. Response headers are
35001// in either
35002// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse
35003// .Header or (if a response was returned at all) in
35004// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35005// whether the returned error was because http.StatusNotModified was
35006// returned.
35007func (c *ProjectsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
35008	gensupport.SetOptions(c.urlParams_, opts...)
35009	res, err := c.doRequest("json")
35010	if res != nil && res.StatusCode == http.StatusNotModified {
35011		if res.Body != nil {
35012			res.Body.Close()
35013		}
35014		return nil, &googleapi.Error{
35015			Code:   res.StatusCode,
35016			Header: res.Header,
35017		}
35018	}
35019	if err != nil {
35020		return nil, err
35021	}
35022	defer googleapi.CloseBody(res)
35023	if err := googleapi.CheckResponse(res); err != nil {
35024		return nil, err
35025	}
35026	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
35027		ServerResponse: googleapi.ServerResponse{
35028			Header:         res.Header,
35029			HTTPStatusCode: res.StatusCode,
35030		},
35031	}
35032	target := &ret
35033	if err := gensupport.DecodeResponse(target, res); err != nil {
35034		return nil, err
35035	}
35036	return ret, nil
35037	// {
35038	//   "description": "Returns the list of all knowledge bases of the specified agent. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
35039	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases",
35040	//   "httpMethod": "GET",
35041	//   "id": "dialogflow.projects.knowledgeBases.list",
35042	//   "parameterOrder": [
35043	//     "parent"
35044	//   ],
35045	//   "parameters": {
35046	//     "filter": {
35047	//       "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).",
35048	//       "location": "query",
35049	//       "type": "string"
35050	//     },
35051	//     "pageSize": {
35052	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
35053	//       "format": "int32",
35054	//       "location": "query",
35055	//       "type": "integer"
35056	//     },
35057	//     "pageToken": {
35058	//       "description": "The next_page_token value returned from a previous list request.",
35059	//       "location": "query",
35060	//       "type": "string"
35061	//     },
35062	//     "parent": {
35063	//       "description": "Required. The project to list of knowledge bases for. Format: `projects//locations/`.",
35064	//       "location": "path",
35065	//       "pattern": "^projects/[^/]+$",
35066	//       "required": true,
35067	//       "type": "string"
35068	//     }
35069	//   },
35070	//   "path": "v2beta1/{+parent}/knowledgeBases",
35071	//   "response": {
35072	//     "$ref": "GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse"
35073	//   },
35074	//   "scopes": [
35075	//     "https://www.googleapis.com/auth/cloud-platform",
35076	//     "https://www.googleapis.com/auth/dialogflow"
35077	//   ]
35078	// }
35079
35080}
35081
35082// Pages invokes f for each page of results.
35083// A non-nil error returned from f will halt the iteration.
35084// The provided context supersedes any context provided to the Context method.
35085func (c *ProjectsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
35086	c.ctx_ = ctx
35087	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
35088	for {
35089		x, err := c.Do()
35090		if err != nil {
35091			return err
35092		}
35093		if err := f(x); err != nil {
35094			return err
35095		}
35096		if x.NextPageToken == "" {
35097			return nil
35098		}
35099		c.PageToken(x.NextPageToken)
35100	}
35101}
35102
35103// method id "dialogflow.projects.knowledgeBases.patch":
35104
35105type ProjectsKnowledgeBasesPatchCall struct {
35106	s                                         *Service
35107	name                                      string
35108	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
35109	urlParams_                                gensupport.URLParams
35110	ctx_                                      context.Context
35111	header_                                   http.Header
35112}
35113
35114// Patch: Updates the specified knowledge base. Note: The
35115// `projects.agent.knowledgeBases` resource is deprecated; only use
35116// `projects.knowledgeBases`.
35117//
35118// - name: The knowledge base resource name. The name must be empty when
35119//   creating a knowledge base. Format:
35120//   `projects//locations//knowledgeBases/`.
35121func (r *ProjectsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesPatchCall {
35122	c := &ProjectsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35123	c.name = name
35124	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
35125	return c
35126}
35127
35128// UpdateMask sets the optional parameter "updateMask": Not specified
35129// means `update all`. Currently, only `display_name` can be updated, an
35130// InvalidArgument will be returned for attempting to update other
35131// fields.
35132func (c *ProjectsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesPatchCall {
35133	c.urlParams_.Set("updateMask", updateMask)
35134	return c
35135}
35136
35137// Fields allows partial responses to be retrieved. See
35138// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35139// for more information.
35140func (c *ProjectsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesPatchCall {
35141	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35142	return c
35143}
35144
35145// Context sets the context to be used in this call's Do method. Any
35146// pending HTTP request will be aborted if the provided context is
35147// canceled.
35148func (c *ProjectsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesPatchCall {
35149	c.ctx_ = ctx
35150	return c
35151}
35152
35153// Header returns an http.Header that can be modified by the caller to
35154// add HTTP headers to the request.
35155func (c *ProjectsKnowledgeBasesPatchCall) Header() http.Header {
35156	if c.header_ == nil {
35157		c.header_ = make(http.Header)
35158	}
35159	return c.header_
35160}
35161
35162func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
35163	reqHeaders := make(http.Header)
35164	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
35165	for k, v := range c.header_ {
35166		reqHeaders[k] = v
35167	}
35168	reqHeaders.Set("User-Agent", c.s.userAgent())
35169	var body io.Reader = nil
35170	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
35171	if err != nil {
35172		return nil, err
35173	}
35174	reqHeaders.Set("Content-Type", "application/json")
35175	c.urlParams_.Set("alt", alt)
35176	c.urlParams_.Set("prettyPrint", "false")
35177	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35178	urls += "?" + c.urlParams_.Encode()
35179	req, err := http.NewRequest("PATCH", urls, body)
35180	if err != nil {
35181		return nil, err
35182	}
35183	req.Header = reqHeaders
35184	googleapi.Expand(req.URL, map[string]string{
35185		"name": c.name,
35186	})
35187	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35188}
35189
35190// Do executes the "dialogflow.projects.knowledgeBases.patch" call.
35191// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
35192// will be non-nil. Any non-2xx status code is an error. Response
35193// headers are in either
35194// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
35195// (if a response was returned at all) in
35196// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35197// whether the returned error was because http.StatusNotModified was
35198// returned.
35199func (c *ProjectsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
35200	gensupport.SetOptions(c.urlParams_, opts...)
35201	res, err := c.doRequest("json")
35202	if res != nil && res.StatusCode == http.StatusNotModified {
35203		if res.Body != nil {
35204			res.Body.Close()
35205		}
35206		return nil, &googleapi.Error{
35207			Code:   res.StatusCode,
35208			Header: res.Header,
35209		}
35210	}
35211	if err != nil {
35212		return nil, err
35213	}
35214	defer googleapi.CloseBody(res)
35215	if err := googleapi.CheckResponse(res); err != nil {
35216		return nil, err
35217	}
35218	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
35219		ServerResponse: googleapi.ServerResponse{
35220			Header:         res.Header,
35221			HTTPStatusCode: res.StatusCode,
35222		},
35223	}
35224	target := &ret
35225	if err := gensupport.DecodeResponse(target, res); err != nil {
35226		return nil, err
35227	}
35228	return ret, nil
35229	// {
35230	//   "description": "Updates the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
35231	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}",
35232	//   "httpMethod": "PATCH",
35233	//   "id": "dialogflow.projects.knowledgeBases.patch",
35234	//   "parameterOrder": [
35235	//     "name"
35236	//   ],
35237	//   "parameters": {
35238	//     "name": {
35239	//       "description": "The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.",
35240	//       "location": "path",
35241	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
35242	//       "required": true,
35243	//       "type": "string"
35244	//     },
35245	//     "updateMask": {
35246	//       "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.",
35247	//       "format": "google-fieldmask",
35248	//       "location": "query",
35249	//       "type": "string"
35250	//     }
35251	//   },
35252	//   "path": "v2beta1/{+name}",
35253	//   "request": {
35254	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
35255	//   },
35256	//   "response": {
35257	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
35258	//   },
35259	//   "scopes": [
35260	//     "https://www.googleapis.com/auth/cloud-platform",
35261	//     "https://www.googleapis.com/auth/dialogflow"
35262	//   ]
35263	// }
35264
35265}
35266
35267// method id "dialogflow.projects.knowledgeBases.documents.create":
35268
35269type ProjectsKnowledgeBasesDocumentsCreateCall struct {
35270	s                                    *Service
35271	parent                               string
35272	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
35273	urlParams_                           gensupport.URLParams
35274	ctx_                                 context.Context
35275	header_                              http.Header
35276}
35277
35278// Create: Creates a new document. Note: The
35279// `projects.agent.knowledgeBases.documents` resource is deprecated;
35280// only use `projects.knowledgeBases.documents`.
35281//
35282// - parent: The knowledge base to create a document for. Format:
35283//   `projects//locations//knowledgeBases/`.
35284func (r *ProjectsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsCreateCall {
35285	c := &ProjectsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35286	c.parent = parent
35287	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
35288	return c
35289}
35290
35291// ImportGcsCustomMetadata sets the optional parameter
35292// "importGcsCustomMetadata": Whether to import custom metadata from
35293// Google Cloud Storage. Only valid when the document source is Google
35294// Cloud Storage URI.
35295func (c *ProjectsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsKnowledgeBasesDocumentsCreateCall {
35296	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
35297	return c
35298}
35299
35300// Fields allows partial responses to be retrieved. See
35301// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35302// for more information.
35303func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsCreateCall {
35304	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35305	return c
35306}
35307
35308// Context sets the context to be used in this call's Do method. Any
35309// pending HTTP request will be aborted if the provided context is
35310// canceled.
35311func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsCreateCall {
35312	c.ctx_ = ctx
35313	return c
35314}
35315
35316// Header returns an http.Header that can be modified by the caller to
35317// add HTTP headers to the request.
35318func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
35319	if c.header_ == nil {
35320		c.header_ = make(http.Header)
35321	}
35322	return c.header_
35323}
35324
35325func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
35326	reqHeaders := make(http.Header)
35327	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
35328	for k, v := range c.header_ {
35329		reqHeaders[k] = v
35330	}
35331	reqHeaders.Set("User-Agent", c.s.userAgent())
35332	var body io.Reader = nil
35333	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
35334	if err != nil {
35335		return nil, err
35336	}
35337	reqHeaders.Set("Content-Type", "application/json")
35338	c.urlParams_.Set("alt", alt)
35339	c.urlParams_.Set("prettyPrint", "false")
35340	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
35341	urls += "?" + c.urlParams_.Encode()
35342	req, err := http.NewRequest("POST", urls, body)
35343	if err != nil {
35344		return nil, err
35345	}
35346	req.Header = reqHeaders
35347	googleapi.Expand(req.URL, map[string]string{
35348		"parent": c.parent,
35349	})
35350	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35351}
35352
35353// Do executes the "dialogflow.projects.knowledgeBases.documents.create" call.
35354// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35355// Any non-2xx status code is an error. Response headers are in either
35356// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35357// was returned at all) in error.(*googleapi.Error).Header. Use
35358// googleapi.IsNotModified to check whether the returned error was
35359// because http.StatusNotModified was returned.
35360func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35361	gensupport.SetOptions(c.urlParams_, opts...)
35362	res, err := c.doRequest("json")
35363	if res != nil && res.StatusCode == http.StatusNotModified {
35364		if res.Body != nil {
35365			res.Body.Close()
35366		}
35367		return nil, &googleapi.Error{
35368			Code:   res.StatusCode,
35369			Header: res.Header,
35370		}
35371	}
35372	if err != nil {
35373		return nil, err
35374	}
35375	defer googleapi.CloseBody(res)
35376	if err := googleapi.CheckResponse(res); err != nil {
35377		return nil, err
35378	}
35379	ret := &GoogleLongrunningOperation{
35380		ServerResponse: googleapi.ServerResponse{
35381			Header:         res.Header,
35382			HTTPStatusCode: res.StatusCode,
35383		},
35384	}
35385	target := &ret
35386	if err := gensupport.DecodeResponse(target, res); err != nil {
35387		return nil, err
35388	}
35389	return ret, nil
35390	// {
35391	//   "description": "Creates a new document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
35392	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents",
35393	//   "httpMethod": "POST",
35394	//   "id": "dialogflow.projects.knowledgeBases.documents.create",
35395	//   "parameterOrder": [
35396	//     "parent"
35397	//   ],
35398	//   "parameters": {
35399	//     "importGcsCustomMetadata": {
35400	//       "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.",
35401	//       "location": "query",
35402	//       "type": "boolean"
35403	//     },
35404	//     "parent": {
35405	//       "description": "Required. The knowledge base to create a document for. Format: `projects//locations//knowledgeBases/`.",
35406	//       "location": "path",
35407	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
35408	//       "required": true,
35409	//       "type": "string"
35410	//     }
35411	//   },
35412	//   "path": "v2beta1/{+parent}/documents",
35413	//   "request": {
35414	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
35415	//   },
35416	//   "response": {
35417	//     "$ref": "GoogleLongrunningOperation"
35418	//   },
35419	//   "scopes": [
35420	//     "https://www.googleapis.com/auth/cloud-platform",
35421	//     "https://www.googleapis.com/auth/dialogflow"
35422	//   ]
35423	// }
35424
35425}
35426
35427// method id "dialogflow.projects.knowledgeBases.documents.delete":
35428
35429type ProjectsKnowledgeBasesDocumentsDeleteCall struct {
35430	s          *Service
35431	name       string
35432	urlParams_ gensupport.URLParams
35433	ctx_       context.Context
35434	header_    http.Header
35435}
35436
35437// Delete: Deletes the specified document. Note: The
35438// `projects.agent.knowledgeBases.documents` resource is deprecated;
35439// only use `projects.knowledgeBases.documents`.
35440//
35441// - name: The name of the document to delete. Format:
35442//   `projects//locations//knowledgeBases//documents/`.
35443func (r *ProjectsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsKnowledgeBasesDocumentsDeleteCall {
35444	c := &ProjectsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35445	c.name = name
35446	return c
35447}
35448
35449// Fields allows partial responses to be retrieved. See
35450// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35451// for more information.
35452func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsDeleteCall {
35453	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35454	return c
35455}
35456
35457// Context sets the context to be used in this call's Do method. Any
35458// pending HTTP request will be aborted if the provided context is
35459// canceled.
35460func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsDeleteCall {
35461	c.ctx_ = ctx
35462	return c
35463}
35464
35465// Header returns an http.Header that can be modified by the caller to
35466// add HTTP headers to the request.
35467func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
35468	if c.header_ == nil {
35469		c.header_ = make(http.Header)
35470	}
35471	return c.header_
35472}
35473
35474func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
35475	reqHeaders := make(http.Header)
35476	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
35477	for k, v := range c.header_ {
35478		reqHeaders[k] = v
35479	}
35480	reqHeaders.Set("User-Agent", c.s.userAgent())
35481	var body io.Reader = nil
35482	c.urlParams_.Set("alt", alt)
35483	c.urlParams_.Set("prettyPrint", "false")
35484	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35485	urls += "?" + c.urlParams_.Encode()
35486	req, err := http.NewRequest("DELETE", urls, body)
35487	if err != nil {
35488		return nil, err
35489	}
35490	req.Header = reqHeaders
35491	googleapi.Expand(req.URL, map[string]string{
35492		"name": c.name,
35493	})
35494	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35495}
35496
35497// Do executes the "dialogflow.projects.knowledgeBases.documents.delete" call.
35498// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35499// Any non-2xx status code is an error. Response headers are in either
35500// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35501// was returned at all) in error.(*googleapi.Error).Header. Use
35502// googleapi.IsNotModified to check whether the returned error was
35503// because http.StatusNotModified was returned.
35504func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35505	gensupport.SetOptions(c.urlParams_, opts...)
35506	res, err := c.doRequest("json")
35507	if res != nil && res.StatusCode == http.StatusNotModified {
35508		if res.Body != nil {
35509			res.Body.Close()
35510		}
35511		return nil, &googleapi.Error{
35512			Code:   res.StatusCode,
35513			Header: res.Header,
35514		}
35515	}
35516	if err != nil {
35517		return nil, err
35518	}
35519	defer googleapi.CloseBody(res)
35520	if err := googleapi.CheckResponse(res); err != nil {
35521		return nil, err
35522	}
35523	ret := &GoogleLongrunningOperation{
35524		ServerResponse: googleapi.ServerResponse{
35525			Header:         res.Header,
35526			HTTPStatusCode: res.StatusCode,
35527		},
35528	}
35529	target := &ret
35530	if err := gensupport.DecodeResponse(target, res); err != nil {
35531		return nil, err
35532	}
35533	return ret, nil
35534	// {
35535	//   "description": "Deletes the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
35536	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
35537	//   "httpMethod": "DELETE",
35538	//   "id": "dialogflow.projects.knowledgeBases.documents.delete",
35539	//   "parameterOrder": [
35540	//     "name"
35541	//   ],
35542	//   "parameters": {
35543	//     "name": {
35544	//       "description": "Required. The name of the document to delete. Format: `projects//locations//knowledgeBases//documents/`.",
35545	//       "location": "path",
35546	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
35547	//       "required": true,
35548	//       "type": "string"
35549	//     }
35550	//   },
35551	//   "path": "v2beta1/{+name}",
35552	//   "response": {
35553	//     "$ref": "GoogleLongrunningOperation"
35554	//   },
35555	//   "scopes": [
35556	//     "https://www.googleapis.com/auth/cloud-platform",
35557	//     "https://www.googleapis.com/auth/dialogflow"
35558	//   ]
35559	// }
35560
35561}
35562
35563// method id "dialogflow.projects.knowledgeBases.documents.get":
35564
35565type ProjectsKnowledgeBasesDocumentsGetCall struct {
35566	s            *Service
35567	name         string
35568	urlParams_   gensupport.URLParams
35569	ifNoneMatch_ string
35570	ctx_         context.Context
35571	header_      http.Header
35572}
35573
35574// Get: Retrieves the specified document. Note: The
35575// `projects.agent.knowledgeBases.documents` resource is deprecated;
35576// only use `projects.knowledgeBases.documents`.
35577//
35578// - name: The name of the document to retrieve. Format
35579//   `projects//locations//knowledgeBases//documents/`.
35580func (r *ProjectsKnowledgeBasesDocumentsService) Get(name string) *ProjectsKnowledgeBasesDocumentsGetCall {
35581	c := &ProjectsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35582	c.name = name
35583	return c
35584}
35585
35586// Fields allows partial responses to be retrieved. See
35587// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35588// for more information.
35589func (c *ProjectsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsGetCall {
35590	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35591	return c
35592}
35593
35594// IfNoneMatch sets the optional parameter which makes the operation
35595// fail if the object's ETag matches the given value. This is useful for
35596// getting updates only after the object has changed since the last
35597// request. Use googleapi.IsNotModified to check whether the response
35598// error from Do is the result of In-None-Match.
35599func (c *ProjectsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsGetCall {
35600	c.ifNoneMatch_ = entityTag
35601	return c
35602}
35603
35604// Context sets the context to be used in this call's Do method. Any
35605// pending HTTP request will be aborted if the provided context is
35606// canceled.
35607func (c *ProjectsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsGetCall {
35608	c.ctx_ = ctx
35609	return c
35610}
35611
35612// Header returns an http.Header that can be modified by the caller to
35613// add HTTP headers to the request.
35614func (c *ProjectsKnowledgeBasesDocumentsGetCall) Header() http.Header {
35615	if c.header_ == nil {
35616		c.header_ = make(http.Header)
35617	}
35618	return c.header_
35619}
35620
35621func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
35622	reqHeaders := make(http.Header)
35623	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
35624	for k, v := range c.header_ {
35625		reqHeaders[k] = v
35626	}
35627	reqHeaders.Set("User-Agent", c.s.userAgent())
35628	if c.ifNoneMatch_ != "" {
35629		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35630	}
35631	var body io.Reader = nil
35632	c.urlParams_.Set("alt", alt)
35633	c.urlParams_.Set("prettyPrint", "false")
35634	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35635	urls += "?" + c.urlParams_.Encode()
35636	req, err := http.NewRequest("GET", urls, body)
35637	if err != nil {
35638		return nil, err
35639	}
35640	req.Header = reqHeaders
35641	googleapi.Expand(req.URL, map[string]string{
35642		"name": c.name,
35643	})
35644	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35645}
35646
35647// Do executes the "dialogflow.projects.knowledgeBases.documents.get" call.
35648// Exactly one of *GoogleCloudDialogflowV2beta1Document or error will be
35649// non-nil. Any non-2xx status code is an error. Response headers are in
35650// either *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or
35651// (if a response was returned at all) in
35652// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35653// whether the returned error was because http.StatusNotModified was
35654// returned.
35655func (c *ProjectsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
35656	gensupport.SetOptions(c.urlParams_, opts...)
35657	res, err := c.doRequest("json")
35658	if res != nil && res.StatusCode == http.StatusNotModified {
35659		if res.Body != nil {
35660			res.Body.Close()
35661		}
35662		return nil, &googleapi.Error{
35663			Code:   res.StatusCode,
35664			Header: res.Header,
35665		}
35666	}
35667	if err != nil {
35668		return nil, err
35669	}
35670	defer googleapi.CloseBody(res)
35671	if err := googleapi.CheckResponse(res); err != nil {
35672		return nil, err
35673	}
35674	ret := &GoogleCloudDialogflowV2beta1Document{
35675		ServerResponse: googleapi.ServerResponse{
35676			Header:         res.Header,
35677			HTTPStatusCode: res.StatusCode,
35678		},
35679	}
35680	target := &ret
35681	if err := gensupport.DecodeResponse(target, res); err != nil {
35682		return nil, err
35683	}
35684	return ret, nil
35685	// {
35686	//   "description": "Retrieves the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
35687	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
35688	//   "httpMethod": "GET",
35689	//   "id": "dialogflow.projects.knowledgeBases.documents.get",
35690	//   "parameterOrder": [
35691	//     "name"
35692	//   ],
35693	//   "parameters": {
35694	//     "name": {
35695	//       "description": "Required. The name of the document to retrieve. Format `projects//locations//knowledgeBases//documents/`.",
35696	//       "location": "path",
35697	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
35698	//       "required": true,
35699	//       "type": "string"
35700	//     }
35701	//   },
35702	//   "path": "v2beta1/{+name}",
35703	//   "response": {
35704	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
35705	//   },
35706	//   "scopes": [
35707	//     "https://www.googleapis.com/auth/cloud-platform",
35708	//     "https://www.googleapis.com/auth/dialogflow"
35709	//   ]
35710	// }
35711
35712}
35713
35714// method id "dialogflow.projects.knowledgeBases.documents.import":
35715
35716type ProjectsKnowledgeBasesDocumentsImportCall struct {
35717	s                                                  *Service
35718	parent                                             string
35719	googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
35720	urlParams_                                         gensupport.URLParams
35721	ctx_                                               context.Context
35722	header_                                            http.Header
35723}
35724
35725// Import: Create documents by importing data from external sources.
35726//
35727// - parent: The knowledge base to import documents into. Format:
35728//   `projects//locations//knowledgeBases/`.
35729func (r *ProjectsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsKnowledgeBasesDocumentsImportCall {
35730	c := &ProjectsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35731	c.parent = parent
35732	c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
35733	return c
35734}
35735
35736// Fields allows partial responses to be retrieved. See
35737// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35738// for more information.
35739func (c *ProjectsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsImportCall {
35740	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35741	return c
35742}
35743
35744// Context sets the context to be used in this call's Do method. Any
35745// pending HTTP request will be aborted if the provided context is
35746// canceled.
35747func (c *ProjectsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsImportCall {
35748	c.ctx_ = ctx
35749	return c
35750}
35751
35752// Header returns an http.Header that can be modified by the caller to
35753// add HTTP headers to the request.
35754func (c *ProjectsKnowledgeBasesDocumentsImportCall) Header() http.Header {
35755	if c.header_ == nil {
35756		c.header_ = make(http.Header)
35757	}
35758	return c.header_
35759}
35760
35761func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
35762	reqHeaders := make(http.Header)
35763	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
35764	for k, v := range c.header_ {
35765		reqHeaders[k] = v
35766	}
35767	reqHeaders.Set("User-Agent", c.s.userAgent())
35768	var body io.Reader = nil
35769	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
35770	if err != nil {
35771		return nil, err
35772	}
35773	reqHeaders.Set("Content-Type", "application/json")
35774	c.urlParams_.Set("alt", alt)
35775	c.urlParams_.Set("prettyPrint", "false")
35776	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
35777	urls += "?" + c.urlParams_.Encode()
35778	req, err := http.NewRequest("POST", urls, body)
35779	if err != nil {
35780		return nil, err
35781	}
35782	req.Header = reqHeaders
35783	googleapi.Expand(req.URL, map[string]string{
35784		"parent": c.parent,
35785	})
35786	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35787}
35788
35789// Do executes the "dialogflow.projects.knowledgeBases.documents.import" call.
35790// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
35791// Any non-2xx status code is an error. Response headers are in either
35792// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
35793// was returned at all) in error.(*googleapi.Error).Header. Use
35794// googleapi.IsNotModified to check whether the returned error was
35795// because http.StatusNotModified was returned.
35796func (c *ProjectsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35797	gensupport.SetOptions(c.urlParams_, opts...)
35798	res, err := c.doRequest("json")
35799	if res != nil && res.StatusCode == http.StatusNotModified {
35800		if res.Body != nil {
35801			res.Body.Close()
35802		}
35803		return nil, &googleapi.Error{
35804			Code:   res.StatusCode,
35805			Header: res.Header,
35806		}
35807	}
35808	if err != nil {
35809		return nil, err
35810	}
35811	defer googleapi.CloseBody(res)
35812	if err := googleapi.CheckResponse(res); err != nil {
35813		return nil, err
35814	}
35815	ret := &GoogleLongrunningOperation{
35816		ServerResponse: googleapi.ServerResponse{
35817			Header:         res.Header,
35818			HTTPStatusCode: res.StatusCode,
35819		},
35820	}
35821	target := &ret
35822	if err := gensupport.DecodeResponse(target, res); err != nil {
35823		return nil, err
35824	}
35825	return ret, nil
35826	// {
35827	//   "description": "Create documents by importing data from external sources.",
35828	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents:import",
35829	//   "httpMethod": "POST",
35830	//   "id": "dialogflow.projects.knowledgeBases.documents.import",
35831	//   "parameterOrder": [
35832	//     "parent"
35833	//   ],
35834	//   "parameters": {
35835	//     "parent": {
35836	//       "description": "Required. The knowledge base to import documents into. Format: `projects//locations//knowledgeBases/`.",
35837	//       "location": "path",
35838	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
35839	//       "required": true,
35840	//       "type": "string"
35841	//     }
35842	//   },
35843	//   "path": "v2beta1/{+parent}/documents:import",
35844	//   "request": {
35845	//     "$ref": "GoogleCloudDialogflowV2beta1ImportDocumentsRequest"
35846	//   },
35847	//   "response": {
35848	//     "$ref": "GoogleLongrunningOperation"
35849	//   },
35850	//   "scopes": [
35851	//     "https://www.googleapis.com/auth/cloud-platform",
35852	//     "https://www.googleapis.com/auth/dialogflow"
35853	//   ]
35854	// }
35855
35856}
35857
35858// method id "dialogflow.projects.knowledgeBases.documents.list":
35859
35860type ProjectsKnowledgeBasesDocumentsListCall struct {
35861	s            *Service
35862	parent       string
35863	urlParams_   gensupport.URLParams
35864	ifNoneMatch_ string
35865	ctx_         context.Context
35866	header_      http.Header
35867}
35868
35869// List: Returns the list of all documents of the knowledge base. Note:
35870// The `projects.agent.knowledgeBases.documents` resource is deprecated;
35871// only use `projects.knowledgeBases.documents`.
35872//
35873// - parent: The knowledge base to list all documents for. Format:
35874//   `projects//locations//knowledgeBases/`.
35875func (r *ProjectsKnowledgeBasesDocumentsService) List(parent string) *ProjectsKnowledgeBasesDocumentsListCall {
35876	c := &ProjectsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35877	c.parent = parent
35878	return c
35879}
35880
35881// Filter sets the optional parameter "filter": The filter expression
35882// used to filter documents returned by the list method. The expression
35883// has the following syntax: [AND ] ... The following fields and
35884// operators are supported: * knowledge_types with has(:) operator *
35885// display_name with has(:) operator * state with equals(=) operator
35886// Examples: * "knowledge_types:FAQ" matches documents with FAQ
35887// knowledge type. * "display_name:customer" matches documents whose
35888// display name contains "customer". * "state=ACTIVE" matches documents
35889// with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE" matches
35890// all active FAQ documents. For more information about filtering, see
35891// API Filtering (https://aip.dev/160).
35892func (c *ProjectsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsKnowledgeBasesDocumentsListCall {
35893	c.urlParams_.Set("filter", filter)
35894	return c
35895}
35896
35897// PageSize sets the optional parameter "pageSize": The maximum number
35898// of items to return in a single page. By default 10 and at most 100.
35899func (c *ProjectsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesDocumentsListCall {
35900	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35901	return c
35902}
35903
35904// PageToken sets the optional parameter "pageToken": The
35905// next_page_token value returned from a previous list request.
35906func (c *ProjectsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesDocumentsListCall {
35907	c.urlParams_.Set("pageToken", pageToken)
35908	return c
35909}
35910
35911// Fields allows partial responses to be retrieved. See
35912// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35913// for more information.
35914func (c *ProjectsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsListCall {
35915	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35916	return c
35917}
35918
35919// IfNoneMatch sets the optional parameter which makes the operation
35920// fail if the object's ETag matches the given value. This is useful for
35921// getting updates only after the object has changed since the last
35922// request. Use googleapi.IsNotModified to check whether the response
35923// error from Do is the result of In-None-Match.
35924func (c *ProjectsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsListCall {
35925	c.ifNoneMatch_ = entityTag
35926	return c
35927}
35928
35929// Context sets the context to be used in this call's Do method. Any
35930// pending HTTP request will be aborted if the provided context is
35931// canceled.
35932func (c *ProjectsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsListCall {
35933	c.ctx_ = ctx
35934	return c
35935}
35936
35937// Header returns an http.Header that can be modified by the caller to
35938// add HTTP headers to the request.
35939func (c *ProjectsKnowledgeBasesDocumentsListCall) Header() http.Header {
35940	if c.header_ == nil {
35941		c.header_ = make(http.Header)
35942	}
35943	return c.header_
35944}
35945
35946func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
35947	reqHeaders := make(http.Header)
35948	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
35949	for k, v := range c.header_ {
35950		reqHeaders[k] = v
35951	}
35952	reqHeaders.Set("User-Agent", c.s.userAgent())
35953	if c.ifNoneMatch_ != "" {
35954		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35955	}
35956	var body io.Reader = nil
35957	c.urlParams_.Set("alt", alt)
35958	c.urlParams_.Set("prettyPrint", "false")
35959	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
35960	urls += "?" + c.urlParams_.Encode()
35961	req, err := http.NewRequest("GET", urls, body)
35962	if err != nil {
35963		return nil, err
35964	}
35965	req.Header = reqHeaders
35966	googleapi.Expand(req.URL, map[string]string{
35967		"parent": c.parent,
35968	})
35969	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35970}
35971
35972// Do executes the "dialogflow.projects.knowledgeBases.documents.list" call.
35973// Exactly one of *GoogleCloudDialogflowV2beta1ListDocumentsResponse or
35974// error will be non-nil. Any non-2xx status code is an error. Response
35975// headers are in either
35976// *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Head
35977// er or (if a response was returned at all) in
35978// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35979// whether the returned error was because http.StatusNotModified was
35980// returned.
35981func (c *ProjectsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
35982	gensupport.SetOptions(c.urlParams_, opts...)
35983	res, err := c.doRequest("json")
35984	if res != nil && res.StatusCode == http.StatusNotModified {
35985		if res.Body != nil {
35986			res.Body.Close()
35987		}
35988		return nil, &googleapi.Error{
35989			Code:   res.StatusCode,
35990			Header: res.Header,
35991		}
35992	}
35993	if err != nil {
35994		return nil, err
35995	}
35996	defer googleapi.CloseBody(res)
35997	if err := googleapi.CheckResponse(res); err != nil {
35998		return nil, err
35999	}
36000	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
36001		ServerResponse: googleapi.ServerResponse{
36002			Header:         res.Header,
36003			HTTPStatusCode: res.StatusCode,
36004		},
36005	}
36006	target := &ret
36007	if err := gensupport.DecodeResponse(target, res); err != nil {
36008		return nil, err
36009	}
36010	return ret, nil
36011	// {
36012	//   "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`.",
36013	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents",
36014	//   "httpMethod": "GET",
36015	//   "id": "dialogflow.projects.knowledgeBases.documents.list",
36016	//   "parameterOrder": [
36017	//     "parent"
36018	//   ],
36019	//   "parameters": {
36020	//     "filter": {
36021	//       "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).",
36022	//       "location": "query",
36023	//       "type": "string"
36024	//     },
36025	//     "pageSize": {
36026	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
36027	//       "format": "int32",
36028	//       "location": "query",
36029	//       "type": "integer"
36030	//     },
36031	//     "pageToken": {
36032	//       "description": "The next_page_token value returned from a previous list request.",
36033	//       "location": "query",
36034	//       "type": "string"
36035	//     },
36036	//     "parent": {
36037	//       "description": "Required. The knowledge base to list all documents for. Format: `projects//locations//knowledgeBases/`.",
36038	//       "location": "path",
36039	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+$",
36040	//       "required": true,
36041	//       "type": "string"
36042	//     }
36043	//   },
36044	//   "path": "v2beta1/{+parent}/documents",
36045	//   "response": {
36046	//     "$ref": "GoogleCloudDialogflowV2beta1ListDocumentsResponse"
36047	//   },
36048	//   "scopes": [
36049	//     "https://www.googleapis.com/auth/cloud-platform",
36050	//     "https://www.googleapis.com/auth/dialogflow"
36051	//   ]
36052	// }
36053
36054}
36055
36056// Pages invokes f for each page of results.
36057// A non-nil error returned from f will halt the iteration.
36058// The provided context supersedes any context provided to the Context method.
36059func (c *ProjectsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
36060	c.ctx_ = ctx
36061	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
36062	for {
36063		x, err := c.Do()
36064		if err != nil {
36065			return err
36066		}
36067		if err := f(x); err != nil {
36068			return err
36069		}
36070		if x.NextPageToken == "" {
36071			return nil
36072		}
36073		c.PageToken(x.NextPageToken)
36074	}
36075}
36076
36077// method id "dialogflow.projects.knowledgeBases.documents.patch":
36078
36079type ProjectsKnowledgeBasesDocumentsPatchCall struct {
36080	s                                    *Service
36081	name                                 string
36082	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
36083	urlParams_                           gensupport.URLParams
36084	ctx_                                 context.Context
36085	header_                              http.Header
36086}
36087
36088// Patch: Updates the specified document. Note: The
36089// `projects.agent.knowledgeBases.documents` resource is deprecated;
36090// only use `projects.knowledgeBases.documents`.
36091//
36092// - name: Optional. The document resource name. The name must be empty
36093//   when creating a document. Format:
36094//   `projects//locations//knowledgeBases//documents/`.
36095func (r *ProjectsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsPatchCall {
36096	c := &ProjectsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36097	c.name = name
36098	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
36099	return c
36100}
36101
36102// UpdateMask sets the optional parameter "updateMask": Not specified
36103// means `update all`. Currently, only `display_name` can be updated, an
36104// InvalidArgument will be returned for attempting to update other
36105// fields.
36106func (c *ProjectsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesDocumentsPatchCall {
36107	c.urlParams_.Set("updateMask", updateMask)
36108	return c
36109}
36110
36111// Fields allows partial responses to be retrieved. See
36112// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36113// for more information.
36114func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsPatchCall {
36115	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36116	return c
36117}
36118
36119// Context sets the context to be used in this call's Do method. Any
36120// pending HTTP request will be aborted if the provided context is
36121// canceled.
36122func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsPatchCall {
36123	c.ctx_ = ctx
36124	return c
36125}
36126
36127// Header returns an http.Header that can be modified by the caller to
36128// add HTTP headers to the request.
36129func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
36130	if c.header_ == nil {
36131		c.header_ = make(http.Header)
36132	}
36133	return c.header_
36134}
36135
36136func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
36137	reqHeaders := make(http.Header)
36138	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
36139	for k, v := range c.header_ {
36140		reqHeaders[k] = v
36141	}
36142	reqHeaders.Set("User-Agent", c.s.userAgent())
36143	var body io.Reader = nil
36144	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
36145	if err != nil {
36146		return nil, err
36147	}
36148	reqHeaders.Set("Content-Type", "application/json")
36149	c.urlParams_.Set("alt", alt)
36150	c.urlParams_.Set("prettyPrint", "false")
36151	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
36152	urls += "?" + c.urlParams_.Encode()
36153	req, err := http.NewRequest("PATCH", urls, body)
36154	if err != nil {
36155		return nil, err
36156	}
36157	req.Header = reqHeaders
36158	googleapi.Expand(req.URL, map[string]string{
36159		"name": c.name,
36160	})
36161	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36162}
36163
36164// Do executes the "dialogflow.projects.knowledgeBases.documents.patch" call.
36165// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36166// Any non-2xx status code is an error. Response headers are in either
36167// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36168// was returned at all) in error.(*googleapi.Error).Header. Use
36169// googleapi.IsNotModified to check whether the returned error was
36170// because http.StatusNotModified was returned.
36171func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36172	gensupport.SetOptions(c.urlParams_, opts...)
36173	res, err := c.doRequest("json")
36174	if res != nil && res.StatusCode == http.StatusNotModified {
36175		if res.Body != nil {
36176			res.Body.Close()
36177		}
36178		return nil, &googleapi.Error{
36179			Code:   res.StatusCode,
36180			Header: res.Header,
36181		}
36182	}
36183	if err != nil {
36184		return nil, err
36185	}
36186	defer googleapi.CloseBody(res)
36187	if err := googleapi.CheckResponse(res); err != nil {
36188		return nil, err
36189	}
36190	ret := &GoogleLongrunningOperation{
36191		ServerResponse: googleapi.ServerResponse{
36192			Header:         res.Header,
36193			HTTPStatusCode: res.StatusCode,
36194		},
36195	}
36196	target := &ret
36197	if err := gensupport.DecodeResponse(target, res); err != nil {
36198		return nil, err
36199	}
36200	return ret, nil
36201	// {
36202	//   "description": "Updates the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
36203	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
36204	//   "httpMethod": "PATCH",
36205	//   "id": "dialogflow.projects.knowledgeBases.documents.patch",
36206	//   "parameterOrder": [
36207	//     "name"
36208	//   ],
36209	//   "parameters": {
36210	//     "name": {
36211	//       "description": "Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.",
36212	//       "location": "path",
36213	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
36214	//       "required": true,
36215	//       "type": "string"
36216	//     },
36217	//     "updateMask": {
36218	//       "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.",
36219	//       "format": "google-fieldmask",
36220	//       "location": "query",
36221	//       "type": "string"
36222	//     }
36223	//   },
36224	//   "path": "v2beta1/{+name}",
36225	//   "request": {
36226	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
36227	//   },
36228	//   "response": {
36229	//     "$ref": "GoogleLongrunningOperation"
36230	//   },
36231	//   "scopes": [
36232	//     "https://www.googleapis.com/auth/cloud-platform",
36233	//     "https://www.googleapis.com/auth/dialogflow"
36234	//   ]
36235	// }
36236
36237}
36238
36239// method id "dialogflow.projects.knowledgeBases.documents.reload":
36240
36241type ProjectsKnowledgeBasesDocumentsReloadCall struct {
36242	s                                                 *Service
36243	name                                              string
36244	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
36245	urlParams_                                        gensupport.URLParams
36246	ctx_                                              context.Context
36247	header_                                           http.Header
36248}
36249
36250// Reload: Reloads the specified document from its specified source,
36251// content_uri or content. The previously loaded content of the document
36252// will be deleted. Note: Even when the content of the document has not
36253// changed, there still may be side effects because of internal
36254// implementation changes. Note: If the document source is Google Cloud
36255// Storage URI, its metadata will be replaced with the custom metadata
36256// from Google Cloud Storage if the `import_gcs_custom_metadata` field
36257// is set to true in the request. Note: The
36258// `projects.agent.knowledgeBases.documents` resource is deprecated;
36259// only use `projects.knowledgeBases.documents`.
36260//
36261// - name: The name of the document to reload. Format:
36262//   `projects//locations//knowledgeBases//documents/`.
36263func (r *ProjectsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsKnowledgeBasesDocumentsReloadCall {
36264	c := &ProjectsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36265	c.name = name
36266	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
36267	return c
36268}
36269
36270// Fields allows partial responses to be retrieved. See
36271// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36272// for more information.
36273func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsReloadCall {
36274	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36275	return c
36276}
36277
36278// Context sets the context to be used in this call's Do method. Any
36279// pending HTTP request will be aborted if the provided context is
36280// canceled.
36281func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsReloadCall {
36282	c.ctx_ = ctx
36283	return c
36284}
36285
36286// Header returns an http.Header that can be modified by the caller to
36287// add HTTP headers to the request.
36288func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
36289	if c.header_ == nil {
36290		c.header_ = make(http.Header)
36291	}
36292	return c.header_
36293}
36294
36295func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
36296	reqHeaders := make(http.Header)
36297	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
36298	for k, v := range c.header_ {
36299		reqHeaders[k] = v
36300	}
36301	reqHeaders.Set("User-Agent", c.s.userAgent())
36302	var body io.Reader = nil
36303	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
36304	if err != nil {
36305		return nil, err
36306	}
36307	reqHeaders.Set("Content-Type", "application/json")
36308	c.urlParams_.Set("alt", alt)
36309	c.urlParams_.Set("prettyPrint", "false")
36310	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
36311	urls += "?" + c.urlParams_.Encode()
36312	req, err := http.NewRequest("POST", urls, body)
36313	if err != nil {
36314		return nil, err
36315	}
36316	req.Header = reqHeaders
36317	googleapi.Expand(req.URL, map[string]string{
36318		"name": c.name,
36319	})
36320	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36321}
36322
36323// Do executes the "dialogflow.projects.knowledgeBases.documents.reload" call.
36324// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36325// Any non-2xx status code is an error. Response headers are in either
36326// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36327// was returned at all) in error.(*googleapi.Error).Header. Use
36328// googleapi.IsNotModified to check whether the returned error was
36329// because http.StatusNotModified was returned.
36330func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36331	gensupport.SetOptions(c.urlParams_, opts...)
36332	res, err := c.doRequest("json")
36333	if res != nil && res.StatusCode == http.StatusNotModified {
36334		if res.Body != nil {
36335			res.Body.Close()
36336		}
36337		return nil, &googleapi.Error{
36338			Code:   res.StatusCode,
36339			Header: res.Header,
36340		}
36341	}
36342	if err != nil {
36343		return nil, err
36344	}
36345	defer googleapi.CloseBody(res)
36346	if err := googleapi.CheckResponse(res); err != nil {
36347		return nil, err
36348	}
36349	ret := &GoogleLongrunningOperation{
36350		ServerResponse: googleapi.ServerResponse{
36351			Header:         res.Header,
36352			HTTPStatusCode: res.StatusCode,
36353		},
36354	}
36355	target := &ret
36356	if err := gensupport.DecodeResponse(target, res); err != nil {
36357		return nil, err
36358	}
36359	return ret, nil
36360	// {
36361	//   "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`.",
36362	//   "flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
36363	//   "httpMethod": "POST",
36364	//   "id": "dialogflow.projects.knowledgeBases.documents.reload",
36365	//   "parameterOrder": [
36366	//     "name"
36367	//   ],
36368	//   "parameters": {
36369	//     "name": {
36370	//       "description": "Required. The name of the document to reload. Format: `projects//locations//knowledgeBases//documents/`",
36371	//       "location": "path",
36372	//       "pattern": "^projects/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
36373	//       "required": true,
36374	//       "type": "string"
36375	//     }
36376	//   },
36377	//   "path": "v2beta1/{+name}:reload",
36378	//   "request": {
36379	//     "$ref": "GoogleCloudDialogflowV2beta1ReloadDocumentRequest"
36380	//   },
36381	//   "response": {
36382	//     "$ref": "GoogleLongrunningOperation"
36383	//   },
36384	//   "scopes": [
36385	//     "https://www.googleapis.com/auth/cloud-platform",
36386	//     "https://www.googleapis.com/auth/dialogflow"
36387	//   ]
36388	// }
36389
36390}
36391
36392// method id "dialogflow.projects.locations.deleteAgent":
36393
36394type ProjectsLocationsDeleteAgentCall struct {
36395	s          *Service
36396	parent     string
36397	urlParams_ gensupport.URLParams
36398	ctx_       context.Context
36399	header_    http.Header
36400}
36401
36402// DeleteAgent: Deletes the specified agent.
36403//
36404// - parent: The project that the agent to delete is associated with.
36405//   Format: `projects/` or `projects//locations/`.
36406func (r *ProjectsLocationsService) DeleteAgent(parent string) *ProjectsLocationsDeleteAgentCall {
36407	c := &ProjectsLocationsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36408	c.parent = parent
36409	return c
36410}
36411
36412// Fields allows partial responses to be retrieved. See
36413// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36414// for more information.
36415func (c *ProjectsLocationsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeleteAgentCall {
36416	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36417	return c
36418}
36419
36420// Context sets the context to be used in this call's Do method. Any
36421// pending HTTP request will be aborted if the provided context is
36422// canceled.
36423func (c *ProjectsLocationsDeleteAgentCall) Context(ctx context.Context) *ProjectsLocationsDeleteAgentCall {
36424	c.ctx_ = ctx
36425	return c
36426}
36427
36428// Header returns an http.Header that can be modified by the caller to
36429// add HTTP headers to the request.
36430func (c *ProjectsLocationsDeleteAgentCall) Header() http.Header {
36431	if c.header_ == nil {
36432		c.header_ = make(http.Header)
36433	}
36434	return c.header_
36435}
36436
36437func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
36438	reqHeaders := make(http.Header)
36439	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
36440	for k, v := range c.header_ {
36441		reqHeaders[k] = v
36442	}
36443	reqHeaders.Set("User-Agent", c.s.userAgent())
36444	var body io.Reader = nil
36445	c.urlParams_.Set("alt", alt)
36446	c.urlParams_.Set("prettyPrint", "false")
36447	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
36448	urls += "?" + c.urlParams_.Encode()
36449	req, err := http.NewRequest("DELETE", urls, body)
36450	if err != nil {
36451		return nil, err
36452	}
36453	req.Header = reqHeaders
36454	googleapi.Expand(req.URL, map[string]string{
36455		"parent": c.parent,
36456	})
36457	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36458}
36459
36460// Do executes the "dialogflow.projects.locations.deleteAgent" call.
36461// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
36462// non-2xx status code is an error. Response headers are in either
36463// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
36464// returned at all) in error.(*googleapi.Error).Header. Use
36465// googleapi.IsNotModified to check whether the returned error was
36466// because http.StatusNotModified was returned.
36467func (c *ProjectsLocationsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
36468	gensupport.SetOptions(c.urlParams_, opts...)
36469	res, err := c.doRequest("json")
36470	if res != nil && res.StatusCode == http.StatusNotModified {
36471		if res.Body != nil {
36472			res.Body.Close()
36473		}
36474		return nil, &googleapi.Error{
36475			Code:   res.StatusCode,
36476			Header: res.Header,
36477		}
36478	}
36479	if err != nil {
36480		return nil, err
36481	}
36482	defer googleapi.CloseBody(res)
36483	if err := googleapi.CheckResponse(res); err != nil {
36484		return nil, err
36485	}
36486	ret := &GoogleProtobufEmpty{
36487		ServerResponse: googleapi.ServerResponse{
36488			Header:         res.Header,
36489			HTTPStatusCode: res.StatusCode,
36490		},
36491	}
36492	target := &ret
36493	if err := gensupport.DecodeResponse(target, res); err != nil {
36494		return nil, err
36495	}
36496	return ret, nil
36497	// {
36498	//   "description": "Deletes the specified agent.",
36499	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent",
36500	//   "httpMethod": "DELETE",
36501	//   "id": "dialogflow.projects.locations.deleteAgent",
36502	//   "parameterOrder": [
36503	//     "parent"
36504	//   ],
36505	//   "parameters": {
36506	//     "parent": {
36507	//       "description": "Required. The project that the agent to delete is associated with. Format: `projects/` or `projects//locations/`.",
36508	//       "location": "path",
36509	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
36510	//       "required": true,
36511	//       "type": "string"
36512	//     }
36513	//   },
36514	//   "path": "v2beta1/{+parent}/agent",
36515	//   "response": {
36516	//     "$ref": "GoogleProtobufEmpty"
36517	//   },
36518	//   "scopes": [
36519	//     "https://www.googleapis.com/auth/cloud-platform",
36520	//     "https://www.googleapis.com/auth/dialogflow"
36521	//   ]
36522	// }
36523
36524}
36525
36526// method id "dialogflow.projects.locations.getAgent":
36527
36528type ProjectsLocationsGetAgentCall struct {
36529	s            *Service
36530	parent       string
36531	urlParams_   gensupport.URLParams
36532	ifNoneMatch_ string
36533	ctx_         context.Context
36534	header_      http.Header
36535}
36536
36537// GetAgent: Retrieves the specified agent.
36538//
36539// - parent: The project that the agent to fetch is associated with.
36540//   Format: `projects/` or `projects//locations/`.
36541func (r *ProjectsLocationsService) GetAgent(parent string) *ProjectsLocationsGetAgentCall {
36542	c := &ProjectsLocationsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36543	c.parent = parent
36544	return c
36545}
36546
36547// Fields allows partial responses to be retrieved. See
36548// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36549// for more information.
36550func (c *ProjectsLocationsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAgentCall {
36551	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36552	return c
36553}
36554
36555// IfNoneMatch sets the optional parameter which makes the operation
36556// fail if the object's ETag matches the given value. This is useful for
36557// getting updates only after the object has changed since the last
36558// request. Use googleapi.IsNotModified to check whether the response
36559// error from Do is the result of In-None-Match.
36560func (c *ProjectsLocationsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAgentCall {
36561	c.ifNoneMatch_ = entityTag
36562	return c
36563}
36564
36565// Context sets the context to be used in this call's Do method. Any
36566// pending HTTP request will be aborted if the provided context is
36567// canceled.
36568func (c *ProjectsLocationsGetAgentCall) Context(ctx context.Context) *ProjectsLocationsGetAgentCall {
36569	c.ctx_ = ctx
36570	return c
36571}
36572
36573// Header returns an http.Header that can be modified by the caller to
36574// add HTTP headers to the request.
36575func (c *ProjectsLocationsGetAgentCall) Header() http.Header {
36576	if c.header_ == nil {
36577		c.header_ = make(http.Header)
36578	}
36579	return c.header_
36580}
36581
36582func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, error) {
36583	reqHeaders := make(http.Header)
36584	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
36585	for k, v := range c.header_ {
36586		reqHeaders[k] = v
36587	}
36588	reqHeaders.Set("User-Agent", c.s.userAgent())
36589	if c.ifNoneMatch_ != "" {
36590		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36591	}
36592	var body io.Reader = nil
36593	c.urlParams_.Set("alt", alt)
36594	c.urlParams_.Set("prettyPrint", "false")
36595	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
36596	urls += "?" + c.urlParams_.Encode()
36597	req, err := http.NewRequest("GET", urls, body)
36598	if err != nil {
36599		return nil, err
36600	}
36601	req.Header = reqHeaders
36602	googleapi.Expand(req.URL, map[string]string{
36603		"parent": c.parent,
36604	})
36605	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36606}
36607
36608// Do executes the "dialogflow.projects.locations.getAgent" call.
36609// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
36610// non-nil. Any non-2xx status code is an error. Response headers are in
36611// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
36612// (if a response was returned at all) in
36613// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36614// whether the returned error was because http.StatusNotModified was
36615// returned.
36616func (c *ProjectsLocationsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
36617	gensupport.SetOptions(c.urlParams_, opts...)
36618	res, err := c.doRequest("json")
36619	if res != nil && res.StatusCode == http.StatusNotModified {
36620		if res.Body != nil {
36621			res.Body.Close()
36622		}
36623		return nil, &googleapi.Error{
36624			Code:   res.StatusCode,
36625			Header: res.Header,
36626		}
36627	}
36628	if err != nil {
36629		return nil, err
36630	}
36631	defer googleapi.CloseBody(res)
36632	if err := googleapi.CheckResponse(res); err != nil {
36633		return nil, err
36634	}
36635	ret := &GoogleCloudDialogflowV2beta1Agent{
36636		ServerResponse: googleapi.ServerResponse{
36637			Header:         res.Header,
36638			HTTPStatusCode: res.StatusCode,
36639		},
36640	}
36641	target := &ret
36642	if err := gensupport.DecodeResponse(target, res); err != nil {
36643		return nil, err
36644	}
36645	return ret, nil
36646	// {
36647	//   "description": "Retrieves the specified agent.",
36648	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent",
36649	//   "httpMethod": "GET",
36650	//   "id": "dialogflow.projects.locations.getAgent",
36651	//   "parameterOrder": [
36652	//     "parent"
36653	//   ],
36654	//   "parameters": {
36655	//     "parent": {
36656	//       "description": "Required. The project that the agent to fetch is associated with. Format: `projects/` or `projects//locations/`.",
36657	//       "location": "path",
36658	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
36659	//       "required": true,
36660	//       "type": "string"
36661	//     }
36662	//   },
36663	//   "path": "v2beta1/{+parent}/agent",
36664	//   "response": {
36665	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
36666	//   },
36667	//   "scopes": [
36668	//     "https://www.googleapis.com/auth/cloud-platform",
36669	//     "https://www.googleapis.com/auth/dialogflow"
36670	//   ]
36671	// }
36672
36673}
36674
36675// method id "dialogflow.projects.locations.setAgent":
36676
36677type ProjectsLocationsSetAgentCall struct {
36678	s                                 *Service
36679	parent                            string
36680	googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
36681	urlParams_                        gensupport.URLParams
36682	ctx_                              context.Context
36683	header_                           http.Header
36684}
36685
36686// SetAgent: Creates/updates the specified agent.
36687//
36688// - parent: The project of this agent. Format: `projects/` or
36689//   `projects//locations/`.
36690func (r *ProjectsLocationsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsLocationsSetAgentCall {
36691	c := &ProjectsLocationsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36692	c.parent = parent
36693	c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
36694	return c
36695}
36696
36697// UpdateMask sets the optional parameter "updateMask": The mask to
36698// control which fields get updated.
36699func (c *ProjectsLocationsSetAgentCall) UpdateMask(updateMask string) *ProjectsLocationsSetAgentCall {
36700	c.urlParams_.Set("updateMask", updateMask)
36701	return c
36702}
36703
36704// Fields allows partial responses to be retrieved. See
36705// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36706// for more information.
36707func (c *ProjectsLocationsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsSetAgentCall {
36708	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36709	return c
36710}
36711
36712// Context sets the context to be used in this call's Do method. Any
36713// pending HTTP request will be aborted if the provided context is
36714// canceled.
36715func (c *ProjectsLocationsSetAgentCall) Context(ctx context.Context) *ProjectsLocationsSetAgentCall {
36716	c.ctx_ = ctx
36717	return c
36718}
36719
36720// Header returns an http.Header that can be modified by the caller to
36721// add HTTP headers to the request.
36722func (c *ProjectsLocationsSetAgentCall) Header() http.Header {
36723	if c.header_ == nil {
36724		c.header_ = make(http.Header)
36725	}
36726	return c.header_
36727}
36728
36729func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, error) {
36730	reqHeaders := make(http.Header)
36731	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
36732	for k, v := range c.header_ {
36733		reqHeaders[k] = v
36734	}
36735	reqHeaders.Set("User-Agent", c.s.userAgent())
36736	var body io.Reader = nil
36737	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
36738	if err != nil {
36739		return nil, err
36740	}
36741	reqHeaders.Set("Content-Type", "application/json")
36742	c.urlParams_.Set("alt", alt)
36743	c.urlParams_.Set("prettyPrint", "false")
36744	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
36745	urls += "?" + c.urlParams_.Encode()
36746	req, err := http.NewRequest("POST", urls, body)
36747	if err != nil {
36748		return nil, err
36749	}
36750	req.Header = reqHeaders
36751	googleapi.Expand(req.URL, map[string]string{
36752		"parent": c.parent,
36753	})
36754	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36755}
36756
36757// Do executes the "dialogflow.projects.locations.setAgent" call.
36758// Exactly one of *GoogleCloudDialogflowV2beta1Agent or error will be
36759// non-nil. Any non-2xx status code is an error. Response headers are in
36760// either *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or
36761// (if a response was returned at all) in
36762// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36763// whether the returned error was because http.StatusNotModified was
36764// returned.
36765func (c *ProjectsLocationsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
36766	gensupport.SetOptions(c.urlParams_, opts...)
36767	res, err := c.doRequest("json")
36768	if res != nil && res.StatusCode == http.StatusNotModified {
36769		if res.Body != nil {
36770			res.Body.Close()
36771		}
36772		return nil, &googleapi.Error{
36773			Code:   res.StatusCode,
36774			Header: res.Header,
36775		}
36776	}
36777	if err != nil {
36778		return nil, err
36779	}
36780	defer googleapi.CloseBody(res)
36781	if err := googleapi.CheckResponse(res); err != nil {
36782		return nil, err
36783	}
36784	ret := &GoogleCloudDialogflowV2beta1Agent{
36785		ServerResponse: googleapi.ServerResponse{
36786			Header:         res.Header,
36787			HTTPStatusCode: res.StatusCode,
36788		},
36789	}
36790	target := &ret
36791	if err := gensupport.DecodeResponse(target, res); err != nil {
36792		return nil, err
36793	}
36794	return ret, nil
36795	// {
36796	//   "description": "Creates/updates the specified agent.",
36797	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent",
36798	//   "httpMethod": "POST",
36799	//   "id": "dialogflow.projects.locations.setAgent",
36800	//   "parameterOrder": [
36801	//     "parent"
36802	//   ],
36803	//   "parameters": {
36804	//     "parent": {
36805	//       "description": "Required. The project of this agent. Format: `projects/` or `projects//locations/`",
36806	//       "location": "path",
36807	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
36808	//       "required": true,
36809	//       "type": "string"
36810	//     },
36811	//     "updateMask": {
36812	//       "description": "Optional. The mask to control which fields get updated.",
36813	//       "format": "google-fieldmask",
36814	//       "location": "query",
36815	//       "type": "string"
36816	//     }
36817	//   },
36818	//   "path": "v2beta1/{+parent}/agent",
36819	//   "request": {
36820	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
36821	//   },
36822	//   "response": {
36823	//     "$ref": "GoogleCloudDialogflowV2beta1Agent"
36824	//   },
36825	//   "scopes": [
36826	//     "https://www.googleapis.com/auth/cloud-platform",
36827	//     "https://www.googleapis.com/auth/dialogflow"
36828	//   ]
36829	// }
36830
36831}
36832
36833// method id "dialogflow.projects.locations.agent.export":
36834
36835type ProjectsLocationsAgentExportCall struct {
36836	s                                              *Service
36837	parent                                         string
36838	googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
36839	urlParams_                                     gensupport.URLParams
36840	ctx_                                           context.Context
36841	header_                                        http.Header
36842}
36843
36844// Export: Exports the specified agent to a ZIP file. Operation
36845//
36846// - parent: The project that the agent to export is associated with.
36847//   Format: `projects/` or `projects//locations/`.
36848func (r *ProjectsLocationsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsLocationsAgentExportCall {
36849	c := &ProjectsLocationsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36850	c.parent = parent
36851	c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
36852	return c
36853}
36854
36855// Fields allows partial responses to be retrieved. See
36856// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36857// for more information.
36858func (c *ProjectsLocationsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentExportCall {
36859	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36860	return c
36861}
36862
36863// Context sets the context to be used in this call's Do method. Any
36864// pending HTTP request will be aborted if the provided context is
36865// canceled.
36866func (c *ProjectsLocationsAgentExportCall) Context(ctx context.Context) *ProjectsLocationsAgentExportCall {
36867	c.ctx_ = ctx
36868	return c
36869}
36870
36871// Header returns an http.Header that can be modified by the caller to
36872// add HTTP headers to the request.
36873func (c *ProjectsLocationsAgentExportCall) Header() http.Header {
36874	if c.header_ == nil {
36875		c.header_ = make(http.Header)
36876	}
36877	return c.header_
36878}
36879
36880func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response, error) {
36881	reqHeaders := make(http.Header)
36882	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
36883	for k, v := range c.header_ {
36884		reqHeaders[k] = v
36885	}
36886	reqHeaders.Set("User-Agent", c.s.userAgent())
36887	var body io.Reader = nil
36888	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
36889	if err != nil {
36890		return nil, err
36891	}
36892	reqHeaders.Set("Content-Type", "application/json")
36893	c.urlParams_.Set("alt", alt)
36894	c.urlParams_.Set("prettyPrint", "false")
36895	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
36896	urls += "?" + c.urlParams_.Encode()
36897	req, err := http.NewRequest("POST", urls, body)
36898	if err != nil {
36899		return nil, err
36900	}
36901	req.Header = reqHeaders
36902	googleapi.Expand(req.URL, map[string]string{
36903		"parent": c.parent,
36904	})
36905	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36906}
36907
36908// Do executes the "dialogflow.projects.locations.agent.export" call.
36909// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
36910// Any non-2xx status code is an error. Response headers are in either
36911// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
36912// was returned at all) in error.(*googleapi.Error).Header. Use
36913// googleapi.IsNotModified to check whether the returned error was
36914// because http.StatusNotModified was returned.
36915func (c *ProjectsLocationsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36916	gensupport.SetOptions(c.urlParams_, opts...)
36917	res, err := c.doRequest("json")
36918	if res != nil && res.StatusCode == http.StatusNotModified {
36919		if res.Body != nil {
36920			res.Body.Close()
36921		}
36922		return nil, &googleapi.Error{
36923			Code:   res.StatusCode,
36924			Header: res.Header,
36925		}
36926	}
36927	if err != nil {
36928		return nil, err
36929	}
36930	defer googleapi.CloseBody(res)
36931	if err := googleapi.CheckResponse(res); err != nil {
36932		return nil, err
36933	}
36934	ret := &GoogleLongrunningOperation{
36935		ServerResponse: googleapi.ServerResponse{
36936			Header:         res.Header,
36937			HTTPStatusCode: res.StatusCode,
36938		},
36939	}
36940	target := &ret
36941	if err := gensupport.DecodeResponse(target, res); err != nil {
36942		return nil, err
36943	}
36944	return ret, nil
36945	// {
36946	//   "description": "Exports the specified agent to a ZIP file. Operation ",
36947	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:export",
36948	//   "httpMethod": "POST",
36949	//   "id": "dialogflow.projects.locations.agent.export",
36950	//   "parameterOrder": [
36951	//     "parent"
36952	//   ],
36953	//   "parameters": {
36954	//     "parent": {
36955	//       "description": "Required. The project that the agent to export is associated with. Format: `projects/` or `projects//locations/`.",
36956	//       "location": "path",
36957	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
36958	//       "required": true,
36959	//       "type": "string"
36960	//     }
36961	//   },
36962	//   "path": "v2beta1/{+parent}/agent:export",
36963	//   "request": {
36964	//     "$ref": "GoogleCloudDialogflowV2beta1ExportAgentRequest"
36965	//   },
36966	//   "response": {
36967	//     "$ref": "GoogleLongrunningOperation"
36968	//   },
36969	//   "scopes": [
36970	//     "https://www.googleapis.com/auth/cloud-platform",
36971	//     "https://www.googleapis.com/auth/dialogflow"
36972	//   ]
36973	// }
36974
36975}
36976
36977// method id "dialogflow.projects.locations.agent.getFulfillment":
36978
36979type ProjectsLocationsAgentGetFulfillmentCall struct {
36980	s            *Service
36981	name         string
36982	urlParams_   gensupport.URLParams
36983	ifNoneMatch_ string
36984	ctx_         context.Context
36985	header_      http.Header
36986}
36987
36988// GetFulfillment: Retrieves the fulfillment.
36989//
36990// - name: The name of the fulfillment. Supported formats: -
36991//   `projects//agent/fulfillment` -
36992//   `projects//locations//agent/fulfillment`.
36993func (r *ProjectsLocationsAgentService) GetFulfillment(name string) *ProjectsLocationsAgentGetFulfillmentCall {
36994	c := &ProjectsLocationsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36995	c.name = name
36996	return c
36997}
36998
36999// Fields allows partial responses to be retrieved. See
37000// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37001// for more information.
37002func (c *ProjectsLocationsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetFulfillmentCall {
37003	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37004	return c
37005}
37006
37007// IfNoneMatch sets the optional parameter which makes the operation
37008// fail if the object's ETag matches the given value. This is useful for
37009// getting updates only after the object has changed since the last
37010// request. Use googleapi.IsNotModified to check whether the response
37011// error from Do is the result of In-None-Match.
37012func (c *ProjectsLocationsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetFulfillmentCall {
37013	c.ifNoneMatch_ = entityTag
37014	return c
37015}
37016
37017// Context sets the context to be used in this call's Do method. Any
37018// pending HTTP request will be aborted if the provided context is
37019// canceled.
37020func (c *ProjectsLocationsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentGetFulfillmentCall {
37021	c.ctx_ = ctx
37022	return c
37023}
37024
37025// Header returns an http.Header that can be modified by the caller to
37026// add HTTP headers to the request.
37027func (c *ProjectsLocationsAgentGetFulfillmentCall) Header() http.Header {
37028	if c.header_ == nil {
37029		c.header_ = make(http.Header)
37030	}
37031	return c.header_
37032}
37033
37034func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
37035	reqHeaders := make(http.Header)
37036	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
37037	for k, v := range c.header_ {
37038		reqHeaders[k] = v
37039	}
37040	reqHeaders.Set("User-Agent", c.s.userAgent())
37041	if c.ifNoneMatch_ != "" {
37042		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37043	}
37044	var body io.Reader = nil
37045	c.urlParams_.Set("alt", alt)
37046	c.urlParams_.Set("prettyPrint", "false")
37047	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
37048	urls += "?" + c.urlParams_.Encode()
37049	req, err := http.NewRequest("GET", urls, body)
37050	if err != nil {
37051		return nil, err
37052	}
37053	req.Header = reqHeaders
37054	googleapi.Expand(req.URL, map[string]string{
37055		"name": c.name,
37056	})
37057	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37058}
37059
37060// Do executes the "dialogflow.projects.locations.agent.getFulfillment" call.
37061// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
37062// be non-nil. Any non-2xx status code is an error. Response headers are
37063// in either
37064// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
37065// a response was returned at all) in error.(*googleapi.Error).Header.
37066// Use googleapi.IsNotModified to check whether the returned error was
37067// because http.StatusNotModified was returned.
37068func (c *ProjectsLocationsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
37069	gensupport.SetOptions(c.urlParams_, opts...)
37070	res, err := c.doRequest("json")
37071	if res != nil && res.StatusCode == http.StatusNotModified {
37072		if res.Body != nil {
37073			res.Body.Close()
37074		}
37075		return nil, &googleapi.Error{
37076			Code:   res.StatusCode,
37077			Header: res.Header,
37078		}
37079	}
37080	if err != nil {
37081		return nil, err
37082	}
37083	defer googleapi.CloseBody(res)
37084	if err := googleapi.CheckResponse(res); err != nil {
37085		return nil, err
37086	}
37087	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
37088		ServerResponse: googleapi.ServerResponse{
37089			Header:         res.Header,
37090			HTTPStatusCode: res.StatusCode,
37091		},
37092	}
37093	target := &ret
37094	if err := gensupport.DecodeResponse(target, res); err != nil {
37095		return nil, err
37096	}
37097	return ret, nil
37098	// {
37099	//   "description": "Retrieves the fulfillment.",
37100	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/fulfillment",
37101	//   "httpMethod": "GET",
37102	//   "id": "dialogflow.projects.locations.agent.getFulfillment",
37103	//   "parameterOrder": [
37104	//     "name"
37105	//   ],
37106	//   "parameters": {
37107	//     "name": {
37108	//       "description": "Required. The name of the fulfillment. Supported formats: - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`",
37109	//       "location": "path",
37110	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/fulfillment$",
37111	//       "required": true,
37112	//       "type": "string"
37113	//     }
37114	//   },
37115	//   "path": "v2beta1/{+name}",
37116	//   "response": {
37117	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
37118	//   },
37119	//   "scopes": [
37120	//     "https://www.googleapis.com/auth/cloud-platform",
37121	//     "https://www.googleapis.com/auth/dialogflow"
37122	//   ]
37123	// }
37124
37125}
37126
37127// method id "dialogflow.projects.locations.agent.getValidationResult":
37128
37129type ProjectsLocationsAgentGetValidationResultCall struct {
37130	s            *Service
37131	parent       string
37132	urlParams_   gensupport.URLParams
37133	ifNoneMatch_ string
37134	ctx_         context.Context
37135	header_      http.Header
37136}
37137
37138// GetValidationResult: Gets agent validation result. Agent validation
37139// is performed during training time and is updated automatically when
37140// training is completed.
37141//
37142// - parent: The project that the agent is associated with. Format:
37143//   `projects/` or `projects//locations/`.
37144func (r *ProjectsLocationsAgentService) GetValidationResult(parent string) *ProjectsLocationsAgentGetValidationResultCall {
37145	c := &ProjectsLocationsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37146	c.parent = parent
37147	return c
37148}
37149
37150// LanguageCode sets the optional parameter "languageCode": The language
37151// for which you want a validation result. If not specified, the agent's
37152// default language is used. Many languages
37153// (https://cloud.google.com/dialogflow/docs/reference/language) are
37154// supported. Note: languages must be enabled in the agent before they
37155// can be used.
37156func (c *ProjectsLocationsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentGetValidationResultCall {
37157	c.urlParams_.Set("languageCode", languageCode)
37158	return c
37159}
37160
37161// Fields allows partial responses to be retrieved. See
37162// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37163// for more information.
37164func (c *ProjectsLocationsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetValidationResultCall {
37165	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37166	return c
37167}
37168
37169// IfNoneMatch sets the optional parameter which makes the operation
37170// fail if the object's ETag matches the given value. This is useful for
37171// getting updates only after the object has changed since the last
37172// request. Use googleapi.IsNotModified to check whether the response
37173// error from Do is the result of In-None-Match.
37174func (c *ProjectsLocationsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetValidationResultCall {
37175	c.ifNoneMatch_ = entityTag
37176	return c
37177}
37178
37179// Context sets the context to be used in this call's Do method. Any
37180// pending HTTP request will be aborted if the provided context is
37181// canceled.
37182func (c *ProjectsLocationsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentGetValidationResultCall {
37183	c.ctx_ = ctx
37184	return c
37185}
37186
37187// Header returns an http.Header that can be modified by the caller to
37188// add HTTP headers to the request.
37189func (c *ProjectsLocationsAgentGetValidationResultCall) Header() http.Header {
37190	if c.header_ == nil {
37191		c.header_ = make(http.Header)
37192	}
37193	return c.header_
37194}
37195
37196func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
37197	reqHeaders := make(http.Header)
37198	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
37199	for k, v := range c.header_ {
37200		reqHeaders[k] = v
37201	}
37202	reqHeaders.Set("User-Agent", c.s.userAgent())
37203	if c.ifNoneMatch_ != "" {
37204		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37205	}
37206	var body io.Reader = nil
37207	c.urlParams_.Set("alt", alt)
37208	c.urlParams_.Set("prettyPrint", "false")
37209	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
37210	urls += "?" + c.urlParams_.Encode()
37211	req, err := http.NewRequest("GET", urls, body)
37212	if err != nil {
37213		return nil, err
37214	}
37215	req.Header = reqHeaders
37216	googleapi.Expand(req.URL, map[string]string{
37217		"parent": c.parent,
37218	})
37219	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37220}
37221
37222// Do executes the "dialogflow.projects.locations.agent.getValidationResult" call.
37223// Exactly one of *GoogleCloudDialogflowV2beta1ValidationResult or error
37224// will be non-nil. Any non-2xx status code is an error. Response
37225// headers are in either
37226// *GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header
37227// or (if a response was returned at all) in
37228// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37229// whether the returned error was because http.StatusNotModified was
37230// returned.
37231func (c *ProjectsLocationsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
37232	gensupport.SetOptions(c.urlParams_, opts...)
37233	res, err := c.doRequest("json")
37234	if res != nil && res.StatusCode == http.StatusNotModified {
37235		if res.Body != nil {
37236			res.Body.Close()
37237		}
37238		return nil, &googleapi.Error{
37239			Code:   res.StatusCode,
37240			Header: res.Header,
37241		}
37242	}
37243	if err != nil {
37244		return nil, err
37245	}
37246	defer googleapi.CloseBody(res)
37247	if err := googleapi.CheckResponse(res); err != nil {
37248		return nil, err
37249	}
37250	ret := &GoogleCloudDialogflowV2beta1ValidationResult{
37251		ServerResponse: googleapi.ServerResponse{
37252			Header:         res.Header,
37253			HTTPStatusCode: res.StatusCode,
37254		},
37255	}
37256	target := &ret
37257	if err := gensupport.DecodeResponse(target, res); err != nil {
37258		return nil, err
37259	}
37260	return ret, nil
37261	// {
37262	//   "description": "Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.",
37263	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/validationResult",
37264	//   "httpMethod": "GET",
37265	//   "id": "dialogflow.projects.locations.agent.getValidationResult",
37266	//   "parameterOrder": [
37267	//     "parent"
37268	//   ],
37269	//   "parameters": {
37270	//     "languageCode": {
37271	//       "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.",
37272	//       "location": "query",
37273	//       "type": "string"
37274	//     },
37275	//     "parent": {
37276	//       "description": "Required. The project that the agent is associated with. Format: `projects/` or `projects//locations/`.",
37277	//       "location": "path",
37278	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37279	//       "required": true,
37280	//       "type": "string"
37281	//     }
37282	//   },
37283	//   "path": "v2beta1/{+parent}/agent/validationResult",
37284	//   "response": {
37285	//     "$ref": "GoogleCloudDialogflowV2beta1ValidationResult"
37286	//   },
37287	//   "scopes": [
37288	//     "https://www.googleapis.com/auth/cloud-platform",
37289	//     "https://www.googleapis.com/auth/dialogflow"
37290	//   ]
37291	// }
37292
37293}
37294
37295// method id "dialogflow.projects.locations.agent.import":
37296
37297type ProjectsLocationsAgentImportCall struct {
37298	s                                              *Service
37299	parent                                         string
37300	googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
37301	urlParams_                                     gensupport.URLParams
37302	ctx_                                           context.Context
37303	header_                                        http.Header
37304}
37305
37306// Import: Imports the specified agent from a ZIP file. Uploads new
37307// intents and entity types without deleting the existing ones. Intents
37308// and entity types with the same name are replaced with the new
37309// versions from ImportAgentRequest. After the import, the imported
37310// draft agent will be trained automatically (unless disabled in agent
37311// settings). However, once the import is done, training may not be
37312// completed yet. Please call TrainAgent and wait for the operation it
37313// returns in order to train explicitly. Operation An operation which
37314// tracks when importing is complete. It only tracks when the draft
37315// agent is updated not when it is done training.
37316//
37317// - parent: The project that the agent to import is associated with.
37318//   Format: `projects/` or `projects//locations/`.
37319func (r *ProjectsLocationsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsLocationsAgentImportCall {
37320	c := &ProjectsLocationsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37321	c.parent = parent
37322	c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
37323	return c
37324}
37325
37326// Fields allows partial responses to be retrieved. See
37327// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37328// for more information.
37329func (c *ProjectsLocationsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentImportCall {
37330	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37331	return c
37332}
37333
37334// Context sets the context to be used in this call's Do method. Any
37335// pending HTTP request will be aborted if the provided context is
37336// canceled.
37337func (c *ProjectsLocationsAgentImportCall) Context(ctx context.Context) *ProjectsLocationsAgentImportCall {
37338	c.ctx_ = ctx
37339	return c
37340}
37341
37342// Header returns an http.Header that can be modified by the caller to
37343// add HTTP headers to the request.
37344func (c *ProjectsLocationsAgentImportCall) Header() http.Header {
37345	if c.header_ == nil {
37346		c.header_ = make(http.Header)
37347	}
37348	return c.header_
37349}
37350
37351func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response, error) {
37352	reqHeaders := make(http.Header)
37353	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
37354	for k, v := range c.header_ {
37355		reqHeaders[k] = v
37356	}
37357	reqHeaders.Set("User-Agent", c.s.userAgent())
37358	var body io.Reader = nil
37359	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
37360	if err != nil {
37361		return nil, err
37362	}
37363	reqHeaders.Set("Content-Type", "application/json")
37364	c.urlParams_.Set("alt", alt)
37365	c.urlParams_.Set("prettyPrint", "false")
37366	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
37367	urls += "?" + c.urlParams_.Encode()
37368	req, err := http.NewRequest("POST", urls, body)
37369	if err != nil {
37370		return nil, err
37371	}
37372	req.Header = reqHeaders
37373	googleapi.Expand(req.URL, map[string]string{
37374		"parent": c.parent,
37375	})
37376	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37377}
37378
37379// Do executes the "dialogflow.projects.locations.agent.import" call.
37380// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37381// Any non-2xx status code is an error. Response headers are in either
37382// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37383// was returned at all) in error.(*googleapi.Error).Header. Use
37384// googleapi.IsNotModified to check whether the returned error was
37385// because http.StatusNotModified was returned.
37386func (c *ProjectsLocationsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37387	gensupport.SetOptions(c.urlParams_, opts...)
37388	res, err := c.doRequest("json")
37389	if res != nil && res.StatusCode == http.StatusNotModified {
37390		if res.Body != nil {
37391			res.Body.Close()
37392		}
37393		return nil, &googleapi.Error{
37394			Code:   res.StatusCode,
37395			Header: res.Header,
37396		}
37397	}
37398	if err != nil {
37399		return nil, err
37400	}
37401	defer googleapi.CloseBody(res)
37402	if err := googleapi.CheckResponse(res); err != nil {
37403		return nil, err
37404	}
37405	ret := &GoogleLongrunningOperation{
37406		ServerResponse: googleapi.ServerResponse{
37407			Header:         res.Header,
37408			HTTPStatusCode: res.StatusCode,
37409		},
37410	}
37411	target := &ret
37412	if err := gensupport.DecodeResponse(target, res); err != nil {
37413		return nil, err
37414	}
37415	return ret, nil
37416	// {
37417	//   "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. Operation An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.",
37418	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:import",
37419	//   "httpMethod": "POST",
37420	//   "id": "dialogflow.projects.locations.agent.import",
37421	//   "parameterOrder": [
37422	//     "parent"
37423	//   ],
37424	//   "parameters": {
37425	//     "parent": {
37426	//       "description": "Required. The project that the agent to import is associated with. Format: `projects/` or `projects//locations/`.",
37427	//       "location": "path",
37428	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37429	//       "required": true,
37430	//       "type": "string"
37431	//     }
37432	//   },
37433	//   "path": "v2beta1/{+parent}/agent:import",
37434	//   "request": {
37435	//     "$ref": "GoogleCloudDialogflowV2beta1ImportAgentRequest"
37436	//   },
37437	//   "response": {
37438	//     "$ref": "GoogleLongrunningOperation"
37439	//   },
37440	//   "scopes": [
37441	//     "https://www.googleapis.com/auth/cloud-platform",
37442	//     "https://www.googleapis.com/auth/dialogflow"
37443	//   ]
37444	// }
37445
37446}
37447
37448// method id "dialogflow.projects.locations.agent.restore":
37449
37450type ProjectsLocationsAgentRestoreCall struct {
37451	s                                               *Service
37452	parent                                          string
37453	googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
37454	urlParams_                                      gensupport.URLParams
37455	ctx_                                            context.Context
37456	header_                                         http.Header
37457}
37458
37459// Restore: Restores the specified agent from a ZIP file. Replaces the
37460// current agent version with a new one. All the intents and entity
37461// types in the older version are deleted. After the restore, the
37462// restored draft agent will be trained automatically (unless disabled
37463// in agent settings). However, once the restore is done, training may
37464// not be completed yet. Please call TrainAgent and wait for the
37465// operation it returns in order to train explicitly. Operation An
37466// operation which tracks when restoring is complete. It only tracks
37467// when the draft agent is updated not when it is done training.
37468//
37469// - parent: The project that the agent to restore is associated with.
37470//   Format: `projects/` or `projects//locations/`.
37471func (r *ProjectsLocationsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsLocationsAgentRestoreCall {
37472	c := &ProjectsLocationsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37473	c.parent = parent
37474	c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
37475	return c
37476}
37477
37478// Fields allows partial responses to be retrieved. See
37479// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37480// for more information.
37481func (c *ProjectsLocationsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentRestoreCall {
37482	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37483	return c
37484}
37485
37486// Context sets the context to be used in this call's Do method. Any
37487// pending HTTP request will be aborted if the provided context is
37488// canceled.
37489func (c *ProjectsLocationsAgentRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentRestoreCall {
37490	c.ctx_ = ctx
37491	return c
37492}
37493
37494// Header returns an http.Header that can be modified by the caller to
37495// add HTTP headers to the request.
37496func (c *ProjectsLocationsAgentRestoreCall) Header() http.Header {
37497	if c.header_ == nil {
37498		c.header_ = make(http.Header)
37499	}
37500	return c.header_
37501}
37502
37503func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
37504	reqHeaders := make(http.Header)
37505	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
37506	for k, v := range c.header_ {
37507		reqHeaders[k] = v
37508	}
37509	reqHeaders.Set("User-Agent", c.s.userAgent())
37510	var body io.Reader = nil
37511	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
37512	if err != nil {
37513		return nil, err
37514	}
37515	reqHeaders.Set("Content-Type", "application/json")
37516	c.urlParams_.Set("alt", alt)
37517	c.urlParams_.Set("prettyPrint", "false")
37518	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
37519	urls += "?" + c.urlParams_.Encode()
37520	req, err := http.NewRequest("POST", urls, body)
37521	if err != nil {
37522		return nil, err
37523	}
37524	req.Header = reqHeaders
37525	googleapi.Expand(req.URL, map[string]string{
37526		"parent": c.parent,
37527	})
37528	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37529}
37530
37531// Do executes the "dialogflow.projects.locations.agent.restore" call.
37532// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37533// Any non-2xx status code is an error. Response headers are in either
37534// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37535// was returned at all) in error.(*googleapi.Error).Header. Use
37536// googleapi.IsNotModified to check whether the returned error was
37537// because http.StatusNotModified was returned.
37538func (c *ProjectsLocationsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37539	gensupport.SetOptions(c.urlParams_, opts...)
37540	res, err := c.doRequest("json")
37541	if res != nil && res.StatusCode == http.StatusNotModified {
37542		if res.Body != nil {
37543			res.Body.Close()
37544		}
37545		return nil, &googleapi.Error{
37546			Code:   res.StatusCode,
37547			Header: res.Header,
37548		}
37549	}
37550	if err != nil {
37551		return nil, err
37552	}
37553	defer googleapi.CloseBody(res)
37554	if err := googleapi.CheckResponse(res); err != nil {
37555		return nil, err
37556	}
37557	ret := &GoogleLongrunningOperation{
37558		ServerResponse: googleapi.ServerResponse{
37559			Header:         res.Header,
37560			HTTPStatusCode: res.StatusCode,
37561		},
37562	}
37563	target := &ret
37564	if err := gensupport.DecodeResponse(target, res); err != nil {
37565		return nil, err
37566	}
37567	return ret, nil
37568	// {
37569	//   "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. Operation An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.",
37570	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:restore",
37571	//   "httpMethod": "POST",
37572	//   "id": "dialogflow.projects.locations.agent.restore",
37573	//   "parameterOrder": [
37574	//     "parent"
37575	//   ],
37576	//   "parameters": {
37577	//     "parent": {
37578	//       "description": "Required. The project that the agent to restore is associated with. Format: `projects/` or `projects//locations/`.",
37579	//       "location": "path",
37580	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37581	//       "required": true,
37582	//       "type": "string"
37583	//     }
37584	//   },
37585	//   "path": "v2beta1/{+parent}/agent:restore",
37586	//   "request": {
37587	//     "$ref": "GoogleCloudDialogflowV2beta1RestoreAgentRequest"
37588	//   },
37589	//   "response": {
37590	//     "$ref": "GoogleLongrunningOperation"
37591	//   },
37592	//   "scopes": [
37593	//     "https://www.googleapis.com/auth/cloud-platform",
37594	//     "https://www.googleapis.com/auth/dialogflow"
37595	//   ]
37596	// }
37597
37598}
37599
37600// method id "dialogflow.projects.locations.agent.search":
37601
37602type ProjectsLocationsAgentSearchCall struct {
37603	s            *Service
37604	parent       string
37605	urlParams_   gensupport.URLParams
37606	ifNoneMatch_ string
37607	ctx_         context.Context
37608	header_      http.Header
37609}
37610
37611// Search: Returns the list of agents. Since there is at most one
37612// conversational agent per project, this method is useful primarily for
37613// listing all agents across projects the caller has access to. One can
37614// achieve that with a wildcard project collection id "-". Refer to List
37615// Sub-Collections
37616// (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
37617//
37618// - parent: The project to list agents from. Format: `projects/` or
37619//   `projects//locations/`.
37620func (r *ProjectsLocationsAgentService) Search(parent string) *ProjectsLocationsAgentSearchCall {
37621	c := &ProjectsLocationsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37622	c.parent = parent
37623	return c
37624}
37625
37626// PageSize sets the optional parameter "pageSize": The maximum number
37627// of items to return in a single page. By default 100 and at most 1000.
37628func (c *ProjectsLocationsAgentSearchCall) PageSize(pageSize int64) *ProjectsLocationsAgentSearchCall {
37629	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37630	return c
37631}
37632
37633// PageToken sets the optional parameter "pageToken": The
37634// next_page_token value returned from a previous list request.
37635func (c *ProjectsLocationsAgentSearchCall) PageToken(pageToken string) *ProjectsLocationsAgentSearchCall {
37636	c.urlParams_.Set("pageToken", pageToken)
37637	return c
37638}
37639
37640// Fields allows partial responses to be retrieved. See
37641// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37642// for more information.
37643func (c *ProjectsLocationsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSearchCall {
37644	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37645	return c
37646}
37647
37648// IfNoneMatch sets the optional parameter which makes the operation
37649// fail if the object's ETag matches the given value. This is useful for
37650// getting updates only after the object has changed since the last
37651// request. Use googleapi.IsNotModified to check whether the response
37652// error from Do is the result of In-None-Match.
37653func (c *ProjectsLocationsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSearchCall {
37654	c.ifNoneMatch_ = entityTag
37655	return c
37656}
37657
37658// Context sets the context to be used in this call's Do method. Any
37659// pending HTTP request will be aborted if the provided context is
37660// canceled.
37661func (c *ProjectsLocationsAgentSearchCall) Context(ctx context.Context) *ProjectsLocationsAgentSearchCall {
37662	c.ctx_ = ctx
37663	return c
37664}
37665
37666// Header returns an http.Header that can be modified by the caller to
37667// add HTTP headers to the request.
37668func (c *ProjectsLocationsAgentSearchCall) Header() http.Header {
37669	if c.header_ == nil {
37670		c.header_ = make(http.Header)
37671	}
37672	return c.header_
37673}
37674
37675func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
37676	reqHeaders := make(http.Header)
37677	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
37678	for k, v := range c.header_ {
37679		reqHeaders[k] = v
37680	}
37681	reqHeaders.Set("User-Agent", c.s.userAgent())
37682	if c.ifNoneMatch_ != "" {
37683		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37684	}
37685	var body io.Reader = nil
37686	c.urlParams_.Set("alt", alt)
37687	c.urlParams_.Set("prettyPrint", "false")
37688	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
37689	urls += "?" + c.urlParams_.Encode()
37690	req, err := http.NewRequest("GET", urls, body)
37691	if err != nil {
37692		return nil, err
37693	}
37694	req.Header = reqHeaders
37695	googleapi.Expand(req.URL, map[string]string{
37696		"parent": c.parent,
37697	})
37698	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37699}
37700
37701// Do executes the "dialogflow.projects.locations.agent.search" call.
37702// Exactly one of *GoogleCloudDialogflowV2beta1SearchAgentsResponse or
37703// error will be non-nil. Any non-2xx status code is an error. Response
37704// headers are in either
37705// *GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Heade
37706// r or (if a response was returned at all) in
37707// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37708// whether the returned error was because http.StatusNotModified was
37709// returned.
37710func (c *ProjectsLocationsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
37711	gensupport.SetOptions(c.urlParams_, opts...)
37712	res, err := c.doRequest("json")
37713	if res != nil && res.StatusCode == http.StatusNotModified {
37714		if res.Body != nil {
37715			res.Body.Close()
37716		}
37717		return nil, &googleapi.Error{
37718			Code:   res.StatusCode,
37719			Header: res.Header,
37720		}
37721	}
37722	if err != nil {
37723		return nil, err
37724	}
37725	defer googleapi.CloseBody(res)
37726	if err := googleapi.CheckResponse(res); err != nil {
37727		return nil, err
37728	}
37729	ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
37730		ServerResponse: googleapi.ServerResponse{
37731			Header:         res.Header,
37732			HTTPStatusCode: res.StatusCode,
37733		},
37734	}
37735	target := &ret
37736	if err := gensupport.DecodeResponse(target, res); err != nil {
37737		return nil, err
37738	}
37739	return ret, nil
37740	// {
37741	//   "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).",
37742	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:search",
37743	//   "httpMethod": "GET",
37744	//   "id": "dialogflow.projects.locations.agent.search",
37745	//   "parameterOrder": [
37746	//     "parent"
37747	//   ],
37748	//   "parameters": {
37749	//     "pageSize": {
37750	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
37751	//       "format": "int32",
37752	//       "location": "query",
37753	//       "type": "integer"
37754	//     },
37755	//     "pageToken": {
37756	//       "description": "Optional. The next_page_token value returned from a previous list request.",
37757	//       "location": "query",
37758	//       "type": "string"
37759	//     },
37760	//     "parent": {
37761	//       "description": "Required. The project to list agents from. Format: `projects/` or `projects//locations/`.",
37762	//       "location": "path",
37763	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37764	//       "required": true,
37765	//       "type": "string"
37766	//     }
37767	//   },
37768	//   "path": "v2beta1/{+parent}/agent:search",
37769	//   "response": {
37770	//     "$ref": "GoogleCloudDialogflowV2beta1SearchAgentsResponse"
37771	//   },
37772	//   "scopes": [
37773	//     "https://www.googleapis.com/auth/cloud-platform",
37774	//     "https://www.googleapis.com/auth/dialogflow"
37775	//   ]
37776	// }
37777
37778}
37779
37780// Pages invokes f for each page of results.
37781// A non-nil error returned from f will halt the iteration.
37782// The provided context supersedes any context provided to the Context method.
37783func (c *ProjectsLocationsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
37784	c.ctx_ = ctx
37785	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
37786	for {
37787		x, err := c.Do()
37788		if err != nil {
37789			return err
37790		}
37791		if err := f(x); err != nil {
37792			return err
37793		}
37794		if x.NextPageToken == "" {
37795			return nil
37796		}
37797		c.PageToken(x.NextPageToken)
37798	}
37799}
37800
37801// method id "dialogflow.projects.locations.agent.train":
37802
37803type ProjectsLocationsAgentTrainCall struct {
37804	s                                             *Service
37805	parent                                        string
37806	googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
37807	urlParams_                                    gensupport.URLParams
37808	ctx_                                          context.Context
37809	header_                                       http.Header
37810}
37811
37812// Train: Trains the specified agent. Operation
37813//
37814// - parent: The project that the agent to train is associated with.
37815//   Format: `projects/` or `projects//locations/`.
37816func (r *ProjectsLocationsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsLocationsAgentTrainCall {
37817	c := &ProjectsLocationsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37818	c.parent = parent
37819	c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
37820	return c
37821}
37822
37823// Fields allows partial responses to be retrieved. See
37824// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37825// for more information.
37826func (c *ProjectsLocationsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentTrainCall {
37827	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37828	return c
37829}
37830
37831// Context sets the context to be used in this call's Do method. Any
37832// pending HTTP request will be aborted if the provided context is
37833// canceled.
37834func (c *ProjectsLocationsAgentTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentTrainCall {
37835	c.ctx_ = ctx
37836	return c
37837}
37838
37839// Header returns an http.Header that can be modified by the caller to
37840// add HTTP headers to the request.
37841func (c *ProjectsLocationsAgentTrainCall) Header() http.Header {
37842	if c.header_ == nil {
37843		c.header_ = make(http.Header)
37844	}
37845	return c.header_
37846}
37847
37848func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
37849	reqHeaders := make(http.Header)
37850	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
37851	for k, v := range c.header_ {
37852		reqHeaders[k] = v
37853	}
37854	reqHeaders.Set("User-Agent", c.s.userAgent())
37855	var body io.Reader = nil
37856	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
37857	if err != nil {
37858		return nil, err
37859	}
37860	reqHeaders.Set("Content-Type", "application/json")
37861	c.urlParams_.Set("alt", alt)
37862	c.urlParams_.Set("prettyPrint", "false")
37863	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
37864	urls += "?" + c.urlParams_.Encode()
37865	req, err := http.NewRequest("POST", urls, body)
37866	if err != nil {
37867		return nil, err
37868	}
37869	req.Header = reqHeaders
37870	googleapi.Expand(req.URL, map[string]string{
37871		"parent": c.parent,
37872	})
37873	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37874}
37875
37876// Do executes the "dialogflow.projects.locations.agent.train" call.
37877// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37878// Any non-2xx status code is an error. Response headers are in either
37879// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37880// was returned at all) in error.(*googleapi.Error).Header. Use
37881// googleapi.IsNotModified to check whether the returned error was
37882// because http.StatusNotModified was returned.
37883func (c *ProjectsLocationsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37884	gensupport.SetOptions(c.urlParams_, opts...)
37885	res, err := c.doRequest("json")
37886	if res != nil && res.StatusCode == http.StatusNotModified {
37887		if res.Body != nil {
37888			res.Body.Close()
37889		}
37890		return nil, &googleapi.Error{
37891			Code:   res.StatusCode,
37892			Header: res.Header,
37893		}
37894	}
37895	if err != nil {
37896		return nil, err
37897	}
37898	defer googleapi.CloseBody(res)
37899	if err := googleapi.CheckResponse(res); err != nil {
37900		return nil, err
37901	}
37902	ret := &GoogleLongrunningOperation{
37903		ServerResponse: googleapi.ServerResponse{
37904			Header:         res.Header,
37905			HTTPStatusCode: res.StatusCode,
37906		},
37907	}
37908	target := &ret
37909	if err := gensupport.DecodeResponse(target, res); err != nil {
37910		return nil, err
37911	}
37912	return ret, nil
37913	// {
37914	//   "description": "Trains the specified agent. Operation ",
37915	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent:train",
37916	//   "httpMethod": "POST",
37917	//   "id": "dialogflow.projects.locations.agent.train",
37918	//   "parameterOrder": [
37919	//     "parent"
37920	//   ],
37921	//   "parameters": {
37922	//     "parent": {
37923	//       "description": "Required. The project that the agent to train is associated with. Format: `projects/` or `projects//locations/`.",
37924	//       "location": "path",
37925	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
37926	//       "required": true,
37927	//       "type": "string"
37928	//     }
37929	//   },
37930	//   "path": "v2beta1/{+parent}/agent:train",
37931	//   "request": {
37932	//     "$ref": "GoogleCloudDialogflowV2beta1TrainAgentRequest"
37933	//   },
37934	//   "response": {
37935	//     "$ref": "GoogleLongrunningOperation"
37936	//   },
37937	//   "scopes": [
37938	//     "https://www.googleapis.com/auth/cloud-platform",
37939	//     "https://www.googleapis.com/auth/dialogflow"
37940	//   ]
37941	// }
37942
37943}
37944
37945// method id "dialogflow.projects.locations.agent.updateFulfillment":
37946
37947type ProjectsLocationsAgentUpdateFulfillmentCall struct {
37948	s                                       *Service
37949	nameid                                  string
37950	googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
37951	urlParams_                              gensupport.URLParams
37952	ctx_                                    context.Context
37953	header_                                 http.Header
37954}
37955
37956// UpdateFulfillment: Updates the fulfillment.
37957//
37958// - name: The unique identifier of the fulfillment. Supported formats:
37959//   - `projects//agent/fulfillment` -
37960//   `projects//locations//agent/fulfillment` This field is not used for
37961//   Fulfillment in an Environment.
37962func (r *ProjectsLocationsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsLocationsAgentUpdateFulfillmentCall {
37963	c := &ProjectsLocationsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37964	c.nameid = nameid
37965	c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
37966	return c
37967}
37968
37969// UpdateMask sets the optional parameter "updateMask": Required. The
37970// mask to control which fields get updated. If the mask is not present,
37971// all fields will be updated.
37972func (c *ProjectsLocationsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsLocationsAgentUpdateFulfillmentCall {
37973	c.urlParams_.Set("updateMask", updateMask)
37974	return c
37975}
37976
37977// Fields allows partial responses to be retrieved. See
37978// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37979// for more information.
37980func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentUpdateFulfillmentCall {
37981	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37982	return c
37983}
37984
37985// Context sets the context to be used in this call's Do method. Any
37986// pending HTTP request will be aborted if the provided context is
37987// canceled.
37988func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentUpdateFulfillmentCall {
37989	c.ctx_ = ctx
37990	return c
37991}
37992
37993// Header returns an http.Header that can be modified by the caller to
37994// add HTTP headers to the request.
37995func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Header() http.Header {
37996	if c.header_ == nil {
37997		c.header_ = make(http.Header)
37998	}
37999	return c.header_
38000}
38001
38002func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
38003	reqHeaders := make(http.Header)
38004	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
38005	for k, v := range c.header_ {
38006		reqHeaders[k] = v
38007	}
38008	reqHeaders.Set("User-Agent", c.s.userAgent())
38009	var body io.Reader = nil
38010	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
38011	if err != nil {
38012		return nil, err
38013	}
38014	reqHeaders.Set("Content-Type", "application/json")
38015	c.urlParams_.Set("alt", alt)
38016	c.urlParams_.Set("prettyPrint", "false")
38017	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38018	urls += "?" + c.urlParams_.Encode()
38019	req, err := http.NewRequest("PATCH", urls, body)
38020	if err != nil {
38021		return nil, err
38022	}
38023	req.Header = reqHeaders
38024	googleapi.Expand(req.URL, map[string]string{
38025		"name": c.nameid,
38026	})
38027	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38028}
38029
38030// Do executes the "dialogflow.projects.locations.agent.updateFulfillment" call.
38031// Exactly one of *GoogleCloudDialogflowV2beta1Fulfillment or error will
38032// be non-nil. Any non-2xx status code is an error. Response headers are
38033// in either
38034// *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if
38035// a response was returned at all) in error.(*googleapi.Error).Header.
38036// Use googleapi.IsNotModified to check whether the returned error was
38037// because http.StatusNotModified was returned.
38038func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
38039	gensupport.SetOptions(c.urlParams_, opts...)
38040	res, err := c.doRequest("json")
38041	if res != nil && res.StatusCode == http.StatusNotModified {
38042		if res.Body != nil {
38043			res.Body.Close()
38044		}
38045		return nil, &googleapi.Error{
38046			Code:   res.StatusCode,
38047			Header: res.Header,
38048		}
38049	}
38050	if err != nil {
38051		return nil, err
38052	}
38053	defer googleapi.CloseBody(res)
38054	if err := googleapi.CheckResponse(res); err != nil {
38055		return nil, err
38056	}
38057	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
38058		ServerResponse: googleapi.ServerResponse{
38059			Header:         res.Header,
38060			HTTPStatusCode: res.StatusCode,
38061		},
38062	}
38063	target := &ret
38064	if err := gensupport.DecodeResponse(target, res); err != nil {
38065		return nil, err
38066	}
38067	return ret, nil
38068	// {
38069	//   "description": "Updates the fulfillment.",
38070	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/fulfillment",
38071	//   "httpMethod": "PATCH",
38072	//   "id": "dialogflow.projects.locations.agent.updateFulfillment",
38073	//   "parameterOrder": [
38074	//     "name"
38075	//   ],
38076	//   "parameters": {
38077	//     "name": {
38078	//       "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.",
38079	//       "location": "path",
38080	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/fulfillment$",
38081	//       "required": true,
38082	//       "type": "string"
38083	//     },
38084	//     "updateMask": {
38085	//       "description": "Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
38086	//       "format": "google-fieldmask",
38087	//       "location": "query",
38088	//       "type": "string"
38089	//     }
38090	//   },
38091	//   "path": "v2beta1/{+name}",
38092	//   "request": {
38093	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
38094	//   },
38095	//   "response": {
38096	//     "$ref": "GoogleCloudDialogflowV2beta1Fulfillment"
38097	//   },
38098	//   "scopes": [
38099	//     "https://www.googleapis.com/auth/cloud-platform",
38100	//     "https://www.googleapis.com/auth/dialogflow"
38101	//   ]
38102	// }
38103
38104}
38105
38106// method id "dialogflow.projects.locations.agent.entityTypes.batchDelete":
38107
38108type ProjectsLocationsAgentEntityTypesBatchDeleteCall struct {
38109	s                                                         *Service
38110	parent                                                    string
38111	googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
38112	urlParams_                                                gensupport.URLParams
38113	ctx_                                                      context.Context
38114	header_                                                   http.Header
38115}
38116
38117// BatchDelete: Deletes entity types in the specified agent. Operation
38118//
38119// - parent: The name of the agent to delete all entities types for.
38120//   Supported formats: - `projects//agent`, -
38121//   `projects//locations//agent`.
38122func (r *ProjectsLocationsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
38123	c := &ProjectsLocationsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38124	c.parent = parent
38125	c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
38126	return c
38127}
38128
38129// Fields allows partial responses to be retrieved. See
38130// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38131// for more information.
38132func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
38133	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38134	return c
38135}
38136
38137// Context sets the context to be used in this call's Do method. Any
38138// pending HTTP request will be aborted if the provided context is
38139// canceled.
38140func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
38141	c.ctx_ = ctx
38142	return c
38143}
38144
38145// Header returns an http.Header that can be modified by the caller to
38146// add HTTP headers to the request.
38147func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Header() http.Header {
38148	if c.header_ == nil {
38149		c.header_ = make(http.Header)
38150	}
38151	return c.header_
38152}
38153
38154func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
38155	reqHeaders := make(http.Header)
38156	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
38157	for k, v := range c.header_ {
38158		reqHeaders[k] = v
38159	}
38160	reqHeaders.Set("User-Agent", c.s.userAgent())
38161	var body io.Reader = nil
38162	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
38163	if err != nil {
38164		return nil, err
38165	}
38166	reqHeaders.Set("Content-Type", "application/json")
38167	c.urlParams_.Set("alt", alt)
38168	c.urlParams_.Set("prettyPrint", "false")
38169	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
38170	urls += "?" + c.urlParams_.Encode()
38171	req, err := http.NewRequest("POST", urls, body)
38172	if err != nil {
38173		return nil, err
38174	}
38175	req.Header = reqHeaders
38176	googleapi.Expand(req.URL, map[string]string{
38177		"parent": c.parent,
38178	})
38179	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38180}
38181
38182// Do executes the "dialogflow.projects.locations.agent.entityTypes.batchDelete" call.
38183// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38184// Any non-2xx status code is an error. Response headers are in either
38185// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38186// was returned at all) in error.(*googleapi.Error).Header. Use
38187// googleapi.IsNotModified to check whether the returned error was
38188// because http.StatusNotModified was returned.
38189func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38190	gensupport.SetOptions(c.urlParams_, opts...)
38191	res, err := c.doRequest("json")
38192	if res != nil && res.StatusCode == http.StatusNotModified {
38193		if res.Body != nil {
38194			res.Body.Close()
38195		}
38196		return nil, &googleapi.Error{
38197			Code:   res.StatusCode,
38198			Header: res.Header,
38199		}
38200	}
38201	if err != nil {
38202		return nil, err
38203	}
38204	defer googleapi.CloseBody(res)
38205	if err := googleapi.CheckResponse(res); err != nil {
38206		return nil, err
38207	}
38208	ret := &GoogleLongrunningOperation{
38209		ServerResponse: googleapi.ServerResponse{
38210			Header:         res.Header,
38211			HTTPStatusCode: res.StatusCode,
38212		},
38213	}
38214	target := &ret
38215	if err := gensupport.DecodeResponse(target, res); err != nil {
38216		return nil, err
38217	}
38218	return ret, nil
38219	// {
38220	//   "description": "Deletes entity types in the specified agent. Operation ",
38221	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes:batchDelete",
38222	//   "httpMethod": "POST",
38223	//   "id": "dialogflow.projects.locations.agent.entityTypes.batchDelete",
38224	//   "parameterOrder": [
38225	//     "parent"
38226	//   ],
38227	//   "parameters": {
38228	//     "parent": {
38229	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent`, - `projects//locations//agent`.",
38230	//       "location": "path",
38231	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
38232	//       "required": true,
38233	//       "type": "string"
38234	//     }
38235	//   },
38236	//   "path": "v2beta1/{+parent}/entityTypes:batchDelete",
38237	//   "request": {
38238	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest"
38239	//   },
38240	//   "response": {
38241	//     "$ref": "GoogleLongrunningOperation"
38242	//   },
38243	//   "scopes": [
38244	//     "https://www.googleapis.com/auth/cloud-platform",
38245	//     "https://www.googleapis.com/auth/dialogflow"
38246	//   ]
38247	// }
38248
38249}
38250
38251// method id "dialogflow.projects.locations.agent.entityTypes.batchUpdate":
38252
38253type ProjectsLocationsAgentEntityTypesBatchUpdateCall struct {
38254	s                                                         *Service
38255	parent                                                    string
38256	googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
38257	urlParams_                                                gensupport.URLParams
38258	ctx_                                                      context.Context
38259	header_                                                   http.Header
38260}
38261
38262// BatchUpdate: Updates/Creates multiple entity types in the specified
38263// agent. Operation
38264//
38265// - parent: The name of the agent to update or create entity types in.
38266//   Supported formats: - `projects//agent` -
38267//   `projects//locations//agent`.
38268func (r *ProjectsLocationsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
38269	c := &ProjectsLocationsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38270	c.parent = parent
38271	c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
38272	return c
38273}
38274
38275// Fields allows partial responses to be retrieved. See
38276// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38277// for more information.
38278func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
38279	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38280	return c
38281}
38282
38283// Context sets the context to be used in this call's Do method. Any
38284// pending HTTP request will be aborted if the provided context is
38285// canceled.
38286func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
38287	c.ctx_ = ctx
38288	return c
38289}
38290
38291// Header returns an http.Header that can be modified by the caller to
38292// add HTTP headers to the request.
38293func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Header() http.Header {
38294	if c.header_ == nil {
38295		c.header_ = make(http.Header)
38296	}
38297	return c.header_
38298}
38299
38300func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
38301	reqHeaders := make(http.Header)
38302	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
38303	for k, v := range c.header_ {
38304		reqHeaders[k] = v
38305	}
38306	reqHeaders.Set("User-Agent", c.s.userAgent())
38307	var body io.Reader = nil
38308	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
38309	if err != nil {
38310		return nil, err
38311	}
38312	reqHeaders.Set("Content-Type", "application/json")
38313	c.urlParams_.Set("alt", alt)
38314	c.urlParams_.Set("prettyPrint", "false")
38315	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
38316	urls += "?" + c.urlParams_.Encode()
38317	req, err := http.NewRequest("POST", urls, body)
38318	if err != nil {
38319		return nil, err
38320	}
38321	req.Header = reqHeaders
38322	googleapi.Expand(req.URL, map[string]string{
38323		"parent": c.parent,
38324	})
38325	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38326}
38327
38328// Do executes the "dialogflow.projects.locations.agent.entityTypes.batchUpdate" call.
38329// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38330// Any non-2xx status code is an error. Response headers are in either
38331// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38332// was returned at all) in error.(*googleapi.Error).Header. Use
38333// googleapi.IsNotModified to check whether the returned error was
38334// because http.StatusNotModified was returned.
38335func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38336	gensupport.SetOptions(c.urlParams_, opts...)
38337	res, err := c.doRequest("json")
38338	if res != nil && res.StatusCode == http.StatusNotModified {
38339		if res.Body != nil {
38340			res.Body.Close()
38341		}
38342		return nil, &googleapi.Error{
38343			Code:   res.StatusCode,
38344			Header: res.Header,
38345		}
38346	}
38347	if err != nil {
38348		return nil, err
38349	}
38350	defer googleapi.CloseBody(res)
38351	if err := googleapi.CheckResponse(res); err != nil {
38352		return nil, err
38353	}
38354	ret := &GoogleLongrunningOperation{
38355		ServerResponse: googleapi.ServerResponse{
38356			Header:         res.Header,
38357			HTTPStatusCode: res.StatusCode,
38358		},
38359	}
38360	target := &ret
38361	if err := gensupport.DecodeResponse(target, res); err != nil {
38362		return nil, err
38363	}
38364	return ret, nil
38365	// {
38366	//   "description": "Updates/Creates multiple entity types in the specified agent. Operation ",
38367	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes:batchUpdate",
38368	//   "httpMethod": "POST",
38369	//   "id": "dialogflow.projects.locations.agent.entityTypes.batchUpdate",
38370	//   "parameterOrder": [
38371	//     "parent"
38372	//   ],
38373	//   "parameters": {
38374	//     "parent": {
38375	//       "description": "Required. The name of the agent to update or create entity types in. Supported formats: - `projects//agent` - `projects//locations//agent`",
38376	//       "location": "path",
38377	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
38378	//       "required": true,
38379	//       "type": "string"
38380	//     }
38381	//   },
38382	//   "path": "v2beta1/{+parent}/entityTypes:batchUpdate",
38383	//   "request": {
38384	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest"
38385	//   },
38386	//   "response": {
38387	//     "$ref": "GoogleLongrunningOperation"
38388	//   },
38389	//   "scopes": [
38390	//     "https://www.googleapis.com/auth/cloud-platform",
38391	//     "https://www.googleapis.com/auth/dialogflow"
38392	//   ]
38393	// }
38394
38395}
38396
38397// method id "dialogflow.projects.locations.agent.entityTypes.create":
38398
38399type ProjectsLocationsAgentEntityTypesCreateCall struct {
38400	s                                      *Service
38401	parent                                 string
38402	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
38403	urlParams_                             gensupport.URLParams
38404	ctx_                                   context.Context
38405	header_                                http.Header
38406}
38407
38408// Create: Creates an entity type in the specified agent.
38409//
38410// - parent: The agent to create a entity type for. Supported formats: -
38411//   `projects//agent` - `projects//locations//agent`.
38412func (r *ProjectsLocationsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesCreateCall {
38413	c := &ProjectsLocationsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38414	c.parent = parent
38415	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
38416	return c
38417}
38418
38419// LanguageCode sets the optional parameter "languageCode": The language
38420// used to access language-specific data. If not specified, the agent's
38421// default language is used. For more information, see Multilingual
38422// intent and entity data
38423// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
38424func (c *ProjectsLocationsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesCreateCall {
38425	c.urlParams_.Set("languageCode", languageCode)
38426	return c
38427}
38428
38429// Fields allows partial responses to be retrieved. See
38430// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38431// for more information.
38432func (c *ProjectsLocationsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesCreateCall {
38433	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38434	return c
38435}
38436
38437// Context sets the context to be used in this call's Do method. Any
38438// pending HTTP request will be aborted if the provided context is
38439// canceled.
38440func (c *ProjectsLocationsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesCreateCall {
38441	c.ctx_ = ctx
38442	return c
38443}
38444
38445// Header returns an http.Header that can be modified by the caller to
38446// add HTTP headers to the request.
38447func (c *ProjectsLocationsAgentEntityTypesCreateCall) Header() http.Header {
38448	if c.header_ == nil {
38449		c.header_ = make(http.Header)
38450	}
38451	return c.header_
38452}
38453
38454func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
38455	reqHeaders := make(http.Header)
38456	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
38457	for k, v := range c.header_ {
38458		reqHeaders[k] = v
38459	}
38460	reqHeaders.Set("User-Agent", c.s.userAgent())
38461	var body io.Reader = nil
38462	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
38463	if err != nil {
38464		return nil, err
38465	}
38466	reqHeaders.Set("Content-Type", "application/json")
38467	c.urlParams_.Set("alt", alt)
38468	c.urlParams_.Set("prettyPrint", "false")
38469	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
38470	urls += "?" + c.urlParams_.Encode()
38471	req, err := http.NewRequest("POST", urls, body)
38472	if err != nil {
38473		return nil, err
38474	}
38475	req.Header = reqHeaders
38476	googleapi.Expand(req.URL, map[string]string{
38477		"parent": c.parent,
38478	})
38479	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38480}
38481
38482// Do executes the "dialogflow.projects.locations.agent.entityTypes.create" call.
38483// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
38484// be non-nil. Any non-2xx status code is an error. Response headers are
38485// in either
38486// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
38487// a response was returned at all) in error.(*googleapi.Error).Header.
38488// Use googleapi.IsNotModified to check whether the returned error was
38489// because http.StatusNotModified was returned.
38490func (c *ProjectsLocationsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
38491	gensupport.SetOptions(c.urlParams_, opts...)
38492	res, err := c.doRequest("json")
38493	if res != nil && res.StatusCode == http.StatusNotModified {
38494		if res.Body != nil {
38495			res.Body.Close()
38496		}
38497		return nil, &googleapi.Error{
38498			Code:   res.StatusCode,
38499			Header: res.Header,
38500		}
38501	}
38502	if err != nil {
38503		return nil, err
38504	}
38505	defer googleapi.CloseBody(res)
38506	if err := googleapi.CheckResponse(res); err != nil {
38507		return nil, err
38508	}
38509	ret := &GoogleCloudDialogflowV2beta1EntityType{
38510		ServerResponse: googleapi.ServerResponse{
38511			Header:         res.Header,
38512			HTTPStatusCode: res.StatusCode,
38513		},
38514	}
38515	target := &ret
38516	if err := gensupport.DecodeResponse(target, res); err != nil {
38517		return nil, err
38518	}
38519	return ret, nil
38520	// {
38521	//   "description": "Creates an entity type in the specified agent.",
38522	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes",
38523	//   "httpMethod": "POST",
38524	//   "id": "dialogflow.projects.locations.agent.entityTypes.create",
38525	//   "parameterOrder": [
38526	//     "parent"
38527	//   ],
38528	//   "parameters": {
38529	//     "languageCode": {
38530	//       "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).",
38531	//       "location": "query",
38532	//       "type": "string"
38533	//     },
38534	//     "parent": {
38535	//       "description": "Required. The agent to create a entity type for. Supported formats: - `projects//agent` - `projects//locations//agent`",
38536	//       "location": "path",
38537	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
38538	//       "required": true,
38539	//       "type": "string"
38540	//     }
38541	//   },
38542	//   "path": "v2beta1/{+parent}/entityTypes",
38543	//   "request": {
38544	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
38545	//   },
38546	//   "response": {
38547	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
38548	//   },
38549	//   "scopes": [
38550	//     "https://www.googleapis.com/auth/cloud-platform",
38551	//     "https://www.googleapis.com/auth/dialogflow"
38552	//   ]
38553	// }
38554
38555}
38556
38557// method id "dialogflow.projects.locations.agent.entityTypes.delete":
38558
38559type ProjectsLocationsAgentEntityTypesDeleteCall struct {
38560	s          *Service
38561	name       string
38562	urlParams_ gensupport.URLParams
38563	ctx_       context.Context
38564	header_    http.Header
38565}
38566
38567// Delete: Deletes the specified entity type.
38568//
38569// - name: The name of the entity type to delete. Supported formats: -
38570//   `projects//agent/entityTypes/` -
38571//   `projects//locations//agent/entityTypes/`.
38572func (r *ProjectsLocationsAgentEntityTypesService) Delete(name string) *ProjectsLocationsAgentEntityTypesDeleteCall {
38573	c := &ProjectsLocationsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38574	c.name = name
38575	return c
38576}
38577
38578// Fields allows partial responses to be retrieved. See
38579// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38580// for more information.
38581func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesDeleteCall {
38582	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38583	return c
38584}
38585
38586// Context sets the context to be used in this call's Do method. Any
38587// pending HTTP request will be aborted if the provided context is
38588// canceled.
38589func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesDeleteCall {
38590	c.ctx_ = ctx
38591	return c
38592}
38593
38594// Header returns an http.Header that can be modified by the caller to
38595// add HTTP headers to the request.
38596func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Header() http.Header {
38597	if c.header_ == nil {
38598		c.header_ = make(http.Header)
38599	}
38600	return c.header_
38601}
38602
38603func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
38604	reqHeaders := make(http.Header)
38605	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
38606	for k, v := range c.header_ {
38607		reqHeaders[k] = v
38608	}
38609	reqHeaders.Set("User-Agent", c.s.userAgent())
38610	var body io.Reader = nil
38611	c.urlParams_.Set("alt", alt)
38612	c.urlParams_.Set("prettyPrint", "false")
38613	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38614	urls += "?" + c.urlParams_.Encode()
38615	req, err := http.NewRequest("DELETE", urls, body)
38616	if err != nil {
38617		return nil, err
38618	}
38619	req.Header = reqHeaders
38620	googleapi.Expand(req.URL, map[string]string{
38621		"name": c.name,
38622	})
38623	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38624}
38625
38626// Do executes the "dialogflow.projects.locations.agent.entityTypes.delete" call.
38627// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
38628// non-2xx status code is an error. Response headers are in either
38629// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
38630// returned at all) in error.(*googleapi.Error).Header. Use
38631// googleapi.IsNotModified to check whether the returned error was
38632// because http.StatusNotModified was returned.
38633func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
38634	gensupport.SetOptions(c.urlParams_, opts...)
38635	res, err := c.doRequest("json")
38636	if res != nil && res.StatusCode == http.StatusNotModified {
38637		if res.Body != nil {
38638			res.Body.Close()
38639		}
38640		return nil, &googleapi.Error{
38641			Code:   res.StatusCode,
38642			Header: res.Header,
38643		}
38644	}
38645	if err != nil {
38646		return nil, err
38647	}
38648	defer googleapi.CloseBody(res)
38649	if err := googleapi.CheckResponse(res); err != nil {
38650		return nil, err
38651	}
38652	ret := &GoogleProtobufEmpty{
38653		ServerResponse: googleapi.ServerResponse{
38654			Header:         res.Header,
38655			HTTPStatusCode: res.StatusCode,
38656		},
38657	}
38658	target := &ret
38659	if err := gensupport.DecodeResponse(target, res); err != nil {
38660		return nil, err
38661	}
38662	return ret, nil
38663	// {
38664	//   "description": "Deletes the specified entity type.",
38665	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}",
38666	//   "httpMethod": "DELETE",
38667	//   "id": "dialogflow.projects.locations.agent.entityTypes.delete",
38668	//   "parameterOrder": [
38669	//     "name"
38670	//   ],
38671	//   "parameters": {
38672	//     "name": {
38673	//       "description": "Required. The name of the entity type to delete. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
38674	//       "location": "path",
38675	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
38676	//       "required": true,
38677	//       "type": "string"
38678	//     }
38679	//   },
38680	//   "path": "v2beta1/{+name}",
38681	//   "response": {
38682	//     "$ref": "GoogleProtobufEmpty"
38683	//   },
38684	//   "scopes": [
38685	//     "https://www.googleapis.com/auth/cloud-platform",
38686	//     "https://www.googleapis.com/auth/dialogflow"
38687	//   ]
38688	// }
38689
38690}
38691
38692// method id "dialogflow.projects.locations.agent.entityTypes.get":
38693
38694type ProjectsLocationsAgentEntityTypesGetCall struct {
38695	s            *Service
38696	name         string
38697	urlParams_   gensupport.URLParams
38698	ifNoneMatch_ string
38699	ctx_         context.Context
38700	header_      http.Header
38701}
38702
38703// Get: Retrieves the specified entity type.
38704//
38705// - name: The name of the entity type. Supported formats: -
38706//   `projects//agent/entityTypes/` -
38707//   `projects//locations//agent/entityTypes/`.
38708func (r *ProjectsLocationsAgentEntityTypesService) Get(name string) *ProjectsLocationsAgentEntityTypesGetCall {
38709	c := &ProjectsLocationsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38710	c.name = name
38711	return c
38712}
38713
38714// LanguageCode sets the optional parameter "languageCode": The language
38715// used to access language-specific data. If not specified, the agent's
38716// default language is used. For more information, see Multilingual
38717// intent and entity data
38718// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
38719func (c *ProjectsLocationsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesGetCall {
38720	c.urlParams_.Set("languageCode", languageCode)
38721	return c
38722}
38723
38724// Fields allows partial responses to be retrieved. See
38725// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38726// for more information.
38727func (c *ProjectsLocationsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesGetCall {
38728	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38729	return c
38730}
38731
38732// IfNoneMatch sets the optional parameter which makes the operation
38733// fail if the object's ETag matches the given value. This is useful for
38734// getting updates only after the object has changed since the last
38735// request. Use googleapi.IsNotModified to check whether the response
38736// error from Do is the result of In-None-Match.
38737func (c *ProjectsLocationsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesGetCall {
38738	c.ifNoneMatch_ = entityTag
38739	return c
38740}
38741
38742// Context sets the context to be used in this call's Do method. Any
38743// pending HTTP request will be aborted if the provided context is
38744// canceled.
38745func (c *ProjectsLocationsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesGetCall {
38746	c.ctx_ = ctx
38747	return c
38748}
38749
38750// Header returns an http.Header that can be modified by the caller to
38751// add HTTP headers to the request.
38752func (c *ProjectsLocationsAgentEntityTypesGetCall) Header() http.Header {
38753	if c.header_ == nil {
38754		c.header_ = make(http.Header)
38755	}
38756	return c.header_
38757}
38758
38759func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
38760	reqHeaders := make(http.Header)
38761	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
38762	for k, v := range c.header_ {
38763		reqHeaders[k] = v
38764	}
38765	reqHeaders.Set("User-Agent", c.s.userAgent())
38766	if c.ifNoneMatch_ != "" {
38767		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38768	}
38769	var body io.Reader = nil
38770	c.urlParams_.Set("alt", alt)
38771	c.urlParams_.Set("prettyPrint", "false")
38772	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38773	urls += "?" + c.urlParams_.Encode()
38774	req, err := http.NewRequest("GET", urls, body)
38775	if err != nil {
38776		return nil, err
38777	}
38778	req.Header = reqHeaders
38779	googleapi.Expand(req.URL, map[string]string{
38780		"name": c.name,
38781	})
38782	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38783}
38784
38785// Do executes the "dialogflow.projects.locations.agent.entityTypes.get" call.
38786// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
38787// be non-nil. Any non-2xx status code is an error. Response headers are
38788// in either
38789// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
38790// a response was returned at all) in error.(*googleapi.Error).Header.
38791// Use googleapi.IsNotModified to check whether the returned error was
38792// because http.StatusNotModified was returned.
38793func (c *ProjectsLocationsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
38794	gensupport.SetOptions(c.urlParams_, opts...)
38795	res, err := c.doRequest("json")
38796	if res != nil && res.StatusCode == http.StatusNotModified {
38797		if res.Body != nil {
38798			res.Body.Close()
38799		}
38800		return nil, &googleapi.Error{
38801			Code:   res.StatusCode,
38802			Header: res.Header,
38803		}
38804	}
38805	if err != nil {
38806		return nil, err
38807	}
38808	defer googleapi.CloseBody(res)
38809	if err := googleapi.CheckResponse(res); err != nil {
38810		return nil, err
38811	}
38812	ret := &GoogleCloudDialogflowV2beta1EntityType{
38813		ServerResponse: googleapi.ServerResponse{
38814			Header:         res.Header,
38815			HTTPStatusCode: res.StatusCode,
38816		},
38817	}
38818	target := &ret
38819	if err := gensupport.DecodeResponse(target, res); err != nil {
38820		return nil, err
38821	}
38822	return ret, nil
38823	// {
38824	//   "description": "Retrieves the specified entity type.",
38825	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}",
38826	//   "httpMethod": "GET",
38827	//   "id": "dialogflow.projects.locations.agent.entityTypes.get",
38828	//   "parameterOrder": [
38829	//     "name"
38830	//   ],
38831	//   "parameters": {
38832	//     "languageCode": {
38833	//       "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).",
38834	//       "location": "query",
38835	//       "type": "string"
38836	//     },
38837	//     "name": {
38838	//       "description": "Required. The name of the entity type. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
38839	//       "location": "path",
38840	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
38841	//       "required": true,
38842	//       "type": "string"
38843	//     }
38844	//   },
38845	//   "path": "v2beta1/{+name}",
38846	//   "response": {
38847	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
38848	//   },
38849	//   "scopes": [
38850	//     "https://www.googleapis.com/auth/cloud-platform",
38851	//     "https://www.googleapis.com/auth/dialogflow"
38852	//   ]
38853	// }
38854
38855}
38856
38857// method id "dialogflow.projects.locations.agent.entityTypes.list":
38858
38859type ProjectsLocationsAgentEntityTypesListCall struct {
38860	s            *Service
38861	parent       string
38862	urlParams_   gensupport.URLParams
38863	ifNoneMatch_ string
38864	ctx_         context.Context
38865	header_      http.Header
38866}
38867
38868// List: Returns the list of all entity types in the specified agent.
38869//
38870// - parent: The agent to list all entity types from. Supported formats:
38871//   - `projects//agent` - `projects//locations//agent`.
38872func (r *ProjectsLocationsAgentEntityTypesService) List(parent string) *ProjectsLocationsAgentEntityTypesListCall {
38873	c := &ProjectsLocationsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38874	c.parent = parent
38875	return c
38876}
38877
38878// LanguageCode sets the optional parameter "languageCode": The language
38879// used to access language-specific data. If not specified, the agent's
38880// default language is used. For more information, see Multilingual
38881// intent and entity data
38882// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
38883func (c *ProjectsLocationsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesListCall {
38884	c.urlParams_.Set("languageCode", languageCode)
38885	return c
38886}
38887
38888// PageSize sets the optional parameter "pageSize": The maximum number
38889// of items to return in a single page. By default 100 and at most 1000.
38890func (c *ProjectsLocationsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEntityTypesListCall {
38891	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
38892	return c
38893}
38894
38895// PageToken sets the optional parameter "pageToken": The
38896// next_page_token value returned from a previous list request.
38897func (c *ProjectsLocationsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEntityTypesListCall {
38898	c.urlParams_.Set("pageToken", pageToken)
38899	return c
38900}
38901
38902// Fields allows partial responses to be retrieved. See
38903// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38904// for more information.
38905func (c *ProjectsLocationsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesListCall {
38906	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38907	return c
38908}
38909
38910// IfNoneMatch sets the optional parameter which makes the operation
38911// fail if the object's ETag matches the given value. This is useful for
38912// getting updates only after the object has changed since the last
38913// request. Use googleapi.IsNotModified to check whether the response
38914// error from Do is the result of In-None-Match.
38915func (c *ProjectsLocationsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesListCall {
38916	c.ifNoneMatch_ = entityTag
38917	return c
38918}
38919
38920// Context sets the context to be used in this call's Do method. Any
38921// pending HTTP request will be aborted if the provided context is
38922// canceled.
38923func (c *ProjectsLocationsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesListCall {
38924	c.ctx_ = ctx
38925	return c
38926}
38927
38928// Header returns an http.Header that can be modified by the caller to
38929// add HTTP headers to the request.
38930func (c *ProjectsLocationsAgentEntityTypesListCall) Header() http.Header {
38931	if c.header_ == nil {
38932		c.header_ = make(http.Header)
38933	}
38934	return c.header_
38935}
38936
38937func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
38938	reqHeaders := make(http.Header)
38939	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
38940	for k, v := range c.header_ {
38941		reqHeaders[k] = v
38942	}
38943	reqHeaders.Set("User-Agent", c.s.userAgent())
38944	if c.ifNoneMatch_ != "" {
38945		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38946	}
38947	var body io.Reader = nil
38948	c.urlParams_.Set("alt", alt)
38949	c.urlParams_.Set("prettyPrint", "false")
38950	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
38951	urls += "?" + c.urlParams_.Encode()
38952	req, err := http.NewRequest("GET", urls, body)
38953	if err != nil {
38954		return nil, err
38955	}
38956	req.Header = reqHeaders
38957	googleapi.Expand(req.URL, map[string]string{
38958		"parent": c.parent,
38959	})
38960	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38961}
38962
38963// Do executes the "dialogflow.projects.locations.agent.entityTypes.list" call.
38964// Exactly one of *GoogleCloudDialogflowV2beta1ListEntityTypesResponse
38965// or error will be non-nil. Any non-2xx status code is an error.
38966// Response headers are in either
38967// *GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.He
38968// ader or (if a response was returned at all) in
38969// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38970// whether the returned error was because http.StatusNotModified was
38971// returned.
38972func (c *ProjectsLocationsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
38973	gensupport.SetOptions(c.urlParams_, opts...)
38974	res, err := c.doRequest("json")
38975	if res != nil && res.StatusCode == http.StatusNotModified {
38976		if res.Body != nil {
38977			res.Body.Close()
38978		}
38979		return nil, &googleapi.Error{
38980			Code:   res.StatusCode,
38981			Header: res.Header,
38982		}
38983	}
38984	if err != nil {
38985		return nil, err
38986	}
38987	defer googleapi.CloseBody(res)
38988	if err := googleapi.CheckResponse(res); err != nil {
38989		return nil, err
38990	}
38991	ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
38992		ServerResponse: googleapi.ServerResponse{
38993			Header:         res.Header,
38994			HTTPStatusCode: res.StatusCode,
38995		},
38996	}
38997	target := &ret
38998	if err := gensupport.DecodeResponse(target, res); err != nil {
38999		return nil, err
39000	}
39001	return ret, nil
39002	// {
39003	//   "description": "Returns the list of all entity types in the specified agent.",
39004	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes",
39005	//   "httpMethod": "GET",
39006	//   "id": "dialogflow.projects.locations.agent.entityTypes.list",
39007	//   "parameterOrder": [
39008	//     "parent"
39009	//   ],
39010	//   "parameters": {
39011	//     "languageCode": {
39012	//       "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).",
39013	//       "location": "query",
39014	//       "type": "string"
39015	//     },
39016	//     "pageSize": {
39017	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
39018	//       "format": "int32",
39019	//       "location": "query",
39020	//       "type": "integer"
39021	//     },
39022	//     "pageToken": {
39023	//       "description": "Optional. The next_page_token value returned from a previous list request.",
39024	//       "location": "query",
39025	//       "type": "string"
39026	//     },
39027	//     "parent": {
39028	//       "description": "Required. The agent to list all entity types from. Supported formats: - `projects//agent` - `projects//locations//agent`",
39029	//       "location": "path",
39030	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
39031	//       "required": true,
39032	//       "type": "string"
39033	//     }
39034	//   },
39035	//   "path": "v2beta1/{+parent}/entityTypes",
39036	//   "response": {
39037	//     "$ref": "GoogleCloudDialogflowV2beta1ListEntityTypesResponse"
39038	//   },
39039	//   "scopes": [
39040	//     "https://www.googleapis.com/auth/cloud-platform",
39041	//     "https://www.googleapis.com/auth/dialogflow"
39042	//   ]
39043	// }
39044
39045}
39046
39047// Pages invokes f for each page of results.
39048// A non-nil error returned from f will halt the iteration.
39049// The provided context supersedes any context provided to the Context method.
39050func (c *ProjectsLocationsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
39051	c.ctx_ = ctx
39052	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
39053	for {
39054		x, err := c.Do()
39055		if err != nil {
39056			return err
39057		}
39058		if err := f(x); err != nil {
39059			return err
39060		}
39061		if x.NextPageToken == "" {
39062			return nil
39063		}
39064		c.PageToken(x.NextPageToken)
39065	}
39066}
39067
39068// method id "dialogflow.projects.locations.agent.entityTypes.patch":
39069
39070type ProjectsLocationsAgentEntityTypesPatchCall struct {
39071	s                                      *Service
39072	nameid                                 string
39073	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
39074	urlParams_                             gensupport.URLParams
39075	ctx_                                   context.Context
39076	header_                                http.Header
39077}
39078
39079// Patch: Updates the specified entity type.
39080//
39081// - name: The unique identifier of the entity type. Required for
39082//   EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
39083//   methods. Supported formats: - `projects//agent/entityTypes/` -
39084//   `projects//locations//agent/entityTypes/`.
39085func (r *ProjectsLocationsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesPatchCall {
39086	c := &ProjectsLocationsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39087	c.nameid = nameid
39088	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
39089	return c
39090}
39091
39092// LanguageCode sets the optional parameter "languageCode": The language
39093// used to access language-specific data. If not specified, the agent's
39094// default language is used. For more information, see Multilingual
39095// intent and entity data
39096// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
39097func (c *ProjectsLocationsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesPatchCall {
39098	c.urlParams_.Set("languageCode", languageCode)
39099	return c
39100}
39101
39102// UpdateMask sets the optional parameter "updateMask": The mask to
39103// control which fields get updated.
39104func (c *ProjectsLocationsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEntityTypesPatchCall {
39105	c.urlParams_.Set("updateMask", updateMask)
39106	return c
39107}
39108
39109// Fields allows partial responses to be retrieved. See
39110// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39111// for more information.
39112func (c *ProjectsLocationsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesPatchCall {
39113	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39114	return c
39115}
39116
39117// Context sets the context to be used in this call's Do method. Any
39118// pending HTTP request will be aborted if the provided context is
39119// canceled.
39120func (c *ProjectsLocationsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesPatchCall {
39121	c.ctx_ = ctx
39122	return c
39123}
39124
39125// Header returns an http.Header that can be modified by the caller to
39126// add HTTP headers to the request.
39127func (c *ProjectsLocationsAgentEntityTypesPatchCall) Header() http.Header {
39128	if c.header_ == nil {
39129		c.header_ = make(http.Header)
39130	}
39131	return c.header_
39132}
39133
39134func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
39135	reqHeaders := make(http.Header)
39136	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
39137	for k, v := range c.header_ {
39138		reqHeaders[k] = v
39139	}
39140	reqHeaders.Set("User-Agent", c.s.userAgent())
39141	var body io.Reader = nil
39142	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
39143	if err != nil {
39144		return nil, err
39145	}
39146	reqHeaders.Set("Content-Type", "application/json")
39147	c.urlParams_.Set("alt", alt)
39148	c.urlParams_.Set("prettyPrint", "false")
39149	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39150	urls += "?" + c.urlParams_.Encode()
39151	req, err := http.NewRequest("PATCH", urls, body)
39152	if err != nil {
39153		return nil, err
39154	}
39155	req.Header = reqHeaders
39156	googleapi.Expand(req.URL, map[string]string{
39157		"name": c.nameid,
39158	})
39159	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39160}
39161
39162// Do executes the "dialogflow.projects.locations.agent.entityTypes.patch" call.
39163// Exactly one of *GoogleCloudDialogflowV2beta1EntityType or error will
39164// be non-nil. Any non-2xx status code is an error. Response headers are
39165// in either
39166// *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if
39167// a response was returned at all) in error.(*googleapi.Error).Header.
39168// Use googleapi.IsNotModified to check whether the returned error was
39169// because http.StatusNotModified was returned.
39170func (c *ProjectsLocationsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
39171	gensupport.SetOptions(c.urlParams_, opts...)
39172	res, err := c.doRequest("json")
39173	if res != nil && res.StatusCode == http.StatusNotModified {
39174		if res.Body != nil {
39175			res.Body.Close()
39176		}
39177		return nil, &googleapi.Error{
39178			Code:   res.StatusCode,
39179			Header: res.Header,
39180		}
39181	}
39182	if err != nil {
39183		return nil, err
39184	}
39185	defer googleapi.CloseBody(res)
39186	if err := googleapi.CheckResponse(res); err != nil {
39187		return nil, err
39188	}
39189	ret := &GoogleCloudDialogflowV2beta1EntityType{
39190		ServerResponse: googleapi.ServerResponse{
39191			Header:         res.Header,
39192			HTTPStatusCode: res.StatusCode,
39193		},
39194	}
39195	target := &ret
39196	if err := gensupport.DecodeResponse(target, res); err != nil {
39197		return nil, err
39198	}
39199	return ret, nil
39200	// {
39201	//   "description": "Updates the specified entity type.",
39202	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}",
39203	//   "httpMethod": "PATCH",
39204	//   "id": "dialogflow.projects.locations.agent.entityTypes.patch",
39205	//   "parameterOrder": [
39206	//     "name"
39207	//   ],
39208	//   "parameters": {
39209	//     "languageCode": {
39210	//       "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).",
39211	//       "location": "query",
39212	//       "type": "string"
39213	//     },
39214	//     "name": {
39215	//       "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/`",
39216	//       "location": "path",
39217	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39218	//       "required": true,
39219	//       "type": "string"
39220	//     },
39221	//     "updateMask": {
39222	//       "description": "Optional. The mask to control which fields get updated.",
39223	//       "format": "google-fieldmask",
39224	//       "location": "query",
39225	//       "type": "string"
39226	//     }
39227	//   },
39228	//   "path": "v2beta1/{+name}",
39229	//   "request": {
39230	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
39231	//   },
39232	//   "response": {
39233	//     "$ref": "GoogleCloudDialogflowV2beta1EntityType"
39234	//   },
39235	//   "scopes": [
39236	//     "https://www.googleapis.com/auth/cloud-platform",
39237	//     "https://www.googleapis.com/auth/dialogflow"
39238	//   ]
39239	// }
39240
39241}
39242
39243// method id "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate":
39244
39245type ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall struct {
39246	s                                                      *Service
39247	parent                                                 string
39248	googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
39249	urlParams_                                             gensupport.URLParams
39250	ctx_                                                   context.Context
39251	header_                                                http.Header
39252}
39253
39254// BatchCreate: Creates multiple new entities in the specified entity
39255// type. Operation
39256//
39257// - parent: The name of the entity type to create entities in.
39258//   Supported formats: - `projects//agent/entityTypes/` -
39259//   `projects//locations//agent/entityTypes/`.
39260func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
39261	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39262	c.parent = parent
39263	c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
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 *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
39271	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39272	return c
39273}
39274
39275// Context sets the context to be used in this call's Do method. Any
39276// pending HTTP request will be aborted if the provided context is
39277// canceled.
39278func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
39279	c.ctx_ = ctx
39280	return c
39281}
39282
39283// Header returns an http.Header that can be modified by the caller to
39284// add HTTP headers to the request.
39285func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
39286	if c.header_ == nil {
39287		c.header_ = make(http.Header)
39288	}
39289	return c.header_
39290}
39291
39292func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
39293	reqHeaders := make(http.Header)
39294	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
39295	for k, v := range c.header_ {
39296		reqHeaders[k] = v
39297	}
39298	reqHeaders.Set("User-Agent", c.s.userAgent())
39299	var body io.Reader = nil
39300	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
39301	if err != nil {
39302		return nil, err
39303	}
39304	reqHeaders.Set("Content-Type", "application/json")
39305	c.urlParams_.Set("alt", alt)
39306	c.urlParams_.Set("prettyPrint", "false")
39307	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
39308	urls += "?" + c.urlParams_.Encode()
39309	req, err := http.NewRequest("POST", urls, body)
39310	if err != nil {
39311		return nil, err
39312	}
39313	req.Header = reqHeaders
39314	googleapi.Expand(req.URL, map[string]string{
39315		"parent": c.parent,
39316	})
39317	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39318}
39319
39320// Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate" call.
39321// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39322// Any non-2xx status code is an error. Response headers are in either
39323// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39324// was returned at all) in error.(*googleapi.Error).Header. Use
39325// googleapi.IsNotModified to check whether the returned error was
39326// because http.StatusNotModified was returned.
39327func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39328	gensupport.SetOptions(c.urlParams_, opts...)
39329	res, err := c.doRequest("json")
39330	if res != nil && res.StatusCode == http.StatusNotModified {
39331		if res.Body != nil {
39332			res.Body.Close()
39333		}
39334		return nil, &googleapi.Error{
39335			Code:   res.StatusCode,
39336			Header: res.Header,
39337		}
39338	}
39339	if err != nil {
39340		return nil, err
39341	}
39342	defer googleapi.CloseBody(res)
39343	if err := googleapi.CheckResponse(res); err != nil {
39344		return nil, err
39345	}
39346	ret := &GoogleLongrunningOperation{
39347		ServerResponse: googleapi.ServerResponse{
39348			Header:         res.Header,
39349			HTTPStatusCode: res.StatusCode,
39350		},
39351	}
39352	target := &ret
39353	if err := gensupport.DecodeResponse(target, res); err != nil {
39354		return nil, err
39355	}
39356	return ret, nil
39357	// {
39358	//   "description": "Creates multiple new entities in the specified entity type. Operation ",
39359	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}/entities:batchCreate",
39360	//   "httpMethod": "POST",
39361	//   "id": "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate",
39362	//   "parameterOrder": [
39363	//     "parent"
39364	//   ],
39365	//   "parameters": {
39366	//     "parent": {
39367	//       "description": "Required. The name of the entity type to create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39368	//       "location": "path",
39369	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39370	//       "required": true,
39371	//       "type": "string"
39372	//     }
39373	//   },
39374	//   "path": "v2beta1/{+parent}/entities:batchCreate",
39375	//   "request": {
39376	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest"
39377	//   },
39378	//   "response": {
39379	//     "$ref": "GoogleLongrunningOperation"
39380	//   },
39381	//   "scopes": [
39382	//     "https://www.googleapis.com/auth/cloud-platform",
39383	//     "https://www.googleapis.com/auth/dialogflow"
39384	//   ]
39385	// }
39386
39387}
39388
39389// method id "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete":
39390
39391type ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall struct {
39392	s                                                      *Service
39393	parent                                                 string
39394	googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
39395	urlParams_                                             gensupport.URLParams
39396	ctx_                                                   context.Context
39397	header_                                                http.Header
39398}
39399
39400// BatchDelete: Deletes entities in the specified entity type. Operation
39401//
39402// - parent: The name of the entity type to delete entries for.
39403//   Supported formats: - `projects//agent/entityTypes/` -
39404//   `projects//locations//agent/entityTypes/`.
39405func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
39406	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39407	c.parent = parent
39408	c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
39409	return c
39410}
39411
39412// Fields allows partial responses to be retrieved. See
39413// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39414// for more information.
39415func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
39416	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39417	return c
39418}
39419
39420// Context sets the context to be used in this call's Do method. Any
39421// pending HTTP request will be aborted if the provided context is
39422// canceled.
39423func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
39424	c.ctx_ = ctx
39425	return c
39426}
39427
39428// Header returns an http.Header that can be modified by the caller to
39429// add HTTP headers to the request.
39430func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
39431	if c.header_ == nil {
39432		c.header_ = make(http.Header)
39433	}
39434	return c.header_
39435}
39436
39437func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
39438	reqHeaders := make(http.Header)
39439	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
39440	for k, v := range c.header_ {
39441		reqHeaders[k] = v
39442	}
39443	reqHeaders.Set("User-Agent", c.s.userAgent())
39444	var body io.Reader = nil
39445	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
39446	if err != nil {
39447		return nil, err
39448	}
39449	reqHeaders.Set("Content-Type", "application/json")
39450	c.urlParams_.Set("alt", alt)
39451	c.urlParams_.Set("prettyPrint", "false")
39452	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
39453	urls += "?" + c.urlParams_.Encode()
39454	req, err := http.NewRequest("POST", urls, body)
39455	if err != nil {
39456		return nil, err
39457	}
39458	req.Header = reqHeaders
39459	googleapi.Expand(req.URL, map[string]string{
39460		"parent": c.parent,
39461	})
39462	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39463}
39464
39465// Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete" call.
39466// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39467// Any non-2xx status code is an error. Response headers are in either
39468// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39469// was returned at all) in error.(*googleapi.Error).Header. Use
39470// googleapi.IsNotModified to check whether the returned error was
39471// because http.StatusNotModified was returned.
39472func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39473	gensupport.SetOptions(c.urlParams_, opts...)
39474	res, err := c.doRequest("json")
39475	if res != nil && res.StatusCode == http.StatusNotModified {
39476		if res.Body != nil {
39477			res.Body.Close()
39478		}
39479		return nil, &googleapi.Error{
39480			Code:   res.StatusCode,
39481			Header: res.Header,
39482		}
39483	}
39484	if err != nil {
39485		return nil, err
39486	}
39487	defer googleapi.CloseBody(res)
39488	if err := googleapi.CheckResponse(res); err != nil {
39489		return nil, err
39490	}
39491	ret := &GoogleLongrunningOperation{
39492		ServerResponse: googleapi.ServerResponse{
39493			Header:         res.Header,
39494			HTTPStatusCode: res.StatusCode,
39495		},
39496	}
39497	target := &ret
39498	if err := gensupport.DecodeResponse(target, res); err != nil {
39499		return nil, err
39500	}
39501	return ret, nil
39502	// {
39503	//   "description": "Deletes entities in the specified entity type. Operation ",
39504	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}/entities:batchDelete",
39505	//   "httpMethod": "POST",
39506	//   "id": "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete",
39507	//   "parameterOrder": [
39508	//     "parent"
39509	//   ],
39510	//   "parameters": {
39511	//     "parent": {
39512	//       "description": "Required. The name of the entity type to delete entries for. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39513	//       "location": "path",
39514	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39515	//       "required": true,
39516	//       "type": "string"
39517	//     }
39518	//   },
39519	//   "path": "v2beta1/{+parent}/entities:batchDelete",
39520	//   "request": {
39521	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest"
39522	//   },
39523	//   "response": {
39524	//     "$ref": "GoogleLongrunningOperation"
39525	//   },
39526	//   "scopes": [
39527	//     "https://www.googleapis.com/auth/cloud-platform",
39528	//     "https://www.googleapis.com/auth/dialogflow"
39529	//   ]
39530	// }
39531
39532}
39533
39534// method id "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate":
39535
39536type ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall struct {
39537	s                                                      *Service
39538	parent                                                 string
39539	googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
39540	urlParams_                                             gensupport.URLParams
39541	ctx_                                                   context.Context
39542	header_                                                http.Header
39543}
39544
39545// BatchUpdate: Updates or creates multiple entities in the specified
39546// entity type. This method does not affect entities in the entity type
39547// that aren't explicitly specified in the request. Operation
39548//
39549// - parent: The name of the entity type to update or create entities
39550//   in. Supported formats: - `projects//agent/entityTypes/` -
39551//   `projects//locations//agent/entityTypes/`.
39552func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
39553	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39554	c.parent = parent
39555	c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
39556	return c
39557}
39558
39559// Fields allows partial responses to be retrieved. See
39560// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39561// for more information.
39562func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
39563	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39564	return c
39565}
39566
39567// Context sets the context to be used in this call's Do method. Any
39568// pending HTTP request will be aborted if the provided context is
39569// canceled.
39570func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
39571	c.ctx_ = ctx
39572	return c
39573}
39574
39575// Header returns an http.Header that can be modified by the caller to
39576// add HTTP headers to the request.
39577func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
39578	if c.header_ == nil {
39579		c.header_ = make(http.Header)
39580	}
39581	return c.header_
39582}
39583
39584func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
39585	reqHeaders := make(http.Header)
39586	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
39587	for k, v := range c.header_ {
39588		reqHeaders[k] = v
39589	}
39590	reqHeaders.Set("User-Agent", c.s.userAgent())
39591	var body io.Reader = nil
39592	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
39593	if err != nil {
39594		return nil, err
39595	}
39596	reqHeaders.Set("Content-Type", "application/json")
39597	c.urlParams_.Set("alt", alt)
39598	c.urlParams_.Set("prettyPrint", "false")
39599	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
39600	urls += "?" + c.urlParams_.Encode()
39601	req, err := http.NewRequest("POST", urls, body)
39602	if err != nil {
39603		return nil, err
39604	}
39605	req.Header = reqHeaders
39606	googleapi.Expand(req.URL, map[string]string{
39607		"parent": c.parent,
39608	})
39609	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39610}
39611
39612// Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate" call.
39613// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39614// Any non-2xx status code is an error. Response headers are in either
39615// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39616// was returned at all) in error.(*googleapi.Error).Header. Use
39617// googleapi.IsNotModified to check whether the returned error was
39618// because http.StatusNotModified was returned.
39619func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39620	gensupport.SetOptions(c.urlParams_, opts...)
39621	res, err := c.doRequest("json")
39622	if res != nil && res.StatusCode == http.StatusNotModified {
39623		if res.Body != nil {
39624			res.Body.Close()
39625		}
39626		return nil, &googleapi.Error{
39627			Code:   res.StatusCode,
39628			Header: res.Header,
39629		}
39630	}
39631	if err != nil {
39632		return nil, err
39633	}
39634	defer googleapi.CloseBody(res)
39635	if err := googleapi.CheckResponse(res); err != nil {
39636		return nil, err
39637	}
39638	ret := &GoogleLongrunningOperation{
39639		ServerResponse: googleapi.ServerResponse{
39640			Header:         res.Header,
39641			HTTPStatusCode: res.StatusCode,
39642		},
39643	}
39644	target := &ret
39645	if err := gensupport.DecodeResponse(target, res); err != nil {
39646		return nil, err
39647	}
39648	return ret, nil
39649	// {
39650	//   "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. Operation ",
39651	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/entityTypes/{entityTypesId}/entities:batchUpdate",
39652	//   "httpMethod": "POST",
39653	//   "id": "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate",
39654	//   "parameterOrder": [
39655	//     "parent"
39656	//   ],
39657	//   "parameters": {
39658	//     "parent": {
39659	//       "description": "Required. The name of the entity type to update or create entities in. Supported formats: - `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`",
39660	//       "location": "path",
39661	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/entityTypes/[^/]+$",
39662	//       "required": true,
39663	//       "type": "string"
39664	//     }
39665	//   },
39666	//   "path": "v2beta1/{+parent}/entities:batchUpdate",
39667	//   "request": {
39668	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest"
39669	//   },
39670	//   "response": {
39671	//     "$ref": "GoogleLongrunningOperation"
39672	//   },
39673	//   "scopes": [
39674	//     "https://www.googleapis.com/auth/cloud-platform",
39675	//     "https://www.googleapis.com/auth/dialogflow"
39676	//   ]
39677	// }
39678
39679}
39680
39681// method id "dialogflow.projects.locations.agent.environments.create":
39682
39683type ProjectsLocationsAgentEnvironmentsCreateCall struct {
39684	s                                       *Service
39685	parent                                  string
39686	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
39687	urlParams_                              gensupport.URLParams
39688	ctx_                                    context.Context
39689	header_                                 http.Header
39690}
39691
39692// Create: Creates an agent environment.
39693//
39694// - parent: The agent to create an environment for. Supported formats:
39695//   - `projects//agent` - `projects//locations//agent`.
39696func (r *ProjectsLocationsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsCreateCall {
39697	c := &ProjectsLocationsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39698	c.parent = parent
39699	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
39700	return c
39701}
39702
39703// EnvironmentId sets the optional parameter "environmentId": Required.
39704// The unique id of the new environment.
39705func (c *ProjectsLocationsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsAgentEnvironmentsCreateCall {
39706	c.urlParams_.Set("environmentId", environmentId)
39707	return c
39708}
39709
39710// Fields allows partial responses to be retrieved. See
39711// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39712// for more information.
39713func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsCreateCall {
39714	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39715	return c
39716}
39717
39718// Context sets the context to be used in this call's Do method. Any
39719// pending HTTP request will be aborted if the provided context is
39720// canceled.
39721func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsCreateCall {
39722	c.ctx_ = ctx
39723	return c
39724}
39725
39726// Header returns an http.Header that can be modified by the caller to
39727// add HTTP headers to the request.
39728func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Header() http.Header {
39729	if c.header_ == nil {
39730		c.header_ = make(http.Header)
39731	}
39732	return c.header_
39733}
39734
39735func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
39736	reqHeaders := make(http.Header)
39737	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
39738	for k, v := range c.header_ {
39739		reqHeaders[k] = v
39740	}
39741	reqHeaders.Set("User-Agent", c.s.userAgent())
39742	var body io.Reader = nil
39743	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
39744	if err != nil {
39745		return nil, err
39746	}
39747	reqHeaders.Set("Content-Type", "application/json")
39748	c.urlParams_.Set("alt", alt)
39749	c.urlParams_.Set("prettyPrint", "false")
39750	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
39751	urls += "?" + c.urlParams_.Encode()
39752	req, err := http.NewRequest("POST", urls, body)
39753	if err != nil {
39754		return nil, err
39755	}
39756	req.Header = reqHeaders
39757	googleapi.Expand(req.URL, map[string]string{
39758		"parent": c.parent,
39759	})
39760	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39761}
39762
39763// Do executes the "dialogflow.projects.locations.agent.environments.create" call.
39764// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
39765// be non-nil. Any non-2xx status code is an error. Response headers are
39766// in either
39767// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
39768// a response was returned at all) in error.(*googleapi.Error).Header.
39769// Use googleapi.IsNotModified to check whether the returned error was
39770// because http.StatusNotModified was returned.
39771func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
39772	gensupport.SetOptions(c.urlParams_, opts...)
39773	res, err := c.doRequest("json")
39774	if res != nil && res.StatusCode == http.StatusNotModified {
39775		if res.Body != nil {
39776			res.Body.Close()
39777		}
39778		return nil, &googleapi.Error{
39779			Code:   res.StatusCode,
39780			Header: res.Header,
39781		}
39782	}
39783	if err != nil {
39784		return nil, err
39785	}
39786	defer googleapi.CloseBody(res)
39787	if err := googleapi.CheckResponse(res); err != nil {
39788		return nil, err
39789	}
39790	ret := &GoogleCloudDialogflowV2beta1Environment{
39791		ServerResponse: googleapi.ServerResponse{
39792			Header:         res.Header,
39793			HTTPStatusCode: res.StatusCode,
39794		},
39795	}
39796	target := &ret
39797	if err := gensupport.DecodeResponse(target, res); err != nil {
39798		return nil, err
39799	}
39800	return ret, nil
39801	// {
39802	//   "description": "Creates an agent environment.",
39803	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments",
39804	//   "httpMethod": "POST",
39805	//   "id": "dialogflow.projects.locations.agent.environments.create",
39806	//   "parameterOrder": [
39807	//     "parent"
39808	//   ],
39809	//   "parameters": {
39810	//     "environmentId": {
39811	//       "description": "Required. The unique id of the new environment.",
39812	//       "location": "query",
39813	//       "type": "string"
39814	//     },
39815	//     "parent": {
39816	//       "description": "Required. The agent to create an environment for. Supported formats: - `projects//agent` - `projects//locations//agent`",
39817	//       "location": "path",
39818	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
39819	//       "required": true,
39820	//       "type": "string"
39821	//     }
39822	//   },
39823	//   "path": "v2beta1/{+parent}/environments",
39824	//   "request": {
39825	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
39826	//   },
39827	//   "response": {
39828	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
39829	//   },
39830	//   "scopes": [
39831	//     "https://www.googleapis.com/auth/cloud-platform",
39832	//     "https://www.googleapis.com/auth/dialogflow"
39833	//   ]
39834	// }
39835
39836}
39837
39838// method id "dialogflow.projects.locations.agent.environments.delete":
39839
39840type ProjectsLocationsAgentEnvironmentsDeleteCall struct {
39841	s          *Service
39842	name       string
39843	urlParams_ gensupport.URLParams
39844	ctx_       context.Context
39845	header_    http.Header
39846}
39847
39848// Delete: Deletes the specified agent environment.
39849//
39850// - name: The name of the environment to delete. / Format: -
39851//   `projects//agent/environments/` -
39852//   `projects//locations//agent/environments/`.
39853func (r *ProjectsLocationsAgentEnvironmentsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsDeleteCall {
39854	c := &ProjectsLocationsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39855	c.name = name
39856	return c
39857}
39858
39859// Fields allows partial responses to be retrieved. See
39860// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39861// for more information.
39862func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsDeleteCall {
39863	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39864	return c
39865}
39866
39867// Context sets the context to be used in this call's Do method. Any
39868// pending HTTP request will be aborted if the provided context is
39869// canceled.
39870func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsDeleteCall {
39871	c.ctx_ = ctx
39872	return c
39873}
39874
39875// Header returns an http.Header that can be modified by the caller to
39876// add HTTP headers to the request.
39877func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Header() http.Header {
39878	if c.header_ == nil {
39879		c.header_ = make(http.Header)
39880	}
39881	return c.header_
39882}
39883
39884func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
39885	reqHeaders := make(http.Header)
39886	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
39887	for k, v := range c.header_ {
39888		reqHeaders[k] = v
39889	}
39890	reqHeaders.Set("User-Agent", c.s.userAgent())
39891	var body io.Reader = nil
39892	c.urlParams_.Set("alt", alt)
39893	c.urlParams_.Set("prettyPrint", "false")
39894	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39895	urls += "?" + c.urlParams_.Encode()
39896	req, err := http.NewRequest("DELETE", urls, body)
39897	if err != nil {
39898		return nil, err
39899	}
39900	req.Header = reqHeaders
39901	googleapi.Expand(req.URL, map[string]string{
39902		"name": c.name,
39903	})
39904	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39905}
39906
39907// Do executes the "dialogflow.projects.locations.agent.environments.delete" call.
39908// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
39909// non-2xx status code is an error. Response headers are in either
39910// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
39911// returned at all) in error.(*googleapi.Error).Header. Use
39912// googleapi.IsNotModified to check whether the returned error was
39913// because http.StatusNotModified was returned.
39914func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
39915	gensupport.SetOptions(c.urlParams_, opts...)
39916	res, err := c.doRequest("json")
39917	if res != nil && res.StatusCode == http.StatusNotModified {
39918		if res.Body != nil {
39919			res.Body.Close()
39920		}
39921		return nil, &googleapi.Error{
39922			Code:   res.StatusCode,
39923			Header: res.Header,
39924		}
39925	}
39926	if err != nil {
39927		return nil, err
39928	}
39929	defer googleapi.CloseBody(res)
39930	if err := googleapi.CheckResponse(res); err != nil {
39931		return nil, err
39932	}
39933	ret := &GoogleProtobufEmpty{
39934		ServerResponse: googleapi.ServerResponse{
39935			Header:         res.Header,
39936			HTTPStatusCode: res.StatusCode,
39937		},
39938	}
39939	target := &ret
39940	if err := gensupport.DecodeResponse(target, res); err != nil {
39941		return nil, err
39942	}
39943	return ret, nil
39944	// {
39945	//   "description": "Deletes the specified agent environment.",
39946	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}",
39947	//   "httpMethod": "DELETE",
39948	//   "id": "dialogflow.projects.locations.agent.environments.delete",
39949	//   "parameterOrder": [
39950	//     "name"
39951	//   ],
39952	//   "parameters": {
39953	//     "name": {
39954	//       "description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
39955	//       "location": "path",
39956	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
39957	//       "required": true,
39958	//       "type": "string"
39959	//     }
39960	//   },
39961	//   "path": "v2beta1/{+name}",
39962	//   "response": {
39963	//     "$ref": "GoogleProtobufEmpty"
39964	//   },
39965	//   "scopes": [
39966	//     "https://www.googleapis.com/auth/cloud-platform",
39967	//     "https://www.googleapis.com/auth/dialogflow"
39968	//   ]
39969	// }
39970
39971}
39972
39973// method id "dialogflow.projects.locations.agent.environments.get":
39974
39975type ProjectsLocationsAgentEnvironmentsGetCall struct {
39976	s            *Service
39977	name         string
39978	urlParams_   gensupport.URLParams
39979	ifNoneMatch_ string
39980	ctx_         context.Context
39981	header_      http.Header
39982}
39983
39984// Get: Retrieves the specified agent environment.
39985//
39986// - name: The name of the environment. Supported formats: -
39987//   `projects//agent/environments/` -
39988//   `projects//locations//agent/environments/`.
39989func (r *ProjectsLocationsAgentEnvironmentsService) Get(name string) *ProjectsLocationsAgentEnvironmentsGetCall {
39990	c := &ProjectsLocationsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39991	c.name = name
39992	return c
39993}
39994
39995// Fields allows partial responses to be retrieved. See
39996// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39997// for more information.
39998func (c *ProjectsLocationsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetCall {
39999	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40000	return c
40001}
40002
40003// IfNoneMatch sets the optional parameter which makes the operation
40004// fail if the object's ETag matches the given value. This is useful for
40005// getting updates only after the object has changed since the last
40006// request. Use googleapi.IsNotModified to check whether the response
40007// error from Do is the result of In-None-Match.
40008func (c *ProjectsLocationsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetCall {
40009	c.ifNoneMatch_ = entityTag
40010	return c
40011}
40012
40013// Context sets the context to be used in this call's Do method. Any
40014// pending HTTP request will be aborted if the provided context is
40015// canceled.
40016func (c *ProjectsLocationsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetCall {
40017	c.ctx_ = ctx
40018	return c
40019}
40020
40021// Header returns an http.Header that can be modified by the caller to
40022// add HTTP headers to the request.
40023func (c *ProjectsLocationsAgentEnvironmentsGetCall) Header() http.Header {
40024	if c.header_ == nil {
40025		c.header_ = make(http.Header)
40026	}
40027	return c.header_
40028}
40029
40030func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
40031	reqHeaders := make(http.Header)
40032	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
40033	for k, v := range c.header_ {
40034		reqHeaders[k] = v
40035	}
40036	reqHeaders.Set("User-Agent", c.s.userAgent())
40037	if c.ifNoneMatch_ != "" {
40038		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40039	}
40040	var body io.Reader = nil
40041	c.urlParams_.Set("alt", alt)
40042	c.urlParams_.Set("prettyPrint", "false")
40043	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40044	urls += "?" + c.urlParams_.Encode()
40045	req, err := http.NewRequest("GET", urls, body)
40046	if err != nil {
40047		return nil, err
40048	}
40049	req.Header = reqHeaders
40050	googleapi.Expand(req.URL, map[string]string{
40051		"name": c.name,
40052	})
40053	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40054}
40055
40056// Do executes the "dialogflow.projects.locations.agent.environments.get" call.
40057// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
40058// be non-nil. Any non-2xx status code is an error. Response headers are
40059// in either
40060// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
40061// a response was returned at all) in error.(*googleapi.Error).Header.
40062// Use googleapi.IsNotModified to check whether the returned error was
40063// because http.StatusNotModified was returned.
40064func (c *ProjectsLocationsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
40065	gensupport.SetOptions(c.urlParams_, opts...)
40066	res, err := c.doRequest("json")
40067	if res != nil && res.StatusCode == http.StatusNotModified {
40068		if res.Body != nil {
40069			res.Body.Close()
40070		}
40071		return nil, &googleapi.Error{
40072			Code:   res.StatusCode,
40073			Header: res.Header,
40074		}
40075	}
40076	if err != nil {
40077		return nil, err
40078	}
40079	defer googleapi.CloseBody(res)
40080	if err := googleapi.CheckResponse(res); err != nil {
40081		return nil, err
40082	}
40083	ret := &GoogleCloudDialogflowV2beta1Environment{
40084		ServerResponse: googleapi.ServerResponse{
40085			Header:         res.Header,
40086			HTTPStatusCode: res.StatusCode,
40087		},
40088	}
40089	target := &ret
40090	if err := gensupport.DecodeResponse(target, res); err != nil {
40091		return nil, err
40092	}
40093	return ret, nil
40094	// {
40095	//   "description": "Retrieves the specified agent environment.",
40096	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}",
40097	//   "httpMethod": "GET",
40098	//   "id": "dialogflow.projects.locations.agent.environments.get",
40099	//   "parameterOrder": [
40100	//     "name"
40101	//   ],
40102	//   "parameters": {
40103	//     "name": {
40104	//       "description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
40105	//       "location": "path",
40106	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
40107	//       "required": true,
40108	//       "type": "string"
40109	//     }
40110	//   },
40111	//   "path": "v2beta1/{+name}",
40112	//   "response": {
40113	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
40114	//   },
40115	//   "scopes": [
40116	//     "https://www.googleapis.com/auth/cloud-platform",
40117	//     "https://www.googleapis.com/auth/dialogflow"
40118	//   ]
40119	// }
40120
40121}
40122
40123// method id "dialogflow.projects.locations.agent.environments.getHistory":
40124
40125type ProjectsLocationsAgentEnvironmentsGetHistoryCall struct {
40126	s            *Service
40127	parent       string
40128	urlParams_   gensupport.URLParams
40129	ifNoneMatch_ string
40130	ctx_         context.Context
40131	header_      http.Header
40132}
40133
40134// GetHistory: Gets the history of the specified environment.
40135//
40136// - parent: The name of the environment to retrieve history for.
40137//   Supported formats: - `projects//agent/environments/` -
40138//   `projects//locations//agent/environments/`.
40139func (r *ProjectsLocationsAgentEnvironmentsService) GetHistory(parent string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40140	c := &ProjectsLocationsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40141	c.parent = parent
40142	return c
40143}
40144
40145// PageSize sets the optional parameter "pageSize": The maximum number
40146// of items to return in a single page. By default 100 and at most 1000.
40147func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40148	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40149	return c
40150}
40151
40152// PageToken sets the optional parameter "pageToken": The
40153// next_page_token value returned from a previous list request.
40154func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40155	c.urlParams_.Set("pageToken", pageToken)
40156	return c
40157}
40158
40159// Fields allows partial responses to be retrieved. See
40160// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40161// for more information.
40162func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40163	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40164	return c
40165}
40166
40167// IfNoneMatch sets the optional parameter which makes the operation
40168// fail if the object's ETag matches the given value. This is useful for
40169// getting updates only after the object has changed since the last
40170// request. Use googleapi.IsNotModified to check whether the response
40171// error from Do is the result of In-None-Match.
40172func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40173	c.ifNoneMatch_ = entityTag
40174	return c
40175}
40176
40177// Context sets the context to be used in this call's Do method. Any
40178// pending HTTP request will be aborted if the provided context is
40179// canceled.
40180func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
40181	c.ctx_ = ctx
40182	return c
40183}
40184
40185// Header returns an http.Header that can be modified by the caller to
40186// add HTTP headers to the request.
40187func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Header() http.Header {
40188	if c.header_ == nil {
40189		c.header_ = make(http.Header)
40190	}
40191	return c.header_
40192}
40193
40194func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
40195	reqHeaders := make(http.Header)
40196	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
40197	for k, v := range c.header_ {
40198		reqHeaders[k] = v
40199	}
40200	reqHeaders.Set("User-Agent", c.s.userAgent())
40201	if c.ifNoneMatch_ != "" {
40202		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40203	}
40204	var body io.Reader = nil
40205	c.urlParams_.Set("alt", alt)
40206	c.urlParams_.Set("prettyPrint", "false")
40207	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
40208	urls += "?" + c.urlParams_.Encode()
40209	req, err := http.NewRequest("GET", urls, body)
40210	if err != nil {
40211		return nil, err
40212	}
40213	req.Header = reqHeaders
40214	googleapi.Expand(req.URL, map[string]string{
40215		"parent": c.parent,
40216	})
40217	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40218}
40219
40220// Do executes the "dialogflow.projects.locations.agent.environments.getHistory" call.
40221// Exactly one of *GoogleCloudDialogflowV2beta1EnvironmentHistory or
40222// error will be non-nil. Any non-2xx status code is an error. Response
40223// headers are in either
40224// *GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header
40225// or (if a response was returned at all) in
40226// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40227// whether the returned error was because http.StatusNotModified was
40228// returned.
40229func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
40230	gensupport.SetOptions(c.urlParams_, opts...)
40231	res, err := c.doRequest("json")
40232	if res != nil && res.StatusCode == http.StatusNotModified {
40233		if res.Body != nil {
40234			res.Body.Close()
40235		}
40236		return nil, &googleapi.Error{
40237			Code:   res.StatusCode,
40238			Header: res.Header,
40239		}
40240	}
40241	if err != nil {
40242		return nil, err
40243	}
40244	defer googleapi.CloseBody(res)
40245	if err := googleapi.CheckResponse(res); err != nil {
40246		return nil, err
40247	}
40248	ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
40249		ServerResponse: googleapi.ServerResponse{
40250			Header:         res.Header,
40251			HTTPStatusCode: res.StatusCode,
40252		},
40253	}
40254	target := &ret
40255	if err := gensupport.DecodeResponse(target, res); err != nil {
40256		return nil, err
40257	}
40258	return ret, nil
40259	// {
40260	//   "description": "Gets the history of the specified environment.",
40261	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/history",
40262	//   "httpMethod": "GET",
40263	//   "id": "dialogflow.projects.locations.agent.environments.getHistory",
40264	//   "parameterOrder": [
40265	//     "parent"
40266	//   ],
40267	//   "parameters": {
40268	//     "pageSize": {
40269	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
40270	//       "format": "int32",
40271	//       "location": "query",
40272	//       "type": "integer"
40273	//     },
40274	//     "pageToken": {
40275	//       "description": "Optional. The next_page_token value returned from a previous list request.",
40276	//       "location": "query",
40277	//       "type": "string"
40278	//     },
40279	//     "parent": {
40280	//       "description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
40281	//       "location": "path",
40282	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
40283	//       "required": true,
40284	//       "type": "string"
40285	//     }
40286	//   },
40287	//   "path": "v2beta1/{+parent}/history",
40288	//   "response": {
40289	//     "$ref": "GoogleCloudDialogflowV2beta1EnvironmentHistory"
40290	//   },
40291	//   "scopes": [
40292	//     "https://www.googleapis.com/auth/cloud-platform",
40293	//     "https://www.googleapis.com/auth/dialogflow"
40294	//   ]
40295	// }
40296
40297}
40298
40299// Pages invokes f for each page of results.
40300// A non-nil error returned from f will halt the iteration.
40301// The provided context supersedes any context provided to the Context method.
40302func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
40303	c.ctx_ = ctx
40304	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40305	for {
40306		x, err := c.Do()
40307		if err != nil {
40308			return err
40309		}
40310		if err := f(x); err != nil {
40311			return err
40312		}
40313		if x.NextPageToken == "" {
40314			return nil
40315		}
40316		c.PageToken(x.NextPageToken)
40317	}
40318}
40319
40320// method id "dialogflow.projects.locations.agent.environments.list":
40321
40322type ProjectsLocationsAgentEnvironmentsListCall struct {
40323	s            *Service
40324	parent       string
40325	urlParams_   gensupport.URLParams
40326	ifNoneMatch_ string
40327	ctx_         context.Context
40328	header_      http.Header
40329}
40330
40331// List: Returns the list of all non-draft environments of the specified
40332// agent.
40333//
40334// - parent: The agent to list all environments from. Format: -
40335//   `projects//agent` - `projects//locations//agent`.
40336func (r *ProjectsLocationsAgentEnvironmentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsListCall {
40337	c := &ProjectsLocationsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40338	c.parent = parent
40339	return c
40340}
40341
40342// PageSize sets the optional parameter "pageSize": The maximum number
40343// of items to return in a single page. By default 100 and at most 1000.
40344func (c *ProjectsLocationsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsListCall {
40345	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40346	return c
40347}
40348
40349// PageToken sets the optional parameter "pageToken": The
40350// next_page_token value returned from a previous list request.
40351func (c *ProjectsLocationsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsListCall {
40352	c.urlParams_.Set("pageToken", pageToken)
40353	return c
40354}
40355
40356// Fields allows partial responses to be retrieved. See
40357// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40358// for more information.
40359func (c *ProjectsLocationsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsListCall {
40360	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40361	return c
40362}
40363
40364// IfNoneMatch sets the optional parameter which makes the operation
40365// fail if the object's ETag matches the given value. This is useful for
40366// getting updates only after the object has changed since the last
40367// request. Use googleapi.IsNotModified to check whether the response
40368// error from Do is the result of In-None-Match.
40369func (c *ProjectsLocationsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsListCall {
40370	c.ifNoneMatch_ = entityTag
40371	return c
40372}
40373
40374// Context sets the context to be used in this call's Do method. Any
40375// pending HTTP request will be aborted if the provided context is
40376// canceled.
40377func (c *ProjectsLocationsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsListCall {
40378	c.ctx_ = ctx
40379	return c
40380}
40381
40382// Header returns an http.Header that can be modified by the caller to
40383// add HTTP headers to the request.
40384func (c *ProjectsLocationsAgentEnvironmentsListCall) Header() http.Header {
40385	if c.header_ == nil {
40386		c.header_ = make(http.Header)
40387	}
40388	return c.header_
40389}
40390
40391func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
40392	reqHeaders := make(http.Header)
40393	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
40394	for k, v := range c.header_ {
40395		reqHeaders[k] = v
40396	}
40397	reqHeaders.Set("User-Agent", c.s.userAgent())
40398	if c.ifNoneMatch_ != "" {
40399		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40400	}
40401	var body io.Reader = nil
40402	c.urlParams_.Set("alt", alt)
40403	c.urlParams_.Set("prettyPrint", "false")
40404	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
40405	urls += "?" + c.urlParams_.Encode()
40406	req, err := http.NewRequest("GET", urls, body)
40407	if err != nil {
40408		return nil, err
40409	}
40410	req.Header = reqHeaders
40411	googleapi.Expand(req.URL, map[string]string{
40412		"parent": c.parent,
40413	})
40414	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40415}
40416
40417// Do executes the "dialogflow.projects.locations.agent.environments.list" call.
40418// Exactly one of *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
40419// or error will be non-nil. Any non-2xx status code is an error.
40420// Response headers are in either
40421// *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.H
40422// eader or (if a response was returned at all) in
40423// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40424// whether the returned error was because http.StatusNotModified was
40425// returned.
40426func (c *ProjectsLocationsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
40427	gensupport.SetOptions(c.urlParams_, opts...)
40428	res, err := c.doRequest("json")
40429	if res != nil && res.StatusCode == http.StatusNotModified {
40430		if res.Body != nil {
40431			res.Body.Close()
40432		}
40433		return nil, &googleapi.Error{
40434			Code:   res.StatusCode,
40435			Header: res.Header,
40436		}
40437	}
40438	if err != nil {
40439		return nil, err
40440	}
40441	defer googleapi.CloseBody(res)
40442	if err := googleapi.CheckResponse(res); err != nil {
40443		return nil, err
40444	}
40445	ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
40446		ServerResponse: googleapi.ServerResponse{
40447			Header:         res.Header,
40448			HTTPStatusCode: res.StatusCode,
40449		},
40450	}
40451	target := &ret
40452	if err := gensupport.DecodeResponse(target, res); err != nil {
40453		return nil, err
40454	}
40455	return ret, nil
40456	// {
40457	//   "description": "Returns the list of all non-draft environments of the specified agent.",
40458	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments",
40459	//   "httpMethod": "GET",
40460	//   "id": "dialogflow.projects.locations.agent.environments.list",
40461	//   "parameterOrder": [
40462	//     "parent"
40463	//   ],
40464	//   "parameters": {
40465	//     "pageSize": {
40466	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
40467	//       "format": "int32",
40468	//       "location": "query",
40469	//       "type": "integer"
40470	//     },
40471	//     "pageToken": {
40472	//       "description": "Optional. The next_page_token value returned from a previous list request.",
40473	//       "location": "query",
40474	//       "type": "string"
40475	//     },
40476	//     "parent": {
40477	//       "description": "Required. The agent to list all environments from. Format: - `projects//agent` - `projects//locations//agent`",
40478	//       "location": "path",
40479	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
40480	//       "required": true,
40481	//       "type": "string"
40482	//     }
40483	//   },
40484	//   "path": "v2beta1/{+parent}/environments",
40485	//   "response": {
40486	//     "$ref": "GoogleCloudDialogflowV2beta1ListEnvironmentsResponse"
40487	//   },
40488	//   "scopes": [
40489	//     "https://www.googleapis.com/auth/cloud-platform",
40490	//     "https://www.googleapis.com/auth/dialogflow"
40491	//   ]
40492	// }
40493
40494}
40495
40496// Pages invokes f for each page of results.
40497// A non-nil error returned from f will halt the iteration.
40498// The provided context supersedes any context provided to the Context method.
40499func (c *ProjectsLocationsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
40500	c.ctx_ = ctx
40501	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40502	for {
40503		x, err := c.Do()
40504		if err != nil {
40505			return err
40506		}
40507		if err := f(x); err != nil {
40508			return err
40509		}
40510		if x.NextPageToken == "" {
40511			return nil
40512		}
40513		c.PageToken(x.NextPageToken)
40514	}
40515}
40516
40517// method id "dialogflow.projects.locations.agent.environments.patch":
40518
40519type ProjectsLocationsAgentEnvironmentsPatchCall struct {
40520	s                                       *Service
40521	nameid                                  string
40522	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
40523	urlParams_                              gensupport.URLParams
40524	ctx_                                    context.Context
40525	header_                                 http.Header
40526}
40527
40528// Patch: Updates the specified agent environment. This method allows
40529// you to deploy new agent versions into the environment. When an
40530// environment is pointed to a new agent version by setting
40531// `environment.agent_version`, the environment is temporarily set to
40532// the `LOADING` state. During that time, the environment keeps on
40533// serving the previous version of the agent. After the new agent
40534// version is done loading, the environment is set back to the `RUNNING`
40535// state. You can use "-" as Environment ID in environment name to
40536// update version in "draft" environment. WARNING: this will negate all
40537// recent changes to draft and can't be undone. You may want to save the
40538// draft to a version before calling this function.
40539//
40540// - name: Output only. The unique identifier of this agent environment.
40541//   Supported formats: - `projects//agent/environments/` -
40542//   `projects//locations//agent/environments/`.
40543func (r *ProjectsLocationsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsPatchCall {
40544	c := &ProjectsLocationsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40545	c.nameid = nameid
40546	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
40547	return c
40548}
40549
40550// AllowLoadToDraftAndDiscardChanges sets the optional parameter
40551// "allowLoadToDraftAndDiscardChanges": This field is used to prevent
40552// accidental overwrite of the draft environment, which is an operation
40553// that cannot be undone. To confirm that the caller desires this
40554// overwrite, this field must be explicitly set to true when updating
40555// the draft environment (environment ID = `-`).
40556func (c *ProjectsLocationsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsLocationsAgentEnvironmentsPatchCall {
40557	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
40558	return c
40559}
40560
40561// UpdateMask sets the optional parameter "updateMask": Required. The
40562// mask to control which fields get updated.
40563func (c *ProjectsLocationsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsPatchCall {
40564	c.urlParams_.Set("updateMask", updateMask)
40565	return c
40566}
40567
40568// Fields allows partial responses to be retrieved. See
40569// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40570// for more information.
40571func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsPatchCall {
40572	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40573	return c
40574}
40575
40576// Context sets the context to be used in this call's Do method. Any
40577// pending HTTP request will be aborted if the provided context is
40578// canceled.
40579func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsPatchCall {
40580	c.ctx_ = ctx
40581	return c
40582}
40583
40584// Header returns an http.Header that can be modified by the caller to
40585// add HTTP headers to the request.
40586func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Header() http.Header {
40587	if c.header_ == nil {
40588		c.header_ = make(http.Header)
40589	}
40590	return c.header_
40591}
40592
40593func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
40594	reqHeaders := make(http.Header)
40595	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
40596	for k, v := range c.header_ {
40597		reqHeaders[k] = v
40598	}
40599	reqHeaders.Set("User-Agent", c.s.userAgent())
40600	var body io.Reader = nil
40601	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
40602	if err != nil {
40603		return nil, err
40604	}
40605	reqHeaders.Set("Content-Type", "application/json")
40606	c.urlParams_.Set("alt", alt)
40607	c.urlParams_.Set("prettyPrint", "false")
40608	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40609	urls += "?" + c.urlParams_.Encode()
40610	req, err := http.NewRequest("PATCH", urls, body)
40611	if err != nil {
40612		return nil, err
40613	}
40614	req.Header = reqHeaders
40615	googleapi.Expand(req.URL, map[string]string{
40616		"name": c.nameid,
40617	})
40618	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40619}
40620
40621// Do executes the "dialogflow.projects.locations.agent.environments.patch" call.
40622// Exactly one of *GoogleCloudDialogflowV2beta1Environment or error will
40623// be non-nil. Any non-2xx status code is an error. Response headers are
40624// in either
40625// *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if
40626// a response was returned at all) in error.(*googleapi.Error).Header.
40627// Use googleapi.IsNotModified to check whether the returned error was
40628// because http.StatusNotModified was returned.
40629func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
40630	gensupport.SetOptions(c.urlParams_, opts...)
40631	res, err := c.doRequest("json")
40632	if res != nil && res.StatusCode == http.StatusNotModified {
40633		if res.Body != nil {
40634			res.Body.Close()
40635		}
40636		return nil, &googleapi.Error{
40637			Code:   res.StatusCode,
40638			Header: res.Header,
40639		}
40640	}
40641	if err != nil {
40642		return nil, err
40643	}
40644	defer googleapi.CloseBody(res)
40645	if err := googleapi.CheckResponse(res); err != nil {
40646		return nil, err
40647	}
40648	ret := &GoogleCloudDialogflowV2beta1Environment{
40649		ServerResponse: googleapi.ServerResponse{
40650			Header:         res.Header,
40651			HTTPStatusCode: res.StatusCode,
40652		},
40653	}
40654	target := &ret
40655	if err := gensupport.DecodeResponse(target, res); err != nil {
40656		return nil, err
40657	}
40658	return ret, nil
40659	// {
40660	//   "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.",
40661	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}",
40662	//   "httpMethod": "PATCH",
40663	//   "id": "dialogflow.projects.locations.agent.environments.patch",
40664	//   "parameterOrder": [
40665	//     "name"
40666	//   ],
40667	//   "parameters": {
40668	//     "allowLoadToDraftAndDiscardChanges": {
40669	//       "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 = `-`).",
40670	//       "location": "query",
40671	//       "type": "boolean"
40672	//     },
40673	//     "name": {
40674	//       "description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
40675	//       "location": "path",
40676	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
40677	//       "required": true,
40678	//       "type": "string"
40679	//     },
40680	//     "updateMask": {
40681	//       "description": "Required. The mask to control which fields get updated.",
40682	//       "format": "google-fieldmask",
40683	//       "location": "query",
40684	//       "type": "string"
40685	//     }
40686	//   },
40687	//   "path": "v2beta1/{+name}",
40688	//   "request": {
40689	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
40690	//   },
40691	//   "response": {
40692	//     "$ref": "GoogleCloudDialogflowV2beta1Environment"
40693	//   },
40694	//   "scopes": [
40695	//     "https://www.googleapis.com/auth/cloud-platform",
40696	//     "https://www.googleapis.com/auth/dialogflow"
40697	//   ]
40698	// }
40699
40700}
40701
40702// method id "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts":
40703
40704type ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
40705	s          *Service
40706	parent     string
40707	urlParams_ gensupport.URLParams
40708	ctx_       context.Context
40709	header_    http.Header
40710}
40711
40712// DeleteContexts: Deletes all active contexts in the specified session.
40713//
40714// - parent: The name of the session to delete all contexts from.
40715//   Supported formats: - `projects//agent/sessions/, -
40716//   `projects//locations//agent/sessions/`, -
40717//   `projects//agent/environments//users//sessions/`, -
40718//   `projects//locations//agent/environments//users//sessions/`, If
40719//   `Location ID` is not specified we assume default 'us' location. If
40720//   `Environment ID` is not specified we assume default 'draft'
40721//   environment. If `User ID` is not specified, we assume default '-'
40722//   user.
40723func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
40724	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40725	c.parent = parent
40726	return c
40727}
40728
40729// Fields allows partial responses to be retrieved. See
40730// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40731// for more information.
40732func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
40733	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40734	return c
40735}
40736
40737// Context sets the context to be used in this call's Do method. Any
40738// pending HTTP request will be aborted if the provided context is
40739// canceled.
40740func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
40741	c.ctx_ = ctx
40742	return c
40743}
40744
40745// Header returns an http.Header that can be modified by the caller to
40746// add HTTP headers to the request.
40747func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
40748	if c.header_ == nil {
40749		c.header_ = make(http.Header)
40750	}
40751	return c.header_
40752}
40753
40754func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
40755	reqHeaders := make(http.Header)
40756	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
40757	for k, v := range c.header_ {
40758		reqHeaders[k] = v
40759	}
40760	reqHeaders.Set("User-Agent", c.s.userAgent())
40761	var body io.Reader = nil
40762	c.urlParams_.Set("alt", alt)
40763	c.urlParams_.Set("prettyPrint", "false")
40764	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
40765	urls += "?" + c.urlParams_.Encode()
40766	req, err := http.NewRequest("DELETE", urls, body)
40767	if err != nil {
40768		return nil, err
40769	}
40770	req.Header = reqHeaders
40771	googleapi.Expand(req.URL, map[string]string{
40772		"parent": c.parent,
40773	})
40774	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40775}
40776
40777// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts" call.
40778// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
40779// non-2xx status code is an error. Response headers are in either
40780// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
40781// returned at all) in error.(*googleapi.Error).Header. Use
40782// googleapi.IsNotModified to check whether the returned error was
40783// because http.StatusNotModified was returned.
40784func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
40785	gensupport.SetOptions(c.urlParams_, opts...)
40786	res, err := c.doRequest("json")
40787	if res != nil && res.StatusCode == http.StatusNotModified {
40788		if res.Body != nil {
40789			res.Body.Close()
40790		}
40791		return nil, &googleapi.Error{
40792			Code:   res.StatusCode,
40793			Header: res.Header,
40794		}
40795	}
40796	if err != nil {
40797		return nil, err
40798	}
40799	defer googleapi.CloseBody(res)
40800	if err := googleapi.CheckResponse(res); err != nil {
40801		return nil, err
40802	}
40803	ret := &GoogleProtobufEmpty{
40804		ServerResponse: googleapi.ServerResponse{
40805			Header:         res.Header,
40806			HTTPStatusCode: res.StatusCode,
40807		},
40808	}
40809	target := &ret
40810	if err := gensupport.DecodeResponse(target, res); err != nil {
40811		return nil, err
40812	}
40813	return ret, nil
40814	// {
40815	//   "description": "Deletes all active contexts in the specified session.",
40816	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
40817	//   "httpMethod": "DELETE",
40818	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts",
40819	//   "parameterOrder": [
40820	//     "parent"
40821	//   ],
40822	//   "parameters": {
40823	//     "parent": {
40824	//       "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.",
40825	//       "location": "path",
40826	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
40827	//       "required": true,
40828	//       "type": "string"
40829	//     }
40830	//   },
40831	//   "path": "v2beta1/{+parent}/contexts",
40832	//   "response": {
40833	//     "$ref": "GoogleProtobufEmpty"
40834	//   },
40835	//   "scopes": [
40836	//     "https://www.googleapis.com/auth/cloud-platform",
40837	//     "https://www.googleapis.com/auth/dialogflow"
40838	//   ]
40839	// }
40840
40841}
40842
40843// method id "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent":
40844
40845type ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
40846	s                                               *Service
40847	sessionid                                       string
40848	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
40849	urlParams_                                      gensupport.URLParams
40850	ctx_                                            context.Context
40851	header_                                         http.Header
40852}
40853
40854// DetectIntent: Processes a natural language query and returns
40855// structured, actionable data as a result. This method is not
40856// idempotent, because it may cause contexts and session entity types to
40857// be updated, which in turn might affect results of future queries.
40858// Note: Always use agent versions for production traffic. See Versions
40859// and environments
40860// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
40861//
40862// - session: The name of the session this query is sent to. Supported
40863//   formats: - `projects//agent/sessions/, -
40864//   `projects//locations//agent/sessions/`, -
40865//   `projects//agent/environments//users//sessions/`, -
40866//   `projects//locations//agent/environments//users//sessions/`, If
40867//   `Location ID` is not specified we assume default 'us' location. If
40868//   `Environment ID` is not specified, we assume default 'draft'
40869//   environment (`Environment ID` might be referred to as environment
40870//   name at some places). If `User ID` is not specified, we are using
40871//   "-". It's up to the API caller to choose an appropriate `Session
40872//   ID` and `User Id`. They can be a random number or some type of user
40873//   and session identifiers (preferably hashed). The length of the
40874//   `Session ID` and `User ID` must not exceed 36 characters. For more
40875//   information, see the API interactions guide
40876//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
40877//   Always use agent versions for production traffic. See Versions and
40878//   environments
40879//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
40880func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
40881	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40882	c.sessionid = sessionid
40883	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
40884	return c
40885}
40886
40887// Fields allows partial responses to be retrieved. See
40888// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40889// for more information.
40890func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
40891	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40892	return c
40893}
40894
40895// Context sets the context to be used in this call's Do method. Any
40896// pending HTTP request will be aborted if the provided context is
40897// canceled.
40898func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
40899	c.ctx_ = ctx
40900	return c
40901}
40902
40903// Header returns an http.Header that can be modified by the caller to
40904// add HTTP headers to the request.
40905func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
40906	if c.header_ == nil {
40907		c.header_ = make(http.Header)
40908	}
40909	return c.header_
40910}
40911
40912func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
40913	reqHeaders := make(http.Header)
40914	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
40915	for k, v := range c.header_ {
40916		reqHeaders[k] = v
40917	}
40918	reqHeaders.Set("User-Agent", c.s.userAgent())
40919	var body io.Reader = nil
40920	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
40921	if err != nil {
40922		return nil, err
40923	}
40924	reqHeaders.Set("Content-Type", "application/json")
40925	c.urlParams_.Set("alt", alt)
40926	c.urlParams_.Set("prettyPrint", "false")
40927	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
40928	urls += "?" + c.urlParams_.Encode()
40929	req, err := http.NewRequest("POST", urls, body)
40930	if err != nil {
40931		return nil, err
40932	}
40933	req.Header = reqHeaders
40934	googleapi.Expand(req.URL, map[string]string{
40935		"session": c.sessionid,
40936	})
40937	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40938}
40939
40940// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent" call.
40941// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
40942// error will be non-nil. Any non-2xx status code is an error. Response
40943// headers are in either
40944// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
40945// r or (if a response was returned at all) in
40946// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40947// whether the returned error was because http.StatusNotModified was
40948// returned.
40949func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
40950	gensupport.SetOptions(c.urlParams_, opts...)
40951	res, err := c.doRequest("json")
40952	if res != nil && res.StatusCode == http.StatusNotModified {
40953		if res.Body != nil {
40954			res.Body.Close()
40955		}
40956		return nil, &googleapi.Error{
40957			Code:   res.StatusCode,
40958			Header: res.Header,
40959		}
40960	}
40961	if err != nil {
40962		return nil, err
40963	}
40964	defer googleapi.CloseBody(res)
40965	if err := googleapi.CheckResponse(res); err != nil {
40966		return nil, err
40967	}
40968	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
40969		ServerResponse: googleapi.ServerResponse{
40970			Header:         res.Header,
40971			HTTPStatusCode: res.StatusCode,
40972		},
40973	}
40974	target := &ret
40975	if err := gensupport.DecodeResponse(target, res); err != nil {
40976		return nil, err
40977	}
40978	return ret, nil
40979	// {
40980	//   "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).",
40981	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}:detectIntent",
40982	//   "httpMethod": "POST",
40983	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent",
40984	//   "parameterOrder": [
40985	//     "session"
40986	//   ],
40987	//   "parameters": {
40988	//     "session": {
40989	//       "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).",
40990	//       "location": "path",
40991	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
40992	//       "required": true,
40993	//       "type": "string"
40994	//     }
40995	//   },
40996	//   "path": "v2beta1/{+session}:detectIntent",
40997	//   "request": {
40998	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
40999	//   },
41000	//   "response": {
41001	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
41002	//   },
41003	//   "scopes": [
41004	//     "https://www.googleapis.com/auth/cloud-platform",
41005	//     "https://www.googleapis.com/auth/dialogflow"
41006	//   ]
41007	// }
41008
41009}
41010
41011// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create":
41012
41013type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
41014	s                                   *Service
41015	parent                              string
41016	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
41017	urlParams_                          gensupport.URLParams
41018	ctx_                                context.Context
41019	header_                             http.Header
41020}
41021
41022// Create: Creates a context. If the specified context already exists,
41023// overrides the context.
41024//
41025// - parent: The session to create a context for. Supported formats: -
41026//   `projects//agent/sessions/, -
41027//   `projects//locations//agent/sessions/`, -
41028//   `projects//agent/environments//users//sessions/`, -
41029//   `projects//locations//agent/environments//users//sessions/`, If
41030//   `Location ID` is not specified we assume default 'us' location. If
41031//   `Environment ID` is not specified, we assume default 'draft'
41032//   environment. If `User ID` is not specified, we assume default '-'
41033//   user.
41034func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
41035	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41036	c.parent = parent
41037	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
41038	return c
41039}
41040
41041// Fields allows partial responses to be retrieved. See
41042// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41043// for more information.
41044func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
41045	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41046	return c
41047}
41048
41049// Context sets the context to be used in this call's Do method. Any
41050// pending HTTP request will be aborted if the provided context is
41051// canceled.
41052func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
41053	c.ctx_ = ctx
41054	return c
41055}
41056
41057// Header returns an http.Header that can be modified by the caller to
41058// add HTTP headers to the request.
41059func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
41060	if c.header_ == nil {
41061		c.header_ = make(http.Header)
41062	}
41063	return c.header_
41064}
41065
41066func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
41067	reqHeaders := make(http.Header)
41068	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
41069	for k, v := range c.header_ {
41070		reqHeaders[k] = v
41071	}
41072	reqHeaders.Set("User-Agent", c.s.userAgent())
41073	var body io.Reader = nil
41074	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
41075	if err != nil {
41076		return nil, err
41077	}
41078	reqHeaders.Set("Content-Type", "application/json")
41079	c.urlParams_.Set("alt", alt)
41080	c.urlParams_.Set("prettyPrint", "false")
41081	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
41082	urls += "?" + c.urlParams_.Encode()
41083	req, err := http.NewRequest("POST", urls, body)
41084	if err != nil {
41085		return nil, err
41086	}
41087	req.Header = reqHeaders
41088	googleapi.Expand(req.URL, map[string]string{
41089		"parent": c.parent,
41090	})
41091	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41092}
41093
41094// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create" call.
41095// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
41096// non-nil. Any non-2xx status code is an error. Response headers are in
41097// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
41098// (if a response was returned at all) in
41099// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41100// whether the returned error was because http.StatusNotModified was
41101// returned.
41102func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
41103	gensupport.SetOptions(c.urlParams_, opts...)
41104	res, err := c.doRequest("json")
41105	if res != nil && res.StatusCode == http.StatusNotModified {
41106		if res.Body != nil {
41107			res.Body.Close()
41108		}
41109		return nil, &googleapi.Error{
41110			Code:   res.StatusCode,
41111			Header: res.Header,
41112		}
41113	}
41114	if err != nil {
41115		return nil, err
41116	}
41117	defer googleapi.CloseBody(res)
41118	if err := googleapi.CheckResponse(res); err != nil {
41119		return nil, err
41120	}
41121	ret := &GoogleCloudDialogflowV2beta1Context{
41122		ServerResponse: googleapi.ServerResponse{
41123			Header:         res.Header,
41124			HTTPStatusCode: res.StatusCode,
41125		},
41126	}
41127	target := &ret
41128	if err := gensupport.DecodeResponse(target, res); err != nil {
41129		return nil, err
41130	}
41131	return ret, nil
41132	// {
41133	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
41134	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
41135	//   "httpMethod": "POST",
41136	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create",
41137	//   "parameterOrder": [
41138	//     "parent"
41139	//   ],
41140	//   "parameters": {
41141	//     "parent": {
41142	//       "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.",
41143	//       "location": "path",
41144	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
41145	//       "required": true,
41146	//       "type": "string"
41147	//     }
41148	//   },
41149	//   "path": "v2beta1/{+parent}/contexts",
41150	//   "request": {
41151	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
41152	//   },
41153	//   "response": {
41154	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
41155	//   },
41156	//   "scopes": [
41157	//     "https://www.googleapis.com/auth/cloud-platform",
41158	//     "https://www.googleapis.com/auth/dialogflow"
41159	//   ]
41160	// }
41161
41162}
41163
41164// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete":
41165
41166type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
41167	s          *Service
41168	name       string
41169	urlParams_ gensupport.URLParams
41170	ctx_       context.Context
41171	header_    http.Header
41172}
41173
41174// Delete: Deletes the specified context.
41175//
41176// - name: The name of the context to delete. Supported formats: -
41177//   `projects//agent/sessions//contexts/`, -
41178//   `projects//locations//agent/sessions//contexts/`, -
41179//   `projects//agent/environments//users//sessions//contexts/`, -
41180//   `projects//locations//agent/environments//users//sessions//contexts/
41181//   `, If `Location ID` is not specified we assume default 'us'
41182//   location. If `Environment ID` is not specified, we assume default
41183//   'draft' environment. If `User ID` is not specified, we assume
41184//   default '-' user.
41185func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
41186	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41187	c.name = name
41188	return c
41189}
41190
41191// Fields allows partial responses to be retrieved. See
41192// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41193// for more information.
41194func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
41195	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41196	return c
41197}
41198
41199// Context sets the context to be used in this call's Do method. Any
41200// pending HTTP request will be aborted if the provided context is
41201// canceled.
41202func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
41203	c.ctx_ = ctx
41204	return c
41205}
41206
41207// Header returns an http.Header that can be modified by the caller to
41208// add HTTP headers to the request.
41209func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
41210	if c.header_ == nil {
41211		c.header_ = make(http.Header)
41212	}
41213	return c.header_
41214}
41215
41216func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
41217	reqHeaders := make(http.Header)
41218	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
41219	for k, v := range c.header_ {
41220		reqHeaders[k] = v
41221	}
41222	reqHeaders.Set("User-Agent", c.s.userAgent())
41223	var body io.Reader = nil
41224	c.urlParams_.Set("alt", alt)
41225	c.urlParams_.Set("prettyPrint", "false")
41226	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41227	urls += "?" + c.urlParams_.Encode()
41228	req, err := http.NewRequest("DELETE", urls, body)
41229	if err != nil {
41230		return nil, err
41231	}
41232	req.Header = reqHeaders
41233	googleapi.Expand(req.URL, map[string]string{
41234		"name": c.name,
41235	})
41236	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41237}
41238
41239// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete" call.
41240// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
41241// non-2xx status code is an error. Response headers are in either
41242// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
41243// returned at all) in error.(*googleapi.Error).Header. Use
41244// googleapi.IsNotModified to check whether the returned error was
41245// because http.StatusNotModified was returned.
41246func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
41247	gensupport.SetOptions(c.urlParams_, opts...)
41248	res, err := c.doRequest("json")
41249	if res != nil && res.StatusCode == http.StatusNotModified {
41250		if res.Body != nil {
41251			res.Body.Close()
41252		}
41253		return nil, &googleapi.Error{
41254			Code:   res.StatusCode,
41255			Header: res.Header,
41256		}
41257	}
41258	if err != nil {
41259		return nil, err
41260	}
41261	defer googleapi.CloseBody(res)
41262	if err := googleapi.CheckResponse(res); err != nil {
41263		return nil, err
41264	}
41265	ret := &GoogleProtobufEmpty{
41266		ServerResponse: googleapi.ServerResponse{
41267			Header:         res.Header,
41268			HTTPStatusCode: res.StatusCode,
41269		},
41270	}
41271	target := &ret
41272	if err := gensupport.DecodeResponse(target, res); err != nil {
41273		return nil, err
41274	}
41275	return ret, nil
41276	// {
41277	//   "description": "Deletes the specified context.",
41278	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
41279	//   "httpMethod": "DELETE",
41280	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete",
41281	//   "parameterOrder": [
41282	//     "name"
41283	//   ],
41284	//   "parameters": {
41285	//     "name": {
41286	//       "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.",
41287	//       "location": "path",
41288	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
41289	//       "required": true,
41290	//       "type": "string"
41291	//     }
41292	//   },
41293	//   "path": "v2beta1/{+name}",
41294	//   "response": {
41295	//     "$ref": "GoogleProtobufEmpty"
41296	//   },
41297	//   "scopes": [
41298	//     "https://www.googleapis.com/auth/cloud-platform",
41299	//     "https://www.googleapis.com/auth/dialogflow"
41300	//   ]
41301	// }
41302
41303}
41304
41305// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get":
41306
41307type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall struct {
41308	s            *Service
41309	name         string
41310	urlParams_   gensupport.URLParams
41311	ifNoneMatch_ string
41312	ctx_         context.Context
41313	header_      http.Header
41314}
41315
41316// Get: Retrieves the specified context.
41317//
41318// - name: The name of the context. Supported formats: -
41319//   `projects//agent/sessions//contexts/`, -
41320//   `projects//locations//agent/sessions//contexts/`, -
41321//   `projects//agent/environments//users//sessions//contexts/`, -
41322//   `projects//locations//agent/environments//users//sessions//contexts/
41323//   `, If `Location ID` is not specified we assume default 'us'
41324//   location. If `Environment ID` is not specified, we assume default
41325//   'draft' environment. If `User ID` is not specified, we assume
41326//   default '-' user.
41327func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
41328	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41329	c.name = name
41330	return c
41331}
41332
41333// Fields allows partial responses to be retrieved. See
41334// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41335// for more information.
41336func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
41337	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41338	return c
41339}
41340
41341// IfNoneMatch sets the optional parameter which makes the operation
41342// fail if the object's ETag matches the given value. This is useful for
41343// getting updates only after the object has changed since the last
41344// request. Use googleapi.IsNotModified to check whether the response
41345// error from Do is the result of In-None-Match.
41346func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
41347	c.ifNoneMatch_ = entityTag
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 *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
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 *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
41362	if c.header_ == nil {
41363		c.header_ = make(http.Header)
41364	}
41365	return c.header_
41366}
41367
41368func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
41369	reqHeaders := make(http.Header)
41370	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
41371	for k, v := range c.header_ {
41372		reqHeaders[k] = v
41373	}
41374	reqHeaders.Set("User-Agent", c.s.userAgent())
41375	if c.ifNoneMatch_ != "" {
41376		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41377	}
41378	var body io.Reader = nil
41379	c.urlParams_.Set("alt", alt)
41380	c.urlParams_.Set("prettyPrint", "false")
41381	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41382	urls += "?" + c.urlParams_.Encode()
41383	req, err := http.NewRequest("GET", urls, body)
41384	if err != nil {
41385		return nil, err
41386	}
41387	req.Header = reqHeaders
41388	googleapi.Expand(req.URL, map[string]string{
41389		"name": c.name,
41390	})
41391	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41392}
41393
41394// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get" call.
41395// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
41396// non-nil. Any non-2xx status code is an error. Response headers are in
41397// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
41398// (if a response was returned at all) in
41399// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41400// whether the returned error was because http.StatusNotModified was
41401// returned.
41402func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
41403	gensupport.SetOptions(c.urlParams_, opts...)
41404	res, err := c.doRequest("json")
41405	if res != nil && res.StatusCode == http.StatusNotModified {
41406		if res.Body != nil {
41407			res.Body.Close()
41408		}
41409		return nil, &googleapi.Error{
41410			Code:   res.StatusCode,
41411			Header: res.Header,
41412		}
41413	}
41414	if err != nil {
41415		return nil, err
41416	}
41417	defer googleapi.CloseBody(res)
41418	if err := googleapi.CheckResponse(res); err != nil {
41419		return nil, err
41420	}
41421	ret := &GoogleCloudDialogflowV2beta1Context{
41422		ServerResponse: googleapi.ServerResponse{
41423			Header:         res.Header,
41424			HTTPStatusCode: res.StatusCode,
41425		},
41426	}
41427	target := &ret
41428	if err := gensupport.DecodeResponse(target, res); err != nil {
41429		return nil, err
41430	}
41431	return ret, nil
41432	// {
41433	//   "description": "Retrieves the specified context.",
41434	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
41435	//   "httpMethod": "GET",
41436	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get",
41437	//   "parameterOrder": [
41438	//     "name"
41439	//   ],
41440	//   "parameters": {
41441	//     "name": {
41442	//       "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.",
41443	//       "location": "path",
41444	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
41445	//       "required": true,
41446	//       "type": "string"
41447	//     }
41448	//   },
41449	//   "path": "v2beta1/{+name}",
41450	//   "response": {
41451	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
41452	//   },
41453	//   "scopes": [
41454	//     "https://www.googleapis.com/auth/cloud-platform",
41455	//     "https://www.googleapis.com/auth/dialogflow"
41456	//   ]
41457	// }
41458
41459}
41460
41461// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list":
41462
41463type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall struct {
41464	s            *Service
41465	parent       string
41466	urlParams_   gensupport.URLParams
41467	ifNoneMatch_ string
41468	ctx_         context.Context
41469	header_      http.Header
41470}
41471
41472// List: Returns the list of all contexts in the specified session.
41473//
41474// - parent: The session to list all contexts from. Supported formats: -
41475//   `projects//agent/sessions/, -
41476//   `projects//locations//agent/sessions/`, -
41477//   `projects//agent/environments//users//sessions/`, -
41478//   `projects//locations//agent/environments//users//sessions/`, If
41479//   `Location ID` is not specified we assume default 'us' location. If
41480//   `Environment ID` is not specified, we assume default 'draft'
41481//   environment. If `User ID` is not specified, we assume default '-'
41482//   user.
41483func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
41484	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41485	c.parent = parent
41486	return c
41487}
41488
41489// PageSize sets the optional parameter "pageSize": The maximum number
41490// of items to return in a single page. By default 100 and at most 1000.
41491func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
41492	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41493	return c
41494}
41495
41496// PageToken sets the optional parameter "pageToken": The
41497// next_page_token value returned from a previous list request.
41498func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
41499	c.urlParams_.Set("pageToken", pageToken)
41500	return c
41501}
41502
41503// Fields allows partial responses to be retrieved. See
41504// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41505// for more information.
41506func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
41507	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41508	return c
41509}
41510
41511// IfNoneMatch sets the optional parameter which makes the operation
41512// fail if the object's ETag matches the given value. This is useful for
41513// getting updates only after the object has changed since the last
41514// request. Use googleapi.IsNotModified to check whether the response
41515// error from Do is the result of In-None-Match.
41516func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
41517	c.ifNoneMatch_ = entityTag
41518	return c
41519}
41520
41521// Context sets the context to be used in this call's Do method. Any
41522// pending HTTP request will be aborted if the provided context is
41523// canceled.
41524func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
41525	c.ctx_ = ctx
41526	return c
41527}
41528
41529// Header returns an http.Header that can be modified by the caller to
41530// add HTTP headers to the request.
41531func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
41532	if c.header_ == nil {
41533		c.header_ = make(http.Header)
41534	}
41535	return c.header_
41536}
41537
41538func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
41539	reqHeaders := make(http.Header)
41540	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
41541	for k, v := range c.header_ {
41542		reqHeaders[k] = v
41543	}
41544	reqHeaders.Set("User-Agent", c.s.userAgent())
41545	if c.ifNoneMatch_ != "" {
41546		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41547	}
41548	var body io.Reader = nil
41549	c.urlParams_.Set("alt", alt)
41550	c.urlParams_.Set("prettyPrint", "false")
41551	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
41552	urls += "?" + c.urlParams_.Encode()
41553	req, err := http.NewRequest("GET", urls, body)
41554	if err != nil {
41555		return nil, err
41556	}
41557	req.Header = reqHeaders
41558	googleapi.Expand(req.URL, map[string]string{
41559		"parent": c.parent,
41560	})
41561	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41562}
41563
41564// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list" call.
41565// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
41566// error will be non-nil. Any non-2xx status code is an error. Response
41567// headers are in either
41568// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
41569// r or (if a response was returned at all) in
41570// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41571// whether the returned error was because http.StatusNotModified was
41572// returned.
41573func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
41574	gensupport.SetOptions(c.urlParams_, opts...)
41575	res, err := c.doRequest("json")
41576	if res != nil && res.StatusCode == http.StatusNotModified {
41577		if res.Body != nil {
41578			res.Body.Close()
41579		}
41580		return nil, &googleapi.Error{
41581			Code:   res.StatusCode,
41582			Header: res.Header,
41583		}
41584	}
41585	if err != nil {
41586		return nil, err
41587	}
41588	defer googleapi.CloseBody(res)
41589	if err := googleapi.CheckResponse(res); err != nil {
41590		return nil, err
41591	}
41592	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
41593		ServerResponse: googleapi.ServerResponse{
41594			Header:         res.Header,
41595			HTTPStatusCode: res.StatusCode,
41596		},
41597	}
41598	target := &ret
41599	if err := gensupport.DecodeResponse(target, res); err != nil {
41600		return nil, err
41601	}
41602	return ret, nil
41603	// {
41604	//   "description": "Returns the list of all contexts in the specified session.",
41605	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts",
41606	//   "httpMethod": "GET",
41607	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list",
41608	//   "parameterOrder": [
41609	//     "parent"
41610	//   ],
41611	//   "parameters": {
41612	//     "pageSize": {
41613	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
41614	//       "format": "int32",
41615	//       "location": "query",
41616	//       "type": "integer"
41617	//     },
41618	//     "pageToken": {
41619	//       "description": "Optional. The next_page_token value returned from a previous list request.",
41620	//       "location": "query",
41621	//       "type": "string"
41622	//     },
41623	//     "parent": {
41624	//       "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.",
41625	//       "location": "path",
41626	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
41627	//       "required": true,
41628	//       "type": "string"
41629	//     }
41630	//   },
41631	//   "path": "v2beta1/{+parent}/contexts",
41632	//   "response": {
41633	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
41634	//   },
41635	//   "scopes": [
41636	//     "https://www.googleapis.com/auth/cloud-platform",
41637	//     "https://www.googleapis.com/auth/dialogflow"
41638	//   ]
41639	// }
41640
41641}
41642
41643// Pages invokes f for each page of results.
41644// A non-nil error returned from f will halt the iteration.
41645// The provided context supersedes any context provided to the Context method.
41646func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
41647	c.ctx_ = ctx
41648	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
41649	for {
41650		x, err := c.Do()
41651		if err != nil {
41652			return err
41653		}
41654		if err := f(x); err != nil {
41655			return err
41656		}
41657		if x.NextPageToken == "" {
41658			return nil
41659		}
41660		c.PageToken(x.NextPageToken)
41661	}
41662}
41663
41664// method id "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch":
41665
41666type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
41667	s                                   *Service
41668	nameid                              string
41669	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
41670	urlParams_                          gensupport.URLParams
41671	ctx_                                context.Context
41672	header_                             http.Header
41673}
41674
41675// Patch: Updates the specified context.
41676//
41677// - name: The unique identifier of the context. Supported formats: -
41678//   `projects//agent/sessions//contexts/`, -
41679//   `projects//locations//agent/sessions//contexts/`, -
41680//   `projects//agent/environments//users//sessions//contexts/`, -
41681//   `projects//locations//agent/environments//users//sessions//contexts/
41682//   `, The `Context ID` is always converted to lowercase, may only
41683//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
41684//   long. If `Environment ID` is not specified, we assume default
41685//   'draft' environment. If `User ID` is not specified, we assume
41686//   default '-' user. The following context names are reserved for
41687//   internal use by Dialogflow. You should not use these contexts or
41688//   create contexts with these names: * `__system_counters__` *
41689//   `*_id_dialog_context` * `*_dialog_params_size`.
41690func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
41691	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41692	c.nameid = nameid
41693	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
41694	return c
41695}
41696
41697// UpdateMask sets the optional parameter "updateMask": The mask to
41698// control which fields get updated.
41699func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
41700	c.urlParams_.Set("updateMask", updateMask)
41701	return c
41702}
41703
41704// Fields allows partial responses to be retrieved. See
41705// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41706// for more information.
41707func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
41708	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41709	return c
41710}
41711
41712// Context sets the context to be used in this call's Do method. Any
41713// pending HTTP request will be aborted if the provided context is
41714// canceled.
41715func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
41716	c.ctx_ = ctx
41717	return c
41718}
41719
41720// Header returns an http.Header that can be modified by the caller to
41721// add HTTP headers to the request.
41722func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
41723	if c.header_ == nil {
41724		c.header_ = make(http.Header)
41725	}
41726	return c.header_
41727}
41728
41729func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
41730	reqHeaders := make(http.Header)
41731	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
41732	for k, v := range c.header_ {
41733		reqHeaders[k] = v
41734	}
41735	reqHeaders.Set("User-Agent", c.s.userAgent())
41736	var body io.Reader = nil
41737	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
41738	if err != nil {
41739		return nil, err
41740	}
41741	reqHeaders.Set("Content-Type", "application/json")
41742	c.urlParams_.Set("alt", alt)
41743	c.urlParams_.Set("prettyPrint", "false")
41744	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41745	urls += "?" + c.urlParams_.Encode()
41746	req, err := http.NewRequest("PATCH", urls, body)
41747	if err != nil {
41748		return nil, err
41749	}
41750	req.Header = reqHeaders
41751	googleapi.Expand(req.URL, map[string]string{
41752		"name": c.nameid,
41753	})
41754	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41755}
41756
41757// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch" call.
41758// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
41759// non-nil. Any non-2xx status code is an error. Response headers are in
41760// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
41761// (if a response was returned at all) in
41762// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41763// whether the returned error was because http.StatusNotModified was
41764// returned.
41765func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
41766	gensupport.SetOptions(c.urlParams_, opts...)
41767	res, err := c.doRequest("json")
41768	if res != nil && res.StatusCode == http.StatusNotModified {
41769		if res.Body != nil {
41770			res.Body.Close()
41771		}
41772		return nil, &googleapi.Error{
41773			Code:   res.StatusCode,
41774			Header: res.Header,
41775		}
41776	}
41777	if err != nil {
41778		return nil, err
41779	}
41780	defer googleapi.CloseBody(res)
41781	if err := googleapi.CheckResponse(res); err != nil {
41782		return nil, err
41783	}
41784	ret := &GoogleCloudDialogflowV2beta1Context{
41785		ServerResponse: googleapi.ServerResponse{
41786			Header:         res.Header,
41787			HTTPStatusCode: res.StatusCode,
41788		},
41789	}
41790	target := &ret
41791	if err := gensupport.DecodeResponse(target, res); err != nil {
41792		return nil, err
41793	}
41794	return ret, nil
41795	// {
41796	//   "description": "Updates the specified context.",
41797	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/contexts/{contextsId}",
41798	//   "httpMethod": "PATCH",
41799	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch",
41800	//   "parameterOrder": [
41801	//     "name"
41802	//   ],
41803	//   "parameters": {
41804	//     "name": {
41805	//       "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`",
41806	//       "location": "path",
41807	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/contexts/[^/]+$",
41808	//       "required": true,
41809	//       "type": "string"
41810	//     },
41811	//     "updateMask": {
41812	//       "description": "Optional. The mask to control which fields get updated.",
41813	//       "format": "google-fieldmask",
41814	//       "location": "query",
41815	//       "type": "string"
41816	//     }
41817	//   },
41818	//   "path": "v2beta1/{+name}",
41819	//   "request": {
41820	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
41821	//   },
41822	//   "response": {
41823	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
41824	//   },
41825	//   "scopes": [
41826	//     "https://www.googleapis.com/auth/cloud-platform",
41827	//     "https://www.googleapis.com/auth/dialogflow"
41828	//   ]
41829	// }
41830
41831}
41832
41833// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create":
41834
41835type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
41836	s                                             *Service
41837	parent                                        string
41838	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
41839	urlParams_                                    gensupport.URLParams
41840	ctx_                                          context.Context
41841	header_                                       http.Header
41842}
41843
41844// Create: Creates a session entity type. If the specified session
41845// entity type already exists, overrides the session entity type. This
41846// method doesn't work with Google Assistant integration. Contact
41847// Dialogflow support if you need to use session entities with Google
41848// Assistant integration.
41849//
41850// - parent: The session to create a session entity type for. Supported
41851//   formats: - `projects//agent/sessions/, -
41852//   `projects//locations//agent/sessions/`, -
41853//   `projects//agent/environments//users//sessions/`, -
41854//   `projects//locations//agent/environments//users//sessions/`, If
41855//   `Location ID` is not specified we assume default 'us' location. If
41856//   `Environment ID` is not specified, we assume default 'draft'
41857//   environment. If `User ID` is not specified, we assume default '-'
41858//   user.
41859func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
41860	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41861	c.parent = parent
41862	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
41863	return c
41864}
41865
41866// Fields allows partial responses to be retrieved. See
41867// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41868// for more information.
41869func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
41870	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41871	return c
41872}
41873
41874// Context sets the context to be used in this call's Do method. Any
41875// pending HTTP request will be aborted if the provided context is
41876// canceled.
41877func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
41878	c.ctx_ = ctx
41879	return c
41880}
41881
41882// Header returns an http.Header that can be modified by the caller to
41883// add HTTP headers to the request.
41884func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
41885	if c.header_ == nil {
41886		c.header_ = make(http.Header)
41887	}
41888	return c.header_
41889}
41890
41891func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
41892	reqHeaders := make(http.Header)
41893	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
41894	for k, v := range c.header_ {
41895		reqHeaders[k] = v
41896	}
41897	reqHeaders.Set("User-Agent", c.s.userAgent())
41898	var body io.Reader = nil
41899	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
41900	if err != nil {
41901		return nil, err
41902	}
41903	reqHeaders.Set("Content-Type", "application/json")
41904	c.urlParams_.Set("alt", alt)
41905	c.urlParams_.Set("prettyPrint", "false")
41906	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
41907	urls += "?" + c.urlParams_.Encode()
41908	req, err := http.NewRequest("POST", urls, body)
41909	if err != nil {
41910		return nil, err
41911	}
41912	req.Header = reqHeaders
41913	googleapi.Expand(req.URL, map[string]string{
41914		"parent": c.parent,
41915	})
41916	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41917}
41918
41919// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create" call.
41920// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
41921// error will be non-nil. Any non-2xx status code is an error. Response
41922// headers are in either
41923// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
41924// or (if a response was returned at all) in
41925// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41926// whether the returned error was because http.StatusNotModified was
41927// returned.
41928func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
41929	gensupport.SetOptions(c.urlParams_, opts...)
41930	res, err := c.doRequest("json")
41931	if res != nil && res.StatusCode == http.StatusNotModified {
41932		if res.Body != nil {
41933			res.Body.Close()
41934		}
41935		return nil, &googleapi.Error{
41936			Code:   res.StatusCode,
41937			Header: res.Header,
41938		}
41939	}
41940	if err != nil {
41941		return nil, err
41942	}
41943	defer googleapi.CloseBody(res)
41944	if err := googleapi.CheckResponse(res); err != nil {
41945		return nil, err
41946	}
41947	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
41948		ServerResponse: googleapi.ServerResponse{
41949			Header:         res.Header,
41950			HTTPStatusCode: res.StatusCode,
41951		},
41952	}
41953	target := &ret
41954	if err := gensupport.DecodeResponse(target, res); err != nil {
41955		return nil, err
41956	}
41957	return ret, nil
41958	// {
41959	//   "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.",
41960	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
41961	//   "httpMethod": "POST",
41962	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create",
41963	//   "parameterOrder": [
41964	//     "parent"
41965	//   ],
41966	//   "parameters": {
41967	//     "parent": {
41968	//       "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.",
41969	//       "location": "path",
41970	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
41971	//       "required": true,
41972	//       "type": "string"
41973	//     }
41974	//   },
41975	//   "path": "v2beta1/{+parent}/entityTypes",
41976	//   "request": {
41977	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
41978	//   },
41979	//   "response": {
41980	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
41981	//   },
41982	//   "scopes": [
41983	//     "https://www.googleapis.com/auth/cloud-platform",
41984	//     "https://www.googleapis.com/auth/dialogflow"
41985	//   ]
41986	// }
41987
41988}
41989
41990// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete":
41991
41992type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
41993	s          *Service
41994	name       string
41995	urlParams_ gensupport.URLParams
41996	ctx_       context.Context
41997	header_    http.Header
41998}
41999
42000// Delete: Deletes the specified session entity type. This method
42001// doesn't work with Google Assistant integration. Contact Dialogflow
42002// support if you need to use session entities with Google Assistant
42003// integration.
42004//
42005// - name: The name of the entity type to delete. Supported formats: -
42006//   `projects//agent/sessions//entityTypes/` -
42007//   `projects//locations//agent/sessions//entityTypes/` -
42008//   `projects//agent/environments//users//sessions//entityTypes/` -
42009//   `projects//locations//agent/environments/
42010//   /users//sessions//entityTypes/` If `Location ID` is not specified
42011//   we assume default 'us' location. If `Environment ID` is not
42012//   specified, we assume default 'draft' environment. If `User ID` is
42013//   not specified, we assume default '-' user.
42014func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
42015	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42016	c.name = name
42017	return c
42018}
42019
42020// Fields allows partial responses to be retrieved. See
42021// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42022// for more information.
42023func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
42024	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42025	return c
42026}
42027
42028// Context sets the context to be used in this call's Do method. Any
42029// pending HTTP request will be aborted if the provided context is
42030// canceled.
42031func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
42032	c.ctx_ = ctx
42033	return c
42034}
42035
42036// Header returns an http.Header that can be modified by the caller to
42037// add HTTP headers to the request.
42038func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
42039	if c.header_ == nil {
42040		c.header_ = make(http.Header)
42041	}
42042	return c.header_
42043}
42044
42045func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
42046	reqHeaders := make(http.Header)
42047	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
42048	for k, v := range c.header_ {
42049		reqHeaders[k] = v
42050	}
42051	reqHeaders.Set("User-Agent", c.s.userAgent())
42052	var body io.Reader = nil
42053	c.urlParams_.Set("alt", alt)
42054	c.urlParams_.Set("prettyPrint", "false")
42055	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42056	urls += "?" + c.urlParams_.Encode()
42057	req, err := http.NewRequest("DELETE", urls, body)
42058	if err != nil {
42059		return nil, err
42060	}
42061	req.Header = reqHeaders
42062	googleapi.Expand(req.URL, map[string]string{
42063		"name": c.name,
42064	})
42065	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42066}
42067
42068// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete" call.
42069// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
42070// non-2xx status code is an error. Response headers are in either
42071// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
42072// returned at all) in error.(*googleapi.Error).Header. Use
42073// googleapi.IsNotModified to check whether the returned error was
42074// because http.StatusNotModified was returned.
42075func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
42076	gensupport.SetOptions(c.urlParams_, opts...)
42077	res, err := c.doRequest("json")
42078	if res != nil && res.StatusCode == http.StatusNotModified {
42079		if res.Body != nil {
42080			res.Body.Close()
42081		}
42082		return nil, &googleapi.Error{
42083			Code:   res.StatusCode,
42084			Header: res.Header,
42085		}
42086	}
42087	if err != nil {
42088		return nil, err
42089	}
42090	defer googleapi.CloseBody(res)
42091	if err := googleapi.CheckResponse(res); err != nil {
42092		return nil, err
42093	}
42094	ret := &GoogleProtobufEmpty{
42095		ServerResponse: googleapi.ServerResponse{
42096			Header:         res.Header,
42097			HTTPStatusCode: res.StatusCode,
42098		},
42099	}
42100	target := &ret
42101	if err := gensupport.DecodeResponse(target, res); err != nil {
42102		return nil, err
42103	}
42104	return ret, nil
42105	// {
42106	//   "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.",
42107	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
42108	//   "httpMethod": "DELETE",
42109	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete",
42110	//   "parameterOrder": [
42111	//     "name"
42112	//   ],
42113	//   "parameters": {
42114	//     "name": {
42115	//       "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.",
42116	//       "location": "path",
42117	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
42118	//       "required": true,
42119	//       "type": "string"
42120	//     }
42121	//   },
42122	//   "path": "v2beta1/{+name}",
42123	//   "response": {
42124	//     "$ref": "GoogleProtobufEmpty"
42125	//   },
42126	//   "scopes": [
42127	//     "https://www.googleapis.com/auth/cloud-platform",
42128	//     "https://www.googleapis.com/auth/dialogflow"
42129	//   ]
42130	// }
42131
42132}
42133
42134// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get":
42135
42136type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
42137	s            *Service
42138	name         string
42139	urlParams_   gensupport.URLParams
42140	ifNoneMatch_ string
42141	ctx_         context.Context
42142	header_      http.Header
42143}
42144
42145// Get: Retrieves the specified session entity type. This method doesn't
42146// work with Google Assistant integration. Contact Dialogflow support if
42147// you need to use session entities with Google Assistant integration.
42148//
42149// - name: The name of the session entity type. Supported formats: -
42150//   `projects//agent/sessions//entityTypes/` -
42151//   `projects//locations//agent/sessions//entityTypes/` -
42152//   `projects//agent/environments//users//sessions//entityTypes/` -
42153//   `projects//locations//agent/environments/
42154//   /users//sessions//entityTypes/` If `Location ID` is not specified
42155//   we assume default 'us' location. If `Environment ID` is not
42156//   specified, we assume default 'draft' environment. If `User ID` is
42157//   not specified, we assume default '-' user.
42158func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42159	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42160	c.name = name
42161	return c
42162}
42163
42164// Fields allows partial responses to be retrieved. See
42165// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42166// for more information.
42167func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42168	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42169	return c
42170}
42171
42172// IfNoneMatch sets the optional parameter which makes the operation
42173// fail if the object's ETag matches the given value. This is useful for
42174// getting updates only after the object has changed since the last
42175// request. Use googleapi.IsNotModified to check whether the response
42176// error from Do is the result of In-None-Match.
42177func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42178	c.ifNoneMatch_ = entityTag
42179	return c
42180}
42181
42182// Context sets the context to be used in this call's Do method. Any
42183// pending HTTP request will be aborted if the provided context is
42184// canceled.
42185func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
42186	c.ctx_ = ctx
42187	return c
42188}
42189
42190// Header returns an http.Header that can be modified by the caller to
42191// add HTTP headers to the request.
42192func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
42193	if c.header_ == nil {
42194		c.header_ = make(http.Header)
42195	}
42196	return c.header_
42197}
42198
42199func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
42200	reqHeaders := make(http.Header)
42201	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
42202	for k, v := range c.header_ {
42203		reqHeaders[k] = v
42204	}
42205	reqHeaders.Set("User-Agent", c.s.userAgent())
42206	if c.ifNoneMatch_ != "" {
42207		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42208	}
42209	var body io.Reader = nil
42210	c.urlParams_.Set("alt", alt)
42211	c.urlParams_.Set("prettyPrint", "false")
42212	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42213	urls += "?" + c.urlParams_.Encode()
42214	req, err := http.NewRequest("GET", urls, body)
42215	if err != nil {
42216		return nil, err
42217	}
42218	req.Header = reqHeaders
42219	googleapi.Expand(req.URL, map[string]string{
42220		"name": c.name,
42221	})
42222	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42223}
42224
42225// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get" call.
42226// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
42227// error will be non-nil. Any non-2xx status code is an error. Response
42228// headers are in either
42229// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
42230// or (if a response was returned at all) in
42231// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42232// whether the returned error was because http.StatusNotModified was
42233// returned.
42234func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
42235	gensupport.SetOptions(c.urlParams_, opts...)
42236	res, err := c.doRequest("json")
42237	if res != nil && res.StatusCode == http.StatusNotModified {
42238		if res.Body != nil {
42239			res.Body.Close()
42240		}
42241		return nil, &googleapi.Error{
42242			Code:   res.StatusCode,
42243			Header: res.Header,
42244		}
42245	}
42246	if err != nil {
42247		return nil, err
42248	}
42249	defer googleapi.CloseBody(res)
42250	if err := googleapi.CheckResponse(res); err != nil {
42251		return nil, err
42252	}
42253	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
42254		ServerResponse: googleapi.ServerResponse{
42255			Header:         res.Header,
42256			HTTPStatusCode: res.StatusCode,
42257		},
42258	}
42259	target := &ret
42260	if err := gensupport.DecodeResponse(target, res); err != nil {
42261		return nil, err
42262	}
42263	return ret, nil
42264	// {
42265	//   "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.",
42266	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
42267	//   "httpMethod": "GET",
42268	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get",
42269	//   "parameterOrder": [
42270	//     "name"
42271	//   ],
42272	//   "parameters": {
42273	//     "name": {
42274	//       "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.",
42275	//       "location": "path",
42276	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
42277	//       "required": true,
42278	//       "type": "string"
42279	//     }
42280	//   },
42281	//   "path": "v2beta1/{+name}",
42282	//   "response": {
42283	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
42284	//   },
42285	//   "scopes": [
42286	//     "https://www.googleapis.com/auth/cloud-platform",
42287	//     "https://www.googleapis.com/auth/dialogflow"
42288	//   ]
42289	// }
42290
42291}
42292
42293// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list":
42294
42295type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
42296	s            *Service
42297	parent       string
42298	urlParams_   gensupport.URLParams
42299	ifNoneMatch_ string
42300	ctx_         context.Context
42301	header_      http.Header
42302}
42303
42304// List: Returns the list of all session entity types in the specified
42305// session. This method doesn't work with Google Assistant integration.
42306// Contact Dialogflow support if you need to use session entities with
42307// Google Assistant integration.
42308//
42309// - parent: The session to list all session entity types from.
42310//   Supported formats: - `projects//agent/sessions/, -
42311//   `projects//locations//agent/sessions/`, -
42312//   `projects//agent/environments//users//sessions/`, -
42313//   `projects//locations//agent/environments//users//sessions/`, If
42314//   `Location ID` is not specified we assume default 'us' location. If
42315//   `Environment ID` is not specified, we assume default 'draft'
42316//   environment. If `User ID` is not specified, we assume default '-'
42317//   user.
42318func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42319	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42320	c.parent = parent
42321	return c
42322}
42323
42324// PageSize sets the optional parameter "pageSize": The maximum number
42325// of items to return in a single page. By default 100 and at most 1000.
42326func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42327	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42328	return c
42329}
42330
42331// PageToken sets the optional parameter "pageToken": The
42332// next_page_token value returned from a previous list request.
42333func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42334	c.urlParams_.Set("pageToken", pageToken)
42335	return c
42336}
42337
42338// Fields allows partial responses to be retrieved. See
42339// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42340// for more information.
42341func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42342	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42343	return c
42344}
42345
42346// IfNoneMatch sets the optional parameter which makes the operation
42347// fail if the object's ETag matches the given value. This is useful for
42348// getting updates only after the object has changed since the last
42349// request. Use googleapi.IsNotModified to check whether the response
42350// error from Do is the result of In-None-Match.
42351func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42352	c.ifNoneMatch_ = entityTag
42353	return c
42354}
42355
42356// Context sets the context to be used in this call's Do method. Any
42357// pending HTTP request will be aborted if the provided context is
42358// canceled.
42359func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
42360	c.ctx_ = ctx
42361	return c
42362}
42363
42364// Header returns an http.Header that can be modified by the caller to
42365// add HTTP headers to the request.
42366func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
42367	if c.header_ == nil {
42368		c.header_ = make(http.Header)
42369	}
42370	return c.header_
42371}
42372
42373func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
42374	reqHeaders := make(http.Header)
42375	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
42376	for k, v := range c.header_ {
42377		reqHeaders[k] = v
42378	}
42379	reqHeaders.Set("User-Agent", c.s.userAgent())
42380	if c.ifNoneMatch_ != "" {
42381		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42382	}
42383	var body io.Reader = nil
42384	c.urlParams_.Set("alt", alt)
42385	c.urlParams_.Set("prettyPrint", "false")
42386	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
42387	urls += "?" + c.urlParams_.Encode()
42388	req, err := http.NewRequest("GET", urls, body)
42389	if err != nil {
42390		return nil, err
42391	}
42392	req.Header = reqHeaders
42393	googleapi.Expand(req.URL, map[string]string{
42394		"parent": c.parent,
42395	})
42396	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42397}
42398
42399// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list" call.
42400// Exactly one of
42401// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
42402// will be non-nil. Any non-2xx status code is an error. Response
42403// headers are in either
42404// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
42405// onse.Header or (if a response was returned at all) in
42406// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42407// whether the returned error was because http.StatusNotModified was
42408// returned.
42409func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
42410	gensupport.SetOptions(c.urlParams_, opts...)
42411	res, err := c.doRequest("json")
42412	if res != nil && res.StatusCode == http.StatusNotModified {
42413		if res.Body != nil {
42414			res.Body.Close()
42415		}
42416		return nil, &googleapi.Error{
42417			Code:   res.StatusCode,
42418			Header: res.Header,
42419		}
42420	}
42421	if err != nil {
42422		return nil, err
42423	}
42424	defer googleapi.CloseBody(res)
42425	if err := googleapi.CheckResponse(res); err != nil {
42426		return nil, err
42427	}
42428	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
42429		ServerResponse: googleapi.ServerResponse{
42430			Header:         res.Header,
42431			HTTPStatusCode: res.StatusCode,
42432		},
42433	}
42434	target := &ret
42435	if err := gensupport.DecodeResponse(target, res); err != nil {
42436		return nil, err
42437	}
42438	return ret, nil
42439	// {
42440	//   "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.",
42441	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes",
42442	//   "httpMethod": "GET",
42443	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list",
42444	//   "parameterOrder": [
42445	//     "parent"
42446	//   ],
42447	//   "parameters": {
42448	//     "pageSize": {
42449	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
42450	//       "format": "int32",
42451	//       "location": "query",
42452	//       "type": "integer"
42453	//     },
42454	//     "pageToken": {
42455	//       "description": "Optional. The next_page_token value returned from a previous list request.",
42456	//       "location": "query",
42457	//       "type": "string"
42458	//     },
42459	//     "parent": {
42460	//       "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.",
42461	//       "location": "path",
42462	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+$",
42463	//       "required": true,
42464	//       "type": "string"
42465	//     }
42466	//   },
42467	//   "path": "v2beta1/{+parent}/entityTypes",
42468	//   "response": {
42469	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
42470	//   },
42471	//   "scopes": [
42472	//     "https://www.googleapis.com/auth/cloud-platform",
42473	//     "https://www.googleapis.com/auth/dialogflow"
42474	//   ]
42475	// }
42476
42477}
42478
42479// Pages invokes f for each page of results.
42480// A non-nil error returned from f will halt the iteration.
42481// The provided context supersedes any context provided to the Context method.
42482func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
42483	c.ctx_ = ctx
42484	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
42485	for {
42486		x, err := c.Do()
42487		if err != nil {
42488			return err
42489		}
42490		if err := f(x); err != nil {
42491			return err
42492		}
42493		if x.NextPageToken == "" {
42494			return nil
42495		}
42496		c.PageToken(x.NextPageToken)
42497	}
42498}
42499
42500// method id "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch":
42501
42502type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
42503	s                                             *Service
42504	nameid                                        string
42505	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
42506	urlParams_                                    gensupport.URLParams
42507	ctx_                                          context.Context
42508	header_                                       http.Header
42509}
42510
42511// Patch: Updates the specified session entity type. This method doesn't
42512// work with Google Assistant integration. Contact Dialogflow support if
42513// you need to use session entities with Google Assistant integration.
42514//
42515// - name: The unique identifier of this session entity type. Supported
42516//   formats: - `projects//agent/sessions//entityTypes/` -
42517//   `projects//locations//agent/sessions//entityTypes/` -
42518//   `projects//agent/environments//users//sessions//entityTypes/` -
42519//   `projects//locations//agent/environments/
42520//   /users//sessions//entityTypes/` If `Location ID` is not specified
42521//   we assume default 'us' location. If `Environment ID` is not
42522//   specified, we assume default 'draft' environment. If `User ID` is
42523//   not specified, we assume default '-' user. `` must be the display
42524//   name of an existing entity type in the same agent that will be
42525//   overridden or supplemented.
42526func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
42527	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42528	c.nameid = nameid
42529	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
42530	return c
42531}
42532
42533// UpdateMask sets the optional parameter "updateMask": The mask to
42534// control which fields get updated.
42535func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
42536	c.urlParams_.Set("updateMask", updateMask)
42537	return c
42538}
42539
42540// Fields allows partial responses to be retrieved. See
42541// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42542// for more information.
42543func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
42544	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42545	return c
42546}
42547
42548// Context sets the context to be used in this call's Do method. Any
42549// pending HTTP request will be aborted if the provided context is
42550// canceled.
42551func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
42552	c.ctx_ = ctx
42553	return c
42554}
42555
42556// Header returns an http.Header that can be modified by the caller to
42557// add HTTP headers to the request.
42558func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
42559	if c.header_ == nil {
42560		c.header_ = make(http.Header)
42561	}
42562	return c.header_
42563}
42564
42565func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
42566	reqHeaders := make(http.Header)
42567	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
42568	for k, v := range c.header_ {
42569		reqHeaders[k] = v
42570	}
42571	reqHeaders.Set("User-Agent", c.s.userAgent())
42572	var body io.Reader = nil
42573	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
42574	if err != nil {
42575		return nil, err
42576	}
42577	reqHeaders.Set("Content-Type", "application/json")
42578	c.urlParams_.Set("alt", alt)
42579	c.urlParams_.Set("prettyPrint", "false")
42580	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42581	urls += "?" + c.urlParams_.Encode()
42582	req, err := http.NewRequest("PATCH", urls, body)
42583	if err != nil {
42584		return nil, err
42585	}
42586	req.Header = reqHeaders
42587	googleapi.Expand(req.URL, map[string]string{
42588		"name": c.nameid,
42589	})
42590	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42591}
42592
42593// Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch" call.
42594// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
42595// error will be non-nil. Any non-2xx status code is an error. Response
42596// headers are in either
42597// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
42598// or (if a response was returned at all) in
42599// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42600// whether the returned error was because http.StatusNotModified was
42601// returned.
42602func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
42603	gensupport.SetOptions(c.urlParams_, opts...)
42604	res, err := c.doRequest("json")
42605	if res != nil && res.StatusCode == http.StatusNotModified {
42606		if res.Body != nil {
42607			res.Body.Close()
42608		}
42609		return nil, &googleapi.Error{
42610			Code:   res.StatusCode,
42611			Header: res.Header,
42612		}
42613	}
42614	if err != nil {
42615		return nil, err
42616	}
42617	defer googleapi.CloseBody(res)
42618	if err := googleapi.CheckResponse(res); err != nil {
42619		return nil, err
42620	}
42621	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
42622		ServerResponse: googleapi.ServerResponse{
42623			Header:         res.Header,
42624			HTTPStatusCode: res.StatusCode,
42625		},
42626	}
42627	target := &ret
42628	if err := gensupport.DecodeResponse(target, res); err != nil {
42629		return nil, err
42630	}
42631	return ret, nil
42632	// {
42633	//   "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.",
42634	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
42635	//   "httpMethod": "PATCH",
42636	//   "id": "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch",
42637	//   "parameterOrder": [
42638	//     "name"
42639	//   ],
42640	//   "parameters": {
42641	//     "name": {
42642	//       "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.",
42643	//       "location": "path",
42644	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+/users/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
42645	//       "required": true,
42646	//       "type": "string"
42647	//     },
42648	//     "updateMask": {
42649	//       "description": "Optional. The mask to control which fields get updated.",
42650	//       "format": "google-fieldmask",
42651	//       "location": "query",
42652	//       "type": "string"
42653	//     }
42654	//   },
42655	//   "path": "v2beta1/{+name}",
42656	//   "request": {
42657	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
42658	//   },
42659	//   "response": {
42660	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
42661	//   },
42662	//   "scopes": [
42663	//     "https://www.googleapis.com/auth/cloud-platform",
42664	//     "https://www.googleapis.com/auth/dialogflow"
42665	//   ]
42666	// }
42667
42668}
42669
42670// method id "dialogflow.projects.locations.agent.intents.batchDelete":
42671
42672type ProjectsLocationsAgentIntentsBatchDeleteCall struct {
42673	s                                                     *Service
42674	parent                                                string
42675	googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
42676	urlParams_                                            gensupport.URLParams
42677	ctx_                                                  context.Context
42678	header_                                               http.Header
42679}
42680
42681// BatchDelete: Deletes intents in the specified agent. Operation
42682//
42683// - parent: The name of the agent to delete all entities types for.
42684//   Supported formats: - `projects//agent` -
42685//   `projects//locations//agent`.
42686func (r *ProjectsLocationsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsLocationsAgentIntentsBatchDeleteCall {
42687	c := &ProjectsLocationsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42688	c.parent = parent
42689	c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
42690	return c
42691}
42692
42693// Fields allows partial responses to be retrieved. See
42694// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42695// for more information.
42696func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchDeleteCall {
42697	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42698	return c
42699}
42700
42701// Context sets the context to be used in this call's Do method. Any
42702// pending HTTP request will be aborted if the provided context is
42703// canceled.
42704func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchDeleteCall {
42705	c.ctx_ = ctx
42706	return c
42707}
42708
42709// Header returns an http.Header that can be modified by the caller to
42710// add HTTP headers to the request.
42711func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Header() http.Header {
42712	if c.header_ == nil {
42713		c.header_ = make(http.Header)
42714	}
42715	return c.header_
42716}
42717
42718func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
42719	reqHeaders := make(http.Header)
42720	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
42721	for k, v := range c.header_ {
42722		reqHeaders[k] = v
42723	}
42724	reqHeaders.Set("User-Agent", c.s.userAgent())
42725	var body io.Reader = nil
42726	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
42727	if err != nil {
42728		return nil, err
42729	}
42730	reqHeaders.Set("Content-Type", "application/json")
42731	c.urlParams_.Set("alt", alt)
42732	c.urlParams_.Set("prettyPrint", "false")
42733	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
42734	urls += "?" + c.urlParams_.Encode()
42735	req, err := http.NewRequest("POST", urls, body)
42736	if err != nil {
42737		return nil, err
42738	}
42739	req.Header = reqHeaders
42740	googleapi.Expand(req.URL, map[string]string{
42741		"parent": c.parent,
42742	})
42743	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42744}
42745
42746// Do executes the "dialogflow.projects.locations.agent.intents.batchDelete" call.
42747// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
42748// Any non-2xx status code is an error. Response headers are in either
42749// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
42750// was returned at all) in error.(*googleapi.Error).Header. Use
42751// googleapi.IsNotModified to check whether the returned error was
42752// because http.StatusNotModified was returned.
42753func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42754	gensupport.SetOptions(c.urlParams_, opts...)
42755	res, err := c.doRequest("json")
42756	if res != nil && res.StatusCode == http.StatusNotModified {
42757		if res.Body != nil {
42758			res.Body.Close()
42759		}
42760		return nil, &googleapi.Error{
42761			Code:   res.StatusCode,
42762			Header: res.Header,
42763		}
42764	}
42765	if err != nil {
42766		return nil, err
42767	}
42768	defer googleapi.CloseBody(res)
42769	if err := googleapi.CheckResponse(res); err != nil {
42770		return nil, err
42771	}
42772	ret := &GoogleLongrunningOperation{
42773		ServerResponse: googleapi.ServerResponse{
42774			Header:         res.Header,
42775			HTTPStatusCode: res.StatusCode,
42776		},
42777	}
42778	target := &ret
42779	if err := gensupport.DecodeResponse(target, res); err != nil {
42780		return nil, err
42781	}
42782	return ret, nil
42783	// {
42784	//   "description": "Deletes intents in the specified agent. Operation ",
42785	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents:batchDelete",
42786	//   "httpMethod": "POST",
42787	//   "id": "dialogflow.projects.locations.agent.intents.batchDelete",
42788	//   "parameterOrder": [
42789	//     "parent"
42790	//   ],
42791	//   "parameters": {
42792	//     "parent": {
42793	//       "description": "Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent`",
42794	//       "location": "path",
42795	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
42796	//       "required": true,
42797	//       "type": "string"
42798	//     }
42799	//   },
42800	//   "path": "v2beta1/{+parent}/intents:batchDelete",
42801	//   "request": {
42802	//     "$ref": "GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest"
42803	//   },
42804	//   "response": {
42805	//     "$ref": "GoogleLongrunningOperation"
42806	//   },
42807	//   "scopes": [
42808	//     "https://www.googleapis.com/auth/cloud-platform",
42809	//     "https://www.googleapis.com/auth/dialogflow"
42810	//   ]
42811	// }
42812
42813}
42814
42815// method id "dialogflow.projects.locations.agent.intents.batchUpdate":
42816
42817type ProjectsLocationsAgentIntentsBatchUpdateCall struct {
42818	s                                                     *Service
42819	parent                                                string
42820	googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
42821	urlParams_                                            gensupport.URLParams
42822	ctx_                                                  context.Context
42823	header_                                               http.Header
42824}
42825
42826// BatchUpdate: Updates/Creates multiple intents in the specified agent.
42827// Operation
42828//
42829// - parent: The name of the agent to update or create intents in.
42830//   Supported formats: - `projects//agent` -
42831//   `projects//locations//agent`.
42832func (r *ProjectsLocationsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsLocationsAgentIntentsBatchUpdateCall {
42833	c := &ProjectsLocationsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42834	c.parent = parent
42835	c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
42836	return c
42837}
42838
42839// Fields allows partial responses to be retrieved. See
42840// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42841// for more information.
42842func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchUpdateCall {
42843	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42844	return c
42845}
42846
42847// Context sets the context to be used in this call's Do method. Any
42848// pending HTTP request will be aborted if the provided context is
42849// canceled.
42850func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchUpdateCall {
42851	c.ctx_ = ctx
42852	return c
42853}
42854
42855// Header returns an http.Header that can be modified by the caller to
42856// add HTTP headers to the request.
42857func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Header() http.Header {
42858	if c.header_ == nil {
42859		c.header_ = make(http.Header)
42860	}
42861	return c.header_
42862}
42863
42864func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
42865	reqHeaders := make(http.Header)
42866	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
42867	for k, v := range c.header_ {
42868		reqHeaders[k] = v
42869	}
42870	reqHeaders.Set("User-Agent", c.s.userAgent())
42871	var body io.Reader = nil
42872	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
42873	if err != nil {
42874		return nil, err
42875	}
42876	reqHeaders.Set("Content-Type", "application/json")
42877	c.urlParams_.Set("alt", alt)
42878	c.urlParams_.Set("prettyPrint", "false")
42879	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
42880	urls += "?" + c.urlParams_.Encode()
42881	req, err := http.NewRequest("POST", urls, body)
42882	if err != nil {
42883		return nil, err
42884	}
42885	req.Header = reqHeaders
42886	googleapi.Expand(req.URL, map[string]string{
42887		"parent": c.parent,
42888	})
42889	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42890}
42891
42892// Do executes the "dialogflow.projects.locations.agent.intents.batchUpdate" call.
42893// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
42894// Any non-2xx status code is an error. Response headers are in either
42895// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
42896// was returned at all) in error.(*googleapi.Error).Header. Use
42897// googleapi.IsNotModified to check whether the returned error was
42898// because http.StatusNotModified was returned.
42899func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42900	gensupport.SetOptions(c.urlParams_, opts...)
42901	res, err := c.doRequest("json")
42902	if res != nil && res.StatusCode == http.StatusNotModified {
42903		if res.Body != nil {
42904			res.Body.Close()
42905		}
42906		return nil, &googleapi.Error{
42907			Code:   res.StatusCode,
42908			Header: res.Header,
42909		}
42910	}
42911	if err != nil {
42912		return nil, err
42913	}
42914	defer googleapi.CloseBody(res)
42915	if err := googleapi.CheckResponse(res); err != nil {
42916		return nil, err
42917	}
42918	ret := &GoogleLongrunningOperation{
42919		ServerResponse: googleapi.ServerResponse{
42920			Header:         res.Header,
42921			HTTPStatusCode: res.StatusCode,
42922		},
42923	}
42924	target := &ret
42925	if err := gensupport.DecodeResponse(target, res); err != nil {
42926		return nil, err
42927	}
42928	return ret, nil
42929	// {
42930	//   "description": "Updates/Creates multiple intents in the specified agent. Operation ",
42931	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents:batchUpdate",
42932	//   "httpMethod": "POST",
42933	//   "id": "dialogflow.projects.locations.agent.intents.batchUpdate",
42934	//   "parameterOrder": [
42935	//     "parent"
42936	//   ],
42937	//   "parameters": {
42938	//     "parent": {
42939	//       "description": "Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent`",
42940	//       "location": "path",
42941	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
42942	//       "required": true,
42943	//       "type": "string"
42944	//     }
42945	//   },
42946	//   "path": "v2beta1/{+parent}/intents:batchUpdate",
42947	//   "request": {
42948	//     "$ref": "GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest"
42949	//   },
42950	//   "response": {
42951	//     "$ref": "GoogleLongrunningOperation"
42952	//   },
42953	//   "scopes": [
42954	//     "https://www.googleapis.com/auth/cloud-platform",
42955	//     "https://www.googleapis.com/auth/dialogflow"
42956	//   ]
42957	// }
42958
42959}
42960
42961// method id "dialogflow.projects.locations.agent.intents.create":
42962
42963type ProjectsLocationsAgentIntentsCreateCall struct {
42964	s                                  *Service
42965	parent                             string
42966	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
42967	urlParams_                         gensupport.URLParams
42968	ctx_                               context.Context
42969	header_                            http.Header
42970}
42971
42972// Create: Creates an intent in the specified agent.
42973//
42974// - parent: The agent to create a intent for. Supported formats: -
42975//   `projects//agent` - `projects//locations//agent`.
42976func (r *ProjectsLocationsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsCreateCall {
42977	c := &ProjectsLocationsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42978	c.parent = parent
42979	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
42980	return c
42981}
42982
42983// IntentView sets the optional parameter "intentView": The resource
42984// view to apply to the returned intent.
42985//
42986// Possible values:
42987//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
42988// in the response.
42989//   "INTENT_VIEW_FULL" - All fields are populated.
42990func (c *ProjectsLocationsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsCreateCall {
42991	c.urlParams_.Set("intentView", intentView)
42992	return c
42993}
42994
42995// LanguageCode sets the optional parameter "languageCode": The language
42996// used to access language-specific data. If not specified, the agent's
42997// default language is used. For more information, see Multilingual
42998// intent and entity data
42999// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
43000func (c *ProjectsLocationsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsCreateCall {
43001	c.urlParams_.Set("languageCode", languageCode)
43002	return c
43003}
43004
43005// Fields allows partial responses to be retrieved. See
43006// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43007// for more information.
43008func (c *ProjectsLocationsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsCreateCall {
43009	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43010	return c
43011}
43012
43013// Context sets the context to be used in this call's Do method. Any
43014// pending HTTP request will be aborted if the provided context is
43015// canceled.
43016func (c *ProjectsLocationsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsCreateCall {
43017	c.ctx_ = ctx
43018	return c
43019}
43020
43021// Header returns an http.Header that can be modified by the caller to
43022// add HTTP headers to the request.
43023func (c *ProjectsLocationsAgentIntentsCreateCall) Header() http.Header {
43024	if c.header_ == nil {
43025		c.header_ = make(http.Header)
43026	}
43027	return c.header_
43028}
43029
43030func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
43031	reqHeaders := make(http.Header)
43032	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
43033	for k, v := range c.header_ {
43034		reqHeaders[k] = v
43035	}
43036	reqHeaders.Set("User-Agent", c.s.userAgent())
43037	var body io.Reader = nil
43038	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
43039	if err != nil {
43040		return nil, err
43041	}
43042	reqHeaders.Set("Content-Type", "application/json")
43043	c.urlParams_.Set("alt", alt)
43044	c.urlParams_.Set("prettyPrint", "false")
43045	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
43046	urls += "?" + c.urlParams_.Encode()
43047	req, err := http.NewRequest("POST", urls, body)
43048	if err != nil {
43049		return nil, err
43050	}
43051	req.Header = reqHeaders
43052	googleapi.Expand(req.URL, map[string]string{
43053		"parent": c.parent,
43054	})
43055	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43056}
43057
43058// Do executes the "dialogflow.projects.locations.agent.intents.create" call.
43059// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
43060// non-nil. Any non-2xx status code is an error. Response headers are in
43061// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
43062// (if a response was returned at all) in
43063// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43064// whether the returned error was because http.StatusNotModified was
43065// returned.
43066func (c *ProjectsLocationsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
43067	gensupport.SetOptions(c.urlParams_, opts...)
43068	res, err := c.doRequest("json")
43069	if res != nil && res.StatusCode == http.StatusNotModified {
43070		if res.Body != nil {
43071			res.Body.Close()
43072		}
43073		return nil, &googleapi.Error{
43074			Code:   res.StatusCode,
43075			Header: res.Header,
43076		}
43077	}
43078	if err != nil {
43079		return nil, err
43080	}
43081	defer googleapi.CloseBody(res)
43082	if err := googleapi.CheckResponse(res); err != nil {
43083		return nil, err
43084	}
43085	ret := &GoogleCloudDialogflowV2beta1Intent{
43086		ServerResponse: googleapi.ServerResponse{
43087			Header:         res.Header,
43088			HTTPStatusCode: res.StatusCode,
43089		},
43090	}
43091	target := &ret
43092	if err := gensupport.DecodeResponse(target, res); err != nil {
43093		return nil, err
43094	}
43095	return ret, nil
43096	// {
43097	//   "description": "Creates an intent in the specified agent.",
43098	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents",
43099	//   "httpMethod": "POST",
43100	//   "id": "dialogflow.projects.locations.agent.intents.create",
43101	//   "parameterOrder": [
43102	//     "parent"
43103	//   ],
43104	//   "parameters": {
43105	//     "intentView": {
43106	//       "description": "Optional. The resource view to apply to the returned intent.",
43107	//       "enum": [
43108	//         "INTENT_VIEW_UNSPECIFIED",
43109	//         "INTENT_VIEW_FULL"
43110	//       ],
43111	//       "enumDescriptions": [
43112	//         "Training phrases field is not populated in the response.",
43113	//         "All fields are populated."
43114	//       ],
43115	//       "location": "query",
43116	//       "type": "string"
43117	//     },
43118	//     "languageCode": {
43119	//       "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).",
43120	//       "location": "query",
43121	//       "type": "string"
43122	//     },
43123	//     "parent": {
43124	//       "description": "Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent`",
43125	//       "location": "path",
43126	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
43127	//       "required": true,
43128	//       "type": "string"
43129	//     }
43130	//   },
43131	//   "path": "v2beta1/{+parent}/intents",
43132	//   "request": {
43133	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
43134	//   },
43135	//   "response": {
43136	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
43137	//   },
43138	//   "scopes": [
43139	//     "https://www.googleapis.com/auth/cloud-platform",
43140	//     "https://www.googleapis.com/auth/dialogflow"
43141	//   ]
43142	// }
43143
43144}
43145
43146// method id "dialogflow.projects.locations.agent.intents.delete":
43147
43148type ProjectsLocationsAgentIntentsDeleteCall struct {
43149	s          *Service
43150	name       string
43151	urlParams_ gensupport.URLParams
43152	ctx_       context.Context
43153	header_    http.Header
43154}
43155
43156// Delete: Deletes the specified intent and its direct or indirect
43157// followup intents.
43158//
43159// - name: The name of the intent to delete. If this intent has direct
43160//   or indirect followup intents, we also delete them. Supported
43161//   formats: - `projects//agent/intents/` -
43162//   `projects//locations//agent/intents/`.
43163func (r *ProjectsLocationsAgentIntentsService) Delete(name string) *ProjectsLocationsAgentIntentsDeleteCall {
43164	c := &ProjectsLocationsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43165	c.name = name
43166	return c
43167}
43168
43169// Fields allows partial responses to be retrieved. See
43170// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43171// for more information.
43172func (c *ProjectsLocationsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsDeleteCall {
43173	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43174	return c
43175}
43176
43177// Context sets the context to be used in this call's Do method. Any
43178// pending HTTP request will be aborted if the provided context is
43179// canceled.
43180func (c *ProjectsLocationsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsDeleteCall {
43181	c.ctx_ = ctx
43182	return c
43183}
43184
43185// Header returns an http.Header that can be modified by the caller to
43186// add HTTP headers to the request.
43187func (c *ProjectsLocationsAgentIntentsDeleteCall) Header() http.Header {
43188	if c.header_ == nil {
43189		c.header_ = make(http.Header)
43190	}
43191	return c.header_
43192}
43193
43194func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
43195	reqHeaders := make(http.Header)
43196	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
43197	for k, v := range c.header_ {
43198		reqHeaders[k] = v
43199	}
43200	reqHeaders.Set("User-Agent", c.s.userAgent())
43201	var body io.Reader = nil
43202	c.urlParams_.Set("alt", alt)
43203	c.urlParams_.Set("prettyPrint", "false")
43204	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43205	urls += "?" + c.urlParams_.Encode()
43206	req, err := http.NewRequest("DELETE", urls, body)
43207	if err != nil {
43208		return nil, err
43209	}
43210	req.Header = reqHeaders
43211	googleapi.Expand(req.URL, map[string]string{
43212		"name": c.name,
43213	})
43214	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43215}
43216
43217// Do executes the "dialogflow.projects.locations.agent.intents.delete" call.
43218// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
43219// non-2xx status code is an error. Response headers are in either
43220// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
43221// returned at all) in error.(*googleapi.Error).Header. Use
43222// googleapi.IsNotModified to check whether the returned error was
43223// because http.StatusNotModified was returned.
43224func (c *ProjectsLocationsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
43225	gensupport.SetOptions(c.urlParams_, opts...)
43226	res, err := c.doRequest("json")
43227	if res != nil && res.StatusCode == http.StatusNotModified {
43228		if res.Body != nil {
43229			res.Body.Close()
43230		}
43231		return nil, &googleapi.Error{
43232			Code:   res.StatusCode,
43233			Header: res.Header,
43234		}
43235	}
43236	if err != nil {
43237		return nil, err
43238	}
43239	defer googleapi.CloseBody(res)
43240	if err := googleapi.CheckResponse(res); err != nil {
43241		return nil, err
43242	}
43243	ret := &GoogleProtobufEmpty{
43244		ServerResponse: googleapi.ServerResponse{
43245			Header:         res.Header,
43246			HTTPStatusCode: res.StatusCode,
43247		},
43248	}
43249	target := &ret
43250	if err := gensupport.DecodeResponse(target, res); err != nil {
43251		return nil, err
43252	}
43253	return ret, nil
43254	// {
43255	//   "description": "Deletes the specified intent and its direct or indirect followup intents.",
43256	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents/{intentsId}",
43257	//   "httpMethod": "DELETE",
43258	//   "id": "dialogflow.projects.locations.agent.intents.delete",
43259	//   "parameterOrder": [
43260	//     "name"
43261	//   ],
43262	//   "parameters": {
43263	//     "name": {
43264	//       "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/`",
43265	//       "location": "path",
43266	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$",
43267	//       "required": true,
43268	//       "type": "string"
43269	//     }
43270	//   },
43271	//   "path": "v2beta1/{+name}",
43272	//   "response": {
43273	//     "$ref": "GoogleProtobufEmpty"
43274	//   },
43275	//   "scopes": [
43276	//     "https://www.googleapis.com/auth/cloud-platform",
43277	//     "https://www.googleapis.com/auth/dialogflow"
43278	//   ]
43279	// }
43280
43281}
43282
43283// method id "dialogflow.projects.locations.agent.intents.get":
43284
43285type ProjectsLocationsAgentIntentsGetCall struct {
43286	s            *Service
43287	name         string
43288	urlParams_   gensupport.URLParams
43289	ifNoneMatch_ string
43290	ctx_         context.Context
43291	header_      http.Header
43292}
43293
43294// Get: Retrieves the specified intent.
43295//
43296// - name: The name of the intent. Supported formats: -
43297//   `projects//agent/intents/` - `projects//locations//agent/intents/`.
43298func (r *ProjectsLocationsAgentIntentsService) Get(name string) *ProjectsLocationsAgentIntentsGetCall {
43299	c := &ProjectsLocationsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43300	c.name = name
43301	return c
43302}
43303
43304// IntentView sets the optional parameter "intentView": The resource
43305// view to apply to the returned intent.
43306//
43307// Possible values:
43308//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
43309// in the response.
43310//   "INTENT_VIEW_FULL" - All fields are populated.
43311func (c *ProjectsLocationsAgentIntentsGetCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsGetCall {
43312	c.urlParams_.Set("intentView", intentView)
43313	return c
43314}
43315
43316// LanguageCode sets the optional parameter "languageCode": The language
43317// used to access language-specific data. If not specified, the agent's
43318// default language is used. For more information, see Multilingual
43319// intent and entity data
43320// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
43321func (c *ProjectsLocationsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsGetCall {
43322	c.urlParams_.Set("languageCode", languageCode)
43323	return c
43324}
43325
43326// Fields allows partial responses to be retrieved. See
43327// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43328// for more information.
43329func (c *ProjectsLocationsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsGetCall {
43330	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43331	return c
43332}
43333
43334// IfNoneMatch sets the optional parameter which makes the operation
43335// fail if the object's ETag matches the given value. This is useful for
43336// getting updates only after the object has changed since the last
43337// request. Use googleapi.IsNotModified to check whether the response
43338// error from Do is the result of In-None-Match.
43339func (c *ProjectsLocationsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsGetCall {
43340	c.ifNoneMatch_ = entityTag
43341	return c
43342}
43343
43344// Context sets the context to be used in this call's Do method. Any
43345// pending HTTP request will be aborted if the provided context is
43346// canceled.
43347func (c *ProjectsLocationsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsGetCall {
43348	c.ctx_ = ctx
43349	return c
43350}
43351
43352// Header returns an http.Header that can be modified by the caller to
43353// add HTTP headers to the request.
43354func (c *ProjectsLocationsAgentIntentsGetCall) Header() http.Header {
43355	if c.header_ == nil {
43356		c.header_ = make(http.Header)
43357	}
43358	return c.header_
43359}
43360
43361func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
43362	reqHeaders := make(http.Header)
43363	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
43364	for k, v := range c.header_ {
43365		reqHeaders[k] = v
43366	}
43367	reqHeaders.Set("User-Agent", c.s.userAgent())
43368	if c.ifNoneMatch_ != "" {
43369		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43370	}
43371	var body io.Reader = nil
43372	c.urlParams_.Set("alt", alt)
43373	c.urlParams_.Set("prettyPrint", "false")
43374	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43375	urls += "?" + c.urlParams_.Encode()
43376	req, err := http.NewRequest("GET", urls, body)
43377	if err != nil {
43378		return nil, err
43379	}
43380	req.Header = reqHeaders
43381	googleapi.Expand(req.URL, map[string]string{
43382		"name": c.name,
43383	})
43384	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43385}
43386
43387// Do executes the "dialogflow.projects.locations.agent.intents.get" call.
43388// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
43389// non-nil. Any non-2xx status code is an error. Response headers are in
43390// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
43391// (if a response was returned at all) in
43392// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43393// whether the returned error was because http.StatusNotModified was
43394// returned.
43395func (c *ProjectsLocationsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
43396	gensupport.SetOptions(c.urlParams_, opts...)
43397	res, err := c.doRequest("json")
43398	if res != nil && res.StatusCode == http.StatusNotModified {
43399		if res.Body != nil {
43400			res.Body.Close()
43401		}
43402		return nil, &googleapi.Error{
43403			Code:   res.StatusCode,
43404			Header: res.Header,
43405		}
43406	}
43407	if err != nil {
43408		return nil, err
43409	}
43410	defer googleapi.CloseBody(res)
43411	if err := googleapi.CheckResponse(res); err != nil {
43412		return nil, err
43413	}
43414	ret := &GoogleCloudDialogflowV2beta1Intent{
43415		ServerResponse: googleapi.ServerResponse{
43416			Header:         res.Header,
43417			HTTPStatusCode: res.StatusCode,
43418		},
43419	}
43420	target := &ret
43421	if err := gensupport.DecodeResponse(target, res); err != nil {
43422		return nil, err
43423	}
43424	return ret, nil
43425	// {
43426	//   "description": "Retrieves the specified intent.",
43427	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents/{intentsId}",
43428	//   "httpMethod": "GET",
43429	//   "id": "dialogflow.projects.locations.agent.intents.get",
43430	//   "parameterOrder": [
43431	//     "name"
43432	//   ],
43433	//   "parameters": {
43434	//     "intentView": {
43435	//       "description": "Optional. The resource view to apply to the returned intent.",
43436	//       "enum": [
43437	//         "INTENT_VIEW_UNSPECIFIED",
43438	//         "INTENT_VIEW_FULL"
43439	//       ],
43440	//       "enumDescriptions": [
43441	//         "Training phrases field is not populated in the response.",
43442	//         "All fields are populated."
43443	//       ],
43444	//       "location": "query",
43445	//       "type": "string"
43446	//     },
43447	//     "languageCode": {
43448	//       "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).",
43449	//       "location": "query",
43450	//       "type": "string"
43451	//     },
43452	//     "name": {
43453	//       "description": "Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`",
43454	//       "location": "path",
43455	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$",
43456	//       "required": true,
43457	//       "type": "string"
43458	//     }
43459	//   },
43460	//   "path": "v2beta1/{+name}",
43461	//   "response": {
43462	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
43463	//   },
43464	//   "scopes": [
43465	//     "https://www.googleapis.com/auth/cloud-platform",
43466	//     "https://www.googleapis.com/auth/dialogflow"
43467	//   ]
43468	// }
43469
43470}
43471
43472// method id "dialogflow.projects.locations.agent.intents.list":
43473
43474type ProjectsLocationsAgentIntentsListCall struct {
43475	s            *Service
43476	parent       string
43477	urlParams_   gensupport.URLParams
43478	ifNoneMatch_ string
43479	ctx_         context.Context
43480	header_      http.Header
43481}
43482
43483// List: Returns the list of all intents in the specified agent.
43484//
43485// - parent: The agent to list all intents from. Format:
43486//   `projects//agent`.
43487func (r *ProjectsLocationsAgentIntentsService) List(parent string) *ProjectsLocationsAgentIntentsListCall {
43488	c := &ProjectsLocationsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43489	c.parent = parent
43490	return c
43491}
43492
43493// IntentView sets the optional parameter "intentView": The resource
43494// view to apply to the returned intent.
43495//
43496// Possible values:
43497//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
43498// in the response.
43499//   "INTENT_VIEW_FULL" - All fields are populated.
43500func (c *ProjectsLocationsAgentIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsListCall {
43501	c.urlParams_.Set("intentView", intentView)
43502	return c
43503}
43504
43505// LanguageCode sets the optional parameter "languageCode": The language
43506// used to access language-specific data. If not specified, the agent's
43507// default language is used. For more information, see Multilingual
43508// intent and entity data
43509// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
43510func (c *ProjectsLocationsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsListCall {
43511	c.urlParams_.Set("languageCode", languageCode)
43512	return c
43513}
43514
43515// PageSize sets the optional parameter "pageSize": The maximum number
43516// of items to return in a single page. By default 100 and at most 1000.
43517func (c *ProjectsLocationsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentIntentsListCall {
43518	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
43519	return c
43520}
43521
43522// PageToken sets the optional parameter "pageToken": The
43523// next_page_token value returned from a previous list request.
43524func (c *ProjectsLocationsAgentIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentIntentsListCall {
43525	c.urlParams_.Set("pageToken", pageToken)
43526	return c
43527}
43528
43529// Fields allows partial responses to be retrieved. See
43530// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43531// for more information.
43532func (c *ProjectsLocationsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsListCall {
43533	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43534	return c
43535}
43536
43537// IfNoneMatch sets the optional parameter which makes the operation
43538// fail if the object's ETag matches the given value. This is useful for
43539// getting updates only after the object has changed since the last
43540// request. Use googleapi.IsNotModified to check whether the response
43541// error from Do is the result of In-None-Match.
43542func (c *ProjectsLocationsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsListCall {
43543	c.ifNoneMatch_ = entityTag
43544	return c
43545}
43546
43547// Context sets the context to be used in this call's Do method. Any
43548// pending HTTP request will be aborted if the provided context is
43549// canceled.
43550func (c *ProjectsLocationsAgentIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsListCall {
43551	c.ctx_ = ctx
43552	return c
43553}
43554
43555// Header returns an http.Header that can be modified by the caller to
43556// add HTTP headers to the request.
43557func (c *ProjectsLocationsAgentIntentsListCall) Header() http.Header {
43558	if c.header_ == nil {
43559		c.header_ = make(http.Header)
43560	}
43561	return c.header_
43562}
43563
43564func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
43565	reqHeaders := make(http.Header)
43566	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
43567	for k, v := range c.header_ {
43568		reqHeaders[k] = v
43569	}
43570	reqHeaders.Set("User-Agent", c.s.userAgent())
43571	if c.ifNoneMatch_ != "" {
43572		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43573	}
43574	var body io.Reader = nil
43575	c.urlParams_.Set("alt", alt)
43576	c.urlParams_.Set("prettyPrint", "false")
43577	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
43578	urls += "?" + c.urlParams_.Encode()
43579	req, err := http.NewRequest("GET", urls, body)
43580	if err != nil {
43581		return nil, err
43582	}
43583	req.Header = reqHeaders
43584	googleapi.Expand(req.URL, map[string]string{
43585		"parent": c.parent,
43586	})
43587	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43588}
43589
43590// Do executes the "dialogflow.projects.locations.agent.intents.list" call.
43591// Exactly one of *GoogleCloudDialogflowV2beta1ListIntentsResponse or
43592// error will be non-nil. Any non-2xx status code is an error. Response
43593// headers are in either
43594// *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header
43595//  or (if a response was returned at all) in
43596// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43597// whether the returned error was because http.StatusNotModified was
43598// returned.
43599func (c *ProjectsLocationsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
43600	gensupport.SetOptions(c.urlParams_, opts...)
43601	res, err := c.doRequest("json")
43602	if res != nil && res.StatusCode == http.StatusNotModified {
43603		if res.Body != nil {
43604			res.Body.Close()
43605		}
43606		return nil, &googleapi.Error{
43607			Code:   res.StatusCode,
43608			Header: res.Header,
43609		}
43610	}
43611	if err != nil {
43612		return nil, err
43613	}
43614	defer googleapi.CloseBody(res)
43615	if err := googleapi.CheckResponse(res); err != nil {
43616		return nil, err
43617	}
43618	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
43619		ServerResponse: googleapi.ServerResponse{
43620			Header:         res.Header,
43621			HTTPStatusCode: res.StatusCode,
43622		},
43623	}
43624	target := &ret
43625	if err := gensupport.DecodeResponse(target, res); err != nil {
43626		return nil, err
43627	}
43628	return ret, nil
43629	// {
43630	//   "description": "Returns the list of all intents in the specified agent.",
43631	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents",
43632	//   "httpMethod": "GET",
43633	//   "id": "dialogflow.projects.locations.agent.intents.list",
43634	//   "parameterOrder": [
43635	//     "parent"
43636	//   ],
43637	//   "parameters": {
43638	//     "intentView": {
43639	//       "description": "Optional. The resource view to apply to the returned intent.",
43640	//       "enum": [
43641	//         "INTENT_VIEW_UNSPECIFIED",
43642	//         "INTENT_VIEW_FULL"
43643	//       ],
43644	//       "enumDescriptions": [
43645	//         "Training phrases field is not populated in the response.",
43646	//         "All fields are populated."
43647	//       ],
43648	//       "location": "query",
43649	//       "type": "string"
43650	//     },
43651	//     "languageCode": {
43652	//       "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).",
43653	//       "location": "query",
43654	//       "type": "string"
43655	//     },
43656	//     "pageSize": {
43657	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
43658	//       "format": "int32",
43659	//       "location": "query",
43660	//       "type": "integer"
43661	//     },
43662	//     "pageToken": {
43663	//       "description": "Optional. The next_page_token value returned from a previous list request.",
43664	//       "location": "query",
43665	//       "type": "string"
43666	//     },
43667	//     "parent": {
43668	//       "description": "Required. The agent to list all intents from. Format: `projects//agent`.",
43669	//       "location": "path",
43670	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
43671	//       "required": true,
43672	//       "type": "string"
43673	//     }
43674	//   },
43675	//   "path": "v2beta1/{+parent}/intents",
43676	//   "response": {
43677	//     "$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
43678	//   },
43679	//   "scopes": [
43680	//     "https://www.googleapis.com/auth/cloud-platform",
43681	//     "https://www.googleapis.com/auth/dialogflow"
43682	//   ]
43683	// }
43684
43685}
43686
43687// Pages invokes f for each page of results.
43688// A non-nil error returned from f will halt the iteration.
43689// The provided context supersedes any context provided to the Context method.
43690func (c *ProjectsLocationsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
43691	c.ctx_ = ctx
43692	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
43693	for {
43694		x, err := c.Do()
43695		if err != nil {
43696			return err
43697		}
43698		if err := f(x); err != nil {
43699			return err
43700		}
43701		if x.NextPageToken == "" {
43702			return nil
43703		}
43704		c.PageToken(x.NextPageToken)
43705	}
43706}
43707
43708// method id "dialogflow.projects.locations.agent.intents.patch":
43709
43710type ProjectsLocationsAgentIntentsPatchCall struct {
43711	s                                  *Service
43712	nameid                             string
43713	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
43714	urlParams_                         gensupport.URLParams
43715	ctx_                               context.Context
43716	header_                            http.Header
43717}
43718
43719// Patch: Updates the specified intent.
43720//
43721// - name: Optional. The unique identifier of this intent. Required for
43722//   Intents.UpdateIntent and Intents.BatchUpdateIntents methods.
43723//   Supported formats: - `projects//agent/intents/` -
43724//   `projects//locations//agent/intents/`.
43725func (r *ProjectsLocationsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsPatchCall {
43726	c := &ProjectsLocationsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43727	c.nameid = nameid
43728	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
43729	return c
43730}
43731
43732// IntentView sets the optional parameter "intentView": The resource
43733// view to apply to the returned intent.
43734//
43735// Possible values:
43736//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
43737// in the response.
43738//   "INTENT_VIEW_FULL" - All fields are populated.
43739func (c *ProjectsLocationsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsPatchCall {
43740	c.urlParams_.Set("intentView", intentView)
43741	return c
43742}
43743
43744// LanguageCode sets the optional parameter "languageCode": The language
43745// used to access language-specific data. If not specified, the agent's
43746// default language is used. For more information, see Multilingual
43747// intent and entity data
43748// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
43749func (c *ProjectsLocationsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsPatchCall {
43750	c.urlParams_.Set("languageCode", languageCode)
43751	return c
43752}
43753
43754// UpdateMask sets the optional parameter "updateMask": The mask to
43755// control which fields get updated.
43756func (c *ProjectsLocationsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentIntentsPatchCall {
43757	c.urlParams_.Set("updateMask", updateMask)
43758	return c
43759}
43760
43761// Fields allows partial responses to be retrieved. See
43762// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43763// for more information.
43764func (c *ProjectsLocationsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsPatchCall {
43765	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43766	return c
43767}
43768
43769// Context sets the context to be used in this call's Do method. Any
43770// pending HTTP request will be aborted if the provided context is
43771// canceled.
43772func (c *ProjectsLocationsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsPatchCall {
43773	c.ctx_ = ctx
43774	return c
43775}
43776
43777// Header returns an http.Header that can be modified by the caller to
43778// add HTTP headers to the request.
43779func (c *ProjectsLocationsAgentIntentsPatchCall) Header() http.Header {
43780	if c.header_ == nil {
43781		c.header_ = make(http.Header)
43782	}
43783	return c.header_
43784}
43785
43786func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
43787	reqHeaders := make(http.Header)
43788	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
43789	for k, v := range c.header_ {
43790		reqHeaders[k] = v
43791	}
43792	reqHeaders.Set("User-Agent", c.s.userAgent())
43793	var body io.Reader = nil
43794	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
43795	if err != nil {
43796		return nil, err
43797	}
43798	reqHeaders.Set("Content-Type", "application/json")
43799	c.urlParams_.Set("alt", alt)
43800	c.urlParams_.Set("prettyPrint", "false")
43801	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43802	urls += "?" + c.urlParams_.Encode()
43803	req, err := http.NewRequest("PATCH", urls, body)
43804	if err != nil {
43805		return nil, err
43806	}
43807	req.Header = reqHeaders
43808	googleapi.Expand(req.URL, map[string]string{
43809		"name": c.nameid,
43810	})
43811	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43812}
43813
43814// Do executes the "dialogflow.projects.locations.agent.intents.patch" call.
43815// Exactly one of *GoogleCloudDialogflowV2beta1Intent or error will be
43816// non-nil. Any non-2xx status code is an error. Response headers are in
43817// either *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or
43818// (if a response was returned at all) in
43819// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43820// whether the returned error was because http.StatusNotModified was
43821// returned.
43822func (c *ProjectsLocationsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
43823	gensupport.SetOptions(c.urlParams_, opts...)
43824	res, err := c.doRequest("json")
43825	if res != nil && res.StatusCode == http.StatusNotModified {
43826		if res.Body != nil {
43827			res.Body.Close()
43828		}
43829		return nil, &googleapi.Error{
43830			Code:   res.StatusCode,
43831			Header: res.Header,
43832		}
43833	}
43834	if err != nil {
43835		return nil, err
43836	}
43837	defer googleapi.CloseBody(res)
43838	if err := googleapi.CheckResponse(res); err != nil {
43839		return nil, err
43840	}
43841	ret := &GoogleCloudDialogflowV2beta1Intent{
43842		ServerResponse: googleapi.ServerResponse{
43843			Header:         res.Header,
43844			HTTPStatusCode: res.StatusCode,
43845		},
43846	}
43847	target := &ret
43848	if err := gensupport.DecodeResponse(target, res); err != nil {
43849		return nil, err
43850	}
43851	return ret, nil
43852	// {
43853	//   "description": "Updates the specified intent.",
43854	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/intents/{intentsId}",
43855	//   "httpMethod": "PATCH",
43856	//   "id": "dialogflow.projects.locations.agent.intents.patch",
43857	//   "parameterOrder": [
43858	//     "name"
43859	//   ],
43860	//   "parameters": {
43861	//     "intentView": {
43862	//       "description": "Optional. The resource view to apply to the returned intent.",
43863	//       "enum": [
43864	//         "INTENT_VIEW_UNSPECIFIED",
43865	//         "INTENT_VIEW_FULL"
43866	//       ],
43867	//       "enumDescriptions": [
43868	//         "Training phrases field is not populated in the response.",
43869	//         "All fields are populated."
43870	//       ],
43871	//       "location": "query",
43872	//       "type": "string"
43873	//     },
43874	//     "languageCode": {
43875	//       "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).",
43876	//       "location": "query",
43877	//       "type": "string"
43878	//     },
43879	//     "name": {
43880	//       "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/`",
43881	//       "location": "path",
43882	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/intents/[^/]+$",
43883	//       "required": true,
43884	//       "type": "string"
43885	//     },
43886	//     "updateMask": {
43887	//       "description": "Optional. The mask to control which fields get updated.",
43888	//       "format": "google-fieldmask",
43889	//       "location": "query",
43890	//       "type": "string"
43891	//     }
43892	//   },
43893	//   "path": "v2beta1/{+name}",
43894	//   "request": {
43895	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
43896	//   },
43897	//   "response": {
43898	//     "$ref": "GoogleCloudDialogflowV2beta1Intent"
43899	//   },
43900	//   "scopes": [
43901	//     "https://www.googleapis.com/auth/cloud-platform",
43902	//     "https://www.googleapis.com/auth/dialogflow"
43903	//   ]
43904	// }
43905
43906}
43907
43908// method id "dialogflow.projects.locations.agent.sessions.deleteContexts":
43909
43910type ProjectsLocationsAgentSessionsDeleteContextsCall struct {
43911	s          *Service
43912	parent     string
43913	urlParams_ gensupport.URLParams
43914	ctx_       context.Context
43915	header_    http.Header
43916}
43917
43918// DeleteContexts: Deletes all active contexts in the specified session.
43919//
43920// - parent: The name of the session to delete all contexts from.
43921//   Supported formats: - `projects//agent/sessions/, -
43922//   `projects//locations//agent/sessions/`, -
43923//   `projects//agent/environments//users//sessions/`, -
43924//   `projects//locations//agent/environments//users//sessions/`, If
43925//   `Location ID` is not specified we assume default 'us' location. If
43926//   `Environment ID` is not specified we assume default 'draft'
43927//   environment. If `User ID` is not specified, we assume default '-'
43928//   user.
43929func (r *ProjectsLocationsAgentSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentSessionsDeleteContextsCall {
43930	c := &ProjectsLocationsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43931	c.parent = parent
43932	return c
43933}
43934
43935// Fields allows partial responses to be retrieved. See
43936// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43937// for more information.
43938func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDeleteContextsCall {
43939	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43940	return c
43941}
43942
43943// Context sets the context to be used in this call's Do method. Any
43944// pending HTTP request will be aborted if the provided context is
43945// canceled.
43946func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDeleteContextsCall {
43947	c.ctx_ = ctx
43948	return c
43949}
43950
43951// Header returns an http.Header that can be modified by the caller to
43952// add HTTP headers to the request.
43953func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Header() http.Header {
43954	if c.header_ == nil {
43955		c.header_ = make(http.Header)
43956	}
43957	return c.header_
43958}
43959
43960func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
43961	reqHeaders := make(http.Header)
43962	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
43963	for k, v := range c.header_ {
43964		reqHeaders[k] = v
43965	}
43966	reqHeaders.Set("User-Agent", c.s.userAgent())
43967	var body io.Reader = nil
43968	c.urlParams_.Set("alt", alt)
43969	c.urlParams_.Set("prettyPrint", "false")
43970	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
43971	urls += "?" + c.urlParams_.Encode()
43972	req, err := http.NewRequest("DELETE", urls, body)
43973	if err != nil {
43974		return nil, err
43975	}
43976	req.Header = reqHeaders
43977	googleapi.Expand(req.URL, map[string]string{
43978		"parent": c.parent,
43979	})
43980	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43981}
43982
43983// Do executes the "dialogflow.projects.locations.agent.sessions.deleteContexts" call.
43984// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
43985// non-2xx status code is an error. Response headers are in either
43986// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
43987// returned at all) in error.(*googleapi.Error).Header. Use
43988// googleapi.IsNotModified to check whether the returned error was
43989// because http.StatusNotModified was returned.
43990func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
43991	gensupport.SetOptions(c.urlParams_, opts...)
43992	res, err := c.doRequest("json")
43993	if res != nil && res.StatusCode == http.StatusNotModified {
43994		if res.Body != nil {
43995			res.Body.Close()
43996		}
43997		return nil, &googleapi.Error{
43998			Code:   res.StatusCode,
43999			Header: res.Header,
44000		}
44001	}
44002	if err != nil {
44003		return nil, err
44004	}
44005	defer googleapi.CloseBody(res)
44006	if err := googleapi.CheckResponse(res); err != nil {
44007		return nil, err
44008	}
44009	ret := &GoogleProtobufEmpty{
44010		ServerResponse: googleapi.ServerResponse{
44011			Header:         res.Header,
44012			HTTPStatusCode: res.StatusCode,
44013		},
44014	}
44015	target := &ret
44016	if err := gensupport.DecodeResponse(target, res); err != nil {
44017		return nil, err
44018	}
44019	return ret, nil
44020	// {
44021	//   "description": "Deletes all active contexts in the specified session.",
44022	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts",
44023	//   "httpMethod": "DELETE",
44024	//   "id": "dialogflow.projects.locations.agent.sessions.deleteContexts",
44025	//   "parameterOrder": [
44026	//     "parent"
44027	//   ],
44028	//   "parameters": {
44029	//     "parent": {
44030	//       "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.",
44031	//       "location": "path",
44032	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
44033	//       "required": true,
44034	//       "type": "string"
44035	//     }
44036	//   },
44037	//   "path": "v2beta1/{+parent}/contexts",
44038	//   "response": {
44039	//     "$ref": "GoogleProtobufEmpty"
44040	//   },
44041	//   "scopes": [
44042	//     "https://www.googleapis.com/auth/cloud-platform",
44043	//     "https://www.googleapis.com/auth/dialogflow"
44044	//   ]
44045	// }
44046
44047}
44048
44049// method id "dialogflow.projects.locations.agent.sessions.detectIntent":
44050
44051type ProjectsLocationsAgentSessionsDetectIntentCall struct {
44052	s                                               *Service
44053	sessionid                                       string
44054	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
44055	urlParams_                                      gensupport.URLParams
44056	ctx_                                            context.Context
44057	header_                                         http.Header
44058}
44059
44060// DetectIntent: Processes a natural language query and returns
44061// structured, actionable data as a result. This method is not
44062// idempotent, because it may cause contexts and session entity types to
44063// be updated, which in turn might affect results of future queries.
44064// Note: Always use agent versions for production traffic. See Versions
44065// and environments
44066// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
44067//
44068// - session: The name of the session this query is sent to. Supported
44069//   formats: - `projects//agent/sessions/, -
44070//   `projects//locations//agent/sessions/`, -
44071//   `projects//agent/environments//users//sessions/`, -
44072//   `projects//locations//agent/environments//users//sessions/`, If
44073//   `Location ID` is not specified we assume default 'us' location. If
44074//   `Environment ID` is not specified, we assume default 'draft'
44075//   environment (`Environment ID` might be referred to as environment
44076//   name at some places). If `User ID` is not specified, we are using
44077//   "-". It's up to the API caller to choose an appropriate `Session
44078//   ID` and `User Id`. They can be a random number or some type of user
44079//   and session identifiers (preferably hashed). The length of the
44080//   `Session ID` and `User ID` must not exceed 36 characters. For more
44081//   information, see the API interactions guide
44082//   (https://cloud.google.com/dialogflow/docs/api-overview). Note:
44083//   Always use agent versions for production traffic. See Versions and
44084//   environments
44085//   (https://cloud.google.com/dialogflow/es/docs/agents-versions).
44086func (r *ProjectsLocationsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentSessionsDetectIntentCall {
44087	c := &ProjectsLocationsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44088	c.sessionid = sessionid
44089	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
44090	return c
44091}
44092
44093// Fields allows partial responses to be retrieved. See
44094// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44095// for more information.
44096func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDetectIntentCall {
44097	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44098	return c
44099}
44100
44101// Context sets the context to be used in this call's Do method. Any
44102// pending HTTP request will be aborted if the provided context is
44103// canceled.
44104func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDetectIntentCall {
44105	c.ctx_ = ctx
44106	return c
44107}
44108
44109// Header returns an http.Header that can be modified by the caller to
44110// add HTTP headers to the request.
44111func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Header() http.Header {
44112	if c.header_ == nil {
44113		c.header_ = make(http.Header)
44114	}
44115	return c.header_
44116}
44117
44118func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
44119	reqHeaders := make(http.Header)
44120	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
44121	for k, v := range c.header_ {
44122		reqHeaders[k] = v
44123	}
44124	reqHeaders.Set("User-Agent", c.s.userAgent())
44125	var body io.Reader = nil
44126	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
44127	if err != nil {
44128		return nil, err
44129	}
44130	reqHeaders.Set("Content-Type", "application/json")
44131	c.urlParams_.Set("alt", alt)
44132	c.urlParams_.Set("prettyPrint", "false")
44133	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
44134	urls += "?" + c.urlParams_.Encode()
44135	req, err := http.NewRequest("POST", urls, body)
44136	if err != nil {
44137		return nil, err
44138	}
44139	req.Header = reqHeaders
44140	googleapi.Expand(req.URL, map[string]string{
44141		"session": c.sessionid,
44142	})
44143	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44144}
44145
44146// Do executes the "dialogflow.projects.locations.agent.sessions.detectIntent" call.
44147// Exactly one of *GoogleCloudDialogflowV2beta1DetectIntentResponse or
44148// error will be non-nil. Any non-2xx status code is an error. Response
44149// headers are in either
44150// *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Heade
44151// r or (if a response was returned at all) in
44152// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44153// whether the returned error was because http.StatusNotModified was
44154// returned.
44155func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
44156	gensupport.SetOptions(c.urlParams_, opts...)
44157	res, err := c.doRequest("json")
44158	if res != nil && res.StatusCode == http.StatusNotModified {
44159		if res.Body != nil {
44160			res.Body.Close()
44161		}
44162		return nil, &googleapi.Error{
44163			Code:   res.StatusCode,
44164			Header: res.Header,
44165		}
44166	}
44167	if err != nil {
44168		return nil, err
44169	}
44170	defer googleapi.CloseBody(res)
44171	if err := googleapi.CheckResponse(res); err != nil {
44172		return nil, err
44173	}
44174	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
44175		ServerResponse: googleapi.ServerResponse{
44176			Header:         res.Header,
44177			HTTPStatusCode: res.StatusCode,
44178		},
44179	}
44180	target := &ret
44181	if err := gensupport.DecodeResponse(target, res); err != nil {
44182		return nil, err
44183	}
44184	return ret, nil
44185	// {
44186	//   "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).",
44187	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}:detectIntent",
44188	//   "httpMethod": "POST",
44189	//   "id": "dialogflow.projects.locations.agent.sessions.detectIntent",
44190	//   "parameterOrder": [
44191	//     "session"
44192	//   ],
44193	//   "parameters": {
44194	//     "session": {
44195	//       "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).",
44196	//       "location": "path",
44197	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
44198	//       "required": true,
44199	//       "type": "string"
44200	//     }
44201	//   },
44202	//   "path": "v2beta1/{+session}:detectIntent",
44203	//   "request": {
44204	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentRequest"
44205	//   },
44206	//   "response": {
44207	//     "$ref": "GoogleCloudDialogflowV2beta1DetectIntentResponse"
44208	//   },
44209	//   "scopes": [
44210	//     "https://www.googleapis.com/auth/cloud-platform",
44211	//     "https://www.googleapis.com/auth/dialogflow"
44212	//   ]
44213	// }
44214
44215}
44216
44217// method id "dialogflow.projects.locations.agent.sessions.contexts.create":
44218
44219type ProjectsLocationsAgentSessionsContextsCreateCall struct {
44220	s                                   *Service
44221	parent                              string
44222	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
44223	urlParams_                          gensupport.URLParams
44224	ctx_                                context.Context
44225	header_                             http.Header
44226}
44227
44228// Create: Creates a context. If the specified context already exists,
44229// overrides the context.
44230//
44231// - parent: The session to create a context for. Supported formats: -
44232//   `projects//agent/sessions/, -
44233//   `projects//locations//agent/sessions/`, -
44234//   `projects//agent/environments//users//sessions/`, -
44235//   `projects//locations//agent/environments//users//sessions/`, If
44236//   `Location ID` is not specified we assume default 'us' location. If
44237//   `Environment ID` is not specified, we assume default 'draft'
44238//   environment. If `User ID` is not specified, we assume default '-'
44239//   user.
44240func (r *ProjectsLocationsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
44241	c := &ProjectsLocationsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44242	c.parent = parent
44243	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
44244	return c
44245}
44246
44247// Fields allows partial responses to be retrieved. See
44248// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44249// for more information.
44250func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsCreateCall {
44251	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44252	return c
44253}
44254
44255// Context sets the context to be used in this call's Do method. Any
44256// pending HTTP request will be aborted if the provided context is
44257// canceled.
44258func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
44259	c.ctx_ = ctx
44260	return c
44261}
44262
44263// Header returns an http.Header that can be modified by the caller to
44264// add HTTP headers to the request.
44265func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Header() http.Header {
44266	if c.header_ == nil {
44267		c.header_ = make(http.Header)
44268	}
44269	return c.header_
44270}
44271
44272func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
44273	reqHeaders := make(http.Header)
44274	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
44275	for k, v := range c.header_ {
44276		reqHeaders[k] = v
44277	}
44278	reqHeaders.Set("User-Agent", c.s.userAgent())
44279	var body io.Reader = nil
44280	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
44281	if err != nil {
44282		return nil, err
44283	}
44284	reqHeaders.Set("Content-Type", "application/json")
44285	c.urlParams_.Set("alt", alt)
44286	c.urlParams_.Set("prettyPrint", "false")
44287	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
44288	urls += "?" + c.urlParams_.Encode()
44289	req, err := http.NewRequest("POST", urls, body)
44290	if err != nil {
44291		return nil, err
44292	}
44293	req.Header = reqHeaders
44294	googleapi.Expand(req.URL, map[string]string{
44295		"parent": c.parent,
44296	})
44297	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44298}
44299
44300// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.create" call.
44301// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
44302// non-nil. Any non-2xx status code is an error. Response headers are in
44303// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
44304// (if a response was returned at all) in
44305// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44306// whether the returned error was because http.StatusNotModified was
44307// returned.
44308func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
44309	gensupport.SetOptions(c.urlParams_, opts...)
44310	res, err := c.doRequest("json")
44311	if res != nil && res.StatusCode == http.StatusNotModified {
44312		if res.Body != nil {
44313			res.Body.Close()
44314		}
44315		return nil, &googleapi.Error{
44316			Code:   res.StatusCode,
44317			Header: res.Header,
44318		}
44319	}
44320	if err != nil {
44321		return nil, err
44322	}
44323	defer googleapi.CloseBody(res)
44324	if err := googleapi.CheckResponse(res); err != nil {
44325		return nil, err
44326	}
44327	ret := &GoogleCloudDialogflowV2beta1Context{
44328		ServerResponse: googleapi.ServerResponse{
44329			Header:         res.Header,
44330			HTTPStatusCode: res.StatusCode,
44331		},
44332	}
44333	target := &ret
44334	if err := gensupport.DecodeResponse(target, res); err != nil {
44335		return nil, err
44336	}
44337	return ret, nil
44338	// {
44339	//   "description": "Creates a context. If the specified context already exists, overrides the context.",
44340	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts",
44341	//   "httpMethod": "POST",
44342	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.create",
44343	//   "parameterOrder": [
44344	//     "parent"
44345	//   ],
44346	//   "parameters": {
44347	//     "parent": {
44348	//       "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.",
44349	//       "location": "path",
44350	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
44351	//       "required": true,
44352	//       "type": "string"
44353	//     }
44354	//   },
44355	//   "path": "v2beta1/{+parent}/contexts",
44356	//   "request": {
44357	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
44358	//   },
44359	//   "response": {
44360	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
44361	//   },
44362	//   "scopes": [
44363	//     "https://www.googleapis.com/auth/cloud-platform",
44364	//     "https://www.googleapis.com/auth/dialogflow"
44365	//   ]
44366	// }
44367
44368}
44369
44370// method id "dialogflow.projects.locations.agent.sessions.contexts.delete":
44371
44372type ProjectsLocationsAgentSessionsContextsDeleteCall struct {
44373	s          *Service
44374	name       string
44375	urlParams_ gensupport.URLParams
44376	ctx_       context.Context
44377	header_    http.Header
44378}
44379
44380// Delete: Deletes the specified context.
44381//
44382// - name: The name of the context to delete. Supported formats: -
44383//   `projects//agent/sessions//contexts/`, -
44384//   `projects//locations//agent/sessions//contexts/`, -
44385//   `projects//agent/environments//users//sessions//contexts/`, -
44386//   `projects//locations//agent/environments//users//sessions//contexts/
44387//   `, If `Location ID` is not specified we assume default 'us'
44388//   location. If `Environment ID` is not specified, we assume default
44389//   'draft' environment. If `User ID` is not specified, we assume
44390//   default '-' user.
44391func (r *ProjectsLocationsAgentSessionsContextsService) Delete(name string) *ProjectsLocationsAgentSessionsContextsDeleteCall {
44392	c := &ProjectsLocationsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44393	c.name = name
44394	return c
44395}
44396
44397// Fields allows partial responses to be retrieved. See
44398// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44399// for more information.
44400func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsDeleteCall {
44401	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44402	return c
44403}
44404
44405// Context sets the context to be used in this call's Do method. Any
44406// pending HTTP request will be aborted if the provided context is
44407// canceled.
44408func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsDeleteCall {
44409	c.ctx_ = ctx
44410	return c
44411}
44412
44413// Header returns an http.Header that can be modified by the caller to
44414// add HTTP headers to the request.
44415func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Header() http.Header {
44416	if c.header_ == nil {
44417		c.header_ = make(http.Header)
44418	}
44419	return c.header_
44420}
44421
44422func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
44423	reqHeaders := make(http.Header)
44424	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
44425	for k, v := range c.header_ {
44426		reqHeaders[k] = v
44427	}
44428	reqHeaders.Set("User-Agent", c.s.userAgent())
44429	var body io.Reader = nil
44430	c.urlParams_.Set("alt", alt)
44431	c.urlParams_.Set("prettyPrint", "false")
44432	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44433	urls += "?" + c.urlParams_.Encode()
44434	req, err := http.NewRequest("DELETE", urls, body)
44435	if err != nil {
44436		return nil, err
44437	}
44438	req.Header = reqHeaders
44439	googleapi.Expand(req.URL, map[string]string{
44440		"name": c.name,
44441	})
44442	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44443}
44444
44445// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.delete" call.
44446// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
44447// non-2xx status code is an error. Response headers are in either
44448// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
44449// returned at all) in error.(*googleapi.Error).Header. Use
44450// googleapi.IsNotModified to check whether the returned error was
44451// because http.StatusNotModified was returned.
44452func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
44453	gensupport.SetOptions(c.urlParams_, opts...)
44454	res, err := c.doRequest("json")
44455	if res != nil && res.StatusCode == http.StatusNotModified {
44456		if res.Body != nil {
44457			res.Body.Close()
44458		}
44459		return nil, &googleapi.Error{
44460			Code:   res.StatusCode,
44461			Header: res.Header,
44462		}
44463	}
44464	if err != nil {
44465		return nil, err
44466	}
44467	defer googleapi.CloseBody(res)
44468	if err := googleapi.CheckResponse(res); err != nil {
44469		return nil, err
44470	}
44471	ret := &GoogleProtobufEmpty{
44472		ServerResponse: googleapi.ServerResponse{
44473			Header:         res.Header,
44474			HTTPStatusCode: res.StatusCode,
44475		},
44476	}
44477	target := &ret
44478	if err := gensupport.DecodeResponse(target, res); err != nil {
44479		return nil, err
44480	}
44481	return ret, nil
44482	// {
44483	//   "description": "Deletes the specified context.",
44484	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
44485	//   "httpMethod": "DELETE",
44486	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.delete",
44487	//   "parameterOrder": [
44488	//     "name"
44489	//   ],
44490	//   "parameters": {
44491	//     "name": {
44492	//       "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.",
44493	//       "location": "path",
44494	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
44495	//       "required": true,
44496	//       "type": "string"
44497	//     }
44498	//   },
44499	//   "path": "v2beta1/{+name}",
44500	//   "response": {
44501	//     "$ref": "GoogleProtobufEmpty"
44502	//   },
44503	//   "scopes": [
44504	//     "https://www.googleapis.com/auth/cloud-platform",
44505	//     "https://www.googleapis.com/auth/dialogflow"
44506	//   ]
44507	// }
44508
44509}
44510
44511// method id "dialogflow.projects.locations.agent.sessions.contexts.get":
44512
44513type ProjectsLocationsAgentSessionsContextsGetCall struct {
44514	s            *Service
44515	name         string
44516	urlParams_   gensupport.URLParams
44517	ifNoneMatch_ string
44518	ctx_         context.Context
44519	header_      http.Header
44520}
44521
44522// Get: Retrieves the specified context.
44523//
44524// - name: The name of the context. Supported formats: -
44525//   `projects//agent/sessions//contexts/`, -
44526//   `projects//locations//agent/sessions//contexts/`, -
44527//   `projects//agent/environments//users//sessions//contexts/`, -
44528//   `projects//locations//agent/environments//users//sessions//contexts/
44529//   `, If `Location ID` is not specified we assume default 'us'
44530//   location. If `Environment ID` is not specified, we assume default
44531//   'draft' environment. If `User ID` is not specified, we assume
44532//   default '-' user.
44533func (r *ProjectsLocationsAgentSessionsContextsService) Get(name string) *ProjectsLocationsAgentSessionsContextsGetCall {
44534	c := &ProjectsLocationsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44535	c.name = name
44536	return c
44537}
44538
44539// Fields allows partial responses to be retrieved. See
44540// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44541// for more information.
44542func (c *ProjectsLocationsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsGetCall {
44543	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44544	return c
44545}
44546
44547// IfNoneMatch sets the optional parameter which makes the operation
44548// fail if the object's ETag matches the given value. This is useful for
44549// getting updates only after the object has changed since the last
44550// request. Use googleapi.IsNotModified to check whether the response
44551// error from Do is the result of In-None-Match.
44552func (c *ProjectsLocationsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsGetCall {
44553	c.ifNoneMatch_ = entityTag
44554	return c
44555}
44556
44557// Context sets the context to be used in this call's Do method. Any
44558// pending HTTP request will be aborted if the provided context is
44559// canceled.
44560func (c *ProjectsLocationsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsGetCall {
44561	c.ctx_ = ctx
44562	return c
44563}
44564
44565// Header returns an http.Header that can be modified by the caller to
44566// add HTTP headers to the request.
44567func (c *ProjectsLocationsAgentSessionsContextsGetCall) Header() http.Header {
44568	if c.header_ == nil {
44569		c.header_ = make(http.Header)
44570	}
44571	return c.header_
44572}
44573
44574func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
44575	reqHeaders := make(http.Header)
44576	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
44577	for k, v := range c.header_ {
44578		reqHeaders[k] = v
44579	}
44580	reqHeaders.Set("User-Agent", c.s.userAgent())
44581	if c.ifNoneMatch_ != "" {
44582		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44583	}
44584	var body io.Reader = nil
44585	c.urlParams_.Set("alt", alt)
44586	c.urlParams_.Set("prettyPrint", "false")
44587	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44588	urls += "?" + c.urlParams_.Encode()
44589	req, err := http.NewRequest("GET", urls, body)
44590	if err != nil {
44591		return nil, err
44592	}
44593	req.Header = reqHeaders
44594	googleapi.Expand(req.URL, map[string]string{
44595		"name": c.name,
44596	})
44597	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44598}
44599
44600// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.get" call.
44601// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
44602// non-nil. Any non-2xx status code is an error. Response headers are in
44603// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
44604// (if a response was returned at all) in
44605// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44606// whether the returned error was because http.StatusNotModified was
44607// returned.
44608func (c *ProjectsLocationsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
44609	gensupport.SetOptions(c.urlParams_, opts...)
44610	res, err := c.doRequest("json")
44611	if res != nil && res.StatusCode == http.StatusNotModified {
44612		if res.Body != nil {
44613			res.Body.Close()
44614		}
44615		return nil, &googleapi.Error{
44616			Code:   res.StatusCode,
44617			Header: res.Header,
44618		}
44619	}
44620	if err != nil {
44621		return nil, err
44622	}
44623	defer googleapi.CloseBody(res)
44624	if err := googleapi.CheckResponse(res); err != nil {
44625		return nil, err
44626	}
44627	ret := &GoogleCloudDialogflowV2beta1Context{
44628		ServerResponse: googleapi.ServerResponse{
44629			Header:         res.Header,
44630			HTTPStatusCode: res.StatusCode,
44631		},
44632	}
44633	target := &ret
44634	if err := gensupport.DecodeResponse(target, res); err != nil {
44635		return nil, err
44636	}
44637	return ret, nil
44638	// {
44639	//   "description": "Retrieves the specified context.",
44640	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
44641	//   "httpMethod": "GET",
44642	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.get",
44643	//   "parameterOrder": [
44644	//     "name"
44645	//   ],
44646	//   "parameters": {
44647	//     "name": {
44648	//       "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.",
44649	//       "location": "path",
44650	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
44651	//       "required": true,
44652	//       "type": "string"
44653	//     }
44654	//   },
44655	//   "path": "v2beta1/{+name}",
44656	//   "response": {
44657	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
44658	//   },
44659	//   "scopes": [
44660	//     "https://www.googleapis.com/auth/cloud-platform",
44661	//     "https://www.googleapis.com/auth/dialogflow"
44662	//   ]
44663	// }
44664
44665}
44666
44667// method id "dialogflow.projects.locations.agent.sessions.contexts.list":
44668
44669type ProjectsLocationsAgentSessionsContextsListCall struct {
44670	s            *Service
44671	parent       string
44672	urlParams_   gensupport.URLParams
44673	ifNoneMatch_ string
44674	ctx_         context.Context
44675	header_      http.Header
44676}
44677
44678// List: Returns the list of all contexts in the specified session.
44679//
44680// - parent: The session to list all contexts from. Supported formats: -
44681//   `projects//agent/sessions/, -
44682//   `projects//locations//agent/sessions/`, -
44683//   `projects//agent/environments//users//sessions/`, -
44684//   `projects//locations//agent/environments//users//sessions/`, If
44685//   `Location ID` is not specified we assume default 'us' location. If
44686//   `Environment ID` is not specified, we assume default 'draft'
44687//   environment. If `User ID` is not specified, we assume default '-'
44688//   user.
44689func (r *ProjectsLocationsAgentSessionsContextsService) List(parent string) *ProjectsLocationsAgentSessionsContextsListCall {
44690	c := &ProjectsLocationsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44691	c.parent = parent
44692	return c
44693}
44694
44695// PageSize sets the optional parameter "pageSize": The maximum number
44696// of items to return in a single page. By default 100 and at most 1000.
44697func (c *ProjectsLocationsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsContextsListCall {
44698	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44699	return c
44700}
44701
44702// PageToken sets the optional parameter "pageToken": The
44703// next_page_token value returned from a previous list request.
44704func (c *ProjectsLocationsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsContextsListCall {
44705	c.urlParams_.Set("pageToken", pageToken)
44706	return c
44707}
44708
44709// Fields allows partial responses to be retrieved. See
44710// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44711// for more information.
44712func (c *ProjectsLocationsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsListCall {
44713	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44714	return c
44715}
44716
44717// IfNoneMatch sets the optional parameter which makes the operation
44718// fail if the object's ETag matches the given value. This is useful for
44719// getting updates only after the object has changed since the last
44720// request. Use googleapi.IsNotModified to check whether the response
44721// error from Do is the result of In-None-Match.
44722func (c *ProjectsLocationsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsListCall {
44723	c.ifNoneMatch_ = entityTag
44724	return c
44725}
44726
44727// Context sets the context to be used in this call's Do method. Any
44728// pending HTTP request will be aborted if the provided context is
44729// canceled.
44730func (c *ProjectsLocationsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsListCall {
44731	c.ctx_ = ctx
44732	return c
44733}
44734
44735// Header returns an http.Header that can be modified by the caller to
44736// add HTTP headers to the request.
44737func (c *ProjectsLocationsAgentSessionsContextsListCall) Header() http.Header {
44738	if c.header_ == nil {
44739		c.header_ = make(http.Header)
44740	}
44741	return c.header_
44742}
44743
44744func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
44745	reqHeaders := make(http.Header)
44746	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
44747	for k, v := range c.header_ {
44748		reqHeaders[k] = v
44749	}
44750	reqHeaders.Set("User-Agent", c.s.userAgent())
44751	if c.ifNoneMatch_ != "" {
44752		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44753	}
44754	var body io.Reader = nil
44755	c.urlParams_.Set("alt", alt)
44756	c.urlParams_.Set("prettyPrint", "false")
44757	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
44758	urls += "?" + c.urlParams_.Encode()
44759	req, err := http.NewRequest("GET", urls, body)
44760	if err != nil {
44761		return nil, err
44762	}
44763	req.Header = reqHeaders
44764	googleapi.Expand(req.URL, map[string]string{
44765		"parent": c.parent,
44766	})
44767	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44768}
44769
44770// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.list" call.
44771// Exactly one of *GoogleCloudDialogflowV2beta1ListContextsResponse or
44772// error will be non-nil. Any non-2xx status code is an error. Response
44773// headers are in either
44774// *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Heade
44775// r or (if a response was returned at all) in
44776// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44777// whether the returned error was because http.StatusNotModified was
44778// returned.
44779func (c *ProjectsLocationsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
44780	gensupport.SetOptions(c.urlParams_, opts...)
44781	res, err := c.doRequest("json")
44782	if res != nil && res.StatusCode == http.StatusNotModified {
44783		if res.Body != nil {
44784			res.Body.Close()
44785		}
44786		return nil, &googleapi.Error{
44787			Code:   res.StatusCode,
44788			Header: res.Header,
44789		}
44790	}
44791	if err != nil {
44792		return nil, err
44793	}
44794	defer googleapi.CloseBody(res)
44795	if err := googleapi.CheckResponse(res); err != nil {
44796		return nil, err
44797	}
44798	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
44799		ServerResponse: googleapi.ServerResponse{
44800			Header:         res.Header,
44801			HTTPStatusCode: res.StatusCode,
44802		},
44803	}
44804	target := &ret
44805	if err := gensupport.DecodeResponse(target, res); err != nil {
44806		return nil, err
44807	}
44808	return ret, nil
44809	// {
44810	//   "description": "Returns the list of all contexts in the specified session.",
44811	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts",
44812	//   "httpMethod": "GET",
44813	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.list",
44814	//   "parameterOrder": [
44815	//     "parent"
44816	//   ],
44817	//   "parameters": {
44818	//     "pageSize": {
44819	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
44820	//       "format": "int32",
44821	//       "location": "query",
44822	//       "type": "integer"
44823	//     },
44824	//     "pageToken": {
44825	//       "description": "Optional. The next_page_token value returned from a previous list request.",
44826	//       "location": "query",
44827	//       "type": "string"
44828	//     },
44829	//     "parent": {
44830	//       "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.",
44831	//       "location": "path",
44832	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
44833	//       "required": true,
44834	//       "type": "string"
44835	//     }
44836	//   },
44837	//   "path": "v2beta1/{+parent}/contexts",
44838	//   "response": {
44839	//     "$ref": "GoogleCloudDialogflowV2beta1ListContextsResponse"
44840	//   },
44841	//   "scopes": [
44842	//     "https://www.googleapis.com/auth/cloud-platform",
44843	//     "https://www.googleapis.com/auth/dialogflow"
44844	//   ]
44845	// }
44846
44847}
44848
44849// Pages invokes f for each page of results.
44850// A non-nil error returned from f will halt the iteration.
44851// The provided context supersedes any context provided to the Context method.
44852func (c *ProjectsLocationsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
44853	c.ctx_ = ctx
44854	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
44855	for {
44856		x, err := c.Do()
44857		if err != nil {
44858			return err
44859		}
44860		if err := f(x); err != nil {
44861			return err
44862		}
44863		if x.NextPageToken == "" {
44864			return nil
44865		}
44866		c.PageToken(x.NextPageToken)
44867	}
44868}
44869
44870// method id "dialogflow.projects.locations.agent.sessions.contexts.patch":
44871
44872type ProjectsLocationsAgentSessionsContextsPatchCall struct {
44873	s                                   *Service
44874	nameid                              string
44875	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
44876	urlParams_                          gensupport.URLParams
44877	ctx_                                context.Context
44878	header_                             http.Header
44879}
44880
44881// Patch: Updates the specified context.
44882//
44883// - name: The unique identifier of the context. Supported formats: -
44884//   `projects//agent/sessions//contexts/`, -
44885//   `projects//locations//agent/sessions//contexts/`, -
44886//   `projects//agent/environments//users//sessions//contexts/`, -
44887//   `projects//locations//agent/environments//users//sessions//contexts/
44888//   `, The `Context ID` is always converted to lowercase, may only
44889//   contain characters in a-zA-Z0-9_-% and may be at most 250 bytes
44890//   long. If `Environment ID` is not specified, we assume default
44891//   'draft' environment. If `User ID` is not specified, we assume
44892//   default '-' user. The following context names are reserved for
44893//   internal use by Dialogflow. You should not use these contexts or
44894//   create contexts with these names: * `__system_counters__` *
44895//   `*_id_dialog_context` * `*_dialog_params_size`.
44896func (r *ProjectsLocationsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
44897	c := &ProjectsLocationsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44898	c.nameid = nameid
44899	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
44900	return c
44901}
44902
44903// UpdateMask sets the optional parameter "updateMask": The mask to
44904// control which fields get updated.
44905func (c *ProjectsLocationsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsContextsPatchCall {
44906	c.urlParams_.Set("updateMask", updateMask)
44907	return c
44908}
44909
44910// Fields allows partial responses to be retrieved. See
44911// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44912// for more information.
44913func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsPatchCall {
44914	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44915	return c
44916}
44917
44918// Context sets the context to be used in this call's Do method. Any
44919// pending HTTP request will be aborted if the provided context is
44920// canceled.
44921func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
44922	c.ctx_ = ctx
44923	return c
44924}
44925
44926// Header returns an http.Header that can be modified by the caller to
44927// add HTTP headers to the request.
44928func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Header() http.Header {
44929	if c.header_ == nil {
44930		c.header_ = make(http.Header)
44931	}
44932	return c.header_
44933}
44934
44935func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
44936	reqHeaders := make(http.Header)
44937	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
44938	for k, v := range c.header_ {
44939		reqHeaders[k] = v
44940	}
44941	reqHeaders.Set("User-Agent", c.s.userAgent())
44942	var body io.Reader = nil
44943	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
44944	if err != nil {
44945		return nil, err
44946	}
44947	reqHeaders.Set("Content-Type", "application/json")
44948	c.urlParams_.Set("alt", alt)
44949	c.urlParams_.Set("prettyPrint", "false")
44950	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44951	urls += "?" + c.urlParams_.Encode()
44952	req, err := http.NewRequest("PATCH", urls, body)
44953	if err != nil {
44954		return nil, err
44955	}
44956	req.Header = reqHeaders
44957	googleapi.Expand(req.URL, map[string]string{
44958		"name": c.nameid,
44959	})
44960	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44961}
44962
44963// Do executes the "dialogflow.projects.locations.agent.sessions.contexts.patch" call.
44964// Exactly one of *GoogleCloudDialogflowV2beta1Context or error will be
44965// non-nil. Any non-2xx status code is an error. Response headers are in
44966// either *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or
44967// (if a response was returned at all) in
44968// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44969// whether the returned error was because http.StatusNotModified was
44970// returned.
44971func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
44972	gensupport.SetOptions(c.urlParams_, opts...)
44973	res, err := c.doRequest("json")
44974	if res != nil && res.StatusCode == http.StatusNotModified {
44975		if res.Body != nil {
44976			res.Body.Close()
44977		}
44978		return nil, &googleapi.Error{
44979			Code:   res.StatusCode,
44980			Header: res.Header,
44981		}
44982	}
44983	if err != nil {
44984		return nil, err
44985	}
44986	defer googleapi.CloseBody(res)
44987	if err := googleapi.CheckResponse(res); err != nil {
44988		return nil, err
44989	}
44990	ret := &GoogleCloudDialogflowV2beta1Context{
44991		ServerResponse: googleapi.ServerResponse{
44992			Header:         res.Header,
44993			HTTPStatusCode: res.StatusCode,
44994		},
44995	}
44996	target := &ret
44997	if err := gensupport.DecodeResponse(target, res); err != nil {
44998		return nil, err
44999	}
45000	return ret, nil
45001	// {
45002	//   "description": "Updates the specified context.",
45003	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/contexts/{contextsId}",
45004	//   "httpMethod": "PATCH",
45005	//   "id": "dialogflow.projects.locations.agent.sessions.contexts.patch",
45006	//   "parameterOrder": [
45007	//     "name"
45008	//   ],
45009	//   "parameters": {
45010	//     "name": {
45011	//       "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`",
45012	//       "location": "path",
45013	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/contexts/[^/]+$",
45014	//       "required": true,
45015	//       "type": "string"
45016	//     },
45017	//     "updateMask": {
45018	//       "description": "Optional. The mask to control which fields get updated.",
45019	//       "format": "google-fieldmask",
45020	//       "location": "query",
45021	//       "type": "string"
45022	//     }
45023	//   },
45024	//   "path": "v2beta1/{+name}",
45025	//   "request": {
45026	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
45027	//   },
45028	//   "response": {
45029	//     "$ref": "GoogleCloudDialogflowV2beta1Context"
45030	//   },
45031	//   "scopes": [
45032	//     "https://www.googleapis.com/auth/cloud-platform",
45033	//     "https://www.googleapis.com/auth/dialogflow"
45034	//   ]
45035	// }
45036
45037}
45038
45039// method id "dialogflow.projects.locations.agent.sessions.entityTypes.create":
45040
45041type ProjectsLocationsAgentSessionsEntityTypesCreateCall struct {
45042	s                                             *Service
45043	parent                                        string
45044	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
45045	urlParams_                                    gensupport.URLParams
45046	ctx_                                          context.Context
45047	header_                                       http.Header
45048}
45049
45050// Create: Creates a session entity type. If the specified session
45051// entity type already exists, overrides the session entity type. This
45052// method doesn't work with Google Assistant integration. Contact
45053// Dialogflow support if you need to use session entities with Google
45054// Assistant integration.
45055//
45056// - parent: The session to create a session entity type for. Supported
45057//   formats: - `projects//agent/sessions/, -
45058//   `projects//locations//agent/sessions/`, -
45059//   `projects//agent/environments//users//sessions/`, -
45060//   `projects//locations//agent/environments//users//sessions/`, If
45061//   `Location ID` is not specified we assume default 'us' location. If
45062//   `Environment ID` is not specified, we assume default 'draft'
45063//   environment. If `User ID` is not specified, we assume default '-'
45064//   user.
45065func (r *ProjectsLocationsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
45066	c := &ProjectsLocationsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45067	c.parent = parent
45068	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
45069	return c
45070}
45071
45072// Fields allows partial responses to be retrieved. See
45073// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45074// for more information.
45075func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
45076	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45077	return c
45078}
45079
45080// Context sets the context to be used in this call's Do method. Any
45081// pending HTTP request will be aborted if the provided context is
45082// canceled.
45083func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
45084	c.ctx_ = ctx
45085	return c
45086}
45087
45088// Header returns an http.Header that can be modified by the caller to
45089// add HTTP headers to the request.
45090func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Header() http.Header {
45091	if c.header_ == nil {
45092		c.header_ = make(http.Header)
45093	}
45094	return c.header_
45095}
45096
45097func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
45098	reqHeaders := make(http.Header)
45099	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
45100	for k, v := range c.header_ {
45101		reqHeaders[k] = v
45102	}
45103	reqHeaders.Set("User-Agent", c.s.userAgent())
45104	var body io.Reader = nil
45105	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
45106	if err != nil {
45107		return nil, err
45108	}
45109	reqHeaders.Set("Content-Type", "application/json")
45110	c.urlParams_.Set("alt", alt)
45111	c.urlParams_.Set("prettyPrint", "false")
45112	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
45113	urls += "?" + c.urlParams_.Encode()
45114	req, err := http.NewRequest("POST", urls, body)
45115	if err != nil {
45116		return nil, err
45117	}
45118	req.Header = reqHeaders
45119	googleapi.Expand(req.URL, map[string]string{
45120		"parent": c.parent,
45121	})
45122	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45123}
45124
45125// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.create" call.
45126// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
45127// error will be non-nil. Any non-2xx status code is an error. Response
45128// headers are in either
45129// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
45130// or (if a response was returned at all) in
45131// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45132// whether the returned error was because http.StatusNotModified was
45133// returned.
45134func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
45135	gensupport.SetOptions(c.urlParams_, opts...)
45136	res, err := c.doRequest("json")
45137	if res != nil && res.StatusCode == http.StatusNotModified {
45138		if res.Body != nil {
45139			res.Body.Close()
45140		}
45141		return nil, &googleapi.Error{
45142			Code:   res.StatusCode,
45143			Header: res.Header,
45144		}
45145	}
45146	if err != nil {
45147		return nil, err
45148	}
45149	defer googleapi.CloseBody(res)
45150	if err := googleapi.CheckResponse(res); err != nil {
45151		return nil, err
45152	}
45153	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
45154		ServerResponse: googleapi.ServerResponse{
45155			Header:         res.Header,
45156			HTTPStatusCode: res.StatusCode,
45157		},
45158	}
45159	target := &ret
45160	if err := gensupport.DecodeResponse(target, res); err != nil {
45161		return nil, err
45162	}
45163	return ret, nil
45164	// {
45165	//   "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.",
45166	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes",
45167	//   "httpMethod": "POST",
45168	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.create",
45169	//   "parameterOrder": [
45170	//     "parent"
45171	//   ],
45172	//   "parameters": {
45173	//     "parent": {
45174	//       "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.",
45175	//       "location": "path",
45176	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
45177	//       "required": true,
45178	//       "type": "string"
45179	//     }
45180	//   },
45181	//   "path": "v2beta1/{+parent}/entityTypes",
45182	//   "request": {
45183	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
45184	//   },
45185	//   "response": {
45186	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
45187	//   },
45188	//   "scopes": [
45189	//     "https://www.googleapis.com/auth/cloud-platform",
45190	//     "https://www.googleapis.com/auth/dialogflow"
45191	//   ]
45192	// }
45193
45194}
45195
45196// method id "dialogflow.projects.locations.agent.sessions.entityTypes.delete":
45197
45198type ProjectsLocationsAgentSessionsEntityTypesDeleteCall struct {
45199	s          *Service
45200	name       string
45201	urlParams_ gensupport.URLParams
45202	ctx_       context.Context
45203	header_    http.Header
45204}
45205
45206// Delete: Deletes the specified session entity type. This method
45207// doesn't work with Google Assistant integration. Contact Dialogflow
45208// support if you need to use session entities with Google Assistant
45209// integration.
45210//
45211// - name: The name of the entity type to delete. Supported formats: -
45212//   `projects//agent/sessions//entityTypes/` -
45213//   `projects//locations//agent/sessions//entityTypes/` -
45214//   `projects//agent/environments//users//sessions//entityTypes/` -
45215//   `projects//locations//agent/environments/
45216//   /users//sessions//entityTypes/` If `Location ID` is not specified
45217//   we assume default 'us' location. If `Environment ID` is not
45218//   specified, we assume default 'draft' environment. If `User ID` is
45219//   not specified, we assume default '-' user.
45220func (r *ProjectsLocationsAgentSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
45221	c := &ProjectsLocationsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45222	c.name = name
45223	return c
45224}
45225
45226// Fields allows partial responses to be retrieved. See
45227// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45228// for more information.
45229func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
45230	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45231	return c
45232}
45233
45234// Context sets the context to be used in this call's Do method. Any
45235// pending HTTP request will be aborted if the provided context is
45236// canceled.
45237func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
45238	c.ctx_ = ctx
45239	return c
45240}
45241
45242// Header returns an http.Header that can be modified by the caller to
45243// add HTTP headers to the request.
45244func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
45245	if c.header_ == nil {
45246		c.header_ = make(http.Header)
45247	}
45248	return c.header_
45249}
45250
45251func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
45252	reqHeaders := make(http.Header)
45253	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
45254	for k, v := range c.header_ {
45255		reqHeaders[k] = v
45256	}
45257	reqHeaders.Set("User-Agent", c.s.userAgent())
45258	var body io.Reader = nil
45259	c.urlParams_.Set("alt", alt)
45260	c.urlParams_.Set("prettyPrint", "false")
45261	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45262	urls += "?" + c.urlParams_.Encode()
45263	req, err := http.NewRequest("DELETE", urls, body)
45264	if err != nil {
45265		return nil, err
45266	}
45267	req.Header = reqHeaders
45268	googleapi.Expand(req.URL, map[string]string{
45269		"name": c.name,
45270	})
45271	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45272}
45273
45274// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.delete" call.
45275// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
45276// non-2xx status code is an error. Response headers are in either
45277// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
45278// returned at all) in error.(*googleapi.Error).Header. Use
45279// googleapi.IsNotModified to check whether the returned error was
45280// because http.StatusNotModified was returned.
45281func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
45282	gensupport.SetOptions(c.urlParams_, opts...)
45283	res, err := c.doRequest("json")
45284	if res != nil && res.StatusCode == http.StatusNotModified {
45285		if res.Body != nil {
45286			res.Body.Close()
45287		}
45288		return nil, &googleapi.Error{
45289			Code:   res.StatusCode,
45290			Header: res.Header,
45291		}
45292	}
45293	if err != nil {
45294		return nil, err
45295	}
45296	defer googleapi.CloseBody(res)
45297	if err := googleapi.CheckResponse(res); err != nil {
45298		return nil, err
45299	}
45300	ret := &GoogleProtobufEmpty{
45301		ServerResponse: googleapi.ServerResponse{
45302			Header:         res.Header,
45303			HTTPStatusCode: res.StatusCode,
45304		},
45305	}
45306	target := &ret
45307	if err := gensupport.DecodeResponse(target, res); err != nil {
45308		return nil, err
45309	}
45310	return ret, nil
45311	// {
45312	//   "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.",
45313	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
45314	//   "httpMethod": "DELETE",
45315	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.delete",
45316	//   "parameterOrder": [
45317	//     "name"
45318	//   ],
45319	//   "parameters": {
45320	//     "name": {
45321	//       "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.",
45322	//       "location": "path",
45323	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
45324	//       "required": true,
45325	//       "type": "string"
45326	//     }
45327	//   },
45328	//   "path": "v2beta1/{+name}",
45329	//   "response": {
45330	//     "$ref": "GoogleProtobufEmpty"
45331	//   },
45332	//   "scopes": [
45333	//     "https://www.googleapis.com/auth/cloud-platform",
45334	//     "https://www.googleapis.com/auth/dialogflow"
45335	//   ]
45336	// }
45337
45338}
45339
45340// method id "dialogflow.projects.locations.agent.sessions.entityTypes.get":
45341
45342type ProjectsLocationsAgentSessionsEntityTypesGetCall struct {
45343	s            *Service
45344	name         string
45345	urlParams_   gensupport.URLParams
45346	ifNoneMatch_ string
45347	ctx_         context.Context
45348	header_      http.Header
45349}
45350
45351// Get: Retrieves the specified session entity type. This method doesn't
45352// work with Google Assistant integration. Contact Dialogflow support if
45353// you need to use session entities with Google Assistant integration.
45354//
45355// - name: The name of the session entity type. Supported formats: -
45356//   `projects//agent/sessions//entityTypes/` -
45357//   `projects//locations//agent/sessions//entityTypes/` -
45358//   `projects//agent/environments//users//sessions//entityTypes/` -
45359//   `projects//locations//agent/environments/
45360//   /users//sessions//entityTypes/` If `Location ID` is not specified
45361//   we assume default 'us' location. If `Environment ID` is not
45362//   specified, we assume default 'draft' environment. If `User ID` is
45363//   not specified, we assume default '-' user.
45364func (r *ProjectsLocationsAgentSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
45365	c := &ProjectsLocationsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45366	c.name = name
45367	return c
45368}
45369
45370// Fields allows partial responses to be retrieved. See
45371// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45372// for more information.
45373func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
45374	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45375	return c
45376}
45377
45378// IfNoneMatch sets the optional parameter which makes the operation
45379// fail if the object's ETag matches the given value. This is useful for
45380// getting updates only after the object has changed since the last
45381// request. Use googleapi.IsNotModified to check whether the response
45382// error from Do is the result of In-None-Match.
45383func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
45384	c.ifNoneMatch_ = entityTag
45385	return c
45386}
45387
45388// Context sets the context to be used in this call's Do method. Any
45389// pending HTTP request will be aborted if the provided context is
45390// canceled.
45391func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
45392	c.ctx_ = ctx
45393	return c
45394}
45395
45396// Header returns an http.Header that can be modified by the caller to
45397// add HTTP headers to the request.
45398func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Header() http.Header {
45399	if c.header_ == nil {
45400		c.header_ = make(http.Header)
45401	}
45402	return c.header_
45403}
45404
45405func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
45406	reqHeaders := make(http.Header)
45407	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
45408	for k, v := range c.header_ {
45409		reqHeaders[k] = v
45410	}
45411	reqHeaders.Set("User-Agent", c.s.userAgent())
45412	if c.ifNoneMatch_ != "" {
45413		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45414	}
45415	var body io.Reader = nil
45416	c.urlParams_.Set("alt", alt)
45417	c.urlParams_.Set("prettyPrint", "false")
45418	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45419	urls += "?" + c.urlParams_.Encode()
45420	req, err := http.NewRequest("GET", urls, body)
45421	if err != nil {
45422		return nil, err
45423	}
45424	req.Header = reqHeaders
45425	googleapi.Expand(req.URL, map[string]string{
45426		"name": c.name,
45427	})
45428	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45429}
45430
45431// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.get" call.
45432// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
45433// error will be non-nil. Any non-2xx status code is an error. Response
45434// headers are in either
45435// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
45436// or (if a response was returned at all) in
45437// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45438// whether the returned error was because http.StatusNotModified was
45439// returned.
45440func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
45441	gensupport.SetOptions(c.urlParams_, opts...)
45442	res, err := c.doRequest("json")
45443	if res != nil && res.StatusCode == http.StatusNotModified {
45444		if res.Body != nil {
45445			res.Body.Close()
45446		}
45447		return nil, &googleapi.Error{
45448			Code:   res.StatusCode,
45449			Header: res.Header,
45450		}
45451	}
45452	if err != nil {
45453		return nil, err
45454	}
45455	defer googleapi.CloseBody(res)
45456	if err := googleapi.CheckResponse(res); err != nil {
45457		return nil, err
45458	}
45459	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
45460		ServerResponse: googleapi.ServerResponse{
45461			Header:         res.Header,
45462			HTTPStatusCode: res.StatusCode,
45463		},
45464	}
45465	target := &ret
45466	if err := gensupport.DecodeResponse(target, res); err != nil {
45467		return nil, err
45468	}
45469	return ret, nil
45470	// {
45471	//   "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.",
45472	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
45473	//   "httpMethod": "GET",
45474	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.get",
45475	//   "parameterOrder": [
45476	//     "name"
45477	//   ],
45478	//   "parameters": {
45479	//     "name": {
45480	//       "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.",
45481	//       "location": "path",
45482	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
45483	//       "required": true,
45484	//       "type": "string"
45485	//     }
45486	//   },
45487	//   "path": "v2beta1/{+name}",
45488	//   "response": {
45489	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
45490	//   },
45491	//   "scopes": [
45492	//     "https://www.googleapis.com/auth/cloud-platform",
45493	//     "https://www.googleapis.com/auth/dialogflow"
45494	//   ]
45495	// }
45496
45497}
45498
45499// method id "dialogflow.projects.locations.agent.sessions.entityTypes.list":
45500
45501type ProjectsLocationsAgentSessionsEntityTypesListCall struct {
45502	s            *Service
45503	parent       string
45504	urlParams_   gensupport.URLParams
45505	ifNoneMatch_ string
45506	ctx_         context.Context
45507	header_      http.Header
45508}
45509
45510// List: Returns the list of all session entity types in the specified
45511// session. This method doesn't work with Google Assistant integration.
45512// Contact Dialogflow support if you need to use session entities with
45513// Google Assistant integration.
45514//
45515// - parent: The session to list all session entity types from.
45516//   Supported formats: - `projects//agent/sessions/, -
45517//   `projects//locations//agent/sessions/`, -
45518//   `projects//agent/environments//users//sessions/`, -
45519//   `projects//locations//agent/environments//users//sessions/`, If
45520//   `Location ID` is not specified we assume default 'us' location. If
45521//   `Environment ID` is not specified, we assume default 'draft'
45522//   environment. If `User ID` is not specified, we assume default '-'
45523//   user.
45524func (r *ProjectsLocationsAgentSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
45525	c := &ProjectsLocationsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45526	c.parent = parent
45527	return c
45528}
45529
45530// PageSize sets the optional parameter "pageSize": The maximum number
45531// of items to return in a single page. By default 100 and at most 1000.
45532func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsEntityTypesListCall {
45533	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
45534	return c
45535}
45536
45537// PageToken sets the optional parameter "pageToken": The
45538// next_page_token value returned from a previous list request.
45539func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
45540	c.urlParams_.Set("pageToken", pageToken)
45541	return c
45542}
45543
45544// Fields allows partial responses to be retrieved. See
45545// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45546// for more information.
45547func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesListCall {
45548	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45549	return c
45550}
45551
45552// IfNoneMatch sets the optional parameter which makes the operation
45553// fail if the object's ETag matches the given value. This is useful for
45554// getting updates only after the object has changed since the last
45555// request. Use googleapi.IsNotModified to check whether the response
45556// error from Do is the result of In-None-Match.
45557func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
45558	c.ifNoneMatch_ = entityTag
45559	return c
45560}
45561
45562// Context sets the context to be used in this call's Do method. Any
45563// pending HTTP request will be aborted if the provided context is
45564// canceled.
45565func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesListCall {
45566	c.ctx_ = ctx
45567	return c
45568}
45569
45570// Header returns an http.Header that can be modified by the caller to
45571// add HTTP headers to the request.
45572func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Header() http.Header {
45573	if c.header_ == nil {
45574		c.header_ = make(http.Header)
45575	}
45576	return c.header_
45577}
45578
45579func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
45580	reqHeaders := make(http.Header)
45581	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
45582	for k, v := range c.header_ {
45583		reqHeaders[k] = v
45584	}
45585	reqHeaders.Set("User-Agent", c.s.userAgent())
45586	if c.ifNoneMatch_ != "" {
45587		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45588	}
45589	var body io.Reader = nil
45590	c.urlParams_.Set("alt", alt)
45591	c.urlParams_.Set("prettyPrint", "false")
45592	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
45593	urls += "?" + c.urlParams_.Encode()
45594	req, err := http.NewRequest("GET", urls, body)
45595	if err != nil {
45596		return nil, err
45597	}
45598	req.Header = reqHeaders
45599	googleapi.Expand(req.URL, map[string]string{
45600		"parent": c.parent,
45601	})
45602	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45603}
45604
45605// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.list" call.
45606// Exactly one of
45607// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse or error
45608// will be non-nil. Any non-2xx status code is an error. Response
45609// headers are in either
45610// *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResp
45611// onse.Header or (if a response was returned at all) in
45612// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45613// whether the returned error was because http.StatusNotModified was
45614// returned.
45615func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
45616	gensupport.SetOptions(c.urlParams_, opts...)
45617	res, err := c.doRequest("json")
45618	if res != nil && res.StatusCode == http.StatusNotModified {
45619		if res.Body != nil {
45620			res.Body.Close()
45621		}
45622		return nil, &googleapi.Error{
45623			Code:   res.StatusCode,
45624			Header: res.Header,
45625		}
45626	}
45627	if err != nil {
45628		return nil, err
45629	}
45630	defer googleapi.CloseBody(res)
45631	if err := googleapi.CheckResponse(res); err != nil {
45632		return nil, err
45633	}
45634	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
45635		ServerResponse: googleapi.ServerResponse{
45636			Header:         res.Header,
45637			HTTPStatusCode: res.StatusCode,
45638		},
45639	}
45640	target := &ret
45641	if err := gensupport.DecodeResponse(target, res); err != nil {
45642		return nil, err
45643	}
45644	return ret, nil
45645	// {
45646	//   "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.",
45647	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes",
45648	//   "httpMethod": "GET",
45649	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.list",
45650	//   "parameterOrder": [
45651	//     "parent"
45652	//   ],
45653	//   "parameters": {
45654	//     "pageSize": {
45655	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
45656	//       "format": "int32",
45657	//       "location": "query",
45658	//       "type": "integer"
45659	//     },
45660	//     "pageToken": {
45661	//       "description": "Optional. The next_page_token value returned from a previous list request.",
45662	//       "location": "query",
45663	//       "type": "string"
45664	//     },
45665	//     "parent": {
45666	//       "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.",
45667	//       "location": "path",
45668	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+$",
45669	//       "required": true,
45670	//       "type": "string"
45671	//     }
45672	//   },
45673	//   "path": "v2beta1/{+parent}/entityTypes",
45674	//   "response": {
45675	//     "$ref": "GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse"
45676	//   },
45677	//   "scopes": [
45678	//     "https://www.googleapis.com/auth/cloud-platform",
45679	//     "https://www.googleapis.com/auth/dialogflow"
45680	//   ]
45681	// }
45682
45683}
45684
45685// Pages invokes f for each page of results.
45686// A non-nil error returned from f will halt the iteration.
45687// The provided context supersedes any context provided to the Context method.
45688func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
45689	c.ctx_ = ctx
45690	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
45691	for {
45692		x, err := c.Do()
45693		if err != nil {
45694			return err
45695		}
45696		if err := f(x); err != nil {
45697			return err
45698		}
45699		if x.NextPageToken == "" {
45700			return nil
45701		}
45702		c.PageToken(x.NextPageToken)
45703	}
45704}
45705
45706// method id "dialogflow.projects.locations.agent.sessions.entityTypes.patch":
45707
45708type ProjectsLocationsAgentSessionsEntityTypesPatchCall struct {
45709	s                                             *Service
45710	nameid                                        string
45711	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
45712	urlParams_                                    gensupport.URLParams
45713	ctx_                                          context.Context
45714	header_                                       http.Header
45715}
45716
45717// Patch: Updates the specified session entity type. This method doesn't
45718// work with Google Assistant integration. Contact Dialogflow support if
45719// you need to use session entities with Google Assistant integration.
45720//
45721// - name: The unique identifier of this session entity type. Supported
45722//   formats: - `projects//agent/sessions//entityTypes/` -
45723//   `projects//locations//agent/sessions//entityTypes/` -
45724//   `projects//agent/environments//users//sessions//entityTypes/` -
45725//   `projects//locations//agent/environments/
45726//   /users//sessions//entityTypes/` If `Location ID` is not specified
45727//   we assume default 'us' location. If `Environment ID` is not
45728//   specified, we assume default 'draft' environment. If `User ID` is
45729//   not specified, we assume default '-' user. `` must be the display
45730//   name of an existing entity type in the same agent that will be
45731//   overridden or supplemented.
45732func (r *ProjectsLocationsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
45733	c := &ProjectsLocationsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45734	c.nameid = nameid
45735	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
45736	return c
45737}
45738
45739// UpdateMask sets the optional parameter "updateMask": The mask to
45740// control which fields get updated.
45741func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
45742	c.urlParams_.Set("updateMask", updateMask)
45743	return c
45744}
45745
45746// Fields allows partial responses to be retrieved. See
45747// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45748// for more information.
45749func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
45750	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45751	return c
45752}
45753
45754// Context sets the context to be used in this call's Do method. Any
45755// pending HTTP request will be aborted if the provided context is
45756// canceled.
45757func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
45758	c.ctx_ = ctx
45759	return c
45760}
45761
45762// Header returns an http.Header that can be modified by the caller to
45763// add HTTP headers to the request.
45764func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Header() http.Header {
45765	if c.header_ == nil {
45766		c.header_ = make(http.Header)
45767	}
45768	return c.header_
45769}
45770
45771func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
45772	reqHeaders := make(http.Header)
45773	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
45774	for k, v := range c.header_ {
45775		reqHeaders[k] = v
45776	}
45777	reqHeaders.Set("User-Agent", c.s.userAgent())
45778	var body io.Reader = nil
45779	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
45780	if err != nil {
45781		return nil, err
45782	}
45783	reqHeaders.Set("Content-Type", "application/json")
45784	c.urlParams_.Set("alt", alt)
45785	c.urlParams_.Set("prettyPrint", "false")
45786	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45787	urls += "?" + c.urlParams_.Encode()
45788	req, err := http.NewRequest("PATCH", urls, body)
45789	if err != nil {
45790		return nil, err
45791	}
45792	req.Header = reqHeaders
45793	googleapi.Expand(req.URL, map[string]string{
45794		"name": c.nameid,
45795	})
45796	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45797}
45798
45799// Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.patch" call.
45800// Exactly one of *GoogleCloudDialogflowV2beta1SessionEntityType or
45801// error will be non-nil. Any non-2xx status code is an error. Response
45802// headers are in either
45803// *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header
45804// or (if a response was returned at all) in
45805// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45806// whether the returned error was because http.StatusNotModified was
45807// returned.
45808func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
45809	gensupport.SetOptions(c.urlParams_, opts...)
45810	res, err := c.doRequest("json")
45811	if res != nil && res.StatusCode == http.StatusNotModified {
45812		if res.Body != nil {
45813			res.Body.Close()
45814		}
45815		return nil, &googleapi.Error{
45816			Code:   res.StatusCode,
45817			Header: res.Header,
45818		}
45819	}
45820	if err != nil {
45821		return nil, err
45822	}
45823	defer googleapi.CloseBody(res)
45824	if err := googleapi.CheckResponse(res); err != nil {
45825		return nil, err
45826	}
45827	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
45828		ServerResponse: googleapi.ServerResponse{
45829			Header:         res.Header,
45830			HTTPStatusCode: res.StatusCode,
45831		},
45832	}
45833	target := &ret
45834	if err := gensupport.DecodeResponse(target, res); err != nil {
45835		return nil, err
45836	}
45837	return ret, nil
45838	// {
45839	//   "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.",
45840	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/sessions/{sessionsId}/entityTypes/{entityTypesId}",
45841	//   "httpMethod": "PATCH",
45842	//   "id": "dialogflow.projects.locations.agent.sessions.entityTypes.patch",
45843	//   "parameterOrder": [
45844	//     "name"
45845	//   ],
45846	//   "parameters": {
45847	//     "name": {
45848	//       "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.",
45849	//       "location": "path",
45850	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/sessions/[^/]+/entityTypes/[^/]+$",
45851	//       "required": true,
45852	//       "type": "string"
45853	//     },
45854	//     "updateMask": {
45855	//       "description": "Optional. The mask to control which fields get updated.",
45856	//       "format": "google-fieldmask",
45857	//       "location": "query",
45858	//       "type": "string"
45859	//     }
45860	//   },
45861	//   "path": "v2beta1/{+name}",
45862	//   "request": {
45863	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
45864	//   },
45865	//   "response": {
45866	//     "$ref": "GoogleCloudDialogflowV2beta1SessionEntityType"
45867	//   },
45868	//   "scopes": [
45869	//     "https://www.googleapis.com/auth/cloud-platform",
45870	//     "https://www.googleapis.com/auth/dialogflow"
45871	//   ]
45872	// }
45873
45874}
45875
45876// method id "dialogflow.projects.locations.agent.versions.create":
45877
45878type ProjectsLocationsAgentVersionsCreateCall struct {
45879	s                                   *Service
45880	parent                              string
45881	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
45882	urlParams_                          gensupport.URLParams
45883	ctx_                                context.Context
45884	header_                             http.Header
45885}
45886
45887// Create: Creates an agent version. The new version points to the agent
45888// instance in the "default" environment.
45889//
45890// - parent: The agent to create a version for. Supported formats: -
45891//   `projects//agent` - `projects//locations//agent`.
45892func (r *ProjectsLocationsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsCreateCall {
45893	c := &ProjectsLocationsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45894	c.parent = parent
45895	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
45896	return c
45897}
45898
45899// Fields allows partial responses to be retrieved. See
45900// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45901// for more information.
45902func (c *ProjectsLocationsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsCreateCall {
45903	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45904	return c
45905}
45906
45907// Context sets the context to be used in this call's Do method. Any
45908// pending HTTP request will be aborted if the provided context is
45909// canceled.
45910func (c *ProjectsLocationsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsCreateCall {
45911	c.ctx_ = ctx
45912	return c
45913}
45914
45915// Header returns an http.Header that can be modified by the caller to
45916// add HTTP headers to the request.
45917func (c *ProjectsLocationsAgentVersionsCreateCall) Header() http.Header {
45918	if c.header_ == nil {
45919		c.header_ = make(http.Header)
45920	}
45921	return c.header_
45922}
45923
45924func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
45925	reqHeaders := make(http.Header)
45926	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
45927	for k, v := range c.header_ {
45928		reqHeaders[k] = v
45929	}
45930	reqHeaders.Set("User-Agent", c.s.userAgent())
45931	var body io.Reader = nil
45932	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
45933	if err != nil {
45934		return nil, err
45935	}
45936	reqHeaders.Set("Content-Type", "application/json")
45937	c.urlParams_.Set("alt", alt)
45938	c.urlParams_.Set("prettyPrint", "false")
45939	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
45940	urls += "?" + c.urlParams_.Encode()
45941	req, err := http.NewRequest("POST", urls, body)
45942	if err != nil {
45943		return nil, err
45944	}
45945	req.Header = reqHeaders
45946	googleapi.Expand(req.URL, map[string]string{
45947		"parent": c.parent,
45948	})
45949	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45950}
45951
45952// Do executes the "dialogflow.projects.locations.agent.versions.create" call.
45953// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
45954// non-nil. Any non-2xx status code is an error. Response headers are in
45955// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
45956// (if a response was returned at all) in
45957// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45958// whether the returned error was because http.StatusNotModified was
45959// returned.
45960func (c *ProjectsLocationsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
45961	gensupport.SetOptions(c.urlParams_, opts...)
45962	res, err := c.doRequest("json")
45963	if res != nil && res.StatusCode == http.StatusNotModified {
45964		if res.Body != nil {
45965			res.Body.Close()
45966		}
45967		return nil, &googleapi.Error{
45968			Code:   res.StatusCode,
45969			Header: res.Header,
45970		}
45971	}
45972	if err != nil {
45973		return nil, err
45974	}
45975	defer googleapi.CloseBody(res)
45976	if err := googleapi.CheckResponse(res); err != nil {
45977		return nil, err
45978	}
45979	ret := &GoogleCloudDialogflowV2beta1Version{
45980		ServerResponse: googleapi.ServerResponse{
45981			Header:         res.Header,
45982			HTTPStatusCode: res.StatusCode,
45983		},
45984	}
45985	target := &ret
45986	if err := gensupport.DecodeResponse(target, res); err != nil {
45987		return nil, err
45988	}
45989	return ret, nil
45990	// {
45991	//   "description": "Creates an agent version. The new version points to the agent instance in the \"default\" environment.",
45992	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions",
45993	//   "httpMethod": "POST",
45994	//   "id": "dialogflow.projects.locations.agent.versions.create",
45995	//   "parameterOrder": [
45996	//     "parent"
45997	//   ],
45998	//   "parameters": {
45999	//     "parent": {
46000	//       "description": "Required. The agent to create a version for. Supported formats: - `projects//agent` - `projects//locations//agent`",
46001	//       "location": "path",
46002	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
46003	//       "required": true,
46004	//       "type": "string"
46005	//     }
46006	//   },
46007	//   "path": "v2beta1/{+parent}/versions",
46008	//   "request": {
46009	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46010	//   },
46011	//   "response": {
46012	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46013	//   },
46014	//   "scopes": [
46015	//     "https://www.googleapis.com/auth/cloud-platform",
46016	//     "https://www.googleapis.com/auth/dialogflow"
46017	//   ]
46018	// }
46019
46020}
46021
46022// method id "dialogflow.projects.locations.agent.versions.delete":
46023
46024type ProjectsLocationsAgentVersionsDeleteCall struct {
46025	s          *Service
46026	name       string
46027	urlParams_ gensupport.URLParams
46028	ctx_       context.Context
46029	header_    http.Header
46030}
46031
46032// Delete: Delete the specified agent version.
46033//
46034// - name: The name of the version to delete. Supported formats: -
46035//   `projects//agent/versions/` -
46036//   `projects//locations//agent/versions/`.
46037func (r *ProjectsLocationsAgentVersionsService) Delete(name string) *ProjectsLocationsAgentVersionsDeleteCall {
46038	c := &ProjectsLocationsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46039	c.name = name
46040	return c
46041}
46042
46043// Fields allows partial responses to be retrieved. See
46044// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46045// for more information.
46046func (c *ProjectsLocationsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsDeleteCall {
46047	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46048	return c
46049}
46050
46051// Context sets the context to be used in this call's Do method. Any
46052// pending HTTP request will be aborted if the provided context is
46053// canceled.
46054func (c *ProjectsLocationsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsDeleteCall {
46055	c.ctx_ = ctx
46056	return c
46057}
46058
46059// Header returns an http.Header that can be modified by the caller to
46060// add HTTP headers to the request.
46061func (c *ProjectsLocationsAgentVersionsDeleteCall) Header() http.Header {
46062	if c.header_ == nil {
46063		c.header_ = make(http.Header)
46064	}
46065	return c.header_
46066}
46067
46068func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
46069	reqHeaders := make(http.Header)
46070	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
46071	for k, v := range c.header_ {
46072		reqHeaders[k] = v
46073	}
46074	reqHeaders.Set("User-Agent", c.s.userAgent())
46075	var body io.Reader = nil
46076	c.urlParams_.Set("alt", alt)
46077	c.urlParams_.Set("prettyPrint", "false")
46078	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46079	urls += "?" + c.urlParams_.Encode()
46080	req, err := http.NewRequest("DELETE", urls, body)
46081	if err != nil {
46082		return nil, err
46083	}
46084	req.Header = reqHeaders
46085	googleapi.Expand(req.URL, map[string]string{
46086		"name": c.name,
46087	})
46088	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46089}
46090
46091// Do executes the "dialogflow.projects.locations.agent.versions.delete" call.
46092// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
46093// non-2xx status code is an error. Response headers are in either
46094// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
46095// returned at all) in error.(*googleapi.Error).Header. Use
46096// googleapi.IsNotModified to check whether the returned error was
46097// because http.StatusNotModified was returned.
46098func (c *ProjectsLocationsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
46099	gensupport.SetOptions(c.urlParams_, opts...)
46100	res, err := c.doRequest("json")
46101	if res != nil && res.StatusCode == http.StatusNotModified {
46102		if res.Body != nil {
46103			res.Body.Close()
46104		}
46105		return nil, &googleapi.Error{
46106			Code:   res.StatusCode,
46107			Header: res.Header,
46108		}
46109	}
46110	if err != nil {
46111		return nil, err
46112	}
46113	defer googleapi.CloseBody(res)
46114	if err := googleapi.CheckResponse(res); err != nil {
46115		return nil, err
46116	}
46117	ret := &GoogleProtobufEmpty{
46118		ServerResponse: googleapi.ServerResponse{
46119			Header:         res.Header,
46120			HTTPStatusCode: res.StatusCode,
46121		},
46122	}
46123	target := &ret
46124	if err := gensupport.DecodeResponse(target, res); err != nil {
46125		return nil, err
46126	}
46127	return ret, nil
46128	// {
46129	//   "description": "Delete the specified agent version.",
46130	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions/{versionsId}",
46131	//   "httpMethod": "DELETE",
46132	//   "id": "dialogflow.projects.locations.agent.versions.delete",
46133	//   "parameterOrder": [
46134	//     "name"
46135	//   ],
46136	//   "parameters": {
46137	//     "name": {
46138	//       "description": "Required. The name of the version to delete. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
46139	//       "location": "path",
46140	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$",
46141	//       "required": true,
46142	//       "type": "string"
46143	//     }
46144	//   },
46145	//   "path": "v2beta1/{+name}",
46146	//   "response": {
46147	//     "$ref": "GoogleProtobufEmpty"
46148	//   },
46149	//   "scopes": [
46150	//     "https://www.googleapis.com/auth/cloud-platform",
46151	//     "https://www.googleapis.com/auth/dialogflow"
46152	//   ]
46153	// }
46154
46155}
46156
46157// method id "dialogflow.projects.locations.agent.versions.get":
46158
46159type ProjectsLocationsAgentVersionsGetCall struct {
46160	s            *Service
46161	name         string
46162	urlParams_   gensupport.URLParams
46163	ifNoneMatch_ string
46164	ctx_         context.Context
46165	header_      http.Header
46166}
46167
46168// Get: Retrieves the specified agent version.
46169//
46170// - name: The name of the version. Supported formats: -
46171//   `projects//agent/versions/` -
46172//   `projects//locations//agent/versions/`.
46173func (r *ProjectsLocationsAgentVersionsService) Get(name string) *ProjectsLocationsAgentVersionsGetCall {
46174	c := &ProjectsLocationsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46175	c.name = name
46176	return c
46177}
46178
46179// Fields allows partial responses to be retrieved. See
46180// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46181// for more information.
46182func (c *ProjectsLocationsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsGetCall {
46183	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46184	return c
46185}
46186
46187// IfNoneMatch sets the optional parameter which makes the operation
46188// fail if the object's ETag matches the given value. This is useful for
46189// getting updates only after the object has changed since the last
46190// request. Use googleapi.IsNotModified to check whether the response
46191// error from Do is the result of In-None-Match.
46192func (c *ProjectsLocationsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsGetCall {
46193	c.ifNoneMatch_ = entityTag
46194	return c
46195}
46196
46197// Context sets the context to be used in this call's Do method. Any
46198// pending HTTP request will be aborted if the provided context is
46199// canceled.
46200func (c *ProjectsLocationsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsGetCall {
46201	c.ctx_ = ctx
46202	return c
46203}
46204
46205// Header returns an http.Header that can be modified by the caller to
46206// add HTTP headers to the request.
46207func (c *ProjectsLocationsAgentVersionsGetCall) Header() http.Header {
46208	if c.header_ == nil {
46209		c.header_ = make(http.Header)
46210	}
46211	return c.header_
46212}
46213
46214func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
46215	reqHeaders := make(http.Header)
46216	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
46217	for k, v := range c.header_ {
46218		reqHeaders[k] = v
46219	}
46220	reqHeaders.Set("User-Agent", c.s.userAgent())
46221	if c.ifNoneMatch_ != "" {
46222		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46223	}
46224	var body io.Reader = nil
46225	c.urlParams_.Set("alt", alt)
46226	c.urlParams_.Set("prettyPrint", "false")
46227	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46228	urls += "?" + c.urlParams_.Encode()
46229	req, err := http.NewRequest("GET", urls, body)
46230	if err != nil {
46231		return nil, err
46232	}
46233	req.Header = reqHeaders
46234	googleapi.Expand(req.URL, map[string]string{
46235		"name": c.name,
46236	})
46237	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46238}
46239
46240// Do executes the "dialogflow.projects.locations.agent.versions.get" call.
46241// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
46242// non-nil. Any non-2xx status code is an error. Response headers are in
46243// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
46244// (if a response was returned at all) in
46245// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46246// whether the returned error was because http.StatusNotModified was
46247// returned.
46248func (c *ProjectsLocationsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
46249	gensupport.SetOptions(c.urlParams_, opts...)
46250	res, err := c.doRequest("json")
46251	if res != nil && res.StatusCode == http.StatusNotModified {
46252		if res.Body != nil {
46253			res.Body.Close()
46254		}
46255		return nil, &googleapi.Error{
46256			Code:   res.StatusCode,
46257			Header: res.Header,
46258		}
46259	}
46260	if err != nil {
46261		return nil, err
46262	}
46263	defer googleapi.CloseBody(res)
46264	if err := googleapi.CheckResponse(res); err != nil {
46265		return nil, err
46266	}
46267	ret := &GoogleCloudDialogflowV2beta1Version{
46268		ServerResponse: googleapi.ServerResponse{
46269			Header:         res.Header,
46270			HTTPStatusCode: res.StatusCode,
46271		},
46272	}
46273	target := &ret
46274	if err := gensupport.DecodeResponse(target, res); err != nil {
46275		return nil, err
46276	}
46277	return ret, nil
46278	// {
46279	//   "description": "Retrieves the specified agent version.",
46280	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions/{versionsId}",
46281	//   "httpMethod": "GET",
46282	//   "id": "dialogflow.projects.locations.agent.versions.get",
46283	//   "parameterOrder": [
46284	//     "name"
46285	//   ],
46286	//   "parameters": {
46287	//     "name": {
46288	//       "description": "Required. The name of the version. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
46289	//       "location": "path",
46290	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$",
46291	//       "required": true,
46292	//       "type": "string"
46293	//     }
46294	//   },
46295	//   "path": "v2beta1/{+name}",
46296	//   "response": {
46297	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46298	//   },
46299	//   "scopes": [
46300	//     "https://www.googleapis.com/auth/cloud-platform",
46301	//     "https://www.googleapis.com/auth/dialogflow"
46302	//   ]
46303	// }
46304
46305}
46306
46307// method id "dialogflow.projects.locations.agent.versions.list":
46308
46309type ProjectsLocationsAgentVersionsListCall struct {
46310	s            *Service
46311	parent       string
46312	urlParams_   gensupport.URLParams
46313	ifNoneMatch_ string
46314	ctx_         context.Context
46315	header_      http.Header
46316}
46317
46318// List: Returns the list of all versions of the specified agent.
46319//
46320// - parent: The agent to list all versions from. Supported formats: -
46321//   `projects//agent` - `projects//locations//agent`.
46322func (r *ProjectsLocationsAgentVersionsService) List(parent string) *ProjectsLocationsAgentVersionsListCall {
46323	c := &ProjectsLocationsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46324	c.parent = parent
46325	return c
46326}
46327
46328// PageSize sets the optional parameter "pageSize": The maximum number
46329// of items to return in a single page. By default 100 and at most 1000.
46330func (c *ProjectsLocationsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentVersionsListCall {
46331	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
46332	return c
46333}
46334
46335// PageToken sets the optional parameter "pageToken": The
46336// next_page_token value returned from a previous list request.
46337func (c *ProjectsLocationsAgentVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentVersionsListCall {
46338	c.urlParams_.Set("pageToken", pageToken)
46339	return c
46340}
46341
46342// Fields allows partial responses to be retrieved. See
46343// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46344// for more information.
46345func (c *ProjectsLocationsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsListCall {
46346	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46347	return c
46348}
46349
46350// IfNoneMatch sets the optional parameter which makes the operation
46351// fail if the object's ETag matches the given value. This is useful for
46352// getting updates only after the object has changed since the last
46353// request. Use googleapi.IsNotModified to check whether the response
46354// error from Do is the result of In-None-Match.
46355func (c *ProjectsLocationsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsListCall {
46356	c.ifNoneMatch_ = entityTag
46357	return c
46358}
46359
46360// Context sets the context to be used in this call's Do method. Any
46361// pending HTTP request will be aborted if the provided context is
46362// canceled.
46363func (c *ProjectsLocationsAgentVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsListCall {
46364	c.ctx_ = ctx
46365	return c
46366}
46367
46368// Header returns an http.Header that can be modified by the caller to
46369// add HTTP headers to the request.
46370func (c *ProjectsLocationsAgentVersionsListCall) Header() http.Header {
46371	if c.header_ == nil {
46372		c.header_ = make(http.Header)
46373	}
46374	return c.header_
46375}
46376
46377func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
46378	reqHeaders := make(http.Header)
46379	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
46380	for k, v := range c.header_ {
46381		reqHeaders[k] = v
46382	}
46383	reqHeaders.Set("User-Agent", c.s.userAgent())
46384	if c.ifNoneMatch_ != "" {
46385		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46386	}
46387	var body io.Reader = nil
46388	c.urlParams_.Set("alt", alt)
46389	c.urlParams_.Set("prettyPrint", "false")
46390	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
46391	urls += "?" + c.urlParams_.Encode()
46392	req, err := http.NewRequest("GET", urls, body)
46393	if err != nil {
46394		return nil, err
46395	}
46396	req.Header = reqHeaders
46397	googleapi.Expand(req.URL, map[string]string{
46398		"parent": c.parent,
46399	})
46400	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46401}
46402
46403// Do executes the "dialogflow.projects.locations.agent.versions.list" call.
46404// Exactly one of *GoogleCloudDialogflowV2beta1ListVersionsResponse or
46405// error will be non-nil. Any non-2xx status code is an error. Response
46406// headers are in either
46407// *GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Heade
46408// r or (if a response was returned at all) in
46409// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46410// whether the returned error was because http.StatusNotModified was
46411// returned.
46412func (c *ProjectsLocationsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
46413	gensupport.SetOptions(c.urlParams_, opts...)
46414	res, err := c.doRequest("json")
46415	if res != nil && res.StatusCode == http.StatusNotModified {
46416		if res.Body != nil {
46417			res.Body.Close()
46418		}
46419		return nil, &googleapi.Error{
46420			Code:   res.StatusCode,
46421			Header: res.Header,
46422		}
46423	}
46424	if err != nil {
46425		return nil, err
46426	}
46427	defer googleapi.CloseBody(res)
46428	if err := googleapi.CheckResponse(res); err != nil {
46429		return nil, err
46430	}
46431	ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
46432		ServerResponse: googleapi.ServerResponse{
46433			Header:         res.Header,
46434			HTTPStatusCode: res.StatusCode,
46435		},
46436	}
46437	target := &ret
46438	if err := gensupport.DecodeResponse(target, res); err != nil {
46439		return nil, err
46440	}
46441	return ret, nil
46442	// {
46443	//   "description": "Returns the list of all versions of the specified agent.",
46444	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions",
46445	//   "httpMethod": "GET",
46446	//   "id": "dialogflow.projects.locations.agent.versions.list",
46447	//   "parameterOrder": [
46448	//     "parent"
46449	//   ],
46450	//   "parameters": {
46451	//     "pageSize": {
46452	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
46453	//       "format": "int32",
46454	//       "location": "query",
46455	//       "type": "integer"
46456	//     },
46457	//     "pageToken": {
46458	//       "description": "Optional. The next_page_token value returned from a previous list request.",
46459	//       "location": "query",
46460	//       "type": "string"
46461	//     },
46462	//     "parent": {
46463	//       "description": "Required. The agent to list all versions from. Supported formats: - `projects//agent` - `projects//locations//agent`",
46464	//       "location": "path",
46465	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent$",
46466	//       "required": true,
46467	//       "type": "string"
46468	//     }
46469	//   },
46470	//   "path": "v2beta1/{+parent}/versions",
46471	//   "response": {
46472	//     "$ref": "GoogleCloudDialogflowV2beta1ListVersionsResponse"
46473	//   },
46474	//   "scopes": [
46475	//     "https://www.googleapis.com/auth/cloud-platform",
46476	//     "https://www.googleapis.com/auth/dialogflow"
46477	//   ]
46478	// }
46479
46480}
46481
46482// Pages invokes f for each page of results.
46483// A non-nil error returned from f will halt the iteration.
46484// The provided context supersedes any context provided to the Context method.
46485func (c *ProjectsLocationsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
46486	c.ctx_ = ctx
46487	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
46488	for {
46489		x, err := c.Do()
46490		if err != nil {
46491			return err
46492		}
46493		if err := f(x); err != nil {
46494			return err
46495		}
46496		if x.NextPageToken == "" {
46497			return nil
46498		}
46499		c.PageToken(x.NextPageToken)
46500	}
46501}
46502
46503// method id "dialogflow.projects.locations.agent.versions.patch":
46504
46505type ProjectsLocationsAgentVersionsPatchCall struct {
46506	s                                   *Service
46507	nameid                              string
46508	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
46509	urlParams_                          gensupport.URLParams
46510	ctx_                                context.Context
46511	header_                             http.Header
46512}
46513
46514// Patch: Updates the specified agent version. Note that this method
46515// does not allow you to update the state of the agent the given version
46516// points to. It allows you to update only mutable properties of the
46517// version resource.
46518//
46519// - name: Output only. The unique identifier of this agent version.
46520//   Supported formats: - `projects//agent/versions/` -
46521//   `projects//locations//agent/versions/`.
46522func (r *ProjectsLocationsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsPatchCall {
46523	c := &ProjectsLocationsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46524	c.nameid = nameid
46525	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
46526	return c
46527}
46528
46529// UpdateMask sets the optional parameter "updateMask": Required. The
46530// mask to control which fields get updated.
46531func (c *ProjectsLocationsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentVersionsPatchCall {
46532	c.urlParams_.Set("updateMask", updateMask)
46533	return c
46534}
46535
46536// Fields allows partial responses to be retrieved. See
46537// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46538// for more information.
46539func (c *ProjectsLocationsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsPatchCall {
46540	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46541	return c
46542}
46543
46544// Context sets the context to be used in this call's Do method. Any
46545// pending HTTP request will be aborted if the provided context is
46546// canceled.
46547func (c *ProjectsLocationsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsPatchCall {
46548	c.ctx_ = ctx
46549	return c
46550}
46551
46552// Header returns an http.Header that can be modified by the caller to
46553// add HTTP headers to the request.
46554func (c *ProjectsLocationsAgentVersionsPatchCall) Header() http.Header {
46555	if c.header_ == nil {
46556		c.header_ = make(http.Header)
46557	}
46558	return c.header_
46559}
46560
46561func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
46562	reqHeaders := make(http.Header)
46563	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
46564	for k, v := range c.header_ {
46565		reqHeaders[k] = v
46566	}
46567	reqHeaders.Set("User-Agent", c.s.userAgent())
46568	var body io.Reader = nil
46569	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
46570	if err != nil {
46571		return nil, err
46572	}
46573	reqHeaders.Set("Content-Type", "application/json")
46574	c.urlParams_.Set("alt", alt)
46575	c.urlParams_.Set("prettyPrint", "false")
46576	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46577	urls += "?" + c.urlParams_.Encode()
46578	req, err := http.NewRequest("PATCH", urls, body)
46579	if err != nil {
46580		return nil, err
46581	}
46582	req.Header = reqHeaders
46583	googleapi.Expand(req.URL, map[string]string{
46584		"name": c.nameid,
46585	})
46586	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46587}
46588
46589// Do executes the "dialogflow.projects.locations.agent.versions.patch" call.
46590// Exactly one of *GoogleCloudDialogflowV2beta1Version or error will be
46591// non-nil. Any non-2xx status code is an error. Response headers are in
46592// either *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or
46593// (if a response was returned at all) in
46594// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46595// whether the returned error was because http.StatusNotModified was
46596// returned.
46597func (c *ProjectsLocationsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
46598	gensupport.SetOptions(c.urlParams_, opts...)
46599	res, err := c.doRequest("json")
46600	if res != nil && res.StatusCode == http.StatusNotModified {
46601		if res.Body != nil {
46602			res.Body.Close()
46603		}
46604		return nil, &googleapi.Error{
46605			Code:   res.StatusCode,
46606			Header: res.Header,
46607		}
46608	}
46609	if err != nil {
46610		return nil, err
46611	}
46612	defer googleapi.CloseBody(res)
46613	if err := googleapi.CheckResponse(res); err != nil {
46614		return nil, err
46615	}
46616	ret := &GoogleCloudDialogflowV2beta1Version{
46617		ServerResponse: googleapi.ServerResponse{
46618			Header:         res.Header,
46619			HTTPStatusCode: res.StatusCode,
46620		},
46621	}
46622	target := &ret
46623	if err := gensupport.DecodeResponse(target, res); err != nil {
46624		return nil, err
46625	}
46626	return ret, nil
46627	// {
46628	//   "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.",
46629	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/versions/{versionsId}",
46630	//   "httpMethod": "PATCH",
46631	//   "id": "dialogflow.projects.locations.agent.versions.patch",
46632	//   "parameterOrder": [
46633	//     "name"
46634	//   ],
46635	//   "parameters": {
46636	//     "name": {
46637	//       "description": "Output only. The unique identifier of this agent version. Supported formats: - `projects//agent/versions/` - `projects//locations//agent/versions/`",
46638	//       "location": "path",
46639	//       "pattern": "^projects/[^/]+/locations/[^/]+/agent/versions/[^/]+$",
46640	//       "required": true,
46641	//       "type": "string"
46642	//     },
46643	//     "updateMask": {
46644	//       "description": "Required. The mask to control which fields get updated.",
46645	//       "format": "google-fieldmask",
46646	//       "location": "query",
46647	//       "type": "string"
46648	//     }
46649	//   },
46650	//   "path": "v2beta1/{+name}",
46651	//   "request": {
46652	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46653	//   },
46654	//   "response": {
46655	//     "$ref": "GoogleCloudDialogflowV2beta1Version"
46656	//   },
46657	//   "scopes": [
46658	//     "https://www.googleapis.com/auth/cloud-platform",
46659	//     "https://www.googleapis.com/auth/dialogflow"
46660	//   ]
46661	// }
46662
46663}
46664
46665// method id "dialogflow.projects.locations.answerRecords.get":
46666
46667type ProjectsLocationsAnswerRecordsGetCall struct {
46668	s            *Service
46669	name         string
46670	urlParams_   gensupport.URLParams
46671	ifNoneMatch_ string
46672	ctx_         context.Context
46673	header_      http.Header
46674}
46675
46676// Get: Deprecated. Retrieves a specific answer record.
46677//
46678// - name: The name of the answer record to retrieve. Format:
46679//   `projects//locations//answerRecords/`.
46680func (r *ProjectsLocationsAnswerRecordsService) Get(name string) *ProjectsLocationsAnswerRecordsGetCall {
46681	c := &ProjectsLocationsAnswerRecordsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46682	c.name = name
46683	return c
46684}
46685
46686// Fields allows partial responses to be retrieved. See
46687// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46688// for more information.
46689func (c *ProjectsLocationsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsGetCall {
46690	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46691	return c
46692}
46693
46694// IfNoneMatch sets the optional parameter which makes the operation
46695// fail if the object's ETag matches the given value. This is useful for
46696// getting updates only after the object has changed since the last
46697// request. Use googleapi.IsNotModified to check whether the response
46698// error from Do is the result of In-None-Match.
46699func (c *ProjectsLocationsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsGetCall {
46700	c.ifNoneMatch_ = entityTag
46701	return c
46702}
46703
46704// Context sets the context to be used in this call's Do method. Any
46705// pending HTTP request will be aborted if the provided context is
46706// canceled.
46707func (c *ProjectsLocationsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsGetCall {
46708	c.ctx_ = ctx
46709	return c
46710}
46711
46712// Header returns an http.Header that can be modified by the caller to
46713// add HTTP headers to the request.
46714func (c *ProjectsLocationsAnswerRecordsGetCall) Header() http.Header {
46715	if c.header_ == nil {
46716		c.header_ = make(http.Header)
46717	}
46718	return c.header_
46719}
46720
46721func (c *ProjectsLocationsAnswerRecordsGetCall) doRequest(alt string) (*http.Response, error) {
46722	reqHeaders := make(http.Header)
46723	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
46724	for k, v := range c.header_ {
46725		reqHeaders[k] = v
46726	}
46727	reqHeaders.Set("User-Agent", c.s.userAgent())
46728	if c.ifNoneMatch_ != "" {
46729		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46730	}
46731	var body io.Reader = nil
46732	c.urlParams_.Set("alt", alt)
46733	c.urlParams_.Set("prettyPrint", "false")
46734	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
46735	urls += "?" + c.urlParams_.Encode()
46736	req, err := http.NewRequest("GET", urls, body)
46737	if err != nil {
46738		return nil, err
46739	}
46740	req.Header = reqHeaders
46741	googleapi.Expand(req.URL, map[string]string{
46742		"name": c.name,
46743	})
46744	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46745}
46746
46747// Do executes the "dialogflow.projects.locations.answerRecords.get" call.
46748// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
46749// will be non-nil. Any non-2xx status code is an error. Response
46750// headers are in either
46751// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
46752// (if a response was returned at all) in
46753// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46754// whether the returned error was because http.StatusNotModified was
46755// returned.
46756func (c *ProjectsLocationsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
46757	gensupport.SetOptions(c.urlParams_, opts...)
46758	res, err := c.doRequest("json")
46759	if res != nil && res.StatusCode == http.StatusNotModified {
46760		if res.Body != nil {
46761			res.Body.Close()
46762		}
46763		return nil, &googleapi.Error{
46764			Code:   res.StatusCode,
46765			Header: res.Header,
46766		}
46767	}
46768	if err != nil {
46769		return nil, err
46770	}
46771	defer googleapi.CloseBody(res)
46772	if err := googleapi.CheckResponse(res); err != nil {
46773		return nil, err
46774	}
46775	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
46776		ServerResponse: googleapi.ServerResponse{
46777			Header:         res.Header,
46778			HTTPStatusCode: res.StatusCode,
46779		},
46780	}
46781	target := &ret
46782	if err := gensupport.DecodeResponse(target, res); err != nil {
46783		return nil, err
46784	}
46785	return ret, nil
46786	// {
46787	//   "description": "Deprecated. Retrieves a specific answer record.",
46788	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/answerRecords/{answerRecordsId}",
46789	//   "httpMethod": "GET",
46790	//   "id": "dialogflow.projects.locations.answerRecords.get",
46791	//   "parameterOrder": [
46792	//     "name"
46793	//   ],
46794	//   "parameters": {
46795	//     "name": {
46796	//       "description": "Required. The name of the answer record to retrieve. Format: `projects//locations//answerRecords/`.",
46797	//       "location": "path",
46798	//       "pattern": "^projects/[^/]+/locations/[^/]+/answerRecords/[^/]+$",
46799	//       "required": true,
46800	//       "type": "string"
46801	//     }
46802	//   },
46803	//   "path": "v2beta1/{+name}",
46804	//   "response": {
46805	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
46806	//   },
46807	//   "scopes": [
46808	//     "https://www.googleapis.com/auth/cloud-platform",
46809	//     "https://www.googleapis.com/auth/dialogflow"
46810	//   ]
46811	// }
46812
46813}
46814
46815// method id "dialogflow.projects.locations.answerRecords.list":
46816
46817type ProjectsLocationsAnswerRecordsListCall struct {
46818	s            *Service
46819	parent       string
46820	urlParams_   gensupport.URLParams
46821	ifNoneMatch_ string
46822	ctx_         context.Context
46823	header_      http.Header
46824}
46825
46826// List: Returns the list of all answer records in the specified project
46827// in reverse chronological order.
46828//
46829// - parent: The project to list all answer records for in reverse
46830//   chronological order. Format: `projects//locations/`.
46831func (r *ProjectsLocationsAnswerRecordsService) List(parent string) *ProjectsLocationsAnswerRecordsListCall {
46832	c := &ProjectsLocationsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46833	c.parent = parent
46834	return c
46835}
46836
46837// PageSize sets the optional parameter "pageSize": The maximum number
46838// of records to return in a single page. The server may return fewer
46839// records than this. If unspecified, we use 10. The maximum is 100.
46840func (c *ProjectsLocationsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsLocationsAnswerRecordsListCall {
46841	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
46842	return c
46843}
46844
46845// PageToken sets the optional parameter "pageToken": The
46846// ListAnswerRecordsResponse.next_page_token value returned from a
46847// previous list request used to continue listing on the next page.
46848func (c *ProjectsLocationsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsLocationsAnswerRecordsListCall {
46849	c.urlParams_.Set("pageToken", pageToken)
46850	return c
46851}
46852
46853// Fields allows partial responses to be retrieved. See
46854// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46855// for more information.
46856func (c *ProjectsLocationsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsListCall {
46857	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46858	return c
46859}
46860
46861// IfNoneMatch sets the optional parameter which makes the operation
46862// fail if the object's ETag matches the given value. This is useful for
46863// getting updates only after the object has changed since the last
46864// request. Use googleapi.IsNotModified to check whether the response
46865// error from Do is the result of In-None-Match.
46866func (c *ProjectsLocationsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsListCall {
46867	c.ifNoneMatch_ = entityTag
46868	return c
46869}
46870
46871// Context sets the context to be used in this call's Do method. Any
46872// pending HTTP request will be aborted if the provided context is
46873// canceled.
46874func (c *ProjectsLocationsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsListCall {
46875	c.ctx_ = ctx
46876	return c
46877}
46878
46879// Header returns an http.Header that can be modified by the caller to
46880// add HTTP headers to the request.
46881func (c *ProjectsLocationsAnswerRecordsListCall) Header() http.Header {
46882	if c.header_ == nil {
46883		c.header_ = make(http.Header)
46884	}
46885	return c.header_
46886}
46887
46888func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
46889	reqHeaders := make(http.Header)
46890	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
46891	for k, v := range c.header_ {
46892		reqHeaders[k] = v
46893	}
46894	reqHeaders.Set("User-Agent", c.s.userAgent())
46895	if c.ifNoneMatch_ != "" {
46896		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46897	}
46898	var body io.Reader = nil
46899	c.urlParams_.Set("alt", alt)
46900	c.urlParams_.Set("prettyPrint", "false")
46901	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
46902	urls += "?" + c.urlParams_.Encode()
46903	req, err := http.NewRequest("GET", urls, body)
46904	if err != nil {
46905		return nil, err
46906	}
46907	req.Header = reqHeaders
46908	googleapi.Expand(req.URL, map[string]string{
46909		"parent": c.parent,
46910	})
46911	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46912}
46913
46914// Do executes the "dialogflow.projects.locations.answerRecords.list" call.
46915// Exactly one of *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
46916// or error will be non-nil. Any non-2xx status code is an error.
46917// Response headers are in either
46918// *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.
46919// Header or (if a response was returned at all) in
46920// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
46921// whether the returned error was because http.StatusNotModified was
46922// returned.
46923func (c *ProjectsLocationsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
46924	gensupport.SetOptions(c.urlParams_, opts...)
46925	res, err := c.doRequest("json")
46926	if res != nil && res.StatusCode == http.StatusNotModified {
46927		if res.Body != nil {
46928			res.Body.Close()
46929		}
46930		return nil, &googleapi.Error{
46931			Code:   res.StatusCode,
46932			Header: res.Header,
46933		}
46934	}
46935	if err != nil {
46936		return nil, err
46937	}
46938	defer googleapi.CloseBody(res)
46939	if err := googleapi.CheckResponse(res); err != nil {
46940		return nil, err
46941	}
46942	ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
46943		ServerResponse: googleapi.ServerResponse{
46944			Header:         res.Header,
46945			HTTPStatusCode: res.StatusCode,
46946		},
46947	}
46948	target := &ret
46949	if err := gensupport.DecodeResponse(target, res); err != nil {
46950		return nil, err
46951	}
46952	return ret, nil
46953	// {
46954	//   "description": "Returns the list of all answer records in the specified project in reverse chronological order.",
46955	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/answerRecords",
46956	//   "httpMethod": "GET",
46957	//   "id": "dialogflow.projects.locations.answerRecords.list",
46958	//   "parameterOrder": [
46959	//     "parent"
46960	//   ],
46961	//   "parameters": {
46962	//     "pageSize": {
46963	//       "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.",
46964	//       "format": "int32",
46965	//       "location": "query",
46966	//       "type": "integer"
46967	//     },
46968	//     "pageToken": {
46969	//       "description": "Optional. The ListAnswerRecordsResponse.next_page_token value returned from a previous list request used to continue listing on the next page.",
46970	//       "location": "query",
46971	//       "type": "string"
46972	//     },
46973	//     "parent": {
46974	//       "description": "Required. The project to list all answer records for in reverse chronological order. Format: `projects//locations/`.",
46975	//       "location": "path",
46976	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
46977	//       "required": true,
46978	//       "type": "string"
46979	//     }
46980	//   },
46981	//   "path": "v2beta1/{+parent}/answerRecords",
46982	//   "response": {
46983	//     "$ref": "GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse"
46984	//   },
46985	//   "scopes": [
46986	//     "https://www.googleapis.com/auth/cloud-platform",
46987	//     "https://www.googleapis.com/auth/dialogflow"
46988	//   ]
46989	// }
46990
46991}
46992
46993// Pages invokes f for each page of results.
46994// A non-nil error returned from f will halt the iteration.
46995// The provided context supersedes any context provided to the Context method.
46996func (c *ProjectsLocationsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
46997	c.ctx_ = ctx
46998	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
46999	for {
47000		x, err := c.Do()
47001		if err != nil {
47002			return err
47003		}
47004		if err := f(x); err != nil {
47005			return err
47006		}
47007		if x.NextPageToken == "" {
47008			return nil
47009		}
47010		c.PageToken(x.NextPageToken)
47011	}
47012}
47013
47014// method id "dialogflow.projects.locations.answerRecords.patch":
47015
47016type ProjectsLocationsAnswerRecordsPatchCall struct {
47017	s                                        *Service
47018	nameid                                   string
47019	googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
47020	urlParams_                               gensupport.URLParams
47021	ctx_                                     context.Context
47022	header_                                  http.Header
47023}
47024
47025// Patch: Updates the specified answer record.
47026//
47027// - name: The unique identifier of this answer record. Required for
47028//   AnswerRecords.UpdateAnswerRecord method. Format:
47029//   `projects//locations//answerRecords/`.
47030func (r *ProjectsLocationsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsLocationsAnswerRecordsPatchCall {
47031	c := &ProjectsLocationsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47032	c.nameid = nameid
47033	c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
47034	return c
47035}
47036
47037// UpdateMask sets the optional parameter "updateMask": Required. The
47038// mask to control which fields get updated.
47039func (c *ProjectsLocationsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAnswerRecordsPatchCall {
47040	c.urlParams_.Set("updateMask", updateMask)
47041	return c
47042}
47043
47044// Fields allows partial responses to be retrieved. See
47045// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47046// for more information.
47047func (c *ProjectsLocationsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsPatchCall {
47048	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47049	return c
47050}
47051
47052// Context sets the context to be used in this call's Do method. Any
47053// pending HTTP request will be aborted if the provided context is
47054// canceled.
47055func (c *ProjectsLocationsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsPatchCall {
47056	c.ctx_ = ctx
47057	return c
47058}
47059
47060// Header returns an http.Header that can be modified by the caller to
47061// add HTTP headers to the request.
47062func (c *ProjectsLocationsAnswerRecordsPatchCall) Header() http.Header {
47063	if c.header_ == nil {
47064		c.header_ = make(http.Header)
47065	}
47066	return c.header_
47067}
47068
47069func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
47070	reqHeaders := make(http.Header)
47071	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
47072	for k, v := range c.header_ {
47073		reqHeaders[k] = v
47074	}
47075	reqHeaders.Set("User-Agent", c.s.userAgent())
47076	var body io.Reader = nil
47077	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
47078	if err != nil {
47079		return nil, err
47080	}
47081	reqHeaders.Set("Content-Type", "application/json")
47082	c.urlParams_.Set("alt", alt)
47083	c.urlParams_.Set("prettyPrint", "false")
47084	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
47085	urls += "?" + c.urlParams_.Encode()
47086	req, err := http.NewRequest("PATCH", urls, body)
47087	if err != nil {
47088		return nil, err
47089	}
47090	req.Header = reqHeaders
47091	googleapi.Expand(req.URL, map[string]string{
47092		"name": c.nameid,
47093	})
47094	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47095}
47096
47097// Do executes the "dialogflow.projects.locations.answerRecords.patch" call.
47098// Exactly one of *GoogleCloudDialogflowV2beta1AnswerRecord or error
47099// will be non-nil. Any non-2xx status code is an error. Response
47100// headers are in either
47101// *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or
47102// (if a response was returned at all) in
47103// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47104// whether the returned error was because http.StatusNotModified was
47105// returned.
47106func (c *ProjectsLocationsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
47107	gensupport.SetOptions(c.urlParams_, opts...)
47108	res, err := c.doRequest("json")
47109	if res != nil && res.StatusCode == http.StatusNotModified {
47110		if res.Body != nil {
47111			res.Body.Close()
47112		}
47113		return nil, &googleapi.Error{
47114			Code:   res.StatusCode,
47115			Header: res.Header,
47116		}
47117	}
47118	if err != nil {
47119		return nil, err
47120	}
47121	defer googleapi.CloseBody(res)
47122	if err := googleapi.CheckResponse(res); err != nil {
47123		return nil, err
47124	}
47125	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
47126		ServerResponse: googleapi.ServerResponse{
47127			Header:         res.Header,
47128			HTTPStatusCode: res.StatusCode,
47129		},
47130	}
47131	target := &ret
47132	if err := gensupport.DecodeResponse(target, res); err != nil {
47133		return nil, err
47134	}
47135	return ret, nil
47136	// {
47137	//   "description": "Updates the specified answer record.",
47138	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/answerRecords/{answerRecordsId}",
47139	//   "httpMethod": "PATCH",
47140	//   "id": "dialogflow.projects.locations.answerRecords.patch",
47141	//   "parameterOrder": [
47142	//     "name"
47143	//   ],
47144	//   "parameters": {
47145	//     "name": {
47146	//       "description": "The unique identifier of this answer record. Required for AnswerRecords.UpdateAnswerRecord method. Format: `projects//locations//answerRecords/`.",
47147	//       "location": "path",
47148	//       "pattern": "^projects/[^/]+/locations/[^/]+/answerRecords/[^/]+$",
47149	//       "required": true,
47150	//       "type": "string"
47151	//     },
47152	//     "updateMask": {
47153	//       "description": "Required. The mask to control which fields get updated.",
47154	//       "format": "google-fieldmask",
47155	//       "location": "query",
47156	//       "type": "string"
47157	//     }
47158	//   },
47159	//   "path": "v2beta1/{+name}",
47160	//   "request": {
47161	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
47162	//   },
47163	//   "response": {
47164	//     "$ref": "GoogleCloudDialogflowV2beta1AnswerRecord"
47165	//   },
47166	//   "scopes": [
47167	//     "https://www.googleapis.com/auth/cloud-platform",
47168	//     "https://www.googleapis.com/auth/dialogflow"
47169	//   ]
47170	// }
47171
47172}
47173
47174// method id "dialogflow.projects.locations.conversationProfiles.create":
47175
47176type ProjectsLocationsConversationProfilesCreateCall struct {
47177	s                                               *Service
47178	parent                                          string
47179	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
47180	urlParams_                                      gensupport.URLParams
47181	ctx_                                            context.Context
47182	header_                                         http.Header
47183}
47184
47185// Create: Creates a conversation profile in the specified project.
47186// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
47187// aren't populated in the response. You can retrieve them via
47188// GetConversationProfile API.
47189//
47190// - parent: The project to create a conversation profile for. Format:
47191//   `projects//locations/`.
47192func (r *ProjectsLocationsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesCreateCall {
47193	c := &ProjectsLocationsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47194	c.parent = parent
47195	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
47196	return c
47197}
47198
47199// Fields allows partial responses to be retrieved. See
47200// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47201// for more information.
47202func (c *ProjectsLocationsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesCreateCall {
47203	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47204	return c
47205}
47206
47207// Context sets the context to be used in this call's Do method. Any
47208// pending HTTP request will be aborted if the provided context is
47209// canceled.
47210func (c *ProjectsLocationsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesCreateCall {
47211	c.ctx_ = ctx
47212	return c
47213}
47214
47215// Header returns an http.Header that can be modified by the caller to
47216// add HTTP headers to the request.
47217func (c *ProjectsLocationsConversationProfilesCreateCall) Header() http.Header {
47218	if c.header_ == nil {
47219		c.header_ = make(http.Header)
47220	}
47221	return c.header_
47222}
47223
47224func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
47225	reqHeaders := make(http.Header)
47226	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
47227	for k, v := range c.header_ {
47228		reqHeaders[k] = v
47229	}
47230	reqHeaders.Set("User-Agent", c.s.userAgent())
47231	var body io.Reader = nil
47232	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
47233	if err != nil {
47234		return nil, err
47235	}
47236	reqHeaders.Set("Content-Type", "application/json")
47237	c.urlParams_.Set("alt", alt)
47238	c.urlParams_.Set("prettyPrint", "false")
47239	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
47240	urls += "?" + c.urlParams_.Encode()
47241	req, err := http.NewRequest("POST", urls, body)
47242	if err != nil {
47243		return nil, err
47244	}
47245	req.Header = reqHeaders
47246	googleapi.Expand(req.URL, map[string]string{
47247		"parent": c.parent,
47248	})
47249	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47250}
47251
47252// Do executes the "dialogflow.projects.locations.conversationProfiles.create" call.
47253// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
47254// error will be non-nil. Any non-2xx status code is an error. Response
47255// headers are in either
47256// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
47257//  or (if a response was returned at all) in
47258// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47259// whether the returned error was because http.StatusNotModified was
47260// returned.
47261func (c *ProjectsLocationsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
47262	gensupport.SetOptions(c.urlParams_, opts...)
47263	res, err := c.doRequest("json")
47264	if res != nil && res.StatusCode == http.StatusNotModified {
47265		if res.Body != nil {
47266			res.Body.Close()
47267		}
47268		return nil, &googleapi.Error{
47269			Code:   res.StatusCode,
47270			Header: res.Header,
47271		}
47272	}
47273	if err != nil {
47274		return nil, err
47275	}
47276	defer googleapi.CloseBody(res)
47277	if err := googleapi.CheckResponse(res); err != nil {
47278		return nil, err
47279	}
47280	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
47281		ServerResponse: googleapi.ServerResponse{
47282			Header:         res.Header,
47283			HTTPStatusCode: res.StatusCode,
47284		},
47285	}
47286	target := &ret
47287	if err := gensupport.DecodeResponse(target, res); err != nil {
47288		return nil, err
47289	}
47290	return ret, nil
47291	// {
47292	//   "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.",
47293	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles",
47294	//   "httpMethod": "POST",
47295	//   "id": "dialogflow.projects.locations.conversationProfiles.create",
47296	//   "parameterOrder": [
47297	//     "parent"
47298	//   ],
47299	//   "parameters": {
47300	//     "parent": {
47301	//       "description": "Required. The project to create a conversation profile for. Format: `projects//locations/`.",
47302	//       "location": "path",
47303	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
47304	//       "required": true,
47305	//       "type": "string"
47306	//     }
47307	//   },
47308	//   "path": "v2beta1/{+parent}/conversationProfiles",
47309	//   "request": {
47310	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
47311	//   },
47312	//   "response": {
47313	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
47314	//   },
47315	//   "scopes": [
47316	//     "https://www.googleapis.com/auth/cloud-platform",
47317	//     "https://www.googleapis.com/auth/dialogflow"
47318	//   ]
47319	// }
47320
47321}
47322
47323// method id "dialogflow.projects.locations.conversationProfiles.delete":
47324
47325type ProjectsLocationsConversationProfilesDeleteCall struct {
47326	s          *Service
47327	name       string
47328	urlParams_ gensupport.URLParams
47329	ctx_       context.Context
47330	header_    http.Header
47331}
47332
47333// Delete: Deletes the specified conversation profile.
47334//
47335// - name: The name of the conversation profile to delete. Format:
47336//   `projects//locations//conversationProfiles/`.
47337func (r *ProjectsLocationsConversationProfilesService) Delete(name string) *ProjectsLocationsConversationProfilesDeleteCall {
47338	c := &ProjectsLocationsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47339	c.name = name
47340	return c
47341}
47342
47343// Fields allows partial responses to be retrieved. See
47344// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47345// for more information.
47346func (c *ProjectsLocationsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesDeleteCall {
47347	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47348	return c
47349}
47350
47351// Context sets the context to be used in this call's Do method. Any
47352// pending HTTP request will be aborted if the provided context is
47353// canceled.
47354func (c *ProjectsLocationsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesDeleteCall {
47355	c.ctx_ = ctx
47356	return c
47357}
47358
47359// Header returns an http.Header that can be modified by the caller to
47360// add HTTP headers to the request.
47361func (c *ProjectsLocationsConversationProfilesDeleteCall) Header() http.Header {
47362	if c.header_ == nil {
47363		c.header_ = make(http.Header)
47364	}
47365	return c.header_
47366}
47367
47368func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
47369	reqHeaders := make(http.Header)
47370	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
47371	for k, v := range c.header_ {
47372		reqHeaders[k] = v
47373	}
47374	reqHeaders.Set("User-Agent", c.s.userAgent())
47375	var body io.Reader = nil
47376	c.urlParams_.Set("alt", alt)
47377	c.urlParams_.Set("prettyPrint", "false")
47378	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
47379	urls += "?" + c.urlParams_.Encode()
47380	req, err := http.NewRequest("DELETE", urls, body)
47381	if err != nil {
47382		return nil, err
47383	}
47384	req.Header = reqHeaders
47385	googleapi.Expand(req.URL, map[string]string{
47386		"name": c.name,
47387	})
47388	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47389}
47390
47391// Do executes the "dialogflow.projects.locations.conversationProfiles.delete" call.
47392// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
47393// non-2xx status code is an error. Response headers are in either
47394// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
47395// returned at all) in error.(*googleapi.Error).Header. Use
47396// googleapi.IsNotModified to check whether the returned error was
47397// because http.StatusNotModified was returned.
47398func (c *ProjectsLocationsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
47399	gensupport.SetOptions(c.urlParams_, opts...)
47400	res, err := c.doRequest("json")
47401	if res != nil && res.StatusCode == http.StatusNotModified {
47402		if res.Body != nil {
47403			res.Body.Close()
47404		}
47405		return nil, &googleapi.Error{
47406			Code:   res.StatusCode,
47407			Header: res.Header,
47408		}
47409	}
47410	if err != nil {
47411		return nil, err
47412	}
47413	defer googleapi.CloseBody(res)
47414	if err := googleapi.CheckResponse(res); err != nil {
47415		return nil, err
47416	}
47417	ret := &GoogleProtobufEmpty{
47418		ServerResponse: googleapi.ServerResponse{
47419			Header:         res.Header,
47420			HTTPStatusCode: res.StatusCode,
47421		},
47422	}
47423	target := &ret
47424	if err := gensupport.DecodeResponse(target, res); err != nil {
47425		return nil, err
47426	}
47427	return ret, nil
47428	// {
47429	//   "description": "Deletes the specified conversation profile.",
47430	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles/{conversationProfilesId}",
47431	//   "httpMethod": "DELETE",
47432	//   "id": "dialogflow.projects.locations.conversationProfiles.delete",
47433	//   "parameterOrder": [
47434	//     "name"
47435	//   ],
47436	//   "parameters": {
47437	//     "name": {
47438	//       "description": "Required. The name of the conversation profile to delete. Format: `projects//locations//conversationProfiles/`.",
47439	//       "location": "path",
47440	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$",
47441	//       "required": true,
47442	//       "type": "string"
47443	//     }
47444	//   },
47445	//   "path": "v2beta1/{+name}",
47446	//   "response": {
47447	//     "$ref": "GoogleProtobufEmpty"
47448	//   },
47449	//   "scopes": [
47450	//     "https://www.googleapis.com/auth/cloud-platform",
47451	//     "https://www.googleapis.com/auth/dialogflow"
47452	//   ]
47453	// }
47454
47455}
47456
47457// method id "dialogflow.projects.locations.conversationProfiles.get":
47458
47459type ProjectsLocationsConversationProfilesGetCall struct {
47460	s            *Service
47461	name         string
47462	urlParams_   gensupport.URLParams
47463	ifNoneMatch_ string
47464	ctx_         context.Context
47465	header_      http.Header
47466}
47467
47468// Get: Retrieves the specified conversation profile.
47469//
47470// - name: The resource name of the conversation profile. Format:
47471//   `projects//locations//conversationProfiles/`.
47472func (r *ProjectsLocationsConversationProfilesService) Get(name string) *ProjectsLocationsConversationProfilesGetCall {
47473	c := &ProjectsLocationsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47474	c.name = name
47475	return c
47476}
47477
47478// Fields allows partial responses to be retrieved. See
47479// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47480// for more information.
47481func (c *ProjectsLocationsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesGetCall {
47482	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47483	return c
47484}
47485
47486// IfNoneMatch sets the optional parameter which makes the operation
47487// fail if the object's ETag matches the given value. This is useful for
47488// getting updates only after the object has changed since the last
47489// request. Use googleapi.IsNotModified to check whether the response
47490// error from Do is the result of In-None-Match.
47491func (c *ProjectsLocationsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesGetCall {
47492	c.ifNoneMatch_ = entityTag
47493	return c
47494}
47495
47496// Context sets the context to be used in this call's Do method. Any
47497// pending HTTP request will be aborted if the provided context is
47498// canceled.
47499func (c *ProjectsLocationsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesGetCall {
47500	c.ctx_ = ctx
47501	return c
47502}
47503
47504// Header returns an http.Header that can be modified by the caller to
47505// add HTTP headers to the request.
47506func (c *ProjectsLocationsConversationProfilesGetCall) Header() http.Header {
47507	if c.header_ == nil {
47508		c.header_ = make(http.Header)
47509	}
47510	return c.header_
47511}
47512
47513func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
47514	reqHeaders := make(http.Header)
47515	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
47516	for k, v := range c.header_ {
47517		reqHeaders[k] = v
47518	}
47519	reqHeaders.Set("User-Agent", c.s.userAgent())
47520	if c.ifNoneMatch_ != "" {
47521		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47522	}
47523	var body io.Reader = nil
47524	c.urlParams_.Set("alt", alt)
47525	c.urlParams_.Set("prettyPrint", "false")
47526	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
47527	urls += "?" + c.urlParams_.Encode()
47528	req, err := http.NewRequest("GET", urls, body)
47529	if err != nil {
47530		return nil, err
47531	}
47532	req.Header = reqHeaders
47533	googleapi.Expand(req.URL, map[string]string{
47534		"name": c.name,
47535	})
47536	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47537}
47538
47539// Do executes the "dialogflow.projects.locations.conversationProfiles.get" call.
47540// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
47541// error will be non-nil. Any non-2xx status code is an error. Response
47542// headers are in either
47543// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
47544//  or (if a response was returned at all) in
47545// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47546// whether the returned error was because http.StatusNotModified was
47547// returned.
47548func (c *ProjectsLocationsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
47549	gensupport.SetOptions(c.urlParams_, opts...)
47550	res, err := c.doRequest("json")
47551	if res != nil && res.StatusCode == http.StatusNotModified {
47552		if res.Body != nil {
47553			res.Body.Close()
47554		}
47555		return nil, &googleapi.Error{
47556			Code:   res.StatusCode,
47557			Header: res.Header,
47558		}
47559	}
47560	if err != nil {
47561		return nil, err
47562	}
47563	defer googleapi.CloseBody(res)
47564	if err := googleapi.CheckResponse(res); err != nil {
47565		return nil, err
47566	}
47567	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
47568		ServerResponse: googleapi.ServerResponse{
47569			Header:         res.Header,
47570			HTTPStatusCode: res.StatusCode,
47571		},
47572	}
47573	target := &ret
47574	if err := gensupport.DecodeResponse(target, res); err != nil {
47575		return nil, err
47576	}
47577	return ret, nil
47578	// {
47579	//   "description": "Retrieves the specified conversation profile.",
47580	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles/{conversationProfilesId}",
47581	//   "httpMethod": "GET",
47582	//   "id": "dialogflow.projects.locations.conversationProfiles.get",
47583	//   "parameterOrder": [
47584	//     "name"
47585	//   ],
47586	//   "parameters": {
47587	//     "name": {
47588	//       "description": "Required. The resource name of the conversation profile. Format: `projects//locations//conversationProfiles/`.",
47589	//       "location": "path",
47590	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$",
47591	//       "required": true,
47592	//       "type": "string"
47593	//     }
47594	//   },
47595	//   "path": "v2beta1/{+name}",
47596	//   "response": {
47597	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
47598	//   },
47599	//   "scopes": [
47600	//     "https://www.googleapis.com/auth/cloud-platform",
47601	//     "https://www.googleapis.com/auth/dialogflow"
47602	//   ]
47603	// }
47604
47605}
47606
47607// method id "dialogflow.projects.locations.conversationProfiles.list":
47608
47609type ProjectsLocationsConversationProfilesListCall struct {
47610	s            *Service
47611	parent       string
47612	urlParams_   gensupport.URLParams
47613	ifNoneMatch_ string
47614	ctx_         context.Context
47615	header_      http.Header
47616}
47617
47618// List: Returns the list of all conversation profiles in the specified
47619// project.
47620//
47621// - parent: The project to list all conversation profiles from. Format:
47622//   `projects//locations/`.
47623func (r *ProjectsLocationsConversationProfilesService) List(parent string) *ProjectsLocationsConversationProfilesListCall {
47624	c := &ProjectsLocationsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47625	c.parent = parent
47626	return c
47627}
47628
47629// PageSize sets the optional parameter "pageSize": The maximum number
47630// of items to return in a single page. By default 100 and at most 1000.
47631func (c *ProjectsLocationsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationProfilesListCall {
47632	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
47633	return c
47634}
47635
47636// PageToken sets the optional parameter "pageToken": The
47637// next_page_token value returned from a previous list request.
47638func (c *ProjectsLocationsConversationProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConversationProfilesListCall {
47639	c.urlParams_.Set("pageToken", pageToken)
47640	return c
47641}
47642
47643// Fields allows partial responses to be retrieved. See
47644// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47645// for more information.
47646func (c *ProjectsLocationsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesListCall {
47647	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47648	return c
47649}
47650
47651// IfNoneMatch sets the optional parameter which makes the operation
47652// fail if the object's ETag matches the given value. This is useful for
47653// getting updates only after the object has changed since the last
47654// request. Use googleapi.IsNotModified to check whether the response
47655// error from Do is the result of In-None-Match.
47656func (c *ProjectsLocationsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesListCall {
47657	c.ifNoneMatch_ = entityTag
47658	return c
47659}
47660
47661// Context sets the context to be used in this call's Do method. Any
47662// pending HTTP request will be aborted if the provided context is
47663// canceled.
47664func (c *ProjectsLocationsConversationProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesListCall {
47665	c.ctx_ = ctx
47666	return c
47667}
47668
47669// Header returns an http.Header that can be modified by the caller to
47670// add HTTP headers to the request.
47671func (c *ProjectsLocationsConversationProfilesListCall) Header() http.Header {
47672	if c.header_ == nil {
47673		c.header_ = make(http.Header)
47674	}
47675	return c.header_
47676}
47677
47678func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
47679	reqHeaders := make(http.Header)
47680	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
47681	for k, v := range c.header_ {
47682		reqHeaders[k] = v
47683	}
47684	reqHeaders.Set("User-Agent", c.s.userAgent())
47685	if c.ifNoneMatch_ != "" {
47686		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47687	}
47688	var body io.Reader = nil
47689	c.urlParams_.Set("alt", alt)
47690	c.urlParams_.Set("prettyPrint", "false")
47691	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
47692	urls += "?" + c.urlParams_.Encode()
47693	req, err := http.NewRequest("GET", urls, body)
47694	if err != nil {
47695		return nil, err
47696	}
47697	req.Header = reqHeaders
47698	googleapi.Expand(req.URL, map[string]string{
47699		"parent": c.parent,
47700	})
47701	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47702}
47703
47704// Do executes the "dialogflow.projects.locations.conversationProfiles.list" call.
47705// Exactly one of
47706// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse or
47707// error will be non-nil. Any non-2xx status code is an error. Response
47708// headers are in either
47709// *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerRe
47710// sponse.Header or (if a response was returned at all) in
47711// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47712// whether the returned error was because http.StatusNotModified was
47713// returned.
47714func (c *ProjectsLocationsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
47715	gensupport.SetOptions(c.urlParams_, opts...)
47716	res, err := c.doRequest("json")
47717	if res != nil && res.StatusCode == http.StatusNotModified {
47718		if res.Body != nil {
47719			res.Body.Close()
47720		}
47721		return nil, &googleapi.Error{
47722			Code:   res.StatusCode,
47723			Header: res.Header,
47724		}
47725	}
47726	if err != nil {
47727		return nil, err
47728	}
47729	defer googleapi.CloseBody(res)
47730	if err := googleapi.CheckResponse(res); err != nil {
47731		return nil, err
47732	}
47733	ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
47734		ServerResponse: googleapi.ServerResponse{
47735			Header:         res.Header,
47736			HTTPStatusCode: res.StatusCode,
47737		},
47738	}
47739	target := &ret
47740	if err := gensupport.DecodeResponse(target, res); err != nil {
47741		return nil, err
47742	}
47743	return ret, nil
47744	// {
47745	//   "description": "Returns the list of all conversation profiles in the specified project.",
47746	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles",
47747	//   "httpMethod": "GET",
47748	//   "id": "dialogflow.projects.locations.conversationProfiles.list",
47749	//   "parameterOrder": [
47750	//     "parent"
47751	//   ],
47752	//   "parameters": {
47753	//     "pageSize": {
47754	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
47755	//       "format": "int32",
47756	//       "location": "query",
47757	//       "type": "integer"
47758	//     },
47759	//     "pageToken": {
47760	//       "description": "The next_page_token value returned from a previous list request.",
47761	//       "location": "query",
47762	//       "type": "string"
47763	//     },
47764	//     "parent": {
47765	//       "description": "Required. The project to list all conversation profiles from. Format: `projects//locations/`.",
47766	//       "location": "path",
47767	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
47768	//       "required": true,
47769	//       "type": "string"
47770	//     }
47771	//   },
47772	//   "path": "v2beta1/{+parent}/conversationProfiles",
47773	//   "response": {
47774	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationProfilesResponse"
47775	//   },
47776	//   "scopes": [
47777	//     "https://www.googleapis.com/auth/cloud-platform",
47778	//     "https://www.googleapis.com/auth/dialogflow"
47779	//   ]
47780	// }
47781
47782}
47783
47784// Pages invokes f for each page of results.
47785// A non-nil error returned from f will halt the iteration.
47786// The provided context supersedes any context provided to the Context method.
47787func (c *ProjectsLocationsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
47788	c.ctx_ = ctx
47789	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
47790	for {
47791		x, err := c.Do()
47792		if err != nil {
47793			return err
47794		}
47795		if err := f(x); err != nil {
47796			return err
47797		}
47798		if x.NextPageToken == "" {
47799			return nil
47800		}
47801		c.PageToken(x.NextPageToken)
47802	}
47803}
47804
47805// method id "dialogflow.projects.locations.conversationProfiles.patch":
47806
47807type ProjectsLocationsConversationProfilesPatchCall struct {
47808	s                                               *Service
47809	nameid                                          string
47810	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
47811	urlParams_                                      gensupport.URLParams
47812	ctx_                                            context.Context
47813	header_                                         http.Header
47814}
47815
47816// Patch: Updates the specified conversation profile.
47817// ConversationProfile.CreateTime and ConversationProfile.UpdateTime
47818// aren't populated in the response. You can retrieve them via
47819// GetConversationProfile API.
47820//
47821// - name: The unique identifier of this conversation profile. Format:
47822//   `projects//locations//conversationProfiles/`.
47823func (r *ProjectsLocationsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesPatchCall {
47824	c := &ProjectsLocationsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47825	c.nameid = nameid
47826	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
47827	return c
47828}
47829
47830// UpdateMask sets the optional parameter "updateMask": Required. The
47831// mask to control which fields to update.
47832func (c *ProjectsLocationsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationProfilesPatchCall {
47833	c.urlParams_.Set("updateMask", updateMask)
47834	return c
47835}
47836
47837// Fields allows partial responses to be retrieved. See
47838// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47839// for more information.
47840func (c *ProjectsLocationsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesPatchCall {
47841	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47842	return c
47843}
47844
47845// Context sets the context to be used in this call's Do method. Any
47846// pending HTTP request will be aborted if the provided context is
47847// canceled.
47848func (c *ProjectsLocationsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesPatchCall {
47849	c.ctx_ = ctx
47850	return c
47851}
47852
47853// Header returns an http.Header that can be modified by the caller to
47854// add HTTP headers to the request.
47855func (c *ProjectsLocationsConversationProfilesPatchCall) Header() http.Header {
47856	if c.header_ == nil {
47857		c.header_ = make(http.Header)
47858	}
47859	return c.header_
47860}
47861
47862func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
47863	reqHeaders := make(http.Header)
47864	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
47865	for k, v := range c.header_ {
47866		reqHeaders[k] = v
47867	}
47868	reqHeaders.Set("User-Agent", c.s.userAgent())
47869	var body io.Reader = nil
47870	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
47871	if err != nil {
47872		return nil, err
47873	}
47874	reqHeaders.Set("Content-Type", "application/json")
47875	c.urlParams_.Set("alt", alt)
47876	c.urlParams_.Set("prettyPrint", "false")
47877	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
47878	urls += "?" + c.urlParams_.Encode()
47879	req, err := http.NewRequest("PATCH", urls, body)
47880	if err != nil {
47881		return nil, err
47882	}
47883	req.Header = reqHeaders
47884	googleapi.Expand(req.URL, map[string]string{
47885		"name": c.nameid,
47886	})
47887	return gensupport.SendRequest(c.ctx_, c.s.client, req)
47888}
47889
47890// Do executes the "dialogflow.projects.locations.conversationProfiles.patch" call.
47891// Exactly one of *GoogleCloudDialogflowV2beta1ConversationProfile or
47892// error will be non-nil. Any non-2xx status code is an error. Response
47893// headers are in either
47894// *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header
47895//  or (if a response was returned at all) in
47896// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
47897// whether the returned error was because http.StatusNotModified was
47898// returned.
47899func (c *ProjectsLocationsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
47900	gensupport.SetOptions(c.urlParams_, opts...)
47901	res, err := c.doRequest("json")
47902	if res != nil && res.StatusCode == http.StatusNotModified {
47903		if res.Body != nil {
47904			res.Body.Close()
47905		}
47906		return nil, &googleapi.Error{
47907			Code:   res.StatusCode,
47908			Header: res.Header,
47909		}
47910	}
47911	if err != nil {
47912		return nil, err
47913	}
47914	defer googleapi.CloseBody(res)
47915	if err := googleapi.CheckResponse(res); err != nil {
47916		return nil, err
47917	}
47918	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
47919		ServerResponse: googleapi.ServerResponse{
47920			Header:         res.Header,
47921			HTTPStatusCode: res.StatusCode,
47922		},
47923	}
47924	target := &ret
47925	if err := gensupport.DecodeResponse(target, res); err != nil {
47926		return nil, err
47927	}
47928	return ret, nil
47929	// {
47930	//   "description": "Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.",
47931	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversationProfiles/{conversationProfilesId}",
47932	//   "httpMethod": "PATCH",
47933	//   "id": "dialogflow.projects.locations.conversationProfiles.patch",
47934	//   "parameterOrder": [
47935	//     "name"
47936	//   ],
47937	//   "parameters": {
47938	//     "name": {
47939	//       "description": "The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`.",
47940	//       "location": "path",
47941	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversationProfiles/[^/]+$",
47942	//       "required": true,
47943	//       "type": "string"
47944	//     },
47945	//     "updateMask": {
47946	//       "description": "Required. The mask to control which fields to update.",
47947	//       "format": "google-fieldmask",
47948	//       "location": "query",
47949	//       "type": "string"
47950	//     }
47951	//   },
47952	//   "path": "v2beta1/{+name}",
47953	//   "request": {
47954	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
47955	//   },
47956	//   "response": {
47957	//     "$ref": "GoogleCloudDialogflowV2beta1ConversationProfile"
47958	//   },
47959	//   "scopes": [
47960	//     "https://www.googleapis.com/auth/cloud-platform",
47961	//     "https://www.googleapis.com/auth/dialogflow"
47962	//   ]
47963	// }
47964
47965}
47966
47967// method id "dialogflow.projects.locations.conversations.complete":
47968
47969type ProjectsLocationsConversationsCompleteCall struct {
47970	s                                                       *Service
47971	nameid                                                  string
47972	googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
47973	urlParams_                                              gensupport.URLParams
47974	ctx_                                                    context.Context
47975	header_                                                 http.Header
47976}
47977
47978// Complete: Completes the specified conversation. Finished
47979// conversations are purged from the database after 30 days.
47980//
47981// - name: Resource identifier of the conversation to close. Format:
47982//   `projects//locations//conversations/`.
47983func (r *ProjectsLocationsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsLocationsConversationsCompleteCall {
47984	c := &ProjectsLocationsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47985	c.nameid = nameid
47986	c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
47987	return c
47988}
47989
47990// Fields allows partial responses to be retrieved. See
47991// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
47992// for more information.
47993func (c *ProjectsLocationsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCompleteCall {
47994	c.urlParams_.Set("fields", googleapi.CombineFields(s))
47995	return c
47996}
47997
47998// Context sets the context to be used in this call's Do method. Any
47999// pending HTTP request will be aborted if the provided context is
48000// canceled.
48001func (c *ProjectsLocationsConversationsCompleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsCompleteCall {
48002	c.ctx_ = ctx
48003	return c
48004}
48005
48006// Header returns an http.Header that can be modified by the caller to
48007// add HTTP headers to the request.
48008func (c *ProjectsLocationsConversationsCompleteCall) Header() http.Header {
48009	if c.header_ == nil {
48010		c.header_ = make(http.Header)
48011	}
48012	return c.header_
48013}
48014
48015func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
48016	reqHeaders := make(http.Header)
48017	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
48018	for k, v := range c.header_ {
48019		reqHeaders[k] = v
48020	}
48021	reqHeaders.Set("User-Agent", c.s.userAgent())
48022	var body io.Reader = nil
48023	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
48024	if err != nil {
48025		return nil, err
48026	}
48027	reqHeaders.Set("Content-Type", "application/json")
48028	c.urlParams_.Set("alt", alt)
48029	c.urlParams_.Set("prettyPrint", "false")
48030	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
48031	urls += "?" + c.urlParams_.Encode()
48032	req, err := http.NewRequest("POST", urls, body)
48033	if err != nil {
48034		return nil, err
48035	}
48036	req.Header = reqHeaders
48037	googleapi.Expand(req.URL, map[string]string{
48038		"name": c.nameid,
48039	})
48040	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48041}
48042
48043// Do executes the "dialogflow.projects.locations.conversations.complete" call.
48044// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
48045// will be non-nil. Any non-2xx status code is an error. Response
48046// headers are in either
48047// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
48048// (if a response was returned at all) in
48049// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48050// whether the returned error was because http.StatusNotModified was
48051// returned.
48052func (c *ProjectsLocationsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
48053	gensupport.SetOptions(c.urlParams_, opts...)
48054	res, err := c.doRequest("json")
48055	if res != nil && res.StatusCode == http.StatusNotModified {
48056		if res.Body != nil {
48057			res.Body.Close()
48058		}
48059		return nil, &googleapi.Error{
48060			Code:   res.StatusCode,
48061			Header: res.Header,
48062		}
48063	}
48064	if err != nil {
48065		return nil, err
48066	}
48067	defer googleapi.CloseBody(res)
48068	if err := googleapi.CheckResponse(res); err != nil {
48069		return nil, err
48070	}
48071	ret := &GoogleCloudDialogflowV2beta1Conversation{
48072		ServerResponse: googleapi.ServerResponse{
48073			Header:         res.Header,
48074			HTTPStatusCode: res.StatusCode,
48075		},
48076	}
48077	target := &ret
48078	if err := gensupport.DecodeResponse(target, res); err != nil {
48079		return nil, err
48080	}
48081	return ret, nil
48082	// {
48083	//   "description": "Completes the specified conversation. Finished conversations are purged from the database after 30 days.",
48084	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}:complete",
48085	//   "httpMethod": "POST",
48086	//   "id": "dialogflow.projects.locations.conversations.complete",
48087	//   "parameterOrder": [
48088	//     "name"
48089	//   ],
48090	//   "parameters": {
48091	//     "name": {
48092	//       "description": "Required. Resource identifier of the conversation to close. Format: `projects//locations//conversations/`.",
48093	//       "location": "path",
48094	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
48095	//       "required": true,
48096	//       "type": "string"
48097	//     }
48098	//   },
48099	//   "path": "v2beta1/{+name}:complete",
48100	//   "request": {
48101	//     "$ref": "GoogleCloudDialogflowV2beta1CompleteConversationRequest"
48102	//   },
48103	//   "response": {
48104	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
48105	//   },
48106	//   "scopes": [
48107	//     "https://www.googleapis.com/auth/cloud-platform",
48108	//     "https://www.googleapis.com/auth/dialogflow"
48109	//   ]
48110	// }
48111
48112}
48113
48114// method id "dialogflow.projects.locations.conversations.create":
48115
48116type ProjectsLocationsConversationsCreateCall struct {
48117	s                                        *Service
48118	parentid                                 string
48119	googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
48120	urlParams_                               gensupport.URLParams
48121	ctx_                                     context.Context
48122	header_                                  http.Header
48123}
48124
48125// Create: Creates a new conversation. Conversations are auto-completed
48126// after 24 hours. Conversation Lifecycle: There are two stages during a
48127// conversation: Automated Agent Stage and Assist Stage. For Automated
48128// Agent Stage, there will be a dialogflow agent responding to user
48129// queries. For Assist Stage, there's no dialogflow agent responding to
48130// user queries. But we will provide suggestions which are generated
48131// from conversation. If Conversation.conversation_profile is configured
48132// for a dialogflow agent, conversation will start from `Automated Agent
48133// Stage`, otherwise, it will start from `Assist Stage`. And during
48134// `Automated Agent Stage`, once an Intent with
48135// Intent.live_agent_handoff is triggered, conversation will transfer to
48136// Assist Stage.
48137//
48138// - parent: Resource identifier of the project creating the
48139//   conversation. Format: `projects//locations/`.
48140func (r *ProjectsLocationsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsLocationsConversationsCreateCall {
48141	c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48142	c.parentid = parentid
48143	c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
48144	return c
48145}
48146
48147// ConversationId sets the optional parameter "conversationId":
48148// Identifier of the conversation. Generally it's auto generated by
48149// Google. Only set it if you cannot wait for the response to return a
48150// auto-generated one to you. The conversation ID must be compliant with
48151// the regression fomula "a-zA-Z*" with the characters length in range
48152// of [3,64]. If the field is provided, the caller is resposible for 1.
48153// the uniqueness of the ID, otherwise the request will be rejected. 2.
48154// the consistency for whether to use custom ID or not under a project
48155// to better ensure uniqueness.
48156func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall {
48157	c.urlParams_.Set("conversationId", conversationId)
48158	return c
48159}
48160
48161// Fields allows partial responses to be retrieved. See
48162// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48163// for more information.
48164func (c *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall {
48165	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48166	return c
48167}
48168
48169// Context sets the context to be used in this call's Do method. Any
48170// pending HTTP request will be aborted if the provided context is
48171// canceled.
48172func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall {
48173	c.ctx_ = ctx
48174	return c
48175}
48176
48177// Header returns an http.Header that can be modified by the caller to
48178// add HTTP headers to the request.
48179func (c *ProjectsLocationsConversationsCreateCall) Header() http.Header {
48180	if c.header_ == nil {
48181		c.header_ = make(http.Header)
48182	}
48183	return c.header_
48184}
48185
48186func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
48187	reqHeaders := make(http.Header)
48188	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
48189	for k, v := range c.header_ {
48190		reqHeaders[k] = v
48191	}
48192	reqHeaders.Set("User-Agent", c.s.userAgent())
48193	var body io.Reader = nil
48194	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
48195	if err != nil {
48196		return nil, err
48197	}
48198	reqHeaders.Set("Content-Type", "application/json")
48199	c.urlParams_.Set("alt", alt)
48200	c.urlParams_.Set("prettyPrint", "false")
48201	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
48202	urls += "?" + c.urlParams_.Encode()
48203	req, err := http.NewRequest("POST", urls, body)
48204	if err != nil {
48205		return nil, err
48206	}
48207	req.Header = reqHeaders
48208	googleapi.Expand(req.URL, map[string]string{
48209		"parent": c.parentid,
48210	})
48211	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48212}
48213
48214// Do executes the "dialogflow.projects.locations.conversations.create" call.
48215// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
48216// will be non-nil. Any non-2xx status code is an error. Response
48217// headers are in either
48218// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
48219// (if a response was returned at all) in
48220// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48221// whether the returned error was because http.StatusNotModified was
48222// returned.
48223func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
48224	gensupport.SetOptions(c.urlParams_, opts...)
48225	res, err := c.doRequest("json")
48226	if res != nil && res.StatusCode == http.StatusNotModified {
48227		if res.Body != nil {
48228			res.Body.Close()
48229		}
48230		return nil, &googleapi.Error{
48231			Code:   res.StatusCode,
48232			Header: res.Header,
48233		}
48234	}
48235	if err != nil {
48236		return nil, err
48237	}
48238	defer googleapi.CloseBody(res)
48239	if err := googleapi.CheckResponse(res); err != nil {
48240		return nil, err
48241	}
48242	ret := &GoogleCloudDialogflowV2beta1Conversation{
48243		ServerResponse: googleapi.ServerResponse{
48244			Header:         res.Header,
48245			HTTPStatusCode: res.StatusCode,
48246		},
48247	}
48248	target := &ret
48249	if err := gensupport.DecodeResponse(target, res); err != nil {
48250		return nil, err
48251	}
48252	return ret, nil
48253	// {
48254	//   "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.",
48255	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations",
48256	//   "httpMethod": "POST",
48257	//   "id": "dialogflow.projects.locations.conversations.create",
48258	//   "parameterOrder": [
48259	//     "parent"
48260	//   ],
48261	//   "parameters": {
48262	//     "conversationId": {
48263	//       "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.",
48264	//       "location": "query",
48265	//       "type": "string"
48266	//     },
48267	//     "parent": {
48268	//       "description": "Required. Resource identifier of the project creating the conversation. Format: `projects//locations/`.",
48269	//       "location": "path",
48270	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
48271	//       "required": true,
48272	//       "type": "string"
48273	//     }
48274	//   },
48275	//   "path": "v2beta1/{+parent}/conversations",
48276	//   "request": {
48277	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
48278	//   },
48279	//   "response": {
48280	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
48281	//   },
48282	//   "scopes": [
48283	//     "https://www.googleapis.com/auth/cloud-platform",
48284	//     "https://www.googleapis.com/auth/dialogflow"
48285	//   ]
48286	// }
48287
48288}
48289
48290// method id "dialogflow.projects.locations.conversations.get":
48291
48292type ProjectsLocationsConversationsGetCall struct {
48293	s            *Service
48294	name         string
48295	urlParams_   gensupport.URLParams
48296	ifNoneMatch_ string
48297	ctx_         context.Context
48298	header_      http.Header
48299}
48300
48301// Get: Retrieves the specific conversation.
48302//
48303// - name: The name of the conversation. Format:
48304//   `projects//locations//conversations/`.
48305func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall {
48306	c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48307	c.name = name
48308	return c
48309}
48310
48311// Fields allows partial responses to be retrieved. See
48312// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48313// for more information.
48314func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall {
48315	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48316	return c
48317}
48318
48319// IfNoneMatch sets the optional parameter which makes the operation
48320// fail if the object's ETag matches the given value. This is useful for
48321// getting updates only after the object has changed since the last
48322// request. Use googleapi.IsNotModified to check whether the response
48323// error from Do is the result of In-None-Match.
48324func (c *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall {
48325	c.ifNoneMatch_ = entityTag
48326	return c
48327}
48328
48329// Context sets the context to be used in this call's Do method. Any
48330// pending HTTP request will be aborted if the provided context is
48331// canceled.
48332func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall {
48333	c.ctx_ = ctx
48334	return c
48335}
48336
48337// Header returns an http.Header that can be modified by the caller to
48338// add HTTP headers to the request.
48339func (c *ProjectsLocationsConversationsGetCall) Header() http.Header {
48340	if c.header_ == nil {
48341		c.header_ = make(http.Header)
48342	}
48343	return c.header_
48344}
48345
48346func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
48347	reqHeaders := make(http.Header)
48348	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
48349	for k, v := range c.header_ {
48350		reqHeaders[k] = v
48351	}
48352	reqHeaders.Set("User-Agent", c.s.userAgent())
48353	if c.ifNoneMatch_ != "" {
48354		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48355	}
48356	var body io.Reader = nil
48357	c.urlParams_.Set("alt", alt)
48358	c.urlParams_.Set("prettyPrint", "false")
48359	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
48360	urls += "?" + c.urlParams_.Encode()
48361	req, err := http.NewRequest("GET", urls, body)
48362	if err != nil {
48363		return nil, err
48364	}
48365	req.Header = reqHeaders
48366	googleapi.Expand(req.URL, map[string]string{
48367		"name": c.name,
48368	})
48369	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48370}
48371
48372// Do executes the "dialogflow.projects.locations.conversations.get" call.
48373// Exactly one of *GoogleCloudDialogflowV2beta1Conversation or error
48374// will be non-nil. Any non-2xx status code is an error. Response
48375// headers are in either
48376// *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or
48377// (if a response was returned at all) in
48378// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48379// whether the returned error was because http.StatusNotModified was
48380// returned.
48381func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
48382	gensupport.SetOptions(c.urlParams_, opts...)
48383	res, err := c.doRequest("json")
48384	if res != nil && res.StatusCode == http.StatusNotModified {
48385		if res.Body != nil {
48386			res.Body.Close()
48387		}
48388		return nil, &googleapi.Error{
48389			Code:   res.StatusCode,
48390			Header: res.Header,
48391		}
48392	}
48393	if err != nil {
48394		return nil, err
48395	}
48396	defer googleapi.CloseBody(res)
48397	if err := googleapi.CheckResponse(res); err != nil {
48398		return nil, err
48399	}
48400	ret := &GoogleCloudDialogflowV2beta1Conversation{
48401		ServerResponse: googleapi.ServerResponse{
48402			Header:         res.Header,
48403			HTTPStatusCode: res.StatusCode,
48404		},
48405	}
48406	target := &ret
48407	if err := gensupport.DecodeResponse(target, res); err != nil {
48408		return nil, err
48409	}
48410	return ret, nil
48411	// {
48412	//   "description": "Retrieves the specific conversation.",
48413	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}",
48414	//   "httpMethod": "GET",
48415	//   "id": "dialogflow.projects.locations.conversations.get",
48416	//   "parameterOrder": [
48417	//     "name"
48418	//   ],
48419	//   "parameters": {
48420	//     "name": {
48421	//       "description": "Required. The name of the conversation. Format: `projects//locations//conversations/`.",
48422	//       "location": "path",
48423	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
48424	//       "required": true,
48425	//       "type": "string"
48426	//     }
48427	//   },
48428	//   "path": "v2beta1/{+name}",
48429	//   "response": {
48430	//     "$ref": "GoogleCloudDialogflowV2beta1Conversation"
48431	//   },
48432	//   "scopes": [
48433	//     "https://www.googleapis.com/auth/cloud-platform",
48434	//     "https://www.googleapis.com/auth/dialogflow"
48435	//   ]
48436	// }
48437
48438}
48439
48440// method id "dialogflow.projects.locations.conversations.list":
48441
48442type ProjectsLocationsConversationsListCall struct {
48443	s            *Service
48444	parent       string
48445	urlParams_   gensupport.URLParams
48446	ifNoneMatch_ string
48447	ctx_         context.Context
48448	header_      http.Header
48449}
48450
48451// List: Returns the list of all conversations in the specified project.
48452//
48453// - parent: The project from which to list all conversation. Format:
48454//   `projects//locations/`.
48455func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall {
48456	c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48457	c.parent = parent
48458	return c
48459}
48460
48461// Filter sets the optional parameter "filter": A filter expression that
48462// filters conversations listed in the response. In general, the
48463// expression must specify the field name, a comparison operator, and
48464// the value to use for filtering: - The value must be a string, a
48465// number, or a boolean. - The comparison operator must be either
48466// `=`,`!=`, `>`, or `<`. - To filter on multiple expressions, separate
48467// the expressions with `AND` or `OR` (omitting both implies `AND`). -
48468// For clarity, expressions can be enclosed in parentheses. Only
48469// `lifecycle_state` can be filtered on in this way. For example, the
48470// following expression only returns `COMPLETED` conversations:
48471// `lifecycle_state = "COMPLETED" For more information about filtering,
48472// see API Filtering (https://aip.dev/160).
48473func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall {
48474	c.urlParams_.Set("filter", filter)
48475	return c
48476}
48477
48478// PageSize sets the optional parameter "pageSize": The maximum number
48479// of items to return in a single page. By default 100 and at most 1000.
48480func (c *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall {
48481	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
48482	return c
48483}
48484
48485// PageToken sets the optional parameter "pageToken": The
48486// next_page_token value returned from a previous list request.
48487func (c *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall {
48488	c.urlParams_.Set("pageToken", pageToken)
48489	return c
48490}
48491
48492// Fields allows partial responses to be retrieved. See
48493// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48494// for more information.
48495func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall {
48496	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48497	return c
48498}
48499
48500// IfNoneMatch sets the optional parameter which makes the operation
48501// fail if the object's ETag matches the given value. This is useful for
48502// getting updates only after the object has changed since the last
48503// request. Use googleapi.IsNotModified to check whether the response
48504// error from Do is the result of In-None-Match.
48505func (c *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall {
48506	c.ifNoneMatch_ = entityTag
48507	return c
48508}
48509
48510// Context sets the context to be used in this call's Do method. Any
48511// pending HTTP request will be aborted if the provided context is
48512// canceled.
48513func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall {
48514	c.ctx_ = ctx
48515	return c
48516}
48517
48518// Header returns an http.Header that can be modified by the caller to
48519// add HTTP headers to the request.
48520func (c *ProjectsLocationsConversationsListCall) Header() http.Header {
48521	if c.header_ == nil {
48522		c.header_ = make(http.Header)
48523	}
48524	return c.header_
48525}
48526
48527func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) {
48528	reqHeaders := make(http.Header)
48529	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
48530	for k, v := range c.header_ {
48531		reqHeaders[k] = v
48532	}
48533	reqHeaders.Set("User-Agent", c.s.userAgent())
48534	if c.ifNoneMatch_ != "" {
48535		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48536	}
48537	var body io.Reader = nil
48538	c.urlParams_.Set("alt", alt)
48539	c.urlParams_.Set("prettyPrint", "false")
48540	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
48541	urls += "?" + c.urlParams_.Encode()
48542	req, err := http.NewRequest("GET", urls, body)
48543	if err != nil {
48544		return nil, err
48545	}
48546	req.Header = reqHeaders
48547	googleapi.Expand(req.URL, map[string]string{
48548		"parent": c.parent,
48549	})
48550	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48551}
48552
48553// Do executes the "dialogflow.projects.locations.conversations.list" call.
48554// Exactly one of *GoogleCloudDialogflowV2beta1ListConversationsResponse
48555// or error will be non-nil. Any non-2xx status code is an error.
48556// Response headers are in either
48557// *GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.
48558// Header or (if a response was returned at all) in
48559// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48560// whether the returned error was because http.StatusNotModified was
48561// returned.
48562func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
48563	gensupport.SetOptions(c.urlParams_, opts...)
48564	res, err := c.doRequest("json")
48565	if res != nil && res.StatusCode == http.StatusNotModified {
48566		if res.Body != nil {
48567			res.Body.Close()
48568		}
48569		return nil, &googleapi.Error{
48570			Code:   res.StatusCode,
48571			Header: res.Header,
48572		}
48573	}
48574	if err != nil {
48575		return nil, err
48576	}
48577	defer googleapi.CloseBody(res)
48578	if err := googleapi.CheckResponse(res); err != nil {
48579		return nil, err
48580	}
48581	ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
48582		ServerResponse: googleapi.ServerResponse{
48583			Header:         res.Header,
48584			HTTPStatusCode: res.StatusCode,
48585		},
48586	}
48587	target := &ret
48588	if err := gensupport.DecodeResponse(target, res); err != nil {
48589		return nil, err
48590	}
48591	return ret, nil
48592	// {
48593	//   "description": "Returns the list of all conversations in the specified project.",
48594	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations",
48595	//   "httpMethod": "GET",
48596	//   "id": "dialogflow.projects.locations.conversations.list",
48597	//   "parameterOrder": [
48598	//     "parent"
48599	//   ],
48600	//   "parameters": {
48601	//     "filter": {
48602	//       "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).",
48603	//       "location": "query",
48604	//       "type": "string"
48605	//     },
48606	//     "pageSize": {
48607	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
48608	//       "format": "int32",
48609	//       "location": "query",
48610	//       "type": "integer"
48611	//     },
48612	//     "pageToken": {
48613	//       "description": "Optional. The next_page_token value returned from a previous list request.",
48614	//       "location": "query",
48615	//       "type": "string"
48616	//     },
48617	//     "parent": {
48618	//       "description": "Required. The project from which to list all conversation. Format: `projects//locations/`.",
48619	//       "location": "path",
48620	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
48621	//       "required": true,
48622	//       "type": "string"
48623	//     }
48624	//   },
48625	//   "path": "v2beta1/{+parent}/conversations",
48626	//   "response": {
48627	//     "$ref": "GoogleCloudDialogflowV2beta1ListConversationsResponse"
48628	//   },
48629	//   "scopes": [
48630	//     "https://www.googleapis.com/auth/cloud-platform",
48631	//     "https://www.googleapis.com/auth/dialogflow"
48632	//   ]
48633	// }
48634
48635}
48636
48637// Pages invokes f for each page of results.
48638// A non-nil error returned from f will halt the iteration.
48639// The provided context supersedes any context provided to the Context method.
48640func (c *ProjectsLocationsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
48641	c.ctx_ = ctx
48642	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
48643	for {
48644		x, err := c.Do()
48645		if err != nil {
48646			return err
48647		}
48648		if err := f(x); err != nil {
48649			return err
48650		}
48651		if x.NextPageToken == "" {
48652			return nil
48653		}
48654		c.PageToken(x.NextPageToken)
48655	}
48656}
48657
48658// method id "dialogflow.projects.locations.conversations.messages.batchCreate":
48659
48660type ProjectsLocationsConversationsMessagesBatchCreateCall struct {
48661	s                                                      *Service
48662	parentid                                               string
48663	googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
48664	urlParams_                                             gensupport.URLParams
48665	ctx_                                                   context.Context
48666	header_                                                http.Header
48667}
48668
48669// BatchCreate: Batch ingests messages to conversation. Customers can
48670// use this RPC to ingest historical messages to conversation.
48671//
48672// - parent: Resource identifier of the conversation to create message.
48673//   Format: `projects//locations//conversations/`.
48674func (r *ProjectsLocationsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsLocationsConversationsMessagesBatchCreateCall {
48675	c := &ProjectsLocationsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48676	c.parentid = parentid
48677	c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
48678	return c
48679}
48680
48681// Fields allows partial responses to be retrieved. See
48682// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48683// for more information.
48684func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesBatchCreateCall {
48685	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48686	return c
48687}
48688
48689// Context sets the context to be used in this call's Do method. Any
48690// pending HTTP request will be aborted if the provided context is
48691// canceled.
48692func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesBatchCreateCall {
48693	c.ctx_ = ctx
48694	return c
48695}
48696
48697// Header returns an http.Header that can be modified by the caller to
48698// add HTTP headers to the request.
48699func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Header() http.Header {
48700	if c.header_ == nil {
48701		c.header_ = make(http.Header)
48702	}
48703	return c.header_
48704}
48705
48706func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
48707	reqHeaders := make(http.Header)
48708	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
48709	for k, v := range c.header_ {
48710		reqHeaders[k] = v
48711	}
48712	reqHeaders.Set("User-Agent", c.s.userAgent())
48713	var body io.Reader = nil
48714	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
48715	if err != nil {
48716		return nil, err
48717	}
48718	reqHeaders.Set("Content-Type", "application/json")
48719	c.urlParams_.Set("alt", alt)
48720	c.urlParams_.Set("prettyPrint", "false")
48721	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
48722	urls += "?" + c.urlParams_.Encode()
48723	req, err := http.NewRequest("POST", urls, body)
48724	if err != nil {
48725		return nil, err
48726	}
48727	req.Header = reqHeaders
48728	googleapi.Expand(req.URL, map[string]string{
48729		"parent": c.parentid,
48730	})
48731	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48732}
48733
48734// Do executes the "dialogflow.projects.locations.conversations.messages.batchCreate" call.
48735// Exactly one of
48736// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse or error
48737// will be non-nil. Any non-2xx status code is an error. Response
48738// headers are in either
48739// *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.ServerRespons
48740// e.Header or (if a response was returned at all) in
48741// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48742// whether the returned error was because http.StatusNotModified was
48743// returned.
48744func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
48745	gensupport.SetOptions(c.urlParams_, opts...)
48746	res, err := c.doRequest("json")
48747	if res != nil && res.StatusCode == http.StatusNotModified {
48748		if res.Body != nil {
48749			res.Body.Close()
48750		}
48751		return nil, &googleapi.Error{
48752			Code:   res.StatusCode,
48753			Header: res.Header,
48754		}
48755	}
48756	if err != nil {
48757		return nil, err
48758	}
48759	defer googleapi.CloseBody(res)
48760	if err := googleapi.CheckResponse(res); err != nil {
48761		return nil, err
48762	}
48763	ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
48764		ServerResponse: googleapi.ServerResponse{
48765			Header:         res.Header,
48766			HTTPStatusCode: res.StatusCode,
48767		},
48768	}
48769	target := &ret
48770	if err := gensupport.DecodeResponse(target, res); err != nil {
48771		return nil, err
48772	}
48773	return ret, nil
48774	// {
48775	//   "description": "Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.",
48776	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/messages:batchCreate",
48777	//   "httpMethod": "POST",
48778	//   "id": "dialogflow.projects.locations.conversations.messages.batchCreate",
48779	//   "parameterOrder": [
48780	//     "parent"
48781	//   ],
48782	//   "parameters": {
48783	//     "parent": {
48784	//       "description": "Required. Resource identifier of the conversation to create message. Format: `projects//locations//conversations/`.",
48785	//       "location": "path",
48786	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
48787	//       "required": true,
48788	//       "type": "string"
48789	//     }
48790	//   },
48791	//   "path": "v2beta1/{+parent}/messages:batchCreate",
48792	//   "request": {
48793	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest"
48794	//   },
48795	//   "response": {
48796	//     "$ref": "GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse"
48797	//   },
48798	//   "scopes": [
48799	//     "https://www.googleapis.com/auth/cloud-platform",
48800	//     "https://www.googleapis.com/auth/dialogflow"
48801	//   ]
48802	// }
48803
48804}
48805
48806// method id "dialogflow.projects.locations.conversations.messages.list":
48807
48808type ProjectsLocationsConversationsMessagesListCall struct {
48809	s            *Service
48810	parent       string
48811	urlParams_   gensupport.URLParams
48812	ifNoneMatch_ string
48813	ctx_         context.Context
48814	header_      http.Header
48815}
48816
48817// List: Lists messages that belong to a given conversation. `messages`
48818// are ordered by `create_time` in descending order. To fetch updates
48819// without duplication, send request with filter
48820// `create_time_epoch_microseconds > [first item's create_time of
48821// previous request]` and empty page_token.
48822//
48823// - parent: The name of the conversation to list messages for. Format:
48824//   `projects//locations//conversations/`.
48825func (r *ProjectsLocationsConversationsMessagesService) List(parent string) *ProjectsLocationsConversationsMessagesListCall {
48826	c := &ProjectsLocationsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48827	c.parent = parent
48828	return c
48829}
48830
48831// Filter sets the optional parameter "filter": Filter on message
48832// fields. Currently predicates on `create_time` and
48833// `create_time_epoch_microseconds` are supported. `create_time` only
48834// support milliseconds accuracy. E.g., `create_time_epoch_microseconds
48835// > 1551790877964485` or `create_time > "2017-01-15T01:30:15.01Z". For
48836// more information about filtering, see API Filtering
48837// (https://aip.dev/160).
48838func (c *ProjectsLocationsConversationsMessagesListCall) Filter(filter string) *ProjectsLocationsConversationsMessagesListCall {
48839	c.urlParams_.Set("filter", filter)
48840	return c
48841}
48842
48843// PageSize sets the optional parameter "pageSize": The maximum number
48844// of items to return in a single page. By default 100 and at most 1000.
48845func (c *ProjectsLocationsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsMessagesListCall {
48846	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
48847	return c
48848}
48849
48850// PageToken sets the optional parameter "pageToken": The
48851// next_page_token value returned from a previous list request.
48852func (c *ProjectsLocationsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsMessagesListCall {
48853	c.urlParams_.Set("pageToken", pageToken)
48854	return c
48855}
48856
48857// Fields allows partial responses to be retrieved. See
48858// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
48859// for more information.
48860func (c *ProjectsLocationsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesListCall {
48861	c.urlParams_.Set("fields", googleapi.CombineFields(s))
48862	return c
48863}
48864
48865// IfNoneMatch sets the optional parameter which makes the operation
48866// fail if the object's ETag matches the given value. This is useful for
48867// getting updates only after the object has changed since the last
48868// request. Use googleapi.IsNotModified to check whether the response
48869// error from Do is the result of In-None-Match.
48870func (c *ProjectsLocationsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsMessagesListCall {
48871	c.ifNoneMatch_ = entityTag
48872	return c
48873}
48874
48875// Context sets the context to be used in this call's Do method. Any
48876// pending HTTP request will be aborted if the provided context is
48877// canceled.
48878func (c *ProjectsLocationsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesListCall {
48879	c.ctx_ = ctx
48880	return c
48881}
48882
48883// Header returns an http.Header that can be modified by the caller to
48884// add HTTP headers to the request.
48885func (c *ProjectsLocationsConversationsMessagesListCall) Header() http.Header {
48886	if c.header_ == nil {
48887		c.header_ = make(http.Header)
48888	}
48889	return c.header_
48890}
48891
48892func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
48893	reqHeaders := make(http.Header)
48894	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
48895	for k, v := range c.header_ {
48896		reqHeaders[k] = v
48897	}
48898	reqHeaders.Set("User-Agent", c.s.userAgent())
48899	if c.ifNoneMatch_ != "" {
48900		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48901	}
48902	var body io.Reader = nil
48903	c.urlParams_.Set("alt", alt)
48904	c.urlParams_.Set("prettyPrint", "false")
48905	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
48906	urls += "?" + c.urlParams_.Encode()
48907	req, err := http.NewRequest("GET", urls, body)
48908	if err != nil {
48909		return nil, err
48910	}
48911	req.Header = reqHeaders
48912	googleapi.Expand(req.URL, map[string]string{
48913		"parent": c.parent,
48914	})
48915	return gensupport.SendRequest(c.ctx_, c.s.client, req)
48916}
48917
48918// Do executes the "dialogflow.projects.locations.conversations.messages.list" call.
48919// Exactly one of *GoogleCloudDialogflowV2beta1ListMessagesResponse or
48920// error will be non-nil. Any non-2xx status code is an error. Response
48921// headers are in either
48922// *GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Heade
48923// r or (if a response was returned at all) in
48924// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
48925// whether the returned error was because http.StatusNotModified was
48926// returned.
48927func (c *ProjectsLocationsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
48928	gensupport.SetOptions(c.urlParams_, opts...)
48929	res, err := c.doRequest("json")
48930	if res != nil && res.StatusCode == http.StatusNotModified {
48931		if res.Body != nil {
48932			res.Body.Close()
48933		}
48934		return nil, &googleapi.Error{
48935			Code:   res.StatusCode,
48936			Header: res.Header,
48937		}
48938	}
48939	if err != nil {
48940		return nil, err
48941	}
48942	defer googleapi.CloseBody(res)
48943	if err := googleapi.CheckResponse(res); err != nil {
48944		return nil, err
48945	}
48946	ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
48947		ServerResponse: googleapi.ServerResponse{
48948			Header:         res.Header,
48949			HTTPStatusCode: res.StatusCode,
48950		},
48951	}
48952	target := &ret
48953	if err := gensupport.DecodeResponse(target, res); err != nil {
48954		return nil, err
48955	}
48956	return ret, nil
48957	// {
48958	//   "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.",
48959	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/messages",
48960	//   "httpMethod": "GET",
48961	//   "id": "dialogflow.projects.locations.conversations.messages.list",
48962	//   "parameterOrder": [
48963	//     "parent"
48964	//   ],
48965	//   "parameters": {
48966	//     "filter": {
48967	//       "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).",
48968	//       "location": "query",
48969	//       "type": "string"
48970	//     },
48971	//     "pageSize": {
48972	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
48973	//       "format": "int32",
48974	//       "location": "query",
48975	//       "type": "integer"
48976	//     },
48977	//     "pageToken": {
48978	//       "description": "Optional. The next_page_token value returned from a previous list request.",
48979	//       "location": "query",
48980	//       "type": "string"
48981	//     },
48982	//     "parent": {
48983	//       "description": "Required. The name of the conversation to list messages for. Format: `projects//locations//conversations/`",
48984	//       "location": "path",
48985	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
48986	//       "required": true,
48987	//       "type": "string"
48988	//     }
48989	//   },
48990	//   "path": "v2beta1/{+parent}/messages",
48991	//   "response": {
48992	//     "$ref": "GoogleCloudDialogflowV2beta1ListMessagesResponse"
48993	//   },
48994	//   "scopes": [
48995	//     "https://www.googleapis.com/auth/cloud-platform",
48996	//     "https://www.googleapis.com/auth/dialogflow"
48997	//   ]
48998	// }
48999
49000}
49001
49002// Pages invokes f for each page of results.
49003// A non-nil error returned from f will halt the iteration.
49004// The provided context supersedes any context provided to the Context method.
49005func (c *ProjectsLocationsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
49006	c.ctx_ = ctx
49007	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
49008	for {
49009		x, err := c.Do()
49010		if err != nil {
49011			return err
49012		}
49013		if err := f(x); err != nil {
49014			return err
49015		}
49016		if x.NextPageToken == "" {
49017			return nil
49018		}
49019		c.PageToken(x.NextPageToken)
49020	}
49021}
49022
49023// method id "dialogflow.projects.locations.conversations.participants.analyzeContent":
49024
49025type ProjectsLocationsConversationsParticipantsAnalyzeContentCall struct {
49026	s                                                 *Service
49027	participant                                       string
49028	googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
49029	urlParams_                                        gensupport.URLParams
49030	ctx_                                              context.Context
49031	header_                                           http.Header
49032}
49033
49034// AnalyzeContent: Adds a text (chat, for example), or audio (phone
49035// recording, for example) message from a participant into the
49036// conversation. Note: Always use agent versions for production traffic
49037// sent to virtual agents. See Versions and environments
49038// (https://cloud.google.com/dialogflow/es/docs/agents-versions).
49039//
49040// - participant: The name of the participant this text comes from.
49041//   Format: `projects//locations//conversations//participants/`.
49042func (r *ProjectsLocationsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
49043	c := &ProjectsLocationsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49044	c.participant = participant
49045	c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
49046	return c
49047}
49048
49049// Fields allows partial responses to be retrieved. See
49050// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49051// for more information.
49052func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
49053	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49054	return c
49055}
49056
49057// Context sets the context to be used in this call's Do method. Any
49058// pending HTTP request will be aborted if the provided context is
49059// canceled.
49060func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
49061	c.ctx_ = ctx
49062	return c
49063}
49064
49065// Header returns an http.Header that can be modified by the caller to
49066// add HTTP headers to the request.
49067func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
49068	if c.header_ == nil {
49069		c.header_ = make(http.Header)
49070	}
49071	return c.header_
49072}
49073
49074func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
49075	reqHeaders := make(http.Header)
49076	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
49077	for k, v := range c.header_ {
49078		reqHeaders[k] = v
49079	}
49080	reqHeaders.Set("User-Agent", c.s.userAgent())
49081	var body io.Reader = nil
49082	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
49083	if err != nil {
49084		return nil, err
49085	}
49086	reqHeaders.Set("Content-Type", "application/json")
49087	c.urlParams_.Set("alt", alt)
49088	c.urlParams_.Set("prettyPrint", "false")
49089	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
49090	urls += "?" + c.urlParams_.Encode()
49091	req, err := http.NewRequest("POST", urls, body)
49092	if err != nil {
49093		return nil, err
49094	}
49095	req.Header = reqHeaders
49096	googleapi.Expand(req.URL, map[string]string{
49097		"participant": c.participant,
49098	})
49099	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49100}
49101
49102// Do executes the "dialogflow.projects.locations.conversations.participants.analyzeContent" call.
49103// Exactly one of *GoogleCloudDialogflowV2beta1AnalyzeContentResponse or
49104// error will be non-nil. Any non-2xx status code is an error. Response
49105// headers are in either
49106// *GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Hea
49107// der or (if a response was returned at all) in
49108// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49109// whether the returned error was because http.StatusNotModified was
49110// returned.
49111func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
49112	gensupport.SetOptions(c.urlParams_, opts...)
49113	res, err := c.doRequest("json")
49114	if res != nil && res.StatusCode == http.StatusNotModified {
49115		if res.Body != nil {
49116			res.Body.Close()
49117		}
49118		return nil, &googleapi.Error{
49119			Code:   res.StatusCode,
49120			Header: res.Header,
49121		}
49122	}
49123	if err != nil {
49124		return nil, err
49125	}
49126	defer googleapi.CloseBody(res)
49127	if err := googleapi.CheckResponse(res); err != nil {
49128		return nil, err
49129	}
49130	ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
49131		ServerResponse: googleapi.ServerResponse{
49132			Header:         res.Header,
49133			HTTPStatusCode: res.StatusCode,
49134		},
49135	}
49136	target := &ret
49137	if err := gensupport.DecodeResponse(target, res); err != nil {
49138		return nil, err
49139	}
49140	return ret, nil
49141	// {
49142	//   "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).",
49143	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}:analyzeContent",
49144	//   "httpMethod": "POST",
49145	//   "id": "dialogflow.projects.locations.conversations.participants.analyzeContent",
49146	//   "parameterOrder": [
49147	//     "participant"
49148	//   ],
49149	//   "parameters": {
49150	//     "participant": {
49151	//       "description": "Required. The name of the participant this text comes from. Format: `projects//locations//conversations//participants/`.",
49152	//       "location": "path",
49153	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
49154	//       "required": true,
49155	//       "type": "string"
49156	//     }
49157	//   },
49158	//   "path": "v2beta1/{+participant}:analyzeContent",
49159	//   "request": {
49160	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentRequest"
49161	//   },
49162	//   "response": {
49163	//     "$ref": "GoogleCloudDialogflowV2beta1AnalyzeContentResponse"
49164	//   },
49165	//   "scopes": [
49166	//     "https://www.googleapis.com/auth/cloud-platform",
49167	//     "https://www.googleapis.com/auth/dialogflow"
49168	//   ]
49169	// }
49170
49171}
49172
49173// method id "dialogflow.projects.locations.conversations.participants.create":
49174
49175type ProjectsLocationsConversationsParticipantsCreateCall struct {
49176	s                                       *Service
49177	parentid                                string
49178	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
49179	urlParams_                              gensupport.URLParams
49180	ctx_                                    context.Context
49181	header_                                 http.Header
49182}
49183
49184// Create: Creates a new participant in a conversation.
49185//
49186// - parent: Resource identifier of the conversation adding the
49187//   participant. Format: `projects//locations//conversations/`.
49188func (r *ProjectsLocationsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsCreateCall {
49189	c := &ProjectsLocationsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49190	c.parentid = parentid
49191	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
49192	return c
49193}
49194
49195// Fields allows partial responses to be retrieved. See
49196// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49197// for more information.
49198func (c *ProjectsLocationsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsCreateCall {
49199	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49200	return c
49201}
49202
49203// Context sets the context to be used in this call's Do method. Any
49204// pending HTTP request will be aborted if the provided context is
49205// canceled.
49206func (c *ProjectsLocationsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsCreateCall {
49207	c.ctx_ = ctx
49208	return c
49209}
49210
49211// Header returns an http.Header that can be modified by the caller to
49212// add HTTP headers to the request.
49213func (c *ProjectsLocationsConversationsParticipantsCreateCall) Header() http.Header {
49214	if c.header_ == nil {
49215		c.header_ = make(http.Header)
49216	}
49217	return c.header_
49218}
49219
49220func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
49221	reqHeaders := make(http.Header)
49222	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
49223	for k, v := range c.header_ {
49224		reqHeaders[k] = v
49225	}
49226	reqHeaders.Set("User-Agent", c.s.userAgent())
49227	var body io.Reader = nil
49228	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
49229	if err != nil {
49230		return nil, err
49231	}
49232	reqHeaders.Set("Content-Type", "application/json")
49233	c.urlParams_.Set("alt", alt)
49234	c.urlParams_.Set("prettyPrint", "false")
49235	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
49236	urls += "?" + c.urlParams_.Encode()
49237	req, err := http.NewRequest("POST", urls, body)
49238	if err != nil {
49239		return nil, err
49240	}
49241	req.Header = reqHeaders
49242	googleapi.Expand(req.URL, map[string]string{
49243		"parent": c.parentid,
49244	})
49245	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49246}
49247
49248// Do executes the "dialogflow.projects.locations.conversations.participants.create" call.
49249// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
49250// be non-nil. Any non-2xx status code is an error. Response headers are
49251// in either
49252// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
49253// a response was returned at all) in error.(*googleapi.Error).Header.
49254// Use googleapi.IsNotModified to check whether the returned error was
49255// because http.StatusNotModified was returned.
49256func (c *ProjectsLocationsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
49257	gensupport.SetOptions(c.urlParams_, opts...)
49258	res, err := c.doRequest("json")
49259	if res != nil && res.StatusCode == http.StatusNotModified {
49260		if res.Body != nil {
49261			res.Body.Close()
49262		}
49263		return nil, &googleapi.Error{
49264			Code:   res.StatusCode,
49265			Header: res.Header,
49266		}
49267	}
49268	if err != nil {
49269		return nil, err
49270	}
49271	defer googleapi.CloseBody(res)
49272	if err := googleapi.CheckResponse(res); err != nil {
49273		return nil, err
49274	}
49275	ret := &GoogleCloudDialogflowV2beta1Participant{
49276		ServerResponse: googleapi.ServerResponse{
49277			Header:         res.Header,
49278			HTTPStatusCode: res.StatusCode,
49279		},
49280	}
49281	target := &ret
49282	if err := gensupport.DecodeResponse(target, res); err != nil {
49283		return nil, err
49284	}
49285	return ret, nil
49286	// {
49287	//   "description": "Creates a new participant in a conversation.",
49288	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants",
49289	//   "httpMethod": "POST",
49290	//   "id": "dialogflow.projects.locations.conversations.participants.create",
49291	//   "parameterOrder": [
49292	//     "parent"
49293	//   ],
49294	//   "parameters": {
49295	//     "parent": {
49296	//       "description": "Required. Resource identifier of the conversation adding the participant. Format: `projects//locations//conversations/`.",
49297	//       "location": "path",
49298	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
49299	//       "required": true,
49300	//       "type": "string"
49301	//     }
49302	//   },
49303	//   "path": "v2beta1/{+parent}/participants",
49304	//   "request": {
49305	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
49306	//   },
49307	//   "response": {
49308	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
49309	//   },
49310	//   "scopes": [
49311	//     "https://www.googleapis.com/auth/cloud-platform",
49312	//     "https://www.googleapis.com/auth/dialogflow"
49313	//   ]
49314	// }
49315
49316}
49317
49318// method id "dialogflow.projects.locations.conversations.participants.get":
49319
49320type ProjectsLocationsConversationsParticipantsGetCall struct {
49321	s            *Service
49322	name         string
49323	urlParams_   gensupport.URLParams
49324	ifNoneMatch_ string
49325	ctx_         context.Context
49326	header_      http.Header
49327}
49328
49329// Get: Retrieves a conversation participant.
49330//
49331// - name: The name of the participant. Format:
49332//   `projects//locations//conversations//participants/`.
49333func (r *ProjectsLocationsConversationsParticipantsService) Get(name string) *ProjectsLocationsConversationsParticipantsGetCall {
49334	c := &ProjectsLocationsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49335	c.name = name
49336	return c
49337}
49338
49339// Fields allows partial responses to be retrieved. See
49340// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49341// for more information.
49342func (c *ProjectsLocationsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsGetCall {
49343	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49344	return c
49345}
49346
49347// IfNoneMatch sets the optional parameter which makes the operation
49348// fail if the object's ETag matches the given value. This is useful for
49349// getting updates only after the object has changed since the last
49350// request. Use googleapi.IsNotModified to check whether the response
49351// error from Do is the result of In-None-Match.
49352func (c *ProjectsLocationsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsGetCall {
49353	c.ifNoneMatch_ = entityTag
49354	return c
49355}
49356
49357// Context sets the context to be used in this call's Do method. Any
49358// pending HTTP request will be aborted if the provided context is
49359// canceled.
49360func (c *ProjectsLocationsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsGetCall {
49361	c.ctx_ = ctx
49362	return c
49363}
49364
49365// Header returns an http.Header that can be modified by the caller to
49366// add HTTP headers to the request.
49367func (c *ProjectsLocationsConversationsParticipantsGetCall) Header() http.Header {
49368	if c.header_ == nil {
49369		c.header_ = make(http.Header)
49370	}
49371	return c.header_
49372}
49373
49374func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
49375	reqHeaders := make(http.Header)
49376	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
49377	for k, v := range c.header_ {
49378		reqHeaders[k] = v
49379	}
49380	reqHeaders.Set("User-Agent", c.s.userAgent())
49381	if c.ifNoneMatch_ != "" {
49382		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49383	}
49384	var body io.Reader = nil
49385	c.urlParams_.Set("alt", alt)
49386	c.urlParams_.Set("prettyPrint", "false")
49387	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
49388	urls += "?" + c.urlParams_.Encode()
49389	req, err := http.NewRequest("GET", urls, body)
49390	if err != nil {
49391		return nil, err
49392	}
49393	req.Header = reqHeaders
49394	googleapi.Expand(req.URL, map[string]string{
49395		"name": c.name,
49396	})
49397	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49398}
49399
49400// Do executes the "dialogflow.projects.locations.conversations.participants.get" call.
49401// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
49402// be non-nil. Any non-2xx status code is an error. Response headers are
49403// in either
49404// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
49405// a response was returned at all) in error.(*googleapi.Error).Header.
49406// Use googleapi.IsNotModified to check whether the returned error was
49407// because http.StatusNotModified was returned.
49408func (c *ProjectsLocationsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
49409	gensupport.SetOptions(c.urlParams_, opts...)
49410	res, err := c.doRequest("json")
49411	if res != nil && res.StatusCode == http.StatusNotModified {
49412		if res.Body != nil {
49413			res.Body.Close()
49414		}
49415		return nil, &googleapi.Error{
49416			Code:   res.StatusCode,
49417			Header: res.Header,
49418		}
49419	}
49420	if err != nil {
49421		return nil, err
49422	}
49423	defer googleapi.CloseBody(res)
49424	if err := googleapi.CheckResponse(res); err != nil {
49425		return nil, err
49426	}
49427	ret := &GoogleCloudDialogflowV2beta1Participant{
49428		ServerResponse: googleapi.ServerResponse{
49429			Header:         res.Header,
49430			HTTPStatusCode: res.StatusCode,
49431		},
49432	}
49433	target := &ret
49434	if err := gensupport.DecodeResponse(target, res); err != nil {
49435		return nil, err
49436	}
49437	return ret, nil
49438	// {
49439	//   "description": "Retrieves a conversation participant.",
49440	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}",
49441	//   "httpMethod": "GET",
49442	//   "id": "dialogflow.projects.locations.conversations.participants.get",
49443	//   "parameterOrder": [
49444	//     "name"
49445	//   ],
49446	//   "parameters": {
49447	//     "name": {
49448	//       "description": "Required. The name of the participant. Format: `projects//locations//conversations//participants/`.",
49449	//       "location": "path",
49450	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
49451	//       "required": true,
49452	//       "type": "string"
49453	//     }
49454	//   },
49455	//   "path": "v2beta1/{+name}",
49456	//   "response": {
49457	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
49458	//   },
49459	//   "scopes": [
49460	//     "https://www.googleapis.com/auth/cloud-platform",
49461	//     "https://www.googleapis.com/auth/dialogflow"
49462	//   ]
49463	// }
49464
49465}
49466
49467// method id "dialogflow.projects.locations.conversations.participants.list":
49468
49469type ProjectsLocationsConversationsParticipantsListCall struct {
49470	s            *Service
49471	parent       string
49472	urlParams_   gensupport.URLParams
49473	ifNoneMatch_ string
49474	ctx_         context.Context
49475	header_      http.Header
49476}
49477
49478// List: Returns the list of all participants in the specified
49479// conversation.
49480//
49481// - parent: The conversation to list all participants from. Format:
49482//   `projects//locations//conversations/`.
49483func (r *ProjectsLocationsConversationsParticipantsService) List(parent string) *ProjectsLocationsConversationsParticipantsListCall {
49484	c := &ProjectsLocationsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49485	c.parent = parent
49486	return c
49487}
49488
49489// PageSize sets the optional parameter "pageSize": The maximum number
49490// of items to return in a single page. By default 100 and at most 1000.
49491func (c *ProjectsLocationsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsParticipantsListCall {
49492	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
49493	return c
49494}
49495
49496// PageToken sets the optional parameter "pageToken": The
49497// next_page_token value returned from a previous list request.
49498func (c *ProjectsLocationsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsParticipantsListCall {
49499	c.urlParams_.Set("pageToken", pageToken)
49500	return c
49501}
49502
49503// Fields allows partial responses to be retrieved. See
49504// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49505// for more information.
49506func (c *ProjectsLocationsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsListCall {
49507	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49508	return c
49509}
49510
49511// IfNoneMatch sets the optional parameter which makes the operation
49512// fail if the object's ETag matches the given value. This is useful for
49513// getting updates only after the object has changed since the last
49514// request. Use googleapi.IsNotModified to check whether the response
49515// error from Do is the result of In-None-Match.
49516func (c *ProjectsLocationsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsListCall {
49517	c.ifNoneMatch_ = entityTag
49518	return c
49519}
49520
49521// Context sets the context to be used in this call's Do method. Any
49522// pending HTTP request will be aborted if the provided context is
49523// canceled.
49524func (c *ProjectsLocationsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsListCall {
49525	c.ctx_ = ctx
49526	return c
49527}
49528
49529// Header returns an http.Header that can be modified by the caller to
49530// add HTTP headers to the request.
49531func (c *ProjectsLocationsConversationsParticipantsListCall) Header() http.Header {
49532	if c.header_ == nil {
49533		c.header_ = make(http.Header)
49534	}
49535	return c.header_
49536}
49537
49538func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
49539	reqHeaders := make(http.Header)
49540	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
49541	for k, v := range c.header_ {
49542		reqHeaders[k] = v
49543	}
49544	reqHeaders.Set("User-Agent", c.s.userAgent())
49545	if c.ifNoneMatch_ != "" {
49546		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49547	}
49548	var body io.Reader = nil
49549	c.urlParams_.Set("alt", alt)
49550	c.urlParams_.Set("prettyPrint", "false")
49551	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
49552	urls += "?" + c.urlParams_.Encode()
49553	req, err := http.NewRequest("GET", urls, body)
49554	if err != nil {
49555		return nil, err
49556	}
49557	req.Header = reqHeaders
49558	googleapi.Expand(req.URL, map[string]string{
49559		"parent": c.parent,
49560	})
49561	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49562}
49563
49564// Do executes the "dialogflow.projects.locations.conversations.participants.list" call.
49565// Exactly one of *GoogleCloudDialogflowV2beta1ListParticipantsResponse
49566// or error will be non-nil. Any non-2xx status code is an error.
49567// Response headers are in either
49568// *GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.H
49569// eader or (if a response was returned at all) in
49570// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49571// whether the returned error was because http.StatusNotModified was
49572// returned.
49573func (c *ProjectsLocationsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
49574	gensupport.SetOptions(c.urlParams_, opts...)
49575	res, err := c.doRequest("json")
49576	if res != nil && res.StatusCode == http.StatusNotModified {
49577		if res.Body != nil {
49578			res.Body.Close()
49579		}
49580		return nil, &googleapi.Error{
49581			Code:   res.StatusCode,
49582			Header: res.Header,
49583		}
49584	}
49585	if err != nil {
49586		return nil, err
49587	}
49588	defer googleapi.CloseBody(res)
49589	if err := googleapi.CheckResponse(res); err != nil {
49590		return nil, err
49591	}
49592	ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
49593		ServerResponse: googleapi.ServerResponse{
49594			Header:         res.Header,
49595			HTTPStatusCode: res.StatusCode,
49596		},
49597	}
49598	target := &ret
49599	if err := gensupport.DecodeResponse(target, res); err != nil {
49600		return nil, err
49601	}
49602	return ret, nil
49603	// {
49604	//   "description": "Returns the list of all participants in the specified conversation.",
49605	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants",
49606	//   "httpMethod": "GET",
49607	//   "id": "dialogflow.projects.locations.conversations.participants.list",
49608	//   "parameterOrder": [
49609	//     "parent"
49610	//   ],
49611	//   "parameters": {
49612	//     "pageSize": {
49613	//       "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
49614	//       "format": "int32",
49615	//       "location": "query",
49616	//       "type": "integer"
49617	//     },
49618	//     "pageToken": {
49619	//       "description": "Optional. The next_page_token value returned from a previous list request.",
49620	//       "location": "query",
49621	//       "type": "string"
49622	//     },
49623	//     "parent": {
49624	//       "description": "Required. The conversation to list all participants from. Format: `projects//locations//conversations/`.",
49625	//       "location": "path",
49626	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$",
49627	//       "required": true,
49628	//       "type": "string"
49629	//     }
49630	//   },
49631	//   "path": "v2beta1/{+parent}/participants",
49632	//   "response": {
49633	//     "$ref": "GoogleCloudDialogflowV2beta1ListParticipantsResponse"
49634	//   },
49635	//   "scopes": [
49636	//     "https://www.googleapis.com/auth/cloud-platform",
49637	//     "https://www.googleapis.com/auth/dialogflow"
49638	//   ]
49639	// }
49640
49641}
49642
49643// Pages invokes f for each page of results.
49644// A non-nil error returned from f will halt the iteration.
49645// The provided context supersedes any context provided to the Context method.
49646func (c *ProjectsLocationsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
49647	c.ctx_ = ctx
49648	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
49649	for {
49650		x, err := c.Do()
49651		if err != nil {
49652			return err
49653		}
49654		if err := f(x); err != nil {
49655			return err
49656		}
49657		if x.NextPageToken == "" {
49658			return nil
49659		}
49660		c.PageToken(x.NextPageToken)
49661	}
49662}
49663
49664// method id "dialogflow.projects.locations.conversations.participants.patch":
49665
49666type ProjectsLocationsConversationsParticipantsPatchCall struct {
49667	s                                       *Service
49668	nameid                                  string
49669	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
49670	urlParams_                              gensupport.URLParams
49671	ctx_                                    context.Context
49672	header_                                 http.Header
49673}
49674
49675// Patch: Updates the specified participant.
49676//
49677// - name: Optional. The unique identifier of this participant. Format:
49678//   `projects//locations//conversations//participants/`.
49679func (r *ProjectsLocationsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsPatchCall {
49680	c := &ProjectsLocationsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49681	c.nameid = nameid
49682	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
49683	return c
49684}
49685
49686// UpdateMask sets the optional parameter "updateMask": Required. The
49687// mask to specify which fields to update.
49688func (c *ProjectsLocationsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsParticipantsPatchCall {
49689	c.urlParams_.Set("updateMask", updateMask)
49690	return c
49691}
49692
49693// Fields allows partial responses to be retrieved. See
49694// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49695// for more information.
49696func (c *ProjectsLocationsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsPatchCall {
49697	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49698	return c
49699}
49700
49701// Context sets the context to be used in this call's Do method. Any
49702// pending HTTP request will be aborted if the provided context is
49703// canceled.
49704func (c *ProjectsLocationsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsPatchCall {
49705	c.ctx_ = ctx
49706	return c
49707}
49708
49709// Header returns an http.Header that can be modified by the caller to
49710// add HTTP headers to the request.
49711func (c *ProjectsLocationsConversationsParticipantsPatchCall) Header() http.Header {
49712	if c.header_ == nil {
49713		c.header_ = make(http.Header)
49714	}
49715	return c.header_
49716}
49717
49718func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
49719	reqHeaders := make(http.Header)
49720	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
49721	for k, v := range c.header_ {
49722		reqHeaders[k] = v
49723	}
49724	reqHeaders.Set("User-Agent", c.s.userAgent())
49725	var body io.Reader = nil
49726	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
49727	if err != nil {
49728		return nil, err
49729	}
49730	reqHeaders.Set("Content-Type", "application/json")
49731	c.urlParams_.Set("alt", alt)
49732	c.urlParams_.Set("prettyPrint", "false")
49733	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
49734	urls += "?" + c.urlParams_.Encode()
49735	req, err := http.NewRequest("PATCH", urls, body)
49736	if err != nil {
49737		return nil, err
49738	}
49739	req.Header = reqHeaders
49740	googleapi.Expand(req.URL, map[string]string{
49741		"name": c.nameid,
49742	})
49743	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49744}
49745
49746// Do executes the "dialogflow.projects.locations.conversations.participants.patch" call.
49747// Exactly one of *GoogleCloudDialogflowV2beta1Participant or error will
49748// be non-nil. Any non-2xx status code is an error. Response headers are
49749// in either
49750// *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if
49751// a response was returned at all) in error.(*googleapi.Error).Header.
49752// Use googleapi.IsNotModified to check whether the returned error was
49753// because http.StatusNotModified was returned.
49754func (c *ProjectsLocationsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
49755	gensupport.SetOptions(c.urlParams_, opts...)
49756	res, err := c.doRequest("json")
49757	if res != nil && res.StatusCode == http.StatusNotModified {
49758		if res.Body != nil {
49759			res.Body.Close()
49760		}
49761		return nil, &googleapi.Error{
49762			Code:   res.StatusCode,
49763			Header: res.Header,
49764		}
49765	}
49766	if err != nil {
49767		return nil, err
49768	}
49769	defer googleapi.CloseBody(res)
49770	if err := googleapi.CheckResponse(res); err != nil {
49771		return nil, err
49772	}
49773	ret := &GoogleCloudDialogflowV2beta1Participant{
49774		ServerResponse: googleapi.ServerResponse{
49775			Header:         res.Header,
49776			HTTPStatusCode: res.StatusCode,
49777		},
49778	}
49779	target := &ret
49780	if err := gensupport.DecodeResponse(target, res); err != nil {
49781		return nil, err
49782	}
49783	return ret, nil
49784	// {
49785	//   "description": "Updates the specified participant.",
49786	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}",
49787	//   "httpMethod": "PATCH",
49788	//   "id": "dialogflow.projects.locations.conversations.participants.patch",
49789	//   "parameterOrder": [
49790	//     "name"
49791	//   ],
49792	//   "parameters": {
49793	//     "name": {
49794	//       "description": "Optional. The unique identifier of this participant. Format: `projects//locations//conversations//participants/`.",
49795	//       "location": "path",
49796	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
49797	//       "required": true,
49798	//       "type": "string"
49799	//     },
49800	//     "updateMask": {
49801	//       "description": "Required. The mask to specify which fields to update.",
49802	//       "format": "google-fieldmask",
49803	//       "location": "query",
49804	//       "type": "string"
49805	//     }
49806	//   },
49807	//   "path": "v2beta1/{+name}",
49808	//   "request": {
49809	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
49810	//   },
49811	//   "response": {
49812	//     "$ref": "GoogleCloudDialogflowV2beta1Participant"
49813	//   },
49814	//   "scopes": [
49815	//     "https://www.googleapis.com/auth/cloud-platform",
49816	//     "https://www.googleapis.com/auth/dialogflow"
49817	//   ]
49818	// }
49819
49820}
49821
49822// method id "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles":
49823
49824type ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
49825	s                                                  *Service
49826	parent                                             string
49827	googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
49828	urlParams_                                         gensupport.URLParams
49829	ctx_                                               context.Context
49830	header_                                            http.Header
49831}
49832
49833// SuggestArticles: Gets suggested articles for a participant based on
49834// specific historical messages. Note that ListSuggestions will only
49835// list the auto-generated suggestions, while CompileSuggestion will try
49836// to compile suggestion based on the provided conversation context in
49837// the real time.
49838//
49839// - parent: The name of the participant to fetch suggestion for.
49840//   Format: `projects//locations//conversations//participants/`.
49841func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
49842	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49843	c.parent = parent
49844	c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
49845	return c
49846}
49847
49848// Fields allows partial responses to be retrieved. See
49849// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49850// for more information.
49851func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
49852	c.urlParams_.Set("fields", googleapi.CombineFields(s))
49853	return c
49854}
49855
49856// Context sets the context to be used in this call's Do method. Any
49857// pending HTTP request will be aborted if the provided context is
49858// canceled.
49859func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
49860	c.ctx_ = ctx
49861	return c
49862}
49863
49864// Header returns an http.Header that can be modified by the caller to
49865// add HTTP headers to the request.
49866func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
49867	if c.header_ == nil {
49868		c.header_ = make(http.Header)
49869	}
49870	return c.header_
49871}
49872
49873func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
49874	reqHeaders := make(http.Header)
49875	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
49876	for k, v := range c.header_ {
49877		reqHeaders[k] = v
49878	}
49879	reqHeaders.Set("User-Agent", c.s.userAgent())
49880	var body io.Reader = nil
49881	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
49882	if err != nil {
49883		return nil, err
49884	}
49885	reqHeaders.Set("Content-Type", "application/json")
49886	c.urlParams_.Set("alt", alt)
49887	c.urlParams_.Set("prettyPrint", "false")
49888	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
49889	urls += "?" + c.urlParams_.Encode()
49890	req, err := http.NewRequest("POST", urls, body)
49891	if err != nil {
49892		return nil, err
49893	}
49894	req.Header = reqHeaders
49895	googleapi.Expand(req.URL, map[string]string{
49896		"parent": c.parent,
49897	})
49898	return gensupport.SendRequest(c.ctx_, c.s.client, req)
49899}
49900
49901// Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles" call.
49902// Exactly one of *GoogleCloudDialogflowV2beta1SuggestArticlesResponse
49903// or error will be non-nil. Any non-2xx status code is an error.
49904// Response headers are in either
49905// *GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.He
49906// ader or (if a response was returned at all) in
49907// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
49908// whether the returned error was because http.StatusNotModified was
49909// returned.
49910func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
49911	gensupport.SetOptions(c.urlParams_, opts...)
49912	res, err := c.doRequest("json")
49913	if res != nil && res.StatusCode == http.StatusNotModified {
49914		if res.Body != nil {
49915			res.Body.Close()
49916		}
49917		return nil, &googleapi.Error{
49918			Code:   res.StatusCode,
49919			Header: res.Header,
49920		}
49921	}
49922	if err != nil {
49923		return nil, err
49924	}
49925	defer googleapi.CloseBody(res)
49926	if err := googleapi.CheckResponse(res); err != nil {
49927		return nil, err
49928	}
49929	ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
49930		ServerResponse: googleapi.ServerResponse{
49931			Header:         res.Header,
49932			HTTPStatusCode: res.StatusCode,
49933		},
49934	}
49935	target := &ret
49936	if err := gensupport.DecodeResponse(target, res); err != nil {
49937		return nil, err
49938	}
49939	return ret, nil
49940	// {
49941	//   "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.",
49942	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestArticles",
49943	//   "httpMethod": "POST",
49944	//   "id": "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles",
49945	//   "parameterOrder": [
49946	//     "parent"
49947	//   ],
49948	//   "parameters": {
49949	//     "parent": {
49950	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
49951	//       "location": "path",
49952	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
49953	//       "required": true,
49954	//       "type": "string"
49955	//     }
49956	//   },
49957	//   "path": "v2beta1/{+parent}/suggestions:suggestArticles",
49958	//   "request": {
49959	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesRequest"
49960	//   },
49961	//   "response": {
49962	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestArticlesResponse"
49963	//   },
49964	//   "scopes": [
49965	//     "https://www.googleapis.com/auth/cloud-platform",
49966	//     "https://www.googleapis.com/auth/dialogflow"
49967	//   ]
49968	// }
49969
49970}
49971
49972// method id "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers":
49973
49974type ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
49975	s                                                    *Service
49976	parent                                               string
49977	googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
49978	urlParams_                                           gensupport.URLParams
49979	ctx_                                                 context.Context
49980	header_                                              http.Header
49981}
49982
49983// SuggestFaqAnswers: Gets suggested faq answers for a participant based
49984// on specific historical messages.
49985//
49986// - parent: The name of the participant to fetch suggestion for.
49987//   Format: `projects//locations//conversations//participants/`.
49988func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
49989	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49990	c.parent = parent
49991	c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
49992	return c
49993}
49994
49995// Fields allows partial responses to be retrieved. See
49996// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
49997// for more information.
49998func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
49999	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50000	return c
50001}
50002
50003// Context sets the context to be used in this call's Do method. Any
50004// pending HTTP request will be aborted if the provided context is
50005// canceled.
50006func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
50007	c.ctx_ = ctx
50008	return c
50009}
50010
50011// Header returns an http.Header that can be modified by the caller to
50012// add HTTP headers to the request.
50013func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
50014	if c.header_ == nil {
50015		c.header_ = make(http.Header)
50016	}
50017	return c.header_
50018}
50019
50020func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
50021	reqHeaders := make(http.Header)
50022	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
50023	for k, v := range c.header_ {
50024		reqHeaders[k] = v
50025	}
50026	reqHeaders.Set("User-Agent", c.s.userAgent())
50027	var body io.Reader = nil
50028	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
50029	if err != nil {
50030		return nil, err
50031	}
50032	reqHeaders.Set("Content-Type", "application/json")
50033	c.urlParams_.Set("alt", alt)
50034	c.urlParams_.Set("prettyPrint", "false")
50035	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
50036	urls += "?" + c.urlParams_.Encode()
50037	req, err := http.NewRequest("POST", urls, body)
50038	if err != nil {
50039		return nil, err
50040	}
50041	req.Header = reqHeaders
50042	googleapi.Expand(req.URL, map[string]string{
50043		"parent": c.parent,
50044	})
50045	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50046}
50047
50048// Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers" call.
50049// Exactly one of *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
50050// or error will be non-nil. Any non-2xx status code is an error.
50051// Response headers are in either
50052// *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.
50053// Header or (if a response was returned at all) in
50054// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50055// whether the returned error was because http.StatusNotModified was
50056// returned.
50057func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
50058	gensupport.SetOptions(c.urlParams_, opts...)
50059	res, err := c.doRequest("json")
50060	if res != nil && res.StatusCode == http.StatusNotModified {
50061		if res.Body != nil {
50062			res.Body.Close()
50063		}
50064		return nil, &googleapi.Error{
50065			Code:   res.StatusCode,
50066			Header: res.Header,
50067		}
50068	}
50069	if err != nil {
50070		return nil, err
50071	}
50072	defer googleapi.CloseBody(res)
50073	if err := googleapi.CheckResponse(res); err != nil {
50074		return nil, err
50075	}
50076	ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
50077		ServerResponse: googleapi.ServerResponse{
50078			Header:         res.Header,
50079			HTTPStatusCode: res.StatusCode,
50080		},
50081	}
50082	target := &ret
50083	if err := gensupport.DecodeResponse(target, res); err != nil {
50084		return nil, err
50085	}
50086	return ret, nil
50087	// {
50088	//   "description": "Gets suggested faq answers for a participant based on specific historical messages.",
50089	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestFaqAnswers",
50090	//   "httpMethod": "POST",
50091	//   "id": "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers",
50092	//   "parameterOrder": [
50093	//     "parent"
50094	//   ],
50095	//   "parameters": {
50096	//     "parent": {
50097	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
50098	//       "location": "path",
50099	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
50100	//       "required": true,
50101	//       "type": "string"
50102	//     }
50103	//   },
50104	//   "path": "v2beta1/{+parent}/suggestions:suggestFaqAnswers",
50105	//   "request": {
50106	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest"
50107	//   },
50108	//   "response": {
50109	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse"
50110	//   },
50111	//   "scopes": [
50112	//     "https://www.googleapis.com/auth/cloud-platform",
50113	//     "https://www.googleapis.com/auth/dialogflow"
50114	//   ]
50115	// }
50116
50117}
50118
50119// method id "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies":
50120
50121type ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
50122	s                                                      *Service
50123	parent                                                 string
50124	googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
50125	urlParams_                                             gensupport.URLParams
50126	ctx_                                                   context.Context
50127	header_                                                http.Header
50128}
50129
50130// SuggestSmartReplies: Gets smart replies for a participant based on
50131// specific historical messages.
50132//
50133// - parent: The name of the participant to fetch suggestion for.
50134//   Format: `projects//locations//conversations//participants/`.
50135func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
50136	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50137	c.parent = parent
50138	c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
50139	return c
50140}
50141
50142// Fields allows partial responses to be retrieved. See
50143// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50144// for more information.
50145func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
50146	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50147	return c
50148}
50149
50150// Context sets the context to be used in this call's Do method. Any
50151// pending HTTP request will be aborted if the provided context is
50152// canceled.
50153func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
50154	c.ctx_ = ctx
50155	return c
50156}
50157
50158// Header returns an http.Header that can be modified by the caller to
50159// add HTTP headers to the request.
50160func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
50161	if c.header_ == nil {
50162		c.header_ = make(http.Header)
50163	}
50164	return c.header_
50165}
50166
50167func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
50168	reqHeaders := make(http.Header)
50169	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
50170	for k, v := range c.header_ {
50171		reqHeaders[k] = v
50172	}
50173	reqHeaders.Set("User-Agent", c.s.userAgent())
50174	var body io.Reader = nil
50175	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
50176	if err != nil {
50177		return nil, err
50178	}
50179	reqHeaders.Set("Content-Type", "application/json")
50180	c.urlParams_.Set("alt", alt)
50181	c.urlParams_.Set("prettyPrint", "false")
50182	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
50183	urls += "?" + c.urlParams_.Encode()
50184	req, err := http.NewRequest("POST", urls, body)
50185	if err != nil {
50186		return nil, err
50187	}
50188	req.Header = reqHeaders
50189	googleapi.Expand(req.URL, map[string]string{
50190		"parent": c.parent,
50191	})
50192	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50193}
50194
50195// Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies" call.
50196// Exactly one of
50197// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse or error
50198// will be non-nil. Any non-2xx status code is an error. Response
50199// headers are in either
50200// *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.ServerRespons
50201// e.Header or (if a response was returned at all) in
50202// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50203// whether the returned error was because http.StatusNotModified was
50204// returned.
50205func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
50206	gensupport.SetOptions(c.urlParams_, opts...)
50207	res, err := c.doRequest("json")
50208	if res != nil && res.StatusCode == http.StatusNotModified {
50209		if res.Body != nil {
50210			res.Body.Close()
50211		}
50212		return nil, &googleapi.Error{
50213			Code:   res.StatusCode,
50214			Header: res.Header,
50215		}
50216	}
50217	if err != nil {
50218		return nil, err
50219	}
50220	defer googleapi.CloseBody(res)
50221	if err := googleapi.CheckResponse(res); err != nil {
50222		return nil, err
50223	}
50224	ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
50225		ServerResponse: googleapi.ServerResponse{
50226			Header:         res.Header,
50227			HTTPStatusCode: res.StatusCode,
50228		},
50229	}
50230	target := &ret
50231	if err := gensupport.DecodeResponse(target, res); err != nil {
50232		return nil, err
50233	}
50234	return ret, nil
50235	// {
50236	//   "description": "Gets smart replies for a participant based on specific historical messages.",
50237	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/participants/{participantsId}/suggestions:suggestSmartReplies",
50238	//   "httpMethod": "POST",
50239	//   "id": "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies",
50240	//   "parameterOrder": [
50241	//     "parent"
50242	//   ],
50243	//   "parameters": {
50244	//     "parent": {
50245	//       "description": "Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`.",
50246	//       "location": "path",
50247	//       "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/participants/[^/]+$",
50248	//       "required": true,
50249	//       "type": "string"
50250	//     }
50251	//   },
50252	//   "path": "v2beta1/{+parent}/suggestions:suggestSmartReplies",
50253	//   "request": {
50254	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest"
50255	//   },
50256	//   "response": {
50257	//     "$ref": "GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse"
50258	//   },
50259	//   "scopes": [
50260	//     "https://www.googleapis.com/auth/cloud-platform",
50261	//     "https://www.googleapis.com/auth/dialogflow"
50262	//   ]
50263	// }
50264
50265}
50266
50267// method id "dialogflow.projects.locations.knowledgeBases.create":
50268
50269type ProjectsLocationsKnowledgeBasesCreateCall struct {
50270	s                                         *Service
50271	parent                                    string
50272	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
50273	urlParams_                                gensupport.URLParams
50274	ctx_                                      context.Context
50275	header_                                   http.Header
50276}
50277
50278// Create: Creates a knowledge base. Note: The
50279// `projects.agent.knowledgeBases` resource is deprecated; only use
50280// `projects.knowledgeBases`.
50281//
50282// - parent: The project to create a knowledge base for. Format:
50283//   `projects//locations/`.
50284func (r *ProjectsLocationsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesCreateCall {
50285	c := &ProjectsLocationsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50286	c.parent = parent
50287	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
50288	return c
50289}
50290
50291// Fields allows partial responses to be retrieved. See
50292// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50293// for more information.
50294func (c *ProjectsLocationsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesCreateCall {
50295	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50296	return c
50297}
50298
50299// Context sets the context to be used in this call's Do method. Any
50300// pending HTTP request will be aborted if the provided context is
50301// canceled.
50302func (c *ProjectsLocationsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesCreateCall {
50303	c.ctx_ = ctx
50304	return c
50305}
50306
50307// Header returns an http.Header that can be modified by the caller to
50308// add HTTP headers to the request.
50309func (c *ProjectsLocationsKnowledgeBasesCreateCall) Header() http.Header {
50310	if c.header_ == nil {
50311		c.header_ = make(http.Header)
50312	}
50313	return c.header_
50314}
50315
50316func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
50317	reqHeaders := make(http.Header)
50318	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
50319	for k, v := range c.header_ {
50320		reqHeaders[k] = v
50321	}
50322	reqHeaders.Set("User-Agent", c.s.userAgent())
50323	var body io.Reader = nil
50324	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
50325	if err != nil {
50326		return nil, err
50327	}
50328	reqHeaders.Set("Content-Type", "application/json")
50329	c.urlParams_.Set("alt", alt)
50330	c.urlParams_.Set("prettyPrint", "false")
50331	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
50332	urls += "?" + c.urlParams_.Encode()
50333	req, err := http.NewRequest("POST", urls, body)
50334	if err != nil {
50335		return nil, err
50336	}
50337	req.Header = reqHeaders
50338	googleapi.Expand(req.URL, map[string]string{
50339		"parent": c.parent,
50340	})
50341	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50342}
50343
50344// Do executes the "dialogflow.projects.locations.knowledgeBases.create" call.
50345// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
50346// will be non-nil. Any non-2xx status code is an error. Response
50347// headers are in either
50348// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
50349// (if a response was returned at all) in
50350// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50351// whether the returned error was because http.StatusNotModified was
50352// returned.
50353func (c *ProjectsLocationsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
50354	gensupport.SetOptions(c.urlParams_, opts...)
50355	res, err := c.doRequest("json")
50356	if res != nil && res.StatusCode == http.StatusNotModified {
50357		if res.Body != nil {
50358			res.Body.Close()
50359		}
50360		return nil, &googleapi.Error{
50361			Code:   res.StatusCode,
50362			Header: res.Header,
50363		}
50364	}
50365	if err != nil {
50366		return nil, err
50367	}
50368	defer googleapi.CloseBody(res)
50369	if err := googleapi.CheckResponse(res); err != nil {
50370		return nil, err
50371	}
50372	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
50373		ServerResponse: googleapi.ServerResponse{
50374			Header:         res.Header,
50375			HTTPStatusCode: res.StatusCode,
50376		},
50377	}
50378	target := &ret
50379	if err := gensupport.DecodeResponse(target, res); err != nil {
50380		return nil, err
50381	}
50382	return ret, nil
50383	// {
50384	//   "description": "Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
50385	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases",
50386	//   "httpMethod": "POST",
50387	//   "id": "dialogflow.projects.locations.knowledgeBases.create",
50388	//   "parameterOrder": [
50389	//     "parent"
50390	//   ],
50391	//   "parameters": {
50392	//     "parent": {
50393	//       "description": "Required. The project to create a knowledge base for. Format: `projects//locations/`.",
50394	//       "location": "path",
50395	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
50396	//       "required": true,
50397	//       "type": "string"
50398	//     }
50399	//   },
50400	//   "path": "v2beta1/{+parent}/knowledgeBases",
50401	//   "request": {
50402	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
50403	//   },
50404	//   "response": {
50405	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
50406	//   },
50407	//   "scopes": [
50408	//     "https://www.googleapis.com/auth/cloud-platform",
50409	//     "https://www.googleapis.com/auth/dialogflow"
50410	//   ]
50411	// }
50412
50413}
50414
50415// method id "dialogflow.projects.locations.knowledgeBases.delete":
50416
50417type ProjectsLocationsKnowledgeBasesDeleteCall struct {
50418	s          *Service
50419	name       string
50420	urlParams_ gensupport.URLParams
50421	ctx_       context.Context
50422	header_    http.Header
50423}
50424
50425// Delete: Deletes the specified knowledge base. Note: The
50426// `projects.agent.knowledgeBases` resource is deprecated; only use
50427// `projects.knowledgeBases`.
50428//
50429// - name: The name of the knowledge base to delete. Format:
50430//   `projects//locations//knowledgeBases/`.
50431func (r *ProjectsLocationsKnowledgeBasesService) Delete(name string) *ProjectsLocationsKnowledgeBasesDeleteCall {
50432	c := &ProjectsLocationsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50433	c.name = name
50434	return c
50435}
50436
50437// Force sets the optional parameter "force": Force deletes the
50438// knowledge base. When set to true, any documents in the knowledge base
50439// are also deleted.
50440func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsLocationsKnowledgeBasesDeleteCall {
50441	c.urlParams_.Set("force", fmt.Sprint(force))
50442	return c
50443}
50444
50445// Fields allows partial responses to be retrieved. See
50446// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50447// for more information.
50448func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDeleteCall {
50449	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50450	return c
50451}
50452
50453// Context sets the context to be used in this call's Do method. Any
50454// pending HTTP request will be aborted if the provided context is
50455// canceled.
50456func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDeleteCall {
50457	c.ctx_ = ctx
50458	return c
50459}
50460
50461// Header returns an http.Header that can be modified by the caller to
50462// add HTTP headers to the request.
50463func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Header() http.Header {
50464	if c.header_ == nil {
50465		c.header_ = make(http.Header)
50466	}
50467	return c.header_
50468}
50469
50470func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
50471	reqHeaders := make(http.Header)
50472	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
50473	for k, v := range c.header_ {
50474		reqHeaders[k] = v
50475	}
50476	reqHeaders.Set("User-Agent", c.s.userAgent())
50477	var body io.Reader = nil
50478	c.urlParams_.Set("alt", alt)
50479	c.urlParams_.Set("prettyPrint", "false")
50480	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
50481	urls += "?" + c.urlParams_.Encode()
50482	req, err := http.NewRequest("DELETE", urls, body)
50483	if err != nil {
50484		return nil, err
50485	}
50486	req.Header = reqHeaders
50487	googleapi.Expand(req.URL, map[string]string{
50488		"name": c.name,
50489	})
50490	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50491}
50492
50493// Do executes the "dialogflow.projects.locations.knowledgeBases.delete" call.
50494// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
50495// non-2xx status code is an error. Response headers are in either
50496// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
50497// returned at all) in error.(*googleapi.Error).Header. Use
50498// googleapi.IsNotModified to check whether the returned error was
50499// because http.StatusNotModified was returned.
50500func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
50501	gensupport.SetOptions(c.urlParams_, opts...)
50502	res, err := c.doRequest("json")
50503	if res != nil && res.StatusCode == http.StatusNotModified {
50504		if res.Body != nil {
50505			res.Body.Close()
50506		}
50507		return nil, &googleapi.Error{
50508			Code:   res.StatusCode,
50509			Header: res.Header,
50510		}
50511	}
50512	if err != nil {
50513		return nil, err
50514	}
50515	defer googleapi.CloseBody(res)
50516	if err := googleapi.CheckResponse(res); err != nil {
50517		return nil, err
50518	}
50519	ret := &GoogleProtobufEmpty{
50520		ServerResponse: googleapi.ServerResponse{
50521			Header:         res.Header,
50522			HTTPStatusCode: res.StatusCode,
50523		},
50524	}
50525	target := &ret
50526	if err := gensupport.DecodeResponse(target, res); err != nil {
50527		return nil, err
50528	}
50529	return ret, nil
50530	// {
50531	//   "description": "Deletes the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
50532	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}",
50533	//   "httpMethod": "DELETE",
50534	//   "id": "dialogflow.projects.locations.knowledgeBases.delete",
50535	//   "parameterOrder": [
50536	//     "name"
50537	//   ],
50538	//   "parameters": {
50539	//     "force": {
50540	//       "description": "Optional. Force deletes the knowledge base. When set to true, any documents in the knowledge base are also deleted.",
50541	//       "location": "query",
50542	//       "type": "boolean"
50543	//     },
50544	//     "name": {
50545	//       "description": "Required. The name of the knowledge base to delete. Format: `projects//locations//knowledgeBases/`.",
50546	//       "location": "path",
50547	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
50548	//       "required": true,
50549	//       "type": "string"
50550	//     }
50551	//   },
50552	//   "path": "v2beta1/{+name}",
50553	//   "response": {
50554	//     "$ref": "GoogleProtobufEmpty"
50555	//   },
50556	//   "scopes": [
50557	//     "https://www.googleapis.com/auth/cloud-platform",
50558	//     "https://www.googleapis.com/auth/dialogflow"
50559	//   ]
50560	// }
50561
50562}
50563
50564// method id "dialogflow.projects.locations.knowledgeBases.get":
50565
50566type ProjectsLocationsKnowledgeBasesGetCall struct {
50567	s            *Service
50568	name         string
50569	urlParams_   gensupport.URLParams
50570	ifNoneMatch_ string
50571	ctx_         context.Context
50572	header_      http.Header
50573}
50574
50575// Get: Retrieves the specified knowledge base. Note: The
50576// `projects.agent.knowledgeBases` resource is deprecated; only use
50577// `projects.knowledgeBases`.
50578//
50579// - name: The name of the knowledge base to retrieve. Format
50580//   `projects//locations//knowledgeBases/`.
50581func (r *ProjectsLocationsKnowledgeBasesService) Get(name string) *ProjectsLocationsKnowledgeBasesGetCall {
50582	c := &ProjectsLocationsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50583	c.name = name
50584	return c
50585}
50586
50587// Fields allows partial responses to be retrieved. See
50588// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50589// for more information.
50590func (c *ProjectsLocationsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesGetCall {
50591	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50592	return c
50593}
50594
50595// IfNoneMatch sets the optional parameter which makes the operation
50596// fail if the object's ETag matches the given value. This is useful for
50597// getting updates only after the object has changed since the last
50598// request. Use googleapi.IsNotModified to check whether the response
50599// error from Do is the result of In-None-Match.
50600func (c *ProjectsLocationsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesGetCall {
50601	c.ifNoneMatch_ = entityTag
50602	return c
50603}
50604
50605// Context sets the context to be used in this call's Do method. Any
50606// pending HTTP request will be aborted if the provided context is
50607// canceled.
50608func (c *ProjectsLocationsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesGetCall {
50609	c.ctx_ = ctx
50610	return c
50611}
50612
50613// Header returns an http.Header that can be modified by the caller to
50614// add HTTP headers to the request.
50615func (c *ProjectsLocationsKnowledgeBasesGetCall) Header() http.Header {
50616	if c.header_ == nil {
50617		c.header_ = make(http.Header)
50618	}
50619	return c.header_
50620}
50621
50622func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
50623	reqHeaders := make(http.Header)
50624	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
50625	for k, v := range c.header_ {
50626		reqHeaders[k] = v
50627	}
50628	reqHeaders.Set("User-Agent", c.s.userAgent())
50629	if c.ifNoneMatch_ != "" {
50630		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50631	}
50632	var body io.Reader = nil
50633	c.urlParams_.Set("alt", alt)
50634	c.urlParams_.Set("prettyPrint", "false")
50635	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
50636	urls += "?" + c.urlParams_.Encode()
50637	req, err := http.NewRequest("GET", urls, body)
50638	if err != nil {
50639		return nil, err
50640	}
50641	req.Header = reqHeaders
50642	googleapi.Expand(req.URL, map[string]string{
50643		"name": c.name,
50644	})
50645	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50646}
50647
50648// Do executes the "dialogflow.projects.locations.knowledgeBases.get" call.
50649// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
50650// will be non-nil. Any non-2xx status code is an error. Response
50651// headers are in either
50652// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
50653// (if a response was returned at all) in
50654// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50655// whether the returned error was because http.StatusNotModified was
50656// returned.
50657func (c *ProjectsLocationsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
50658	gensupport.SetOptions(c.urlParams_, opts...)
50659	res, err := c.doRequest("json")
50660	if res != nil && res.StatusCode == http.StatusNotModified {
50661		if res.Body != nil {
50662			res.Body.Close()
50663		}
50664		return nil, &googleapi.Error{
50665			Code:   res.StatusCode,
50666			Header: res.Header,
50667		}
50668	}
50669	if err != nil {
50670		return nil, err
50671	}
50672	defer googleapi.CloseBody(res)
50673	if err := googleapi.CheckResponse(res); err != nil {
50674		return nil, err
50675	}
50676	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
50677		ServerResponse: googleapi.ServerResponse{
50678			Header:         res.Header,
50679			HTTPStatusCode: res.StatusCode,
50680		},
50681	}
50682	target := &ret
50683	if err := gensupport.DecodeResponse(target, res); err != nil {
50684		return nil, err
50685	}
50686	return ret, nil
50687	// {
50688	//   "description": "Retrieves the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
50689	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}",
50690	//   "httpMethod": "GET",
50691	//   "id": "dialogflow.projects.locations.knowledgeBases.get",
50692	//   "parameterOrder": [
50693	//     "name"
50694	//   ],
50695	//   "parameters": {
50696	//     "name": {
50697	//       "description": "Required. The name of the knowledge base to retrieve. Format `projects//locations//knowledgeBases/`.",
50698	//       "location": "path",
50699	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
50700	//       "required": true,
50701	//       "type": "string"
50702	//     }
50703	//   },
50704	//   "path": "v2beta1/{+name}",
50705	//   "response": {
50706	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
50707	//   },
50708	//   "scopes": [
50709	//     "https://www.googleapis.com/auth/cloud-platform",
50710	//     "https://www.googleapis.com/auth/dialogflow"
50711	//   ]
50712	// }
50713
50714}
50715
50716// method id "dialogflow.projects.locations.knowledgeBases.list":
50717
50718type ProjectsLocationsKnowledgeBasesListCall struct {
50719	s            *Service
50720	parent       string
50721	urlParams_   gensupport.URLParams
50722	ifNoneMatch_ string
50723	ctx_         context.Context
50724	header_      http.Header
50725}
50726
50727// List: Returns the list of all knowledge bases of the specified agent.
50728// Note: The `projects.agent.knowledgeBases` resource is deprecated;
50729// only use `projects.knowledgeBases`.
50730//
50731// - parent: The project to list of knowledge bases for. Format:
50732//   `projects//locations/`.
50733func (r *ProjectsLocationsKnowledgeBasesService) List(parent string) *ProjectsLocationsKnowledgeBasesListCall {
50734	c := &ProjectsLocationsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50735	c.parent = parent
50736	return c
50737}
50738
50739// Filter sets the optional parameter "filter": The filter expression
50740// used to filter knowledge bases returned by the list method. The
50741// expression has the following syntax: [AND ] ... The following fields
50742// and operators are supported: * display_name with has(:) operator *
50743// language_code with equals(=) operator Examples: *
50744// 'language_code=en-us' matches knowledge bases with en-us language
50745// code. * 'display_name:articles' matches knowledge bases whose display
50746// name contains "articles". * 'display_name:"Best Articles"' matches
50747// knowledge bases whose display name contains "Best Articles". *
50748// 'language_code=en-gb AND display_name=articles' matches all knowledge
50749// bases whose display name contains "articles" and whose language code
50750// is "en-gb". Note: An empty filter string (i.e. "") is a no-op and
50751// will result in no filtering. For more information about filtering,
50752// see API Filtering (https://aip.dev/160).
50753func (c *ProjectsLocationsKnowledgeBasesListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesListCall {
50754	c.urlParams_.Set("filter", filter)
50755	return c
50756}
50757
50758// PageSize sets the optional parameter "pageSize": The maximum number
50759// of items to return in a single page. By default 10 and at most 100.
50760func (c *ProjectsLocationsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesListCall {
50761	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
50762	return c
50763}
50764
50765// PageToken sets the optional parameter "pageToken": The
50766// next_page_token value returned from a previous list request.
50767func (c *ProjectsLocationsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesListCall {
50768	c.urlParams_.Set("pageToken", pageToken)
50769	return c
50770}
50771
50772// Fields allows partial responses to be retrieved. See
50773// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50774// for more information.
50775func (c *ProjectsLocationsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesListCall {
50776	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50777	return c
50778}
50779
50780// IfNoneMatch sets the optional parameter which makes the operation
50781// fail if the object's ETag matches the given value. This is useful for
50782// getting updates only after the object has changed since the last
50783// request. Use googleapi.IsNotModified to check whether the response
50784// error from Do is the result of In-None-Match.
50785func (c *ProjectsLocationsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesListCall {
50786	c.ifNoneMatch_ = entityTag
50787	return c
50788}
50789
50790// Context sets the context to be used in this call's Do method. Any
50791// pending HTTP request will be aborted if the provided context is
50792// canceled.
50793func (c *ProjectsLocationsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesListCall {
50794	c.ctx_ = ctx
50795	return c
50796}
50797
50798// Header returns an http.Header that can be modified by the caller to
50799// add HTTP headers to the request.
50800func (c *ProjectsLocationsKnowledgeBasesListCall) Header() http.Header {
50801	if c.header_ == nil {
50802		c.header_ = make(http.Header)
50803	}
50804	return c.header_
50805}
50806
50807func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
50808	reqHeaders := make(http.Header)
50809	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
50810	for k, v := range c.header_ {
50811		reqHeaders[k] = v
50812	}
50813	reqHeaders.Set("User-Agent", c.s.userAgent())
50814	if c.ifNoneMatch_ != "" {
50815		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50816	}
50817	var body io.Reader = nil
50818	c.urlParams_.Set("alt", alt)
50819	c.urlParams_.Set("prettyPrint", "false")
50820	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
50821	urls += "?" + c.urlParams_.Encode()
50822	req, err := http.NewRequest("GET", urls, body)
50823	if err != nil {
50824		return nil, err
50825	}
50826	req.Header = reqHeaders
50827	googleapi.Expand(req.URL, map[string]string{
50828		"parent": c.parent,
50829	})
50830	return gensupport.SendRequest(c.ctx_, c.s.client, req)
50831}
50832
50833// Do executes the "dialogflow.projects.locations.knowledgeBases.list" call.
50834// Exactly one of
50835// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse or error will
50836// be non-nil. Any non-2xx status code is an error. Response headers are
50837// in either
50838// *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse
50839// .Header or (if a response was returned at all) in
50840// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
50841// whether the returned error was because http.StatusNotModified was
50842// returned.
50843func (c *ProjectsLocationsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
50844	gensupport.SetOptions(c.urlParams_, opts...)
50845	res, err := c.doRequest("json")
50846	if res != nil && res.StatusCode == http.StatusNotModified {
50847		if res.Body != nil {
50848			res.Body.Close()
50849		}
50850		return nil, &googleapi.Error{
50851			Code:   res.StatusCode,
50852			Header: res.Header,
50853		}
50854	}
50855	if err != nil {
50856		return nil, err
50857	}
50858	defer googleapi.CloseBody(res)
50859	if err := googleapi.CheckResponse(res); err != nil {
50860		return nil, err
50861	}
50862	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
50863		ServerResponse: googleapi.ServerResponse{
50864			Header:         res.Header,
50865			HTTPStatusCode: res.StatusCode,
50866		},
50867	}
50868	target := &ret
50869	if err := gensupport.DecodeResponse(target, res); err != nil {
50870		return nil, err
50871	}
50872	return ret, nil
50873	// {
50874	//   "description": "Returns the list of all knowledge bases of the specified agent. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
50875	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases",
50876	//   "httpMethod": "GET",
50877	//   "id": "dialogflow.projects.locations.knowledgeBases.list",
50878	//   "parameterOrder": [
50879	//     "parent"
50880	//   ],
50881	//   "parameters": {
50882	//     "filter": {
50883	//       "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).",
50884	//       "location": "query",
50885	//       "type": "string"
50886	//     },
50887	//     "pageSize": {
50888	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
50889	//       "format": "int32",
50890	//       "location": "query",
50891	//       "type": "integer"
50892	//     },
50893	//     "pageToken": {
50894	//       "description": "The next_page_token value returned from a previous list request.",
50895	//       "location": "query",
50896	//       "type": "string"
50897	//     },
50898	//     "parent": {
50899	//       "description": "Required. The project to list of knowledge bases for. Format: `projects//locations/`.",
50900	//       "location": "path",
50901	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
50902	//       "required": true,
50903	//       "type": "string"
50904	//     }
50905	//   },
50906	//   "path": "v2beta1/{+parent}/knowledgeBases",
50907	//   "response": {
50908	//     "$ref": "GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse"
50909	//   },
50910	//   "scopes": [
50911	//     "https://www.googleapis.com/auth/cloud-platform",
50912	//     "https://www.googleapis.com/auth/dialogflow"
50913	//   ]
50914	// }
50915
50916}
50917
50918// Pages invokes f for each page of results.
50919// A non-nil error returned from f will halt the iteration.
50920// The provided context supersedes any context provided to the Context method.
50921func (c *ProjectsLocationsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
50922	c.ctx_ = ctx
50923	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
50924	for {
50925		x, err := c.Do()
50926		if err != nil {
50927			return err
50928		}
50929		if err := f(x); err != nil {
50930			return err
50931		}
50932		if x.NextPageToken == "" {
50933			return nil
50934		}
50935		c.PageToken(x.NextPageToken)
50936	}
50937}
50938
50939// method id "dialogflow.projects.locations.knowledgeBases.patch":
50940
50941type ProjectsLocationsKnowledgeBasesPatchCall struct {
50942	s                                         *Service
50943	name                                      string
50944	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
50945	urlParams_                                gensupport.URLParams
50946	ctx_                                      context.Context
50947	header_                                   http.Header
50948}
50949
50950// Patch: Updates the specified knowledge base. Note: The
50951// `projects.agent.knowledgeBases` resource is deprecated; only use
50952// `projects.knowledgeBases`.
50953//
50954// - name: The knowledge base resource name. The name must be empty when
50955//   creating a knowledge base. Format:
50956//   `projects//locations//knowledgeBases/`.
50957func (r *ProjectsLocationsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesPatchCall {
50958	c := &ProjectsLocationsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50959	c.name = name
50960	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
50961	return c
50962}
50963
50964// UpdateMask sets the optional parameter "updateMask": Not specified
50965// means `update all`. Currently, only `display_name` can be updated, an
50966// InvalidArgument will be returned for attempting to update other
50967// fields.
50968func (c *ProjectsLocationsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesPatchCall {
50969	c.urlParams_.Set("updateMask", updateMask)
50970	return c
50971}
50972
50973// Fields allows partial responses to be retrieved. See
50974// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
50975// for more information.
50976func (c *ProjectsLocationsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesPatchCall {
50977	c.urlParams_.Set("fields", googleapi.CombineFields(s))
50978	return c
50979}
50980
50981// Context sets the context to be used in this call's Do method. Any
50982// pending HTTP request will be aborted if the provided context is
50983// canceled.
50984func (c *ProjectsLocationsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesPatchCall {
50985	c.ctx_ = ctx
50986	return c
50987}
50988
50989// Header returns an http.Header that can be modified by the caller to
50990// add HTTP headers to the request.
50991func (c *ProjectsLocationsKnowledgeBasesPatchCall) Header() http.Header {
50992	if c.header_ == nil {
50993		c.header_ = make(http.Header)
50994	}
50995	return c.header_
50996}
50997
50998func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
50999	reqHeaders := make(http.Header)
51000	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
51001	for k, v := range c.header_ {
51002		reqHeaders[k] = v
51003	}
51004	reqHeaders.Set("User-Agent", c.s.userAgent())
51005	var body io.Reader = nil
51006	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
51007	if err != nil {
51008		return nil, err
51009	}
51010	reqHeaders.Set("Content-Type", "application/json")
51011	c.urlParams_.Set("alt", alt)
51012	c.urlParams_.Set("prettyPrint", "false")
51013	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51014	urls += "?" + c.urlParams_.Encode()
51015	req, err := http.NewRequest("PATCH", urls, body)
51016	if err != nil {
51017		return nil, err
51018	}
51019	req.Header = reqHeaders
51020	googleapi.Expand(req.URL, map[string]string{
51021		"name": c.name,
51022	})
51023	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51024}
51025
51026// Do executes the "dialogflow.projects.locations.knowledgeBases.patch" call.
51027// Exactly one of *GoogleCloudDialogflowV2beta1KnowledgeBase or error
51028// will be non-nil. Any non-2xx status code is an error. Response
51029// headers are in either
51030// *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or
51031// (if a response was returned at all) in
51032// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
51033// whether the returned error was because http.StatusNotModified was
51034// returned.
51035func (c *ProjectsLocationsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
51036	gensupport.SetOptions(c.urlParams_, opts...)
51037	res, err := c.doRequest("json")
51038	if res != nil && res.StatusCode == http.StatusNotModified {
51039		if res.Body != nil {
51040			res.Body.Close()
51041		}
51042		return nil, &googleapi.Error{
51043			Code:   res.StatusCode,
51044			Header: res.Header,
51045		}
51046	}
51047	if err != nil {
51048		return nil, err
51049	}
51050	defer googleapi.CloseBody(res)
51051	if err := googleapi.CheckResponse(res); err != nil {
51052		return nil, err
51053	}
51054	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
51055		ServerResponse: googleapi.ServerResponse{
51056			Header:         res.Header,
51057			HTTPStatusCode: res.StatusCode,
51058		},
51059	}
51060	target := &ret
51061	if err := gensupport.DecodeResponse(target, res); err != nil {
51062		return nil, err
51063	}
51064	return ret, nil
51065	// {
51066	//   "description": "Updates the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.",
51067	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}",
51068	//   "httpMethod": "PATCH",
51069	//   "id": "dialogflow.projects.locations.knowledgeBases.patch",
51070	//   "parameterOrder": [
51071	//     "name"
51072	//   ],
51073	//   "parameters": {
51074	//     "name": {
51075	//       "description": "The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.",
51076	//       "location": "path",
51077	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51078	//       "required": true,
51079	//       "type": "string"
51080	//     },
51081	//     "updateMask": {
51082	//       "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.",
51083	//       "format": "google-fieldmask",
51084	//       "location": "query",
51085	//       "type": "string"
51086	//     }
51087	//   },
51088	//   "path": "v2beta1/{+name}",
51089	//   "request": {
51090	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
51091	//   },
51092	//   "response": {
51093	//     "$ref": "GoogleCloudDialogflowV2beta1KnowledgeBase"
51094	//   },
51095	//   "scopes": [
51096	//     "https://www.googleapis.com/auth/cloud-platform",
51097	//     "https://www.googleapis.com/auth/dialogflow"
51098	//   ]
51099	// }
51100
51101}
51102
51103// method id "dialogflow.projects.locations.knowledgeBases.documents.create":
51104
51105type ProjectsLocationsKnowledgeBasesDocumentsCreateCall struct {
51106	s                                    *Service
51107	parent                               string
51108	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
51109	urlParams_                           gensupport.URLParams
51110	ctx_                                 context.Context
51111	header_                              http.Header
51112}
51113
51114// Create: Creates a new document. Note: The
51115// `projects.agent.knowledgeBases.documents` resource is deprecated;
51116// only use `projects.knowledgeBases.documents`.
51117//
51118// - parent: The knowledge base to create a document for. Format:
51119//   `projects//locations//knowledgeBases/`.
51120func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51121	c := &ProjectsLocationsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51122	c.parent = parent
51123	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
51124	return c
51125}
51126
51127// ImportGcsCustomMetadata sets the optional parameter
51128// "importGcsCustomMetadata": Whether to import custom metadata from
51129// Google Cloud Storage. Only valid when the document source is Google
51130// Cloud Storage URI.
51131func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51132	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
51133	return c
51134}
51135
51136// Fields allows partial responses to be retrieved. See
51137// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51138// for more information.
51139func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51140	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51141	return c
51142}
51143
51144// Context sets the context to be used in this call's Do method. Any
51145// pending HTTP request will be aborted if the provided context is
51146// canceled.
51147func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
51148	c.ctx_ = ctx
51149	return c
51150}
51151
51152// Header returns an http.Header that can be modified by the caller to
51153// add HTTP headers to the request.
51154func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
51155	if c.header_ == nil {
51156		c.header_ = make(http.Header)
51157	}
51158	return c.header_
51159}
51160
51161func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
51162	reqHeaders := make(http.Header)
51163	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
51164	for k, v := range c.header_ {
51165		reqHeaders[k] = v
51166	}
51167	reqHeaders.Set("User-Agent", c.s.userAgent())
51168	var body io.Reader = nil
51169	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
51170	if err != nil {
51171		return nil, err
51172	}
51173	reqHeaders.Set("Content-Type", "application/json")
51174	c.urlParams_.Set("alt", alt)
51175	c.urlParams_.Set("prettyPrint", "false")
51176	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
51177	urls += "?" + c.urlParams_.Encode()
51178	req, err := http.NewRequest("POST", urls, body)
51179	if err != nil {
51180		return nil, err
51181	}
51182	req.Header = reqHeaders
51183	googleapi.Expand(req.URL, map[string]string{
51184		"parent": c.parent,
51185	})
51186	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51187}
51188
51189// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.create" call.
51190// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
51191// Any non-2xx status code is an error. Response headers are in either
51192// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
51193// was returned at all) in error.(*googleapi.Error).Header. Use
51194// googleapi.IsNotModified to check whether the returned error was
51195// because http.StatusNotModified was returned.
51196func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
51197	gensupport.SetOptions(c.urlParams_, opts...)
51198	res, err := c.doRequest("json")
51199	if res != nil && res.StatusCode == http.StatusNotModified {
51200		if res.Body != nil {
51201			res.Body.Close()
51202		}
51203		return nil, &googleapi.Error{
51204			Code:   res.StatusCode,
51205			Header: res.Header,
51206		}
51207	}
51208	if err != nil {
51209		return nil, err
51210	}
51211	defer googleapi.CloseBody(res)
51212	if err := googleapi.CheckResponse(res); err != nil {
51213		return nil, err
51214	}
51215	ret := &GoogleLongrunningOperation{
51216		ServerResponse: googleapi.ServerResponse{
51217			Header:         res.Header,
51218			HTTPStatusCode: res.StatusCode,
51219		},
51220	}
51221	target := &ret
51222	if err := gensupport.DecodeResponse(target, res); err != nil {
51223		return nil, err
51224	}
51225	return ret, nil
51226	// {
51227	//   "description": "Creates a new document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
51228	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents",
51229	//   "httpMethod": "POST",
51230	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.create",
51231	//   "parameterOrder": [
51232	//     "parent"
51233	//   ],
51234	//   "parameters": {
51235	//     "importGcsCustomMetadata": {
51236	//       "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.",
51237	//       "location": "query",
51238	//       "type": "boolean"
51239	//     },
51240	//     "parent": {
51241	//       "description": "Required. The knowledge base to create a document for. Format: `projects//locations//knowledgeBases/`.",
51242	//       "location": "path",
51243	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51244	//       "required": true,
51245	//       "type": "string"
51246	//     }
51247	//   },
51248	//   "path": "v2beta1/{+parent}/documents",
51249	//   "request": {
51250	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
51251	//   },
51252	//   "response": {
51253	//     "$ref": "GoogleLongrunningOperation"
51254	//   },
51255	//   "scopes": [
51256	//     "https://www.googleapis.com/auth/cloud-platform",
51257	//     "https://www.googleapis.com/auth/dialogflow"
51258	//   ]
51259	// }
51260
51261}
51262
51263// method id "dialogflow.projects.locations.knowledgeBases.documents.delete":
51264
51265type ProjectsLocationsKnowledgeBasesDocumentsDeleteCall struct {
51266	s          *Service
51267	name       string
51268	urlParams_ gensupport.URLParams
51269	ctx_       context.Context
51270	header_    http.Header
51271}
51272
51273// Delete: Deletes the specified document. Note: The
51274// `projects.agent.knowledgeBases.documents` resource is deprecated;
51275// only use `projects.knowledgeBases.documents`.
51276//
51277// - name: The name of the document to delete. Format:
51278//   `projects//locations//knowledgeBases//documents/`.
51279func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
51280	c := &ProjectsLocationsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51281	c.name = name
51282	return c
51283}
51284
51285// Fields allows partial responses to be retrieved. See
51286// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51287// for more information.
51288func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
51289	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51290	return c
51291}
51292
51293// Context sets the context to be used in this call's Do method. Any
51294// pending HTTP request will be aborted if the provided context is
51295// canceled.
51296func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
51297	c.ctx_ = ctx
51298	return c
51299}
51300
51301// Header returns an http.Header that can be modified by the caller to
51302// add HTTP headers to the request.
51303func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
51304	if c.header_ == nil {
51305		c.header_ = make(http.Header)
51306	}
51307	return c.header_
51308}
51309
51310func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
51311	reqHeaders := make(http.Header)
51312	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
51313	for k, v := range c.header_ {
51314		reqHeaders[k] = v
51315	}
51316	reqHeaders.Set("User-Agent", c.s.userAgent())
51317	var body io.Reader = nil
51318	c.urlParams_.Set("alt", alt)
51319	c.urlParams_.Set("prettyPrint", "false")
51320	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51321	urls += "?" + c.urlParams_.Encode()
51322	req, err := http.NewRequest("DELETE", urls, body)
51323	if err != nil {
51324		return nil, err
51325	}
51326	req.Header = reqHeaders
51327	googleapi.Expand(req.URL, map[string]string{
51328		"name": c.name,
51329	})
51330	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51331}
51332
51333// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.delete" call.
51334// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
51335// Any non-2xx status code is an error. Response headers are in either
51336// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
51337// was returned at all) in error.(*googleapi.Error).Header. Use
51338// googleapi.IsNotModified to check whether the returned error was
51339// because http.StatusNotModified was returned.
51340func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
51341	gensupport.SetOptions(c.urlParams_, opts...)
51342	res, err := c.doRequest("json")
51343	if res != nil && res.StatusCode == http.StatusNotModified {
51344		if res.Body != nil {
51345			res.Body.Close()
51346		}
51347		return nil, &googleapi.Error{
51348			Code:   res.StatusCode,
51349			Header: res.Header,
51350		}
51351	}
51352	if err != nil {
51353		return nil, err
51354	}
51355	defer googleapi.CloseBody(res)
51356	if err := googleapi.CheckResponse(res); err != nil {
51357		return nil, err
51358	}
51359	ret := &GoogleLongrunningOperation{
51360		ServerResponse: googleapi.ServerResponse{
51361			Header:         res.Header,
51362			HTTPStatusCode: res.StatusCode,
51363		},
51364	}
51365	target := &ret
51366	if err := gensupport.DecodeResponse(target, res); err != nil {
51367		return nil, err
51368	}
51369	return ret, nil
51370	// {
51371	//   "description": "Deletes the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
51372	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
51373	//   "httpMethod": "DELETE",
51374	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.delete",
51375	//   "parameterOrder": [
51376	//     "name"
51377	//   ],
51378	//   "parameters": {
51379	//     "name": {
51380	//       "description": "Required. The name of the document to delete. Format: `projects//locations//knowledgeBases//documents/`.",
51381	//       "location": "path",
51382	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
51383	//       "required": true,
51384	//       "type": "string"
51385	//     }
51386	//   },
51387	//   "path": "v2beta1/{+name}",
51388	//   "response": {
51389	//     "$ref": "GoogleLongrunningOperation"
51390	//   },
51391	//   "scopes": [
51392	//     "https://www.googleapis.com/auth/cloud-platform",
51393	//     "https://www.googleapis.com/auth/dialogflow"
51394	//   ]
51395	// }
51396
51397}
51398
51399// method id "dialogflow.projects.locations.knowledgeBases.documents.get":
51400
51401type ProjectsLocationsKnowledgeBasesDocumentsGetCall struct {
51402	s            *Service
51403	name         string
51404	urlParams_   gensupport.URLParams
51405	ifNoneMatch_ string
51406	ctx_         context.Context
51407	header_      http.Header
51408}
51409
51410// Get: Retrieves the specified document. Note: The
51411// `projects.agent.knowledgeBases.documents` resource is deprecated;
51412// only use `projects.knowledgeBases.documents`.
51413//
51414// - name: The name of the document to retrieve. Format
51415//   `projects//locations//knowledgeBases//documents/`.
51416func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Get(name string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
51417	c := &ProjectsLocationsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51418	c.name = name
51419	return c
51420}
51421
51422// Fields allows partial responses to be retrieved. See
51423// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51424// for more information.
51425func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
51426	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51427	return c
51428}
51429
51430// IfNoneMatch sets the optional parameter which makes the operation
51431// fail if the object's ETag matches the given value. This is useful for
51432// getting updates only after the object has changed since the last
51433// request. Use googleapi.IsNotModified to check whether the response
51434// error from Do is the result of In-None-Match.
51435func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
51436	c.ifNoneMatch_ = entityTag
51437	return c
51438}
51439
51440// Context sets the context to be used in this call's Do method. Any
51441// pending HTTP request will be aborted if the provided context is
51442// canceled.
51443func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
51444	c.ctx_ = ctx
51445	return c
51446}
51447
51448// Header returns an http.Header that can be modified by the caller to
51449// add HTTP headers to the request.
51450func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Header() http.Header {
51451	if c.header_ == nil {
51452		c.header_ = make(http.Header)
51453	}
51454	return c.header_
51455}
51456
51457func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
51458	reqHeaders := make(http.Header)
51459	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
51460	for k, v := range c.header_ {
51461		reqHeaders[k] = v
51462	}
51463	reqHeaders.Set("User-Agent", c.s.userAgent())
51464	if c.ifNoneMatch_ != "" {
51465		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51466	}
51467	var body io.Reader = nil
51468	c.urlParams_.Set("alt", alt)
51469	c.urlParams_.Set("prettyPrint", "false")
51470	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51471	urls += "?" + c.urlParams_.Encode()
51472	req, err := http.NewRequest("GET", urls, body)
51473	if err != nil {
51474		return nil, err
51475	}
51476	req.Header = reqHeaders
51477	googleapi.Expand(req.URL, map[string]string{
51478		"name": c.name,
51479	})
51480	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51481}
51482
51483// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.get" call.
51484// Exactly one of *GoogleCloudDialogflowV2beta1Document or error will be
51485// non-nil. Any non-2xx status code is an error. Response headers are in
51486// either *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or
51487// (if a response was returned at all) in
51488// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
51489// whether the returned error was because http.StatusNotModified was
51490// returned.
51491func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
51492	gensupport.SetOptions(c.urlParams_, opts...)
51493	res, err := c.doRequest("json")
51494	if res != nil && res.StatusCode == http.StatusNotModified {
51495		if res.Body != nil {
51496			res.Body.Close()
51497		}
51498		return nil, &googleapi.Error{
51499			Code:   res.StatusCode,
51500			Header: res.Header,
51501		}
51502	}
51503	if err != nil {
51504		return nil, err
51505	}
51506	defer googleapi.CloseBody(res)
51507	if err := googleapi.CheckResponse(res); err != nil {
51508		return nil, err
51509	}
51510	ret := &GoogleCloudDialogflowV2beta1Document{
51511		ServerResponse: googleapi.ServerResponse{
51512			Header:         res.Header,
51513			HTTPStatusCode: res.StatusCode,
51514		},
51515	}
51516	target := &ret
51517	if err := gensupport.DecodeResponse(target, res); err != nil {
51518		return nil, err
51519	}
51520	return ret, nil
51521	// {
51522	//   "description": "Retrieves the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
51523	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
51524	//   "httpMethod": "GET",
51525	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.get",
51526	//   "parameterOrder": [
51527	//     "name"
51528	//   ],
51529	//   "parameters": {
51530	//     "name": {
51531	//       "description": "Required. The name of the document to retrieve. Format `projects//locations//knowledgeBases//documents/`.",
51532	//       "location": "path",
51533	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
51534	//       "required": true,
51535	//       "type": "string"
51536	//     }
51537	//   },
51538	//   "path": "v2beta1/{+name}",
51539	//   "response": {
51540	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
51541	//   },
51542	//   "scopes": [
51543	//     "https://www.googleapis.com/auth/cloud-platform",
51544	//     "https://www.googleapis.com/auth/dialogflow"
51545	//   ]
51546	// }
51547
51548}
51549
51550// method id "dialogflow.projects.locations.knowledgeBases.documents.import":
51551
51552type ProjectsLocationsKnowledgeBasesDocumentsImportCall struct {
51553	s                                                  *Service
51554	parent                                             string
51555	googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
51556	urlParams_                                         gensupport.URLParams
51557	ctx_                                               context.Context
51558	header_                                            http.Header
51559}
51560
51561// Import: Create documents by importing data from external sources.
51562//
51563// - parent: The knowledge base to import documents into. Format:
51564//   `projects//locations//knowledgeBases/`.
51565func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
51566	c := &ProjectsLocationsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51567	c.parent = parent
51568	c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
51569	return c
51570}
51571
51572// Fields allows partial responses to be retrieved. See
51573// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51574// for more information.
51575func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
51576	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51577	return c
51578}
51579
51580// Context sets the context to be used in this call's Do method. Any
51581// pending HTTP request will be aborted if the provided context is
51582// canceled.
51583func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
51584	c.ctx_ = ctx
51585	return c
51586}
51587
51588// Header returns an http.Header that can be modified by the caller to
51589// add HTTP headers to the request.
51590func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Header() http.Header {
51591	if c.header_ == nil {
51592		c.header_ = make(http.Header)
51593	}
51594	return c.header_
51595}
51596
51597func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
51598	reqHeaders := make(http.Header)
51599	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
51600	for k, v := range c.header_ {
51601		reqHeaders[k] = v
51602	}
51603	reqHeaders.Set("User-Agent", c.s.userAgent())
51604	var body io.Reader = nil
51605	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
51606	if err != nil {
51607		return nil, err
51608	}
51609	reqHeaders.Set("Content-Type", "application/json")
51610	c.urlParams_.Set("alt", alt)
51611	c.urlParams_.Set("prettyPrint", "false")
51612	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
51613	urls += "?" + c.urlParams_.Encode()
51614	req, err := http.NewRequest("POST", urls, body)
51615	if err != nil {
51616		return nil, err
51617	}
51618	req.Header = reqHeaders
51619	googleapi.Expand(req.URL, map[string]string{
51620		"parent": c.parent,
51621	})
51622	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51623}
51624
51625// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.import" call.
51626// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
51627// Any non-2xx status code is an error. Response headers are in either
51628// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
51629// was returned at all) in error.(*googleapi.Error).Header. Use
51630// googleapi.IsNotModified to check whether the returned error was
51631// because http.StatusNotModified was returned.
51632func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
51633	gensupport.SetOptions(c.urlParams_, opts...)
51634	res, err := c.doRequest("json")
51635	if res != nil && res.StatusCode == http.StatusNotModified {
51636		if res.Body != nil {
51637			res.Body.Close()
51638		}
51639		return nil, &googleapi.Error{
51640			Code:   res.StatusCode,
51641			Header: res.Header,
51642		}
51643	}
51644	if err != nil {
51645		return nil, err
51646	}
51647	defer googleapi.CloseBody(res)
51648	if err := googleapi.CheckResponse(res); err != nil {
51649		return nil, err
51650	}
51651	ret := &GoogleLongrunningOperation{
51652		ServerResponse: googleapi.ServerResponse{
51653			Header:         res.Header,
51654			HTTPStatusCode: res.StatusCode,
51655		},
51656	}
51657	target := &ret
51658	if err := gensupport.DecodeResponse(target, res); err != nil {
51659		return nil, err
51660	}
51661	return ret, nil
51662	// {
51663	//   "description": "Create documents by importing data from external sources.",
51664	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents:import",
51665	//   "httpMethod": "POST",
51666	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.import",
51667	//   "parameterOrder": [
51668	//     "parent"
51669	//   ],
51670	//   "parameters": {
51671	//     "parent": {
51672	//       "description": "Required. The knowledge base to import documents into. Format: `projects//locations//knowledgeBases/`.",
51673	//       "location": "path",
51674	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51675	//       "required": true,
51676	//       "type": "string"
51677	//     }
51678	//   },
51679	//   "path": "v2beta1/{+parent}/documents:import",
51680	//   "request": {
51681	//     "$ref": "GoogleCloudDialogflowV2beta1ImportDocumentsRequest"
51682	//   },
51683	//   "response": {
51684	//     "$ref": "GoogleLongrunningOperation"
51685	//   },
51686	//   "scopes": [
51687	//     "https://www.googleapis.com/auth/cloud-platform",
51688	//     "https://www.googleapis.com/auth/dialogflow"
51689	//   ]
51690	// }
51691
51692}
51693
51694// method id "dialogflow.projects.locations.knowledgeBases.documents.list":
51695
51696type ProjectsLocationsKnowledgeBasesDocumentsListCall struct {
51697	s            *Service
51698	parent       string
51699	urlParams_   gensupport.URLParams
51700	ifNoneMatch_ string
51701	ctx_         context.Context
51702	header_      http.Header
51703}
51704
51705// List: Returns the list of all documents of the knowledge base. Note:
51706// The `projects.agent.knowledgeBases.documents` resource is deprecated;
51707// only use `projects.knowledgeBases.documents`.
51708//
51709// - parent: The knowledge base to list all documents for. Format:
51710//   `projects//locations//knowledgeBases/`.
51711func (r *ProjectsLocationsKnowledgeBasesDocumentsService) List(parent string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
51712	c := &ProjectsLocationsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51713	c.parent = parent
51714	return c
51715}
51716
51717// Filter sets the optional parameter "filter": The filter expression
51718// used to filter documents returned by the list method. The expression
51719// has the following syntax: [AND ] ... The following fields and
51720// operators are supported: * knowledge_types with has(:) operator *
51721// display_name with has(:) operator * state with equals(=) operator
51722// Examples: * "knowledge_types:FAQ" matches documents with FAQ
51723// knowledge type. * "display_name:customer" matches documents whose
51724// display name contains "customer". * "state=ACTIVE" matches documents
51725// with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE" matches
51726// all active FAQ documents. For more information about filtering, see
51727// API Filtering (https://aip.dev/160).
51728func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
51729	c.urlParams_.Set("filter", filter)
51730	return c
51731}
51732
51733// PageSize sets the optional parameter "pageSize": The maximum number
51734// of items to return in a single page. By default 10 and at most 100.
51735func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
51736	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
51737	return c
51738}
51739
51740// PageToken sets the optional parameter "pageToken": The
51741// next_page_token value returned from a previous list request.
51742func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
51743	c.urlParams_.Set("pageToken", pageToken)
51744	return c
51745}
51746
51747// Fields allows partial responses to be retrieved. See
51748// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51749// for more information.
51750func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
51751	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51752	return c
51753}
51754
51755// IfNoneMatch sets the optional parameter which makes the operation
51756// fail if the object's ETag matches the given value. This is useful for
51757// getting updates only after the object has changed since the last
51758// request. Use googleapi.IsNotModified to check whether the response
51759// error from Do is the result of In-None-Match.
51760func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
51761	c.ifNoneMatch_ = entityTag
51762	return c
51763}
51764
51765// Context sets the context to be used in this call's Do method. Any
51766// pending HTTP request will be aborted if the provided context is
51767// canceled.
51768func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
51769	c.ctx_ = ctx
51770	return c
51771}
51772
51773// Header returns an http.Header that can be modified by the caller to
51774// add HTTP headers to the request.
51775func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Header() http.Header {
51776	if c.header_ == nil {
51777		c.header_ = make(http.Header)
51778	}
51779	return c.header_
51780}
51781
51782func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
51783	reqHeaders := make(http.Header)
51784	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
51785	for k, v := range c.header_ {
51786		reqHeaders[k] = v
51787	}
51788	reqHeaders.Set("User-Agent", c.s.userAgent())
51789	if c.ifNoneMatch_ != "" {
51790		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51791	}
51792	var body io.Reader = nil
51793	c.urlParams_.Set("alt", alt)
51794	c.urlParams_.Set("prettyPrint", "false")
51795	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
51796	urls += "?" + c.urlParams_.Encode()
51797	req, err := http.NewRequest("GET", urls, body)
51798	if err != nil {
51799		return nil, err
51800	}
51801	req.Header = reqHeaders
51802	googleapi.Expand(req.URL, map[string]string{
51803		"parent": c.parent,
51804	})
51805	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51806}
51807
51808// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.list" call.
51809// Exactly one of *GoogleCloudDialogflowV2beta1ListDocumentsResponse or
51810// error will be non-nil. Any non-2xx status code is an error. Response
51811// headers are in either
51812// *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Head
51813// er or (if a response was returned at all) in
51814// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
51815// whether the returned error was because http.StatusNotModified was
51816// returned.
51817func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
51818	gensupport.SetOptions(c.urlParams_, opts...)
51819	res, err := c.doRequest("json")
51820	if res != nil && res.StatusCode == http.StatusNotModified {
51821		if res.Body != nil {
51822			res.Body.Close()
51823		}
51824		return nil, &googleapi.Error{
51825			Code:   res.StatusCode,
51826			Header: res.Header,
51827		}
51828	}
51829	if err != nil {
51830		return nil, err
51831	}
51832	defer googleapi.CloseBody(res)
51833	if err := googleapi.CheckResponse(res); err != nil {
51834		return nil, err
51835	}
51836	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
51837		ServerResponse: googleapi.ServerResponse{
51838			Header:         res.Header,
51839			HTTPStatusCode: res.StatusCode,
51840		},
51841	}
51842	target := &ret
51843	if err := gensupport.DecodeResponse(target, res); err != nil {
51844		return nil, err
51845	}
51846	return ret, nil
51847	// {
51848	//   "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`.",
51849	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents",
51850	//   "httpMethod": "GET",
51851	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.list",
51852	//   "parameterOrder": [
51853	//     "parent"
51854	//   ],
51855	//   "parameters": {
51856	//     "filter": {
51857	//       "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).",
51858	//       "location": "query",
51859	//       "type": "string"
51860	//     },
51861	//     "pageSize": {
51862	//       "description": "The maximum number of items to return in a single page. By default 10 and at most 100.",
51863	//       "format": "int32",
51864	//       "location": "query",
51865	//       "type": "integer"
51866	//     },
51867	//     "pageToken": {
51868	//       "description": "The next_page_token value returned from a previous list request.",
51869	//       "location": "query",
51870	//       "type": "string"
51871	//     },
51872	//     "parent": {
51873	//       "description": "Required. The knowledge base to list all documents for. Format: `projects//locations//knowledgeBases/`.",
51874	//       "location": "path",
51875	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+$",
51876	//       "required": true,
51877	//       "type": "string"
51878	//     }
51879	//   },
51880	//   "path": "v2beta1/{+parent}/documents",
51881	//   "response": {
51882	//     "$ref": "GoogleCloudDialogflowV2beta1ListDocumentsResponse"
51883	//   },
51884	//   "scopes": [
51885	//     "https://www.googleapis.com/auth/cloud-platform",
51886	//     "https://www.googleapis.com/auth/dialogflow"
51887	//   ]
51888	// }
51889
51890}
51891
51892// Pages invokes f for each page of results.
51893// A non-nil error returned from f will halt the iteration.
51894// The provided context supersedes any context provided to the Context method.
51895func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
51896	c.ctx_ = ctx
51897	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
51898	for {
51899		x, err := c.Do()
51900		if err != nil {
51901			return err
51902		}
51903		if err := f(x); err != nil {
51904			return err
51905		}
51906		if x.NextPageToken == "" {
51907			return nil
51908		}
51909		c.PageToken(x.NextPageToken)
51910	}
51911}
51912
51913// method id "dialogflow.projects.locations.knowledgeBases.documents.patch":
51914
51915type ProjectsLocationsKnowledgeBasesDocumentsPatchCall struct {
51916	s                                    *Service
51917	name                                 string
51918	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
51919	urlParams_                           gensupport.URLParams
51920	ctx_                                 context.Context
51921	header_                              http.Header
51922}
51923
51924// Patch: Updates the specified document. Note: The
51925// `projects.agent.knowledgeBases.documents` resource is deprecated;
51926// only use `projects.knowledgeBases.documents`.
51927//
51928// - name: Optional. The document resource name. The name must be empty
51929//   when creating a document. Format:
51930//   `projects//locations//knowledgeBases//documents/`.
51931func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
51932	c := &ProjectsLocationsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51933	c.name = name
51934	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
51935	return c
51936}
51937
51938// UpdateMask sets the optional parameter "updateMask": Not specified
51939// means `update all`. Currently, only `display_name` can be updated, an
51940// InvalidArgument will be returned for attempting to update other
51941// fields.
51942func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
51943	c.urlParams_.Set("updateMask", updateMask)
51944	return c
51945}
51946
51947// Fields allows partial responses to be retrieved. See
51948// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
51949// for more information.
51950func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
51951	c.urlParams_.Set("fields", googleapi.CombineFields(s))
51952	return c
51953}
51954
51955// Context sets the context to be used in this call's Do method. Any
51956// pending HTTP request will be aborted if the provided context is
51957// canceled.
51958func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
51959	c.ctx_ = ctx
51960	return c
51961}
51962
51963// Header returns an http.Header that can be modified by the caller to
51964// add HTTP headers to the request.
51965func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
51966	if c.header_ == nil {
51967		c.header_ = make(http.Header)
51968	}
51969	return c.header_
51970}
51971
51972func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
51973	reqHeaders := make(http.Header)
51974	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
51975	for k, v := range c.header_ {
51976		reqHeaders[k] = v
51977	}
51978	reqHeaders.Set("User-Agent", c.s.userAgent())
51979	var body io.Reader = nil
51980	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
51981	if err != nil {
51982		return nil, err
51983	}
51984	reqHeaders.Set("Content-Type", "application/json")
51985	c.urlParams_.Set("alt", alt)
51986	c.urlParams_.Set("prettyPrint", "false")
51987	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
51988	urls += "?" + c.urlParams_.Encode()
51989	req, err := http.NewRequest("PATCH", urls, body)
51990	if err != nil {
51991		return nil, err
51992	}
51993	req.Header = reqHeaders
51994	googleapi.Expand(req.URL, map[string]string{
51995		"name": c.name,
51996	})
51997	return gensupport.SendRequest(c.ctx_, c.s.client, req)
51998}
51999
52000// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.patch" call.
52001// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
52002// Any non-2xx status code is an error. Response headers are in either
52003// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
52004// was returned at all) in error.(*googleapi.Error).Header. Use
52005// googleapi.IsNotModified to check whether the returned error was
52006// because http.StatusNotModified was returned.
52007func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
52008	gensupport.SetOptions(c.urlParams_, opts...)
52009	res, err := c.doRequest("json")
52010	if res != nil && res.StatusCode == http.StatusNotModified {
52011		if res.Body != nil {
52012			res.Body.Close()
52013		}
52014		return nil, &googleapi.Error{
52015			Code:   res.StatusCode,
52016			Header: res.Header,
52017		}
52018	}
52019	if err != nil {
52020		return nil, err
52021	}
52022	defer googleapi.CloseBody(res)
52023	if err := googleapi.CheckResponse(res); err != nil {
52024		return nil, err
52025	}
52026	ret := &GoogleLongrunningOperation{
52027		ServerResponse: googleapi.ServerResponse{
52028			Header:         res.Header,
52029			HTTPStatusCode: res.StatusCode,
52030		},
52031	}
52032	target := &ret
52033	if err := gensupport.DecodeResponse(target, res); err != nil {
52034		return nil, err
52035	}
52036	return ret, nil
52037	// {
52038	//   "description": "Updates the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
52039	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}",
52040	//   "httpMethod": "PATCH",
52041	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.patch",
52042	//   "parameterOrder": [
52043	//     "name"
52044	//   ],
52045	//   "parameters": {
52046	//     "name": {
52047	//       "description": "Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.",
52048	//       "location": "path",
52049	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
52050	//       "required": true,
52051	//       "type": "string"
52052	//     },
52053	//     "updateMask": {
52054	//       "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.",
52055	//       "format": "google-fieldmask",
52056	//       "location": "query",
52057	//       "type": "string"
52058	//     }
52059	//   },
52060	//   "path": "v2beta1/{+name}",
52061	//   "request": {
52062	//     "$ref": "GoogleCloudDialogflowV2beta1Document"
52063	//   },
52064	//   "response": {
52065	//     "$ref": "GoogleLongrunningOperation"
52066	//   },
52067	//   "scopes": [
52068	//     "https://www.googleapis.com/auth/cloud-platform",
52069	//     "https://www.googleapis.com/auth/dialogflow"
52070	//   ]
52071	// }
52072
52073}
52074
52075// method id "dialogflow.projects.locations.knowledgeBases.documents.reload":
52076
52077type ProjectsLocationsKnowledgeBasesDocumentsReloadCall struct {
52078	s                                                 *Service
52079	name                                              string
52080	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
52081	urlParams_                                        gensupport.URLParams
52082	ctx_                                              context.Context
52083	header_                                           http.Header
52084}
52085
52086// Reload: Reloads the specified document from its specified source,
52087// content_uri or content. The previously loaded content of the document
52088// will be deleted. Note: Even when the content of the document has not
52089// changed, there still may be side effects because of internal
52090// implementation changes. Note: If the document source is Google Cloud
52091// Storage URI, its metadata will be replaced with the custom metadata
52092// from Google Cloud Storage if the `import_gcs_custom_metadata` field
52093// is set to true in the request. Note: The
52094// `projects.agent.knowledgeBases.documents` resource is deprecated;
52095// only use `projects.knowledgeBases.documents`.
52096//
52097// - name: The name of the document to reload. Format:
52098//   `projects//locations//knowledgeBases//documents/`.
52099func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
52100	c := &ProjectsLocationsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52101	c.name = name
52102	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
52103	return c
52104}
52105
52106// Fields allows partial responses to be retrieved. See
52107// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52108// for more information.
52109func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
52110	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52111	return c
52112}
52113
52114// Context sets the context to be used in this call's Do method. Any
52115// pending HTTP request will be aborted if the provided context is
52116// canceled.
52117func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
52118	c.ctx_ = ctx
52119	return c
52120}
52121
52122// Header returns an http.Header that can be modified by the caller to
52123// add HTTP headers to the request.
52124func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
52125	if c.header_ == nil {
52126		c.header_ = make(http.Header)
52127	}
52128	return c.header_
52129}
52130
52131func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
52132	reqHeaders := make(http.Header)
52133	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
52134	for k, v := range c.header_ {
52135		reqHeaders[k] = v
52136	}
52137	reqHeaders.Set("User-Agent", c.s.userAgent())
52138	var body io.Reader = nil
52139	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
52140	if err != nil {
52141		return nil, err
52142	}
52143	reqHeaders.Set("Content-Type", "application/json")
52144	c.urlParams_.Set("alt", alt)
52145	c.urlParams_.Set("prettyPrint", "false")
52146	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
52147	urls += "?" + c.urlParams_.Encode()
52148	req, err := http.NewRequest("POST", urls, body)
52149	if err != nil {
52150		return nil, err
52151	}
52152	req.Header = reqHeaders
52153	googleapi.Expand(req.URL, map[string]string{
52154		"name": c.name,
52155	})
52156	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52157}
52158
52159// Do executes the "dialogflow.projects.locations.knowledgeBases.documents.reload" call.
52160// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
52161// Any non-2xx status code is an error. Response headers are in either
52162// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
52163// was returned at all) in error.(*googleapi.Error).Header. Use
52164// googleapi.IsNotModified to check whether the returned error was
52165// because http.StatusNotModified was returned.
52166func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
52167	gensupport.SetOptions(c.urlParams_, opts...)
52168	res, err := c.doRequest("json")
52169	if res != nil && res.StatusCode == http.StatusNotModified {
52170		if res.Body != nil {
52171			res.Body.Close()
52172		}
52173		return nil, &googleapi.Error{
52174			Code:   res.StatusCode,
52175			Header: res.Header,
52176		}
52177	}
52178	if err != nil {
52179		return nil, err
52180	}
52181	defer googleapi.CloseBody(res)
52182	if err := googleapi.CheckResponse(res); err != nil {
52183		return nil, err
52184	}
52185	ret := &GoogleLongrunningOperation{
52186		ServerResponse: googleapi.ServerResponse{
52187			Header:         res.Header,
52188			HTTPStatusCode: res.StatusCode,
52189		},
52190	}
52191	target := &ret
52192	if err := gensupport.DecodeResponse(target, res); err != nil {
52193		return nil, err
52194	}
52195	return ret, nil
52196	// {
52197	//   "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`.",
52198	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
52199	//   "httpMethod": "POST",
52200	//   "id": "dialogflow.projects.locations.knowledgeBases.documents.reload",
52201	//   "parameterOrder": [
52202	//     "name"
52203	//   ],
52204	//   "parameters": {
52205	//     "name": {
52206	//       "description": "Required. The name of the document to reload. Format: `projects//locations//knowledgeBases//documents/`",
52207	//       "location": "path",
52208	//       "pattern": "^projects/[^/]+/locations/[^/]+/knowledgeBases/[^/]+/documents/[^/]+$",
52209	//       "required": true,
52210	//       "type": "string"
52211	//     }
52212	//   },
52213	//   "path": "v2beta1/{+name}:reload",
52214	//   "request": {
52215	//     "$ref": "GoogleCloudDialogflowV2beta1ReloadDocumentRequest"
52216	//   },
52217	//   "response": {
52218	//     "$ref": "GoogleLongrunningOperation"
52219	//   },
52220	//   "scopes": [
52221	//     "https://www.googleapis.com/auth/cloud-platform",
52222	//     "https://www.googleapis.com/auth/dialogflow"
52223	//   ]
52224	// }
52225
52226}
52227
52228// method id "dialogflow.projects.locations.operations.cancel":
52229
52230type ProjectsLocationsOperationsCancelCall struct {
52231	s          *Service
52232	name       string
52233	urlParams_ gensupport.URLParams
52234	ctx_       context.Context
52235	header_    http.Header
52236}
52237
52238// Cancel: Starts asynchronous cancellation on a long-running operation.
52239// The server makes a best effort to cancel the operation, but success
52240// is not guaranteed. If the server doesn't support this method, it
52241// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
52242// Operations.GetOperation or other methods to check whether the
52243// cancellation succeeded or whether the operation completed despite
52244// cancellation. On successful cancellation, the operation is not
52245// deleted; instead, it becomes an operation with an Operation.error
52246// value with a google.rpc.Status.code of 1, corresponding to
52247// `Code.CANCELLED`.
52248//
52249// - name: The name of the operation resource to be cancelled.
52250func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
52251	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52252	c.name = name
52253	return c
52254}
52255
52256// Fields allows partial responses to be retrieved. See
52257// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52258// for more information.
52259func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
52260	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52261	return c
52262}
52263
52264// Context sets the context to be used in this call's Do method. Any
52265// pending HTTP request will be aborted if the provided context is
52266// canceled.
52267func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
52268	c.ctx_ = ctx
52269	return c
52270}
52271
52272// Header returns an http.Header that can be modified by the caller to
52273// add HTTP headers to the request.
52274func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
52275	if c.header_ == nil {
52276		c.header_ = make(http.Header)
52277	}
52278	return c.header_
52279}
52280
52281func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
52282	reqHeaders := make(http.Header)
52283	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
52284	for k, v := range c.header_ {
52285		reqHeaders[k] = v
52286	}
52287	reqHeaders.Set("User-Agent", c.s.userAgent())
52288	var body io.Reader = nil
52289	c.urlParams_.Set("alt", alt)
52290	c.urlParams_.Set("prettyPrint", "false")
52291	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
52292	urls += "?" + c.urlParams_.Encode()
52293	req, err := http.NewRequest("POST", urls, body)
52294	if err != nil {
52295		return nil, err
52296	}
52297	req.Header = reqHeaders
52298	googleapi.Expand(req.URL, map[string]string{
52299		"name": c.name,
52300	})
52301	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52302}
52303
52304// Do executes the "dialogflow.projects.locations.operations.cancel" call.
52305// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
52306// non-2xx status code is an error. Response headers are in either
52307// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
52308// returned at all) in error.(*googleapi.Error).Header. Use
52309// googleapi.IsNotModified to check whether the returned error was
52310// because http.StatusNotModified was returned.
52311func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
52312	gensupport.SetOptions(c.urlParams_, opts...)
52313	res, err := c.doRequest("json")
52314	if res != nil && res.StatusCode == http.StatusNotModified {
52315		if res.Body != nil {
52316			res.Body.Close()
52317		}
52318		return nil, &googleapi.Error{
52319			Code:   res.StatusCode,
52320			Header: res.Header,
52321		}
52322	}
52323	if err != nil {
52324		return nil, err
52325	}
52326	defer googleapi.CloseBody(res)
52327	if err := googleapi.CheckResponse(res); err != nil {
52328		return nil, err
52329	}
52330	ret := &GoogleProtobufEmpty{
52331		ServerResponse: googleapi.ServerResponse{
52332			Header:         res.Header,
52333			HTTPStatusCode: res.StatusCode,
52334		},
52335	}
52336	target := &ret
52337	if err := gensupport.DecodeResponse(target, res); err != nil {
52338		return nil, err
52339	}
52340	return ret, nil
52341	// {
52342	//   "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`.",
52343	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
52344	//   "httpMethod": "POST",
52345	//   "id": "dialogflow.projects.locations.operations.cancel",
52346	//   "parameterOrder": [
52347	//     "name"
52348	//   ],
52349	//   "parameters": {
52350	//     "name": {
52351	//       "description": "The name of the operation resource to be cancelled.",
52352	//       "location": "path",
52353	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
52354	//       "required": true,
52355	//       "type": "string"
52356	//     }
52357	//   },
52358	//   "path": "v2beta1/{+name}:cancel",
52359	//   "response": {
52360	//     "$ref": "GoogleProtobufEmpty"
52361	//   },
52362	//   "scopes": [
52363	//     "https://www.googleapis.com/auth/cloud-platform",
52364	//     "https://www.googleapis.com/auth/dialogflow"
52365	//   ]
52366	// }
52367
52368}
52369
52370// method id "dialogflow.projects.locations.operations.get":
52371
52372type ProjectsLocationsOperationsGetCall struct {
52373	s            *Service
52374	name         string
52375	urlParams_   gensupport.URLParams
52376	ifNoneMatch_ string
52377	ctx_         context.Context
52378	header_      http.Header
52379}
52380
52381// Get: Gets the latest state of a long-running operation. Clients can
52382// use this method to poll the operation result at intervals as
52383// recommended by the API service.
52384//
52385// - name: The name of the operation resource.
52386func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
52387	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52388	c.name = name
52389	return c
52390}
52391
52392// Fields allows partial responses to be retrieved. See
52393// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52394// for more information.
52395func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
52396	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52397	return c
52398}
52399
52400// IfNoneMatch sets the optional parameter which makes the operation
52401// fail if the object's ETag matches the given value. This is useful for
52402// getting updates only after the object has changed since the last
52403// request. Use googleapi.IsNotModified to check whether the response
52404// error from Do is the result of In-None-Match.
52405func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
52406	c.ifNoneMatch_ = entityTag
52407	return c
52408}
52409
52410// Context sets the context to be used in this call's Do method. Any
52411// pending HTTP request will be aborted if the provided context is
52412// canceled.
52413func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
52414	c.ctx_ = ctx
52415	return c
52416}
52417
52418// Header returns an http.Header that can be modified by the caller to
52419// add HTTP headers to the request.
52420func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
52421	if c.header_ == nil {
52422		c.header_ = make(http.Header)
52423	}
52424	return c.header_
52425}
52426
52427func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
52428	reqHeaders := make(http.Header)
52429	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
52430	for k, v := range c.header_ {
52431		reqHeaders[k] = v
52432	}
52433	reqHeaders.Set("User-Agent", c.s.userAgent())
52434	if c.ifNoneMatch_ != "" {
52435		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52436	}
52437	var body io.Reader = nil
52438	c.urlParams_.Set("alt", alt)
52439	c.urlParams_.Set("prettyPrint", "false")
52440	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
52441	urls += "?" + c.urlParams_.Encode()
52442	req, err := http.NewRequest("GET", urls, body)
52443	if err != nil {
52444		return nil, err
52445	}
52446	req.Header = reqHeaders
52447	googleapi.Expand(req.URL, map[string]string{
52448		"name": c.name,
52449	})
52450	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52451}
52452
52453// Do executes the "dialogflow.projects.locations.operations.get" call.
52454// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
52455// Any non-2xx status code is an error. Response headers are in either
52456// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
52457// was returned at all) in error.(*googleapi.Error).Header. Use
52458// googleapi.IsNotModified to check whether the returned error was
52459// because http.StatusNotModified was returned.
52460func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
52461	gensupport.SetOptions(c.urlParams_, opts...)
52462	res, err := c.doRequest("json")
52463	if res != nil && res.StatusCode == http.StatusNotModified {
52464		if res.Body != nil {
52465			res.Body.Close()
52466		}
52467		return nil, &googleapi.Error{
52468			Code:   res.StatusCode,
52469			Header: res.Header,
52470		}
52471	}
52472	if err != nil {
52473		return nil, err
52474	}
52475	defer googleapi.CloseBody(res)
52476	if err := googleapi.CheckResponse(res); err != nil {
52477		return nil, err
52478	}
52479	ret := &GoogleLongrunningOperation{
52480		ServerResponse: googleapi.ServerResponse{
52481			Header:         res.Header,
52482			HTTPStatusCode: res.StatusCode,
52483		},
52484	}
52485	target := &ret
52486	if err := gensupport.DecodeResponse(target, res); err != nil {
52487		return nil, err
52488	}
52489	return ret, nil
52490	// {
52491	//   "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.",
52492	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
52493	//   "httpMethod": "GET",
52494	//   "id": "dialogflow.projects.locations.operations.get",
52495	//   "parameterOrder": [
52496	//     "name"
52497	//   ],
52498	//   "parameters": {
52499	//     "name": {
52500	//       "description": "The name of the operation resource.",
52501	//       "location": "path",
52502	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
52503	//       "required": true,
52504	//       "type": "string"
52505	//     }
52506	//   },
52507	//   "path": "v2beta1/{+name}",
52508	//   "response": {
52509	//     "$ref": "GoogleLongrunningOperation"
52510	//   },
52511	//   "scopes": [
52512	//     "https://www.googleapis.com/auth/cloud-platform",
52513	//     "https://www.googleapis.com/auth/dialogflow"
52514	//   ]
52515	// }
52516
52517}
52518
52519// method id "dialogflow.projects.locations.operations.list":
52520
52521type ProjectsLocationsOperationsListCall struct {
52522	s            *Service
52523	name         string
52524	urlParams_   gensupport.URLParams
52525	ifNoneMatch_ string
52526	ctx_         context.Context
52527	header_      http.Header
52528}
52529
52530// List: Lists operations that match the specified filter in the
52531// request. If the server doesn't support this method, it returns
52532// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
52533// override the binding to use different resource name schemes, such as
52534// `users/*/operations`. To override the binding, API services can add a
52535// binding such as "/v1/{name=users/*}/operations" to their service
52536// configuration. For backwards compatibility, the default name includes
52537// the operations collection id, however overriding users must ensure
52538// the name binding is the parent resource, without the operations
52539// collection id.
52540//
52541// - name: The name of the operation's parent resource.
52542func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
52543	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52544	c.name = name
52545	return c
52546}
52547
52548// Filter sets the optional parameter "filter": The standard list
52549// filter.
52550func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
52551	c.urlParams_.Set("filter", filter)
52552	return c
52553}
52554
52555// PageSize sets the optional parameter "pageSize": The standard list
52556// page size.
52557func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
52558	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
52559	return c
52560}
52561
52562// PageToken sets the optional parameter "pageToken": The standard list
52563// page token.
52564func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
52565	c.urlParams_.Set("pageToken", pageToken)
52566	return c
52567}
52568
52569// Fields allows partial responses to be retrieved. See
52570// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52571// for more information.
52572func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
52573	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52574	return c
52575}
52576
52577// IfNoneMatch sets the optional parameter which makes the operation
52578// fail if the object's ETag matches the given value. This is useful for
52579// getting updates only after the object has changed since the last
52580// request. Use googleapi.IsNotModified to check whether the response
52581// error from Do is the result of In-None-Match.
52582func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
52583	c.ifNoneMatch_ = entityTag
52584	return c
52585}
52586
52587// Context sets the context to be used in this call's Do method. Any
52588// pending HTTP request will be aborted if the provided context is
52589// canceled.
52590func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
52591	c.ctx_ = ctx
52592	return c
52593}
52594
52595// Header returns an http.Header that can be modified by the caller to
52596// add HTTP headers to the request.
52597func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
52598	if c.header_ == nil {
52599		c.header_ = make(http.Header)
52600	}
52601	return c.header_
52602}
52603
52604func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
52605	reqHeaders := make(http.Header)
52606	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
52607	for k, v := range c.header_ {
52608		reqHeaders[k] = v
52609	}
52610	reqHeaders.Set("User-Agent", c.s.userAgent())
52611	if c.ifNoneMatch_ != "" {
52612		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52613	}
52614	var body io.Reader = nil
52615	c.urlParams_.Set("alt", alt)
52616	c.urlParams_.Set("prettyPrint", "false")
52617	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
52618	urls += "?" + c.urlParams_.Encode()
52619	req, err := http.NewRequest("GET", 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.operations.list" call.
52631// Exactly one of *GoogleLongrunningListOperationsResponse or error will
52632// be non-nil. Any non-2xx status code is an error. Response headers are
52633// in either
52634// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
52635// a response was returned at all) in error.(*googleapi.Error).Header.
52636// Use googleapi.IsNotModified to check whether the returned error was
52637// because http.StatusNotModified was returned.
52638func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
52639	gensupport.SetOptions(c.urlParams_, opts...)
52640	res, err := c.doRequest("json")
52641	if res != nil && res.StatusCode == http.StatusNotModified {
52642		if res.Body != nil {
52643			res.Body.Close()
52644		}
52645		return nil, &googleapi.Error{
52646			Code:   res.StatusCode,
52647			Header: res.Header,
52648		}
52649	}
52650	if err != nil {
52651		return nil, err
52652	}
52653	defer googleapi.CloseBody(res)
52654	if err := googleapi.CheckResponse(res); err != nil {
52655		return nil, err
52656	}
52657	ret := &GoogleLongrunningListOperationsResponse{
52658		ServerResponse: googleapi.ServerResponse{
52659			Header:         res.Header,
52660			HTTPStatusCode: res.StatusCode,
52661		},
52662	}
52663	target := &ret
52664	if err := gensupport.DecodeResponse(target, res); err != nil {
52665		return nil, err
52666	}
52667	return ret, nil
52668	// {
52669	//   "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.",
52670	//   "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations",
52671	//   "httpMethod": "GET",
52672	//   "id": "dialogflow.projects.locations.operations.list",
52673	//   "parameterOrder": [
52674	//     "name"
52675	//   ],
52676	//   "parameters": {
52677	//     "filter": {
52678	//       "description": "The standard list filter.",
52679	//       "location": "query",
52680	//       "type": "string"
52681	//     },
52682	//     "name": {
52683	//       "description": "The name of the operation's parent resource.",
52684	//       "location": "path",
52685	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
52686	//       "required": true,
52687	//       "type": "string"
52688	//     },
52689	//     "pageSize": {
52690	//       "description": "The standard list page size.",
52691	//       "format": "int32",
52692	//       "location": "query",
52693	//       "type": "integer"
52694	//     },
52695	//     "pageToken": {
52696	//       "description": "The standard list page token.",
52697	//       "location": "query",
52698	//       "type": "string"
52699	//     }
52700	//   },
52701	//   "path": "v2beta1/{+name}/operations",
52702	//   "response": {
52703	//     "$ref": "GoogleLongrunningListOperationsResponse"
52704	//   },
52705	//   "scopes": [
52706	//     "https://www.googleapis.com/auth/cloud-platform",
52707	//     "https://www.googleapis.com/auth/dialogflow"
52708	//   ]
52709	// }
52710
52711}
52712
52713// Pages invokes f for each page of results.
52714// A non-nil error returned from f will halt the iteration.
52715// The provided context supersedes any context provided to the Context method.
52716func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
52717	c.ctx_ = ctx
52718	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
52719	for {
52720		x, err := c.Do()
52721		if err != nil {
52722			return err
52723		}
52724		if err := f(x); err != nil {
52725			return err
52726		}
52727		if x.NextPageToken == "" {
52728			return nil
52729		}
52730		c.PageToken(x.NextPageToken)
52731	}
52732}
52733
52734// method id "dialogflow.projects.operations.cancel":
52735
52736type ProjectsOperationsCancelCall struct {
52737	s          *Service
52738	name       string
52739	urlParams_ gensupport.URLParams
52740	ctx_       context.Context
52741	header_    http.Header
52742}
52743
52744// Cancel: Starts asynchronous cancellation on a long-running operation.
52745// The server makes a best effort to cancel the operation, but success
52746// is not guaranteed. If the server doesn't support this method, it
52747// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
52748// Operations.GetOperation or other methods to check whether the
52749// cancellation succeeded or whether the operation completed despite
52750// cancellation. On successful cancellation, the operation is not
52751// deleted; instead, it becomes an operation with an Operation.error
52752// value with a google.rpc.Status.code of 1, corresponding to
52753// `Code.CANCELLED`.
52754//
52755// - name: The name of the operation resource to be cancelled.
52756func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
52757	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52758	c.name = name
52759	return c
52760}
52761
52762// Fields allows partial responses to be retrieved. See
52763// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52764// for more information.
52765func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
52766	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52767	return c
52768}
52769
52770// Context sets the context to be used in this call's Do method. Any
52771// pending HTTP request will be aborted if the provided context is
52772// canceled.
52773func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
52774	c.ctx_ = ctx
52775	return c
52776}
52777
52778// Header returns an http.Header that can be modified by the caller to
52779// add HTTP headers to the request.
52780func (c *ProjectsOperationsCancelCall) Header() http.Header {
52781	if c.header_ == nil {
52782		c.header_ = make(http.Header)
52783	}
52784	return c.header_
52785}
52786
52787func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
52788	reqHeaders := make(http.Header)
52789	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
52790	for k, v := range c.header_ {
52791		reqHeaders[k] = v
52792	}
52793	reqHeaders.Set("User-Agent", c.s.userAgent())
52794	var body io.Reader = nil
52795	c.urlParams_.Set("alt", alt)
52796	c.urlParams_.Set("prettyPrint", "false")
52797	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
52798	urls += "?" + c.urlParams_.Encode()
52799	req, err := http.NewRequest("POST", urls, body)
52800	if err != nil {
52801		return nil, err
52802	}
52803	req.Header = reqHeaders
52804	googleapi.Expand(req.URL, map[string]string{
52805		"name": c.name,
52806	})
52807	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52808}
52809
52810// Do executes the "dialogflow.projects.operations.cancel" call.
52811// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
52812// non-2xx status code is an error. Response headers are in either
52813// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
52814// returned at all) in error.(*googleapi.Error).Header. Use
52815// googleapi.IsNotModified to check whether the returned error was
52816// because http.StatusNotModified was returned.
52817func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
52818	gensupport.SetOptions(c.urlParams_, opts...)
52819	res, err := c.doRequest("json")
52820	if res != nil && res.StatusCode == http.StatusNotModified {
52821		if res.Body != nil {
52822			res.Body.Close()
52823		}
52824		return nil, &googleapi.Error{
52825			Code:   res.StatusCode,
52826			Header: res.Header,
52827		}
52828	}
52829	if err != nil {
52830		return nil, err
52831	}
52832	defer googleapi.CloseBody(res)
52833	if err := googleapi.CheckResponse(res); err != nil {
52834		return nil, err
52835	}
52836	ret := &GoogleProtobufEmpty{
52837		ServerResponse: googleapi.ServerResponse{
52838			Header:         res.Header,
52839			HTTPStatusCode: res.StatusCode,
52840		},
52841	}
52842	target := &ret
52843	if err := gensupport.DecodeResponse(target, res); err != nil {
52844		return nil, err
52845	}
52846	return ret, nil
52847	// {
52848	//   "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`.",
52849	//   "flatPath": "v2beta1/projects/{projectsId}/operations/{operationsId}:cancel",
52850	//   "httpMethod": "POST",
52851	//   "id": "dialogflow.projects.operations.cancel",
52852	//   "parameterOrder": [
52853	//     "name"
52854	//   ],
52855	//   "parameters": {
52856	//     "name": {
52857	//       "description": "The name of the operation resource to be cancelled.",
52858	//       "location": "path",
52859	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
52860	//       "required": true,
52861	//       "type": "string"
52862	//     }
52863	//   },
52864	//   "path": "v2beta1/{+name}:cancel",
52865	//   "response": {
52866	//     "$ref": "GoogleProtobufEmpty"
52867	//   },
52868	//   "scopes": [
52869	//     "https://www.googleapis.com/auth/cloud-platform",
52870	//     "https://www.googleapis.com/auth/dialogflow"
52871	//   ]
52872	// }
52873
52874}
52875
52876// method id "dialogflow.projects.operations.get":
52877
52878type ProjectsOperationsGetCall struct {
52879	s            *Service
52880	name         string
52881	urlParams_   gensupport.URLParams
52882	ifNoneMatch_ string
52883	ctx_         context.Context
52884	header_      http.Header
52885}
52886
52887// Get: Gets the latest state of a long-running operation. Clients can
52888// use this method to poll the operation result at intervals as
52889// recommended by the API service.
52890//
52891// - name: The name of the operation resource.
52892func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
52893	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52894	c.name = name
52895	return c
52896}
52897
52898// Fields allows partial responses to be retrieved. See
52899// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
52900// for more information.
52901func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
52902	c.urlParams_.Set("fields", googleapi.CombineFields(s))
52903	return c
52904}
52905
52906// IfNoneMatch sets the optional parameter which makes the operation
52907// fail if the object's ETag matches the given value. This is useful for
52908// getting updates only after the object has changed since the last
52909// request. Use googleapi.IsNotModified to check whether the response
52910// error from Do is the result of In-None-Match.
52911func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
52912	c.ifNoneMatch_ = entityTag
52913	return c
52914}
52915
52916// Context sets the context to be used in this call's Do method. Any
52917// pending HTTP request will be aborted if the provided context is
52918// canceled.
52919func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
52920	c.ctx_ = ctx
52921	return c
52922}
52923
52924// Header returns an http.Header that can be modified by the caller to
52925// add HTTP headers to the request.
52926func (c *ProjectsOperationsGetCall) Header() http.Header {
52927	if c.header_ == nil {
52928		c.header_ = make(http.Header)
52929	}
52930	return c.header_
52931}
52932
52933func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
52934	reqHeaders := make(http.Header)
52935	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
52936	for k, v := range c.header_ {
52937		reqHeaders[k] = v
52938	}
52939	reqHeaders.Set("User-Agent", c.s.userAgent())
52940	if c.ifNoneMatch_ != "" {
52941		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52942	}
52943	var body io.Reader = nil
52944	c.urlParams_.Set("alt", alt)
52945	c.urlParams_.Set("prettyPrint", "false")
52946	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
52947	urls += "?" + c.urlParams_.Encode()
52948	req, err := http.NewRequest("GET", urls, body)
52949	if err != nil {
52950		return nil, err
52951	}
52952	req.Header = reqHeaders
52953	googleapi.Expand(req.URL, map[string]string{
52954		"name": c.name,
52955	})
52956	return gensupport.SendRequest(c.ctx_, c.s.client, req)
52957}
52958
52959// Do executes the "dialogflow.projects.operations.get" call.
52960// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
52961// Any non-2xx status code is an error. Response headers are in either
52962// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
52963// was returned at all) in error.(*googleapi.Error).Header. Use
52964// googleapi.IsNotModified to check whether the returned error was
52965// because http.StatusNotModified was returned.
52966func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
52967	gensupport.SetOptions(c.urlParams_, opts...)
52968	res, err := c.doRequest("json")
52969	if res != nil && res.StatusCode == http.StatusNotModified {
52970		if res.Body != nil {
52971			res.Body.Close()
52972		}
52973		return nil, &googleapi.Error{
52974			Code:   res.StatusCode,
52975			Header: res.Header,
52976		}
52977	}
52978	if err != nil {
52979		return nil, err
52980	}
52981	defer googleapi.CloseBody(res)
52982	if err := googleapi.CheckResponse(res); err != nil {
52983		return nil, err
52984	}
52985	ret := &GoogleLongrunningOperation{
52986		ServerResponse: googleapi.ServerResponse{
52987			Header:         res.Header,
52988			HTTPStatusCode: res.StatusCode,
52989		},
52990	}
52991	target := &ret
52992	if err := gensupport.DecodeResponse(target, res); err != nil {
52993		return nil, err
52994	}
52995	return ret, nil
52996	// {
52997	//   "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.",
52998	//   "flatPath": "v2beta1/projects/{projectsId}/operations/{operationsId}",
52999	//   "httpMethod": "GET",
53000	//   "id": "dialogflow.projects.operations.get",
53001	//   "parameterOrder": [
53002	//     "name"
53003	//   ],
53004	//   "parameters": {
53005	//     "name": {
53006	//       "description": "The name of the operation resource.",
53007	//       "location": "path",
53008	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
53009	//       "required": true,
53010	//       "type": "string"
53011	//     }
53012	//   },
53013	//   "path": "v2beta1/{+name}",
53014	//   "response": {
53015	//     "$ref": "GoogleLongrunningOperation"
53016	//   },
53017	//   "scopes": [
53018	//     "https://www.googleapis.com/auth/cloud-platform",
53019	//     "https://www.googleapis.com/auth/dialogflow"
53020	//   ]
53021	// }
53022
53023}
53024
53025// method id "dialogflow.projects.operations.list":
53026
53027type ProjectsOperationsListCall struct {
53028	s            *Service
53029	name         string
53030	urlParams_   gensupport.URLParams
53031	ifNoneMatch_ string
53032	ctx_         context.Context
53033	header_      http.Header
53034}
53035
53036// List: Lists operations that match the specified filter in the
53037// request. If the server doesn't support this method, it returns
53038// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
53039// override the binding to use different resource name schemes, such as
53040// `users/*/operations`. To override the binding, API services can add a
53041// binding such as "/v1/{name=users/*}/operations" to their service
53042// configuration. For backwards compatibility, the default name includes
53043// the operations collection id, however overriding users must ensure
53044// the name binding is the parent resource, without the operations
53045// collection id.
53046//
53047// - name: The name of the operation's parent resource.
53048func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
53049	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
53050	c.name = name
53051	return c
53052}
53053
53054// Filter sets the optional parameter "filter": The standard list
53055// filter.
53056func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
53057	c.urlParams_.Set("filter", filter)
53058	return c
53059}
53060
53061// PageSize sets the optional parameter "pageSize": The standard list
53062// page size.
53063func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
53064	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
53065	return c
53066}
53067
53068// PageToken sets the optional parameter "pageToken": The standard list
53069// page token.
53070func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
53071	c.urlParams_.Set("pageToken", pageToken)
53072	return c
53073}
53074
53075// Fields allows partial responses to be retrieved. See
53076// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
53077// for more information.
53078func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
53079	c.urlParams_.Set("fields", googleapi.CombineFields(s))
53080	return c
53081}
53082
53083// IfNoneMatch sets the optional parameter which makes the operation
53084// fail if the object's ETag matches the given value. This is useful for
53085// getting updates only after the object has changed since the last
53086// request. Use googleapi.IsNotModified to check whether the response
53087// error from Do is the result of In-None-Match.
53088func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
53089	c.ifNoneMatch_ = entityTag
53090	return c
53091}
53092
53093// Context sets the context to be used in this call's Do method. Any
53094// pending HTTP request will be aborted if the provided context is
53095// canceled.
53096func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
53097	c.ctx_ = ctx
53098	return c
53099}
53100
53101// Header returns an http.Header that can be modified by the caller to
53102// add HTTP headers to the request.
53103func (c *ProjectsOperationsListCall) Header() http.Header {
53104	if c.header_ == nil {
53105		c.header_ = make(http.Header)
53106	}
53107	return c.header_
53108}
53109
53110func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
53111	reqHeaders := make(http.Header)
53112	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
53113	for k, v := range c.header_ {
53114		reqHeaders[k] = v
53115	}
53116	reqHeaders.Set("User-Agent", c.s.userAgent())
53117	if c.ifNoneMatch_ != "" {
53118		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
53119	}
53120	var body io.Reader = nil
53121	c.urlParams_.Set("alt", alt)
53122	c.urlParams_.Set("prettyPrint", "false")
53123	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
53124	urls += "?" + c.urlParams_.Encode()
53125	req, err := http.NewRequest("GET", urls, body)
53126	if err != nil {
53127		return nil, err
53128	}
53129	req.Header = reqHeaders
53130	googleapi.Expand(req.URL, map[string]string{
53131		"name": c.name,
53132	})
53133	return gensupport.SendRequest(c.ctx_, c.s.client, req)
53134}
53135
53136// Do executes the "dialogflow.projects.operations.list" call.
53137// Exactly one of *GoogleLongrunningListOperationsResponse or error will
53138// be non-nil. Any non-2xx status code is an error. Response headers are
53139// in either
53140// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
53141// a response was returned at all) in error.(*googleapi.Error).Header.
53142// Use googleapi.IsNotModified to check whether the returned error was
53143// because http.StatusNotModified was returned.
53144func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
53145	gensupport.SetOptions(c.urlParams_, opts...)
53146	res, err := c.doRequest("json")
53147	if res != nil && res.StatusCode == http.StatusNotModified {
53148		if res.Body != nil {
53149			res.Body.Close()
53150		}
53151		return nil, &googleapi.Error{
53152			Code:   res.StatusCode,
53153			Header: res.Header,
53154		}
53155	}
53156	if err != nil {
53157		return nil, err
53158	}
53159	defer googleapi.CloseBody(res)
53160	if err := googleapi.CheckResponse(res); err != nil {
53161		return nil, err
53162	}
53163	ret := &GoogleLongrunningListOperationsResponse{
53164		ServerResponse: googleapi.ServerResponse{
53165			Header:         res.Header,
53166			HTTPStatusCode: res.StatusCode,
53167		},
53168	}
53169	target := &ret
53170	if err := gensupport.DecodeResponse(target, res); err != nil {
53171		return nil, err
53172	}
53173	return ret, nil
53174	// {
53175	//   "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.",
53176	//   "flatPath": "v2beta1/projects/{projectsId}/operations",
53177	//   "httpMethod": "GET",
53178	//   "id": "dialogflow.projects.operations.list",
53179	//   "parameterOrder": [
53180	//     "name"
53181	//   ],
53182	//   "parameters": {
53183	//     "filter": {
53184	//       "description": "The standard list filter.",
53185	//       "location": "query",
53186	//       "type": "string"
53187	//     },
53188	//     "name": {
53189	//       "description": "The name of the operation's parent resource.",
53190	//       "location": "path",
53191	//       "pattern": "^projects/[^/]+$",
53192	//       "required": true,
53193	//       "type": "string"
53194	//     },
53195	//     "pageSize": {
53196	//       "description": "The standard list page size.",
53197	//       "format": "int32",
53198	//       "location": "query",
53199	//       "type": "integer"
53200	//     },
53201	//     "pageToken": {
53202	//       "description": "The standard list page token.",
53203	//       "location": "query",
53204	//       "type": "string"
53205	//     }
53206	//   },
53207	//   "path": "v2beta1/{+name}/operations",
53208	//   "response": {
53209	//     "$ref": "GoogleLongrunningListOperationsResponse"
53210	//   },
53211	//   "scopes": [
53212	//     "https://www.googleapis.com/auth/cloud-platform",
53213	//     "https://www.googleapis.com/auth/dialogflow"
53214	//   ]
53215	// }
53216
53217}
53218
53219// Pages invokes f for each page of results.
53220// A non-nil error returned from f will halt the iteration.
53221// The provided context supersedes any context provided to the Context method.
53222func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
53223	c.ctx_ = ctx
53224	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
53225	for {
53226		x, err := c.Do()
53227		if err != nil {
53228			return err
53229		}
53230		if err := f(x); err != nil {
53231			return err
53232		}
53233		if x.NextPageToken == "" {
53234			return nil
53235		}
53236		c.PageToken(x.NextPageToken)
53237	}
53238}
53239