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/v3beta1"
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/v3beta1"
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:v3beta1"
81const apiName = "dialogflow"
82const apiVersion = "v3beta1"
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.Locations = NewProjectsLocationsService(s)
151	rs.Operations = NewProjectsOperationsService(s)
152	return rs
153}
154
155type ProjectsService struct {
156	s *Service
157
158	Locations *ProjectsLocationsService
159
160	Operations *ProjectsOperationsService
161}
162
163func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
164	rs := &ProjectsLocationsService{s: s}
165	rs.Agents = NewProjectsLocationsAgentsService(s)
166	rs.Operations = NewProjectsLocationsOperationsService(s)
167	rs.SecuritySettings = NewProjectsLocationsSecuritySettingsService(s)
168	return rs
169}
170
171type ProjectsLocationsService struct {
172	s *Service
173
174	Agents *ProjectsLocationsAgentsService
175
176	Operations *ProjectsLocationsOperationsService
177
178	SecuritySettings *ProjectsLocationsSecuritySettingsService
179}
180
181func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsService {
182	rs := &ProjectsLocationsAgentsService{s: s}
183	rs.EntityTypes = NewProjectsLocationsAgentsEntityTypesService(s)
184	rs.Environments = NewProjectsLocationsAgentsEnvironmentsService(s)
185	rs.Flows = NewProjectsLocationsAgentsFlowsService(s)
186	rs.Intents = NewProjectsLocationsAgentsIntentsService(s)
187	rs.Sessions = NewProjectsLocationsAgentsSessionsService(s)
188	rs.TestCases = NewProjectsLocationsAgentsTestCasesService(s)
189	rs.Webhooks = NewProjectsLocationsAgentsWebhooksService(s)
190	return rs
191}
192
193type ProjectsLocationsAgentsService struct {
194	s *Service
195
196	EntityTypes *ProjectsLocationsAgentsEntityTypesService
197
198	Environments *ProjectsLocationsAgentsEnvironmentsService
199
200	Flows *ProjectsLocationsAgentsFlowsService
201
202	Intents *ProjectsLocationsAgentsIntentsService
203
204	Sessions *ProjectsLocationsAgentsSessionsService
205
206	TestCases *ProjectsLocationsAgentsTestCasesService
207
208	Webhooks *ProjectsLocationsAgentsWebhooksService
209}
210
211func NewProjectsLocationsAgentsEntityTypesService(s *Service) *ProjectsLocationsAgentsEntityTypesService {
212	rs := &ProjectsLocationsAgentsEntityTypesService{s: s}
213	return rs
214}
215
216type ProjectsLocationsAgentsEntityTypesService struct {
217	s *Service
218}
219
220func NewProjectsLocationsAgentsEnvironmentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsService {
221	rs := &ProjectsLocationsAgentsEnvironmentsService{s: s}
222	rs.Experiments = NewProjectsLocationsAgentsEnvironmentsExperimentsService(s)
223	rs.Sessions = NewProjectsLocationsAgentsEnvironmentsSessionsService(s)
224	return rs
225}
226
227type ProjectsLocationsAgentsEnvironmentsService struct {
228	s *Service
229
230	Experiments *ProjectsLocationsAgentsEnvironmentsExperimentsService
231
232	Sessions *ProjectsLocationsAgentsEnvironmentsSessionsService
233}
234
235func NewProjectsLocationsAgentsEnvironmentsExperimentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsExperimentsService {
236	rs := &ProjectsLocationsAgentsEnvironmentsExperimentsService{s: s}
237	return rs
238}
239
240type ProjectsLocationsAgentsEnvironmentsExperimentsService struct {
241	s *Service
242}
243
244func NewProjectsLocationsAgentsEnvironmentsSessionsService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsService {
245	rs := &ProjectsLocationsAgentsEnvironmentsSessionsService{s: s}
246	rs.EntityTypes = NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s)
247	return rs
248}
249
250type ProjectsLocationsAgentsEnvironmentsSessionsService struct {
251	s *Service
252
253	EntityTypes *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService
254}
255
256func NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService {
257	rs := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService{s: s}
258	return rs
259}
260
261type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService struct {
262	s *Service
263}
264
265func NewProjectsLocationsAgentsFlowsService(s *Service) *ProjectsLocationsAgentsFlowsService {
266	rs := &ProjectsLocationsAgentsFlowsService{s: s}
267	rs.Pages = NewProjectsLocationsAgentsFlowsPagesService(s)
268	rs.TransitionRouteGroups = NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s)
269	rs.Versions = NewProjectsLocationsAgentsFlowsVersionsService(s)
270	return rs
271}
272
273type ProjectsLocationsAgentsFlowsService struct {
274	s *Service
275
276	Pages *ProjectsLocationsAgentsFlowsPagesService
277
278	TransitionRouteGroups *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService
279
280	Versions *ProjectsLocationsAgentsFlowsVersionsService
281}
282
283func NewProjectsLocationsAgentsFlowsPagesService(s *Service) *ProjectsLocationsAgentsFlowsPagesService {
284	rs := &ProjectsLocationsAgentsFlowsPagesService{s: s}
285	return rs
286}
287
288type ProjectsLocationsAgentsFlowsPagesService struct {
289	s *Service
290}
291
292func NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService {
293	rs := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsService{s: s}
294	return rs
295}
296
297type ProjectsLocationsAgentsFlowsTransitionRouteGroupsService struct {
298	s *Service
299}
300
301func NewProjectsLocationsAgentsFlowsVersionsService(s *Service) *ProjectsLocationsAgentsFlowsVersionsService {
302	rs := &ProjectsLocationsAgentsFlowsVersionsService{s: s}
303	return rs
304}
305
306type ProjectsLocationsAgentsFlowsVersionsService struct {
307	s *Service
308}
309
310func NewProjectsLocationsAgentsIntentsService(s *Service) *ProjectsLocationsAgentsIntentsService {
311	rs := &ProjectsLocationsAgentsIntentsService{s: s}
312	return rs
313}
314
315type ProjectsLocationsAgentsIntentsService struct {
316	s *Service
317}
318
319func NewProjectsLocationsAgentsSessionsService(s *Service) *ProjectsLocationsAgentsSessionsService {
320	rs := &ProjectsLocationsAgentsSessionsService{s: s}
321	rs.EntityTypes = NewProjectsLocationsAgentsSessionsEntityTypesService(s)
322	return rs
323}
324
325type ProjectsLocationsAgentsSessionsService struct {
326	s *Service
327
328	EntityTypes *ProjectsLocationsAgentsSessionsEntityTypesService
329}
330
331func NewProjectsLocationsAgentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsSessionsEntityTypesService {
332	rs := &ProjectsLocationsAgentsSessionsEntityTypesService{s: s}
333	return rs
334}
335
336type ProjectsLocationsAgentsSessionsEntityTypesService struct {
337	s *Service
338}
339
340func NewProjectsLocationsAgentsTestCasesService(s *Service) *ProjectsLocationsAgentsTestCasesService {
341	rs := &ProjectsLocationsAgentsTestCasesService{s: s}
342	rs.Results = NewProjectsLocationsAgentsTestCasesResultsService(s)
343	return rs
344}
345
346type ProjectsLocationsAgentsTestCasesService struct {
347	s *Service
348
349	Results *ProjectsLocationsAgentsTestCasesResultsService
350}
351
352func NewProjectsLocationsAgentsTestCasesResultsService(s *Service) *ProjectsLocationsAgentsTestCasesResultsService {
353	rs := &ProjectsLocationsAgentsTestCasesResultsService{s: s}
354	return rs
355}
356
357type ProjectsLocationsAgentsTestCasesResultsService struct {
358	s *Service
359}
360
361func NewProjectsLocationsAgentsWebhooksService(s *Service) *ProjectsLocationsAgentsWebhooksService {
362	rs := &ProjectsLocationsAgentsWebhooksService{s: s}
363	return rs
364}
365
366type ProjectsLocationsAgentsWebhooksService struct {
367	s *Service
368}
369
370func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
371	rs := &ProjectsLocationsOperationsService{s: s}
372	return rs
373}
374
375type ProjectsLocationsOperationsService struct {
376	s *Service
377}
378
379func NewProjectsLocationsSecuritySettingsService(s *Service) *ProjectsLocationsSecuritySettingsService {
380	rs := &ProjectsLocationsSecuritySettingsService{s: s}
381	return rs
382}
383
384type ProjectsLocationsSecuritySettingsService struct {
385	s *Service
386}
387
388func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
389	rs := &ProjectsOperationsService{s: s}
390	return rs
391}
392
393type ProjectsOperationsService struct {
394	s *Service
395}
396
397// GoogleCloudDialogflowCxV3AudioInput: Represents the natural speech
398// audio to be processed.
399type GoogleCloudDialogflowCxV3AudioInput struct {
400	// Audio: The natural language speech audio to be processed. A single
401	// request can contain up to 1 minute of speech audio data. The
402	// transcribed text cannot contain more than 256 bytes. For
403	// non-streaming audio detect intent, both `config` and `audio` must be
404	// provided. For streaming audio detect intent, `config` must be
405	// provided in the first request and `audio` must be provided in all
406	// following requests.
407	Audio string `json:"audio,omitempty"`
408
409	// Config: Required. Instructs the speech recognizer how to process the
410	// speech audio.
411	Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
412
413	// ForceSendFields is a list of field names (e.g. "Audio") to
414	// unconditionally include in API requests. By default, fields with
415	// empty values are omitted from API requests. However, any non-pointer,
416	// non-interface field appearing in ForceSendFields will be sent to the
417	// server regardless of whether the field is empty or not. This may be
418	// used to include empty fields in Patch requests.
419	ForceSendFields []string `json:"-"`
420
421	// NullFields is a list of field names (e.g. "Audio") to include in API
422	// requests with the JSON null value. By default, fields with empty
423	// values are omitted from API requests. However, any field with an
424	// empty value appearing in NullFields will be sent to the server as
425	// null. It is an error if a field in this list has a non-empty value.
426	// This may be used to include null fields in Patch requests.
427	NullFields []string `json:"-"`
428}
429
430func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
431	type NoMethod GoogleCloudDialogflowCxV3AudioInput
432	raw := NoMethod(*s)
433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
434}
435
436// GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata: Metadata returned
437// for the TestCases.BatchRunTestCases long running operation.
438type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
439	// Errors: The test errors.
440	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
441
442	// ForceSendFields is a list of field names (e.g. "Errors") to
443	// unconditionally include in API requests. By default, fields with
444	// empty values are omitted from API requests. However, any non-pointer,
445	// non-interface field appearing in ForceSendFields will be sent to the
446	// server regardless of whether the field is empty or not. This may be
447	// used to include empty fields in Patch requests.
448	ForceSendFields []string `json:"-"`
449
450	// NullFields is a list of field names (e.g. "Errors") to include in API
451	// requests with the JSON null value. By default, fields with empty
452	// values are omitted from API requests. However, any field with an
453	// empty value appearing in NullFields will be sent to the server as
454	// null. It is an error if a field in this list has a non-empty value.
455	// This may be used to include null fields in Patch requests.
456	NullFields []string `json:"-"`
457}
458
459func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
460	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
461	raw := NoMethod(*s)
462	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
463}
464
465// GoogleCloudDialogflowCxV3BatchRunTestCasesResponse: The response
466// message for TestCases.BatchRunTestCases.
467type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
468	// Results: The test case results. The detailed conversation turns are
469	// empty in this response.
470	Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
471
472	// ForceSendFields is a list of field names (e.g. "Results") to
473	// unconditionally include in API requests. By default, fields with
474	// empty values are omitted from API requests. However, any non-pointer,
475	// non-interface field appearing in ForceSendFields will be sent to the
476	// server regardless of whether the field is empty or not. This may be
477	// used to include empty fields in Patch requests.
478	ForceSendFields []string `json:"-"`
479
480	// NullFields is a list of field names (e.g. "Results") to include in
481	// API requests with the JSON null value. By default, fields with empty
482	// values are omitted from API requests. However, any field with an
483	// empty value appearing in NullFields will be sent to the server as
484	// null. It is an error if a field in this list has a non-empty value.
485	// This may be used to include null fields in Patch requests.
486	NullFields []string `json:"-"`
487}
488
489func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
490	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
491	raw := NoMethod(*s)
492	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
493}
494
495// GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a
496// human and virtual agent. The human provides some input and the
497// virtual agent provides a response.
498type GoogleCloudDialogflowCxV3ConversationTurn struct {
499	// UserInput: The user input.
500	UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
501
502	// VirtualAgentOutput: The virtual agent output.
503	VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
504
505	// ForceSendFields is a list of field names (e.g. "UserInput") to
506	// unconditionally include in API requests. By default, fields with
507	// empty values are omitted from API requests. However, any non-pointer,
508	// non-interface field appearing in ForceSendFields will be sent to the
509	// server regardless of whether the field is empty or not. This may be
510	// used to include empty fields in Patch requests.
511	ForceSendFields []string `json:"-"`
512
513	// NullFields is a list of field names (e.g. "UserInput") to include in
514	// API requests with the JSON null value. By default, fields with empty
515	// values are omitted from API requests. However, any field with an
516	// empty value appearing in NullFields will be sent to the server as
517	// null. It is an error if a field in this list has a non-empty value.
518	// This may be used to include null fields in Patch requests.
519	NullFields []string `json:"-"`
520}
521
522func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
523	type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
524	raw := NoMethod(*s)
525	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
526}
527
528// GoogleCloudDialogflowCxV3ConversationTurnUserInput: The input from
529// the human user.
530type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
531	// InjectedParameters: Parameters that need to be injected into the
532	// conversation during intent detection.
533	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
534
535	// Input: Supports text input, event input, dtmf input in the test case.
536	Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
537
538	// IsWebhookEnabled: If webhooks should be allowed to trigger in
539	// response to the user utterance. Often if parameters are injected,
540	// webhooks should not be enabled.
541	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
542
543	// ForceSendFields is a list of field names (e.g. "InjectedParameters")
544	// to unconditionally include in API requests. By default, fields with
545	// empty values are omitted from API requests. However, any non-pointer,
546	// non-interface field appearing in ForceSendFields will be sent to the
547	// server regardless of whether the field is empty or not. This may be
548	// used to include empty fields in Patch requests.
549	ForceSendFields []string `json:"-"`
550
551	// NullFields is a list of field names (e.g. "InjectedParameters") to
552	// include in API requests with the JSON null value. By default, fields
553	// with empty values are omitted from API requests. However, any field
554	// with an empty value appearing in NullFields will be sent to the
555	// server as null. It is an error if a field in this list has a
556	// non-empty value. This may be used to include null fields in Patch
557	// requests.
558	NullFields []string `json:"-"`
559}
560
561func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
562	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
563	raw := NoMethod(*s)
564	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
565}
566
567// GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput: The
568// output from the virtual agent.
569type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
570	// CurrentPage: The Page on which the utterance was spoken. Only name
571	// and displayName will be set.
572	CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
573
574	// DiagnosticInfo: Required. Input only. The diagnostic info output for
575	// the turn.
576	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
577
578	// Differences: Output only. If this is part of a result conversation
579	// turn, the list of differences between the original run and the replay
580	// for this output, if any.
581	Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
582
583	// SessionParameters: The session parameters available to the bot at
584	// this point.
585	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
586
587	// Status: Response error from the agent in the test result. If set,
588	// other output is empty.
589	Status *GoogleRpcStatus `json:"status,omitempty"`
590
591	// TextResponses: The text responses from the agent for the turn.
592	TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
593
594	// TriggeredIntent: The Intent that triggered the response. Only name
595	// and displayName will be set.
596	TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
597
598	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
599	// unconditionally include in API requests. By default, fields with
600	// empty values are omitted from API requests. However, any non-pointer,
601	// non-interface field appearing in ForceSendFields will be sent to the
602	// server regardless of whether the field is empty or not. This may be
603	// used to include empty fields in Patch requests.
604	ForceSendFields []string `json:"-"`
605
606	// NullFields is a list of field names (e.g. "CurrentPage") to include
607	// in API requests with the JSON null value. By default, fields with
608	// empty values are omitted from API requests. However, any field with
609	// an empty value appearing in NullFields will be sent to the server as
610	// null. It is an error if a field in this list has a non-empty value.
611	// This may be used to include null fields in Patch requests.
612	NullFields []string `json:"-"`
613}
614
615func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
616	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
617	raw := NoMethod(*s)
618	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
619}
620
621// GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata: Metadata
622// for CreateDocument operation.
623type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
624	// GenericMetadata: The generic information of the operation.
625	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
626
627	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
628	// unconditionally include in API requests. By default, fields with
629	// empty values are omitted from API requests. However, any non-pointer,
630	// non-interface field appearing in ForceSendFields will be sent to the
631	// server regardless of whether the field is empty or not. This may be
632	// used to include empty fields in Patch requests.
633	ForceSendFields []string `json:"-"`
634
635	// NullFields is a list of field names (e.g. "GenericMetadata") to
636	// include in API requests with the JSON null value. By default, fields
637	// with empty values are omitted from API requests. However, any field
638	// with an empty value appearing in NullFields will be sent to the
639	// server as null. It is an error if a field in this list has a
640	// non-empty value. This may be used to include null fields in Patch
641	// requests.
642	NullFields []string `json:"-"`
643}
644
645func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
646	type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
647	raw := NoMethod(*s)
648	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
649}
650
651// GoogleCloudDialogflowCxV3CreateVersionOperationMetadata: Metadata
652// associated with the long running operation for
653// Versions.CreateVersion.
654type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
655	// Version: Name of the created version. Format:
656	// `projects//locations//agents//flows//versions/`.
657	Version string `json:"version,omitempty"`
658
659	// ForceSendFields is a list of field names (e.g. "Version") to
660	// unconditionally include in API requests. By default, fields with
661	// empty values are omitted from API requests. However, any non-pointer,
662	// non-interface field appearing in ForceSendFields will be sent to the
663	// server regardless of whether the field is empty or not. This may be
664	// used to include empty fields in Patch requests.
665	ForceSendFields []string `json:"-"`
666
667	// NullFields is a list of field names (e.g. "Version") to include in
668	// API requests with the JSON null value. By default, fields with empty
669	// values are omitted from API requests. However, any field with an
670	// empty value appearing in NullFields will be sent to the server as
671	// null. It is an error if a field in this list has a non-empty value.
672	// This may be used to include null fields in Patch requests.
673	NullFields []string `json:"-"`
674}
675
676func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
677	type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
678	raw := NoMethod(*s)
679	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
680}
681
682// GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata: Metadata
683// for DeleteDocument operation.
684type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
685	// GenericMetadata: The generic information of the operation.
686	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
687
688	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
689	// unconditionally include in API requests. By default, fields with
690	// empty values are omitted from API requests. However, any non-pointer,
691	// non-interface field appearing in ForceSendFields will be sent to the
692	// server regardless of whether the field is empty or not. This may be
693	// used to include empty fields in Patch requests.
694	ForceSendFields []string `json:"-"`
695
696	// NullFields is a list of field names (e.g. "GenericMetadata") to
697	// include in API requests with the JSON null value. By default, fields
698	// with empty values are omitted from API requests. However, any field
699	// with an empty value appearing in NullFields will be sent to the
700	// server as null. It is an error if a field in this list has a
701	// non-empty value. This may be used to include null fields in Patch
702	// requests.
703	NullFields []string `json:"-"`
704}
705
706func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
707	type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
708	raw := NoMethod(*s)
709	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
710}
711
712// GoogleCloudDialogflowCxV3DtmfInput: Represents the input for dtmf
713// event.
714type GoogleCloudDialogflowCxV3DtmfInput struct {
715	// Digits: The dtmf digits.
716	Digits string `json:"digits,omitempty"`
717
718	// FinishDigit: The finish digit (if any).
719	FinishDigit string `json:"finishDigit,omitempty"`
720
721	// ForceSendFields is a list of field names (e.g. "Digits") to
722	// unconditionally include in API requests. By default, fields with
723	// empty values are omitted from API requests. However, any non-pointer,
724	// non-interface field appearing in ForceSendFields will be sent to the
725	// server regardless of whether the field is empty or not. This may be
726	// used to include empty fields in Patch requests.
727	ForceSendFields []string `json:"-"`
728
729	// NullFields is a list of field names (e.g. "Digits") to include in API
730	// requests with the JSON null value. By default, fields with empty
731	// values are omitted from API requests. However, any field with an
732	// empty value appearing in NullFields will be sent to the server as
733	// null. It is an error if a field in this list has a non-empty value.
734	// This may be used to include null fields in Patch requests.
735	NullFields []string `json:"-"`
736}
737
738func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
739	type NoMethod GoogleCloudDialogflowCxV3DtmfInput
740	raw := NoMethod(*s)
741	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
742}
743
744// GoogleCloudDialogflowCxV3EventHandler: An event handler specifies an
745// event that can be handled during a session. When the specified event
746// happens, the following actions are taken in order: * If there is a
747// `trigger_fulfillment` associated with the event, it will be called. *
748// If there is a `target_page` associated with the event, the session
749// will transition into the specified page. * If there is a
750// `target_flow` associated with the event, the session will transition
751// into the specified flow.
752type GoogleCloudDialogflowCxV3EventHandler struct {
753	// Event: Required. The name of the event to handle.
754	Event string `json:"event,omitempty"`
755
756	// Name: Output only. The unique identifier of this event handler.
757	Name string `json:"name,omitempty"`
758
759	// TargetFlow: The target flow to transition to. Format:
760	// `projects//locations//agents//flows/`.
761	TargetFlow string `json:"targetFlow,omitempty"`
762
763	// TargetPage: The target page to transition to. Format:
764	// `projects//locations//agents//flows//pages/`.
765	TargetPage string `json:"targetPage,omitempty"`
766
767	// TriggerFulfillment: The fulfillment to call when the event occurs.
768	// Handling webhook errors with a fulfillment enabled with webhook could
769	// cause infinite loop. It is invalid to specify such fulfillment for a
770	// handler handling webhooks.
771	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
772
773	// ForceSendFields is a list of field names (e.g. "Event") to
774	// unconditionally include in API requests. By default, fields with
775	// empty values are omitted from API requests. However, any non-pointer,
776	// non-interface field appearing in ForceSendFields will be sent to the
777	// server regardless of whether the field is empty or not. This may be
778	// used to include empty fields in Patch requests.
779	ForceSendFields []string `json:"-"`
780
781	// NullFields is a list of field names (e.g. "Event") to include in API
782	// requests with the JSON null value. By default, fields with empty
783	// values are omitted from API requests. However, any field with an
784	// empty value appearing in NullFields will be sent to the server as
785	// null. It is an error if a field in this list has a non-empty value.
786	// This may be used to include null fields in Patch requests.
787	NullFields []string `json:"-"`
788}
789
790func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
791	type NoMethod GoogleCloudDialogflowCxV3EventHandler
792	raw := NoMethod(*s)
793	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
794}
795
796// GoogleCloudDialogflowCxV3EventInput: Represents the event to trigger.
797type GoogleCloudDialogflowCxV3EventInput struct {
798	// Event: Name of the event.
799	Event string `json:"event,omitempty"`
800
801	// ForceSendFields is a list of field names (e.g. "Event") to
802	// unconditionally include in API requests. By default, fields with
803	// empty values are omitted from API requests. However, any non-pointer,
804	// non-interface field appearing in ForceSendFields will be sent to the
805	// server regardless of whether the field is empty or not. This may be
806	// used to include empty fields in Patch requests.
807	ForceSendFields []string `json:"-"`
808
809	// NullFields is a list of field names (e.g. "Event") to include in API
810	// requests with the JSON null value. By default, fields with empty
811	// values are omitted from API requests. However, any field with an
812	// empty value appearing in NullFields will be sent to the server as
813	// null. It is an error if a field in this list has a non-empty value.
814	// This may be used to include null fields in Patch requests.
815	NullFields []string `json:"-"`
816}
817
818func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
819	type NoMethod GoogleCloudDialogflowCxV3EventInput
820	raw := NoMethod(*s)
821	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
822}
823
824// GoogleCloudDialogflowCxV3ExportAgentResponse: The response message
825// for Agents.ExportAgent.
826type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
827	// AgentContent: Uncompressed raw byte content for agent.
828	AgentContent string `json:"agentContent,omitempty"`
829
830	// AgentUri: The URI to a file containing the exported agent. This field
831	// is populated only if `agent_uri` is specified in ExportAgentRequest.
832	AgentUri string `json:"agentUri,omitempty"`
833
834	// ForceSendFields is a list of field names (e.g. "AgentContent") to
835	// unconditionally include in API requests. By default, fields with
836	// empty values are omitted from API requests. However, any non-pointer,
837	// non-interface field appearing in ForceSendFields will be sent to the
838	// server regardless of whether the field is empty or not. This may be
839	// used to include empty fields in Patch requests.
840	ForceSendFields []string `json:"-"`
841
842	// NullFields is a list of field names (e.g. "AgentContent") to include
843	// in API requests with the JSON null value. By default, fields with
844	// empty values are omitted from API requests. However, any field with
845	// an empty value appearing in NullFields will be sent to the server as
846	// null. It is an error if a field in this list has a non-empty value.
847	// This may be used to include null fields in Patch requests.
848	NullFields []string `json:"-"`
849}
850
851func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
852	type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
853	raw := NoMethod(*s)
854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
855}
856
857// GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned
858// for the TestCases.ExportTestCases long running operation.
859type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
860}
861
862// GoogleCloudDialogflowCxV3ExportTestCasesResponse: The response
863// message for TestCases.ExportTestCases.
864type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
865	// Content: Uncompressed raw byte content for test cases.
866	Content string `json:"content,omitempty"`
867
868	// GcsUri: The URI to a file containing the exported test cases. This
869	// field is populated only if `gcs_uri` is specified in
870	// ExportTestCasesRequest.
871	GcsUri string `json:"gcsUri,omitempty"`
872
873	// ForceSendFields is a list of field names (e.g. "Content") to
874	// unconditionally include in API requests. By default, fields with
875	// empty values are omitted from API requests. However, any non-pointer,
876	// non-interface field appearing in ForceSendFields will be sent to the
877	// server regardless of whether the field is empty or not. This may be
878	// used to include empty fields in Patch requests.
879	ForceSendFields []string `json:"-"`
880
881	// NullFields is a list of field names (e.g. "Content") to include in
882	// API requests with the JSON null value. By default, fields with empty
883	// values are omitted from API requests. However, any field with an
884	// empty value appearing in NullFields will be sent to the server as
885	// null. It is an error if a field in this list has a non-empty value.
886	// This may be used to include null fields in Patch requests.
887	NullFields []string `json:"-"`
888}
889
890func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
891	type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
892	raw := NoMethod(*s)
893	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
894}
895
896// GoogleCloudDialogflowCxV3Form: A form is a data model that groups
897// related parameters that can be collected from the user. The process
898// in which the agent prompts the user and collects parameter values
899// from the user is called form filling. A form can be added to a page.
900// When form filling is done, the filled parameters will be written to
901// the session.
902type GoogleCloudDialogflowCxV3Form struct {
903	// Parameters: Parameters to collect from the user.
904	Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
905
906	// ForceSendFields is a list of field names (e.g. "Parameters") to
907	// unconditionally include in API requests. By default, fields with
908	// empty values are omitted from API requests. However, any non-pointer,
909	// non-interface field appearing in ForceSendFields will be sent to the
910	// server regardless of whether the field is empty or not. This may be
911	// used to include empty fields in Patch requests.
912	ForceSendFields []string `json:"-"`
913
914	// NullFields is a list of field names (e.g. "Parameters") to include in
915	// API requests with the JSON null value. By default, fields with empty
916	// values are omitted from API requests. However, any field with an
917	// empty value appearing in NullFields will be sent to the server as
918	// null. It is an error if a field in this list has a non-empty value.
919	// This may be used to include null fields in Patch requests.
920	NullFields []string `json:"-"`
921}
922
923func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
924	type NoMethod GoogleCloudDialogflowCxV3Form
925	raw := NoMethod(*s)
926	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
927}
928
929// GoogleCloudDialogflowCxV3FormParameter: Represents a form parameter.
930type GoogleCloudDialogflowCxV3FormParameter struct {
931	// DefaultValue: The default value of an optional parameter. If the
932	// parameter is required, the default value will be ignored.
933	DefaultValue interface{} `json:"defaultValue,omitempty"`
934
935	// DisplayName: Required. The human-readable name of the parameter,
936	// unique within the form.
937	DisplayName string `json:"displayName,omitempty"`
938
939	// EntityType: Required. The entity type of the parameter. Format:
940	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
941	// types (for example,
942	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
943	// `projects//locations//agents//entityTypes/` for developer entity
944	// types.
945	EntityType string `json:"entityType,omitempty"`
946
947	// FillBehavior: Required. Defines fill behavior for the parameter.
948	FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
949
950	// IsList: Indicates whether the parameter represents a list of values.
951	IsList bool `json:"isList,omitempty"`
952
953	// Redact: Indicates whether the parameter content should be redacted in
954	// log. If redaction is enabled, the parameter content will be replaced
955	// by parameter name during logging. Note: the parameter content is
956	// subject to redaction if either parameter level redaction or entity
957	// type level redaction is enabled.
958	Redact bool `json:"redact,omitempty"`
959
960	// Required: Indicates whether the parameter is required. Optional
961	// parameters will not trigger prompts; however, they are filled if the
962	// user specifies them. Required parameters must be filled before form
963	// filling concludes.
964	Required bool `json:"required,omitempty"`
965
966	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
967	// unconditionally include in API requests. By default, fields with
968	// empty values are omitted from API requests. However, any non-pointer,
969	// non-interface field appearing in ForceSendFields will be sent to the
970	// server regardless of whether the field is empty or not. This may be
971	// used to include empty fields in Patch requests.
972	ForceSendFields []string `json:"-"`
973
974	// NullFields is a list of field names (e.g. "DefaultValue") to include
975	// in API requests with the JSON null value. By default, fields with
976	// empty values are omitted from API requests. However, any field with
977	// an empty value appearing in NullFields will be sent to the server as
978	// null. It is an error if a field in this list has a non-empty value.
979	// This may be used to include null fields in Patch requests.
980	NullFields []string `json:"-"`
981}
982
983func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
984	type NoMethod GoogleCloudDialogflowCxV3FormParameter
985	raw := NoMethod(*s)
986	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
987}
988
989// GoogleCloudDialogflowCxV3FormParameterFillBehavior: Configuration for
990// how the filling of a parameter should be handled.
991type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
992	// InitialPromptFulfillment: Required. The fulfillment to provide the
993	// initial prompt that the agent can present to the user in order to
994	// fill the parameter.
995	InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
996
997	// RepromptEventHandlers: The handlers for parameter-level events, used
998	// to provide reprompt for the parameter or transition to a different
999	// page/flow. The supported events are: * `sys.no-match-`, where N can
1000	// be from 1 to 6 * `sys.no-match-default` * `sys.no-input-`, where N
1001	// can be from 1 to 6 * `sys.no-input-default` * `sys.invalid-parameter`
1002	// `initial_prompt_fulfillment` provides the first prompt for the
1003	// parameter. If the user's response does not fill the parameter, a
1004	// no-match/no-input event will be triggered, and the fulfillment
1005	// associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
1006	// defined) will be called to provide a prompt. The
1007	// `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond
1008	// to the next no-match/no-input event, and so on. A
1009	// `sys.no-match-default` or `sys.no-input-default` handler will be used
1010	// to handle all following no-match/no-input events after all numbered
1011	// no-match/no-input handlers for the parameter are consumed. A
1012	// `sys.invalid-parameter` handler can be defined to handle the case
1013	// where the parameter values have been `invalidated` by webhook. For
1014	// example, if the user's response fill the parameter, however the
1015	// parameter was invalidated by webhook, the fulfillment associated with
1016	// the `sys.invalid-parameter` handler (if defined) will be called to
1017	// provide a prompt. If the event handler for the corresponding event
1018	// can't be found on the parameter, `initial_prompt_fulfillment` will be
1019	// re-prompted.
1020	RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
1021
1022	// ForceSendFields is a list of field names (e.g.
1023	// "InitialPromptFulfillment") to unconditionally include in API
1024	// requests. By default, fields with empty values are omitted from API
1025	// requests. However, any non-pointer, non-interface field appearing in
1026	// ForceSendFields will be sent to the server regardless of whether the
1027	// field is empty or not. This may be used to include empty fields in
1028	// Patch requests.
1029	ForceSendFields []string `json:"-"`
1030
1031	// NullFields is a list of field names (e.g. "InitialPromptFulfillment")
1032	// to include in API requests with the JSON null value. By default,
1033	// fields with empty values are omitted from API requests. However, any
1034	// field with an empty value appearing in NullFields will be sent to the
1035	// server as null. It is an error if a field in this list has a
1036	// non-empty value. This may be used to include null fields in Patch
1037	// requests.
1038	NullFields []string `json:"-"`
1039}
1040
1041func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
1042	type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
1043	raw := NoMethod(*s)
1044	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1045}
1046
1047// GoogleCloudDialogflowCxV3Fulfillment: A fulfillment can do one or
1048// more of the following actions at the same time: * Generate rich
1049// message responses. * Set parameter values. * Call the webhook.
1050// Fulfillments can be called at various stages in the Page or Form
1051// lifecycle. For example, when a DetectIntentRequest drives a session
1052// to enter a new page, the page's entry fulfillment can add a static
1053// response to the QueryResult in the returning DetectIntentResponse,
1054// call the webhook (for example, to load user data from a database), or
1055// both.
1056type GoogleCloudDialogflowCxV3Fulfillment struct {
1057	// ConditionalCases: Conditional cases for this fulfillment.
1058	ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
1059
1060	// Messages: The list of rich message responses to present to the user.
1061	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
1062
1063	// SetParameterActions: Set parameter values before executing the
1064	// webhook.
1065	SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
1066
1067	// Tag: The tag used by the webhook to identify which fulfillment is
1068	// being called. This field is required if `webhook` is specified.
1069	Tag string `json:"tag,omitempty"`
1070
1071	// Webhook: The webhook to call. Format:
1072	// `projects//locations//agents//webhooks/`.
1073	Webhook string `json:"webhook,omitempty"`
1074
1075	// ForceSendFields is a list of field names (e.g. "ConditionalCases") to
1076	// unconditionally include in API requests. By default, fields with
1077	// empty values are omitted from API requests. However, any non-pointer,
1078	// non-interface field appearing in ForceSendFields will be sent to the
1079	// server regardless of whether the field is empty or not. This may be
1080	// used to include empty fields in Patch requests.
1081	ForceSendFields []string `json:"-"`
1082
1083	// NullFields is a list of field names (e.g. "ConditionalCases") to
1084	// include in API requests with the JSON null value. By default, fields
1085	// with empty values are omitted from API requests. However, any field
1086	// with an empty value appearing in NullFields will be sent to the
1087	// server as null. It is an error if a field in this list has a
1088	// non-empty value. This may be used to include null fields in Patch
1089	// requests.
1090	NullFields []string `json:"-"`
1091}
1092
1093func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
1094	type NoMethod GoogleCloudDialogflowCxV3Fulfillment
1095	raw := NoMethod(*s)
1096	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1097}
1098
1099// GoogleCloudDialogflowCxV3FulfillmentConditionalCases: A list of
1100// cascading if-else conditions. Cases are mutually exclusive. The first
1101// one with a matching condition is selected, all the rest ignored.
1102type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
1103	// Cases: A list of cascading if-else conditions.
1104	Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
1105
1106	// ForceSendFields is a list of field names (e.g. "Cases") to
1107	// unconditionally include in API requests. By default, fields with
1108	// empty values are omitted from API requests. However, any non-pointer,
1109	// non-interface field appearing in ForceSendFields will be sent to the
1110	// server regardless of whether the field is empty or not. This may be
1111	// used to include empty fields in Patch requests.
1112	ForceSendFields []string `json:"-"`
1113
1114	// NullFields is a list of field names (e.g. "Cases") to include in API
1115	// requests with the JSON null value. By default, fields with empty
1116	// values are omitted from API requests. However, any field with an
1117	// empty value appearing in NullFields will be sent to the server as
1118	// null. It is an error if a field in this list has a non-empty value.
1119	// This may be used to include null fields in Patch requests.
1120	NullFields []string `json:"-"`
1121}
1122
1123func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
1124	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
1125	raw := NoMethod(*s)
1126	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1127}
1128
1129// GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase: Each case
1130// has a Boolean condition. When it is evaluated to be True, the
1131// corresponding messages will be selected and evaluated recursively.
1132type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
1133	// CaseContent: A list of case content.
1134	CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
1135
1136	// Condition: The condition to activate and select this case. Empty
1137	// means the condition is always true. The condition is evaluated
1138	// against form parameters or session parameters. See the conditions
1139	// reference
1140	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1141	Condition string `json:"condition,omitempty"`
1142
1143	// ForceSendFields is a list of field names (e.g. "CaseContent") to
1144	// unconditionally include in API requests. By default, fields with
1145	// empty values are omitted from API requests. However, any non-pointer,
1146	// non-interface field appearing in ForceSendFields will be sent to the
1147	// server regardless of whether the field is empty or not. This may be
1148	// used to include empty fields in Patch requests.
1149	ForceSendFields []string `json:"-"`
1150
1151	// NullFields is a list of field names (e.g. "CaseContent") to include
1152	// in API requests with the JSON null value. By default, fields with
1153	// empty values are omitted from API requests. However, any field with
1154	// an empty value appearing in NullFields will be sent to the server as
1155	// null. It is an error if a field in this list has a non-empty value.
1156	// This may be used to include null fields in Patch requests.
1157	NullFields []string `json:"-"`
1158}
1159
1160func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
1161	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
1162	raw := NoMethod(*s)
1163	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1164}
1165
1166// GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent:
1167// The list of messages or conditional cases to activate for this case.
1168type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
1169	// AdditionalCases: Additional cases to be evaluated.
1170	AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
1171
1172	// Message: Returned message.
1173	Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
1174
1175	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
1176	// unconditionally include in API requests. By default, fields with
1177	// empty values are omitted from API requests. However, any non-pointer,
1178	// non-interface field appearing in ForceSendFields will be sent to the
1179	// server regardless of whether the field is empty or not. This may be
1180	// used to include empty fields in Patch requests.
1181	ForceSendFields []string `json:"-"`
1182
1183	// NullFields is a list of field names (e.g. "AdditionalCases") to
1184	// include in API requests with the JSON null value. By default, fields
1185	// with empty values are omitted from API requests. However, any field
1186	// with an empty value appearing in NullFields will be sent to the
1187	// server as null. It is an error if a field in this list has a
1188	// non-empty value. This may be used to include null fields in Patch
1189	// requests.
1190	NullFields []string `json:"-"`
1191}
1192
1193func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
1194	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
1195	raw := NoMethod(*s)
1196	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1197}
1198
1199// GoogleCloudDialogflowCxV3FulfillmentSetParameterAction: Setting a
1200// parameter value.
1201type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
1202	// Parameter: Display name of the parameter.
1203	Parameter string `json:"parameter,omitempty"`
1204
1205	// Value: The new value of the parameter. A null value clears the
1206	// parameter.
1207	Value interface{} `json:"value,omitempty"`
1208
1209	// ForceSendFields is a list of field names (e.g. "Parameter") to
1210	// unconditionally include in API requests. By default, fields with
1211	// empty values are omitted from API requests. However, any non-pointer,
1212	// non-interface field appearing in ForceSendFields will be sent to the
1213	// server regardless of whether the field is empty or not. This may be
1214	// used to include empty fields in Patch requests.
1215	ForceSendFields []string `json:"-"`
1216
1217	// NullFields is a list of field names (e.g. "Parameter") to include in
1218	// API requests with the JSON null value. By default, fields with empty
1219	// values are omitted from API requests. However, any field with an
1220	// empty value appearing in NullFields will be sent to the server as
1221	// null. It is an error if a field in this list has a non-empty value.
1222	// This may be used to include null fields in Patch requests.
1223	NullFields []string `json:"-"`
1224}
1225
1226func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
1227	type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
1228	raw := NoMethod(*s)
1229	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1230}
1231
1232// GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata: Metadata
1233// in google::longrunning::Operation for Knowledge operations.
1234type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
1235	// State: Required. Output only. The current state of this operation.
1236	//
1237	// Possible values:
1238	//   "STATE_UNSPECIFIED" - State unspecified.
1239	//   "PENDING" - The operation has been created.
1240	//   "RUNNING" - The operation is currently running.
1241	//   "DONE" - The operation is done, either cancelled or completed.
1242	State string `json:"state,omitempty"`
1243
1244	// ForceSendFields is a list of field names (e.g. "State") to
1245	// unconditionally include in API requests. By default, fields with
1246	// empty values are omitted from API requests. However, any non-pointer,
1247	// non-interface field appearing in ForceSendFields will be sent to the
1248	// server regardless of whether the field is empty or not. This may be
1249	// used to include empty fields in Patch requests.
1250	ForceSendFields []string `json:"-"`
1251
1252	// NullFields is a list of field names (e.g. "State") to include in API
1253	// requests with the JSON null value. By default, fields with empty
1254	// values are omitted from API requests. However, any field with an
1255	// empty value appearing in NullFields will be sent to the server as
1256	// null. It is an error if a field in this list has a non-empty value.
1257	// This may be used to include null fields in Patch requests.
1258	NullFields []string `json:"-"`
1259}
1260
1261func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
1262	type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
1263	raw := NoMethod(*s)
1264	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1265}
1266
1267// GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata: Metadata
1268// for ImportDocuments operation.
1269type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
1270	// GenericMetadata: The generic information of the operation.
1271	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1272
1273	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
1274	// unconditionally include in API requests. By default, fields with
1275	// empty values are omitted from API requests. However, any non-pointer,
1276	// non-interface field appearing in ForceSendFields will be sent to the
1277	// server regardless of whether the field is empty or not. This may be
1278	// used to include empty fields in Patch requests.
1279	ForceSendFields []string `json:"-"`
1280
1281	// NullFields is a list of field names (e.g. "GenericMetadata") to
1282	// include in API requests with the JSON null value. By default, fields
1283	// with empty values are omitted from API requests. However, any field
1284	// with an empty value appearing in NullFields will be sent to the
1285	// server as null. It is an error if a field in this list has a
1286	// non-empty value. This may be used to include null fields in Patch
1287	// requests.
1288	NullFields []string `json:"-"`
1289}
1290
1291func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
1292	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
1293	raw := NoMethod(*s)
1294	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1295}
1296
1297// GoogleCloudDialogflowCxV3ImportDocumentsResponse: Response message
1298// for Documents.ImportDocuments.
1299type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
1300	// Warnings: Includes details about skipped documents or any other
1301	// warnings.
1302	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
1303
1304	// ForceSendFields is a list of field names (e.g. "Warnings") to
1305	// unconditionally include in API requests. By default, fields with
1306	// empty values are omitted from API requests. However, any non-pointer,
1307	// non-interface field appearing in ForceSendFields will be sent to the
1308	// server regardless of whether the field is empty or not. This may be
1309	// used to include empty fields in Patch requests.
1310	ForceSendFields []string `json:"-"`
1311
1312	// NullFields is a list of field names (e.g. "Warnings") to include in
1313	// API requests with the JSON null value. By default, fields with empty
1314	// values are omitted from API requests. However, any field with an
1315	// empty value appearing in NullFields will be sent to the server as
1316	// null. It is an error if a field in this list has a non-empty value.
1317	// This may be used to include null fields in Patch requests.
1318	NullFields []string `json:"-"`
1319}
1320
1321func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
1322	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
1323	raw := NoMethod(*s)
1324	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1325}
1326
1327// GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned
1328// for the TestCases.ImportTestCases long running operation.
1329type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
1330	// Errors: Errors for failed test cases.
1331	Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
1332
1333	// ForceSendFields is a list of field names (e.g. "Errors") to
1334	// unconditionally include in API requests. By default, fields with
1335	// empty values are omitted from API requests. However, any non-pointer,
1336	// non-interface field appearing in ForceSendFields will be sent to the
1337	// server regardless of whether the field is empty or not. This may be
1338	// used to include empty fields in Patch requests.
1339	ForceSendFields []string `json:"-"`
1340
1341	// NullFields is a list of field names (e.g. "Errors") to include in API
1342	// requests with the JSON null value. By default, fields with empty
1343	// values are omitted from API requests. However, any field with an
1344	// empty value appearing in NullFields will be sent to the server as
1345	// null. It is an error if a field in this list has a non-empty value.
1346	// This may be used to include null fields in Patch requests.
1347	NullFields []string `json:"-"`
1348}
1349
1350func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
1351	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
1352	raw := NoMethod(*s)
1353	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1354}
1355
1356// GoogleCloudDialogflowCxV3ImportTestCasesResponse: The response
1357// message for TestCases.ImportTestCases.
1358type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
1359	// Names: The unique identifiers of the new test cases. Format:
1360	// `projects//locations//agents//testCases/`.
1361	Names []string `json:"names,omitempty"`
1362
1363	// ForceSendFields is a list of field names (e.g. "Names") to
1364	// unconditionally include in API requests. By default, fields with
1365	// empty values are omitted from API requests. However, any non-pointer,
1366	// non-interface field appearing in ForceSendFields will be sent to the
1367	// server regardless of whether the field is empty or not. This may be
1368	// used to include empty fields in Patch requests.
1369	ForceSendFields []string `json:"-"`
1370
1371	// NullFields is a list of field names (e.g. "Names") to include in API
1372	// requests with the JSON null value. By default, fields with empty
1373	// values are omitted from API requests. However, any field with an
1374	// empty value appearing in NullFields will be sent to the server as
1375	// null. It is an error if a field in this list has a non-empty value.
1376	// This may be used to include null fields in Patch requests.
1377	NullFields []string `json:"-"`
1378}
1379
1380func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
1381	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
1382	raw := NoMethod(*s)
1383	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1384}
1385
1386// GoogleCloudDialogflowCxV3InputAudioConfig: Instructs the speech
1387// recognizer on how to process the audio content.
1388type GoogleCloudDialogflowCxV3InputAudioConfig struct {
1389	// AudioEncoding: Required. Audio encoding of the audio content to
1390	// process.
1391	//
1392	// Possible values:
1393	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
1394	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
1395	// little-endian samples (Linear PCM).
1396	//   "AUDIO_ENCODING_FLAC" -
1397	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
1398	// Audio Codec) is the recommended encoding because it is lossless
1399	// (therefore recognition is not compromised) and requires only about
1400	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
1401	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
1402	// are supported.
1403	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
1404	// samples using G.711 PCMU/mu-law.
1405	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
1406	// `sample_rate_hertz` must be 8000.
1407	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
1408	// `sample_rate_hertz` must be 16000.
1409	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
1410	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
1411	// `sample_rate_hertz` must be 16000.
1412	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
1413	// encodings is not recommended, if a very low bitrate encoding is
1414	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
1415	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
1416	// a header byte in each block, as in MIME type
1417	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
1418	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
1419	// The stream is a sequence of blocks, one block per RTP packet. Each
1420	// block starts with a byte containing the length of the block, in
1421	// bytes, followed by one or more frames of Speex data, padded to an
1422	// integral number of bytes (octets) as specified in RFC 5574. In other
1423	// words, each RTP header is replaced with a single byte containing the
1424	// block length. Only Speex wideband is supported. `sample_rate_hertz`
1425	// must be 16000.
1426	AudioEncoding string `json:"audioEncoding,omitempty"`
1427
1428	// EnableWordInfo: Optional. If `true`, Dialogflow returns
1429	// SpeechWordInfo in StreamingRecognitionResult with information about
1430	// the recognized speech words, e.g. start and end time offsets. If
1431	// false or unspecified, Speech doesn't return any word-level
1432	// information.
1433	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
1434
1435	// Model: Optional. Which Speech model to select for the given request.
1436	// Select the model best suited to your domain to get best results. If a
1437	// model is not explicitly specified, then we auto-select a model based
1438	// on the parameters in the InputAudioConfig. If enhanced speech model
1439	// is enabled for the agent and an enhanced version of the specified
1440	// model for the language does not exist, then the speech is recognized
1441	// using the standard version of the specified model. Refer to Cloud
1442	// Speech API documentation
1443	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
1444	// for more details.
1445	Model string `json:"model,omitempty"`
1446
1447	// ModelVariant: Optional. Which variant of the Speech model to use.
1448	//
1449	// Possible values:
1450	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
1451	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
1452	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
1453	// model that the caller is eligible for. Please see the [Dialogflow
1454	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
1455	// to make your project eligible for enhanced models.
1456	//   "USE_STANDARD" - Use standard model variant even if an enhanced
1457	// model is available. See the [Cloud Speech
1458	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
1459	// odels) for details about enhanced models.
1460	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
1461	// variant does not exist for the given model and request language,
1462	// Dialogflow falls back to the standard variant. The [Cloud Speech
1463	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
1464	// odels) describes which models have enhanced variants. * If the API
1465	// caller isn't eligible for enhanced models, Dialogflow returns an
1466	// error. Please see the [Dialogflow
1467	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
1468	// to make your project eligible.
1469	ModelVariant string `json:"modelVariant,omitempty"`
1470
1471	// PhraseHints: Optional. A list of strings containing words and phrases
1472	// that the speech recognizer should recognize with higher likelihood.
1473	// See the Cloud Speech documentation
1474	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
1475	// for more details.
1476	PhraseHints []string `json:"phraseHints,omitempty"`
1477
1478	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in
1479	// the query. Refer to Cloud Speech API documentation
1480	// (https://cloud.google.com/speech-to-text/docs/basics) for more
1481	// details.
1482	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
1483
1484	// SingleUtterance: Optional. If `false` (default), recognition does not
1485	// cease until the client closes the stream. If `true`, the recognizer
1486	// will detect a single spoken utterance in input audio. Recognition
1487	// ceases when it detects the audio's voice has stopped or paused. In
1488	// this case, once a detected intent is received, the client should
1489	// close the stream and start a new request with a new stream as needed.
1490	// Note: This setting is relevant only for streaming methods.
1491	SingleUtterance bool `json:"singleUtterance,omitempty"`
1492
1493	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
1494	// unconditionally include in API requests. By default, fields with
1495	// empty values are omitted from API requests. However, any non-pointer,
1496	// non-interface field appearing in ForceSendFields will be sent to the
1497	// server regardless of whether the field is empty or not. This may be
1498	// used to include empty fields in Patch requests.
1499	ForceSendFields []string `json:"-"`
1500
1501	// NullFields is a list of field names (e.g. "AudioEncoding") to include
1502	// in API requests with the JSON null value. By default, fields with
1503	// empty values are omitted from API requests. However, any field with
1504	// an empty value appearing in NullFields will be sent to the server as
1505	// null. It is an error if a field in this list has a non-empty value.
1506	// This may be used to include null fields in Patch requests.
1507	NullFields []string `json:"-"`
1508}
1509
1510func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
1511	type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
1512	raw := NoMethod(*s)
1513	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1514}
1515
1516// GoogleCloudDialogflowCxV3Intent: An intent represents a user's intent
1517// to interact with a conversational agent. You can provide information
1518// for the Dialogflow API to use to match user input to an intent by
1519// adding training phrases (i.e., examples of user input) to your
1520// intent.
1521type GoogleCloudDialogflowCxV3Intent struct {
1522	// Description: Optional. Human readable description for better
1523	// understanding an intent like its scope, content, result etc. Maximum
1524	// character limit: 140 characters.
1525	Description string `json:"description,omitempty"`
1526
1527	// DisplayName: Required. The human-readable name of the intent, unique
1528	// within the agent.
1529	DisplayName string `json:"displayName,omitempty"`
1530
1531	// IsFallback: Indicates whether this is a fallback intent. Currently
1532	// only default fallback intent is allowed in the agent, which is added
1533	// upon agent creation. Adding training phrases to fallback intent is
1534	// useful in the case of requests that are mistakenly matched, since
1535	// training phrases assigned to fallback intents act as negative
1536	// examples that triggers no-match event.
1537	IsFallback bool `json:"isFallback,omitempty"`
1538
1539	// Labels: Optional. The key/value metadata to label an intent. Labels
1540	// can contain lowercase letters, digits and the symbols '-' and '_'.
1541	// International characters are allowed, including letters from unicase
1542	// alphabets. Keys must start with a letter. Keys and values can be no
1543	// longer than 63 characters and no more than 128 bytes. Prefix "sys."
1544	// is reserved for Dialogflow defined labels. Currently allowed
1545	// Dialogflow defined labels include: * sys.head * sys.contextual The
1546	// above labels do not require value. "sys.head" means the intent is a
1547	// head intent. "sys.contextual" means the intent is a contextual
1548	// intent.
1549	Labels map[string]string `json:"labels,omitempty"`
1550
1551	// Name: The unique identifier of the intent. Required for the
1552	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
1553	// automatically. Format: `projects//locations//agents//intents/`.
1554	Name string `json:"name,omitempty"`
1555
1556	// Parameters: The collection of parameters associated with the intent.
1557	Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
1558
1559	// Priority: The priority of this intent. Higher numbers represent
1560	// higher priorities. - If the supplied value is unspecified or 0, the
1561	// service translates the value to 500,000, which corresponds to the
1562	// `Normal` priority in the console. - If the supplied value is
1563	// negative, the intent is ignored in runtime detect intent requests.
1564	Priority int64 `json:"priority,omitempty"`
1565
1566	// TrainingPhrases: The collection of training phrases the agent is
1567	// trained on to identify the intent.
1568	TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
1569
1570	// ForceSendFields is a list of field names (e.g. "Description") to
1571	// unconditionally include in API requests. By default, fields with
1572	// empty values are omitted from API requests. However, any non-pointer,
1573	// non-interface field appearing in ForceSendFields will be sent to the
1574	// server regardless of whether the field is empty or not. This may be
1575	// used to include empty fields in Patch requests.
1576	ForceSendFields []string `json:"-"`
1577
1578	// NullFields is a list of field names (e.g. "Description") to include
1579	// in API requests with the JSON null value. By default, fields with
1580	// empty values are omitted from API requests. However, any field with
1581	// an empty value appearing in NullFields will be sent to the server as
1582	// null. It is an error if a field in this list has a non-empty value.
1583	// This may be used to include null fields in Patch requests.
1584	NullFields []string `json:"-"`
1585}
1586
1587func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
1588	type NoMethod GoogleCloudDialogflowCxV3Intent
1589	raw := NoMethod(*s)
1590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1591}
1592
1593// GoogleCloudDialogflowCxV3IntentInput: Represents the intent to
1594// trigger programmatically rather than as a result of natural language
1595// processing.
1596type GoogleCloudDialogflowCxV3IntentInput struct {
1597	// Intent: Required. The unique identifier of the intent. Format:
1598	// `projects//locations//agents//intents/`.
1599	Intent string `json:"intent,omitempty"`
1600
1601	// ForceSendFields is a list of field names (e.g. "Intent") to
1602	// unconditionally include in API requests. By default, fields with
1603	// empty values are omitted from API requests. However, any non-pointer,
1604	// non-interface field appearing in ForceSendFields will be sent to the
1605	// server regardless of whether the field is empty or not. This may be
1606	// used to include empty fields in Patch requests.
1607	ForceSendFields []string `json:"-"`
1608
1609	// NullFields is a list of field names (e.g. "Intent") to include in API
1610	// requests with the JSON null value. By default, fields with empty
1611	// values are omitted from API requests. However, any field with an
1612	// empty value appearing in NullFields will be sent to the server as
1613	// null. It is an error if a field in this list has a non-empty value.
1614	// This may be used to include null fields in Patch requests.
1615	NullFields []string `json:"-"`
1616}
1617
1618func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
1619	type NoMethod GoogleCloudDialogflowCxV3IntentInput
1620	raw := NoMethod(*s)
1621	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1622}
1623
1624// GoogleCloudDialogflowCxV3IntentParameter: Represents an intent
1625// parameter.
1626type GoogleCloudDialogflowCxV3IntentParameter struct {
1627	// EntityType: Required. The entity type of the parameter. Format:
1628	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
1629	// types (for example,
1630	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
1631	// `projects//locations//agents//entityTypes/` for developer entity
1632	// types.
1633	EntityType string `json:"entityType,omitempty"`
1634
1635	// Id: Required. The unique identifier of the parameter. This field is
1636	// used by training phrases to annotate their parts.
1637	Id string `json:"id,omitempty"`
1638
1639	// IsList: Indicates whether the parameter represents a list of values.
1640	IsList bool `json:"isList,omitempty"`
1641
1642	// Redact: Indicates whether the parameter content should be redacted in
1643	// log. If redaction is enabled, the parameter content will be replaced
1644	// by parameter name during logging. Note: the parameter content is
1645	// subject to redaction if either parameter level redaction or entity
1646	// type level redaction is enabled.
1647	Redact bool `json:"redact,omitempty"`
1648
1649	// ForceSendFields is a list of field names (e.g. "EntityType") to
1650	// unconditionally include in API requests. By default, fields with
1651	// empty values are omitted from API requests. However, any non-pointer,
1652	// non-interface field appearing in ForceSendFields will be sent to the
1653	// server regardless of whether the field is empty or not. This may be
1654	// used to include empty fields in Patch requests.
1655	ForceSendFields []string `json:"-"`
1656
1657	// NullFields is a list of field names (e.g. "EntityType") to include in
1658	// API requests with the JSON null value. By default, fields with empty
1659	// values are omitted from API requests. However, any field with an
1660	// empty value appearing in NullFields will be sent to the server as
1661	// null. It is an error if a field in this list has a non-empty value.
1662	// This may be used to include null fields in Patch requests.
1663	NullFields []string `json:"-"`
1664}
1665
1666func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
1667	type NoMethod GoogleCloudDialogflowCxV3IntentParameter
1668	raw := NoMethod(*s)
1669	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1670}
1671
1672// GoogleCloudDialogflowCxV3IntentTrainingPhrase: Represents an example
1673// that the agent is trained on to identify the intent.
1674type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
1675	// Id: Output only. The unique identifier of the training phrase.
1676	Id string `json:"id,omitempty"`
1677
1678	// Parts: Required. The ordered list of training phrase parts. The parts
1679	// are concatenated in order to form the training phrase. Note: The API
1680	// does not automatically annotate training phrases like the Dialogflow
1681	// Console does. Note: Do not forget to include whitespace at part
1682	// boundaries, so the training phrase is well formatted when the parts
1683	// are concatenated. If the training phrase does not need to be
1684	// annotated with parameters, you just need a single part with only the
1685	// Part.text field set. If you want to annotate the training phrase, you
1686	// must create multiple parts, where the fields of each part are
1687	// populated in one of two ways: - `Part.text` is set to a part of the
1688	// phrase that has no parameters. - `Part.text` is set to a part of the
1689	// phrase that you want to annotate, and the `parameter_id` field is
1690	// set.
1691	Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
1692
1693	// RepeatCount: Indicates how many times this example was added to the
1694	// intent.
1695	RepeatCount int64 `json:"repeatCount,omitempty"`
1696
1697	// ForceSendFields is a list of field names (e.g. "Id") to
1698	// unconditionally include in API requests. By default, fields with
1699	// empty values are omitted from API requests. However, any non-pointer,
1700	// non-interface field appearing in ForceSendFields will be sent to the
1701	// server regardless of whether the field is empty or not. This may be
1702	// used to include empty fields in Patch requests.
1703	ForceSendFields []string `json:"-"`
1704
1705	// NullFields is a list of field names (e.g. "Id") to include in API
1706	// requests with the JSON null value. By default, fields with empty
1707	// values are omitted from API requests. However, any field with an
1708	// empty value appearing in NullFields will be sent to the server as
1709	// null. It is an error if a field in this list has a non-empty value.
1710	// This may be used to include null fields in Patch requests.
1711	NullFields []string `json:"-"`
1712}
1713
1714func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
1715	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
1716	raw := NoMethod(*s)
1717	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1718}
1719
1720// GoogleCloudDialogflowCxV3IntentTrainingPhrasePart: Represents a part
1721// of a training phrase.
1722type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
1723	// ParameterId: The parameter used to annotate this part of the training
1724	// phrase. This field is required for annotated parts of the training
1725	// phrase.
1726	ParameterId string `json:"parameterId,omitempty"`
1727
1728	// Text: Required. The text for this part.
1729	Text string `json:"text,omitempty"`
1730
1731	// ForceSendFields is a list of field names (e.g. "ParameterId") to
1732	// unconditionally include in API requests. By default, fields with
1733	// empty values are omitted from API requests. However, any non-pointer,
1734	// non-interface field appearing in ForceSendFields will be sent to the
1735	// server regardless of whether the field is empty or not. This may be
1736	// used to include empty fields in Patch requests.
1737	ForceSendFields []string `json:"-"`
1738
1739	// NullFields is a list of field names (e.g. "ParameterId") to include
1740	// in API requests with the JSON null value. By default, fields with
1741	// empty values are omitted from API requests. However, any field with
1742	// an empty value appearing in NullFields will be sent to the server as
1743	// null. It is an error if a field in this list has a non-empty value.
1744	// This may be used to include null fields in Patch requests.
1745	NullFields []string `json:"-"`
1746}
1747
1748func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
1749	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
1750	raw := NoMethod(*s)
1751	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1752}
1753
1754// GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session)
1755// can be described and visualized as a state machine. The states of a
1756// CX session are represented by pages. For each flow, you define many
1757// pages, where your combined pages can handle a complete conversation
1758// on the topics the flow is designed for. At any given moment, exactly
1759// one page is the current page, the current page is considered active,
1760// and the flow associated with that page is considered active. Every
1761// flow has a special start page. When a flow initially becomes active,
1762// the start page page becomes the current page. For each conversational
1763// turn, the current page will either stay the same or transition to
1764// another page. You configure each page to collect information from the
1765// end-user that is relevant for the conversational state represented by
1766// the page. For more information, see the Page guide
1767// (https://cloud.google.com/dialogflow/cx/docs/concept/page).
1768type GoogleCloudDialogflowCxV3Page struct {
1769	// DisplayName: Required. The human-readable name of the page, unique
1770	// within the agent.
1771	DisplayName string `json:"displayName,omitempty"`
1772
1773	// EntryFulfillment: The fulfillment to call when the session is
1774	// entering the page.
1775	EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
1776
1777	// EventHandlers: Handlers associated with the page to handle events
1778	// such as webhook errors, no match or no input.
1779	EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
1780
1781	// Form: The form associated with the page, used for collecting
1782	// parameters relevant to the page.
1783	Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
1784
1785	// Name: The unique identifier of the page. Required for the
1786	// Pages.UpdatePage method. Pages.CreatePage populates the name
1787	// automatically. Format: `projects//locations//agents//flows//pages/`.
1788	Name string `json:"name,omitempty"`
1789
1790	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups`
1791	// associated with the page. Transition route groups must be unique
1792	// within a page. * If multiple transition routes within a page scope
1793	// refer to the same intent, then the precedence order is: page's
1794	// transition route -> page's transition route group -> flow's
1795	// transition routes. * If multiple transition route groups within a
1796	// page contain the same intent, then the first group in the ordered
1797	// list takes precedence.
1798	// Format:`projects//locations//agents//flows//transitionRouteGroups/`.
1799	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
1800
1801	// TransitionRoutes: A list of transitions for the transition rules of
1802	// this page. They route the conversation to another page in the same
1803	// flow, or another flow. When we are in a certain page, the
1804	// TransitionRoutes are evalauted in the following order: *
1805	// TransitionRoutes defined in the page with intent specified. *
1806	// TransitionRoutes defined in the transition route groups with intent
1807	// specified. * TransitionRoutes defined in flow with intent specified.
1808	// * TransitionRoutes defined in the transition route groups with intent
1809	// specified. * TransitionRoutes defined in the page with only condition
1810	// specified. * TransitionRoutes defined in the transition route groups
1811	// with only condition specified.
1812	TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
1813
1814	// ForceSendFields is a list of field names (e.g. "DisplayName") to
1815	// unconditionally include in API requests. By default, fields with
1816	// empty values are omitted from API requests. However, any non-pointer,
1817	// non-interface field appearing in ForceSendFields will be sent to the
1818	// server regardless of whether the field is empty or not. This may be
1819	// used to include empty fields in Patch requests.
1820	ForceSendFields []string `json:"-"`
1821
1822	// NullFields is a list of field names (e.g. "DisplayName") to include
1823	// in API requests with the JSON null value. By default, fields with
1824	// empty values are omitted from API requests. However, any field with
1825	// an empty value appearing in NullFields will be sent to the server as
1826	// null. It is an error if a field in this list has a non-empty value.
1827	// This may be used to include null fields in Patch requests.
1828	NullFields []string `json:"-"`
1829}
1830
1831func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
1832	type NoMethod GoogleCloudDialogflowCxV3Page
1833	raw := NoMethod(*s)
1834	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1835}
1836
1837// GoogleCloudDialogflowCxV3PageInfo: Represents page information
1838// communicated to and from the webhook.
1839type GoogleCloudDialogflowCxV3PageInfo struct {
1840	// CurrentPage: Always present for WebhookRequest. Ignored for
1841	// WebhookResponse. The unique identifier of the current page. Format:
1842	// `projects//locations//agents//flows//pages/`.
1843	CurrentPage string `json:"currentPage,omitempty"`
1844
1845	// FormInfo: Optional for both WebhookRequest and WebhookResponse.
1846	// Information about the form.
1847	FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
1848
1849	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
1850	// unconditionally include in API requests. By default, fields with
1851	// empty values are omitted from API requests. However, any non-pointer,
1852	// non-interface field appearing in ForceSendFields will be sent to the
1853	// server regardless of whether the field is empty or not. This may be
1854	// used to include empty fields in Patch requests.
1855	ForceSendFields []string `json:"-"`
1856
1857	// NullFields is a list of field names (e.g. "CurrentPage") to include
1858	// in API requests with the JSON null value. By default, fields with
1859	// empty values are omitted from API requests. However, any field with
1860	// an empty value appearing in NullFields will be sent to the server as
1861	// null. It is an error if a field in this list has a non-empty value.
1862	// This may be used to include null fields in Patch requests.
1863	NullFields []string `json:"-"`
1864}
1865
1866func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
1867	type NoMethod GoogleCloudDialogflowCxV3PageInfo
1868	raw := NoMethod(*s)
1869	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1870}
1871
1872// GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form
1873// information.
1874type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
1875	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse.
1876	// The parameters contained in the form. Note that the webhook cannot
1877	// add or remove any form parameter.
1878	ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
1879
1880	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
1881	// unconditionally include in API requests. By default, fields with
1882	// empty values are omitted from API requests. However, any non-pointer,
1883	// non-interface field appearing in ForceSendFields will be sent to the
1884	// server regardless of whether the field is empty or not. This may be
1885	// used to include empty fields in Patch requests.
1886	ForceSendFields []string `json:"-"`
1887
1888	// NullFields is a list of field names (e.g. "ParameterInfo") to include
1889	// in API requests with the JSON null value. By default, fields with
1890	// empty values are omitted from API requests. However, any field with
1891	// an empty value appearing in NullFields will be sent to the server as
1892	// null. It is an error if a field in this list has a non-empty value.
1893	// This may be used to include null fields in Patch requests.
1894	NullFields []string `json:"-"`
1895}
1896
1897func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
1898	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
1899	raw := NoMethod(*s)
1900	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1901}
1902
1903// GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents
1904// parameter information.
1905type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
1906	// DisplayName: Always present for WebhookRequest. Required for
1907	// WebhookResponse. The human-readable name of the parameter, unique
1908	// within the form. This field cannot be modified by the webhook.
1909	DisplayName string `json:"displayName,omitempty"`
1910
1911	// JustCollected: Optional for WebhookRequest. Ignored for
1912	// WebhookResponse. Indicates if the parameter value was just collected
1913	// on the last conversation turn.
1914	JustCollected bool `json:"justCollected,omitempty"`
1915
1916	// Required: Optional for both WebhookRequest and WebhookResponse.
1917	// Indicates whether the parameter is required. Optional parameters will
1918	// not trigger prompts; however, they are filled if the user specifies
1919	// them. Required parameters must be filled before form filling
1920	// concludes.
1921	Required bool `json:"required,omitempty"`
1922
1923	// State: Always present for WebhookRequest. Required for
1924	// WebhookResponse. The state of the parameter. This field can be set to
1925	// INVALID by the webhook to invalidate the parameter; other values set
1926	// by the webhook will be ignored.
1927	//
1928	// Possible values:
1929	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be
1930	// never used.
1931	//   "EMPTY" - Indicates that the parameter does not have a value.
1932	//   "INVALID" - Indicates that the parameter value is invalid. This
1933	// field can be used by the webhook to invalidate the parameter and ask
1934	// the server to collect it from the user again.
1935	//   "FILLED" - Indicates that the parameter has a value.
1936	State string `json:"state,omitempty"`
1937
1938	// Value: Optional for both WebhookRequest and WebhookResponse. The
1939	// value of the parameter. This field can be set by the webhook to
1940	// change the parameter value.
1941	Value interface{} `json:"value,omitempty"`
1942
1943	// ForceSendFields is a list of field names (e.g. "DisplayName") to
1944	// unconditionally include in API requests. By default, fields with
1945	// empty values are omitted from API requests. However, any non-pointer,
1946	// non-interface field appearing in ForceSendFields will be sent to the
1947	// server regardless of whether the field is empty or not. This may be
1948	// used to include empty fields in Patch requests.
1949	ForceSendFields []string `json:"-"`
1950
1951	// NullFields is a list of field names (e.g. "DisplayName") to include
1952	// in API requests with the JSON null value. By default, fields with
1953	// empty values are omitted from API requests. However, any field with
1954	// an empty value appearing in NullFields will be sent to the server as
1955	// null. It is an error if a field in this list has a non-empty value.
1956	// This may be used to include null fields in Patch requests.
1957	NullFields []string `json:"-"`
1958}
1959
1960func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
1961	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
1962	raw := NoMethod(*s)
1963	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1964}
1965
1966// GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It
1967// can contain one of: 1. A conversational query in the form of text. 2.
1968// An intent query that specifies which intent to trigger. 3. Natural
1969// language speech audio to be processed. 4. An event to be triggered.
1970type GoogleCloudDialogflowCxV3QueryInput struct {
1971	// Audio: The natural language speech audio to be processed.
1972	Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
1973
1974	// Dtmf: The DTMF event to be handled.
1975	Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
1976
1977	// Event: The event to be triggered.
1978	Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
1979
1980	// Intent: The intent to be triggered.
1981	Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
1982
1983	// LanguageCode: Required. The language of the input. See Language
1984	// Support
1985	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
1986	// a list of the currently supported language codes. Note that queries
1987	// in the same session do not necessarily need to specify the same
1988	// language.
1989	LanguageCode string `json:"languageCode,omitempty"`
1990
1991	// Text: The natural language text to be processed.
1992	Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
1993
1994	// ForceSendFields is a list of field names (e.g. "Audio") to
1995	// unconditionally include in API requests. By default, fields with
1996	// empty values are omitted from API requests. However, any non-pointer,
1997	// non-interface field appearing in ForceSendFields will be sent to the
1998	// server regardless of whether the field is empty or not. This may be
1999	// used to include empty fields in Patch requests.
2000	ForceSendFields []string `json:"-"`
2001
2002	// NullFields is a list of field names (e.g. "Audio") to include in API
2003	// requests with the JSON null value. By default, fields with empty
2004	// values are omitted from API requests. However, any field with an
2005	// empty value appearing in NullFields will be sent to the server as
2006	// null. It is an error if a field in this list has a non-empty value.
2007	// This may be used to include null fields in Patch requests.
2008	NullFields []string `json:"-"`
2009}
2010
2011func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
2012	type NoMethod GoogleCloudDialogflowCxV3QueryInput
2013	raw := NoMethod(*s)
2014	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2015}
2016
2017// GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata: Metadata
2018// for ReloadDocument operation.
2019type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
2020	// GenericMetadata: The generic information of the operation.
2021	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2022
2023	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
2024	// unconditionally include in API requests. By default, fields with
2025	// empty values are omitted from API requests. However, any non-pointer,
2026	// non-interface field appearing in ForceSendFields will be sent to the
2027	// server regardless of whether the field is empty or not. This may be
2028	// used to include empty fields in Patch requests.
2029	ForceSendFields []string `json:"-"`
2030
2031	// NullFields is a list of field names (e.g. "GenericMetadata") to
2032	// include in API requests with the JSON null value. By default, fields
2033	// with empty values are omitted from API requests. However, any field
2034	// with an empty value appearing in NullFields will be sent to the
2035	// server as null. It is an error if a field in this list has a
2036	// non-empty value. This may be used to include null fields in Patch
2037	// requests.
2038	NullFields []string `json:"-"`
2039}
2040
2041func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
2042	type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
2043	raw := NoMethod(*s)
2044	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2045}
2046
2047// GoogleCloudDialogflowCxV3ResponseMessage: Represents a response
2048// message that can be returned by a conversational agent. Response
2049// messages are also used for output audio synthesis. The approach is as
2050// follows: * If at least one OutputAudioText response is present, then
2051// all OutputAudioText responses are linearly concatenated, and the
2052// result is used for output audio synthesis. * If the OutputAudioText
2053// responses are a mixture of text and SSML, then the concatenated
2054// result is treated as SSML; otherwise, the result is treated as either
2055// text or SSML as appropriate. The agent designer should ideally use
2056// either text or SSML consistently throughout the bot design. *
2057// Otherwise, all Text responses are linearly concatenated, and the
2058// result is used for output audio synthesis. This approach allows for
2059// more sophisticated user experience scenarios, where the text
2060// displayed to the user may differ from what is heard.
2061type GoogleCloudDialogflowCxV3ResponseMessage struct {
2062	// ConversationSuccess: Indicates that the conversation succeeded.
2063	ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
2064
2065	// EndInteraction: Output only. A signal that indicates the interaction
2066	// with the Dialogflow agent has ended. This message is generated by
2067	// Dialogflow only when the conversation reaches `END_SESSION` page. It
2068	// is not supposed to be defined by the user. It's guaranteed that there
2069	// is at most one such message in each response.
2070	EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
2071
2072	// LiveAgentHandoff: Hands off conversation to a human agent.
2073	LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
2074
2075	// MixedAudio: Output only. An audio response message composed of both
2076	// the synthesized Dialogflow agent responses and responses defined via
2077	// play_audio. This message is generated by Dialogflow only and not
2078	// supposed to be defined by the user.
2079	MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
2080
2081	// OutputAudioText: A text or ssml response that is preferentially used
2082	// for TTS output audio synthesis, as described in the comment on the
2083	// ResponseMessage message.
2084	OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
2085
2086	// Payload: Returns a response containing a custom, platform-specific
2087	// payload.
2088	Payload googleapi.RawMessage `json:"payload,omitempty"`
2089
2090	// PlayAudio: Signal that the client should play an audio clip hosted at
2091	// a client-specific URI. Dialogflow uses this to construct mixed_audio.
2092	// However, Dialogflow itself does not try to read or process the URI in
2093	// any way.
2094	PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
2095
2096	// Text: Returns a text response.
2097	Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
2098
2099	// ForceSendFields is a list of field names (e.g. "ConversationSuccess")
2100	// to unconditionally include in API requests. By default, fields with
2101	// empty values are omitted from API requests. However, any non-pointer,
2102	// non-interface field appearing in ForceSendFields will be sent to the
2103	// server regardless of whether the field is empty or not. This may be
2104	// used to include empty fields in Patch requests.
2105	ForceSendFields []string `json:"-"`
2106
2107	// NullFields is a list of field names (e.g. "ConversationSuccess") to
2108	// include in API requests with the JSON null value. By default, fields
2109	// with empty values are omitted from API requests. However, any field
2110	// with an empty value appearing in NullFields will be sent to the
2111	// server as null. It is an error if a field in this list has a
2112	// non-empty value. This may be used to include null fields in Patch
2113	// requests.
2114	NullFields []string `json:"-"`
2115}
2116
2117func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
2118	type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
2119	raw := NoMethod(*s)
2120	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2121}
2122
2123// GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess:
2124// Indicates that the conversation succeeded, i.e., the bot handled the
2125// issue that the customer talked to it about. Dialogflow only uses this
2126// to determine which conversations should be counted as successful and
2127// doesn't process the metadata in this message in any way. Note that
2128// Dialogflow also considers conversations that get to the conversation
2129// end page as successful even if they don't return ConversationSuccess.
2130// You may set this, for example: * In the entry_fulfillment of a Page
2131// if entering the page indicates that the conversation succeeded. * In
2132// a webhook response when you determine that you handled the customer
2133// issue.
2134type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
2135	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on
2136	// this.
2137	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2138
2139	// ForceSendFields is a list of field names (e.g. "Metadata") to
2140	// unconditionally include in API requests. By default, fields with
2141	// empty values are omitted from API requests. However, any non-pointer,
2142	// non-interface field appearing in ForceSendFields will be sent to the
2143	// server regardless of whether the field is empty or not. This may be
2144	// used to include empty fields in Patch requests.
2145	ForceSendFields []string `json:"-"`
2146
2147	// NullFields is a list of field names (e.g. "Metadata") to include in
2148	// API requests with the JSON null value. By default, fields with empty
2149	// values are omitted from API requests. However, any field with an
2150	// empty value appearing in NullFields will be sent to the server as
2151	// null. It is an error if a field in this list has a non-empty value.
2152	// This may be used to include null fields in Patch requests.
2153	NullFields []string `json:"-"`
2154}
2155
2156func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
2157	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
2158	raw := NoMethod(*s)
2159	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2160}
2161
2162// GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates
2163// that interaction with the Dialogflow agent has ended. This message is
2164// generated by Dialogflow only and not supposed to be defined by the
2165// user.
2166type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
2167}
2168
2169// GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates
2170// that the conversation should be handed off to a live agent.
2171// Dialogflow only uses this to determine which conversations were
2172// handed off to a human agent for measurement purposes. What else to do
2173// with this signal is up to you and your handoff procedures. You may
2174// set this, for example: * In the entry_fulfillment of a Page if
2175// entering the page indicates something went extremely wrong in the
2176// conversation. * In a webhook response when you determine that the
2177// customer issue can only be handled by a human.
2178type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
2179	// Metadata: Custom metadata for your handoff procedure. Dialogflow
2180	// doesn't impose any structure on this.
2181	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2182
2183	// ForceSendFields is a list of field names (e.g. "Metadata") to
2184	// unconditionally include in API requests. By default, fields with
2185	// empty values are omitted from API requests. However, any non-pointer,
2186	// non-interface field appearing in ForceSendFields will be sent to the
2187	// server regardless of whether the field is empty or not. This may be
2188	// used to include empty fields in Patch requests.
2189	ForceSendFields []string `json:"-"`
2190
2191	// NullFields is a list of field names (e.g. "Metadata") to include in
2192	// API requests with the JSON null value. By default, fields with empty
2193	// values are omitted from API requests. However, any field with an
2194	// empty value appearing in NullFields will be sent to the server as
2195	// null. It is an error if a field in this list has a non-empty value.
2196	// This may be used to include null fields in Patch requests.
2197	NullFields []string `json:"-"`
2198}
2199
2200func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
2201	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
2202	raw := NoMethod(*s)
2203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2204}
2205
2206// GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an
2207// audio message that is composed of both segments synthesized from the
2208// Dialogflow agent prompts and ones hosted externally at the specified
2209// URIs. The external URIs are specified via play_audio. This message is
2210// generated by Dialogflow only and not supposed to be defined by the
2211// user.
2212type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
2213	// Segments: Segments this audio response is composed of.
2214	Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
2215
2216	// ForceSendFields is a list of field names (e.g. "Segments") to
2217	// unconditionally include in API requests. By default, fields with
2218	// empty values are omitted from API requests. However, any non-pointer,
2219	// non-interface field appearing in ForceSendFields will be sent to the
2220	// server regardless of whether the field is empty or not. This may be
2221	// used to include empty fields in Patch requests.
2222	ForceSendFields []string `json:"-"`
2223
2224	// NullFields is a list of field names (e.g. "Segments") to include in
2225	// API requests with the JSON null value. By default, fields with empty
2226	// values are omitted from API requests. However, any field with an
2227	// empty value appearing in NullFields will be sent to the server as
2228	// null. It is an error if a field in this list has a non-empty value.
2229	// This may be used to include null fields in Patch requests.
2230	NullFields []string `json:"-"`
2231}
2232
2233func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
2234	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
2235	raw := NoMethod(*s)
2236	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2237}
2238
2239// GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents
2240// one segment of audio.
2241type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
2242	// AllowPlaybackInterruption: Output only. Whether the playback of this
2243	// segment can be interrupted by the end user's speech and the client
2244	// should then start the next Dialogflow request.
2245	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2246
2247	// Audio: Raw audio synthesized from the Dialogflow agent's response
2248	// using the output config specified in the request.
2249	Audio string `json:"audio,omitempty"`
2250
2251	// Uri: Client-specific URI that points to an audio clip accessible to
2252	// the client. Dialogflow does not impose any validation on it.
2253	Uri string `json:"uri,omitempty"`
2254
2255	// ForceSendFields is a list of field names (e.g.
2256	// "AllowPlaybackInterruption") to unconditionally include in API
2257	// requests. By default, fields with empty values are omitted from API
2258	// requests. However, any non-pointer, non-interface field appearing in
2259	// ForceSendFields will be sent to the server regardless of whether the
2260	// field is empty or not. This may be used to include empty fields in
2261	// Patch requests.
2262	ForceSendFields []string `json:"-"`
2263
2264	// NullFields is a list of field names (e.g.
2265	// "AllowPlaybackInterruption") to include in API requests with the JSON
2266	// null value. By default, fields with empty values are omitted from API
2267	// requests. However, any field with an empty value appearing in
2268	// NullFields will be sent to the server as null. It is an error if a
2269	// field in this list has a non-empty value. This may be used to include
2270	// null fields in Patch requests.
2271	NullFields []string `json:"-"`
2272}
2273
2274func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
2275	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
2276	raw := NoMethod(*s)
2277	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2278}
2279
2280// GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or
2281// ssml response that is preferentially used for TTS output audio
2282// synthesis, as described in the comment on the ResponseMessage
2283// message.
2284type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
2285	// AllowPlaybackInterruption: Output only. Whether the playback of this
2286	// message can be interrupted by the end user's speech and the client
2287	// can then starts the next Dialogflow request.
2288	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2289
2290	// Ssml: The SSML text to be synthesized. For more information, see SSML
2291	// (/speech/text-to-speech/docs/ssml).
2292	Ssml string `json:"ssml,omitempty"`
2293
2294	// Text: The raw text to be synthesized.
2295	Text string `json:"text,omitempty"`
2296
2297	// ForceSendFields is a list of field names (e.g.
2298	// "AllowPlaybackInterruption") to unconditionally include in API
2299	// requests. By default, fields with empty values are omitted from API
2300	// requests. However, any non-pointer, non-interface field appearing in
2301	// ForceSendFields will be sent to the server regardless of whether the
2302	// field is empty or not. This may be used to include empty fields in
2303	// Patch requests.
2304	ForceSendFields []string `json:"-"`
2305
2306	// NullFields is a list of field names (e.g.
2307	// "AllowPlaybackInterruption") to include in API requests with the JSON
2308	// null value. By default, fields with empty values are omitted from API
2309	// requests. However, any field with an empty value appearing in
2310	// NullFields will be sent to the server as null. It is an error if a
2311	// field in this list has a non-empty value. This may be used to include
2312	// null fields in Patch requests.
2313	NullFields []string `json:"-"`
2314}
2315
2316func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
2317	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
2318	raw := NoMethod(*s)
2319	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2320}
2321
2322// GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio
2323// clip to be played by the client as part of the response.
2324type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
2325	// AllowPlaybackInterruption: Output only. Whether the playback of this
2326	// message can be interrupted by the end user's speech and the client
2327	// can then starts the next Dialogflow request.
2328	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2329
2330	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose
2331	// any validation on this value. It is specific to the client that reads
2332	// it.
2333	AudioUri string `json:"audioUri,omitempty"`
2334
2335	// ForceSendFields is a list of field names (e.g.
2336	// "AllowPlaybackInterruption") to unconditionally include in API
2337	// requests. By default, fields with empty values are omitted from API
2338	// requests. However, any non-pointer, non-interface field appearing in
2339	// ForceSendFields will be sent to the server regardless of whether the
2340	// field is empty or not. This may be used to include empty fields in
2341	// Patch requests.
2342	ForceSendFields []string `json:"-"`
2343
2344	// NullFields is a list of field names (e.g.
2345	// "AllowPlaybackInterruption") to include in API requests with the JSON
2346	// null value. By default, fields with empty values are omitted from API
2347	// requests. However, any field with an empty value appearing in
2348	// NullFields will be sent to the server as null. It is an error if a
2349	// field in this list has a non-empty value. This may be used to include
2350	// null fields in Patch requests.
2351	NullFields []string `json:"-"`
2352}
2353
2354func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
2355	type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
2356	raw := NoMethod(*s)
2357	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2358}
2359
2360// GoogleCloudDialogflowCxV3ResponseMessageText: The text response
2361// message.
2362type GoogleCloudDialogflowCxV3ResponseMessageText struct {
2363	// AllowPlaybackInterruption: Output only. Whether the playback of this
2364	// message can be interrupted by the end user's speech and the client
2365	// can then starts the next Dialogflow request.
2366	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2367
2368	// Text: Required. A collection of text responses.
2369	Text []string `json:"text,omitempty"`
2370
2371	// ForceSendFields is a list of field names (e.g.
2372	// "AllowPlaybackInterruption") to unconditionally include in API
2373	// requests. By default, fields with empty values are omitted from API
2374	// requests. However, any non-pointer, non-interface field appearing in
2375	// ForceSendFields will be sent to the server regardless of whether the
2376	// field is empty or not. This may be used to include empty fields in
2377	// Patch requests.
2378	ForceSendFields []string `json:"-"`
2379
2380	// NullFields is a list of field names (e.g.
2381	// "AllowPlaybackInterruption") to include in API requests with the JSON
2382	// null value. By default, fields with empty values are omitted from API
2383	// requests. However, any field with an empty value appearing in
2384	// NullFields will be sent to the server as null. It is an error if a
2385	// field in this list has a non-empty value. This may be used to include
2386	// null fields in Patch requests.
2387	NullFields []string `json:"-"`
2388}
2389
2390func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
2391	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
2392	raw := NoMethod(*s)
2393	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2394}
2395
2396// GoogleCloudDialogflowCxV3RunTestCaseMetadata: Metadata returned for
2397// the TestCases.RunTestCase long running operation.
2398type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
2399}
2400
2401// GoogleCloudDialogflowCxV3RunTestCaseResponse: The response message
2402// for TestCases.RunTestCase.
2403type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
2404	// Result: The result.
2405	Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
2406
2407	// ForceSendFields is a list of field names (e.g. "Result") to
2408	// unconditionally include in API requests. By default, fields with
2409	// empty values are omitted from API requests. However, any non-pointer,
2410	// non-interface field appearing in ForceSendFields will be sent to the
2411	// server regardless of whether the field is empty or not. This may be
2412	// used to include empty fields in Patch requests.
2413	ForceSendFields []string `json:"-"`
2414
2415	// NullFields is a list of field names (e.g. "Result") to include in API
2416	// requests with the JSON null value. By default, fields with empty
2417	// values are omitted from API requests. However, any field with an
2418	// empty value appearing in NullFields will be sent to the server as
2419	// null. It is an error if a field in this list has a non-empty value.
2420	// This may be used to include null fields in Patch requests.
2421	NullFields []string `json:"-"`
2422}
2423
2424func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
2425	type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
2426	raw := NoMethod(*s)
2427	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2428}
2429
2430// GoogleCloudDialogflowCxV3SessionInfo: Represents session information
2431// communicated to and from the webhook.
2432type GoogleCloudDialogflowCxV3SessionInfo struct {
2433	// Parameters: Optional for WebhookRequest. Optional for
2434	// WebhookResponse. All parameters collected from forms and intents
2435	// during the session. Parameters can be created, updated, or removed by
2436	// the webhook. To remove a parameter from the session, the webhook
2437	// should explicitly set the parameter value to null in WebhookResponse.
2438	// The map is keyed by parameters' display names.
2439	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
2440
2441	// Session: Always present for WebhookRequest. Ignored for
2442	// WebhookResponse. The unique identifier of the session. This field can
2443	// be used by the webhook to identify a session. Format:
2444	// `projects//locations//agents//sessions/` or
2445	// `projects//locations//agents//environments//sessions/` if environment
2446	// is specified.
2447	Session string `json:"session,omitempty"`
2448
2449	// ForceSendFields is a list of field names (e.g. "Parameters") to
2450	// unconditionally include in API requests. By default, fields with
2451	// empty values are omitted from API requests. However, any non-pointer,
2452	// non-interface field appearing in ForceSendFields will be sent to the
2453	// server regardless of whether the field is empty or not. This may be
2454	// used to include empty fields in Patch requests.
2455	ForceSendFields []string `json:"-"`
2456
2457	// NullFields is a list of field names (e.g. "Parameters") to include in
2458	// API requests with the JSON null value. By default, fields with empty
2459	// values are omitted from API requests. However, any field with an
2460	// empty value appearing in NullFields will be sent to the server as
2461	// null. It is an error if a field in this list has a non-empty value.
2462	// This may be used to include null fields in Patch requests.
2463	NullFields []string `json:"-"`
2464}
2465
2466func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
2467	type NoMethod GoogleCloudDialogflowCxV3SessionInfo
2468	raw := NoMethod(*s)
2469	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2470}
2471
2472// GoogleCloudDialogflowCxV3TestCase: Represents a test case.
2473type GoogleCloudDialogflowCxV3TestCase struct {
2474	// CreationTime: Output only. When the test was created.
2475	CreationTime string `json:"creationTime,omitempty"`
2476
2477	// DisplayName: Required. The human-readable name of the test case,
2478	// unique within the agent. Limit of 200 characters.
2479	DisplayName string `json:"displayName,omitempty"`
2480
2481	// LastTestResult: The latest test result.
2482	LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
2483
2484	// Name: The unique identifier of the test case.
2485	// TestCases.CreateTestCase will populate the name automatically.
2486	// Otherwise use format: `projects//locations//agents/ /testCases/`.
2487	Name string `json:"name,omitempty"`
2488
2489	// Notes: Additional freeform notes about the test case. Limit of 400
2490	// characters.
2491	Notes string `json:"notes,omitempty"`
2492
2493	// Tags: Tags are short descriptions that users may apply to test cases
2494	// for organizational and filtering purposes. Each tag should start with
2495	// "#" and has a limit of 30 characters.
2496	Tags []string `json:"tags,omitempty"`
2497
2498	// TestCaseConversationTurns: The conversation turns uttered when the
2499	// test case was created, in chronological order. These include the
2500	// canonical set of agent utterances that should occur when the agent is
2501	// working properly.
2502	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
2503
2504	// TestConfig: Config for the test case.
2505	TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
2506
2507	// ForceSendFields is a list of field names (e.g. "CreationTime") to
2508	// unconditionally include in API requests. By default, fields with
2509	// empty values are omitted from API requests. However, any non-pointer,
2510	// non-interface field appearing in ForceSendFields will be sent to the
2511	// server regardless of whether the field is empty or not. This may be
2512	// used to include empty fields in Patch requests.
2513	ForceSendFields []string `json:"-"`
2514
2515	// NullFields is a list of field names (e.g. "CreationTime") to include
2516	// in API requests with the JSON null value. By default, fields with
2517	// empty values are omitted from API requests. However, any field with
2518	// an empty value appearing in NullFields will be sent to the server as
2519	// null. It is an error if a field in this list has a non-empty value.
2520	// This may be used to include null fields in Patch requests.
2521	NullFields []string `json:"-"`
2522}
2523
2524func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
2525	type NoMethod GoogleCloudDialogflowCxV3TestCase
2526	raw := NoMethod(*s)
2527	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2528}
2529
2530// GoogleCloudDialogflowCxV3TestCaseError: Error info for importing a
2531// test.
2532type GoogleCloudDialogflowCxV3TestCaseError struct {
2533	// Status: The status associated with the test case.
2534	Status *GoogleRpcStatus `json:"status,omitempty"`
2535
2536	// TestCase: The test case.
2537	TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
2538
2539	// ForceSendFields is a list of field names (e.g. "Status") to
2540	// unconditionally include in API requests. By default, fields with
2541	// empty values are omitted from API requests. However, any non-pointer,
2542	// non-interface field appearing in ForceSendFields will be sent to the
2543	// server regardless of whether the field is empty or not. This may be
2544	// used to include empty fields in Patch requests.
2545	ForceSendFields []string `json:"-"`
2546
2547	// NullFields is a list of field names (e.g. "Status") to include in API
2548	// requests with the JSON null value. By default, fields with empty
2549	// values are omitted from API requests. However, any field with an
2550	// empty value appearing in NullFields will be sent to the server as
2551	// null. It is an error if a field in this list has a non-empty value.
2552	// This may be used to include null fields in Patch requests.
2553	NullFields []string `json:"-"`
2554}
2555
2556func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
2557	type NoMethod GoogleCloudDialogflowCxV3TestCaseError
2558	raw := NoMethod(*s)
2559	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2560}
2561
2562// GoogleCloudDialogflowCxV3TestCaseResult: Represents a result from
2563// running a test case in an agent environment.
2564type GoogleCloudDialogflowCxV3TestCaseResult struct {
2565	// ConversationTurns: The conversation turns uttered during the test
2566	// case replay in chronological order.
2567	ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
2568
2569	// Environment: Environment where the test was run. If not set, it
2570	// indicates the draft environment.
2571	Environment string `json:"environment,omitempty"`
2572
2573	// Name: The resource name for the test case result. Format:
2574	// `projects//locations//agents//testCases/ /results/`.
2575	Name string `json:"name,omitempty"`
2576
2577	// TestResult: Whether the test case passed in the agent environment.
2578	//
2579	// Possible values:
2580	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
2581	//   "PASSED" - The test passed.
2582	//   "FAILED" - The test did not pass.
2583	TestResult string `json:"testResult,omitempty"`
2584
2585	// TestTime: The time that the test was run.
2586	TestTime string `json:"testTime,omitempty"`
2587
2588	// ForceSendFields is a list of field names (e.g. "ConversationTurns")
2589	// to unconditionally include in API requests. By default, fields with
2590	// empty values are omitted from API requests. However, any non-pointer,
2591	// non-interface field appearing in ForceSendFields will be sent to the
2592	// server regardless of whether the field is empty or not. This may be
2593	// used to include empty fields in Patch requests.
2594	ForceSendFields []string `json:"-"`
2595
2596	// NullFields is a list of field names (e.g. "ConversationTurns") to
2597	// include in API requests with the JSON null value. By default, fields
2598	// with empty values are omitted from API requests. However, any field
2599	// with an empty value appearing in NullFields will be sent to the
2600	// server as null. It is an error if a field in this list has a
2601	// non-empty value. This may be used to include null fields in Patch
2602	// requests.
2603	NullFields []string `json:"-"`
2604}
2605
2606func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
2607	type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
2608	raw := NoMethod(*s)
2609	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2610}
2611
2612// GoogleCloudDialogflowCxV3TestConfig: Represents configurations for a
2613// test case.
2614type GoogleCloudDialogflowCxV3TestConfig struct {
2615	// Flow: Flow name. If not set, default start flow is assumed. Format:
2616	// `projects//locations//agents//flows/`.
2617	Flow string `json:"flow,omitempty"`
2618
2619	// TrackingParameters: Session parameters to be compared when
2620	// calculating differences.
2621	TrackingParameters []string `json:"trackingParameters,omitempty"`
2622
2623	// ForceSendFields is a list of field names (e.g. "Flow") to
2624	// unconditionally include in API requests. By default, fields with
2625	// empty values are omitted from API requests. However, any non-pointer,
2626	// non-interface field appearing in ForceSendFields will be sent to the
2627	// server regardless of whether the field is empty or not. This may be
2628	// used to include empty fields in Patch requests.
2629	ForceSendFields []string `json:"-"`
2630
2631	// NullFields is a list of field names (e.g. "Flow") to include in API
2632	// requests with the JSON null value. By default, fields with empty
2633	// values are omitted from API requests. However, any field with an
2634	// empty value appearing in NullFields will be sent to the server as
2635	// null. It is an error if a field in this list has a non-empty value.
2636	// This may be used to include null fields in Patch requests.
2637	NullFields []string `json:"-"`
2638}
2639
2640func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
2641	type NoMethod GoogleCloudDialogflowCxV3TestConfig
2642	raw := NoMethod(*s)
2643	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2644}
2645
2646// GoogleCloudDialogflowCxV3TestError: Error info for running a test.
2647type GoogleCloudDialogflowCxV3TestError struct {
2648	// Status: The status associated with the test.
2649	Status *GoogleRpcStatus `json:"status,omitempty"`
2650
2651	// TestCase: The test case resource name.
2652	TestCase string `json:"testCase,omitempty"`
2653
2654	// TestTime: The timestamp when the test was completed.
2655	TestTime string `json:"testTime,omitempty"`
2656
2657	// ForceSendFields is a list of field names (e.g. "Status") to
2658	// unconditionally include in API requests. By default, fields with
2659	// empty values are omitted from API requests. However, any non-pointer,
2660	// non-interface field appearing in ForceSendFields will be sent to the
2661	// server regardless of whether the field is empty or not. This may be
2662	// used to include empty fields in Patch requests.
2663	ForceSendFields []string `json:"-"`
2664
2665	// NullFields is a list of field names (e.g. "Status") to include in API
2666	// requests with the JSON null value. By default, fields with empty
2667	// values are omitted from API requests. However, any field with an
2668	// empty value appearing in NullFields will be sent to the server as
2669	// null. It is an error if a field in this list has a non-empty value.
2670	// This may be used to include null fields in Patch requests.
2671	NullFields []string `json:"-"`
2672}
2673
2674func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
2675	type NoMethod GoogleCloudDialogflowCxV3TestError
2676	raw := NoMethod(*s)
2677	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2678}
2679
2680// GoogleCloudDialogflowCxV3TestRunDifference: The description of
2681// differences between original and replayed agent output.
2682type GoogleCloudDialogflowCxV3TestRunDifference struct {
2683	// Description: A description of the diff, showing the actual output vs
2684	// expected output.
2685	Description string `json:"description,omitempty"`
2686
2687	// Type: The type of diff.
2688	//
2689	// Possible values:
2690	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
2691	//   "INTENT" - The intent.
2692	//   "PAGE" - The page.
2693	//   "PARAMETERS" - The parameters.
2694	//   "UTTERANCE" - The message utterance.
2695	Type string `json:"type,omitempty"`
2696
2697	// ForceSendFields is a list of field names (e.g. "Description") to
2698	// unconditionally include in API requests. By default, fields with
2699	// empty values are omitted from API requests. However, any non-pointer,
2700	// non-interface field appearing in ForceSendFields will be sent to the
2701	// server regardless of whether the field is empty or not. This may be
2702	// used to include empty fields in Patch requests.
2703	ForceSendFields []string `json:"-"`
2704
2705	// NullFields is a list of field names (e.g. "Description") to include
2706	// in API requests with the JSON null value. By default, fields with
2707	// empty values are omitted from API requests. However, any field with
2708	// an empty value appearing in NullFields will be sent to the server as
2709	// null. It is an error if a field in this list has a non-empty value.
2710	// This may be used to include null fields in Patch requests.
2711	NullFields []string `json:"-"`
2712}
2713
2714func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
2715	type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
2716	raw := NoMethod(*s)
2717	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2718}
2719
2720// GoogleCloudDialogflowCxV3TextInput: Represents the natural language
2721// text to be processed.
2722type GoogleCloudDialogflowCxV3TextInput struct {
2723	// Text: Required. The UTF-8 encoded natural language text to be
2724	// processed. Text length must not exceed 256 characters.
2725	Text string `json:"text,omitempty"`
2726
2727	// ForceSendFields is a list of field names (e.g. "Text") to
2728	// unconditionally include in API requests. By default, fields with
2729	// empty values are omitted from API requests. However, any non-pointer,
2730	// non-interface field appearing in ForceSendFields will be sent to the
2731	// server regardless of whether the field is empty or not. This may be
2732	// used to include empty fields in Patch requests.
2733	ForceSendFields []string `json:"-"`
2734
2735	// NullFields is a list of field names (e.g. "Text") to include in API
2736	// requests with the JSON null value. By default, fields with empty
2737	// values are omitted from API requests. However, any field with an
2738	// empty value appearing in NullFields will be sent to the server as
2739	// null. It is an error if a field in this list has a non-empty value.
2740	// This may be used to include null fields in Patch requests.
2741	NullFields []string `json:"-"`
2742}
2743
2744func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
2745	type NoMethod GoogleCloudDialogflowCxV3TextInput
2746	raw := NoMethod(*s)
2747	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2748}
2749
2750// GoogleCloudDialogflowCxV3TransitionRoute: A transition route
2751// specifies a intent that can be matched and/or a data condition that
2752// can be evaluated during a session. When a specified transition is
2753// matched, the following actions are taken in order: * If there is a
2754// `trigger_fulfillment` associated with the transition, it will be
2755// called. * If there is a `target_page` associated with the transition,
2756// the session will transition into the specified page. * If there is a
2757// `target_flow` associated with the transition, the session will
2758// transition into the specified flow.
2759type GoogleCloudDialogflowCxV3TransitionRoute struct {
2760	// Condition: The condition to evaluate against form parameters or
2761	// session parameters. See the conditions reference
2762	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At
2763	// least one of `intent` or `condition` must be specified. When both
2764	// `intent` and `condition` are specified, the transition can only
2765	// happen when both are fulfilled.
2766	Condition string `json:"condition,omitempty"`
2767
2768	// Intent: The unique identifier of an Intent. Format:
2769	// `projects//locations//agents//intents/`. Indicates that the
2770	// transition can only happen when the given intent is matched. At least
2771	// one of `intent` or `condition` must be specified. When both `intent`
2772	// and `condition` are specified, the transition can only happen when
2773	// both are fulfilled.
2774	Intent string `json:"intent,omitempty"`
2775
2776	// Name: Output only. The unique identifier of this transition route.
2777	Name string `json:"name,omitempty"`
2778
2779	// TargetFlow: The target flow to transition to. Format:
2780	// `projects//locations//agents//flows/`.
2781	TargetFlow string `json:"targetFlow,omitempty"`
2782
2783	// TargetPage: The target page to transition to. Format:
2784	// `projects//locations//agents//flows//pages/`.
2785	TargetPage string `json:"targetPage,omitempty"`
2786
2787	// TriggerFulfillment: The fulfillment to call when the condition is
2788	// satisfied. At least one of `trigger_fulfillment` and `target` must be
2789	// specified. When both are defined, `trigger_fulfillment` is executed
2790	// first.
2791	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
2792
2793	// ForceSendFields is a list of field names (e.g. "Condition") to
2794	// unconditionally include in API requests. By default, fields with
2795	// empty values are omitted from API requests. However, any non-pointer,
2796	// non-interface field appearing in ForceSendFields will be sent to the
2797	// server regardless of whether the field is empty or not. This may be
2798	// used to include empty fields in Patch requests.
2799	ForceSendFields []string `json:"-"`
2800
2801	// NullFields is a list of field names (e.g. "Condition") to include in
2802	// API requests with the JSON null value. By default, fields with empty
2803	// values are omitted from API requests. However, any field with an
2804	// empty value appearing in NullFields will be sent to the server as
2805	// null. It is an error if a field in this list has a non-empty value.
2806	// This may be used to include null fields in Patch requests.
2807	NullFields []string `json:"-"`
2808}
2809
2810func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
2811	type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
2812	raw := NoMethod(*s)
2813	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2814}
2815
2816// GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata
2817// for UpdateDocument operation.
2818type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
2819	// GenericMetadata: The generic information of the operation.
2820	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2821
2822	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
2823	// unconditionally include in API requests. By default, fields with
2824	// empty values are omitted from API requests. However, any non-pointer,
2825	// non-interface field appearing in ForceSendFields will be sent to the
2826	// server regardless of whether the field is empty or not. This may be
2827	// used to include empty fields in Patch requests.
2828	ForceSendFields []string `json:"-"`
2829
2830	// NullFields is a list of field names (e.g. "GenericMetadata") to
2831	// include in API requests with the JSON null value. By default, fields
2832	// with empty values are omitted from API requests. However, any field
2833	// with an empty value appearing in NullFields will be sent to the
2834	// server as null. It is an error if a field in this list has a
2835	// non-empty value. This may be used to include null fields in Patch
2836	// requests.
2837	NullFields []string `json:"-"`
2838}
2839
2840func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
2841	type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
2842	raw := NoMethod(*s)
2843	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2844}
2845
2846// GoogleCloudDialogflowCxV3WebhookRequest: The request message for a
2847// webhook call. The request is sent as a JSON object and the field
2848// names will be presented in camel cases.
2849type GoogleCloudDialogflowCxV3WebhookRequest struct {
2850	// DetectIntentResponseId: Always present. The unique identifier of the
2851	// DetectIntentResponse that will be returned to the API caller.
2852	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
2853
2854	// FulfillmentInfo: Always present. Information about the fulfillment
2855	// that triggered this webhook call.
2856	FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
2857
2858	// IntentInfo: Information about the last matched intent.
2859	IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
2860
2861	// Messages: The list of rich message responses to present to the user.
2862	// Webhook can choose to append or replace this list in
2863	// WebhookResponse.fulfillment_response;
2864	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
2865
2866	// PageInfo: Information about page status.
2867	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
2868
2869	// Payload: Custom data set in QueryParameters.payload.
2870	Payload googleapi.RawMessage `json:"payload,omitempty"`
2871
2872	// SentimentAnalysisResult: The sentiment analysis result of the current
2873	// user request. The field is filled when sentiment analysis is
2874	// configured to be enabled for the request.
2875	SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
2876
2877	// SessionInfo: Information about session status.
2878	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
2879
2880	// ForceSendFields is a list of field names (e.g.
2881	// "DetectIntentResponseId") to unconditionally include in API requests.
2882	// By default, fields with empty values are omitted from API requests.
2883	// However, any non-pointer, non-interface field appearing in
2884	// ForceSendFields will be sent to the server regardless of whether the
2885	// field is empty or not. This may be used to include empty fields in
2886	// Patch requests.
2887	ForceSendFields []string `json:"-"`
2888
2889	// NullFields is a list of field names (e.g. "DetectIntentResponseId")
2890	// to include in API requests with the JSON null value. By default,
2891	// fields with empty values are omitted from API requests. However, any
2892	// field with an empty value appearing in NullFields will be sent to the
2893	// server as null. It is an error if a field in this list has a
2894	// non-empty value. This may be used to include null fields in Patch
2895	// requests.
2896	NullFields []string `json:"-"`
2897}
2898
2899func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
2900	type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
2901	raw := NoMethod(*s)
2902	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2903}
2904
2905// GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents
2906// fulfillment information communicated to the webhook.
2907type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
2908	// Tag: Always present. The tag used to identify which fulfillment is
2909	// being called.
2910	Tag string `json:"tag,omitempty"`
2911
2912	// ForceSendFields is a list of field names (e.g. "Tag") to
2913	// unconditionally include in API requests. By default, fields with
2914	// empty values are omitted from API requests. However, any non-pointer,
2915	// non-interface field appearing in ForceSendFields will be sent to the
2916	// server regardless of whether the field is empty or not. This may be
2917	// used to include empty fields in Patch requests.
2918	ForceSendFields []string `json:"-"`
2919
2920	// NullFields is a list of field names (e.g. "Tag") to include in API
2921	// requests with the JSON null value. By default, fields with empty
2922	// values are omitted from API requests. However, any field with an
2923	// empty value appearing in NullFields will be sent to the server as
2924	// null. It is an error if a field in this list has a non-empty value.
2925	// This may be used to include null fields in Patch requests.
2926	NullFields []string `json:"-"`
2927}
2928
2929func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
2930	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
2931	raw := NoMethod(*s)
2932	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2933}
2934
2935// GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent
2936// information communicated to the webhook.
2937type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
2938	// Confidence: The confidence of the matched intent. Values range from
2939	// 0.0 (completely uncertain) to 1.0 (completely certain).
2940	Confidence float64 `json:"confidence,omitempty"`
2941
2942	// DisplayName: Always present. The display name of the last matched
2943	// intent.
2944	DisplayName string `json:"displayName,omitempty"`
2945
2946	// LastMatchedIntent: Always present. The unique identifier of the last
2947	// matched intent. Format: `projects//locations//agents//intents/`.
2948	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
2949
2950	// Parameters: Parameters identified as a result of intent matching.
2951	// This is a map of the name of the identified parameter to the value of
2952	// the parameter identified from the user's utterance. All parameters
2953	// defined in the matched intent that are identified will be surfaced
2954	// here.
2955	Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
2956
2957	// ForceSendFields is a list of field names (e.g. "Confidence") to
2958	// unconditionally include in API requests. By default, fields with
2959	// empty values are omitted from API requests. However, any non-pointer,
2960	// non-interface field appearing in ForceSendFields will be sent to the
2961	// server regardless of whether the field is empty or not. This may be
2962	// used to include empty fields in Patch requests.
2963	ForceSendFields []string `json:"-"`
2964
2965	// NullFields is a list of field names (e.g. "Confidence") to include in
2966	// API requests with the JSON null value. By default, fields with empty
2967	// values are omitted from API requests. However, any field with an
2968	// empty value appearing in NullFields will be sent to the server as
2969	// null. It is an error if a field in this list has a non-empty value.
2970	// This may be used to include null fields in Patch requests.
2971	NullFields []string `json:"-"`
2972}
2973
2974func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
2975	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
2976	raw := NoMethod(*s)
2977	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2978}
2979
2980func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
2981	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
2982	var s1 struct {
2983		Confidence gensupport.JSONFloat64 `json:"confidence"`
2984		*NoMethod
2985	}
2986	s1.NoMethod = (*NoMethod)(s)
2987	if err := json.Unmarshal(data, &s1); err != nil {
2988		return err
2989	}
2990	s.Confidence = float64(s1.Confidence)
2991	return nil
2992}
2993
2994// GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
2995//  Represents a value for an intent parameter.
2996type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
2997	// OriginalValue: Always present. Original text value extracted from
2998	// user utterance.
2999	OriginalValue string `json:"originalValue,omitempty"`
3000
3001	// ResolvedValue: Always present. Structured value for the parameter
3002	// extracted from user utterance.
3003	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
3004
3005	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
3006	// unconditionally include in API requests. By default, fields with
3007	// empty values are omitted from API requests. However, any non-pointer,
3008	// non-interface field appearing in ForceSendFields will be sent to the
3009	// server regardless of whether the field is empty or not. This may be
3010	// used to include empty fields in Patch requests.
3011	ForceSendFields []string `json:"-"`
3012
3013	// NullFields is a list of field names (e.g. "OriginalValue") to include
3014	// in API requests with the JSON null value. By default, fields with
3015	// empty values are omitted from API requests. However, any field with
3016	// an empty value appearing in NullFields will be sent to the server as
3017	// null. It is an error if a field in this list has a non-empty value.
3018	// This may be used to include null fields in Patch requests.
3019	NullFields []string `json:"-"`
3020}
3021
3022func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
3023	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
3024	raw := NoMethod(*s)
3025	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3026}
3027
3028// GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult:
3029// Represents the result of sentiment analysis.
3030type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
3031	// Magnitude: A non-negative number in the [0, +inf) range, which
3032	// represents the absolute magnitude of sentiment, regardless of score
3033	// (positive or negative).
3034	Magnitude float64 `json:"magnitude,omitempty"`
3035
3036	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
3037	// (positive sentiment).
3038	Score float64 `json:"score,omitempty"`
3039
3040	// ForceSendFields is a list of field names (e.g. "Magnitude") to
3041	// unconditionally include in API requests. By default, fields with
3042	// empty values are omitted from API requests. However, any non-pointer,
3043	// non-interface field appearing in ForceSendFields will be sent to the
3044	// server regardless of whether the field is empty or not. This may be
3045	// used to include empty fields in Patch requests.
3046	ForceSendFields []string `json:"-"`
3047
3048	// NullFields is a list of field names (e.g. "Magnitude") to include in
3049	// API requests with the JSON null value. By default, fields with empty
3050	// values are omitted from API requests. However, any field with an
3051	// empty value appearing in NullFields will be sent to the server as
3052	// null. It is an error if a field in this list has a non-empty value.
3053	// This may be used to include null fields in Patch requests.
3054	NullFields []string `json:"-"`
3055}
3056
3057func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
3058	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3059	raw := NoMethod(*s)
3060	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3061}
3062
3063func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
3064	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3065	var s1 struct {
3066		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
3067		Score     gensupport.JSONFloat64 `json:"score"`
3068		*NoMethod
3069	}
3070	s1.NoMethod = (*NoMethod)(s)
3071	if err := json.Unmarshal(data, &s1); err != nil {
3072		return err
3073	}
3074	s.Magnitude = float64(s1.Magnitude)
3075	s.Score = float64(s1.Score)
3076	return nil
3077}
3078
3079// GoogleCloudDialogflowCxV3WebhookResponse: The response message for a
3080// webhook call.
3081type GoogleCloudDialogflowCxV3WebhookResponse struct {
3082	// FulfillmentResponse: The fulfillment response to send to the user.
3083	// This field can be omitted by the webhook if it does not intend to
3084	// send any response to the user.
3085	FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
3086
3087	// PageInfo: Information about page status. This field can be omitted by
3088	// the webhook if it does not intend to modify page status.
3089	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3090
3091	// Payload: Value to append directly to QueryResult.webhook_payloads.
3092	Payload googleapi.RawMessage `json:"payload,omitempty"`
3093
3094	// SessionInfo: Information about session status. This field can be
3095	// omitted by the webhook if it does not intend to modify session
3096	// status.
3097	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3098
3099	// TargetFlow: The target flow to transition to. Format:
3100	// `projects//locations//agents//flows/`.
3101	TargetFlow string `json:"targetFlow,omitempty"`
3102
3103	// TargetPage: The target page to transition to. Format:
3104	// `projects//locations//agents//flows//pages/`.
3105	TargetPage string `json:"targetPage,omitempty"`
3106
3107	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse")
3108	// to unconditionally include in API requests. By default, fields with
3109	// empty values are omitted from API requests. However, any non-pointer,
3110	// non-interface field appearing in ForceSendFields will be sent to the
3111	// server regardless of whether the field is empty or not. This may be
3112	// used to include empty fields in Patch requests.
3113	ForceSendFields []string `json:"-"`
3114
3115	// NullFields is a list of field names (e.g. "FulfillmentResponse") to
3116	// include in API requests with the JSON null value. By default, fields
3117	// with empty values are omitted from API requests. However, any field
3118	// with an empty value appearing in NullFields will be sent to the
3119	// server as null. It is an error if a field in this list has a
3120	// non-empty value. This may be used to include null fields in Patch
3121	// requests.
3122	NullFields []string `json:"-"`
3123}
3124
3125func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
3126	type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
3127	raw := NoMethod(*s)
3128	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3129}
3130
3131// GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse:
3132// Represents a fulfillment response to the user.
3133type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
3134	// MergeBehavior: Merge behavior for `messages`.
3135	//
3136	// Possible values:
3137	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be
3138	// used.
3139	//   "APPEND" - `messages` will be appended to the list of messages
3140	// waiting to be sent to the user.
3141	//   "REPLACE" - `messages` will replace the list of messages waiting to
3142	// be sent to the user.
3143	MergeBehavior string `json:"mergeBehavior,omitempty"`
3144
3145	// Messages: The list of rich message responses to present to the user.
3146	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3147
3148	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
3149	// unconditionally include in API requests. By default, fields with
3150	// empty values are omitted from API requests. However, any non-pointer,
3151	// non-interface field appearing in ForceSendFields will be sent to the
3152	// server regardless of whether the field is empty or not. This may be
3153	// used to include empty fields in Patch requests.
3154	ForceSendFields []string `json:"-"`
3155
3156	// NullFields is a list of field names (e.g. "MergeBehavior") to include
3157	// in API requests with the JSON null value. By default, fields with
3158	// empty values are omitted from API requests. However, any field with
3159	// an empty value appearing in NullFields will be sent to the server as
3160	// null. It is an error if a field in this list has a non-empty value.
3161	// This may be used to include null fields in Patch requests.
3162	NullFields []string `json:"-"`
3163}
3164
3165func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
3166	type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
3167	raw := NoMethod(*s)
3168	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3169}
3170
3171// GoogleCloudDialogflowCxV3beta1Agent: Agents are best described as
3172// Natural Language Understanding (NLU) modules that transform user
3173// requests into actionable data. You can include agents in your app,
3174// product, or service to determine user intent and respond to the user
3175// in a natural way. After you create an agent, you can add Intents,
3176// Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the
3177// conversation flows..
3178type GoogleCloudDialogflowCxV3beta1Agent struct {
3179	// AvatarUri: The URI of the agent's avatar. Avatars are used throughout
3180	// the Dialogflow console and in the self-hosted Web Demo
3181	// (https://cloud.google.com/dialogflow/docs/integrations/web-demo)
3182	// integration.
3183	AvatarUri string `json:"avatarUri,omitempty"`
3184
3185	// DefaultLanguageCode: Immutable. The default language of the agent as
3186	// a language tag. See Language Support
3187	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
3188	// a list of the currently supported language codes. This field cannot
3189	// be set by the Agents.UpdateAgent method.
3190	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
3191
3192	// Description: The description of the agent. The maximum length is 500
3193	// characters. If exceeded, the request is rejected.
3194	Description string `json:"description,omitempty"`
3195
3196	// DisplayName: Required. The human-readable name of the agent, unique
3197	// within the location.
3198	DisplayName string `json:"displayName,omitempty"`
3199
3200	// EnableSpellCorrection: Indicates if automatic spell correction is
3201	// enabled in detect intent requests.
3202	EnableSpellCorrection bool `json:"enableSpellCorrection,omitempty"`
3203
3204	// EnableStackdriverLogging: Indicates if stackdriver logging is enabled
3205	// for the agent.
3206	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
3207
3208	// Name: The unique identifier of the agent. Required for the
3209	// Agents.UpdateAgent method. Agents.CreateAgent populates the name
3210	// automatically. Format: `projects//locations//agents/`.
3211	Name string `json:"name,omitempty"`
3212
3213	// SecuritySettings: Name of the SecuritySettings reference for the
3214	// agent. Format: `projects//locations//securitySettings/`.
3215	SecuritySettings string `json:"securitySettings,omitempty"`
3216
3217	// SpeechToTextSettings: Speech recognition related settings.
3218	SpeechToTextSettings *GoogleCloudDialogflowCxV3beta1SpeechToTextSettings `json:"speechToTextSettings,omitempty"`
3219
3220	// StartFlow: Immutable. Name of the start flow in this agent. A start
3221	// flow will be automatically created when the agent is created, and can
3222	// only be deleted by deleting the agent. Format:
3223	// `projects//locations//agents//flows/`.
3224	StartFlow string `json:"startFlow,omitempty"`
3225
3226	// TimeZone: Required. The time zone of the agent from the time zone
3227	// database (https://www.iana.org/time-zones), e.g., America/New_York,
3228	// Europe/Paris.
3229	TimeZone string `json:"timeZone,omitempty"`
3230
3231	// ServerResponse contains the HTTP response code and headers from the
3232	// server.
3233	googleapi.ServerResponse `json:"-"`
3234
3235	// ForceSendFields is a list of field names (e.g. "AvatarUri") to
3236	// unconditionally include in API requests. By default, fields with
3237	// empty values are omitted from API requests. However, any non-pointer,
3238	// non-interface field appearing in ForceSendFields will be sent to the
3239	// server regardless of whether the field is empty or not. This may be
3240	// used to include empty fields in Patch requests.
3241	ForceSendFields []string `json:"-"`
3242
3243	// NullFields is a list of field names (e.g. "AvatarUri") to include in
3244	// API requests with the JSON null value. By default, fields with empty
3245	// values are omitted from API requests. However, any field with an
3246	// empty value appearing in NullFields will be sent to the server as
3247	// null. It is an error if a field in this list has a non-empty value.
3248	// This may be used to include null fields in Patch requests.
3249	NullFields []string `json:"-"`
3250}
3251
3252func (s *GoogleCloudDialogflowCxV3beta1Agent) MarshalJSON() ([]byte, error) {
3253	type NoMethod GoogleCloudDialogflowCxV3beta1Agent
3254	raw := NoMethod(*s)
3255	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3256}
3257
3258// GoogleCloudDialogflowCxV3beta1AgentValidationResult: The response
3259// message for Agents.GetAgentValidationResult.
3260type GoogleCloudDialogflowCxV3beta1AgentValidationResult struct {
3261	// FlowValidationResults: Contains all flow validation results.
3262	FlowValidationResults []*GoogleCloudDialogflowCxV3beta1FlowValidationResult `json:"flowValidationResults,omitempty"`
3263
3264	// Name: The unique identifier of the agent validation result. Format:
3265	// `projects//locations//agents//validationResult`.
3266	Name string `json:"name,omitempty"`
3267
3268	// ServerResponse contains the HTTP response code and headers from the
3269	// server.
3270	googleapi.ServerResponse `json:"-"`
3271
3272	// ForceSendFields is a list of field names (e.g.
3273	// "FlowValidationResults") to unconditionally include in API requests.
3274	// By default, fields with empty values are omitted from API requests.
3275	// However, any non-pointer, non-interface field appearing in
3276	// ForceSendFields will be sent to the server regardless of whether the
3277	// field is empty or not. This may be used to include empty fields in
3278	// Patch requests.
3279	ForceSendFields []string `json:"-"`
3280
3281	// NullFields is a list of field names (e.g. "FlowValidationResults") to
3282	// include in API requests with the JSON null value. By default, fields
3283	// with empty values are omitted from API requests. However, any field
3284	// with an empty value appearing in NullFields will be sent to the
3285	// server as null. It is an error if a field in this list has a
3286	// non-empty value. This may be used to include null fields in Patch
3287	// requests.
3288	NullFields []string `json:"-"`
3289}
3290
3291func (s *GoogleCloudDialogflowCxV3beta1AgentValidationResult) MarshalJSON() ([]byte, error) {
3292	type NoMethod GoogleCloudDialogflowCxV3beta1AgentValidationResult
3293	raw := NoMethod(*s)
3294	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3295}
3296
3297// GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural
3298// speech audio to be processed.
3299type GoogleCloudDialogflowCxV3beta1AudioInput struct {
3300	// Audio: The natural language speech audio to be processed. A single
3301	// request can contain up to 1 minute of speech audio data. The
3302	// transcribed text cannot contain more than 256 bytes. For
3303	// non-streaming audio detect intent, both `config` and `audio` must be
3304	// provided. For streaming audio detect intent, `config` must be
3305	// provided in the first request and `audio` must be provided in all
3306	// following requests.
3307	Audio string `json:"audio,omitempty"`
3308
3309	// Config: Required. Instructs the speech recognizer how to process the
3310	// speech audio.
3311	Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
3312
3313	// ForceSendFields is a list of field names (e.g. "Audio") to
3314	// unconditionally include in API requests. By default, fields with
3315	// empty values are omitted from API requests. However, any non-pointer,
3316	// non-interface field appearing in ForceSendFields will be sent to the
3317	// server regardless of whether the field is empty or not. This may be
3318	// used to include empty fields in Patch requests.
3319	ForceSendFields []string `json:"-"`
3320
3321	// NullFields is a list of field names (e.g. "Audio") to include in API
3322	// requests with the JSON null value. By default, fields with empty
3323	// values are omitted from API requests. However, any field with an
3324	// empty value appearing in NullFields will be sent to the server as
3325	// null. It is an error if a field in this list has a non-empty value.
3326	// This may be used to include null fields in Patch requests.
3327	NullFields []string `json:"-"`
3328}
3329
3330func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
3331	type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
3332	raw := NoMethod(*s)
3333	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3334}
3335
3336// GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest: The
3337// request message for TestCases.BatchDeleteTestCases.
3338type GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest struct {
3339	// Names: Required. Format of test case names: `projects//locations/
3340	// /agents//testCases/`.
3341	Names []string `json:"names,omitempty"`
3342
3343	// ForceSendFields is a list of field names (e.g. "Names") to
3344	// unconditionally include in API requests. By default, fields with
3345	// empty values are omitted from API requests. However, any non-pointer,
3346	// non-interface field appearing in ForceSendFields will be sent to the
3347	// server regardless of whether the field is empty or not. This may be
3348	// used to include empty fields in Patch requests.
3349	ForceSendFields []string `json:"-"`
3350
3351	// NullFields is a list of field names (e.g. "Names") to include in API
3352	// requests with the JSON null value. By default, fields with empty
3353	// values are omitted from API requests. However, any field with an
3354	// empty value appearing in NullFields will be sent to the server as
3355	// null. It is an error if a field in this list has a non-empty value.
3356	// This may be used to include null fields in Patch requests.
3357	NullFields []string `json:"-"`
3358}
3359
3360func (s *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest) MarshalJSON() ([]byte, error) {
3361	type NoMethod GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest
3362	raw := NoMethod(*s)
3363	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3364}
3365
3366// GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata: Metadata
3367// returned for the TestCases.BatchRunTestCases long running operation.
3368type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
3369	// Errors: The test errors.
3370	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
3371
3372	// ForceSendFields is a list of field names (e.g. "Errors") to
3373	// unconditionally include in API requests. By default, fields with
3374	// empty values are omitted from API requests. However, any non-pointer,
3375	// non-interface field appearing in ForceSendFields will be sent to the
3376	// server regardless of whether the field is empty or not. This may be
3377	// used to include empty fields in Patch requests.
3378	ForceSendFields []string `json:"-"`
3379
3380	// NullFields is a list of field names (e.g. "Errors") to include in API
3381	// requests with the JSON null value. By default, fields with empty
3382	// values are omitted from API requests. However, any field with an
3383	// empty value appearing in NullFields will be sent to the server as
3384	// null. It is an error if a field in this list has a non-empty value.
3385	// This may be used to include null fields in Patch requests.
3386	NullFields []string `json:"-"`
3387}
3388
3389func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
3390	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
3391	raw := NoMethod(*s)
3392	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3393}
3394
3395// GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest: The request
3396// message for TestCases.BatchRunTestCases.
3397type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest struct {
3398	// Environment: Optional. If not set, draft environment is assumed.
3399	// Format: `projects//locations//agents//environments/`.
3400	Environment string `json:"environment,omitempty"`
3401
3402	// TestCases: Required. Format:
3403	// `projects//locations//agents//testCases/`.
3404	TestCases []string `json:"testCases,omitempty"`
3405
3406	// ForceSendFields is a list of field names (e.g. "Environment") to
3407	// unconditionally include in API requests. By default, fields with
3408	// empty values are omitted from API requests. However, any non-pointer,
3409	// non-interface field appearing in ForceSendFields will be sent to the
3410	// server regardless of whether the field is empty or not. This may be
3411	// used to include empty fields in Patch requests.
3412	ForceSendFields []string `json:"-"`
3413
3414	// NullFields is a list of field names (e.g. "Environment") to include
3415	// in API requests with the JSON null value. By default, fields with
3416	// empty values are omitted from API requests. However, any field with
3417	// an empty value appearing in NullFields will be sent to the server as
3418	// null. It is an error if a field in this list has a non-empty value.
3419	// This may be used to include null fields in Patch requests.
3420	NullFields []string `json:"-"`
3421}
3422
3423func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest) MarshalJSON() ([]byte, error) {
3424	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest
3425	raw := NoMethod(*s)
3426	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3427}
3428
3429// GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse: The response
3430// message for TestCases.BatchRunTestCases.
3431type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
3432	// Results: The test case results. The detailed conversation turns are
3433	// empty in this response.
3434	Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
3435
3436	// ForceSendFields is a list of field names (e.g. "Results") to
3437	// unconditionally include in API requests. By default, fields with
3438	// empty values are omitted from API requests. However, any non-pointer,
3439	// non-interface field appearing in ForceSendFields will be sent to the
3440	// server regardless of whether the field is empty or not. This may be
3441	// used to include empty fields in Patch requests.
3442	ForceSendFields []string `json:"-"`
3443
3444	// NullFields is a list of field names (e.g. "Results") to include in
3445	// API requests with the JSON null value. By default, fields with empty
3446	// values are omitted from API requests. However, any field with an
3447	// empty value appearing in NullFields will be sent to the server as
3448	// null. It is an error if a field in this list has a non-empty value.
3449	// This may be used to include null fields in Patch requests.
3450	NullFields []string `json:"-"`
3451}
3452
3453func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
3454	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
3455	raw := NoMethod(*s)
3456	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3457}
3458
3459// GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse: The response
3460// message for TestCases.CalculateCoverage.
3461type GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse struct {
3462	// Agent: The agent to calculate coverage for. Format:
3463	// `projects//locations//agents/`.
3464	Agent string `json:"agent,omitempty"`
3465
3466	// IntentCoverage: Intent coverage.
3467	IntentCoverage *GoogleCloudDialogflowCxV3beta1IntentCoverage `json:"intentCoverage,omitempty"`
3468
3469	// RouteGroupCoverage: Transition route group coverage.
3470	RouteGroupCoverage *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage `json:"routeGroupCoverage,omitempty"`
3471
3472	// TransitionCoverage: Transition (excluding transition route groups)
3473	// coverage.
3474	TransitionCoverage *GoogleCloudDialogflowCxV3beta1TransitionCoverage `json:"transitionCoverage,omitempty"`
3475
3476	// ServerResponse contains the HTTP response code and headers from the
3477	// server.
3478	googleapi.ServerResponse `json:"-"`
3479
3480	// ForceSendFields is a list of field names (e.g. "Agent") to
3481	// unconditionally include in API requests. By default, fields with
3482	// empty values are omitted from API requests. However, any non-pointer,
3483	// non-interface field appearing in ForceSendFields will be sent to the
3484	// server regardless of whether the field is empty or not. This may be
3485	// used to include empty fields in Patch requests.
3486	ForceSendFields []string `json:"-"`
3487
3488	// NullFields is a list of field names (e.g. "Agent") to include in API
3489	// requests with the JSON null value. By default, fields with empty
3490	// values are omitted from API requests. However, any field with an
3491	// empty value appearing in NullFields will be sent to the server as
3492	// null. It is an error if a field in this list has a non-empty value.
3493	// This may be used to include null fields in Patch requests.
3494	NullFields []string `json:"-"`
3495}
3496
3497func (s *GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse) MarshalJSON() ([]byte, error) {
3498	type NoMethod GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse
3499	raw := NoMethod(*s)
3500	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3501}
3502
3503// GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction
3504// between a human and virtual agent. The human provides some input and
3505// the virtual agent provides a response.
3506type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
3507	// UserInput: The user input.
3508	UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
3509
3510	// VirtualAgentOutput: The virtual agent output.
3511	VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
3512
3513	// ForceSendFields is a list of field names (e.g. "UserInput") to
3514	// unconditionally include in API requests. By default, fields with
3515	// empty values are omitted from API requests. However, any non-pointer,
3516	// non-interface field appearing in ForceSendFields will be sent to the
3517	// server regardless of whether the field is empty or not. This may be
3518	// used to include empty fields in Patch requests.
3519	ForceSendFields []string `json:"-"`
3520
3521	// NullFields is a list of field names (e.g. "UserInput") to include in
3522	// API requests with the JSON null value. By default, fields with empty
3523	// values are omitted from API requests. However, any field with an
3524	// empty value appearing in NullFields will be sent to the server as
3525	// null. It is an error if a field in this list has a non-empty value.
3526	// This may be used to include null fields in Patch requests.
3527	NullFields []string `json:"-"`
3528}
3529
3530func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
3531	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
3532	raw := NoMethod(*s)
3533	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3534}
3535
3536// GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput: The input
3537// from the human user.
3538type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
3539	// InjectedParameters: Parameters that need to be injected into the
3540	// conversation during intent detection.
3541	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
3542
3543	// Input: Supports text input, event input, dtmf input in the test case.
3544	Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
3545
3546	// IsWebhookEnabled: If webhooks should be allowed to trigger in
3547	// response to the user utterance. Often if parameters are injected,
3548	// webhooks should not be enabled.
3549	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
3550
3551	// ForceSendFields is a list of field names (e.g. "InjectedParameters")
3552	// to unconditionally include in API requests. By default, fields with
3553	// empty values are omitted from API requests. However, any non-pointer,
3554	// non-interface field appearing in ForceSendFields will be sent to the
3555	// server regardless of whether the field is empty or not. This may be
3556	// used to include empty fields in Patch requests.
3557	ForceSendFields []string `json:"-"`
3558
3559	// NullFields is a list of field names (e.g. "InjectedParameters") to
3560	// include in API requests with the JSON null value. By default, fields
3561	// with empty values are omitted from API requests. However, any field
3562	// with an empty value appearing in NullFields will be sent to the
3563	// server as null. It is an error if a field in this list has a
3564	// non-empty value. This may be used to include null fields in Patch
3565	// requests.
3566	NullFields []string `json:"-"`
3567}
3568
3569func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
3570	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
3571	raw := NoMethod(*s)
3572	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3573}
3574
3575// GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput: The
3576// output from the virtual agent.
3577type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
3578	// CurrentPage: The Page on which the utterance was spoken. Only name
3579	// and displayName will be set.
3580	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
3581
3582	// DiagnosticInfo: Required. Input only. The diagnostic info output for
3583	// the turn.
3584	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
3585
3586	// Differences: Output only. If this is part of a result conversation
3587	// turn, the list of differences between the original run and the replay
3588	// for this output, if any.
3589	Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
3590
3591	// SessionParameters: The session parameters available to the bot at
3592	// this point.
3593	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
3594
3595	// Status: Response error from the agent in the test result. If set,
3596	// other output is empty.
3597	Status *GoogleRpcStatus `json:"status,omitempty"`
3598
3599	// TextResponses: The text responses from the agent for the turn.
3600	TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
3601
3602	// TriggeredIntent: The Intent that triggered the response. Only name
3603	// and displayName will be set.
3604	TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
3605
3606	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
3607	// unconditionally include in API requests. By default, fields with
3608	// empty values are omitted from API requests. However, any non-pointer,
3609	// non-interface field appearing in ForceSendFields will be sent to the
3610	// server regardless of whether the field is empty or not. This may be
3611	// used to include empty fields in Patch requests.
3612	ForceSendFields []string `json:"-"`
3613
3614	// NullFields is a list of field names (e.g. "CurrentPage") to include
3615	// in API requests with the JSON null value. By default, fields with
3616	// empty values are omitted from API requests. However, any field with
3617	// an empty value appearing in NullFields will be sent to the server as
3618	// null. It is an error if a field in this list has a non-empty value.
3619	// This may be used to include null fields in Patch requests.
3620	NullFields []string `json:"-"`
3621}
3622
3623func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
3624	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
3625	raw := NoMethod(*s)
3626	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3627}
3628
3629// GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata:
3630// Metadata for CreateDocument operation.
3631type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
3632	// GenericMetadata: The generic information of the operation.
3633	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3634
3635	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
3636	// unconditionally include in API requests. By default, fields with
3637	// empty values are omitted from API requests. However, any non-pointer,
3638	// non-interface field appearing in ForceSendFields will be sent to the
3639	// server regardless of whether the field is empty or not. This may be
3640	// used to include empty fields in Patch requests.
3641	ForceSendFields []string `json:"-"`
3642
3643	// NullFields is a list of field names (e.g. "GenericMetadata") to
3644	// include in API requests with the JSON null value. By default, fields
3645	// with empty values are omitted from API requests. However, any field
3646	// with an empty value appearing in NullFields will be sent to the
3647	// server as null. It is an error if a field in this list has a
3648	// non-empty value. This may be used to include null fields in Patch
3649	// requests.
3650	NullFields []string `json:"-"`
3651}
3652
3653func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3654	type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
3655	raw := NoMethod(*s)
3656	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3657}
3658
3659// GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata:
3660// Metadata associated with the long running operation for
3661// Versions.CreateVersion.
3662type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
3663	// Version: Name of the created version. Format:
3664	// `projects//locations//agents//flows//versions/`.
3665	Version string `json:"version,omitempty"`
3666
3667	// ForceSendFields is a list of field names (e.g. "Version") to
3668	// unconditionally include in API requests. By default, fields with
3669	// empty values are omitted from API requests. However, any non-pointer,
3670	// non-interface field appearing in ForceSendFields will be sent to the
3671	// server regardless of whether the field is empty or not. This may be
3672	// used to include empty fields in Patch requests.
3673	ForceSendFields []string `json:"-"`
3674
3675	// NullFields is a list of field names (e.g. "Version") to include in
3676	// API requests with the JSON null value. By default, fields with empty
3677	// values are omitted from API requests. However, any field with an
3678	// empty value appearing in NullFields will be sent to the server as
3679	// null. It is an error if a field in this list has a non-empty value.
3680	// This may be used to include null fields in Patch requests.
3681	NullFields []string `json:"-"`
3682}
3683
3684func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
3685	type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
3686	raw := NoMethod(*s)
3687	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3688}
3689
3690// GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata:
3691// Metadata for DeleteDocument operation.
3692type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
3693	// GenericMetadata: The generic information of the operation.
3694	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3695
3696	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
3697	// unconditionally include in API requests. By default, fields with
3698	// empty values are omitted from API requests. However, any non-pointer,
3699	// non-interface field appearing in ForceSendFields will be sent to the
3700	// server regardless of whether the field is empty or not. This may be
3701	// used to include empty fields in Patch requests.
3702	ForceSendFields []string `json:"-"`
3703
3704	// NullFields is a list of field names (e.g. "GenericMetadata") to
3705	// include in API requests with the JSON null value. By default, fields
3706	// with empty values are omitted from API requests. However, any field
3707	// with an empty value appearing in NullFields will be sent to the
3708	// server as null. It is an error if a field in this list has a
3709	// non-empty value. This may be used to include null fields in Patch
3710	// requests.
3711	NullFields []string `json:"-"`
3712}
3713
3714func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3715	type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
3716	raw := NoMethod(*s)
3717	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3718}
3719
3720// GoogleCloudDialogflowCxV3beta1DetectIntentRequest: The request to
3721// detect user's intent.
3722type GoogleCloudDialogflowCxV3beta1DetectIntentRequest struct {
3723	// OutputAudioConfig: Instructs the speech synthesizer how to generate
3724	// the output audio.
3725	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
3726
3727	// QueryInput: Required. The input specification.
3728	QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
3729
3730	// QueryParams: The parameters of this query.
3731	QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
3732
3733	// ForceSendFields is a list of field names (e.g. "OutputAudioConfig")
3734	// to unconditionally include in API requests. By default, fields with
3735	// empty values are omitted from API requests. However, any non-pointer,
3736	// non-interface field appearing in ForceSendFields will be sent to the
3737	// server regardless of whether the field is empty or not. This may be
3738	// used to include empty fields in Patch requests.
3739	ForceSendFields []string `json:"-"`
3740
3741	// NullFields is a list of field names (e.g. "OutputAudioConfig") to
3742	// include in API requests with the JSON null value. By default, fields
3743	// with empty values are omitted from API requests. However, any field
3744	// with an empty value appearing in NullFields will be sent to the
3745	// server as null. It is an error if a field in this list has a
3746	// non-empty value. This may be used to include null fields in Patch
3747	// requests.
3748	NullFields []string `json:"-"`
3749}
3750
3751func (s *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
3752	type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentRequest
3753	raw := NoMethod(*s)
3754	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3755}
3756
3757// GoogleCloudDialogflowCxV3beta1DetectIntentResponse: The message
3758// returned from the DetectIntent method.
3759type GoogleCloudDialogflowCxV3beta1DetectIntentResponse struct {
3760	// OutputAudio: The audio data bytes encoded as specified in the
3761	// request. Note: The output audio is generated based on the values of
3762	// default platform text responses found in the
3763	// `query_result.response_messages` field. If multiple default text
3764	// responses exist, they will be concatenated when generating audio. If
3765	// no default platform text responses exist, the generated audio content
3766	// will be empty. In some scenarios, multiple output audio fields may be
3767	// present in the response structure. In these cases, only the
3768	// top-most-level audio output has content.
3769	OutputAudio string `json:"outputAudio,omitempty"`
3770
3771	// OutputAudioConfig: The config used by the speech synthesizer to
3772	// generate the output audio.
3773	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
3774
3775	// QueryResult: The result of the conversational query.
3776	QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
3777
3778	// ResponseId: Output only. The unique identifier of the response. It
3779	// can be used to locate a response in the training example set or for
3780	// reporting issues.
3781	ResponseId string `json:"responseId,omitempty"`
3782
3783	// ServerResponse contains the HTTP response code and headers from the
3784	// server.
3785	googleapi.ServerResponse `json:"-"`
3786
3787	// ForceSendFields is a list of field names (e.g. "OutputAudio") to
3788	// unconditionally include in API requests. By default, fields with
3789	// empty values are omitted from API requests. However, any non-pointer,
3790	// non-interface field appearing in ForceSendFields will be sent to the
3791	// server regardless of whether the field is empty or not. This may be
3792	// used to include empty fields in Patch requests.
3793	ForceSendFields []string `json:"-"`
3794
3795	// NullFields is a list of field names (e.g. "OutputAudio") to include
3796	// in API requests with the JSON null value. By default, fields with
3797	// empty values are omitted from API requests. However, any field with
3798	// an empty value appearing in NullFields will be sent to the server as
3799	// null. It is an error if a field in this list has a non-empty value.
3800	// This may be used to include null fields in Patch requests.
3801	NullFields []string `json:"-"`
3802}
3803
3804func (s *GoogleCloudDialogflowCxV3beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
3805	type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentResponse
3806	raw := NoMethod(*s)
3807	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3808}
3809
3810// GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for
3811// dtmf event.
3812type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
3813	// Digits: The dtmf digits.
3814	Digits string `json:"digits,omitempty"`
3815
3816	// FinishDigit: The finish digit (if any).
3817	FinishDigit string `json:"finishDigit,omitempty"`
3818
3819	// ForceSendFields is a list of field names (e.g. "Digits") 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. "Digits") to include in API
3828	// requests with the JSON null value. By default, fields with empty
3829	// values are omitted from API requests. However, any field with an
3830	// empty value appearing in NullFields will be sent to the server as
3831	// null. It is an error if a field in this list has a non-empty value.
3832	// This may be used to include null fields in Patch requests.
3833	NullFields []string `json:"-"`
3834}
3835
3836func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
3837	type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
3838	raw := NoMethod(*s)
3839	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3840}
3841
3842// GoogleCloudDialogflowCxV3beta1EntityType: Entities are extracted from
3843// user input and represent parameters that are meaningful to your
3844// application. For example, a date range, a proper name such as a
3845// geographic location or landmark, and so on. Entities represent
3846// actionable data for your application. When you define an entity, you
3847// can also include synonyms that all map to that entity. For example,
3848// "soft drink", "soda", "pop", and so on. There are three types of
3849// entities: * **System** - entities that are defined by the Dialogflow
3850// API for common data types such as date, time, currency, and so on. A
3851// system entity is represented by the `EntityType` type. * **Custom** -
3852// entities that are defined by you that represent actionable data that
3853// is meaningful to your application. For example, you could define a
3854// `pizza.sauce` entity for red or white pizza sauce, a `pizza.cheese`
3855// entity for the different types of cheese on a pizza, a
3856// `pizza.topping` entity for different toppings, and so on. A custom
3857// entity is represented by the `EntityType` type. * **User** - entities
3858// that are built for an individual user such as favorites, preferences,
3859// playlists, and so on. A user entity is represented by the
3860// SessionEntityType type. For more information about entity types, see
3861// the Dialogflow documentation
3862// (https://cloud.google.com/dialogflow/docs/entities-overview).
3863type GoogleCloudDialogflowCxV3beta1EntityType struct {
3864	// AutoExpansionMode: Indicates whether the entity type can be
3865	// automatically expanded.
3866	//
3867	// Possible values:
3868	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
3869	// entity.
3870	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
3871	// that have not been explicitly listed in the entity.
3872	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
3873
3874	// DisplayName: Required. The human-readable name of the entity type,
3875	// unique within the agent.
3876	DisplayName string `json:"displayName,omitempty"`
3877
3878	// EnableFuzzyExtraction: Enables fuzzy entity extraction during
3879	// classification.
3880	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
3881
3882	// Entities: The collection of entity entries associated with the entity
3883	// type.
3884	Entities []*GoogleCloudDialogflowCxV3beta1EntityTypeEntity `json:"entities,omitempty"`
3885
3886	// ExcludedPhrases: Collection of exceptional words and phrases that
3887	// shouldn't be matched. For example, if you have a size entity type
3888	// with entry `giant`(an adjective), you might consider adding
3889	// `giants`(a noun) as an exclusion. If the kind of entity type is
3890	// `KIND_MAP`, then the phrases specified by entities and excluded
3891	// phrases should be mutually exclusive.
3892	ExcludedPhrases []*GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase `json:"excludedPhrases,omitempty"`
3893
3894	// Kind: Required. Indicates the kind of entity type.
3895	//
3896	// Possible values:
3897	//   "KIND_UNSPECIFIED" - Not specified. This value should be never
3898	// used.
3899	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms
3900	// to a canonical value.
3901	//   "KIND_LIST" - List entity types contain a set of entries that do
3902	// not map to canonical values. However, list entity types can contain
3903	// references to other entity types (with or without aliases).
3904	//   "KIND_REGEXP" - Regexp entity types allow to specify regular
3905	// expressions in entries values.
3906	Kind string `json:"kind,omitempty"`
3907
3908	// Name: The unique identifier of the entity type. Required for
3909	// EntityTypes.UpdateEntityType. Format:
3910	// `projects//locations//agents//entityTypes/`.
3911	Name string `json:"name,omitempty"`
3912
3913	// Redact: Indicates whether parameters of the entity type should be
3914	// redacted in log. If redaction is enabled, page parameters and intent
3915	// parameters referring to the entity type will be replaced by parameter
3916	// name during logging.
3917	Redact bool `json:"redact,omitempty"`
3918
3919	// ServerResponse contains the HTTP response code and headers from the
3920	// server.
3921	googleapi.ServerResponse `json:"-"`
3922
3923	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
3924	// to unconditionally include in API requests. By default, fields with
3925	// empty values are omitted from API requests. However, any non-pointer,
3926	// non-interface field appearing in ForceSendFields will be sent to the
3927	// server regardless of whether the field is empty or not. This may be
3928	// used to include empty fields in Patch requests.
3929	ForceSendFields []string `json:"-"`
3930
3931	// NullFields is a list of field names (e.g. "AutoExpansionMode") to
3932	// include in API requests with the JSON null value. By default, fields
3933	// with empty values are omitted from API requests. However, any field
3934	// with an empty value appearing in NullFields will be sent to the
3935	// server as null. It is an error if a field in this list has a
3936	// non-empty value. This may be used to include null fields in Patch
3937	// requests.
3938	NullFields []string `json:"-"`
3939}
3940
3941func (s *GoogleCloudDialogflowCxV3beta1EntityType) MarshalJSON() ([]byte, error) {
3942	type NoMethod GoogleCloudDialogflowCxV3beta1EntityType
3943	raw := NoMethod(*s)
3944	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3945}
3946
3947// GoogleCloudDialogflowCxV3beta1EntityTypeEntity: An **entity entry**
3948// for an associated entity type.
3949type GoogleCloudDialogflowCxV3beta1EntityTypeEntity struct {
3950	// Synonyms: Required. A collection of value synonyms. For example, if
3951	// the entity type is *vegetable*, and `value` is *scallions*, a synonym
3952	// could be *green onions*. For `KIND_LIST` entity types: * This
3953	// collection must contain exactly one synonym equal to `value`.
3954	Synonyms []string `json:"synonyms,omitempty"`
3955
3956	// Value: Required. The primary value associated with this entity entry.
3957	// For example, if the entity type is *vegetable*, the value could be
3958	// *scallions*. For `KIND_MAP` entity types: * A canonical value to be
3959	// used in place of synonyms. For `KIND_LIST` entity types: * A string
3960	// that can contain references to other entity types (with or without
3961	// aliases).
3962	Value string `json:"value,omitempty"`
3963
3964	// ForceSendFields is a list of field names (e.g. "Synonyms") to
3965	// unconditionally include in API requests. By default, fields with
3966	// empty values are omitted from API requests. However, any non-pointer,
3967	// non-interface field appearing in ForceSendFields will be sent to the
3968	// server regardless of whether the field is empty or not. This may be
3969	// used to include empty fields in Patch requests.
3970	ForceSendFields []string `json:"-"`
3971
3972	// NullFields is a list of field names (e.g. "Synonyms") to include in
3973	// API requests with the JSON null value. By default, fields with empty
3974	// values are omitted from API requests. However, any field with an
3975	// empty value appearing in NullFields will be sent to the server as
3976	// null. It is an error if a field in this list has a non-empty value.
3977	// This may be used to include null fields in Patch requests.
3978	NullFields []string `json:"-"`
3979}
3980
3981func (s *GoogleCloudDialogflowCxV3beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
3982	type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeEntity
3983	raw := NoMethod(*s)
3984	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3985}
3986
3987// GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase: An excluded
3988// entity phrase that should not be matched.
3989type GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase struct {
3990	// Value: Required. The word or phrase to be excluded.
3991	Value string `json:"value,omitempty"`
3992
3993	// ForceSendFields is a list of field names (e.g. "Value") to
3994	// unconditionally include in API requests. By default, fields with
3995	// empty values are omitted from API requests. However, any non-pointer,
3996	// non-interface field appearing in ForceSendFields will be sent to the
3997	// server regardless of whether the field is empty or not. This may be
3998	// used to include empty fields in Patch requests.
3999	ForceSendFields []string `json:"-"`
4000
4001	// NullFields is a list of field names (e.g. "Value") to include in API
4002	// requests with the JSON null value. By default, fields with empty
4003	// values are omitted from API requests. However, any field with an
4004	// empty value appearing in NullFields will be sent to the server as
4005	// null. It is an error if a field in this list has a non-empty value.
4006	// This may be used to include null fields in Patch requests.
4007	NullFields []string `json:"-"`
4008}
4009
4010func (s *GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase) MarshalJSON() ([]byte, error) {
4011	type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase
4012	raw := NoMethod(*s)
4013	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4014}
4015
4016// GoogleCloudDialogflowCxV3beta1Environment: Represents an environment
4017// for an agent. You can create multiple versions of your agent and
4018// publish them to separate environments. When you edit an agent, you
4019// are editing the draft agent. At any point, you can save the draft
4020// agent as an agent version, which is an immutable snapshot of your
4021// agent. When you save the draft agent, it is published to the default
4022// environment. When you create agent versions, you can publish them to
4023// custom environments. You can create a variety of custom environments
4024// for testing, development, production, etc.
4025type GoogleCloudDialogflowCxV3beta1Environment struct {
4026	// Description: The human-readable description of the environment. The
4027	// maximum length is 500 characters. If exceeded, the request is
4028	// rejected.
4029	Description string `json:"description,omitempty"`
4030
4031	// DisplayName: Required. The human-readable name of the environment
4032	// (unique in an agent). Limit of 64 characters.
4033	DisplayName string `json:"displayName,omitempty"`
4034
4035	// Name: The name of the environment. Format:
4036	// `projects//locations//agents//environments/`.
4037	Name string `json:"name,omitempty"`
4038
4039	// UpdateTime: Output only. Update time of this environment.
4040	UpdateTime string `json:"updateTime,omitempty"`
4041
4042	// VersionConfigs: Required. A list of configurations for flow versions.
4043	// You should include version configs for all flows that are reachable
4044	// from `Start Flow` in the agent. Otherwise, an error will be returned.
4045	VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
4046
4047	// ServerResponse contains the HTTP response code and headers from the
4048	// server.
4049	googleapi.ServerResponse `json:"-"`
4050
4051	// ForceSendFields is a list of field names (e.g. "Description") to
4052	// unconditionally include in API requests. By default, fields with
4053	// empty values are omitted from API requests. However, any non-pointer,
4054	// non-interface field appearing in ForceSendFields will be sent to the
4055	// server regardless of whether the field is empty or not. This may be
4056	// used to include empty fields in Patch requests.
4057	ForceSendFields []string `json:"-"`
4058
4059	// NullFields is a list of field names (e.g. "Description") to include
4060	// in API requests with the JSON null value. By default, fields with
4061	// empty values are omitted from API requests. However, any field with
4062	// an empty value appearing in NullFields will be sent to the server as
4063	// null. It is an error if a field in this list has a non-empty value.
4064	// This may be used to include null fields in Patch requests.
4065	NullFields []string `json:"-"`
4066}
4067
4068func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
4069	type NoMethod GoogleCloudDialogflowCxV3beta1Environment
4070	raw := NoMethod(*s)
4071	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4072}
4073
4074// GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig: Configuration
4075// for the version.
4076type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
4077	// Version: Required. Format:
4078	// projects//locations//agents//flows//versions/.
4079	Version string `json:"version,omitempty"`
4080
4081	// ForceSendFields is a list of field names (e.g. "Version") to
4082	// unconditionally include in API requests. By default, fields with
4083	// empty values are omitted from API requests. However, any non-pointer,
4084	// non-interface field appearing in ForceSendFields will be sent to the
4085	// server regardless of whether the field is empty or not. This may be
4086	// used to include empty fields in Patch requests.
4087	ForceSendFields []string `json:"-"`
4088
4089	// NullFields is a list of field names (e.g. "Version") to include in
4090	// API requests with the JSON null value. By default, fields with empty
4091	// values are omitted from API requests. However, any field with an
4092	// empty value appearing in NullFields will be sent to the server as
4093	// null. It is an error if a field in this list has a non-empty value.
4094	// This may be used to include null fields in Patch requests.
4095	NullFields []string `json:"-"`
4096}
4097
4098func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
4099	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
4100	raw := NoMethod(*s)
4101	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4102}
4103
4104// GoogleCloudDialogflowCxV3beta1EventHandler: An event handler
4105// specifies an event that can be handled during a session. When the
4106// specified event happens, the following actions are taken in order: *
4107// If there is a `trigger_fulfillment` associated with the event, it
4108// will be called. * If there is a `target_page` associated with the
4109// event, the session will transition into the specified page. * If
4110// there is a `target_flow` associated with the event, the session will
4111// transition into the specified flow.
4112type GoogleCloudDialogflowCxV3beta1EventHandler struct {
4113	// Event: Required. The name of the event to handle.
4114	Event string `json:"event,omitempty"`
4115
4116	// Name: Output only. The unique identifier of this event handler.
4117	Name string `json:"name,omitempty"`
4118
4119	// TargetFlow: The target flow to transition to. Format:
4120	// `projects//locations//agents//flows/`.
4121	TargetFlow string `json:"targetFlow,omitempty"`
4122
4123	// TargetPage: The target page to transition to. Format:
4124	// `projects//locations//agents//flows//pages/`.
4125	TargetPage string `json:"targetPage,omitempty"`
4126
4127	// TriggerFulfillment: The fulfillment to call when the event occurs.
4128	// Handling webhook errors with a fulfillment enabled with webhook could
4129	// cause infinite loop. It is invalid to specify such fulfillment for a
4130	// handler handling webhooks.
4131	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
4132
4133	// ForceSendFields is a list of field names (e.g. "Event") to
4134	// unconditionally include in API requests. By default, fields with
4135	// empty values are omitted from API requests. However, any non-pointer,
4136	// non-interface field appearing in ForceSendFields will be sent to the
4137	// server regardless of whether the field is empty or not. This may be
4138	// used to include empty fields in Patch requests.
4139	ForceSendFields []string `json:"-"`
4140
4141	// NullFields is a list of field names (e.g. "Event") to include in API
4142	// requests with the JSON null value. By default, fields with empty
4143	// values are omitted from API requests. However, any field with an
4144	// empty value appearing in NullFields will be sent to the server as
4145	// null. It is an error if a field in this list has a non-empty value.
4146	// This may be used to include null fields in Patch requests.
4147	NullFields []string `json:"-"`
4148}
4149
4150func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
4151	type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
4152	raw := NoMethod(*s)
4153	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4154}
4155
4156// GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to
4157// trigger.
4158type GoogleCloudDialogflowCxV3beta1EventInput struct {
4159	// Event: Name of the event.
4160	Event string `json:"event,omitempty"`
4161
4162	// ForceSendFields is a list of field names (e.g. "Event") to
4163	// unconditionally include in API requests. By default, fields with
4164	// empty values are omitted from API requests. However, any non-pointer,
4165	// non-interface field appearing in ForceSendFields will be sent to the
4166	// server regardless of whether the field is empty or not. This may be
4167	// used to include empty fields in Patch requests.
4168	ForceSendFields []string `json:"-"`
4169
4170	// NullFields is a list of field names (e.g. "Event") to include in API
4171	// requests with the JSON null value. By default, fields with empty
4172	// values are omitted from API requests. However, any field with an
4173	// empty value appearing in NullFields will be sent to the server as
4174	// null. It is an error if a field in this list has a non-empty value.
4175	// This may be used to include null fields in Patch requests.
4176	NullFields []string `json:"-"`
4177}
4178
4179func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
4180	type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
4181	raw := NoMethod(*s)
4182	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4183}
4184
4185// GoogleCloudDialogflowCxV3beta1Experiment: Represents an experiment in
4186// an environment.
4187type GoogleCloudDialogflowCxV3beta1Experiment struct {
4188	// CreateTime: Creation time of this experiment.
4189	CreateTime string `json:"createTime,omitempty"`
4190
4191	// Definition: The definition of the experiment.
4192	Definition *GoogleCloudDialogflowCxV3beta1ExperimentDefinition `json:"definition,omitempty"`
4193
4194	// Description: The human-readable description of the experiment.
4195	Description string `json:"description,omitempty"`
4196
4197	// DisplayName: Required. The human-readable name of the experiment
4198	// (unique in an environment). Limit of 64 characters.
4199	DisplayName string `json:"displayName,omitempty"`
4200
4201	// EndTime: End time of this experiment.
4202	EndTime string `json:"endTime,omitempty"`
4203
4204	// ExperimentLength: Maximum number of days to run the experiment. If
4205	// auto-rollout is not enabled, default value and maximum will be 30
4206	// days. If auto-rollout is enabled, default value and maximum will be 6
4207	// days.
4208	ExperimentLength string `json:"experimentLength,omitempty"`
4209
4210	// LastUpdateTime: Last update time of this experiment.
4211	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
4212
4213	// Name: The name of the experiment. Format:
4214	// projects//locations//agents//environments//experiments/..
4215	Name string `json:"name,omitempty"`
4216
4217	// Result: Inference result of the experiment.
4218	Result *GoogleCloudDialogflowCxV3beta1ExperimentResult `json:"result,omitempty"`
4219
4220	// StartTime: Start time of this experiment.
4221	StartTime string `json:"startTime,omitempty"`
4222
4223	// State: The current state of the experiment. Transition triggered by
4224	// Expriments.StartExperiment: PENDING->RUNNING. Transition triggered by
4225	// Expriments.CancelExperiment: PENDING->CANCELLED or
4226	// RUNNING->CANCELLED.
4227	//
4228	// Possible values:
4229	//   "STATE_UNSPECIFIED" - State unspecified.
4230	//   "DRAFT" - The experiment is created but not started yet.
4231	//   "RUNNING" - The experiment is running.
4232	//   "DONE" - The experiment is done.
4233	State string `json:"state,omitempty"`
4234
4235	// VariantsHistory: The history of updates to the experiment variants.
4236	VariantsHistory []*GoogleCloudDialogflowCxV3beta1VariantsHistory `json:"variantsHistory,omitempty"`
4237
4238	// ServerResponse contains the HTTP response code and headers from the
4239	// server.
4240	googleapi.ServerResponse `json:"-"`
4241
4242	// ForceSendFields is a list of field names (e.g. "CreateTime") to
4243	// unconditionally include in API requests. By default, fields with
4244	// empty values are omitted from API requests. However, any non-pointer,
4245	// non-interface field appearing in ForceSendFields will be sent to the
4246	// server regardless of whether the field is empty or not. This may be
4247	// used to include empty fields in Patch requests.
4248	ForceSendFields []string `json:"-"`
4249
4250	// NullFields is a list of field names (e.g. "CreateTime") to include in
4251	// API requests with the JSON null value. By default, fields with empty
4252	// values are omitted from API requests. However, any field with an
4253	// empty value appearing in NullFields will be sent to the server as
4254	// null. It is an error if a field in this list has a non-empty value.
4255	// This may be used to include null fields in Patch requests.
4256	NullFields []string `json:"-"`
4257}
4258
4259func (s *GoogleCloudDialogflowCxV3beta1Experiment) MarshalJSON() ([]byte, error) {
4260	type NoMethod GoogleCloudDialogflowCxV3beta1Experiment
4261	raw := NoMethod(*s)
4262	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4263}
4264
4265// GoogleCloudDialogflowCxV3beta1ExperimentDefinition: Definition of the
4266// experiment.
4267type GoogleCloudDialogflowCxV3beta1ExperimentDefinition struct {
4268	// Condition: The condition defines which subset of sessions are
4269	// selected for this experiment. If not specified, all sessions are
4270	// eligible. E.g. "query_input.language_code=en" See the conditions
4271	// reference
4272	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
4273	Condition string `json:"condition,omitempty"`
4274
4275	// VersionVariants: The flow versions as the variants of this
4276	// experiment.
4277	VersionVariants *GoogleCloudDialogflowCxV3beta1VersionVariants `json:"versionVariants,omitempty"`
4278
4279	// ForceSendFields is a list of field names (e.g. "Condition") to
4280	// unconditionally include in API requests. By default, fields with
4281	// empty values are omitted from API requests. However, any non-pointer,
4282	// non-interface field appearing in ForceSendFields will be sent to the
4283	// server regardless of whether the field is empty or not. This may be
4284	// used to include empty fields in Patch requests.
4285	ForceSendFields []string `json:"-"`
4286
4287	// NullFields is a list of field names (e.g. "Condition") to include in
4288	// API requests with the JSON null value. By default, fields with empty
4289	// values are omitted from API requests. However, any field with an
4290	// empty value appearing in NullFields will be sent to the server as
4291	// null. It is an error if a field in this list has a non-empty value.
4292	// This may be used to include null fields in Patch requests.
4293	NullFields []string `json:"-"`
4294}
4295
4296func (s *GoogleCloudDialogflowCxV3beta1ExperimentDefinition) MarshalJSON() ([]byte, error) {
4297	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentDefinition
4298	raw := NoMethod(*s)
4299	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4300}
4301
4302// GoogleCloudDialogflowCxV3beta1ExperimentResult: The inference result
4303// which includes an objective metric to optimize and the confidence
4304// interval.
4305type GoogleCloudDialogflowCxV3beta1ExperimentResult struct {
4306	// LastUpdateTime: The last time the experiment's stats data was
4307	// updated. Will have default value if stats have never been computed
4308	// for this experiment.
4309	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
4310
4311	// VersionMetrics: Version variants and metrics.
4312	VersionMetrics []*GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics `json:"versionMetrics,omitempty"`
4313
4314	// ForceSendFields is a list of field names (e.g. "LastUpdateTime") to
4315	// unconditionally include in API requests. By default, fields with
4316	// empty values are omitted from API requests. However, any non-pointer,
4317	// non-interface field appearing in ForceSendFields will be sent to the
4318	// server regardless of whether the field is empty or not. This may be
4319	// used to include empty fields in Patch requests.
4320	ForceSendFields []string `json:"-"`
4321
4322	// NullFields is a list of field names (e.g. "LastUpdateTime") to
4323	// include in API requests with the JSON null value. By default, fields
4324	// with empty values are omitted from API requests. However, any field
4325	// with an empty value appearing in NullFields will be sent to the
4326	// server as null. It is an error if a field in this list has a
4327	// non-empty value. This may be used to include null fields in Patch
4328	// requests.
4329	NullFields []string `json:"-"`
4330}
4331
4332func (s *GoogleCloudDialogflowCxV3beta1ExperimentResult) MarshalJSON() ([]byte, error) {
4333	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResult
4334	raw := NoMethod(*s)
4335	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4336}
4337
4338// GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval: A
4339// confidence interval is a range of possible values for the experiment
4340// objective you are trying to measure.
4341type GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval struct {
4342	// ConfidenceLevel: The confidence level used to construct the interval,
4343	// i.e. there is X% chance that the true value is within this interval.
4344	ConfidenceLevel float64 `json:"confidenceLevel,omitempty"`
4345
4346	// LowerBound: Lower bound of the interval.
4347	LowerBound float64 `json:"lowerBound,omitempty"`
4348
4349	// Ratio: The percent change between an experiment metric's value and
4350	// the value for its control.
4351	Ratio float64 `json:"ratio,omitempty"`
4352
4353	// UpperBound: Upper bound of the interval.
4354	UpperBound float64 `json:"upperBound,omitempty"`
4355
4356	// ForceSendFields is a list of field names (e.g. "ConfidenceLevel") to
4357	// unconditionally include in API requests. By default, fields with
4358	// empty values are omitted from API requests. However, any non-pointer,
4359	// non-interface field appearing in ForceSendFields will be sent to the
4360	// server regardless of whether the field is empty or not. This may be
4361	// used to include empty fields in Patch requests.
4362	ForceSendFields []string `json:"-"`
4363
4364	// NullFields is a list of field names (e.g. "ConfidenceLevel") to
4365	// include in API requests with the JSON null value. By default, fields
4366	// with empty values are omitted from API requests. However, any field
4367	// with an empty value appearing in NullFields will be sent to the
4368	// server as null. It is an error if a field in this list has a
4369	// non-empty value. This may be used to include null fields in Patch
4370	// requests.
4371	NullFields []string `json:"-"`
4372}
4373
4374func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval) MarshalJSON() ([]byte, error) {
4375	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
4376	raw := NoMethod(*s)
4377	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4378}
4379
4380func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval) UnmarshalJSON(data []byte) error {
4381	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
4382	var s1 struct {
4383		ConfidenceLevel gensupport.JSONFloat64 `json:"confidenceLevel"`
4384		LowerBound      gensupport.JSONFloat64 `json:"lowerBound"`
4385		Ratio           gensupport.JSONFloat64 `json:"ratio"`
4386		UpperBound      gensupport.JSONFloat64 `json:"upperBound"`
4387		*NoMethod
4388	}
4389	s1.NoMethod = (*NoMethod)(s)
4390	if err := json.Unmarshal(data, &s1); err != nil {
4391		return err
4392	}
4393	s.ConfidenceLevel = float64(s1.ConfidenceLevel)
4394	s.LowerBound = float64(s1.LowerBound)
4395	s.Ratio = float64(s1.Ratio)
4396	s.UpperBound = float64(s1.UpperBound)
4397	return nil
4398}
4399
4400// GoogleCloudDialogflowCxV3beta1ExperimentResultMetric: Metric and
4401// corresponding confidence intervals.
4402type GoogleCloudDialogflowCxV3beta1ExperimentResultMetric struct {
4403	// ConfidenceInterval: The probability that the treatment is better than
4404	// all other treatments in the experiment
4405	ConfidenceInterval *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval `json:"confidenceInterval,omitempty"`
4406
4407	// Count: Count value of a metric.
4408	Count float64 `json:"count,omitempty"`
4409
4410	// CountType: Count-based metric type. Only one of type or count_type is
4411	// specified in each Metric.
4412	//
4413	// Possible values:
4414	//   "COUNT_TYPE_UNSPECIFIED" - Count type unspecified.
4415	//   "TOTAL_NO_MATCH_COUNT" - Total number of occurrences of a
4416	// 'NO_MATCH'.
4417	//   "TOTAL_TURN_COUNT" - Total number of turn counts.
4418	//   "AVERAGE_TURN_COUNT" - Average turn count in a session.
4419	CountType string `json:"countType,omitempty"`
4420
4421	// Ratio: Ratio value of a metric.
4422	Ratio float64 `json:"ratio,omitempty"`
4423
4424	// Type: Ratio-based metric type. Only one of type or count_type is
4425	// specified in each Metric.
4426	//
4427	// Possible values:
4428	//   "METRIC_UNSPECIFIED" - Metric unspecified.
4429	//   "CONTAINED_SESSION_NO_CALLBACK_RATE" - Percentage of contained
4430	// sessions without user calling back in 24 hours.
4431	//   "LIVE_AGENT_HANDOFF_RATE" - Percentage of sessions that were handed
4432	// to a human agent.
4433	//   "CALLBACK_SESSION_RATE" - Percentage of sessions with the same user
4434	// calling back.
4435	//   "ABANDONED_SESSION_RATE" - Percentage of sessions where user hung
4436	// up.
4437	//   "SESSION_END_RATE" - Percentage of sessions reached Dialogflow
4438	// 'END_PAGE' or 'END_SESSION'.
4439	Type string `json:"type,omitempty"`
4440
4441	// ForceSendFields is a list of field names (e.g. "ConfidenceInterval")
4442	// to unconditionally include in API requests. By default, fields with
4443	// empty values are omitted from API requests. However, any non-pointer,
4444	// non-interface field appearing in ForceSendFields will be sent to the
4445	// server regardless of whether the field is empty or not. This may be
4446	// used to include empty fields in Patch requests.
4447	ForceSendFields []string `json:"-"`
4448
4449	// NullFields is a list of field names (e.g. "ConfidenceInterval") to
4450	// include in API requests with the JSON null value. By default, fields
4451	// with empty values are omitted from API requests. However, any field
4452	// with an empty value appearing in NullFields will be sent to the
4453	// server as null. It is an error if a field in this list has a
4454	// non-empty value. This may be used to include null fields in Patch
4455	// requests.
4456	NullFields []string `json:"-"`
4457}
4458
4459func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultMetric) MarshalJSON() ([]byte, error) {
4460	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
4461	raw := NoMethod(*s)
4462	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4463}
4464
4465func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultMetric) UnmarshalJSON(data []byte) error {
4466	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
4467	var s1 struct {
4468		Count gensupport.JSONFloat64 `json:"count"`
4469		Ratio gensupport.JSONFloat64 `json:"ratio"`
4470		*NoMethod
4471	}
4472	s1.NoMethod = (*NoMethod)(s)
4473	if err := json.Unmarshal(data, &s1); err != nil {
4474		return err
4475	}
4476	s.Count = float64(s1.Count)
4477	s.Ratio = float64(s1.Ratio)
4478	return nil
4479}
4480
4481// GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics: Version
4482// variant and associated metrics.
4483type GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics struct {
4484	// Metrics: The metrics and corresponding confidence intervals in the
4485	// inference result.
4486	Metrics []*GoogleCloudDialogflowCxV3beta1ExperimentResultMetric `json:"metrics,omitempty"`
4487
4488	// SessionCount: Number of sessions that were allocated to this version.
4489	SessionCount int64 `json:"sessionCount,omitempty"`
4490
4491	// Version: The name of the flow Version. Format:
4492	// `projects//locations//agents//flows//versions/`.
4493	Version string `json:"version,omitempty"`
4494
4495	// ForceSendFields is a list of field names (e.g. "Metrics") to
4496	// unconditionally include in API requests. By default, fields with
4497	// empty values are omitted from API requests. However, any non-pointer,
4498	// non-interface field appearing in ForceSendFields will be sent to the
4499	// server regardless of whether the field is empty or not. This may be
4500	// used to include empty fields in Patch requests.
4501	ForceSendFields []string `json:"-"`
4502
4503	// NullFields is a list of field names (e.g. "Metrics") to include in
4504	// API requests with the JSON null value. By default, fields with empty
4505	// values are omitted from API requests. However, any field with an
4506	// empty value appearing in NullFields will be sent to the server as
4507	// null. It is an error if a field in this list has a non-empty value.
4508	// This may be used to include null fields in Patch requests.
4509	NullFields []string `json:"-"`
4510}
4511
4512func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics) MarshalJSON() ([]byte, error) {
4513	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics
4514	raw := NoMethod(*s)
4515	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4516}
4517
4518// GoogleCloudDialogflowCxV3beta1ExportAgentRequest: The request message
4519// for Agents.ExportAgent.
4520type GoogleCloudDialogflowCxV3beta1ExportAgentRequest struct {
4521	// AgentUri: Optional. The Google Cloud Storage
4522	// (https://cloud.google.com/storage/docs/) URI to export the agent to.
4523	// The format of this URI must be `gs:///`. If left unspecified, the
4524	// serialized agent is returned inline.
4525	AgentUri string `json:"agentUri,omitempty"`
4526
4527	// ForceSendFields is a list of field names (e.g. "AgentUri") to
4528	// unconditionally include in API requests. By default, fields with
4529	// empty values are omitted from API requests. However, any non-pointer,
4530	// non-interface field appearing in ForceSendFields will be sent to the
4531	// server regardless of whether the field is empty or not. This may be
4532	// used to include empty fields in Patch requests.
4533	ForceSendFields []string `json:"-"`
4534
4535	// NullFields is a list of field names (e.g. "AgentUri") to include in
4536	// API requests with the JSON null value. By default, fields with empty
4537	// values are omitted from API requests. However, any field with an
4538	// empty value appearing in NullFields will be sent to the server as
4539	// null. It is an error if a field in this list has a non-empty value.
4540	// This may be used to include null fields in Patch requests.
4541	NullFields []string `json:"-"`
4542}
4543
4544func (s *GoogleCloudDialogflowCxV3beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
4545	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentRequest
4546	raw := NoMethod(*s)
4547	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4548}
4549
4550// GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response
4551// message for Agents.ExportAgent.
4552type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
4553	// AgentContent: Uncompressed raw byte content for agent.
4554	AgentContent string `json:"agentContent,omitempty"`
4555
4556	// AgentUri: The URI to a file containing the exported agent. This field
4557	// is populated only if `agent_uri` is specified in ExportAgentRequest.
4558	AgentUri string `json:"agentUri,omitempty"`
4559
4560	// ForceSendFields is a list of field names (e.g. "AgentContent") to
4561	// unconditionally include in API requests. By default, fields with
4562	// empty values are omitted from API requests. However, any non-pointer,
4563	// non-interface field appearing in ForceSendFields will be sent to the
4564	// server regardless of whether the field is empty or not. This may be
4565	// used to include empty fields in Patch requests.
4566	ForceSendFields []string `json:"-"`
4567
4568	// NullFields is a list of field names (e.g. "AgentContent") to include
4569	// in API requests with the JSON null value. By default, fields with
4570	// empty values are omitted from API requests. However, any field with
4571	// an empty value appearing in NullFields will be sent to the server as
4572	// null. It is an error if a field in this list has a non-empty value.
4573	// This may be used to include null fields in Patch requests.
4574	NullFields []string `json:"-"`
4575}
4576
4577func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
4578	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
4579	raw := NoMethod(*s)
4580	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4581}
4582
4583// GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata
4584// returned for the TestCases.ExportTestCases long running operation.
4585type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
4586}
4587
4588// GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest: The request
4589// message for TestCases.ExportTestCases.
4590type GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest struct {
4591	// DataFormat: The data format of the exported test cases. If not
4592	// specified, `BLOB` is assumed.
4593	//
4594	// Possible values:
4595	//   "DATA_FORMAT_UNSPECIFIED" - Unspecified format.
4596	//   "BLOB" - Raw bytes.
4597	//   "JSON" - JSON format.
4598	DataFormat string `json:"dataFormat,omitempty"`
4599
4600	// Filter: The filter expression used to filter exported test cases, see
4601	// API Filtering (https://aip.dev/160). The expression is case
4602	// insensitive and supports the following syntax: name = [OR name = ]
4603	// ... For example: * "name = t1 OR name = t2" matches the test case
4604	// with the exact resource name "t1" or "t2".
4605	Filter string `json:"filter,omitempty"`
4606
4607	// GcsUri: The Google Cloud Storage
4608	// (https://cloud.google.com/storage/docs/) URI to export the test cases
4609	// to. The format of this URI must be `gs:///`. If unspecified, the
4610	// serialized test cases is returned inline.
4611	GcsUri string `json:"gcsUri,omitempty"`
4612
4613	// ForceSendFields is a list of field names (e.g. "DataFormat") to
4614	// unconditionally include in API requests. By default, fields with
4615	// empty values are omitted from API requests. However, any non-pointer,
4616	// non-interface field appearing in ForceSendFields will be sent to the
4617	// server regardless of whether the field is empty or not. This may be
4618	// used to include empty fields in Patch requests.
4619	ForceSendFields []string `json:"-"`
4620
4621	// NullFields is a list of field names (e.g. "DataFormat") to include in
4622	// API requests with the JSON null value. By default, fields with empty
4623	// values are omitted from API requests. However, any field with an
4624	// empty value appearing in NullFields will be sent to the server as
4625	// null. It is an error if a field in this list has a non-empty value.
4626	// This may be used to include null fields in Patch requests.
4627	NullFields []string `json:"-"`
4628}
4629
4630func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest) MarshalJSON() ([]byte, error) {
4631	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest
4632	raw := NoMethod(*s)
4633	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4634}
4635
4636// GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse: The response
4637// message for TestCases.ExportTestCases.
4638type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
4639	// Content: Uncompressed raw byte content for test cases.
4640	Content string `json:"content,omitempty"`
4641
4642	// GcsUri: The URI to a file containing the exported test cases. This
4643	// field is populated only if `gcs_uri` is specified in
4644	// ExportTestCasesRequest.
4645	GcsUri string `json:"gcsUri,omitempty"`
4646
4647	// ForceSendFields is a list of field names (e.g. "Content") to
4648	// unconditionally include in API requests. By default, fields with
4649	// empty values are omitted from API requests. However, any non-pointer,
4650	// non-interface field appearing in ForceSendFields will be sent to the
4651	// server regardless of whether the field is empty or not. This may be
4652	// used to include empty fields in Patch requests.
4653	ForceSendFields []string `json:"-"`
4654
4655	// NullFields is a list of field names (e.g. "Content") to include in
4656	// API requests with the JSON null value. By default, fields with empty
4657	// values are omitted from API requests. However, any field with an
4658	// empty value appearing in NullFields will be sent to the server as
4659	// null. It is an error if a field in this list has a non-empty value.
4660	// This may be used to include null fields in Patch requests.
4661	NullFields []string `json:"-"`
4662}
4663
4664func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
4665	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
4666	raw := NoMethod(*s)
4667	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4668}
4669
4670// GoogleCloudDialogflowCxV3beta1Flow: Flows represents the conversation
4671// flows when you build your chatbot agent. A flow consists of many
4672// pages connected by the transition routes. Conversations always start
4673// with the built-in Start Flow (with an all-0 ID). Transition routes
4674// can direct the conversation session from the current flow (parent
4675// flow) to another flow (sub flow). When the sub flow is finished,
4676// Dialogflow will bring the session back to the parent flow, where the
4677// sub flow is started. Usually, when a transition route is followed by
4678// a matched intent, the intent will be "consumed". This means the
4679// intent won't activate more transition routes. However, when the
4680// followed transition route moves the conversation session into a
4681// different flow, the matched intent can be carried over and to be
4682// consumed in the target flow.
4683type GoogleCloudDialogflowCxV3beta1Flow struct {
4684	// Description: The description of the flow. The maximum length is 500
4685	// characters. If exceeded, the request is rejected.
4686	Description string `json:"description,omitempty"`
4687
4688	// DisplayName: Required. The human-readable name of the flow.
4689	DisplayName string `json:"displayName,omitempty"`
4690
4691	// EventHandlers: A flow's event handlers serve two purposes: * They are
4692	// responsible for handling events (e.g. no match, webhook errors) in
4693	// the flow. * They are inherited by every page's event handlers, which
4694	// can be used to handle common events regardless of the current page.
4695	// Event handlers defined in the page have higher priority than those
4696	// defined in the flow. Unlike transition_routes, these handlers are
4697	// evaluated on a first-match basis. The first one that matches the
4698	// event get executed, with the rest being ignored.
4699	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
4700
4701	// Name: The unique identifier of the flow. Format:
4702	// `projects//locations//agents//flows/`.
4703	Name string `json:"name,omitempty"`
4704
4705	// NluSettings: NLU related settings of the flow.
4706	NluSettings *GoogleCloudDialogflowCxV3beta1NluSettings `json:"nluSettings,omitempty"`
4707
4708	// TransitionRoutes: A flow's transition routes serve two purposes: *
4709	// They are responsible for matching the user's first utterances in the
4710	// flow. * They are inherited by every page's transition routes and can
4711	// support use cases such as the user saying "help" or "can I talk to a
4712	// human?", which can be handled in a common way regardless of the
4713	// current page. Transition routes defined in the page have higher
4714	// priority than those defined in the flow. TransitionRoutes are
4715	// evalauted in the following order: * TransitionRoutes with intent
4716	// specified.. * TransitionRoutes with only condition specified.
4717	// TransitionRoutes with intent specified are inherited by pages in the
4718	// flow.
4719	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
4720
4721	// ServerResponse contains the HTTP response code and headers from the
4722	// server.
4723	googleapi.ServerResponse `json:"-"`
4724
4725	// ForceSendFields is a list of field names (e.g. "Description") to
4726	// unconditionally include in API requests. By default, fields with
4727	// empty values are omitted from API requests. However, any non-pointer,
4728	// non-interface field appearing in ForceSendFields will be sent to the
4729	// server regardless of whether the field is empty or not. This may be
4730	// used to include empty fields in Patch requests.
4731	ForceSendFields []string `json:"-"`
4732
4733	// NullFields is a list of field names (e.g. "Description") to include
4734	// in API requests with the JSON null value. By default, fields with
4735	// empty values are omitted from API requests. However, any field with
4736	// an empty value appearing in NullFields will be sent to the server as
4737	// null. It is an error if a field in this list has a non-empty value.
4738	// This may be used to include null fields in Patch requests.
4739	NullFields []string `json:"-"`
4740}
4741
4742func (s *GoogleCloudDialogflowCxV3beta1Flow) MarshalJSON() ([]byte, error) {
4743	type NoMethod GoogleCloudDialogflowCxV3beta1Flow
4744	raw := NoMethod(*s)
4745	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4746}
4747
4748// GoogleCloudDialogflowCxV3beta1FlowValidationResult: The response
4749// message for Flows.GetFlowValidationResult.
4750type GoogleCloudDialogflowCxV3beta1FlowValidationResult struct {
4751	// Name: The unique identifier of the flow validation result. Format:
4752	// `projects//locations//agents//flows//validationResult`.
4753	Name string `json:"name,omitempty"`
4754
4755	// UpdateTime: Last time the flow was validated.
4756	UpdateTime string `json:"updateTime,omitempty"`
4757
4758	// ValidationMessages: Contains all validation messages.
4759	ValidationMessages []*GoogleCloudDialogflowCxV3beta1ValidationMessage `json:"validationMessages,omitempty"`
4760
4761	// ServerResponse contains the HTTP response code and headers from the
4762	// server.
4763	googleapi.ServerResponse `json:"-"`
4764
4765	// ForceSendFields is a list of field names (e.g. "Name") to
4766	// unconditionally include in API requests. By default, fields with
4767	// empty values are omitted from API requests. However, any non-pointer,
4768	// non-interface field appearing in ForceSendFields will be sent to the
4769	// server regardless of whether the field is empty or not. This may be
4770	// used to include empty fields in Patch requests.
4771	ForceSendFields []string `json:"-"`
4772
4773	// NullFields is a list of field names (e.g. "Name") to include in API
4774	// requests with the JSON null value. By default, fields with empty
4775	// values are omitted from API requests. However, any field with an
4776	// empty value appearing in NullFields will be sent to the server as
4777	// null. It is an error if a field in this list has a non-empty value.
4778	// This may be used to include null fields in Patch requests.
4779	NullFields []string `json:"-"`
4780}
4781
4782func (s *GoogleCloudDialogflowCxV3beta1FlowValidationResult) MarshalJSON() ([]byte, error) {
4783	type NoMethod GoogleCloudDialogflowCxV3beta1FlowValidationResult
4784	raw := NoMethod(*s)
4785	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4786}
4787
4788// GoogleCloudDialogflowCxV3beta1Form: A form is a data model that
4789// groups related parameters that can be collected from the user. The
4790// process in which the agent prompts the user and collects parameter
4791// values from the user is called form filling. A form can be added to a
4792// page. When form filling is done, the filled parameters will be
4793// written to the session.
4794type GoogleCloudDialogflowCxV3beta1Form struct {
4795	// Parameters: Parameters to collect from the user.
4796	Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
4797
4798	// ForceSendFields is a list of field names (e.g. "Parameters") to
4799	// unconditionally include in API requests. By default, fields with
4800	// empty values are omitted from API requests. However, any non-pointer,
4801	// non-interface field appearing in ForceSendFields will be sent to the
4802	// server regardless of whether the field is empty or not. This may be
4803	// used to include empty fields in Patch requests.
4804	ForceSendFields []string `json:"-"`
4805
4806	// NullFields is a list of field names (e.g. "Parameters") to include in
4807	// API requests with the JSON null value. By default, fields with empty
4808	// values are omitted from API requests. However, any field with an
4809	// empty value appearing in NullFields will be sent to the server as
4810	// null. It is an error if a field in this list has a non-empty value.
4811	// This may be used to include null fields in Patch requests.
4812	NullFields []string `json:"-"`
4813}
4814
4815func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
4816	type NoMethod GoogleCloudDialogflowCxV3beta1Form
4817	raw := NoMethod(*s)
4818	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4819}
4820
4821// GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form
4822// parameter.
4823type GoogleCloudDialogflowCxV3beta1FormParameter struct {
4824	// DefaultValue: The default value of an optional parameter. If the
4825	// parameter is required, the default value will be ignored.
4826	DefaultValue interface{} `json:"defaultValue,omitempty"`
4827
4828	// DisplayName: Required. The human-readable name of the parameter,
4829	// unique within the form.
4830	DisplayName string `json:"displayName,omitempty"`
4831
4832	// EntityType: Required. The entity type of the parameter. Format:
4833	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
4834	// types (for example,
4835	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
4836	// `projects//locations//agents//entityTypes/` for developer entity
4837	// types.
4838	EntityType string `json:"entityType,omitempty"`
4839
4840	// FillBehavior: Required. Defines fill behavior for the parameter.
4841	FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
4842
4843	// IsList: Indicates whether the parameter represents a list of values.
4844	IsList bool `json:"isList,omitempty"`
4845
4846	// Redact: Indicates whether the parameter content should be redacted in
4847	// log. If redaction is enabled, the parameter content will be replaced
4848	// by parameter name during logging. Note: the parameter content is
4849	// subject to redaction if either parameter level redaction or entity
4850	// type level redaction is enabled.
4851	Redact bool `json:"redact,omitempty"`
4852
4853	// Required: Indicates whether the parameter is required. Optional
4854	// parameters will not trigger prompts; however, they are filled if the
4855	// user specifies them. Required parameters must be filled before form
4856	// filling concludes.
4857	Required bool `json:"required,omitempty"`
4858
4859	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
4860	// unconditionally include in API requests. By default, fields with
4861	// empty values are omitted from API requests. However, any non-pointer,
4862	// non-interface field appearing in ForceSendFields will be sent to the
4863	// server regardless of whether the field is empty or not. This may be
4864	// used to include empty fields in Patch requests.
4865	ForceSendFields []string `json:"-"`
4866
4867	// NullFields is a list of field names (e.g. "DefaultValue") to include
4868	// in API requests with the JSON null value. By default, fields with
4869	// empty values are omitted from API requests. However, any field with
4870	// an empty value appearing in NullFields will be sent to the server as
4871	// null. It is an error if a field in this list has a non-empty value.
4872	// This may be used to include null fields in Patch requests.
4873	NullFields []string `json:"-"`
4874}
4875
4876func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
4877	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
4878	raw := NoMethod(*s)
4879	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4880}
4881
4882// GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior:
4883// Configuration for how the filling of a parameter should be handled.
4884type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
4885	// InitialPromptFulfillment: Required. The fulfillment to provide the
4886	// initial prompt that the agent can present to the user in order to
4887	// fill the parameter.
4888	InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
4889
4890	// RepromptEventHandlers: The handlers for parameter-level events, used
4891	// to provide reprompt for the parameter or transition to a different
4892	// page/flow. The supported events are: * `sys.no-match-`, where N can
4893	// be from 1 to 6 * `sys.no-match-default` * `sys.no-input-`, where N
4894	// can be from 1 to 6 * `sys.no-input-default` * `sys.invalid-parameter`
4895	// `initial_prompt_fulfillment` provides the first prompt for the
4896	// parameter. If the user's response does not fill the parameter, a
4897	// no-match/no-input event will be triggered, and the fulfillment
4898	// associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
4899	// defined) will be called to provide a prompt. The
4900	// `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond
4901	// to the next no-match/no-input event, and so on. A
4902	// `sys.no-match-default` or `sys.no-input-default` handler will be used
4903	// to handle all following no-match/no-input events after all numbered
4904	// no-match/no-input handlers for the parameter are consumed. A
4905	// `sys.invalid-parameter` handler can be defined to handle the case
4906	// where the parameter values have been `invalidated` by webhook. For
4907	// example, if the user's response fill the parameter, however the
4908	// parameter was invalidated by webhook, the fulfillment associated with
4909	// the `sys.invalid-parameter` handler (if defined) will be called to
4910	// provide a prompt. If the event handler for the corresponding event
4911	// can't be found on the parameter, `initial_prompt_fulfillment` will be
4912	// re-prompted.
4913	RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
4914
4915	// ForceSendFields is a list of field names (e.g.
4916	// "InitialPromptFulfillment") to unconditionally include in API
4917	// requests. By default, fields with empty values are omitted from API
4918	// requests. However, any non-pointer, non-interface field appearing in
4919	// ForceSendFields will be sent to the server regardless of whether the
4920	// field is empty or not. This may be used to include empty fields in
4921	// Patch requests.
4922	ForceSendFields []string `json:"-"`
4923
4924	// NullFields is a list of field names (e.g. "InitialPromptFulfillment")
4925	// to include in API requests with the JSON null value. By default,
4926	// fields with empty values are omitted from API requests. However, any
4927	// field with an empty value appearing in NullFields will be sent to the
4928	// server as null. It is an error if a field in this list has a
4929	// non-empty value. This may be used to include null fields in Patch
4930	// requests.
4931	NullFields []string `json:"-"`
4932}
4933
4934func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
4935	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
4936	raw := NoMethod(*s)
4937	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4938}
4939
4940// GoogleCloudDialogflowCxV3beta1FulfillIntentRequest: Request of
4941// FulfillIntent
4942type GoogleCloudDialogflowCxV3beta1FulfillIntentRequest struct {
4943	// Match: The matched intent/event to fulfill.
4944	Match *GoogleCloudDialogflowCxV3beta1Match `json:"match,omitempty"`
4945
4946	// MatchIntentRequest: Must be same as the corresponding MatchIntent
4947	// request, otherwise the behavior is undefined.
4948	MatchIntentRequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest `json:"matchIntentRequest,omitempty"`
4949
4950	// OutputAudioConfig: Instructs the speech synthesizer how to generate
4951	// output audio.
4952	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
4953
4954	// ForceSendFields is a list of field names (e.g. "Match") 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. "Match") 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 *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) MarshalJSON() ([]byte, error) {
4972	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
4973	raw := NoMethod(*s)
4974	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4975}
4976
4977// GoogleCloudDialogflowCxV3beta1FulfillIntentResponse: Response of
4978// FulfillIntent
4979type GoogleCloudDialogflowCxV3beta1FulfillIntentResponse struct {
4980	// OutputAudio: The audio data bytes encoded as specified in the
4981	// request. Note: The output audio is generated based on the values of
4982	// default platform text responses found in the
4983	// `query_result.response_messages` field. If multiple default text
4984	// responses exist, they will be concatenated when generating audio. If
4985	// no default platform text responses exist, the generated audio content
4986	// will be empty. In some scenarios, multiple output audio fields may be
4987	// present in the response structure. In these cases, only the
4988	// top-most-level audio output has content.
4989	OutputAudio string `json:"outputAudio,omitempty"`
4990
4991	// OutputAudioConfig: The config used by the speech synthesizer to
4992	// generate the output audio.
4993	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
4994
4995	// QueryResult: The result of the conversational query.
4996	QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
4997
4998	// ResponseId: Output only. The unique identifier of the response. It
4999	// can be used to locate a response in the training example set or for
5000	// reporting issues.
5001	ResponseId string `json:"responseId,omitempty"`
5002
5003	// ServerResponse contains the HTTP response code and headers from the
5004	// server.
5005	googleapi.ServerResponse `json:"-"`
5006
5007	// ForceSendFields is a list of field names (e.g. "OutputAudio") to
5008	// unconditionally include in API requests. By default, fields with
5009	// empty values are omitted from API requests. However, any non-pointer,
5010	// non-interface field appearing in ForceSendFields will be sent to the
5011	// server regardless of whether the field is empty or not. This may be
5012	// used to include empty fields in Patch requests.
5013	ForceSendFields []string `json:"-"`
5014
5015	// NullFields is a list of field names (e.g. "OutputAudio") to include
5016	// in API requests with the JSON null value. By default, fields with
5017	// empty values are omitted from API requests. However, any field with
5018	// an empty value appearing in NullFields will be sent to the server as
5019	// null. It is an error if a field in this list has a non-empty value.
5020	// This may be used to include null fields in Patch requests.
5021	NullFields []string `json:"-"`
5022}
5023
5024func (s *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse) MarshalJSON() ([]byte, error) {
5025	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
5026	raw := NoMethod(*s)
5027	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5028}
5029
5030// GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one
5031// or more of the following actions at the same time: * Generate rich
5032// message responses. * Set parameter values. * Call the webhook.
5033// Fulfillments can be called at various stages in the Page or Form
5034// lifecycle. For example, when a DetectIntentRequest drives a session
5035// to enter a new page, the page's entry fulfillment can add a static
5036// response to the QueryResult in the returning DetectIntentResponse,
5037// call the webhook (for example, to load user data from a database), or
5038// both.
5039type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
5040	// ConditionalCases: Conditional cases for this fulfillment.
5041	ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
5042
5043	// Messages: The list of rich message responses to present to the user.
5044	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
5045
5046	// SetParameterActions: Set parameter values before executing the
5047	// webhook.
5048	SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
5049
5050	// Tag: The tag used by the webhook to identify which fulfillment is
5051	// being called. This field is required if `webhook` is specified.
5052	Tag string `json:"tag,omitempty"`
5053
5054	// Webhook: The webhook to call. Format:
5055	// `projects//locations//agents//webhooks/`.
5056	Webhook string `json:"webhook,omitempty"`
5057
5058	// ForceSendFields is a list of field names (e.g. "ConditionalCases") to
5059	// unconditionally include in API requests. By default, fields with
5060	// empty values are omitted from API requests. However, any non-pointer,
5061	// non-interface field appearing in ForceSendFields will be sent to the
5062	// server regardless of whether the field is empty or not. This may be
5063	// used to include empty fields in Patch requests.
5064	ForceSendFields []string `json:"-"`
5065
5066	// NullFields is a list of field names (e.g. "ConditionalCases") to
5067	// include in API requests with the JSON null value. By default, fields
5068	// with empty values are omitted from API requests. However, any field
5069	// with an empty value appearing in NullFields will be sent to the
5070	// server as null. It is an error if a field in this list has a
5071	// non-empty value. This may be used to include null fields in Patch
5072	// requests.
5073	NullFields []string `json:"-"`
5074}
5075
5076func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
5077	type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
5078	raw := NoMethod(*s)
5079	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5080}
5081
5082// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list of
5083// cascading if-else conditions. Cases are mutually exclusive. The first
5084// one with a matching condition is selected, all the rest ignored.
5085type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
5086	// Cases: A list of cascading if-else conditions.
5087	Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
5088
5089	// ForceSendFields is a list of field names (e.g. "Cases") to
5090	// unconditionally include in API requests. By default, fields with
5091	// empty values are omitted from API requests. However, any non-pointer,
5092	// non-interface field appearing in ForceSendFields will be sent to the
5093	// server regardless of whether the field is empty or not. This may be
5094	// used to include empty fields in Patch requests.
5095	ForceSendFields []string `json:"-"`
5096
5097	// NullFields is a list of field names (e.g. "Cases") to include in API
5098	// requests with the JSON null value. By default, fields with empty
5099	// values are omitted from API requests. However, any field with an
5100	// empty value appearing in NullFields will be sent to the server as
5101	// null. It is an error if a field in this list has a non-empty value.
5102	// This may be used to include null fields in Patch requests.
5103	NullFields []string `json:"-"`
5104}
5105
5106func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
5107	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
5108	raw := NoMethod(*s)
5109	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5110}
5111
5112// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each
5113// case has a Boolean condition. When it is evaluated to be True, the
5114// corresponding messages will be selected and evaluated recursively.
5115type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
5116	// CaseContent: A list of case content.
5117	CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
5118
5119	// Condition: The condition to activate and select this case. Empty
5120	// means the condition is always true. The condition is evaluated
5121	// against form parameters or session parameters. See the conditions
5122	// reference
5123	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
5124	Condition string `json:"condition,omitempty"`
5125
5126	// ForceSendFields is a list of field names (e.g. "CaseContent") to
5127	// unconditionally include in API requests. By default, fields with
5128	// empty values are omitted from API requests. However, any non-pointer,
5129	// non-interface field appearing in ForceSendFields will be sent to the
5130	// server regardless of whether the field is empty or not. This may be
5131	// used to include empty fields in Patch requests.
5132	ForceSendFields []string `json:"-"`
5133
5134	// NullFields is a list of field names (e.g. "CaseContent") to include
5135	// in API requests with the JSON null value. By default, fields with
5136	// empty values are omitted from API requests. However, any field with
5137	// an empty value appearing in NullFields will be sent to the server as
5138	// null. It is an error if a field in this list has a non-empty value.
5139	// This may be used to include null fields in Patch requests.
5140	NullFields []string `json:"-"`
5141}
5142
5143func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
5144	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
5145	raw := NoMethod(*s)
5146	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5147}
5148
5149// GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseConte
5150// nt: The list of messages or conditional cases to activate for this
5151// case.
5152type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
5153	// AdditionalCases: Additional cases to be evaluated.
5154	AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
5155
5156	// Message: Returned message.
5157	Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
5158
5159	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
5160	// unconditionally include in API requests. By default, fields with
5161	// empty values are omitted from API requests. However, any non-pointer,
5162	// non-interface field appearing in ForceSendFields will be sent to the
5163	// server regardless of whether the field is empty or not. This may be
5164	// used to include empty fields in Patch requests.
5165	ForceSendFields []string `json:"-"`
5166
5167	// NullFields is a list of field names (e.g. "AdditionalCases") to
5168	// include in API requests with the JSON null value. By default, fields
5169	// with empty values are omitted from API requests. However, any field
5170	// with an empty value appearing in NullFields will be sent to the
5171	// server as null. It is an error if a field in this list has a
5172	// non-empty value. This may be used to include null fields in Patch
5173	// requests.
5174	NullFields []string `json:"-"`
5175}
5176
5177func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
5178	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
5179	raw := NoMethod(*s)
5180	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5181}
5182
5183// GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting
5184// a parameter value.
5185type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
5186	// Parameter: Display name of the parameter.
5187	Parameter string `json:"parameter,omitempty"`
5188
5189	// Value: The new value of the parameter. A null value clears the
5190	// parameter.
5191	Value interface{} `json:"value,omitempty"`
5192
5193	// ForceSendFields is a list of field names (e.g. "Parameter") to
5194	// unconditionally include in API requests. By default, fields with
5195	// empty values are omitted from API requests. However, any non-pointer,
5196	// non-interface field appearing in ForceSendFields will be sent to the
5197	// server regardless of whether the field is empty or not. This may be
5198	// used to include empty fields in Patch requests.
5199	ForceSendFields []string `json:"-"`
5200
5201	// NullFields is a list of field names (e.g. "Parameter") to include in
5202	// API requests with the JSON null value. By default, fields with empty
5203	// values are omitted from API requests. However, any field with an
5204	// empty value appearing in NullFields will be sent to the server as
5205	// null. It is an error if a field in this list has a non-empty value.
5206	// This may be used to include null fields in Patch requests.
5207	NullFields []string `json:"-"`
5208}
5209
5210func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
5211	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
5212	raw := NoMethod(*s)
5213	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5214}
5215
5216// GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata:
5217// Metadata in google::longrunning::Operation for Knowledge operations.
5218type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
5219	// State: Required. Output only. The current state of this operation.
5220	//
5221	// Possible values:
5222	//   "STATE_UNSPECIFIED" - State unspecified.
5223	//   "PENDING" - The operation has been created.
5224	//   "RUNNING" - The operation is currently running.
5225	//   "DONE" - The operation is done, either cancelled or completed.
5226	State string `json:"state,omitempty"`
5227
5228	// ForceSendFields is a list of field names (e.g. "State") to
5229	// unconditionally include in API requests. By default, fields with
5230	// empty values are omitted from API requests. However, any non-pointer,
5231	// non-interface field appearing in ForceSendFields will be sent to the
5232	// server regardless of whether the field is empty or not. This may be
5233	// used to include empty fields in Patch requests.
5234	ForceSendFields []string `json:"-"`
5235
5236	// NullFields is a list of field names (e.g. "State") to include in API
5237	// requests with the JSON null value. By default, fields with empty
5238	// values are omitted from API requests. However, any field with an
5239	// empty value appearing in NullFields will be sent to the server as
5240	// null. It is an error if a field in this list has a non-empty value.
5241	// This may be used to include null fields in Patch requests.
5242	NullFields []string `json:"-"`
5243}
5244
5245func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
5246	type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
5247	raw := NoMethod(*s)
5248	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5249}
5250
5251// GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata:
5252// Metadata for ImportDocuments operation.
5253type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
5254	// GenericMetadata: The generic information of the operation.
5255	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
5256
5257	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
5258	// unconditionally include in API requests. By default, fields with
5259	// empty values are omitted from API requests. However, any non-pointer,
5260	// non-interface field appearing in ForceSendFields will be sent to the
5261	// server regardless of whether the field is empty or not. This may be
5262	// used to include empty fields in Patch requests.
5263	ForceSendFields []string `json:"-"`
5264
5265	// NullFields is a list of field names (e.g. "GenericMetadata") to
5266	// include in API requests with the JSON null value. By default, fields
5267	// with empty values are omitted from API requests. However, any field
5268	// with an empty value appearing in NullFields will be sent to the
5269	// server as null. It is an error if a field in this list has a
5270	// non-empty value. This may be used to include null fields in Patch
5271	// requests.
5272	NullFields []string `json:"-"`
5273}
5274
5275func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
5276	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
5277	raw := NoMethod(*s)
5278	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5279}
5280
5281// GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse: Response
5282// message for Documents.ImportDocuments.
5283type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
5284	// Warnings: Includes details about skipped documents or any other
5285	// warnings.
5286	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
5287
5288	// ForceSendFields is a list of field names (e.g. "Warnings") to
5289	// unconditionally include in API requests. By default, fields with
5290	// empty values are omitted from API requests. However, any non-pointer,
5291	// non-interface field appearing in ForceSendFields will be sent to the
5292	// server regardless of whether the field is empty or not. This may be
5293	// used to include empty fields in Patch requests.
5294	ForceSendFields []string `json:"-"`
5295
5296	// NullFields is a list of field names (e.g. "Warnings") to include in
5297	// API requests with the JSON null value. By default, fields with empty
5298	// values are omitted from API requests. However, any field with an
5299	// empty value appearing in NullFields will be sent to the server as
5300	// null. It is an error if a field in this list has a non-empty value.
5301	// This may be used to include null fields in Patch requests.
5302	NullFields []string `json:"-"`
5303}
5304
5305func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
5306	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
5307	raw := NoMethod(*s)
5308	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5309}
5310
5311// GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata
5312// returned for the TestCases.ImportTestCases long running operation.
5313type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
5314	// Errors: Errors for failed test cases.
5315	Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
5316
5317	// ForceSendFields is a list of field names (e.g. "Errors") to
5318	// unconditionally include in API requests. By default, fields with
5319	// empty values are omitted from API requests. However, any non-pointer,
5320	// non-interface field appearing in ForceSendFields will be sent to the
5321	// server regardless of whether the field is empty or not. This may be
5322	// used to include empty fields in Patch requests.
5323	ForceSendFields []string `json:"-"`
5324
5325	// NullFields is a list of field names (e.g. "Errors") to include in API
5326	// requests with the JSON null value. By default, fields with empty
5327	// values are omitted from API requests. However, any field with an
5328	// empty value appearing in NullFields will be sent to the server as
5329	// null. It is an error if a field in this list has a non-empty value.
5330	// This may be used to include null fields in Patch requests.
5331	NullFields []string `json:"-"`
5332}
5333
5334func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
5335	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
5336	raw := NoMethod(*s)
5337	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5338}
5339
5340// GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest: The request
5341// message for TestCases.ImportTestCases.
5342type GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest struct {
5343	// Content: Uncompressed raw byte content for test cases.
5344	Content string `json:"content,omitempty"`
5345
5346	// GcsUri: The Google Cloud Storage
5347	// (https://cloud.google.com/storage/docs/) URI to import test cases
5348	// from. The format of this URI must be `gs:///`.
5349	GcsUri string `json:"gcsUri,omitempty"`
5350
5351	// ForceSendFields is a list of field names (e.g. "Content") to
5352	// unconditionally include in API requests. By default, fields with
5353	// empty values are omitted from API requests. However, any non-pointer,
5354	// non-interface field appearing in ForceSendFields will be sent to the
5355	// server regardless of whether the field is empty or not. This may be
5356	// used to include empty fields in Patch requests.
5357	ForceSendFields []string `json:"-"`
5358
5359	// NullFields is a list of field names (e.g. "Content") to include in
5360	// API requests with the JSON null value. By default, fields with empty
5361	// values are omitted from API requests. However, any field with an
5362	// empty value appearing in NullFields will be sent to the server as
5363	// null. It is an error if a field in this list has a non-empty value.
5364	// This may be used to include null fields in Patch requests.
5365	NullFields []string `json:"-"`
5366}
5367
5368func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest) MarshalJSON() ([]byte, error) {
5369	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest
5370	raw := NoMethod(*s)
5371	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5372}
5373
5374// GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse: The response
5375// message for TestCases.ImportTestCases.
5376type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
5377	// Names: The unique identifiers of the new test cases. Format:
5378	// `projects//locations//agents//testCases/`.
5379	Names []string `json:"names,omitempty"`
5380
5381	// ForceSendFields is a list of field names (e.g. "Names") to
5382	// unconditionally include in API requests. By default, fields with
5383	// empty values are omitted from API requests. However, any non-pointer,
5384	// non-interface field appearing in ForceSendFields will be sent to the
5385	// server regardless of whether the field is empty or not. This may be
5386	// used to include empty fields in Patch requests.
5387	ForceSendFields []string `json:"-"`
5388
5389	// NullFields is a list of field names (e.g. "Names") to include in API
5390	// requests with the JSON null value. By default, fields with empty
5391	// values are omitted from API requests. However, any field with an
5392	// empty value appearing in NullFields will be sent to the server as
5393	// null. It is an error if a field in this list has a non-empty value.
5394	// This may be used to include null fields in Patch requests.
5395	NullFields []string `json:"-"`
5396}
5397
5398func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
5399	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
5400	raw := NoMethod(*s)
5401	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5402}
5403
5404// GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speech
5405// recognizer on how to process the audio content.
5406type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
5407	// AudioEncoding: Required. Audio encoding of the audio content to
5408	// process.
5409	//
5410	// Possible values:
5411	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
5412	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
5413	// little-endian samples (Linear PCM).
5414	//   "AUDIO_ENCODING_FLAC" -
5415	// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless
5416	// Audio Codec) is the recommended encoding because it is lossless
5417	// (therefore recognition is not compromised) and requires only about
5418	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports
5419	// 16-bit and 24-bit samples, however, not all fields in `STREAMINFO`
5420	// are supported.
5421	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
5422	// samples using G.711 PCMU/mu-law.
5423	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
5424	// `sample_rate_hertz` must be 8000.
5425	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
5426	// `sample_rate_hertz` must be 16000.
5427	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg
5428	// container ([OggOpus](https://wiki.xiph.org/OggOpus)).
5429	// `sample_rate_hertz` must be 16000.
5430	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
5431	// encodings is not recommended, if a very low bitrate encoding is
5432	// required, `OGG_OPUS` is highly preferred over Speex encoding. The
5433	// [Speex](https://speex.org/) encoding supported by Dialogflow API has
5434	// a header byte in each block, as in MIME type
5435	// `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex
5436	// encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574).
5437	// The stream is a sequence of blocks, one block per RTP packet. Each
5438	// block starts with a byte containing the length of the block, in
5439	// bytes, followed by one or more frames of Speex data, padded to an
5440	// integral number of bytes (octets) as specified in RFC 5574. In other
5441	// words, each RTP header is replaced with a single byte containing the
5442	// block length. Only Speex wideband is supported. `sample_rate_hertz`
5443	// must be 16000.
5444	AudioEncoding string `json:"audioEncoding,omitempty"`
5445
5446	// EnableWordInfo: Optional. If `true`, Dialogflow returns
5447	// SpeechWordInfo in StreamingRecognitionResult with information about
5448	// the recognized speech words, e.g. start and end time offsets. If
5449	// false or unspecified, Speech doesn't return any word-level
5450	// information.
5451	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
5452
5453	// Model: Optional. Which Speech model to select for the given request.
5454	// Select the model best suited to your domain to get best results. If a
5455	// model is not explicitly specified, then we auto-select a model based
5456	// on the parameters in the InputAudioConfig. If enhanced speech model
5457	// is enabled for the agent and an enhanced version of the specified
5458	// model for the language does not exist, then the speech is recognized
5459	// using the standard version of the specified model. Refer to Cloud
5460	// Speech API documentation
5461	// (https://cloud.google.com/speech-to-text/docs/basics#select-model)
5462	// for more details.
5463	Model string `json:"model,omitempty"`
5464
5465	// ModelVariant: Optional. Which variant of the Speech model to use.
5466	//
5467	// Possible values:
5468	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In
5469	// this case Dialogflow defaults to USE_BEST_AVAILABLE.
5470	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech
5471	// model that the caller is eligible for. Please see the [Dialogflow
5472	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
5473	// to make your project eligible for enhanced models.
5474	//   "USE_STANDARD" - Use standard model variant even if an enhanced
5475	// model is available. See the [Cloud Speech
5476	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
5477	// odels) for details about enhanced models.
5478	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced
5479	// variant does not exist for the given model and request language,
5480	// Dialogflow falls back to the standard variant. The [Cloud Speech
5481	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m
5482	// odels) describes which models have enhanced variants. * If the API
5483	// caller isn't eligible for enhanced models, Dialogflow returns an
5484	// error. Please see the [Dialogflow
5485	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how
5486	// to make your project eligible.
5487	ModelVariant string `json:"modelVariant,omitempty"`
5488
5489	// PhraseHints: Optional. A list of strings containing words and phrases
5490	// that the speech recognizer should recognize with higher likelihood.
5491	// See the Cloud Speech documentation
5492	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
5493	// for more details.
5494	PhraseHints []string `json:"phraseHints,omitempty"`
5495
5496	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in
5497	// the query. Refer to Cloud Speech API documentation
5498	// (https://cloud.google.com/speech-to-text/docs/basics) for more
5499	// details.
5500	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
5501
5502	// SingleUtterance: Optional. If `false` (default), recognition does not
5503	// cease until the client closes the stream. If `true`, the recognizer
5504	// will detect a single spoken utterance in input audio. Recognition
5505	// ceases when it detects the audio's voice has stopped or paused. In
5506	// this case, once a detected intent is received, the client should
5507	// close the stream and start a new request with a new stream as needed.
5508	// Note: This setting is relevant only for streaming methods.
5509	SingleUtterance bool `json:"singleUtterance,omitempty"`
5510
5511	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
5512	// unconditionally include in API requests. By default, fields with
5513	// empty values are omitted from API requests. However, any non-pointer,
5514	// non-interface field appearing in ForceSendFields will be sent to the
5515	// server regardless of whether the field is empty or not. This may be
5516	// used to include empty fields in Patch requests.
5517	ForceSendFields []string `json:"-"`
5518
5519	// NullFields is a list of field names (e.g. "AudioEncoding") to include
5520	// in API requests with the JSON null value. By default, fields with
5521	// empty values are omitted from API requests. However, any field with
5522	// an empty value appearing in NullFields will be sent to the server as
5523	// null. It is an error if a field in this list has a non-empty value.
5524	// This may be used to include null fields in Patch requests.
5525	NullFields []string `json:"-"`
5526}
5527
5528func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
5529	type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
5530	raw := NoMethod(*s)
5531	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5532}
5533
5534// GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's
5535// intent to interact with a conversational agent. You can provide
5536// information for the Dialogflow API to use to match user input to an
5537// intent by adding training phrases (i.e., examples of user input) to
5538// your intent.
5539type GoogleCloudDialogflowCxV3beta1Intent struct {
5540	// Description: Optional. Human readable description for better
5541	// understanding an intent like its scope, content, result etc. Maximum
5542	// character limit: 140 characters.
5543	Description string `json:"description,omitempty"`
5544
5545	// DisplayName: Required. The human-readable name of the intent, unique
5546	// within the agent.
5547	DisplayName string `json:"displayName,omitempty"`
5548
5549	// IsFallback: Indicates whether this is a fallback intent. Currently
5550	// only default fallback intent is allowed in the agent, which is added
5551	// upon agent creation. Adding training phrases to fallback intent is
5552	// useful in the case of requests that are mistakenly matched, since
5553	// training phrases assigned to fallback intents act as negative
5554	// examples that triggers no-match event.
5555	IsFallback bool `json:"isFallback,omitempty"`
5556
5557	// Labels: Optional. The key/value metadata to label an intent. Labels
5558	// can contain lowercase letters, digits and the symbols '-' and '_'.
5559	// International characters are allowed, including letters from unicase
5560	// alphabets. Keys must start with a letter. Keys and values can be no
5561	// longer than 63 characters and no more than 128 bytes. Prefix "sys-"
5562	// is reserved for Dialogflow defined labels. Currently allowed
5563	// Dialogflow defined labels include: * sys-head * sys-contextual The
5564	// above labels do not require value. "sys-head" means the intent is a
5565	// head intent. "sys-contextual" means the intent is a contextual
5566	// intent.
5567	Labels map[string]string `json:"labels,omitempty"`
5568
5569	// Name: The unique identifier of the intent. Required for the
5570	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
5571	// automatically. Format: `projects//locations//agents//intents/`.
5572	Name string `json:"name,omitempty"`
5573
5574	// Parameters: The collection of parameters associated with the intent.
5575	Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
5576
5577	// Priority: The priority of this intent. Higher numbers represent
5578	// higher priorities. - If the supplied value is unspecified or 0, the
5579	// service translates the value to 500,000, which corresponds to the
5580	// `Normal` priority in the console. - If the supplied value is
5581	// negative, the intent is ignored in runtime detect intent requests.
5582	Priority int64 `json:"priority,omitempty"`
5583
5584	// TrainingPhrases: The collection of training phrases the agent is
5585	// trained on to identify the intent.
5586	TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
5587
5588	// ServerResponse contains the HTTP response code and headers from the
5589	// server.
5590	googleapi.ServerResponse `json:"-"`
5591
5592	// ForceSendFields is a list of field names (e.g. "Description") to
5593	// unconditionally include in API requests. By default, fields with
5594	// empty values are omitted from API requests. However, any non-pointer,
5595	// non-interface field appearing in ForceSendFields will be sent to the
5596	// server regardless of whether the field is empty or not. This may be
5597	// used to include empty fields in Patch requests.
5598	ForceSendFields []string `json:"-"`
5599
5600	// NullFields is a list of field names (e.g. "Description") to include
5601	// in API requests with the JSON null value. By default, fields with
5602	// empty values are omitted from API requests. However, any field with
5603	// an empty value appearing in NullFields will be sent to the server as
5604	// null. It is an error if a field in this list has a non-empty value.
5605	// This may be used to include null fields in Patch requests.
5606	NullFields []string `json:"-"`
5607}
5608
5609func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
5610	type NoMethod GoogleCloudDialogflowCxV3beta1Intent
5611	raw := NoMethod(*s)
5612	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5613}
5614
5615// GoogleCloudDialogflowCxV3beta1IntentCoverage: Intent coverage
5616// represents the percentage of all possible intents in the agent that
5617// are triggered in any of a parent's test cases.
5618type GoogleCloudDialogflowCxV3beta1IntentCoverage struct {
5619	// CoverageScore: The percent of intents in the agent that are covered.
5620	CoverageScore float64 `json:"coverageScore,omitempty"`
5621
5622	// Intents: The list of Intents present in the agent
5623	Intents []*GoogleCloudDialogflowCxV3beta1IntentCoverageIntent `json:"intents,omitempty"`
5624
5625	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
5626	// unconditionally include in API requests. By default, fields with
5627	// empty values are omitted from API requests. However, any non-pointer,
5628	// non-interface field appearing in ForceSendFields will be sent to the
5629	// server regardless of whether the field is empty or not. This may be
5630	// used to include empty fields in Patch requests.
5631	ForceSendFields []string `json:"-"`
5632
5633	// NullFields is a list of field names (e.g. "CoverageScore") to include
5634	// in API requests with the JSON null value. By default, fields with
5635	// empty values are omitted from API requests. However, any field with
5636	// an empty value appearing in NullFields will be sent to the server as
5637	// null. It is an error if a field in this list has a non-empty value.
5638	// This may be used to include null fields in Patch requests.
5639	NullFields []string `json:"-"`
5640}
5641
5642func (s *GoogleCloudDialogflowCxV3beta1IntentCoverage) MarshalJSON() ([]byte, error) {
5643	type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverage
5644	raw := NoMethod(*s)
5645	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5646}
5647
5648func (s *GoogleCloudDialogflowCxV3beta1IntentCoverage) UnmarshalJSON(data []byte) error {
5649	type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverage
5650	var s1 struct {
5651		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
5652		*NoMethod
5653	}
5654	s1.NoMethod = (*NoMethod)(s)
5655	if err := json.Unmarshal(data, &s1); err != nil {
5656		return err
5657	}
5658	s.CoverageScore = float64(s1.CoverageScore)
5659	return nil
5660}
5661
5662// GoogleCloudDialogflowCxV3beta1IntentCoverageIntent: The agent's
5663// intent.
5664type GoogleCloudDialogflowCxV3beta1IntentCoverageIntent struct {
5665	// Covered: Whether or not the intent is covered by at least one of the
5666	// agent's test cases.
5667	Covered bool `json:"covered,omitempty"`
5668
5669	// Intent: The intent full resource name
5670	Intent string `json:"intent,omitempty"`
5671
5672	// ForceSendFields is a list of field names (e.g. "Covered") to
5673	// unconditionally include in API requests. By default, fields with
5674	// empty values are omitted from API requests. However, any non-pointer,
5675	// non-interface field appearing in ForceSendFields will be sent to the
5676	// server regardless of whether the field is empty or not. This may be
5677	// used to include empty fields in Patch requests.
5678	ForceSendFields []string `json:"-"`
5679
5680	// NullFields is a list of field names (e.g. "Covered") to include in
5681	// API requests with the JSON null value. By default, fields with empty
5682	// values are omitted from API requests. However, any field with an
5683	// empty value appearing in NullFields will be sent to the server as
5684	// null. It is an error if a field in this list has a non-empty value.
5685	// This may be used to include null fields in Patch requests.
5686	NullFields []string `json:"-"`
5687}
5688
5689func (s *GoogleCloudDialogflowCxV3beta1IntentCoverageIntent) MarshalJSON() ([]byte, error) {
5690	type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverageIntent
5691	raw := NoMethod(*s)
5692	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5693}
5694
5695// GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to
5696// trigger programmatically rather than as a result of natural language
5697// processing.
5698type GoogleCloudDialogflowCxV3beta1IntentInput struct {
5699	// Intent: Required. The unique identifier of the intent. Format:
5700	// `projects//locations//agents//intents/`.
5701	Intent string `json:"intent,omitempty"`
5702
5703	// ForceSendFields is a list of field names (e.g. "Intent") to
5704	// unconditionally include in API requests. By default, fields with
5705	// empty values are omitted from API requests. However, any non-pointer,
5706	// non-interface field appearing in ForceSendFields will be sent to the
5707	// server regardless of whether the field is empty or not. This may be
5708	// used to include empty fields in Patch requests.
5709	ForceSendFields []string `json:"-"`
5710
5711	// NullFields is a list of field names (e.g. "Intent") to include in API
5712	// requests with the JSON null value. By default, fields with empty
5713	// values are omitted from API requests. However, any field with an
5714	// empty value appearing in NullFields will be sent to the server as
5715	// null. It is an error if a field in this list has a non-empty value.
5716	// This may be used to include null fields in Patch requests.
5717	NullFields []string `json:"-"`
5718}
5719
5720func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
5721	type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
5722	raw := NoMethod(*s)
5723	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5724}
5725
5726// GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intent
5727// parameter.
5728type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
5729	// EntityType: Required. The entity type of the parameter. Format:
5730	// `projects/-/locations/-/agents/-/entityTypes/` for system entity
5731	// types (for example,
5732	// `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
5733	// `projects//locations//agents//entityTypes/` for developer entity
5734	// types.
5735	EntityType string `json:"entityType,omitempty"`
5736
5737	// Id: Required. The unique identifier of the parameter. This field is
5738	// used by training phrases to annotate their parts.
5739	Id string `json:"id,omitempty"`
5740
5741	// IsList: Indicates whether the parameter represents a list of values.
5742	IsList bool `json:"isList,omitempty"`
5743
5744	// Redact: Indicates whether the parameter content should be redacted in
5745	// log. If redaction is enabled, the parameter content will be replaced
5746	// by parameter name during logging. Note: the parameter content is
5747	// subject to redaction if either parameter level redaction or entity
5748	// type level redaction is enabled.
5749	Redact bool `json:"redact,omitempty"`
5750
5751	// ForceSendFields is a list of field names (e.g. "EntityType") to
5752	// unconditionally include in API requests. By default, fields with
5753	// empty values are omitted from API requests. However, any non-pointer,
5754	// non-interface field appearing in ForceSendFields will be sent to the
5755	// server regardless of whether the field is empty or not. This may be
5756	// used to include empty fields in Patch requests.
5757	ForceSendFields []string `json:"-"`
5758
5759	// NullFields is a list of field names (e.g. "EntityType") to include in
5760	// API requests with the JSON null value. By default, fields with empty
5761	// values are omitted from API requests. However, any field with an
5762	// empty value appearing in NullFields will be sent to the server as
5763	// null. It is an error if a field in this list has a non-empty value.
5764	// This may be used to include null fields in Patch requests.
5765	NullFields []string `json:"-"`
5766}
5767
5768func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
5769	type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
5770	raw := NoMethod(*s)
5771	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5772}
5773
5774// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an
5775// example that the agent is trained on to identify the intent.
5776type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
5777	// Id: Output only. The unique identifier of the training phrase.
5778	Id string `json:"id,omitempty"`
5779
5780	// Parts: Required. The ordered list of training phrase parts. The parts
5781	// are concatenated in order to form the training phrase. Note: The API
5782	// does not automatically annotate training phrases like the Dialogflow
5783	// Console does. Note: Do not forget to include whitespace at part
5784	// boundaries, so the training phrase is well formatted when the parts
5785	// are concatenated. If the training phrase does not need to be
5786	// annotated with parameters, you just need a single part with only the
5787	// Part.text field set. If you want to annotate the training phrase, you
5788	// must create multiple parts, where the fields of each part are
5789	// populated in one of two ways: - `Part.text` is set to a part of the
5790	// phrase that has no parameters. - `Part.text` is set to a part of the
5791	// phrase that you want to annotate, and the `parameter_id` field is
5792	// set.
5793	Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
5794
5795	// RepeatCount: Indicates how many times this example was added to the
5796	// intent.
5797	RepeatCount int64 `json:"repeatCount,omitempty"`
5798
5799	// ForceSendFields is a list of field names (e.g. "Id") to
5800	// unconditionally include in API requests. By default, fields with
5801	// empty values are omitted from API requests. However, any non-pointer,
5802	// non-interface field appearing in ForceSendFields will be sent to the
5803	// server regardless of whether the field is empty or not. This may be
5804	// used to include empty fields in Patch requests.
5805	ForceSendFields []string `json:"-"`
5806
5807	// NullFields is a list of field names (e.g. "Id") to include in API
5808	// requests with the JSON null value. By default, fields with empty
5809	// values are omitted from API requests. However, any field with an
5810	// empty value appearing in NullFields will be sent to the server as
5811	// null. It is an error if a field in this list has a non-empty value.
5812	// This may be used to include null fields in Patch requests.
5813	NullFields []string `json:"-"`
5814}
5815
5816func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
5817	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
5818	raw := NoMethod(*s)
5819	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5820}
5821
5822// GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a
5823// part of a training phrase.
5824type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
5825	// ParameterId: The parameter used to annotate this part of the training
5826	// phrase. This field is required for annotated parts of the training
5827	// phrase.
5828	ParameterId string `json:"parameterId,omitempty"`
5829
5830	// Text: Required. The text for this part.
5831	Text string `json:"text,omitempty"`
5832
5833	// ForceSendFields is a list of field names (e.g. "ParameterId") to
5834	// unconditionally include in API requests. By default, fields with
5835	// empty values are omitted from API requests. However, any non-pointer,
5836	// non-interface field appearing in ForceSendFields will be sent to the
5837	// server regardless of whether the field is empty or not. This may be
5838	// used to include empty fields in Patch requests.
5839	ForceSendFields []string `json:"-"`
5840
5841	// NullFields is a list of field names (e.g. "ParameterId") to include
5842	// in API requests with the JSON null value. By default, fields with
5843	// empty values are omitted from API requests. However, any field with
5844	// an empty value appearing in NullFields will be sent to the server as
5845	// null. It is an error if a field in this list has a non-empty value.
5846	// This may be used to include null fields in Patch requests.
5847	NullFields []string `json:"-"`
5848}
5849
5850func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
5851	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
5852	raw := NoMethod(*s)
5853	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5854}
5855
5856// GoogleCloudDialogflowCxV3beta1ListAgentsResponse: The response
5857// message for Agents.ListAgents.
5858type GoogleCloudDialogflowCxV3beta1ListAgentsResponse struct {
5859	// Agents: The list of agents. There will be a maximum number of items
5860	// returned based on the page_size field in the request.
5861	Agents []*GoogleCloudDialogflowCxV3beta1Agent `json:"agents,omitempty"`
5862
5863	// NextPageToken: Token to retrieve the next page of results, or empty
5864	// if there are no more results in the list.
5865	NextPageToken string `json:"nextPageToken,omitempty"`
5866
5867	// ServerResponse contains the HTTP response code and headers from the
5868	// server.
5869	googleapi.ServerResponse `json:"-"`
5870
5871	// ForceSendFields is a list of field names (e.g. "Agents") to
5872	// unconditionally include in API requests. By default, fields with
5873	// empty values are omitted from API requests. However, any non-pointer,
5874	// non-interface field appearing in ForceSendFields will be sent to the
5875	// server regardless of whether the field is empty or not. This may be
5876	// used to include empty fields in Patch requests.
5877	ForceSendFields []string `json:"-"`
5878
5879	// NullFields is a list of field names (e.g. "Agents") to include in API
5880	// requests with the JSON null value. By default, fields with empty
5881	// values are omitted from API requests. However, any field with an
5882	// empty value appearing in NullFields will be sent to the server as
5883	// null. It is an error if a field in this list has a non-empty value.
5884	// This may be used to include null fields in Patch requests.
5885	NullFields []string `json:"-"`
5886}
5887
5888func (s *GoogleCloudDialogflowCxV3beta1ListAgentsResponse) MarshalJSON() ([]byte, error) {
5889	type NoMethod GoogleCloudDialogflowCxV3beta1ListAgentsResponse
5890	raw := NoMethod(*s)
5891	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5892}
5893
5894// GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse: The response
5895// message for EntityTypes.ListEntityTypes.
5896type GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse struct {
5897	// EntityTypes: The list of entity types. There will be a maximum number
5898	// of items returned based on the page_size field in the request.
5899	EntityTypes []*GoogleCloudDialogflowCxV3beta1EntityType `json:"entityTypes,omitempty"`
5900
5901	// NextPageToken: Token to retrieve the next page of results, or empty
5902	// if there are no more results in the list.
5903	NextPageToken string `json:"nextPageToken,omitempty"`
5904
5905	// ServerResponse contains the HTTP response code and headers from the
5906	// server.
5907	googleapi.ServerResponse `json:"-"`
5908
5909	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
5910	// unconditionally include in API requests. By default, fields with
5911	// empty values are omitted from API requests. However, any non-pointer,
5912	// non-interface field appearing in ForceSendFields will be sent to the
5913	// server regardless of whether the field is empty or not. This may be
5914	// used to include empty fields in Patch requests.
5915	ForceSendFields []string `json:"-"`
5916
5917	// NullFields is a list of field names (e.g. "EntityTypes") to include
5918	// in API requests with the JSON null value. By default, fields with
5919	// empty values are omitted from API requests. However, any field with
5920	// an empty value appearing in NullFields will be sent to the server as
5921	// null. It is an error if a field in this list has a non-empty value.
5922	// This may be used to include null fields in Patch requests.
5923	NullFields []string `json:"-"`
5924}
5925
5926func (s *GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
5927	type NoMethod GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse
5928	raw := NoMethod(*s)
5929	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5930}
5931
5932// GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse: The response
5933// message for Environments.ListEnvironments.
5934type GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse struct {
5935	// Environments: The list of environments. There will be a maximum
5936	// number of items returned based on the page_size field in the request.
5937	// The list may in some cases be empty or contain fewer entries than
5938	// page_size even if this isn't the last page.
5939	Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
5940
5941	// NextPageToken: Token to retrieve the next page of results, or empty
5942	// if there are no more results in the list.
5943	NextPageToken string `json:"nextPageToken,omitempty"`
5944
5945	// ServerResponse contains the HTTP response code and headers from the
5946	// server.
5947	googleapi.ServerResponse `json:"-"`
5948
5949	// ForceSendFields is a list of field names (e.g. "Environments") to
5950	// unconditionally include in API requests. By default, fields with
5951	// empty values are omitted from API requests. However, any non-pointer,
5952	// non-interface field appearing in ForceSendFields will be sent to the
5953	// server regardless of whether the field is empty or not. This may be
5954	// used to include empty fields in Patch requests.
5955	ForceSendFields []string `json:"-"`
5956
5957	// NullFields is a list of field names (e.g. "Environments") to include
5958	// in API requests with the JSON null value. By default, fields with
5959	// empty values are omitted from API requests. However, any field with
5960	// an empty value appearing in NullFields will be sent to the server as
5961	// null. It is an error if a field in this list has a non-empty value.
5962	// This may be used to include null fields in Patch requests.
5963	NullFields []string `json:"-"`
5964}
5965
5966func (s *GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
5967	type NoMethod GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse
5968	raw := NoMethod(*s)
5969	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5970}
5971
5972// GoogleCloudDialogflowCxV3beta1ListExperimentsResponse: The response
5973// message for Experiments.ListExperiments.
5974type GoogleCloudDialogflowCxV3beta1ListExperimentsResponse struct {
5975	// Experiments: The list of experiments. There will be a maximum number
5976	// of items returned based on the page_size field in the request. The
5977	// list may in some cases be empty or contain fewer entries than
5978	// page_size even if this isn't the last page.
5979	Experiments []*GoogleCloudDialogflowCxV3beta1Experiment `json:"experiments,omitempty"`
5980
5981	// NextPageToken: Token to retrieve the next page of results, or empty
5982	// if there are no more results in the list.
5983	NextPageToken string `json:"nextPageToken,omitempty"`
5984
5985	// ServerResponse contains the HTTP response code and headers from the
5986	// server.
5987	googleapi.ServerResponse `json:"-"`
5988
5989	// ForceSendFields is a list of field names (e.g. "Experiments") to
5990	// unconditionally include in API requests. By default, fields with
5991	// empty values are omitted from API requests. However, any non-pointer,
5992	// non-interface field appearing in ForceSendFields will be sent to the
5993	// server regardless of whether the field is empty or not. This may be
5994	// used to include empty fields in Patch requests.
5995	ForceSendFields []string `json:"-"`
5996
5997	// NullFields is a list of field names (e.g. "Experiments") to include
5998	// in API requests with the JSON null value. By default, fields with
5999	// empty values are omitted from API requests. However, any field with
6000	// an empty value appearing in NullFields will be sent to the server as
6001	// null. It is an error if a field in this list has a non-empty value.
6002	// This may be used to include null fields in Patch requests.
6003	NullFields []string `json:"-"`
6004}
6005
6006func (s *GoogleCloudDialogflowCxV3beta1ListExperimentsResponse) MarshalJSON() ([]byte, error) {
6007	type NoMethod GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
6008	raw := NoMethod(*s)
6009	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6010}
6011
6012// GoogleCloudDialogflowCxV3beta1ListFlowsResponse: The response message
6013// for Flows.ListFlows.
6014type GoogleCloudDialogflowCxV3beta1ListFlowsResponse struct {
6015	// Flows: The list of flows. There will be a maximum number of items
6016	// returned based on the page_size field in the request.
6017	Flows []*GoogleCloudDialogflowCxV3beta1Flow `json:"flows,omitempty"`
6018
6019	// NextPageToken: Token to retrieve the next page of results, or empty
6020	// if there are no more results in the list.
6021	NextPageToken string `json:"nextPageToken,omitempty"`
6022
6023	// ServerResponse contains the HTTP response code and headers from the
6024	// server.
6025	googleapi.ServerResponse `json:"-"`
6026
6027	// ForceSendFields is a list of field names (e.g. "Flows") to
6028	// unconditionally include in API requests. By default, fields with
6029	// empty values are omitted from API requests. However, any non-pointer,
6030	// non-interface field appearing in ForceSendFields will be sent to the
6031	// server regardless of whether the field is empty or not. This may be
6032	// used to include empty fields in Patch requests.
6033	ForceSendFields []string `json:"-"`
6034
6035	// NullFields is a list of field names (e.g. "Flows") to include in API
6036	// requests with the JSON null value. By default, fields with empty
6037	// values are omitted from API requests. However, any field with an
6038	// empty value appearing in NullFields will be sent to the server as
6039	// null. It is an error if a field in this list has a non-empty value.
6040	// This may be used to include null fields in Patch requests.
6041	NullFields []string `json:"-"`
6042}
6043
6044func (s *GoogleCloudDialogflowCxV3beta1ListFlowsResponse) MarshalJSON() ([]byte, error) {
6045	type NoMethod GoogleCloudDialogflowCxV3beta1ListFlowsResponse
6046	raw := NoMethod(*s)
6047	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6048}
6049
6050// GoogleCloudDialogflowCxV3beta1ListIntentsResponse: The response
6051// message for Intents.ListIntents.
6052type GoogleCloudDialogflowCxV3beta1ListIntentsResponse struct {
6053	// Intents: The list of intents. There will be a maximum number of items
6054	// returned based on the page_size field in the request.
6055	Intents []*GoogleCloudDialogflowCxV3beta1Intent `json:"intents,omitempty"`
6056
6057	// NextPageToken: Token to retrieve the next page of results, or empty
6058	// if there are no more results in the list.
6059	NextPageToken string `json:"nextPageToken,omitempty"`
6060
6061	// ServerResponse contains the HTTP response code and headers from the
6062	// server.
6063	googleapi.ServerResponse `json:"-"`
6064
6065	// ForceSendFields is a list of field names (e.g. "Intents") to
6066	// unconditionally include in API requests. By default, fields with
6067	// empty values are omitted from API requests. However, any non-pointer,
6068	// non-interface field appearing in ForceSendFields will be sent to the
6069	// server regardless of whether the field is empty or not. This may be
6070	// used to include empty fields in Patch requests.
6071	ForceSendFields []string `json:"-"`
6072
6073	// NullFields is a list of field names (e.g. "Intents") to include in
6074	// API requests with the JSON null value. By default, fields with empty
6075	// values are omitted from API requests. However, any field with an
6076	// empty value appearing in NullFields will be sent to the server as
6077	// null. It is an error if a field in this list has a non-empty value.
6078	// This may be used to include null fields in Patch requests.
6079	NullFields []string `json:"-"`
6080}
6081
6082func (s *GoogleCloudDialogflowCxV3beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
6083	type NoMethod GoogleCloudDialogflowCxV3beta1ListIntentsResponse
6084	raw := NoMethod(*s)
6085	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6086}
6087
6088// GoogleCloudDialogflowCxV3beta1ListPagesResponse: The response message
6089// for Pages.ListPages.
6090type GoogleCloudDialogflowCxV3beta1ListPagesResponse struct {
6091	// NextPageToken: Token to retrieve the next page of results, or empty
6092	// if there are no more results in the list.
6093	NextPageToken string `json:"nextPageToken,omitempty"`
6094
6095	// Pages: The list of pages. There will be a maximum number of items
6096	// returned based on the page_size field in the request.
6097	Pages []*GoogleCloudDialogflowCxV3beta1Page `json:"pages,omitempty"`
6098
6099	// ServerResponse contains the HTTP response code and headers from the
6100	// server.
6101	googleapi.ServerResponse `json:"-"`
6102
6103	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6104	// unconditionally include in API requests. By default, fields with
6105	// empty values are omitted from API requests. However, any non-pointer,
6106	// non-interface field appearing in ForceSendFields will be sent to the
6107	// server regardless of whether the field is empty or not. This may be
6108	// used to include empty fields in Patch requests.
6109	ForceSendFields []string `json:"-"`
6110
6111	// NullFields is a list of field names (e.g. "NextPageToken") to include
6112	// in API requests with the JSON null value. By default, fields with
6113	// empty values are omitted from API requests. However, any field with
6114	// an empty value appearing in NullFields will be sent to the server as
6115	// null. It is an error if a field in this list has a non-empty value.
6116	// This may be used to include null fields in Patch requests.
6117	NullFields []string `json:"-"`
6118}
6119
6120func (s *GoogleCloudDialogflowCxV3beta1ListPagesResponse) MarshalJSON() ([]byte, error) {
6121	type NoMethod GoogleCloudDialogflowCxV3beta1ListPagesResponse
6122	raw := NoMethod(*s)
6123	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6124}
6125
6126// GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse: The
6127// response message for SecuritySettings.ListSecuritySettings.
6128type GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse struct {
6129	// NextPageToken: Token to retrieve the next page of results, or empty
6130	// if there are no more results in the list.
6131	NextPageToken string `json:"nextPageToken,omitempty"`
6132
6133	// SecuritySettings: The list of security settings.
6134	SecuritySettings []*GoogleCloudDialogflowCxV3beta1SecuritySettings `json:"securitySettings,omitempty"`
6135
6136	// ServerResponse contains the HTTP response code and headers from the
6137	// server.
6138	googleapi.ServerResponse `json:"-"`
6139
6140	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6141	// unconditionally include in API requests. By default, fields with
6142	// empty values are omitted from API requests. However, any non-pointer,
6143	// non-interface field appearing in ForceSendFields will be sent to the
6144	// server regardless of whether the field is empty or not. This may be
6145	// used to include empty fields in Patch requests.
6146	ForceSendFields []string `json:"-"`
6147
6148	// NullFields is a list of field names (e.g. "NextPageToken") to include
6149	// in API requests with the JSON null value. By default, fields with
6150	// empty values are omitted from API requests. However, any field with
6151	// an empty value appearing in NullFields will be sent to the server as
6152	// null. It is an error if a field in this list has a non-empty value.
6153	// This may be used to include null fields in Patch requests.
6154	NullFields []string `json:"-"`
6155}
6156
6157func (s *GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse) MarshalJSON() ([]byte, error) {
6158	type NoMethod GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse
6159	raw := NoMethod(*s)
6160	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6161}
6162
6163// GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse: The
6164// response message for SessionEntityTypes.ListSessionEntityTypes.
6165type GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse struct {
6166	// NextPageToken: Token to retrieve the next page of results, or empty
6167	// if there are no more results in the list.
6168	NextPageToken string `json:"nextPageToken,omitempty"`
6169
6170	// SessionEntityTypes: The list of session entity types. There will be a
6171	// maximum number of items returned based on the page_size field in the
6172	// request.
6173	SessionEntityTypes []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
6174
6175	// ServerResponse contains the HTTP response code and headers from the
6176	// server.
6177	googleapi.ServerResponse `json:"-"`
6178
6179	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6180	// unconditionally include in API requests. By default, fields with
6181	// empty values are omitted from API requests. However, any non-pointer,
6182	// non-interface field appearing in ForceSendFields will be sent to the
6183	// server regardless of whether the field is empty or not. This may be
6184	// used to include empty fields in Patch requests.
6185	ForceSendFields []string `json:"-"`
6186
6187	// NullFields is a list of field names (e.g. "NextPageToken") to include
6188	// in API requests with the JSON null value. By default, fields with
6189	// empty values are omitted from API requests. However, any field with
6190	// an empty value appearing in NullFields will be sent to the server as
6191	// null. It is an error if a field in this list has a non-empty value.
6192	// This may be used to include null fields in Patch requests.
6193	NullFields []string `json:"-"`
6194}
6195
6196func (s *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
6197	type NoMethod GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse
6198	raw := NoMethod(*s)
6199	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6200}
6201
6202// GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse: The
6203// response message for TestCases.ListTestCaseResults.
6204type GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse struct {
6205	// NextPageToken: Token to retrieve the next page of results, or empty
6206	// if there are no more results in the list.
6207	NextPageToken string `json:"nextPageToken,omitempty"`
6208
6209	// TestCaseResults: The list of test case results.
6210	TestCaseResults []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"testCaseResults,omitempty"`
6211
6212	// ServerResponse contains the HTTP response code and headers from the
6213	// server.
6214	googleapi.ServerResponse `json:"-"`
6215
6216	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6217	// unconditionally include in API requests. By default, fields with
6218	// empty values are omitted from API requests. However, any non-pointer,
6219	// non-interface field appearing in ForceSendFields will be sent to the
6220	// server regardless of whether the field is empty or not. This may be
6221	// used to include empty fields in Patch requests.
6222	ForceSendFields []string `json:"-"`
6223
6224	// NullFields is a list of field names (e.g. "NextPageToken") to include
6225	// in API requests with the JSON null value. By default, fields with
6226	// empty values are omitted from API requests. However, any field with
6227	// an empty value appearing in NullFields will be sent to the server as
6228	// null. It is an error if a field in this list has a non-empty value.
6229	// This may be used to include null fields in Patch requests.
6230	NullFields []string `json:"-"`
6231}
6232
6233func (s *GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse) MarshalJSON() ([]byte, error) {
6234	type NoMethod GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse
6235	raw := NoMethod(*s)
6236	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6237}
6238
6239// GoogleCloudDialogflowCxV3beta1ListTestCasesResponse: The response
6240// message for TestCases.ListTestCases.
6241type GoogleCloudDialogflowCxV3beta1ListTestCasesResponse struct {
6242	// NextPageToken: Token to retrieve the next page of results, or empty
6243	// if there are no more results in the list.
6244	NextPageToken string `json:"nextPageToken,omitempty"`
6245
6246	// TestCases: The list of test cases. There will be a maximum number of
6247	// items returned based on the page_size field in the request.
6248	TestCases []*GoogleCloudDialogflowCxV3beta1TestCase `json:"testCases,omitempty"`
6249
6250	// ServerResponse contains the HTTP response code and headers from the
6251	// server.
6252	googleapi.ServerResponse `json:"-"`
6253
6254	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6255	// unconditionally include in API requests. By default, fields with
6256	// empty values are omitted from API requests. However, any non-pointer,
6257	// non-interface field appearing in ForceSendFields will be sent to the
6258	// server regardless of whether the field is empty or not. This may be
6259	// used to include empty fields in Patch requests.
6260	ForceSendFields []string `json:"-"`
6261
6262	// NullFields is a list of field names (e.g. "NextPageToken") to include
6263	// in API requests with the JSON null value. By default, fields with
6264	// empty values are omitted from API requests. However, any field with
6265	// an empty value appearing in NullFields will be sent to the server as
6266	// null. It is an error if a field in this list has a non-empty value.
6267	// This may be used to include null fields in Patch requests.
6268	NullFields []string `json:"-"`
6269}
6270
6271func (s *GoogleCloudDialogflowCxV3beta1ListTestCasesResponse) MarshalJSON() ([]byte, error) {
6272	type NoMethod GoogleCloudDialogflowCxV3beta1ListTestCasesResponse
6273	raw := NoMethod(*s)
6274	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6275}
6276
6277// GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse: The
6278// response message for TransitionRouteGroups.ListTransitionRouteGroups.
6279type GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse struct {
6280	// NextPageToken: Token to retrieve the next page of results, or empty
6281	// if there are no more results in the list.
6282	NextPageToken string `json:"nextPageToken,omitempty"`
6283
6284	// TransitionRouteGroups: The list of transition route groups. There
6285	// will be a maximum number of items returned based on the page_size
6286	// field in the request. The list may in some cases be empty or contain
6287	// fewer entries than page_size even if this isn't the last page.
6288	TransitionRouteGroups []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup `json:"transitionRouteGroups,omitempty"`
6289
6290	// ServerResponse contains the HTTP response code and headers from the
6291	// server.
6292	googleapi.ServerResponse `json:"-"`
6293
6294	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6295	// unconditionally include in API requests. By default, fields with
6296	// empty values are omitted from API requests. However, any non-pointer,
6297	// non-interface field appearing in ForceSendFields will be sent to the
6298	// server regardless of whether the field is empty or not. This may be
6299	// used to include empty fields in Patch requests.
6300	ForceSendFields []string `json:"-"`
6301
6302	// NullFields is a list of field names (e.g. "NextPageToken") to include
6303	// in API requests with the JSON null value. By default, fields with
6304	// empty values are omitted from API requests. However, any field with
6305	// an empty value appearing in NullFields will be sent to the server as
6306	// null. It is an error if a field in this list has a non-empty value.
6307	// This may be used to include null fields in Patch requests.
6308	NullFields []string `json:"-"`
6309}
6310
6311func (s *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) MarshalJSON() ([]byte, error) {
6312	type NoMethod GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse
6313	raw := NoMethod(*s)
6314	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6315}
6316
6317// GoogleCloudDialogflowCxV3beta1ListVersionsResponse: The response
6318// message for Versions.ListVersions.
6319type GoogleCloudDialogflowCxV3beta1ListVersionsResponse struct {
6320	// NextPageToken: Token to retrieve the next page of results, or empty
6321	// if there are no more results in the list.
6322	NextPageToken string `json:"nextPageToken,omitempty"`
6323
6324	// Versions: A list of versions. There will be a maximum number of items
6325	// returned based on the page_size field in the request. The list may in
6326	// some cases be empty or contain fewer entries than page_size even if
6327	// this isn't the last page.
6328	Versions []*GoogleCloudDialogflowCxV3beta1Version `json:"versions,omitempty"`
6329
6330	// ServerResponse contains the HTTP response code and headers from the
6331	// server.
6332	googleapi.ServerResponse `json:"-"`
6333
6334	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6335	// unconditionally include in API requests. By default, fields with
6336	// empty values are omitted from API requests. However, any non-pointer,
6337	// non-interface field appearing in ForceSendFields will be sent to the
6338	// server regardless of whether the field is empty or not. This may be
6339	// used to include empty fields in Patch requests.
6340	ForceSendFields []string `json:"-"`
6341
6342	// NullFields is a list of field names (e.g. "NextPageToken") to include
6343	// in API requests with the JSON null value. By default, fields with
6344	// empty values are omitted from API requests. However, any field with
6345	// an empty value appearing in NullFields will be sent to the server as
6346	// null. It is an error if a field in this list has a non-empty value.
6347	// This may be used to include null fields in Patch requests.
6348	NullFields []string `json:"-"`
6349}
6350
6351func (s *GoogleCloudDialogflowCxV3beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
6352	type NoMethod GoogleCloudDialogflowCxV3beta1ListVersionsResponse
6353	raw := NoMethod(*s)
6354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6355}
6356
6357// GoogleCloudDialogflowCxV3beta1ListWebhooksResponse: The response
6358// message for Webhooks.ListWebhooks.
6359type GoogleCloudDialogflowCxV3beta1ListWebhooksResponse struct {
6360	// NextPageToken: Token to retrieve the next page of results, or empty
6361	// if there are no more results in the list.
6362	NextPageToken string `json:"nextPageToken,omitempty"`
6363
6364	// Webhooks: The list of webhooks. There will be a maximum number of
6365	// items returned based on the page_size field in the request.
6366	Webhooks []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhooks,omitempty"`
6367
6368	// ServerResponse contains the HTTP response code and headers from the
6369	// server.
6370	googleapi.ServerResponse `json:"-"`
6371
6372	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6373	// unconditionally include in API requests. By default, fields with
6374	// empty values are omitted from API requests. However, any non-pointer,
6375	// non-interface field appearing in ForceSendFields will be sent to the
6376	// server regardless of whether the field is empty or not. This may be
6377	// used to include empty fields in Patch requests.
6378	ForceSendFields []string `json:"-"`
6379
6380	// NullFields is a list of field names (e.g. "NextPageToken") to include
6381	// in API requests with the JSON null value. By default, fields with
6382	// empty values are omitted from API requests. However, any field with
6383	// an empty value appearing in NullFields will be sent to the server as
6384	// null. It is an error if a field in this list has a non-empty value.
6385	// This may be used to include null fields in Patch requests.
6386	NullFields []string `json:"-"`
6387}
6388
6389func (s *GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) MarshalJSON() ([]byte, error) {
6390	type NoMethod GoogleCloudDialogflowCxV3beta1ListWebhooksResponse
6391	raw := NoMethod(*s)
6392	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6393}
6394
6395// GoogleCloudDialogflowCxV3beta1LoadVersionRequest: The request message
6396// for Versions.LoadVersion.
6397type GoogleCloudDialogflowCxV3beta1LoadVersionRequest struct {
6398	// AllowOverrideAgentResources: This field is used to prevent accidental
6399	// overwrite of other agent resources in the draft version, which can
6400	// potentially impact other flow's behavior. If
6401	// `allow_override_agent_resources` is false, conflicted agent-level
6402	// resources will not be overridden (i.e. intents, entities, webhooks).
6403	AllowOverrideAgentResources bool `json:"allowOverrideAgentResources,omitempty"`
6404
6405	// ForceSendFields is a list of field names (e.g.
6406	// "AllowOverrideAgentResources") to unconditionally include in API
6407	// requests. By default, fields with empty values are omitted from API
6408	// requests. However, any non-pointer, non-interface field appearing in
6409	// ForceSendFields will be sent to the server regardless of whether the
6410	// field is empty or not. This may be used to include empty fields in
6411	// Patch requests.
6412	ForceSendFields []string `json:"-"`
6413
6414	// NullFields is a list of field names (e.g.
6415	// "AllowOverrideAgentResources") to include in API requests with the
6416	// JSON null value. By default, fields with empty values are omitted
6417	// from API requests. However, any field with an empty value appearing
6418	// in NullFields will be sent to the server as null. It is an error if a
6419	// field in this list has a non-empty value. This may be used to include
6420	// null fields in Patch requests.
6421	NullFields []string `json:"-"`
6422}
6423
6424func (s *GoogleCloudDialogflowCxV3beta1LoadVersionRequest) MarshalJSON() ([]byte, error) {
6425	type NoMethod GoogleCloudDialogflowCxV3beta1LoadVersionRequest
6426	raw := NoMethod(*s)
6427	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6428}
6429
6430// GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse: The
6431// response message for Environments.LookupEnvironmentHistory.
6432type GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse struct {
6433	// Environments: Represents a list of snapshots for an environment. Time
6434	// of the snapshots is stored in `update_time`.
6435	Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
6436
6437	// NextPageToken: Token to retrieve the next page of results, or empty
6438	// if there are no more results in the list.
6439	NextPageToken string `json:"nextPageToken,omitempty"`
6440
6441	// ServerResponse contains the HTTP response code and headers from the
6442	// server.
6443	googleapi.ServerResponse `json:"-"`
6444
6445	// ForceSendFields is a list of field names (e.g. "Environments") to
6446	// unconditionally include in API requests. By default, fields with
6447	// empty values are omitted from API requests. However, any non-pointer,
6448	// non-interface field appearing in ForceSendFields will be sent to the
6449	// server regardless of whether the field is empty or not. This may be
6450	// used to include empty fields in Patch requests.
6451	ForceSendFields []string `json:"-"`
6452
6453	// NullFields is a list of field names (e.g. "Environments") to include
6454	// in API requests with the JSON null value. By default, fields with
6455	// empty values are omitted from API requests. However, any field with
6456	// an empty value appearing in NullFields will be sent to the server as
6457	// null. It is an error if a field in this list has a non-empty value.
6458	// This may be used to include null fields in Patch requests.
6459	NullFields []string `json:"-"`
6460}
6461
6462func (s *GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse) MarshalJSON() ([]byte, error) {
6463	type NoMethod GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse
6464	raw := NoMethod(*s)
6465	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6466}
6467
6468// GoogleCloudDialogflowCxV3beta1Match: Represents one match result of
6469// MatchIntent.
6470type GoogleCloudDialogflowCxV3beta1Match struct {
6471	// Confidence: The confidence of this match. Values range from 0.0
6472	// (completely uncertain) to 1.0 (completely certain). This value is for
6473	// informational purpose only and is only used to help match the best
6474	// intent within the classification threshold. This value may change for
6475	// the same end-user expression at any time due to a model retraining or
6476	// change in implementation.
6477	Confidence float64 `json:"confidence,omitempty"`
6478
6479	// Event: The event that matched the query. Only filled for `EVENT`
6480	// match type.
6481	Event string `json:"event,omitempty"`
6482
6483	// Intent: The Intent that matched the query. Some, not all fields are
6484	// filled in this message, including but not limited to: `name` and
6485	// `display_name`. Only filled for `INTENT` match type.
6486	Intent *GoogleCloudDialogflowCxV3beta1Intent `json:"intent,omitempty"`
6487
6488	// MatchType: Type of this Match.
6489	//
6490	// Possible values:
6491	//   "MATCH_TYPE_UNSPECIFIED" - Not specified. Should never be used.
6492	//   "INTENT" - The query was matched to an intent.
6493	//   "DIRECT_INTENT" - The query directly triggered an intent.
6494	//   "PARAMETER_FILLING" - The query was used for parameter filling.
6495	//   "NO_MATCH" - No match was found for the query.
6496	//   "NO_INPUT" - Indicates an empty query.
6497	//   "EVENT" - The query directly triggered an event.
6498	MatchType string `json:"matchType,omitempty"`
6499
6500	// Parameters: The collection of parameters extracted from the query.
6501	// Depending on your protocol or client library language, this is a map,
6502	// associative array, symbol table, dictionary, or JSON object composed
6503	// of a collection of (MapKey, MapValue) pairs: - MapKey type: string -
6504	// MapKey value: parameter name - MapValue type: - If parameter's entity
6505	// type is a composite entity: map - Else: depending on parameter value
6506	// type, could be one of string, number, boolean, null, list or map -
6507	// MapValue value: - If parameter's entity type is a composite entity:
6508	// map from composite entity property names to property values - Else:
6509	// parameter value
6510	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
6511
6512	// ResolvedInput: Final text input which was matched during MatchIntent.
6513	// This value can be different from original input sent in request
6514	// because of spelling correction or other processing.
6515	ResolvedInput string `json:"resolvedInput,omitempty"`
6516
6517	// ForceSendFields is a list of field names (e.g. "Confidence") to
6518	// unconditionally include in API requests. By default, fields with
6519	// empty values are omitted from API requests. However, any non-pointer,
6520	// non-interface field appearing in ForceSendFields will be sent to the
6521	// server regardless of whether the field is empty or not. This may be
6522	// used to include empty fields in Patch requests.
6523	ForceSendFields []string `json:"-"`
6524
6525	// NullFields is a list of field names (e.g. "Confidence") to include in
6526	// API requests with the JSON null value. By default, fields with empty
6527	// values are omitted from API requests. However, any field with an
6528	// empty value appearing in NullFields will be sent to the server as
6529	// null. It is an error if a field in this list has a non-empty value.
6530	// This may be used to include null fields in Patch requests.
6531	NullFields []string `json:"-"`
6532}
6533
6534func (s *GoogleCloudDialogflowCxV3beta1Match) MarshalJSON() ([]byte, error) {
6535	type NoMethod GoogleCloudDialogflowCxV3beta1Match
6536	raw := NoMethod(*s)
6537	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6538}
6539
6540func (s *GoogleCloudDialogflowCxV3beta1Match) UnmarshalJSON(data []byte) error {
6541	type NoMethod GoogleCloudDialogflowCxV3beta1Match
6542	var s1 struct {
6543		Confidence gensupport.JSONFloat64 `json:"confidence"`
6544		*NoMethod
6545	}
6546	s1.NoMethod = (*NoMethod)(s)
6547	if err := json.Unmarshal(data, &s1); err != nil {
6548		return err
6549	}
6550	s.Confidence = float64(s1.Confidence)
6551	return nil
6552}
6553
6554// GoogleCloudDialogflowCxV3beta1MatchIntentRequest: Request of
6555// MatchIntent.
6556type GoogleCloudDialogflowCxV3beta1MatchIntentRequest struct {
6557	// QueryInput: Required. The input specification.
6558	QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
6559
6560	// QueryParams: The parameters of this query.
6561	QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
6562
6563	// ForceSendFields is a list of field names (e.g. "QueryInput") to
6564	// unconditionally include in API requests. By default, fields with
6565	// empty values are omitted from API requests. However, any non-pointer,
6566	// non-interface field appearing in ForceSendFields will be sent to the
6567	// server regardless of whether the field is empty or not. This may be
6568	// used to include empty fields in Patch requests.
6569	ForceSendFields []string `json:"-"`
6570
6571	// NullFields is a list of field names (e.g. "QueryInput") to include in
6572	// API requests with the JSON null value. By default, fields with empty
6573	// values are omitted from API requests. However, any field with an
6574	// empty value appearing in NullFields will be sent to the server as
6575	// null. It is an error if a field in this list has a non-empty value.
6576	// This may be used to include null fields in Patch requests.
6577	NullFields []string `json:"-"`
6578}
6579
6580func (s *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) MarshalJSON() ([]byte, error) {
6581	type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentRequest
6582	raw := NoMethod(*s)
6583	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6584}
6585
6586// GoogleCloudDialogflowCxV3beta1MatchIntentResponse: Response of
6587// MatchIntent.
6588type GoogleCloudDialogflowCxV3beta1MatchIntentResponse struct {
6589	// CurrentPage: The current Page. Some, not all fields are filled in
6590	// this message, including but not limited to `name` and `display_name`.
6591	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
6592
6593	// Matches: Match results, if more than one, ordered descendingly by the
6594	// confidence we have that the particular intent matches the query.
6595	Matches []*GoogleCloudDialogflowCxV3beta1Match `json:"matches,omitempty"`
6596
6597	// Text: If natural language text was provided as input, this field will
6598	// contain a copy of the text.
6599	Text string `json:"text,omitempty"`
6600
6601	// Transcript: If natural language speech audio was provided as input,
6602	// this field will contain the transcript for the audio.
6603	Transcript string `json:"transcript,omitempty"`
6604
6605	// TriggerEvent: If an event was provided as input, this field will
6606	// contain a copy of the event name.
6607	TriggerEvent string `json:"triggerEvent,omitempty"`
6608
6609	// TriggerIntent: If an intent was provided as input, this field will
6610	// contain a copy of the intent identifier. Format:
6611	// `projects//locations//agents//intents/`.
6612	TriggerIntent string `json:"triggerIntent,omitempty"`
6613
6614	// ServerResponse contains the HTTP response code and headers from the
6615	// server.
6616	googleapi.ServerResponse `json:"-"`
6617
6618	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
6619	// unconditionally include in API requests. By default, fields with
6620	// empty values are omitted from API requests. However, any non-pointer,
6621	// non-interface field appearing in ForceSendFields will be sent to the
6622	// server regardless of whether the field is empty or not. This may be
6623	// used to include empty fields in Patch requests.
6624	ForceSendFields []string `json:"-"`
6625
6626	// NullFields is a list of field names (e.g. "CurrentPage") to include
6627	// in API requests with the JSON null value. By default, fields with
6628	// empty values are omitted from API requests. However, any field with
6629	// an empty value appearing in NullFields will be sent to the server as
6630	// null. It is an error if a field in this list has a non-empty value.
6631	// This may be used to include null fields in Patch requests.
6632	NullFields []string `json:"-"`
6633}
6634
6635func (s *GoogleCloudDialogflowCxV3beta1MatchIntentResponse) MarshalJSON() ([]byte, error) {
6636	type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentResponse
6637	raw := NoMethod(*s)
6638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6639}
6640
6641// GoogleCloudDialogflowCxV3beta1NluSettings: Settings related to NLU.
6642type GoogleCloudDialogflowCxV3beta1NluSettings struct {
6643	// ClassificationThreshold: To filter out false positive results and
6644	// still get variety in matched natural language inputs for your agent,
6645	// you can tune the machine learning classification threshold. If the
6646	// returned score value is less than the threshold value, then a
6647	// no-match event will be triggered. The score values range from 0.0
6648	// (completely uncertain) to 1.0 (completely certain). If set to 0.0,
6649	// the default of 0.3 is used.
6650	ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
6651
6652	// ModelTrainingMode: Indicates NLU model training mode.
6653	//
6654	// Possible values:
6655	//   "MODEL_TRAINING_MODE_UNSPECIFIED" - Not specified.
6656	// `MODEL_TRAINING_MODE_AUTOMATIC` will be used.
6657	//   "MODEL_TRAINING_MODE_AUTOMATIC" - NLU model training is
6658	// automatically triggered when a flow gets modified. User can also
6659	// manually trigger model training in this mode.
6660	//   "MODEL_TRAINING_MODE_MANUAL" - User needs to manually trigger NLU
6661	// model training. Best for large flows whose models take long time to
6662	// train.
6663	ModelTrainingMode string `json:"modelTrainingMode,omitempty"`
6664
6665	// ModelType: Indicates the type of NLU model.
6666	//
6667	// Possible values:
6668	//   "MODEL_TYPE_UNSPECIFIED" - Not specified. `MODEL_TYPE_STANDARD`
6669	// will be used.
6670	//   "MODEL_TYPE_STANDARD" - Use standard NLU model.
6671	//   "MODEL_TYPE_ADVANCED" - Use advanced NLU model.
6672	ModelType string `json:"modelType,omitempty"`
6673
6674	// ForceSendFields is a list of field names (e.g.
6675	// "ClassificationThreshold") to unconditionally include in API
6676	// requests. By default, fields with empty values are omitted from API
6677	// requests. However, any non-pointer, non-interface field appearing in
6678	// ForceSendFields will be sent to the server regardless of whether the
6679	// field is empty or not. This may be used to include empty fields in
6680	// Patch requests.
6681	ForceSendFields []string `json:"-"`
6682
6683	// NullFields is a list of field names (e.g. "ClassificationThreshold")
6684	// to include in API requests with the JSON null value. By default,
6685	// fields with empty values are omitted from API requests. However, any
6686	// field with an empty value appearing in NullFields will be sent to the
6687	// server as null. It is an error if a field in this list has a
6688	// non-empty value. This may be used to include null fields in Patch
6689	// requests.
6690	NullFields []string `json:"-"`
6691}
6692
6693func (s *GoogleCloudDialogflowCxV3beta1NluSettings) MarshalJSON() ([]byte, error) {
6694	type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
6695	raw := NoMethod(*s)
6696	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6697}
6698
6699func (s *GoogleCloudDialogflowCxV3beta1NluSettings) UnmarshalJSON(data []byte) error {
6700	type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
6701	var s1 struct {
6702		ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
6703		*NoMethod
6704	}
6705	s1.NoMethod = (*NoMethod)(s)
6706	if err := json.Unmarshal(data, &s1); err != nil {
6707		return err
6708	}
6709	s.ClassificationThreshold = float64(s1.ClassificationThreshold)
6710	return nil
6711}
6712
6713// GoogleCloudDialogflowCxV3beta1OutputAudioConfig: Instructs the speech
6714// synthesizer how to generate the output audio content.
6715type GoogleCloudDialogflowCxV3beta1OutputAudioConfig struct {
6716	// AudioEncoding: Required. Audio encoding of the synthesized audio
6717	// content.
6718	//
6719	// Possible values:
6720	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
6721	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
6722	// little-endian samples (Linear PCM). Audio content returned as
6723	// LINEAR16 also contains a WAV header.
6724	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
6725	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
6726	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an
6727	// ogg container. The result will be a file which can be played natively
6728	// on Android, and in browsers (at least Chrome and Firefox). The
6729	// quality of the encoding is considerably higher than MP3 while using
6730	// approximately the same bitrate.
6731	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit
6732	// audio samples using G.711 PCMU/mu-law.
6733	AudioEncoding string `json:"audioEncoding,omitempty"`
6734
6735	// SampleRateHertz: Optional. The synthesis sample rate (in hertz) for
6736	// this audio. If not provided, then the synthesizer will use the
6737	// default sample rate based on the audio encoding. If this is different
6738	// from the voice's natural sample rate, then the synthesizer will honor
6739	// this request by converting to the desired sample rate (which might
6740	// result in worse audio quality).
6741	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
6742
6743	// SynthesizeSpeechConfig: Optional. Configuration of how speech should
6744	// be synthesized.
6745	SynthesizeSpeechConfig *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
6746
6747	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
6748	// unconditionally include in API requests. By default, fields with
6749	// empty values are omitted from API requests. However, any non-pointer,
6750	// non-interface field appearing in ForceSendFields will be sent to the
6751	// server regardless of whether the field is empty or not. This may be
6752	// used to include empty fields in Patch requests.
6753	ForceSendFields []string `json:"-"`
6754
6755	// NullFields is a list of field names (e.g. "AudioEncoding") to include
6756	// in API requests with the JSON null value. By default, fields with
6757	// empty values are omitted from API requests. However, any field with
6758	// an empty value appearing in NullFields will be sent to the server as
6759	// null. It is an error if a field in this list has a non-empty value.
6760	// This may be used to include null fields in Patch requests.
6761	NullFields []string `json:"-"`
6762}
6763
6764func (s *GoogleCloudDialogflowCxV3beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
6765	type NoMethod GoogleCloudDialogflowCxV3beta1OutputAudioConfig
6766	raw := NoMethod(*s)
6767	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6768}
6769
6770// GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation
6771// (session) can be described and visualized as a state machine. The
6772// states of a CX session are represented by pages. For each flow, you
6773// define many pages, where your combined pages can handle a complete
6774// conversation on the topics the flow is designed for. At any given
6775// moment, exactly one page is the current page, the current page is
6776// considered active, and the flow associated with that page is
6777// considered active. Every flow has a special start page. When a flow
6778// initially becomes active, the start page page becomes the current
6779// page. For each conversational turn, the current page will either stay
6780// the same or transition to another page. You configure each page to
6781// collect information from the end-user that is relevant for the
6782// conversational state represented by the page. For more information,
6783// see the Page guide
6784// (https://cloud.google.com/dialogflow/cx/docs/concept/page).
6785type GoogleCloudDialogflowCxV3beta1Page struct {
6786	// DisplayName: Required. The human-readable name of the page, unique
6787	// within the agent.
6788	DisplayName string `json:"displayName,omitempty"`
6789
6790	// EntryFulfillment: The fulfillment to call when the session is
6791	// entering the page.
6792	EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
6793
6794	// EventHandlers: Handlers associated with the page to handle events
6795	// such as webhook errors, no match or no input.
6796	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
6797
6798	// Form: The form associated with the page, used for collecting
6799	// parameters relevant to the page.
6800	Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
6801
6802	// Name: The unique identifier of the page. Required for the
6803	// Pages.UpdatePage method. Pages.CreatePage populates the name
6804	// automatically. Format: `projects//locations//agents//flows//pages/`.
6805	Name string `json:"name,omitempty"`
6806
6807	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups`
6808	// associated with the page. Transition route groups must be unique
6809	// within a page. * If multiple transition routes within a page scope
6810	// refer to the same intent, then the precedence order is: page's
6811	// transition route -> page's transition route group -> flow's
6812	// transition routes. * If multiple transition route groups within a
6813	// page contain the same intent, then the first group in the ordered
6814	// list takes precedence.
6815	// Format:`projects//locations//agents//flows//transitionRouteGroups/`.
6816	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
6817
6818	// TransitionRoutes: A list of transitions for the transition rules of
6819	// this page. They route the conversation to another page in the same
6820	// flow, or another flow. When we are in a certain page, the
6821	// TransitionRoutes are evalauted in the following order: *
6822	// TransitionRoutes defined in the page with intent specified. *
6823	// TransitionRoutes defined in the transition route groups with intent
6824	// specified. * TransitionRoutes defined in flow with intent specified.
6825	// * TransitionRoutes defined in the transition route groups with intent
6826	// specified. * TransitionRoutes defined in the page with only condition
6827	// specified. * TransitionRoutes defined in the transition route groups
6828	// with only condition specified.
6829	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
6830
6831	// ServerResponse contains the HTTP response code and headers from the
6832	// server.
6833	googleapi.ServerResponse `json:"-"`
6834
6835	// ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") to include
6844	// in API requests with the JSON null value. By default, fields with
6845	// empty values are omitted from API requests. However, any field with
6846	// an 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 *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
6853	type NoMethod GoogleCloudDialogflowCxV3beta1Page
6854	raw := NoMethod(*s)
6855	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6856}
6857
6858// GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information
6859// communicated to and from the webhook.
6860type GoogleCloudDialogflowCxV3beta1PageInfo struct {
6861	// CurrentPage: Always present for WebhookRequest. Ignored for
6862	// WebhookResponse. The unique identifier of the current page. Format:
6863	// `projects//locations//agents//flows//pages/`.
6864	CurrentPage string `json:"currentPage,omitempty"`
6865
6866	// FormInfo: Optional for both WebhookRequest and WebhookResponse.
6867	// Information about the form.
6868	FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
6869
6870	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
6871	// unconditionally include in API requests. By default, fields with
6872	// empty values are omitted from API requests. However, any non-pointer,
6873	// non-interface field appearing in ForceSendFields will be sent to the
6874	// server regardless of whether the field is empty or not. This may be
6875	// used to include empty fields in Patch requests.
6876	ForceSendFields []string `json:"-"`
6877
6878	// NullFields is a list of field names (e.g. "CurrentPage") to include
6879	// in API requests with the JSON null value. By default, fields with
6880	// empty values are omitted from API requests. However, any field with
6881	// an empty value appearing in NullFields will be sent to the server as
6882	// null. It is an error if a field in this list has a non-empty value.
6883	// This may be used to include null fields in Patch requests.
6884	NullFields []string `json:"-"`
6885}
6886
6887func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
6888	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
6889	raw := NoMethod(*s)
6890	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6891}
6892
6893// GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form
6894// information.
6895type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
6896	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse.
6897	// The parameters contained in the form. Note that the webhook cannot
6898	// add or remove any form parameter.
6899	ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
6900
6901	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
6902	// unconditionally include in API requests. By default, fields with
6903	// empty values are omitted from API requests. However, any non-pointer,
6904	// non-interface field appearing in ForceSendFields will be sent to the
6905	// server regardless of whether the field is empty or not. This may be
6906	// used to include empty fields in Patch requests.
6907	ForceSendFields []string `json:"-"`
6908
6909	// NullFields is a list of field names (e.g. "ParameterInfo") to include
6910	// in API requests with the JSON null value. By default, fields with
6911	// empty values are omitted from API requests. However, any field with
6912	// an empty value appearing in NullFields will be sent to the server as
6913	// null. It is an error if a field in this list has a non-empty value.
6914	// This may be used to include null fields in Patch requests.
6915	NullFields []string `json:"-"`
6916}
6917
6918func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
6919	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
6920	raw := NoMethod(*s)
6921	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6922}
6923
6924// GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo:
6925// Represents parameter information.
6926type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
6927	// DisplayName: Always present for WebhookRequest. Required for
6928	// WebhookResponse. The human-readable name of the parameter, unique
6929	// within the form. This field cannot be modified by the webhook.
6930	DisplayName string `json:"displayName,omitempty"`
6931
6932	// JustCollected: Optional for WebhookRequest. Ignored for
6933	// WebhookResponse. Indicates if the parameter value was just collected
6934	// on the last conversation turn.
6935	JustCollected bool `json:"justCollected,omitempty"`
6936
6937	// Required: Optional for both WebhookRequest and WebhookResponse.
6938	// Indicates whether the parameter is required. Optional parameters will
6939	// not trigger prompts; however, they are filled if the user specifies
6940	// them. Required parameters must be filled before form filling
6941	// concludes.
6942	Required bool `json:"required,omitempty"`
6943
6944	// State: Always present for WebhookRequest. Required for
6945	// WebhookResponse. The state of the parameter. This field can be set to
6946	// INVALID by the webhook to invalidate the parameter; other values set
6947	// by the webhook will be ignored.
6948	//
6949	// Possible values:
6950	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be
6951	// never used.
6952	//   "EMPTY" - Indicates that the parameter does not have a value.
6953	//   "INVALID" - Indicates that the parameter value is invalid. This
6954	// field can be used by the webhook to invalidate the parameter and ask
6955	// the server to collect it from the user again.
6956	//   "FILLED" - Indicates that the parameter has a value.
6957	State string `json:"state,omitempty"`
6958
6959	// Value: Optional for both WebhookRequest and WebhookResponse. The
6960	// value of the parameter. This field can be set by the webhook to
6961	// change the parameter value.
6962	Value interface{} `json:"value,omitempty"`
6963
6964	// ForceSendFields is a list of field names (e.g. "DisplayName") to
6965	// unconditionally include in API requests. By default, fields with
6966	// empty values are omitted from API requests. However, any non-pointer,
6967	// non-interface field appearing in ForceSendFields will be sent to the
6968	// server regardless of whether the field is empty or not. This may be
6969	// used to include empty fields in Patch requests.
6970	ForceSendFields []string `json:"-"`
6971
6972	// NullFields is a list of field names (e.g. "DisplayName") to include
6973	// in API requests with the JSON null value. By default, fields with
6974	// empty values are omitted from API requests. However, any field with
6975	// an empty value appearing in NullFields will be sent to the server as
6976	// null. It is an error if a field in this list has a non-empty value.
6977	// This may be used to include null fields in Patch requests.
6978	NullFields []string `json:"-"`
6979}
6980
6981func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
6982	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
6983	raw := NoMethod(*s)
6984	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6985}
6986
6987// GoogleCloudDialogflowCxV3beta1QueryInput: Represents the query input.
6988// It can contain one of: 1. A conversational query in the form of text.
6989// 2. An intent query that specifies which intent to trigger. 3. Natural
6990// language speech audio to be processed. 4. An event to be triggered.
6991type GoogleCloudDialogflowCxV3beta1QueryInput struct {
6992	// Audio: The natural language speech audio to be processed.
6993	Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
6994
6995	// Dtmf: The DTMF event to be handled.
6996	Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
6997
6998	// Event: The event to be triggered.
6999	Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
7000
7001	// Intent: The intent to be triggered.
7002	Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
7003
7004	// LanguageCode: Required. The language of the input. See Language
7005	// Support
7006	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
7007	// a list of the currently supported language codes. Note that queries
7008	// in the same session do not necessarily need to specify the same
7009	// language.
7010	LanguageCode string `json:"languageCode,omitempty"`
7011
7012	// Text: The natural language text to be processed.
7013	Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
7014
7015	// ForceSendFields is a list of field names (e.g. "Audio") to
7016	// unconditionally include in API requests. By default, fields with
7017	// empty values are omitted from API requests. However, any non-pointer,
7018	// non-interface field appearing in ForceSendFields will be sent to the
7019	// server regardless of whether the field is empty or not. This may be
7020	// used to include empty fields in Patch requests.
7021	ForceSendFields []string `json:"-"`
7022
7023	// NullFields is a list of field names (e.g. "Audio") to include in API
7024	// requests with the JSON null value. By default, fields with empty
7025	// values are omitted from API requests. However, any field with an
7026	// empty value appearing in NullFields will be sent to the server as
7027	// null. It is an error if a field in this list has a non-empty value.
7028	// This may be used to include null fields in Patch requests.
7029	NullFields []string `json:"-"`
7030}
7031
7032func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
7033	type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
7034	raw := NoMethod(*s)
7035	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7036}
7037
7038// GoogleCloudDialogflowCxV3beta1QueryParameters: Represents the
7039// parameters of a conversational query.
7040type GoogleCloudDialogflowCxV3beta1QueryParameters struct {
7041	// AnalyzeQueryTextSentiment: Configures whether sentiment analysis
7042	// should be performed. If not provided, sentiment analysis is not
7043	// performed.
7044	AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
7045
7046	// DisableWebhook: Whether to disable webhook calls for this request.
7047	DisableWebhook bool `json:"disableWebhook,omitempty"`
7048
7049	// GeoLocation: The geo location of this conversational query.
7050	GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
7051
7052	// Parameters: Additional parameters to be put into session parameters.
7053	// To remove a parameter from the session, clients should explicitly set
7054	// the parameter value to null. Depending on your protocol or client
7055	// library language, this is a map, associative array, symbol table,
7056	// dictionary, or JSON object composed of a collection of (MapKey,
7057	// MapValue) pairs: - MapKey type: string - MapKey value: parameter name
7058	// - MapValue type: - If parameter's entity type is a composite entity:
7059	// map - Else: depending on parameter value type, could be one of
7060	// string, number, boolean, null, list or map - MapValue value: - If
7061	// parameter's entity type is a composite entity: map from composite
7062	// entity property names to property values - Else: parameter value
7063	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
7064
7065	// Payload: This field can be used to pass custom data into the webhook
7066	// associated with the agent. Arbitrary JSON objects are supported.
7067	Payload googleapi.RawMessage `json:"payload,omitempty"`
7068
7069	// SessionEntityTypes: Additional session entity types to replace or
7070	// extend developer entity types with. The entity synonyms apply to all
7071	// languages and persist for the session of this query.
7072	SessionEntityTypes []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
7073
7074	// TimeZone: The time zone of this conversational query from the time
7075	// zone database (https://www.iana.org/time-zones), e.g.,
7076	// America/New_York, Europe/Paris. If not provided, the time zone
7077	// specified in the agent is used.
7078	TimeZone string `json:"timeZone,omitempty"`
7079
7080	// WebhookHeaders: This field can be used to pass HTTP headers for a
7081	// webhook call. These headers will be sent to webhook along with the
7082	// headers that have been configured through Dialogflow web console. The
7083	// headers defined within this field will overwrite the headers
7084	// configured through Dialogflow console if there is a conflict. Header
7085	// names are case-insensitive. Google's specified headers are not
7086	// allowed. Including: "Host", "Content-Length", "Connection", "From",
7087	// "User-Agent", "Accept-Encoding", "If-Modified-Since",
7088	// "If-None-Match", "X-Forwarded-For", etc.
7089	WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
7090
7091	// ForceSendFields is a list of field names (e.g.
7092	// "AnalyzeQueryTextSentiment") to unconditionally include in API
7093	// requests. By default, fields with empty values are omitted from API
7094	// requests. However, any non-pointer, non-interface field appearing in
7095	// ForceSendFields will be sent to the server regardless of whether the
7096	// field is empty or not. This may be used to include empty fields in
7097	// Patch requests.
7098	ForceSendFields []string `json:"-"`
7099
7100	// NullFields is a list of field names (e.g.
7101	// "AnalyzeQueryTextSentiment") to include in API requests with the JSON
7102	// null value. By default, fields with empty values are omitted from API
7103	// requests. However, any field with an empty value appearing in
7104	// NullFields will be sent to the server as null. It is an error if a
7105	// field in this list has a non-empty value. This may be used to include
7106	// null fields in Patch requests.
7107	NullFields []string `json:"-"`
7108}
7109
7110func (s *GoogleCloudDialogflowCxV3beta1QueryParameters) MarshalJSON() ([]byte, error) {
7111	type NoMethod GoogleCloudDialogflowCxV3beta1QueryParameters
7112	raw := NoMethod(*s)
7113	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7114}
7115
7116// GoogleCloudDialogflowCxV3beta1QueryResult: Represents the result of a
7117// conversational query.
7118type GoogleCloudDialogflowCxV3beta1QueryResult struct {
7119	// CurrentPage: The current Page. Some, not all fields are filled in
7120	// this message, including but not limited to `name` and `display_name`.
7121	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
7122
7123	// DiagnosticInfo: The free-form diagnostic info. For example, this
7124	// field could contain webhook call latency. The string keys of the
7125	// Struct's fields map can change without notice.
7126	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
7127
7128	// Intent: The Intent that matched the conversational query. Some, not
7129	// all fields are filled in this message, including but not limited to:
7130	// `name` and `display_name`. This field is deprecated, please use
7131	// QueryResult.match instead.
7132	Intent *GoogleCloudDialogflowCxV3beta1Intent `json:"intent,omitempty"`
7133
7134	// IntentDetectionConfidence: The intent detection confidence. Values
7135	// range from 0.0 (completely uncertain) to 1.0 (completely certain).
7136	// This value is for informational purpose only and is only used to help
7137	// match the best intent within the classification threshold. This value
7138	// may change for the same end-user expression at any time due to a
7139	// model retraining or change in implementation. This field is
7140	// deprecated, please use QueryResult.match instead.
7141	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
7142
7143	// LanguageCode: The language that was triggered during intent
7144	// detection. See Language Support
7145	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for
7146	// a list of the currently supported language codes.
7147	LanguageCode string `json:"languageCode,omitempty"`
7148
7149	// Match: Intent match result, could be an intent or an event.
7150	Match *GoogleCloudDialogflowCxV3beta1Match `json:"match,omitempty"`
7151
7152	// Parameters: The collected session parameters. Depending on your
7153	// protocol or client library language, this is a map, associative
7154	// array, symbol table, dictionary, or JSON object composed of a
7155	// collection of (MapKey, MapValue) pairs: - MapKey type: string -
7156	// MapKey value: parameter name - MapValue type: - If parameter's entity
7157	// type is a composite entity: map - Else: depending on parameter value
7158	// type, could be one of string, number, boolean, null, list or map -
7159	// MapValue value: - If parameter's entity type is a composite entity:
7160	// map from composite entity property names to property values - Else:
7161	// parameter value
7162	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
7163
7164	// ResponseMessages: The list of rich messages returned to the client.
7165	// Responses vary from simple text messages to more sophisticated,
7166	// structured payloads used to drive complex logic.
7167	ResponseMessages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"responseMessages,omitempty"`
7168
7169	// SentimentAnalysisResult: The sentiment analyss result, which depends
7170	// on `analyze_query_text_sentiment`, specified in the request.
7171	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
7172
7173	// Text: If natural language text was provided as input, this field will
7174	// contain a copy of the text.
7175	Text string `json:"text,omitempty"`
7176
7177	// Transcript: If natural language speech audio was provided as input,
7178	// this field will contain the transcript for the audio.
7179	Transcript string `json:"transcript,omitempty"`
7180
7181	// TriggerEvent: If an event was provided as input, this field will
7182	// contain the name of the event.
7183	TriggerEvent string `json:"triggerEvent,omitempty"`
7184
7185	// TriggerIntent: If an intent was provided as input, this field will
7186	// contain a copy of the intent identifier. Format:
7187	// `projects//locations//agents//intents/`.
7188	TriggerIntent string `json:"triggerIntent,omitempty"`
7189
7190	// WebhookPayloads: The list of webhook payload in
7191	// WebhookResponse.payload, in the order of call sequence. If some
7192	// webhook call fails or doesn't return any payload, an empty `Struct`
7193	// would be used instead.
7194	WebhookPayloads []googleapi.RawMessage `json:"webhookPayloads,omitempty"`
7195
7196	// WebhookStatuses: The list of webhook call status in the order of call
7197	// sequence.
7198	WebhookStatuses []*GoogleRpcStatus `json:"webhookStatuses,omitempty"`
7199
7200	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
7201	// unconditionally include in API requests. By default, fields with
7202	// empty values are omitted from API requests. However, any non-pointer,
7203	// non-interface field appearing in ForceSendFields will be sent to the
7204	// server regardless of whether the field is empty or not. This may be
7205	// used to include empty fields in Patch requests.
7206	ForceSendFields []string `json:"-"`
7207
7208	// NullFields is a list of field names (e.g. "CurrentPage") to include
7209	// in API requests with the JSON null value. By default, fields with
7210	// empty values are omitted from API requests. However, any field with
7211	// an empty value appearing in NullFields will be sent to the server as
7212	// null. It is an error if a field in this list has a non-empty value.
7213	// This may be used to include null fields in Patch requests.
7214	NullFields []string `json:"-"`
7215}
7216
7217func (s *GoogleCloudDialogflowCxV3beta1QueryResult) MarshalJSON() ([]byte, error) {
7218	type NoMethod GoogleCloudDialogflowCxV3beta1QueryResult
7219	raw := NoMethod(*s)
7220	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7221}
7222
7223func (s *GoogleCloudDialogflowCxV3beta1QueryResult) UnmarshalJSON(data []byte) error {
7224	type NoMethod GoogleCloudDialogflowCxV3beta1QueryResult
7225	var s1 struct {
7226		IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
7227		*NoMethod
7228	}
7229	s1.NoMethod = (*NoMethod)(s)
7230	if err := json.Unmarshal(data, &s1); err != nil {
7231		return err
7232	}
7233	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
7234	return nil
7235}
7236
7237// GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata:
7238// Metadata for ReloadDocument operation.
7239type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
7240	// GenericMetadata: The generic information of the operation.
7241	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
7242
7243	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
7244	// unconditionally include in API requests. By default, fields with
7245	// empty values are omitted from API requests. However, any non-pointer,
7246	// non-interface field appearing in ForceSendFields will be sent to the
7247	// server regardless of whether the field is empty or not. This may be
7248	// used to include empty fields in Patch requests.
7249	ForceSendFields []string `json:"-"`
7250
7251	// NullFields is a list of field names (e.g. "GenericMetadata") to
7252	// include in API requests with the JSON null value. By default, fields
7253	// with empty values are omitted from API requests. However, any field
7254	// with an empty value appearing in NullFields will be sent to the
7255	// server as null. It is an error if a field in this list has a
7256	// non-empty value. This may be used to include null fields in Patch
7257	// requests.
7258	NullFields []string `json:"-"`
7259}
7260
7261func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
7262	type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
7263	raw := NoMethod(*s)
7264	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7265}
7266
7267// GoogleCloudDialogflowCxV3beta1ResourceName: Resource name and display
7268// name.
7269type GoogleCloudDialogflowCxV3beta1ResourceName struct {
7270	// DisplayName: Display name.
7271	DisplayName string `json:"displayName,omitempty"`
7272
7273	// Name: Name.
7274	Name string `json:"name,omitempty"`
7275
7276	// ForceSendFields is a list of field names (e.g. "DisplayName") to
7277	// unconditionally include in API requests. By default, fields with
7278	// empty values are omitted from API requests. However, any non-pointer,
7279	// non-interface field appearing in ForceSendFields will be sent to the
7280	// server regardless of whether the field is empty or not. This may be
7281	// used to include empty fields in Patch requests.
7282	ForceSendFields []string `json:"-"`
7283
7284	// NullFields is a list of field names (e.g. "DisplayName") to include
7285	// in API requests with the JSON null value. By default, fields with
7286	// empty values are omitted from API requests. However, any field with
7287	// an empty value appearing in NullFields will be sent to the server as
7288	// null. It is an error if a field in this list has a non-empty value.
7289	// This may be used to include null fields in Patch requests.
7290	NullFields []string `json:"-"`
7291}
7292
7293func (s *GoogleCloudDialogflowCxV3beta1ResourceName) MarshalJSON() ([]byte, error) {
7294	type NoMethod GoogleCloudDialogflowCxV3beta1ResourceName
7295	raw := NoMethod(*s)
7296	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7297}
7298
7299// GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response
7300// message that can be returned by a conversational agent. Response
7301// messages are also used for output audio synthesis. The approach is as
7302// follows: * If at least one OutputAudioText response is present, then
7303// all OutputAudioText responses are linearly concatenated, and the
7304// result is used for output audio synthesis. * If the OutputAudioText
7305// responses are a mixture of text and SSML, then the concatenated
7306// result is treated as SSML; otherwise, the result is treated as either
7307// text or SSML as appropriate. The agent designer should ideally use
7308// either text or SSML consistently throughout the bot design. *
7309// Otherwise, all Text responses are linearly concatenated, and the
7310// result is used for output audio synthesis. This approach allows for
7311// more sophisticated user experience scenarios, where the text
7312// displayed to the user may differ from what is heard.
7313type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
7314	// ConversationSuccess: Indicates that the conversation succeeded.
7315	ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
7316
7317	// EndInteraction: Output only. A signal that indicates the interaction
7318	// with the Dialogflow agent has ended. This message is generated by
7319	// Dialogflow only when the conversation reaches `END_SESSION` page. It
7320	// is not supposed to be defined by the user. It's guaranteed that there
7321	// is at most one such message in each response.
7322	EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
7323
7324	// LiveAgentHandoff: Hands off conversation to a human agent.
7325	LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
7326
7327	// MixedAudio: Output only. An audio response message composed of both
7328	// the synthesized Dialogflow agent responses and responses defined via
7329	// play_audio. This message is generated by Dialogflow only and not
7330	// supposed to be defined by the user.
7331	MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
7332
7333	// OutputAudioText: A text or ssml response that is preferentially used
7334	// for TTS output audio synthesis, as described in the comment on the
7335	// ResponseMessage message.
7336	OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
7337
7338	// Payload: Returns a response containing a custom, platform-specific
7339	// payload.
7340	Payload googleapi.RawMessage `json:"payload,omitempty"`
7341
7342	// PlayAudio: Signal that the client should play an audio clip hosted at
7343	// a client-specific URI. Dialogflow uses this to construct mixed_audio.
7344	// However, Dialogflow itself does not try to read or process the URI in
7345	// any way.
7346	PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
7347
7348	// Text: Returns a text response.
7349	Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
7350
7351	// ForceSendFields is a list of field names (e.g. "ConversationSuccess")
7352	// to unconditionally include in API requests. By default, fields with
7353	// empty values are omitted from API requests. However, any non-pointer,
7354	// non-interface field appearing in ForceSendFields will be sent to the
7355	// server regardless of whether the field is empty or not. This may be
7356	// used to include empty fields in Patch requests.
7357	ForceSendFields []string `json:"-"`
7358
7359	// NullFields is a list of field names (e.g. "ConversationSuccess") to
7360	// include in API requests with the JSON null value. By default, fields
7361	// with empty values are omitted from API requests. However, any field
7362	// with an empty value appearing in NullFields will be sent to the
7363	// server as null. It is an error if a field in this list has a
7364	// non-empty value. This may be used to include null fields in Patch
7365	// requests.
7366	NullFields []string `json:"-"`
7367}
7368
7369func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
7370	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
7371	raw := NoMethod(*s)
7372	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7373}
7374
7375// GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess:
7376// Indicates that the conversation succeeded, i.e., the bot handled the
7377// issue that the customer talked to it about. Dialogflow only uses this
7378// to determine which conversations should be counted as successful and
7379// doesn't process the metadata in this message in any way. Note that
7380// Dialogflow also considers conversations that get to the conversation
7381// end page as successful even if they don't return ConversationSuccess.
7382// You may set this, for example: * In the entry_fulfillment of a Page
7383// if entering the page indicates that the conversation succeeded. * In
7384// a webhook response when you determine that you handled the customer
7385// issue.
7386type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
7387	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on
7388	// this.
7389	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
7390
7391	// ForceSendFields is a list of field names (e.g. "Metadata") to
7392	// unconditionally include in API requests. By default, fields with
7393	// empty values are omitted from API requests. However, any non-pointer,
7394	// non-interface field appearing in ForceSendFields will be sent to the
7395	// server regardless of whether the field is empty or not. This may be
7396	// used to include empty fields in Patch requests.
7397	ForceSendFields []string `json:"-"`
7398
7399	// NullFields is a list of field names (e.g. "Metadata") to include in
7400	// API requests with the JSON null value. By default, fields with empty
7401	// values are omitted from API requests. However, any field with an
7402	// empty value appearing in NullFields will be sent to the server as
7403	// null. It is an error if a field in this list has a non-empty value.
7404	// This may be used to include null fields in Patch requests.
7405	NullFields []string `json:"-"`
7406}
7407
7408func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
7409	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
7410	raw := NoMethod(*s)
7411	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7412}
7413
7414// GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction:
7415// Indicates that interaction with the Dialogflow agent has ended. This
7416// message is generated by Dialogflow only and not supposed to be
7417// defined by the user.
7418type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
7419}
7420
7421// GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff:
7422// Indicates that the conversation should be handed off to a live agent.
7423// Dialogflow only uses this to determine which conversations were
7424// handed off to a human agent for measurement purposes. What else to do
7425// with this signal is up to you and your handoff procedures. You may
7426// set this, for example: * In the entry_fulfillment of a Page if
7427// entering the page indicates something went extremely wrong in the
7428// conversation. * In a webhook response when you determine that the
7429// customer issue can only be handled by a human.
7430type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
7431	// Metadata: Custom metadata for your handoff procedure. Dialogflow
7432	// doesn't impose any structure on this.
7433	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
7434
7435	// ForceSendFields is a list of field names (e.g. "Metadata") to
7436	// unconditionally include in API requests. By default, fields with
7437	// empty values are omitted from API requests. However, any non-pointer,
7438	// non-interface field appearing in ForceSendFields will be sent to the
7439	// server regardless of whether the field is empty or not. This may be
7440	// used to include empty fields in Patch requests.
7441	ForceSendFields []string `json:"-"`
7442
7443	// NullFields is a list of field names (e.g. "Metadata") to include in
7444	// API requests with the JSON null value. By default, fields with empty
7445	// values are omitted from API requests. However, any field with an
7446	// empty value appearing in NullFields will be sent to the server as
7447	// null. It is an error if a field in this list has a non-empty value.
7448	// This may be used to include null fields in Patch requests.
7449	NullFields []string `json:"-"`
7450}
7451
7452func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
7453	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
7454	raw := NoMethod(*s)
7455	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7456}
7457
7458// GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents
7459// an audio message that is composed of both segments synthesized from
7460// the Dialogflow agent prompts and ones hosted externally at the
7461// specified URIs. The external URIs are specified via play_audio. This
7462// message is generated by Dialogflow only and not supposed to be
7463// defined by the user.
7464type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
7465	// Segments: Segments this audio response is composed of.
7466	Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
7467
7468	// ForceSendFields is a list of field names (e.g. "Segments") to
7469	// unconditionally include in API requests. By default, fields with
7470	// empty values are omitted from API requests. However, any non-pointer,
7471	// non-interface field appearing in ForceSendFields will be sent to the
7472	// server regardless of whether the field is empty or not. This may be
7473	// used to include empty fields in Patch requests.
7474	ForceSendFields []string `json:"-"`
7475
7476	// NullFields is a list of field names (e.g. "Segments") to include in
7477	// API requests with the JSON null value. By default, fields with empty
7478	// values are omitted from API requests. However, any field with an
7479	// empty value appearing in NullFields will be sent to the server as
7480	// null. It is an error if a field in this list has a non-empty value.
7481	// This may be used to include null fields in Patch requests.
7482	NullFields []string `json:"-"`
7483}
7484
7485func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
7486	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
7487	raw := NoMethod(*s)
7488	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7489}
7490
7491// GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment:
7492// Represents one segment of audio.
7493type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
7494	// AllowPlaybackInterruption: Output only. Whether the playback of this
7495	// segment can be interrupted by the end user's speech and the client
7496	// should then start the next Dialogflow request.
7497	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
7498
7499	// Audio: Raw audio synthesized from the Dialogflow agent's response
7500	// using the output config specified in the request.
7501	Audio string `json:"audio,omitempty"`
7502
7503	// Uri: Client-specific URI that points to an audio clip accessible to
7504	// the client. Dialogflow does not impose any validation on it.
7505	Uri string `json:"uri,omitempty"`
7506
7507	// ForceSendFields is a list of field names (e.g.
7508	// "AllowPlaybackInterruption") to unconditionally include in API
7509	// requests. By default, fields with empty values are omitted from API
7510	// requests. However, any non-pointer, non-interface field appearing in
7511	// ForceSendFields will be sent to the server regardless of whether the
7512	// field is empty or not. This may be used to include empty fields in
7513	// Patch requests.
7514	ForceSendFields []string `json:"-"`
7515
7516	// NullFields is a list of field names (e.g.
7517	// "AllowPlaybackInterruption") to include in API requests with the JSON
7518	// null value. By default, fields with empty values are omitted from API
7519	// requests. However, any field with an empty value appearing in
7520	// NullFields will be sent to the server as null. It is an error if a
7521	// field in this list has a non-empty value. This may be used to include
7522	// null fields in Patch requests.
7523	NullFields []string `json:"-"`
7524}
7525
7526func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
7527	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
7528	raw := NoMethod(*s)
7529	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7530}
7531
7532// GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text
7533// or ssml response that is preferentially used for TTS output audio
7534// synthesis, as described in the comment on the ResponseMessage
7535// message.
7536type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
7537	// AllowPlaybackInterruption: Output only. Whether the playback of this
7538	// message can be interrupted by the end user's speech and the client
7539	// can then starts the next Dialogflow request.
7540	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
7541
7542	// Ssml: The SSML text to be synthesized. For more information, see SSML
7543	// (/speech/text-to-speech/docs/ssml).
7544	Ssml string `json:"ssml,omitempty"`
7545
7546	// Text: The raw text to be synthesized.
7547	Text string `json:"text,omitempty"`
7548
7549	// ForceSendFields is a list of field names (e.g.
7550	// "AllowPlaybackInterruption") to unconditionally include in API
7551	// requests. By default, fields with empty values are omitted from API
7552	// requests. However, any non-pointer, non-interface field appearing in
7553	// ForceSendFields will be sent to the server regardless of whether the
7554	// field is empty or not. This may be used to include empty fields in
7555	// Patch requests.
7556	ForceSendFields []string `json:"-"`
7557
7558	// NullFields is a list of field names (e.g.
7559	// "AllowPlaybackInterruption") to include in API requests with the JSON
7560	// null value. By default, fields with empty values are omitted from API
7561	// requests. However, any field with an empty value appearing in
7562	// NullFields will be sent to the server as null. It is an error if a
7563	// field in this list has a non-empty value. This may be used to include
7564	// null fields in Patch requests.
7565	NullFields []string `json:"-"`
7566}
7567
7568func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
7569	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
7570	raw := NoMethod(*s)
7571	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7572}
7573
7574// GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an
7575// audio clip to be played by the client as part of the response.
7576type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
7577	// AllowPlaybackInterruption: Output only. Whether the playback of this
7578	// message can be interrupted by the end user's speech and the client
7579	// can then starts the next Dialogflow request.
7580	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
7581
7582	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose
7583	// any validation on this value. It is specific to the client that reads
7584	// it.
7585	AudioUri string `json:"audioUri,omitempty"`
7586
7587	// ForceSendFields is a list of field names (e.g.
7588	// "AllowPlaybackInterruption") to unconditionally include in API
7589	// requests. By default, fields with empty values are omitted from API
7590	// requests. However, any non-pointer, non-interface field appearing in
7591	// ForceSendFields will be sent to the server regardless of whether the
7592	// field is empty or not. This may be used to include empty fields in
7593	// Patch requests.
7594	ForceSendFields []string `json:"-"`
7595
7596	// NullFields is a list of field names (e.g.
7597	// "AllowPlaybackInterruption") to include in API requests with the JSON
7598	// null value. By default, fields with empty values are omitted from API
7599	// requests. However, any field with an empty value appearing in
7600	// NullFields will be sent to the server as null. It is an error if a
7601	// field in this list has a non-empty value. This may be used to include
7602	// null fields in Patch requests.
7603	NullFields []string `json:"-"`
7604}
7605
7606func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
7607	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
7608	raw := NoMethod(*s)
7609	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7610}
7611
7612// GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response
7613// message.
7614type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
7615	// AllowPlaybackInterruption: Output only. Whether the playback of this
7616	// message can be interrupted by the end user's speech and the client
7617	// can then starts the next Dialogflow request.
7618	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
7619
7620	// Text: Required. A collection of text responses.
7621	Text []string `json:"text,omitempty"`
7622
7623	// ForceSendFields is a list of field names (e.g.
7624	// "AllowPlaybackInterruption") to unconditionally include in API
7625	// requests. By default, fields with empty values are omitted from API
7626	// requests. However, any non-pointer, non-interface field appearing in
7627	// ForceSendFields will be sent to the server regardless of whether the
7628	// field is empty or not. This may be used to include empty fields in
7629	// Patch requests.
7630	ForceSendFields []string `json:"-"`
7631
7632	// NullFields is a list of field names (e.g.
7633	// "AllowPlaybackInterruption") to include in API requests with the JSON
7634	// null value. By default, fields with empty values are omitted from API
7635	// requests. However, any field with an empty value appearing in
7636	// NullFields will be sent to the server as null. It is an error if a
7637	// field in this list has a non-empty value. This may be used to include
7638	// null fields in Patch requests.
7639	NullFields []string `json:"-"`
7640}
7641
7642func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
7643	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
7644	raw := NoMethod(*s)
7645	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7646}
7647
7648// GoogleCloudDialogflowCxV3beta1RestoreAgentRequest: The request
7649// message for Agents.RestoreAgent.
7650type GoogleCloudDialogflowCxV3beta1RestoreAgentRequest struct {
7651	// AgentContent: Uncompressed raw byte content for agent.
7652	AgentContent string `json:"agentContent,omitempty"`
7653
7654	// AgentUri: The Google Cloud Storage
7655	// (https://cloud.google.com/storage/docs/) URI to restore agent from.
7656	// The format of this URI must be `gs:///`.
7657	AgentUri string `json:"agentUri,omitempty"`
7658
7659	// RestoreOption: Agent restore mode. If not specified, `KEEP` is
7660	// assumed.
7661	//
7662	// Possible values:
7663	//   "RESTORE_OPTION_UNSPECIFIED" - Unspecified. Treated as KEEP.
7664	//   "KEEP" - Always respect the settings from the exported agent file.
7665	// It may cause a restoration failure if some settings (e.g. model type)
7666	// are not supported in the target agent.
7667	//   "FALLBACK" - Fallback to default settings if some settings are not
7668	// supported in the target agent.
7669	RestoreOption string `json:"restoreOption,omitempty"`
7670
7671	// ForceSendFields is a list of field names (e.g. "AgentContent") to
7672	// unconditionally include in API requests. By default, fields with
7673	// empty values are omitted from API requests. However, any non-pointer,
7674	// non-interface field appearing in ForceSendFields will be sent to the
7675	// server regardless of whether the field is empty or not. This may be
7676	// used to include empty fields in Patch requests.
7677	ForceSendFields []string `json:"-"`
7678
7679	// NullFields is a list of field names (e.g. "AgentContent") to include
7680	// in API requests with the JSON null value. By default, fields with
7681	// empty values are omitted from API requests. However, any field with
7682	// an empty value appearing in NullFields will be sent to the server as
7683	// null. It is an error if a field in this list has a non-empty value.
7684	// This may be used to include null fields in Patch requests.
7685	NullFields []string `json:"-"`
7686}
7687
7688func (s *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest) MarshalJSON() ([]byte, error) {
7689	type NoMethod GoogleCloudDialogflowCxV3beta1RestoreAgentRequest
7690	raw := NoMethod(*s)
7691	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7692}
7693
7694// GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata: Metadata returned
7695// for the TestCases.RunTestCase long running operation.
7696type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
7697}
7698
7699// GoogleCloudDialogflowCxV3beta1RunTestCaseRequest: The request message
7700// for TestCases.RunTestCase.
7701type GoogleCloudDialogflowCxV3beta1RunTestCaseRequest struct {
7702	// Environment: Optional. Environment name. If not set, draft
7703	// environment is assumed. Format:
7704	// `projects//locations//agents//environments/`.
7705	Environment string `json:"environment,omitempty"`
7706
7707	// ForceSendFields is a list of field names (e.g. "Environment") to
7708	// unconditionally include in API requests. By default, fields with
7709	// empty values are omitted from API requests. However, any non-pointer,
7710	// non-interface field appearing in ForceSendFields will be sent to the
7711	// server regardless of whether the field is empty or not. This may be
7712	// used to include empty fields in Patch requests.
7713	ForceSendFields []string `json:"-"`
7714
7715	// NullFields is a list of field names (e.g. "Environment") to include
7716	// in API requests with the JSON null value. By default, fields with
7717	// empty values are omitted from API requests. However, any field with
7718	// an empty value appearing in NullFields will be sent to the server as
7719	// null. It is an error if a field in this list has a non-empty value.
7720	// This may be used to include null fields in Patch requests.
7721	NullFields []string `json:"-"`
7722}
7723
7724func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest) MarshalJSON() ([]byte, error) {
7725	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseRequest
7726	raw := NoMethod(*s)
7727	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7728}
7729
7730// GoogleCloudDialogflowCxV3beta1RunTestCaseResponse: The response
7731// message for TestCases.RunTestCase.
7732type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
7733	// Result: The result.
7734	Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
7735
7736	// ForceSendFields is a list of field names (e.g. "Result") to
7737	// unconditionally include in API requests. By default, fields with
7738	// empty values are omitted from API requests. However, any non-pointer,
7739	// non-interface field appearing in ForceSendFields will be sent to the
7740	// server regardless of whether the field is empty or not. This may be
7741	// used to include empty fields in Patch requests.
7742	ForceSendFields []string `json:"-"`
7743
7744	// NullFields is a list of field names (e.g. "Result") to include in API
7745	// requests with the JSON null value. By default, fields with empty
7746	// values are omitted from API requests. However, any field with an
7747	// empty value appearing in NullFields will be sent to the server as
7748	// null. It is an error if a field in this list has a non-empty value.
7749	// This may be used to include null fields in Patch requests.
7750	NullFields []string `json:"-"`
7751}
7752
7753func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
7754	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
7755	raw := NoMethod(*s)
7756	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7757}
7758
7759// GoogleCloudDialogflowCxV3beta1SecuritySettings: Represents the
7760// settings related to security issues, such as data redaction and data
7761// retention. It may take hours for updates on the settings to propagate
7762// to all the related components and take effect.
7763type GoogleCloudDialogflowCxV3beta1SecuritySettings struct {
7764	// DisplayName: Required. The human-readable name of the security
7765	// settings, unique within the location.
7766	DisplayName string `json:"displayName,omitempty"`
7767
7768	// InspectTemplate: DLP inspect template name. Use this template to
7769	// define inspect base settings. If empty, we use the default DLP
7770	// inspect config. The template name will have one of the following
7771	// formats: `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
7772	// `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`
7773	InspectTemplate string `json:"inspectTemplate,omitempty"`
7774
7775	// Name: Required. Resource name of the settings. Format:
7776	// `projects//locations//securitySettings/`.
7777	Name string `json:"name,omitempty"`
7778
7779	// PurgeDataTypes: List of types of data to remove when retention
7780	// settings triggers purge.
7781	//
7782	// Possible values:
7783	//   "PURGE_DATA_TYPE_UNSPECIFIED" - Unspecified. Do not use.
7784	//   "DIALOGFLOW_HISTORY" - Dialogflow history. This does not include
7785	// Stackdriver log, which is owned by the user not Dialogflow.
7786	PurgeDataTypes []string `json:"purgeDataTypes,omitempty"`
7787
7788	// RedactionScope: Defines on what data we apply redaction. Note that we
7789	// don't redact data to which we don't have access, e.g., Stackdriver
7790	// logs.
7791	//
7792	// Possible values:
7793	//   "REDACTION_SCOPE_UNSPECIFIED" - Don't redact any kind of data.
7794	//   "REDACT_DISK_STORAGE" - On data to be written to disk or similar
7795	// devices that are capable of holding data even if power is
7796	// disconnected. This includes data that are temporarily saved on disk.
7797	RedactionScope string `json:"redactionScope,omitempty"`
7798
7799	// RedactionStrategy: Strategy that defines how we do redaction.
7800	//
7801	// Possible values:
7802	//   "REDACTION_STRATEGY_UNSPECIFIED" - Do not redact.
7803	//   "REDACT_WITH_SERVICE" - Call redaction service to clean up the data
7804	// to be persisted.
7805	RedactionStrategy string `json:"redactionStrategy,omitempty"`
7806
7807	// RetentionWindowDays: Retains the data for the specified number of
7808	// days. User must Set a value lower than Dialogflow's default 30d TTL.
7809	// Setting a value higher than that has no effect. A missing value or
7810	// setting to 0 also means we use Dialogflow's default TTL.
7811	RetentionWindowDays int64 `json:"retentionWindowDays,omitempty"`
7812
7813	// ServerResponse contains the HTTP response code and headers from the
7814	// server.
7815	googleapi.ServerResponse `json:"-"`
7816
7817	// ForceSendFields is a list of field names (e.g. "DisplayName") to
7818	// unconditionally include in API requests. By default, fields with
7819	// empty values are omitted from API requests. However, any non-pointer,
7820	// non-interface field appearing in ForceSendFields will be sent to the
7821	// server regardless of whether the field is empty or not. This may be
7822	// used to include empty fields in Patch requests.
7823	ForceSendFields []string `json:"-"`
7824
7825	// NullFields is a list of field names (e.g. "DisplayName") to include
7826	// in API requests with the JSON null value. By default, fields with
7827	// empty values are omitted from API requests. However, any field with
7828	// an empty value appearing in NullFields will be sent to the server as
7829	// null. It is an error if a field in this list has a non-empty value.
7830	// This may be used to include null fields in Patch requests.
7831	NullFields []string `json:"-"`
7832}
7833
7834func (s *GoogleCloudDialogflowCxV3beta1SecuritySettings) MarshalJSON() ([]byte, error) {
7835	type NoMethod GoogleCloudDialogflowCxV3beta1SecuritySettings
7836	raw := NoMethod(*s)
7837	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7838}
7839
7840// GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult: The result of
7841// sentiment analysis. Sentiment analysis inspects user input and
7842// identifies the prevailing subjective opinion, especially to determine
7843// a user's attitude as positive, negative, or neutral.
7844type GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult struct {
7845	// Magnitude: A non-negative number in the [0, +inf) range, which
7846	// represents the absolute magnitude of sentiment, regardless of score
7847	// (positive or negative).
7848	Magnitude float64 `json:"magnitude,omitempty"`
7849
7850	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
7851	// (positive sentiment).
7852	Score float64 `json:"score,omitempty"`
7853
7854	// ForceSendFields is a list of field names (e.g. "Magnitude") to
7855	// unconditionally include in API requests. By default, fields with
7856	// empty values are omitted from API requests. However, any non-pointer,
7857	// non-interface field appearing in ForceSendFields will be sent to the
7858	// server regardless of whether the field is empty or not. This may be
7859	// used to include empty fields in Patch requests.
7860	ForceSendFields []string `json:"-"`
7861
7862	// NullFields is a list of field names (e.g. "Magnitude") to include in
7863	// API requests with the JSON null value. By default, fields with empty
7864	// values are omitted from API requests. However, any field with an
7865	// empty value appearing in NullFields will be sent to the server as
7866	// null. It is an error if a field in this list has a non-empty value.
7867	// This may be used to include null fields in Patch requests.
7868	NullFields []string `json:"-"`
7869}
7870
7871func (s *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
7872	type NoMethod GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
7873	raw := NoMethod(*s)
7874	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7875}
7876
7877func (s *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult) UnmarshalJSON(data []byte) error {
7878	type NoMethod GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
7879	var s1 struct {
7880		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
7881		Score     gensupport.JSONFloat64 `json:"score"`
7882		*NoMethod
7883	}
7884	s1.NoMethod = (*NoMethod)(s)
7885	if err := json.Unmarshal(data, &s1); err != nil {
7886		return err
7887	}
7888	s.Magnitude = float64(s1.Magnitude)
7889	s.Score = float64(s1.Score)
7890	return nil
7891}
7892
7893// GoogleCloudDialogflowCxV3beta1SessionEntityType: Session entity types
7894// are referred to as **User** entity types and are entities that are
7895// built for an individual user such as favorites, preferences,
7896// playlists, and so on. You can redefine a session entity type at the
7897// session level to extend or replace a custom entity type at the user
7898// session level (we refer to the entity types defined at the agent
7899// level as "custom entity types"). Note: session entity types apply to
7900// all queries, regardless of the language. For more information about
7901// entity types, see the Dialogflow documentation
7902// (https://cloud.google.com/dialogflow/docs/entities-overview).
7903type GoogleCloudDialogflowCxV3beta1SessionEntityType struct {
7904	// Entities: Required. The collection of entities to override or
7905	// supplement the custom entity type.
7906	Entities []*GoogleCloudDialogflowCxV3beta1EntityTypeEntity `json:"entities,omitempty"`
7907
7908	// EntityOverrideMode: Required. Indicates whether the additional data
7909	// should override or supplement the custom entity type definition.
7910	//
7911	// Possible values:
7912	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value
7913	// should be never used.
7914	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session
7915	// entities overrides the collection of entities in the corresponding
7916	// custom entity type.
7917	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session
7918	// entities extends the collection of entities in the corresponding
7919	// custom entity type. Note: Even in this override mode calls to
7920	// `ListSessionEntityTypes`, `GetSessionEntityType`,
7921	// `CreateSessionEntityType` and `UpdateSessionEntityType` only return
7922	// the additional entities added in this session entity type. If you
7923	// want to get the supplemented list, please call
7924	// EntityTypes.GetEntityType on the custom entity type and merge.
7925	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
7926
7927	// Name: Required. The unique identifier of the session entity type.
7928	// Format: `projects//locations//agents//sessions//entityTypes/` or
7929	// `projects//locations//agents//environments//sessions//entityTypes/`.
7930	// If `Environment ID` is not specified, we assume default 'draft'
7931	// environment.
7932	Name string `json:"name,omitempty"`
7933
7934	// ServerResponse contains the HTTP response code and headers from the
7935	// server.
7936	googleapi.ServerResponse `json:"-"`
7937
7938	// ForceSendFields is a list of field names (e.g. "Entities") to
7939	// unconditionally include in API requests. By default, fields with
7940	// empty values are omitted from API requests. However, any non-pointer,
7941	// non-interface field appearing in ForceSendFields will be sent to the
7942	// server regardless of whether the field is empty or not. This may be
7943	// used to include empty fields in Patch requests.
7944	ForceSendFields []string `json:"-"`
7945
7946	// NullFields is a list of field names (e.g. "Entities") to include in
7947	// API requests with the JSON null value. By default, fields with empty
7948	// values are omitted from API requests. However, any field with an
7949	// empty value appearing in NullFields will be sent to the server as
7950	// null. It is an error if a field in this list has a non-empty value.
7951	// This may be used to include null fields in Patch requests.
7952	NullFields []string `json:"-"`
7953}
7954
7955func (s *GoogleCloudDialogflowCxV3beta1SessionEntityType) MarshalJSON() ([]byte, error) {
7956	type NoMethod GoogleCloudDialogflowCxV3beta1SessionEntityType
7957	raw := NoMethod(*s)
7958	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7959}
7960
7961// GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session
7962// information communicated to and from the webhook.
7963type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
7964	// Parameters: Optional for WebhookRequest. Optional for
7965	// WebhookResponse. All parameters collected from forms and intents
7966	// during the session. Parameters can be created, updated, or removed by
7967	// the webhook. To remove a parameter from the session, the webhook
7968	// should explicitly set the parameter value to null in WebhookResponse.
7969	// The map is keyed by parameters' display names.
7970	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
7971
7972	// Session: Always present for WebhookRequest. Ignored for
7973	// WebhookResponse. The unique identifier of the session. This field can
7974	// be used by the webhook to identify a session. Format:
7975	// `projects//locations//agents//sessions/` or
7976	// `projects//locations//agents//environments//sessions/` if environment
7977	// is specified.
7978	Session string `json:"session,omitempty"`
7979
7980	// ForceSendFields is a list of field names (e.g. "Parameters") to
7981	// unconditionally include in API requests. By default, fields with
7982	// empty values are omitted from API requests. However, any non-pointer,
7983	// non-interface field appearing in ForceSendFields will be sent to the
7984	// server regardless of whether the field is empty or not. This may be
7985	// used to include empty fields in Patch requests.
7986	ForceSendFields []string `json:"-"`
7987
7988	// NullFields is a list of field names (e.g. "Parameters") to include in
7989	// API requests with the JSON null value. By default, fields with empty
7990	// values are omitted from API requests. However, any field with an
7991	// empty value appearing in NullFields will be sent to the server as
7992	// null. It is an error if a field in this list has a non-empty value.
7993	// This may be used to include null fields in Patch requests.
7994	NullFields []string `json:"-"`
7995}
7996
7997func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
7998	type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
7999	raw := NoMethod(*s)
8000	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8001}
8002
8003// GoogleCloudDialogflowCxV3beta1SpeechToTextSettings: Settings related
8004// to speech recognition.
8005type GoogleCloudDialogflowCxV3beta1SpeechToTextSettings struct {
8006	// EnableSpeechAdaptation: Whether to use speech adaptation for speech
8007	// recognition.
8008	EnableSpeechAdaptation bool `json:"enableSpeechAdaptation,omitempty"`
8009
8010	// ForceSendFields is a list of field names (e.g.
8011	// "EnableSpeechAdaptation") to unconditionally include in API requests.
8012	// By default, fields with empty values are omitted from API requests.
8013	// However, any non-pointer, non-interface field appearing in
8014	// ForceSendFields will be sent to the server regardless of whether the
8015	// field is empty or not. This may be used to include empty fields in
8016	// Patch requests.
8017	ForceSendFields []string `json:"-"`
8018
8019	// NullFields is a list of field names (e.g. "EnableSpeechAdaptation")
8020	// to include in API requests with the JSON null value. By default,
8021	// fields with empty values are omitted from API requests. However, any
8022	// field with an empty value appearing in NullFields will be sent to the
8023	// server as null. It is an error if a field in this list has a
8024	// non-empty value. This may be used to include null fields in Patch
8025	// requests.
8026	NullFields []string `json:"-"`
8027}
8028
8029func (s *GoogleCloudDialogflowCxV3beta1SpeechToTextSettings) MarshalJSON() ([]byte, error) {
8030	type NoMethod GoogleCloudDialogflowCxV3beta1SpeechToTextSettings
8031	raw := NoMethod(*s)
8032	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8033}
8034
8035// GoogleCloudDialogflowCxV3beta1StartExperimentRequest: The request
8036// message for Experiments.StartExperiment.
8037type GoogleCloudDialogflowCxV3beta1StartExperimentRequest struct {
8038}
8039
8040// GoogleCloudDialogflowCxV3beta1StopExperimentRequest: The request
8041// message for Experiments.StopExperiment.
8042type GoogleCloudDialogflowCxV3beta1StopExperimentRequest struct {
8043}
8044
8045// GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig: Configuration
8046// of how speech should be synthesized.
8047type GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig struct {
8048	// EffectsProfileId: Optional. An identifier which selects 'audio
8049	// effects' profiles that are applied on (post synthesized) text to
8050	// speech. Effects are applied on top of each other in the order they
8051	// are given.
8052	EffectsProfileId []string `json:"effectsProfileId,omitempty"`
8053
8054	// Pitch: Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means
8055	// increase 20 semitones from the original pitch. -20 means decrease 20
8056	// semitones from the original pitch.
8057	Pitch float64 `json:"pitch,omitempty"`
8058
8059	// SpeakingRate: Optional. Speaking rate/speed, in the range [0.25,
8060	// 4.0]. 1.0 is the normal native speed supported by the specific voice.
8061	// 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0),
8062	// defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0
8063	// will return an error.
8064	SpeakingRate float64 `json:"speakingRate,omitempty"`
8065
8066	// Voice: Optional. The desired voice of the synthesized audio.
8067	Voice *GoogleCloudDialogflowCxV3beta1VoiceSelectionParams `json:"voice,omitempty"`
8068
8069	// VolumeGainDb: Optional. Volume gain (in dB) of the normal native
8070	// volume supported by the specific voice, in the range [-96.0, 16.0].
8071	// If unset, or set to a value of 0.0 (dB), will play at normal native
8072	// signal amplitude. A value of -6.0 (dB) will play at approximately
8073	// half the amplitude of the normal native signal amplitude. A value of
8074	// +6.0 (dB) will play at approximately twice the amplitude of the
8075	// normal native signal amplitude. We strongly recommend not to exceed
8076	// +10 (dB) as there's usually no effective increase in loudness for any
8077	// value greater than that.
8078	VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
8079
8080	// ForceSendFields is a list of field names (e.g. "EffectsProfileId") to
8081	// unconditionally include in API requests. By default, fields with
8082	// empty values are omitted from API requests. However, any non-pointer,
8083	// non-interface field appearing in ForceSendFields will be sent to the
8084	// server regardless of whether the field is empty or not. This may be
8085	// used to include empty fields in Patch requests.
8086	ForceSendFields []string `json:"-"`
8087
8088	// NullFields is a list of field names (e.g. "EffectsProfileId") to
8089	// include in API requests with the JSON null value. By default, fields
8090	// with empty values are omitted from API requests. However, any field
8091	// with an empty value appearing in NullFields will be sent to the
8092	// server as null. It is an error if a field in this list has a
8093	// non-empty value. This may be used to include null fields in Patch
8094	// requests.
8095	NullFields []string `json:"-"`
8096}
8097
8098func (s *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
8099	type NoMethod GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
8100	raw := NoMethod(*s)
8101	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8102}
8103
8104func (s *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
8105	type NoMethod GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
8106	var s1 struct {
8107		Pitch        gensupport.JSONFloat64 `json:"pitch"`
8108		SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
8109		VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
8110		*NoMethod
8111	}
8112	s1.NoMethod = (*NoMethod)(s)
8113	if err := json.Unmarshal(data, &s1); err != nil {
8114		return err
8115	}
8116	s.Pitch = float64(s1.Pitch)
8117	s.SpeakingRate = float64(s1.SpeakingRate)
8118	s.VolumeGainDb = float64(s1.VolumeGainDb)
8119	return nil
8120}
8121
8122// GoogleCloudDialogflowCxV3beta1TestCase: Represents a test case.
8123type GoogleCloudDialogflowCxV3beta1TestCase struct {
8124	// CreationTime: Output only. When the test was created.
8125	CreationTime string `json:"creationTime,omitempty"`
8126
8127	// DisplayName: Required. The human-readable name of the test case,
8128	// unique within the agent. Limit of 200 characters.
8129	DisplayName string `json:"displayName,omitempty"`
8130
8131	// LastTestResult: The latest test result.
8132	LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
8133
8134	// Name: The unique identifier of the test case.
8135	// TestCases.CreateTestCase will populate the name automatically.
8136	// Otherwise use format: `projects//locations//agents/ /testCases/`.
8137	Name string `json:"name,omitempty"`
8138
8139	// Notes: Additional freeform notes about the test case. Limit of 400
8140	// characters.
8141	Notes string `json:"notes,omitempty"`
8142
8143	// Tags: Tags are short descriptions that users may apply to test cases
8144	// for organizational and filtering purposes. Each tag should start with
8145	// "#" and has a limit of 30 characters.
8146	Tags []string `json:"tags,omitempty"`
8147
8148	// TestCaseConversationTurns: The conversation turns uttered when the
8149	// test case was created, in chronological order. These include the
8150	// canonical set of agent utterances that should occur when the agent is
8151	// working properly.
8152	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
8153
8154	// TestConfig: Config for the test case.
8155	TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
8156
8157	// ServerResponse contains the HTTP response code and headers from the
8158	// server.
8159	googleapi.ServerResponse `json:"-"`
8160
8161	// ForceSendFields is a list of field names (e.g. "CreationTime") to
8162	// unconditionally include in API requests. By default, fields with
8163	// empty values are omitted from API requests. However, any non-pointer,
8164	// non-interface field appearing in ForceSendFields will be sent to the
8165	// server regardless of whether the field is empty or not. This may be
8166	// used to include empty fields in Patch requests.
8167	ForceSendFields []string `json:"-"`
8168
8169	// NullFields is a list of field names (e.g. "CreationTime") to include
8170	// in API requests with the JSON null value. By default, fields with
8171	// empty values are omitted from API requests. However, any field with
8172	// an empty value appearing in NullFields will be sent to the server as
8173	// null. It is an error if a field in this list has a non-empty value.
8174	// This may be used to include null fields in Patch requests.
8175	NullFields []string `json:"-"`
8176}
8177
8178func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
8179	type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
8180	raw := NoMethod(*s)
8181	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8182}
8183
8184// GoogleCloudDialogflowCxV3beta1TestCaseError: Error info for importing
8185// a test.
8186type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
8187	// Status: The status associated with the test case.
8188	Status *GoogleRpcStatus `json:"status,omitempty"`
8189
8190	// TestCase: The test case.
8191	TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
8192
8193	// ForceSendFields is a list of field names (e.g. "Status") to
8194	// unconditionally include in API requests. By default, fields with
8195	// empty values are omitted from API requests. However, any non-pointer,
8196	// non-interface field appearing in ForceSendFields will be sent to the
8197	// server regardless of whether the field is empty or not. This may be
8198	// used to include empty fields in Patch requests.
8199	ForceSendFields []string `json:"-"`
8200
8201	// NullFields is a list of field names (e.g. "Status") to include in API
8202	// requests with the JSON null value. By default, fields with empty
8203	// values are omitted from API requests. However, any field with an
8204	// empty value appearing in NullFields will be sent to the server as
8205	// null. It is an error if a field in this list has a non-empty value.
8206	// This may be used to include null fields in Patch requests.
8207	NullFields []string `json:"-"`
8208}
8209
8210func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
8211	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
8212	raw := NoMethod(*s)
8213	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8214}
8215
8216// GoogleCloudDialogflowCxV3beta1TestCaseResult: Represents a result
8217// from running a test case in an agent environment.
8218type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
8219	// ConversationTurns: The conversation turns uttered during the test
8220	// case replay in chronological order.
8221	ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
8222
8223	// Environment: Environment where the test was run. If not set, it
8224	// indicates the draft environment.
8225	Environment string `json:"environment,omitempty"`
8226
8227	// Name: The resource name for the test case result. Format:
8228	// `projects//locations//agents//testCases/ /results/`.
8229	Name string `json:"name,omitempty"`
8230
8231	// TestResult: Whether the test case passed in the agent environment.
8232	//
8233	// Possible values:
8234	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
8235	//   "PASSED" - The test passed.
8236	//   "FAILED" - The test did not pass.
8237	TestResult string `json:"testResult,omitempty"`
8238
8239	// TestTime: The time that the test was run.
8240	TestTime string `json:"testTime,omitempty"`
8241
8242	// ServerResponse contains the HTTP response code and headers from the
8243	// server.
8244	googleapi.ServerResponse `json:"-"`
8245
8246	// ForceSendFields is a list of field names (e.g. "ConversationTurns")
8247	// to unconditionally include in API requests. By default, fields with
8248	// empty values are omitted from API requests. However, any non-pointer,
8249	// non-interface field appearing in ForceSendFields will be sent to the
8250	// server regardless of whether the field is empty or not. This may be
8251	// used to include empty fields in Patch requests.
8252	ForceSendFields []string `json:"-"`
8253
8254	// NullFields is a list of field names (e.g. "ConversationTurns") to
8255	// include in API requests with the JSON null value. By default, fields
8256	// with empty values are omitted from API requests. However, any field
8257	// with an empty value appearing in NullFields will be sent to the
8258	// server as null. It is an error if a field in this list has a
8259	// non-empty value. This may be used to include null fields in Patch
8260	// requests.
8261	NullFields []string `json:"-"`
8262}
8263
8264func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
8265	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
8266	raw := NoMethod(*s)
8267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8268}
8269
8270// GoogleCloudDialogflowCxV3beta1TestConfig: Represents configurations
8271// for a test case.
8272type GoogleCloudDialogflowCxV3beta1TestConfig struct {
8273	// Flow: Flow name. If not set, default start flow is assumed. Format:
8274	// `projects//locations//agents//flows/`.
8275	Flow string `json:"flow,omitempty"`
8276
8277	// TrackingParameters: Session parameters to be compared when
8278	// calculating differences.
8279	TrackingParameters []string `json:"trackingParameters,omitempty"`
8280
8281	// ForceSendFields is a list of field names (e.g. "Flow") to
8282	// unconditionally include in API requests. By default, fields with
8283	// empty values are omitted from API requests. However, any non-pointer,
8284	// non-interface field appearing in ForceSendFields will be sent to the
8285	// server regardless of whether the field is empty or not. This may be
8286	// used to include empty fields in Patch requests.
8287	ForceSendFields []string `json:"-"`
8288
8289	// NullFields is a list of field names (e.g. "Flow") to include in API
8290	// requests with the JSON null value. By default, fields with empty
8291	// values are omitted from API requests. However, any field with an
8292	// empty value appearing in NullFields will be sent to the server as
8293	// null. It is an error if a field in this list has a non-empty value.
8294	// This may be used to include null fields in Patch requests.
8295	NullFields []string `json:"-"`
8296}
8297
8298func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
8299	type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
8300	raw := NoMethod(*s)
8301	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8302}
8303
8304// GoogleCloudDialogflowCxV3beta1TestError: Error info for running a
8305// test.
8306type GoogleCloudDialogflowCxV3beta1TestError struct {
8307	// Status: The status associated with the test.
8308	Status *GoogleRpcStatus `json:"status,omitempty"`
8309
8310	// TestCase: The test case resource name.
8311	TestCase string `json:"testCase,omitempty"`
8312
8313	// TestTime: The timestamp when the test was completed.
8314	TestTime string `json:"testTime,omitempty"`
8315
8316	// ForceSendFields is a list of field names (e.g. "Status") to
8317	// unconditionally include in API requests. By default, fields with
8318	// empty values are omitted from API requests. However, any non-pointer,
8319	// non-interface field appearing in ForceSendFields will be sent to the
8320	// server regardless of whether the field is empty or not. This may be
8321	// used to include empty fields in Patch requests.
8322	ForceSendFields []string `json:"-"`
8323
8324	// NullFields is a list of field names (e.g. "Status") to include in API
8325	// requests with the JSON null value. By default, fields with empty
8326	// values are omitted from API requests. However, any field with an
8327	// empty value appearing in NullFields will be sent to the server as
8328	// null. It is an error if a field in this list has a non-empty value.
8329	// This may be used to include null fields in Patch requests.
8330	NullFields []string `json:"-"`
8331}
8332
8333func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
8334	type NoMethod GoogleCloudDialogflowCxV3beta1TestError
8335	raw := NoMethod(*s)
8336	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8337}
8338
8339// GoogleCloudDialogflowCxV3beta1TestRunDifference: The description of
8340// differences between original and replayed agent output.
8341type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
8342	// Description: A description of the diff, showing the actual output vs
8343	// expected output.
8344	Description string `json:"description,omitempty"`
8345
8346	// Type: The type of diff.
8347	//
8348	// Possible values:
8349	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
8350	//   "INTENT" - The intent.
8351	//   "PAGE" - The page.
8352	//   "PARAMETERS" - The parameters.
8353	//   "UTTERANCE" - The message utterance.
8354	Type string `json:"type,omitempty"`
8355
8356	// ForceSendFields is a list of field names (e.g. "Description") to
8357	// unconditionally include in API requests. By default, fields with
8358	// empty values are omitted from API requests. However, any non-pointer,
8359	// non-interface field appearing in ForceSendFields will be sent to the
8360	// server regardless of whether the field is empty or not. This may be
8361	// used to include empty fields in Patch requests.
8362	ForceSendFields []string `json:"-"`
8363
8364	// NullFields is a list of field names (e.g. "Description") to include
8365	// in API requests with the JSON null value. By default, fields with
8366	// empty values are omitted from API requests. However, any field with
8367	// an empty value appearing in NullFields will be sent to the server as
8368	// null. It is an error if a field in this list has a non-empty value.
8369	// This may be used to include null fields in Patch requests.
8370	NullFields []string `json:"-"`
8371}
8372
8373func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
8374	type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
8375	raw := NoMethod(*s)
8376	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8377}
8378
8379// GoogleCloudDialogflowCxV3beta1TextInput: Represents the natural
8380// language text to be processed.
8381type GoogleCloudDialogflowCxV3beta1TextInput struct {
8382	// Text: Required. The UTF-8 encoded natural language text to be
8383	// processed. Text length must not exceed 256 characters.
8384	Text string `json:"text,omitempty"`
8385
8386	// ForceSendFields is a list of field names (e.g. "Text") to
8387	// unconditionally include in API requests. By default, fields with
8388	// empty values are omitted from API requests. However, any non-pointer,
8389	// non-interface field appearing in ForceSendFields will be sent to the
8390	// server regardless of whether the field is empty or not. This may be
8391	// used to include empty fields in Patch requests.
8392	ForceSendFields []string `json:"-"`
8393
8394	// NullFields is a list of field names (e.g. "Text") to include in API
8395	// requests with the JSON null value. By default, fields with empty
8396	// values are omitted from API requests. However, any field with an
8397	// empty value appearing in NullFields will be sent to the server as
8398	// null. It is an error if a field in this list has a non-empty value.
8399	// This may be used to include null fields in Patch requests.
8400	NullFields []string `json:"-"`
8401}
8402
8403func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
8404	type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
8405	raw := NoMethod(*s)
8406	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8407}
8408
8409// GoogleCloudDialogflowCxV3beta1TrainFlowRequest: The request message
8410// for Flows.TrainFlow.
8411type GoogleCloudDialogflowCxV3beta1TrainFlowRequest struct {
8412}
8413
8414// GoogleCloudDialogflowCxV3beta1TransitionCoverage: Transition coverage
8415// represents the percentage of all possible page transitions
8416// (page-level transition routes and event handlers, excluding
8417// transition route groups) present within any of a parent's test cases.
8418type GoogleCloudDialogflowCxV3beta1TransitionCoverage struct {
8419	// CoverageScore: The percent of transitions in the agent that are
8420	// covered.
8421	CoverageScore float64 `json:"coverageScore,omitempty"`
8422
8423	// Transitions: The list of Transitions present in the agent.
8424	Transitions []*GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition `json:"transitions,omitempty"`
8425
8426	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
8427	// unconditionally include in API requests. By default, fields with
8428	// empty values are omitted from API requests. However, any non-pointer,
8429	// non-interface field appearing in ForceSendFields will be sent to the
8430	// server regardless of whether the field is empty or not. This may be
8431	// used to include empty fields in Patch requests.
8432	ForceSendFields []string `json:"-"`
8433
8434	// NullFields is a list of field names (e.g. "CoverageScore") to include
8435	// in API requests with the JSON null value. By default, fields with
8436	// empty values are omitted from API requests. However, any field with
8437	// an empty value appearing in NullFields will be sent to the server as
8438	// null. It is an error if a field in this list has a non-empty value.
8439	// This may be used to include null fields in Patch requests.
8440	NullFields []string `json:"-"`
8441}
8442
8443func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverage) MarshalJSON() ([]byte, error) {
8444	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverage
8445	raw := NoMethod(*s)
8446	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8447}
8448
8449func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverage) UnmarshalJSON(data []byte) error {
8450	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverage
8451	var s1 struct {
8452		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
8453		*NoMethod
8454	}
8455	s1.NoMethod = (*NoMethod)(s)
8456	if err := json.Unmarshal(data, &s1); err != nil {
8457		return err
8458	}
8459	s.CoverageScore = float64(s1.CoverageScore)
8460	return nil
8461}
8462
8463// GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition: A
8464// transition in a page.
8465type GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition struct {
8466	// Covered: Whether or not the transition is covered by at least one of
8467	// the agent's test cases.
8468	Covered bool `json:"covered,omitempty"`
8469
8470	// EventHandler: Event handler.
8471	EventHandler *GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandler,omitempty"`
8472
8473	// Index: The index of a transition in the transition list. Starting
8474	// from 0.
8475	Index int64 `json:"index,omitempty"`
8476
8477	// Source: The start node of a transition.
8478	Source *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode `json:"source,omitempty"`
8479
8480	// Target: The end node of a transition.
8481	Target *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode `json:"target,omitempty"`
8482
8483	// TransitionRoute: Intent route or condition route.
8484	TransitionRoute *GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoute,omitempty"`
8485
8486	// ForceSendFields is a list of field names (e.g. "Covered") to
8487	// unconditionally include in API requests. By default, fields with
8488	// empty values are omitted from API requests. However, any non-pointer,
8489	// non-interface field appearing in ForceSendFields will be sent to the
8490	// server regardless of whether the field is empty or not. This may be
8491	// used to include empty fields in Patch requests.
8492	ForceSendFields []string `json:"-"`
8493
8494	// NullFields is a list of field names (e.g. "Covered") to include in
8495	// API requests with the JSON null value. By default, fields with empty
8496	// values are omitted from API requests. However, any field with an
8497	// empty value appearing in NullFields will be sent to the server as
8498	// null. It is an error if a field in this list has a non-empty value.
8499	// This may be used to include null fields in Patch requests.
8500	NullFields []string `json:"-"`
8501}
8502
8503func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition) MarshalJSON() ([]byte, error) {
8504	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition
8505	raw := NoMethod(*s)
8506	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8507}
8508
8509// GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode: The
8510// source or target of a transition.
8511type GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode struct {
8512	// Flow: Indicates a transition to a Flow. Only some fields such as name
8513	// and displayname will be set.
8514	Flow *GoogleCloudDialogflowCxV3beta1Flow `json:"flow,omitempty"`
8515
8516	// Page: Indicates a transition to a Page. Only some fields such as name
8517	// and displayname will be set.
8518	Page *GoogleCloudDialogflowCxV3beta1Page `json:"page,omitempty"`
8519
8520	// ForceSendFields is a list of field names (e.g. "Flow") to
8521	// unconditionally include in API requests. By default, fields with
8522	// empty values are omitted from API requests. However, any non-pointer,
8523	// non-interface field appearing in ForceSendFields will be sent to the
8524	// server regardless of whether the field is empty or not. This may be
8525	// used to include empty fields in Patch requests.
8526	ForceSendFields []string `json:"-"`
8527
8528	// NullFields is a list of field names (e.g. "Flow") to include in API
8529	// requests with the JSON null value. By default, fields with empty
8530	// values are omitted from API requests. However, any field with an
8531	// empty value appearing in NullFields will be sent to the server as
8532	// null. It is an error if a field in this list has a non-empty value.
8533	// This may be used to include null fields in Patch requests.
8534	NullFields []string `json:"-"`
8535}
8536
8537func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode) MarshalJSON() ([]byte, error) {
8538	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode
8539	raw := NoMethod(*s)
8540	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8541}
8542
8543// GoogleCloudDialogflowCxV3beta1TransitionRoute: A transition route
8544// specifies a intent that can be matched and/or a data condition that
8545// can be evaluated during a session. When a specified transition is
8546// matched, the following actions are taken in order: * If there is a
8547// `trigger_fulfillment` associated with the transition, it will be
8548// called. * If there is a `target_page` associated with the transition,
8549// the session will transition into the specified page. * If there is a
8550// `target_flow` associated with the transition, the session will
8551// transition into the specified flow.
8552type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
8553	// Condition: The condition to evaluate against form parameters or
8554	// session parameters. See the conditions reference
8555	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At
8556	// least one of `intent` or `condition` must be specified. When both
8557	// `intent` and `condition` are specified, the transition can only
8558	// happen when both are fulfilled.
8559	Condition string `json:"condition,omitempty"`
8560
8561	// Intent: The unique identifier of an Intent. Format:
8562	// `projects//locations//agents//intents/`. Indicates that the
8563	// transition can only happen when the given intent is matched. At least
8564	// one of `intent` or `condition` must be specified. When both `intent`
8565	// and `condition` are specified, the transition can only happen when
8566	// both are fulfilled.
8567	Intent string `json:"intent,omitempty"`
8568
8569	// Name: Output only. The unique identifier of this transition route.
8570	Name string `json:"name,omitempty"`
8571
8572	// TargetFlow: The target flow to transition to. Format:
8573	// `projects//locations//agents//flows/`.
8574	TargetFlow string `json:"targetFlow,omitempty"`
8575
8576	// TargetPage: The target page to transition to. Format:
8577	// `projects//locations//agents//flows//pages/`.
8578	TargetPage string `json:"targetPage,omitempty"`
8579
8580	// TriggerFulfillment: The fulfillment to call when the condition is
8581	// satisfied. At least one of `trigger_fulfillment` and `target` must be
8582	// specified. When both are defined, `trigger_fulfillment` is executed
8583	// first.
8584	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
8585
8586	// ForceSendFields is a list of field names (e.g. "Condition") to
8587	// unconditionally include in API requests. By default, fields with
8588	// empty values are omitted from API requests. However, any non-pointer,
8589	// non-interface field appearing in ForceSendFields will be sent to the
8590	// server regardless of whether the field is empty or not. This may be
8591	// used to include empty fields in Patch requests.
8592	ForceSendFields []string `json:"-"`
8593
8594	// NullFields is a list of field names (e.g. "Condition") to include in
8595	// API requests with the JSON null value. By default, fields with empty
8596	// values are omitted from API requests. However, any field with an
8597	// empty value appearing in NullFields will be sent to the server as
8598	// null. It is an error if a field in this list has a non-empty value.
8599	// This may be used to include null fields in Patch requests.
8600	NullFields []string `json:"-"`
8601}
8602
8603func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
8604	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
8605	raw := NoMethod(*s)
8606	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8607}
8608
8609// GoogleCloudDialogflowCxV3beta1TransitionRouteGroup: An
8610// TransitionRouteGroup represents a group of `TransitionRoutes` to be
8611// used by a Page.
8612type GoogleCloudDialogflowCxV3beta1TransitionRouteGroup struct {
8613	// DisplayName: Required. The human-readable name of the transition
8614	// route group, unique within the Agent. The display name can be no
8615	// longer than 30 characters.
8616	DisplayName string `json:"displayName,omitempty"`
8617
8618	// Name: The unique identifier of the transition route group.
8619	// TransitionRouteGroups.CreateTransitionRouteGroup populates the name
8620	// automatically. Format:
8621	// `projects//locations//agents//flows//transitionRouteGroups/`.
8622	Name string `json:"name,omitempty"`
8623
8624	// TransitionRoutes: Transition routes associated with the
8625	// TransitionRouteGroup.
8626	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
8627
8628	// ServerResponse contains the HTTP response code and headers from the
8629	// server.
8630	googleapi.ServerResponse `json:"-"`
8631
8632	// ForceSendFields is a list of field names (e.g. "DisplayName") to
8633	// unconditionally include in API requests. By default, fields with
8634	// empty values are omitted from API requests. However, any non-pointer,
8635	// non-interface field appearing in ForceSendFields will be sent to the
8636	// server regardless of whether the field is empty or not. This may be
8637	// used to include empty fields in Patch requests.
8638	ForceSendFields []string `json:"-"`
8639
8640	// NullFields is a list of field names (e.g. "DisplayName") to include
8641	// in API requests with the JSON null value. By default, fields with
8642	// empty values are omitted from API requests. However, any field with
8643	// an empty value appearing in NullFields will be sent to the server as
8644	// null. It is an error if a field in this list has a non-empty value.
8645	// This may be used to include null fields in Patch requests.
8646	NullFields []string `json:"-"`
8647}
8648
8649func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) MarshalJSON() ([]byte, error) {
8650	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
8651	raw := NoMethod(*s)
8652	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8653}
8654
8655// GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage:
8656// Transition route group coverage represents the percentage of all
8657// possible transition routes present within any of a parent's test
8658// cases. The results are grouped by the transition route group.
8659type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage struct {
8660	// CoverageScore: The percent of transition routes in all the transition
8661	// route groups that are covered.
8662	CoverageScore float64 `json:"coverageScore,omitempty"`
8663
8664	// Coverages: Transition route group coverages.
8665	Coverages []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage `json:"coverages,omitempty"`
8666
8667	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
8668	// unconditionally include in API requests. By default, fields with
8669	// empty values are omitted from API requests. However, any non-pointer,
8670	// non-interface field appearing in ForceSendFields will be sent to the
8671	// server regardless of whether the field is empty or not. This may be
8672	// used to include empty fields in Patch requests.
8673	ForceSendFields []string `json:"-"`
8674
8675	// NullFields is a list of field names (e.g. "CoverageScore") to include
8676	// in API requests with the JSON null value. By default, fields with
8677	// empty values are omitted from API requests. However, any field with
8678	// an empty value appearing in NullFields will be sent to the server as
8679	// null. It is an error if a field in this list has a non-empty value.
8680	// This may be used to include null fields in Patch requests.
8681	NullFields []string `json:"-"`
8682}
8683
8684func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage) MarshalJSON() ([]byte, error) {
8685	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage
8686	raw := NoMethod(*s)
8687	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8688}
8689
8690func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage) UnmarshalJSON(data []byte) error {
8691	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage
8692	var s1 struct {
8693		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
8694		*NoMethod
8695	}
8696	s1.NoMethod = (*NoMethod)(s)
8697	if err := json.Unmarshal(data, &s1); err != nil {
8698		return err
8699	}
8700	s.CoverageScore = float64(s1.CoverageScore)
8701	return nil
8702}
8703
8704// GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage:
8705// Coverage result message for one transition route group.
8706type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage struct {
8707	// CoverageScore: The percent of transition routes in the transition
8708	// route group that are covered.
8709	CoverageScore float64 `json:"coverageScore,omitempty"`
8710
8711	// RouteGroup: Transition route group metadata. Only name and
8712	// displayName will be set.
8713	RouteGroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup `json:"routeGroup,omitempty"`
8714
8715	// Transitions: The list of transition routes and coverage in the
8716	// transition route group.
8717	Transitions []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition `json:"transitions,omitempty"`
8718
8719	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
8720	// unconditionally include in API requests. By default, fields with
8721	// empty values are omitted from API requests. However, any non-pointer,
8722	// non-interface field appearing in ForceSendFields will be sent to the
8723	// server regardless of whether the field is empty or not. This may be
8724	// used to include empty fields in Patch requests.
8725	ForceSendFields []string `json:"-"`
8726
8727	// NullFields is a list of field names (e.g. "CoverageScore") to include
8728	// in API requests with the JSON null value. By default, fields with
8729	// empty values are omitted from API requests. However, any field with
8730	// an empty value appearing in NullFields will be sent to the server as
8731	// null. It is an error if a field in this list has a non-empty value.
8732	// This may be used to include null fields in Patch requests.
8733	NullFields []string `json:"-"`
8734}
8735
8736func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage) MarshalJSON() ([]byte, error) {
8737	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage
8738	raw := NoMethod(*s)
8739	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8740}
8741
8742func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage) UnmarshalJSON(data []byte) error {
8743	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage
8744	var s1 struct {
8745		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
8746		*NoMethod
8747	}
8748	s1.NoMethod = (*NoMethod)(s)
8749	if err := json.Unmarshal(data, &s1); err != nil {
8750		return err
8751	}
8752	s.CoverageScore = float64(s1.CoverageScore)
8753	return nil
8754}
8755
8756// GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTran
8757// sition: A transition coverage in a transition route group.
8758type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition struct {
8759	// Covered: Whether or not the transition route is covered by at least
8760	// one of the agent's test cases.
8761	Covered bool `json:"covered,omitempty"`
8762
8763	// TransitionRoute: Intent route or condition route.
8764	TransitionRoute *GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoute,omitempty"`
8765
8766	// ForceSendFields is a list of field names (e.g. "Covered") to
8767	// unconditionally include in API requests. By default, fields with
8768	// empty values are omitted from API requests. However, any non-pointer,
8769	// non-interface field appearing in ForceSendFields will be sent to the
8770	// server regardless of whether the field is empty or not. This may be
8771	// used to include empty fields in Patch requests.
8772	ForceSendFields []string `json:"-"`
8773
8774	// NullFields is a list of field names (e.g. "Covered") to include in
8775	// API requests with the JSON null value. By default, fields with empty
8776	// values are omitted from API requests. However, any field with an
8777	// empty value appearing in NullFields will be sent to the server as
8778	// null. It is an error if a field in this list has a non-empty value.
8779	// This may be used to include null fields in Patch requests.
8780	NullFields []string `json:"-"`
8781}
8782
8783func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition) MarshalJSON() ([]byte, error) {
8784	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition
8785	raw := NoMethod(*s)
8786	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8787}
8788
8789// GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata:
8790// Metadata for UpdateDocument operation.
8791type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
8792	// GenericMetadata: The generic information of the operation.
8793	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
8794
8795	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
8796	// unconditionally include in API requests. By default, fields with
8797	// empty values are omitted from API requests. However, any non-pointer,
8798	// non-interface field appearing in ForceSendFields will be sent to the
8799	// server regardless of whether the field is empty or not. This may be
8800	// used to include empty fields in Patch requests.
8801	ForceSendFields []string `json:"-"`
8802
8803	// NullFields is a list of field names (e.g. "GenericMetadata") to
8804	// include in API requests with the JSON null value. By default, fields
8805	// with empty values are omitted from API requests. However, any field
8806	// with an empty value appearing in NullFields will be sent to the
8807	// server as null. It is an error if a field in this list has a
8808	// non-empty value. This may be used to include null fields in Patch
8809	// requests.
8810	NullFields []string `json:"-"`
8811}
8812
8813func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
8814	type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
8815	raw := NoMethod(*s)
8816	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8817}
8818
8819// GoogleCloudDialogflowCxV3beta1ValidateAgentRequest: The request
8820// message for Agents.ValidateAgent.
8821type GoogleCloudDialogflowCxV3beta1ValidateAgentRequest struct {
8822	// LanguageCode: If not specified, the agent's default language is used.
8823	LanguageCode string `json:"languageCode,omitempty"`
8824
8825	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
8826	// unconditionally include in API requests. By default, fields with
8827	// empty values are omitted from API requests. However, any non-pointer,
8828	// non-interface field appearing in ForceSendFields will be sent to the
8829	// server regardless of whether the field is empty or not. This may be
8830	// used to include empty fields in Patch requests.
8831	ForceSendFields []string `json:"-"`
8832
8833	// NullFields is a list of field names (e.g. "LanguageCode") to include
8834	// in API requests with the JSON null value. By default, fields with
8835	// empty values are omitted from API requests. However, any field with
8836	// an empty value appearing in NullFields will be sent to the server as
8837	// null. It is an error if a field in this list has a non-empty value.
8838	// This may be used to include null fields in Patch requests.
8839	NullFields []string `json:"-"`
8840}
8841
8842func (s *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest) MarshalJSON() ([]byte, error) {
8843	type NoMethod GoogleCloudDialogflowCxV3beta1ValidateAgentRequest
8844	raw := NoMethod(*s)
8845	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8846}
8847
8848// GoogleCloudDialogflowCxV3beta1ValidateFlowRequest: The request
8849// message for Flows.ValidateFlow.
8850type GoogleCloudDialogflowCxV3beta1ValidateFlowRequest struct {
8851	// LanguageCode: If not specified, the agent's default language is used.
8852	LanguageCode string `json:"languageCode,omitempty"`
8853
8854	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
8855	// unconditionally include in API requests. By default, fields with
8856	// empty values are omitted from API requests. However, any non-pointer,
8857	// non-interface field appearing in ForceSendFields will be sent to the
8858	// server regardless of whether the field is empty or not. This may be
8859	// used to include empty fields in Patch requests.
8860	ForceSendFields []string `json:"-"`
8861
8862	// NullFields is a list of field names (e.g. "LanguageCode") to include
8863	// in API requests with the JSON null value. By default, fields with
8864	// empty values are omitted from API requests. However, any field with
8865	// an empty value appearing in NullFields will be sent to the server as
8866	// null. It is an error if a field in this list has a non-empty value.
8867	// This may be used to include null fields in Patch requests.
8868	NullFields []string `json:"-"`
8869}
8870
8871func (s *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest) MarshalJSON() ([]byte, error) {
8872	type NoMethod GoogleCloudDialogflowCxV3beta1ValidateFlowRequest
8873	raw := NoMethod(*s)
8874	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8875}
8876
8877// GoogleCloudDialogflowCxV3beta1ValidationMessage: Agent/flow
8878// validation message.
8879type GoogleCloudDialogflowCxV3beta1ValidationMessage struct {
8880	// Detail: The message detail.
8881	Detail string `json:"detail,omitempty"`
8882
8883	// ResourceNames: The resource names of the resources where the message
8884	// is found.
8885	ResourceNames []*GoogleCloudDialogflowCxV3beta1ResourceName `json:"resourceNames,omitempty"`
8886
8887	// ResourceType: The type of the resources where the message is found.
8888	//
8889	// Possible values:
8890	//   "RESOURCE_TYPE_UNSPECIFIED" - Unspecified.
8891	//   "AGENT" - Agent.
8892	//   "INTENT" - Intent.
8893	//   "INTENT_TRAINING_PHRASE" - Intent training phrase.
8894	//   "INTENT_PARAMETER" - Intent parameter.
8895	//   "INTENTS" - Multiple intents.
8896	//   "INTENT_TRAINING_PHRASES" - Multiple training phrases.
8897	//   "ENTITY_TYPE" - Entity type.
8898	//   "ENTITY_TYPES" - Multiple entity types.
8899	//   "WEBHOOK" - Webhook.
8900	//   "FLOW" - Flow.
8901	//   "PAGE" - Page.
8902	//   "PAGES" - Multiple pages.
8903	//   "TRANSITION_ROUTE_GROUP" - Transition route group.
8904	ResourceType string `json:"resourceType,omitempty"`
8905
8906	// Resources: The names of the resources where the message is found.
8907	Resources []string `json:"resources,omitempty"`
8908
8909	// Severity: Indicates the severity of the message.
8910	//
8911	// Possible values:
8912	//   "SEVERITY_UNSPECIFIED" - Unspecified.
8913	//   "INFO" - The agent doesn't follow Dialogflow best practices.
8914	//   "WARNING" - The agent may not behave as expected.
8915	//   "ERROR" - The agent may experience failures.
8916	Severity string `json:"severity,omitempty"`
8917
8918	// ForceSendFields is a list of field names (e.g. "Detail") to
8919	// unconditionally include in API requests. By default, fields with
8920	// empty values are omitted from API requests. However, any non-pointer,
8921	// non-interface field appearing in ForceSendFields will be sent to the
8922	// server regardless of whether the field is empty or not. This may be
8923	// used to include empty fields in Patch requests.
8924	ForceSendFields []string `json:"-"`
8925
8926	// NullFields is a list of field names (e.g. "Detail") to include in API
8927	// requests with the JSON null value. By default, fields with empty
8928	// values are omitted from API requests. However, any field with an
8929	// empty value appearing in NullFields will be sent to the server as
8930	// null. It is an error if a field in this list has a non-empty value.
8931	// This may be used to include null fields in Patch requests.
8932	NullFields []string `json:"-"`
8933}
8934
8935func (s *GoogleCloudDialogflowCxV3beta1ValidationMessage) MarshalJSON() ([]byte, error) {
8936	type NoMethod GoogleCloudDialogflowCxV3beta1ValidationMessage
8937	raw := NoMethod(*s)
8938	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8939}
8940
8941// GoogleCloudDialogflowCxV3beta1VariantsHistory: The history of
8942// variants update.
8943type GoogleCloudDialogflowCxV3beta1VariantsHistory struct {
8944	// UpdateTime: Update time of the variants.
8945	UpdateTime string `json:"updateTime,omitempty"`
8946
8947	// VersionVariants: The flow versions as the variants.
8948	VersionVariants *GoogleCloudDialogflowCxV3beta1VersionVariants `json:"versionVariants,omitempty"`
8949
8950	// ForceSendFields is a list of field names (e.g. "UpdateTime") to
8951	// unconditionally include in API requests. By default, fields with
8952	// empty values are omitted from API requests. However, any non-pointer,
8953	// non-interface field appearing in ForceSendFields will be sent to the
8954	// server regardless of whether the field is empty or not. This may be
8955	// used to include empty fields in Patch requests.
8956	ForceSendFields []string `json:"-"`
8957
8958	// NullFields is a list of field names (e.g. "UpdateTime") to include in
8959	// API requests with the JSON null value. By default, fields with empty
8960	// values are omitted from API requests. However, any field with an
8961	// empty value appearing in NullFields will be sent to the server as
8962	// null. It is an error if a field in this list has a non-empty value.
8963	// This may be used to include null fields in Patch requests.
8964	NullFields []string `json:"-"`
8965}
8966
8967func (s *GoogleCloudDialogflowCxV3beta1VariantsHistory) MarshalJSON() ([]byte, error) {
8968	type NoMethod GoogleCloudDialogflowCxV3beta1VariantsHistory
8969	raw := NoMethod(*s)
8970	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8971}
8972
8973// GoogleCloudDialogflowCxV3beta1Version: Represents a version of a
8974// flow.
8975type GoogleCloudDialogflowCxV3beta1Version struct {
8976	// CreateTime: Output only. Create time of the version.
8977	CreateTime string `json:"createTime,omitempty"`
8978
8979	// Description: The description of the version. The maximum length is
8980	// 500 characters. If exceeded, the request is rejected.
8981	Description string `json:"description,omitempty"`
8982
8983	// DisplayName: Required. The human-readable name of the version. Limit
8984	// of 64 characters.
8985	DisplayName string `json:"displayName,omitempty"`
8986
8987	// Name: Format: projects//locations//agents//flows//versions/. Version
8988	// ID is a self-increasing number generated by Dialogflow upon version
8989	// creation.
8990	Name string `json:"name,omitempty"`
8991
8992	// NluSettings: Output only. The NLU settings of the flow at version
8993	// creation.
8994	NluSettings *GoogleCloudDialogflowCxV3beta1NluSettings `json:"nluSettings,omitempty"`
8995
8996	// State: Output only. The state of this version. This field is
8997	// read-only and cannot be set by create and update methods.
8998	//
8999	// Possible values:
9000	//   "STATE_UNSPECIFIED" - Not specified. This value is not used.
9001	//   "RUNNING" - Version is not ready to serve (e.g. training is
9002	// running).
9003	//   "SUCCEEDED" - Training has succeeded and this version is ready to
9004	// serve.
9005	//   "FAILED" - Version training failed.
9006	State string `json:"state,omitempty"`
9007
9008	// ServerResponse contains the HTTP response code and headers from the
9009	// server.
9010	googleapi.ServerResponse `json:"-"`
9011
9012	// ForceSendFields is a list of field names (e.g. "CreateTime") to
9013	// unconditionally include in API requests. By default, fields with
9014	// empty values are omitted from API requests. However, any non-pointer,
9015	// non-interface field appearing in ForceSendFields will be sent to the
9016	// server regardless of whether the field is empty or not. This may be
9017	// used to include empty fields in Patch requests.
9018	ForceSendFields []string `json:"-"`
9019
9020	// NullFields is a list of field names (e.g. "CreateTime") to include in
9021	// API requests with the JSON null value. By default, fields with empty
9022	// values are omitted from API requests. However, any field with an
9023	// empty value appearing in NullFields will be sent to the server as
9024	// null. It is an error if a field in this list has a non-empty value.
9025	// This may be used to include null fields in Patch requests.
9026	NullFields []string `json:"-"`
9027}
9028
9029func (s *GoogleCloudDialogflowCxV3beta1Version) MarshalJSON() ([]byte, error) {
9030	type NoMethod GoogleCloudDialogflowCxV3beta1Version
9031	raw := NoMethod(*s)
9032	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9033}
9034
9035// GoogleCloudDialogflowCxV3beta1VersionVariants: A list of flow version
9036// variants.
9037type GoogleCloudDialogflowCxV3beta1VersionVariants struct {
9038	// Variants: A list of flow version variants.
9039	Variants []*GoogleCloudDialogflowCxV3beta1VersionVariantsVariant `json:"variants,omitempty"`
9040
9041	// ForceSendFields is a list of field names (e.g. "Variants") to
9042	// unconditionally include in API requests. By default, fields with
9043	// empty values are omitted from API requests. However, any non-pointer,
9044	// non-interface field appearing in ForceSendFields will be sent to the
9045	// server regardless of whether the field is empty or not. This may be
9046	// used to include empty fields in Patch requests.
9047	ForceSendFields []string `json:"-"`
9048
9049	// NullFields is a list of field names (e.g. "Variants") to include in
9050	// API requests with the JSON null value. By default, fields with empty
9051	// values are omitted from API requests. However, any field with an
9052	// empty value appearing in NullFields will be sent to the server as
9053	// null. It is an error if a field in this list has a non-empty value.
9054	// This may be used to include null fields in Patch requests.
9055	NullFields []string `json:"-"`
9056}
9057
9058func (s *GoogleCloudDialogflowCxV3beta1VersionVariants) MarshalJSON() ([]byte, error) {
9059	type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariants
9060	raw := NoMethod(*s)
9061	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9062}
9063
9064// GoogleCloudDialogflowCxV3beta1VersionVariantsVariant: A single flow
9065// version with specified traffic allocation.
9066type GoogleCloudDialogflowCxV3beta1VersionVariantsVariant struct {
9067	// IsControlGroup: Whether the variant is for the control group.
9068	IsControlGroup bool `json:"isControlGroup,omitempty"`
9069
9070	// TrafficAllocation: Percentage of the traffic which should be routed
9071	// to this version of flow. Traffic allocation for a single flow must
9072	// sum up to 1.0.
9073	TrafficAllocation float64 `json:"trafficAllocation,omitempty"`
9074
9075	// Version: The name of the flow version. Format:
9076	// `projects//locations//agents//flows//versions/`.
9077	Version string `json:"version,omitempty"`
9078
9079	// ForceSendFields is a list of field names (e.g. "IsControlGroup") to
9080	// unconditionally include in API requests. By default, fields with
9081	// empty values are omitted from API requests. However, any non-pointer,
9082	// non-interface field appearing in ForceSendFields will be sent to the
9083	// server regardless of whether the field is empty or not. This may be
9084	// used to include empty fields in Patch requests.
9085	ForceSendFields []string `json:"-"`
9086
9087	// NullFields is a list of field names (e.g. "IsControlGroup") to
9088	// include in API requests with the JSON null value. By default, fields
9089	// with empty values are omitted from API requests. However, any field
9090	// with an empty value appearing in NullFields will be sent to the
9091	// server as null. It is an error if a field in this list has a
9092	// non-empty value. This may be used to include null fields in Patch
9093	// requests.
9094	NullFields []string `json:"-"`
9095}
9096
9097func (s *GoogleCloudDialogflowCxV3beta1VersionVariantsVariant) MarshalJSON() ([]byte, error) {
9098	type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
9099	raw := NoMethod(*s)
9100	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9101}
9102
9103func (s *GoogleCloudDialogflowCxV3beta1VersionVariantsVariant) UnmarshalJSON(data []byte) error {
9104	type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
9105	var s1 struct {
9106		TrafficAllocation gensupport.JSONFloat64 `json:"trafficAllocation"`
9107		*NoMethod
9108	}
9109	s1.NoMethod = (*NoMethod)(s)
9110	if err := json.Unmarshal(data, &s1); err != nil {
9111		return err
9112	}
9113	s.TrafficAllocation = float64(s1.TrafficAllocation)
9114	return nil
9115}
9116
9117// GoogleCloudDialogflowCxV3beta1VoiceSelectionParams: Description of
9118// which voice to use for speech synthesis.
9119type GoogleCloudDialogflowCxV3beta1VoiceSelectionParams struct {
9120	// Name: Optional. The name of the voice. If not set, the service will
9121	// choose a voice based on the other parameters such as language_code
9122	// and ssml_gender. For the list of available voices, please refer to
9123	// Supported voices and languages
9124	// (https://cloud.google.com/text-to-speech/docs/voices).
9125	Name string `json:"name,omitempty"`
9126
9127	// SsmlGender: Optional. The preferred gender of the voice. If not set,
9128	// the service will choose a voice based on the other parameters such as
9129	// language_code and name. Note that this is only a preference, not
9130	// requirement. If a voice of the appropriate gender is not available,
9131	// the synthesizer should substitute a voice with a different gender
9132	// rather than failing the request.
9133	//
9134	// Possible values:
9135	//   "SSML_VOICE_GENDER_UNSPECIFIED" - An unspecified gender, which
9136	// means that the client doesn't care which gender the selected voice
9137	// will have.
9138	//   "SSML_VOICE_GENDER_MALE" - A male voice.
9139	//   "SSML_VOICE_GENDER_FEMALE" - A female voice.
9140	//   "SSML_VOICE_GENDER_NEUTRAL" - A gender-neutral voice.
9141	SsmlGender string `json:"ssmlGender,omitempty"`
9142
9143	// ForceSendFields is a list of field names (e.g. "Name") to
9144	// unconditionally include in API requests. By default, fields with
9145	// empty values are omitted from API requests. However, any non-pointer,
9146	// non-interface field appearing in ForceSendFields will be sent to the
9147	// server regardless of whether the field is empty or not. This may be
9148	// used to include empty fields in Patch requests.
9149	ForceSendFields []string `json:"-"`
9150
9151	// NullFields is a list of field names (e.g. "Name") to include in API
9152	// requests with the JSON null value. By default, fields with empty
9153	// values are omitted from API requests. However, any field with an
9154	// empty value appearing in NullFields will be sent to the server as
9155	// null. It is an error if a field in this list has a non-empty value.
9156	// This may be used to include null fields in Patch requests.
9157	NullFields []string `json:"-"`
9158}
9159
9160func (s *GoogleCloudDialogflowCxV3beta1VoiceSelectionParams) MarshalJSON() ([]byte, error) {
9161	type NoMethod GoogleCloudDialogflowCxV3beta1VoiceSelectionParams
9162	raw := NoMethod(*s)
9163	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9164}
9165
9166// GoogleCloudDialogflowCxV3beta1Webhook: Webhooks host the developer's
9167// business logic. During a session, webhooks allow the developer to use
9168// the data extracted by Dialogflow's natural language processing to
9169// generate dynamic responses, validate collected data, or trigger
9170// actions on the backend.
9171type GoogleCloudDialogflowCxV3beta1Webhook struct {
9172	// Disabled: Indicates whether the webhook is disabled.
9173	Disabled bool `json:"disabled,omitempty"`
9174
9175	// DisplayName: Required. The human-readable name of the webhook, unique
9176	// within the agent.
9177	DisplayName string `json:"displayName,omitempty"`
9178
9179	// GenericWebService: Configuration for a generic web service.
9180	GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
9181
9182	// Name: The unique identifier of the webhook. Required for the
9183	// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the
9184	// name automatically. Format: `projects//locations//agents//webhooks/`.
9185	Name string `json:"name,omitempty"`
9186
9187	// Timeout: Webhook execution timeout. Execution is considered failed if
9188	// Dialogflow doesn't receive a response from webhook at the end of the
9189	// timeout period. Defaults to 5 seconds, maximum allowed timeout is 30
9190	// seconds.
9191	Timeout string `json:"timeout,omitempty"`
9192
9193	// ServerResponse contains the HTTP response code and headers from the
9194	// server.
9195	googleapi.ServerResponse `json:"-"`
9196
9197	// ForceSendFields is a list of field names (e.g. "Disabled") to
9198	// unconditionally include in API requests. By default, fields with
9199	// empty values are omitted from API requests. However, any non-pointer,
9200	// non-interface field appearing in ForceSendFields will be sent to the
9201	// server regardless of whether the field is empty or not. This may be
9202	// used to include empty fields in Patch requests.
9203	ForceSendFields []string `json:"-"`
9204
9205	// NullFields is a list of field names (e.g. "Disabled") to include in
9206	// API requests with the JSON null value. By default, fields with empty
9207	// values are omitted from API requests. However, any field with an
9208	// empty value appearing in NullFields will be sent to the server as
9209	// null. It is an error if a field in this list has a non-empty value.
9210	// This may be used to include null fields in Patch requests.
9211	NullFields []string `json:"-"`
9212}
9213
9214func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
9215	type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
9216	raw := NoMethod(*s)
9217	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9218}
9219
9220// GoogleCloudDialogflowCxV3beta1WebhookGenericWebService: Represents
9221// configuration for a generic web service.
9222type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
9223	// Password: The password for HTTP Basic authentication.
9224	Password string `json:"password,omitempty"`
9225
9226	// RequestHeaders: The HTTP request headers to send together with
9227	// webhook requests.
9228	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
9229
9230	// Uri: Required. The webhook URI for receiving POST requests. It must
9231	// use https protocol.
9232	Uri string `json:"uri,omitempty"`
9233
9234	// Username: The user name for HTTP Basic authentication.
9235	Username string `json:"username,omitempty"`
9236
9237	// ForceSendFields is a list of field names (e.g. "Password") to
9238	// unconditionally include in API requests. By default, fields with
9239	// empty values are omitted from API requests. However, any non-pointer,
9240	// non-interface field appearing in ForceSendFields will be sent to the
9241	// server regardless of whether the field is empty or not. This may be
9242	// used to include empty fields in Patch requests.
9243	ForceSendFields []string `json:"-"`
9244
9245	// NullFields is a list of field names (e.g. "Password") to include in
9246	// API requests with the JSON null value. By default, fields with empty
9247	// values are omitted from API requests. However, any field with an
9248	// empty value appearing in NullFields will be sent to the server as
9249	// null. It is an error if a field in this list has a non-empty value.
9250	// This may be used to include null fields in Patch requests.
9251	NullFields []string `json:"-"`
9252}
9253
9254func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
9255	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
9256	raw := NoMethod(*s)
9257	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9258}
9259
9260// GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for
9261// a webhook call. The request is sent as a JSON object and the field
9262// names will be presented in camel cases.
9263type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
9264	// DetectIntentResponseId: Always present. The unique identifier of the
9265	// DetectIntentResponse that will be returned to the API caller.
9266	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
9267
9268	// FulfillmentInfo: Always present. Information about the fulfillment
9269	// that triggered this webhook call.
9270	FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
9271
9272	// IntentInfo: Information about the last matched intent.
9273	IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
9274
9275	// Messages: The list of rich message responses to present to the user.
9276	// Webhook can choose to append or replace this list in
9277	// WebhookResponse.fulfillment_response;
9278	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
9279
9280	// PageInfo: Information about page status.
9281	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
9282
9283	// Payload: Custom data set in QueryParameters.payload.
9284	Payload googleapi.RawMessage `json:"payload,omitempty"`
9285
9286	// SentimentAnalysisResult: The sentiment analysis result of the current
9287	// user request. The field is filled when sentiment analysis is
9288	// configured to be enabled for the request.
9289	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
9290
9291	// SessionInfo: Information about session status.
9292	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
9293
9294	// ForceSendFields is a list of field names (e.g.
9295	// "DetectIntentResponseId") to unconditionally include in API requests.
9296	// By default, fields with empty values are omitted from API requests.
9297	// However, any non-pointer, non-interface field appearing in
9298	// ForceSendFields will be sent to the server regardless of whether the
9299	// field is empty or not. This may be used to include empty fields in
9300	// Patch requests.
9301	ForceSendFields []string `json:"-"`
9302
9303	// NullFields is a list of field names (e.g. "DetectIntentResponseId")
9304	// to include in API requests with the JSON null value. By default,
9305	// fields with empty values are omitted from API requests. However, any
9306	// field with an empty value appearing in NullFields will be sent to the
9307	// server as null. It is an error if a field in this list has a
9308	// non-empty value. This may be used to include null fields in Patch
9309	// requests.
9310	NullFields []string `json:"-"`
9311}
9312
9313func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
9314	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
9315	raw := NoMethod(*s)
9316	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9317}
9318
9319// GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo:
9320// Represents fulfillment information communicated to the webhook.
9321type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
9322	// Tag: Always present. The tag used to identify which fulfillment is
9323	// being called.
9324	Tag string `json:"tag,omitempty"`
9325
9326	// ForceSendFields is a list of field names (e.g. "Tag") to
9327	// unconditionally include in API requests. By default, fields with
9328	// empty values are omitted from API requests. However, any non-pointer,
9329	// non-interface field appearing in ForceSendFields will be sent to the
9330	// server regardless of whether the field is empty or not. This may be
9331	// used to include empty fields in Patch requests.
9332	ForceSendFields []string `json:"-"`
9333
9334	// NullFields is a list of field names (e.g. "Tag") to include in API
9335	// requests with the JSON null value. By default, fields with empty
9336	// values are omitted from API requests. However, any field with an
9337	// empty value appearing in NullFields will be sent to the server as
9338	// null. It is an error if a field in this list has a non-empty value.
9339	// This may be used to include null fields in Patch requests.
9340	NullFields []string `json:"-"`
9341}
9342
9343func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
9344	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
9345	raw := NoMethod(*s)
9346	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9347}
9348
9349// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents
9350// intent information communicated to the webhook.
9351type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
9352	// Confidence: The confidence of the matched intent. Values range from
9353	// 0.0 (completely uncertain) to 1.0 (completely certain).
9354	Confidence float64 `json:"confidence,omitempty"`
9355
9356	// DisplayName: Always present. The display name of the last matched
9357	// intent.
9358	DisplayName string `json:"displayName,omitempty"`
9359
9360	// LastMatchedIntent: Always present. The unique identifier of the last
9361	// matched intent. Format: `projects//locations//agents//intents/`.
9362	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
9363
9364	// Parameters: Parameters identified as a result of intent matching.
9365	// This is a map of the name of the identified parameter to the value of
9366	// the parameter identified from the user's utterance. All parameters
9367	// defined in the matched intent that are identified will be surfaced
9368	// here.
9369	Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
9370
9371	// ForceSendFields is a list of field names (e.g. "Confidence") to
9372	// unconditionally include in API requests. By default, fields with
9373	// empty values are omitted from API requests. However, any non-pointer,
9374	// non-interface field appearing in ForceSendFields will be sent to the
9375	// server regardless of whether the field is empty or not. This may be
9376	// used to include empty fields in Patch requests.
9377	ForceSendFields []string `json:"-"`
9378
9379	// NullFields is a list of field names (e.g. "Confidence") to include in
9380	// API requests with the JSON null value. By default, fields with empty
9381	// values are omitted from API requests. However, any field with an
9382	// empty value appearing in NullFields will be sent to the server as
9383	// null. It is an error if a field in this list has a non-empty value.
9384	// This may be used to include null fields in Patch requests.
9385	NullFields []string `json:"-"`
9386}
9387
9388func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
9389	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
9390	raw := NoMethod(*s)
9391	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9392}
9393
9394func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
9395	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
9396	var s1 struct {
9397		Confidence gensupport.JSONFloat64 `json:"confidence"`
9398		*NoMethod
9399	}
9400	s1.NoMethod = (*NoMethod)(s)
9401	if err := json.Unmarshal(data, &s1); err != nil {
9402		return err
9403	}
9404	s.Confidence = float64(s1.Confidence)
9405	return nil
9406}
9407
9408// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterV
9409// alue: Represents a value for an intent parameter.
9410type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
9411	// OriginalValue: Always present. Original text value extracted from
9412	// user utterance.
9413	OriginalValue string `json:"originalValue,omitempty"`
9414
9415	// ResolvedValue: Always present. Structured value for the parameter
9416	// extracted from user utterance.
9417	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
9418
9419	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
9420	// unconditionally include in API requests. By default, fields with
9421	// empty values are omitted from API requests. However, any non-pointer,
9422	// non-interface field appearing in ForceSendFields will be sent to the
9423	// server regardless of whether the field is empty or not. This may be
9424	// used to include empty fields in Patch requests.
9425	ForceSendFields []string `json:"-"`
9426
9427	// NullFields is a list of field names (e.g. "OriginalValue") to include
9428	// in API requests with the JSON null value. By default, fields with
9429	// empty values are omitted from API requests. However, any field with
9430	// an empty value appearing in NullFields will be sent to the server as
9431	// null. It is an error if a field in this list has a non-empty value.
9432	// This may be used to include null fields in Patch requests.
9433	NullFields []string `json:"-"`
9434}
9435
9436func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
9437	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
9438	raw := NoMethod(*s)
9439	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9440}
9441
9442// GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult:
9443// Represents the result of sentiment analysis.
9444type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
9445	// Magnitude: A non-negative number in the [0, +inf) range, which
9446	// represents the absolute magnitude of sentiment, regardless of score
9447	// (positive or negative).
9448	Magnitude float64 `json:"magnitude,omitempty"`
9449
9450	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
9451	// (positive sentiment).
9452	Score float64 `json:"score,omitempty"`
9453
9454	// ForceSendFields is a list of field names (e.g. "Magnitude") to
9455	// unconditionally include in API requests. By default, fields with
9456	// empty values are omitted from API requests. However, any non-pointer,
9457	// non-interface field appearing in ForceSendFields will be sent to the
9458	// server regardless of whether the field is empty or not. This may be
9459	// used to include empty fields in Patch requests.
9460	ForceSendFields []string `json:"-"`
9461
9462	// NullFields is a list of field names (e.g. "Magnitude") to include in
9463	// API requests with the JSON null value. By default, fields with empty
9464	// values are omitted from API requests. However, any field with an
9465	// empty value appearing in NullFields will be sent to the server as
9466	// null. It is an error if a field in this list has a non-empty value.
9467	// This may be used to include null fields in Patch requests.
9468	NullFields []string `json:"-"`
9469}
9470
9471func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
9472	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
9473	raw := NoMethod(*s)
9474	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9475}
9476
9477func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
9478	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
9479	var s1 struct {
9480		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
9481		Score     gensupport.JSONFloat64 `json:"score"`
9482		*NoMethod
9483	}
9484	s1.NoMethod = (*NoMethod)(s)
9485	if err := json.Unmarshal(data, &s1); err != nil {
9486		return err
9487	}
9488	s.Magnitude = float64(s1.Magnitude)
9489	s.Score = float64(s1.Score)
9490	return nil
9491}
9492
9493// GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message
9494// for a webhook call.
9495type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
9496	// FulfillmentResponse: The fulfillment response to send to the user.
9497	// This field can be omitted by the webhook if it does not intend to
9498	// send any response to the user.
9499	FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
9500
9501	// PageInfo: Information about page status. This field can be omitted by
9502	// the webhook if it does not intend to modify page status.
9503	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
9504
9505	// Payload: Value to append directly to QueryResult.webhook_payloads.
9506	Payload googleapi.RawMessage `json:"payload,omitempty"`
9507
9508	// SessionInfo: Information about session status. This field can be
9509	// omitted by the webhook if it does not intend to modify session
9510	// status.
9511	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
9512
9513	// TargetFlow: The target flow to transition to. Format:
9514	// `projects//locations//agents//flows/`.
9515	TargetFlow string `json:"targetFlow,omitempty"`
9516
9517	// TargetPage: The target page to transition to. Format:
9518	// `projects//locations//agents//flows//pages/`.
9519	TargetPage string `json:"targetPage,omitempty"`
9520
9521	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse")
9522	// to unconditionally include in API requests. By default, fields with
9523	// empty values are omitted from API requests. However, any non-pointer,
9524	// non-interface field appearing in ForceSendFields will be sent to the
9525	// server regardless of whether the field is empty or not. This may be
9526	// used to include empty fields in Patch requests.
9527	ForceSendFields []string `json:"-"`
9528
9529	// NullFields is a list of field names (e.g. "FulfillmentResponse") to
9530	// include in API requests with the JSON null value. By default, fields
9531	// with empty values are omitted from API requests. However, any field
9532	// with an empty value appearing in NullFields will be sent to the
9533	// server as null. It is an error if a field in this list has a
9534	// non-empty value. This may be used to include null fields in Patch
9535	// requests.
9536	NullFields []string `json:"-"`
9537}
9538
9539func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
9540	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
9541	raw := NoMethod(*s)
9542	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9543}
9544
9545// GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse:
9546// Represents a fulfillment response to the user.
9547type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
9548	// MergeBehavior: Merge behavior for `messages`.
9549	//
9550	// Possible values:
9551	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be
9552	// used.
9553	//   "APPEND" - `messages` will be appended to the list of messages
9554	// waiting to be sent to the user.
9555	//   "REPLACE" - `messages` will replace the list of messages waiting to
9556	// be sent to the user.
9557	MergeBehavior string `json:"mergeBehavior,omitempty"`
9558
9559	// Messages: The list of rich message responses to present to the user.
9560	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
9561
9562	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
9563	// unconditionally include in API requests. By default, fields with
9564	// empty values are omitted from API requests. However, any non-pointer,
9565	// non-interface field appearing in ForceSendFields will be sent to the
9566	// server regardless of whether the field is empty or not. This may be
9567	// used to include empty fields in Patch requests.
9568	ForceSendFields []string `json:"-"`
9569
9570	// NullFields is a list of field names (e.g. "MergeBehavior") to include
9571	// in API requests with the JSON null value. By default, fields with
9572	// empty values are omitted from API requests. However, any field with
9573	// an empty value appearing in NullFields will be sent to the server as
9574	// null. It is an error if a field in this list has a non-empty value.
9575	// This may be used to include null fields in Patch requests.
9576	NullFields []string `json:"-"`
9577}
9578
9579func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
9580	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
9581	raw := NoMethod(*s)
9582	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9583}
9584
9585// GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a
9586// message possibly annotated with an entity. The part can be an entity
9587// or purely a part of the message between two entities or message
9588// start/end.
9589type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
9590	// EntityType: The Dialogflow system entity type
9591	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
9592	// of this message part. If this is empty, Dialogflow could not annotate
9593	// the phrase part with a system entity.
9594	EntityType string `json:"entityType,omitempty"`
9595
9596	// FormattedValue: The Dialogflow system entity formatted value
9597	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
9598	// of this message part. For example for a system entity of type
9599	// `@sys.unit-currency`, this may contain: { "amount": 5, "currency":
9600	// "USD" }
9601	FormattedValue interface{} `json:"formattedValue,omitempty"`
9602
9603	// Text: A part of a message possibly annotated with an 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 *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
9624	type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
9625	raw := NoMethod(*s)
9626	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9627}
9628
9629// GoogleCloudDialogflowV2ArticleAnswer: Represents article answer.
9630type GoogleCloudDialogflowV2ArticleAnswer struct {
9631	// AnswerRecord: The name of answer record, in the format of
9632	// "projects//locations//answerRecords/"
9633	AnswerRecord string `json:"answerRecord,omitempty"`
9634
9635	// Confidence: Article match confidence. The system's confidence score
9636	// that this article is a good match for this conversation, as a value
9637	// from 0.0 (completely uncertain) to 1.0 (completely certain).
9638	Confidence float64 `json:"confidence,omitempty"`
9639
9640	// Metadata: A map that contains metadata about the answer and the
9641	// document from which it originates.
9642	Metadata map[string]string `json:"metadata,omitempty"`
9643
9644	// Snippets: Article snippets.
9645	Snippets []string `json:"snippets,omitempty"`
9646
9647	// Title: The article title.
9648	Title string `json:"title,omitempty"`
9649
9650	// Uri: The article URI.
9651	Uri string `json:"uri,omitempty"`
9652
9653	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
9654	// unconditionally include in API requests. By default, fields with
9655	// empty values are omitted from API requests. However, any non-pointer,
9656	// non-interface field appearing in ForceSendFields will be sent to the
9657	// server regardless of whether the field is empty or not. This may be
9658	// used to include empty fields in Patch requests.
9659	ForceSendFields []string `json:"-"`
9660
9661	// NullFields is a list of field names (e.g. "AnswerRecord") to include
9662	// in API requests with the JSON null value. By default, fields with
9663	// empty values are omitted from API requests. However, any field with
9664	// an empty value appearing in NullFields will be sent to the server as
9665	// null. It is an error if a field in this list has a non-empty value.
9666	// This may be used to include null fields in Patch requests.
9667	NullFields []string `json:"-"`
9668}
9669
9670func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
9671	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
9672	raw := NoMethod(*s)
9673	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9674}
9675
9676func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
9677	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
9678	var s1 struct {
9679		Confidence gensupport.JSONFloat64 `json:"confidence"`
9680		*NoMethod
9681	}
9682	s1.NoMethod = (*NoMethod)(s)
9683	if err := json.Unmarshal(data, &s1); err != nil {
9684		return err
9685	}
9686	s.Confidence = float64(s1.Confidence)
9687	return nil
9688}
9689
9690// GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response
9691// message for EntityTypes.BatchUpdateEntityTypes.
9692type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
9693	// EntityTypes: The collection of updated or created entity types.
9694	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
9695
9696	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
9697	// unconditionally include in API requests. By default, fields with
9698	// empty values are omitted from API requests. However, any non-pointer,
9699	// non-interface field appearing in ForceSendFields will be sent to the
9700	// server regardless of whether the field is empty or not. This may be
9701	// used to include empty fields in Patch requests.
9702	ForceSendFields []string `json:"-"`
9703
9704	// NullFields is a list of field names (e.g. "EntityTypes") to include
9705	// in API requests with the JSON null value. By default, fields with
9706	// empty values are omitted from API requests. However, any field with
9707	// an empty value appearing in NullFields will be sent to the server as
9708	// null. It is an error if a field in this list has a non-empty value.
9709	// This may be used to include null fields in Patch requests.
9710	NullFields []string `json:"-"`
9711}
9712
9713func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
9714	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
9715	raw := NoMethod(*s)
9716	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9717}
9718
9719// GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response
9720// message for Intents.BatchUpdateIntents.
9721type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
9722	// Intents: The collection of updated or created intents.
9723	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
9724
9725	// ForceSendFields is a list of field names (e.g. "Intents") to
9726	// unconditionally include in API requests. By default, fields with
9727	// empty values are omitted from API requests. However, any non-pointer,
9728	// non-interface field appearing in ForceSendFields will be sent to the
9729	// server regardless of whether the field is empty or not. This may be
9730	// used to include empty fields in Patch requests.
9731	ForceSendFields []string `json:"-"`
9732
9733	// NullFields is a list of field names (e.g. "Intents") to include in
9734	// API requests with the JSON null value. By default, fields with empty
9735	// values are omitted from API requests. However, any field with an
9736	// empty value appearing in NullFields will be sent to the server as
9737	// null. It is an error if a field in this list has a non-empty value.
9738	// This may be used to include null fields in Patch requests.
9739	NullFields []string `json:"-"`
9740}
9741
9742func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
9743	type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
9744	raw := NoMethod(*s)
9745	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9746}
9747
9748// GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to
9749// natural language context. If a person says to you "they are orange",
9750// you need context in order to understand what "they" is referring to.
9751// Similarly, for Dialogflow to handle an end-user expression like that,
9752// it needs to be provided with context in order to correctly match an
9753// intent. Using contexts, you can control the flow of a conversation.
9754// You can configure contexts for an intent by setting input and output
9755// contexts, which are identified by string names. When an intent is
9756// matched, any configured output contexts for that intent become
9757// active. While any contexts are active, Dialogflow is more likely to
9758// match intents that are configured with input contexts that correspond
9759// to the currently active contexts. For more information about context,
9760// see the Contexts guide
9761// (https://cloud.google.com/dialogflow/docs/contexts-overview).
9762type GoogleCloudDialogflowV2Context struct {
9763	// LifespanCount: Optional. The number of conversational query requests
9764	// after which the context expires. The default is `0`. If set to `0`,
9765	// the context expires immediately. Contexts expire automatically after
9766	// 20 minutes if there are no matching queries.
9767	LifespanCount int64 `json:"lifespanCount,omitempty"`
9768
9769	// Name: Required. The unique identifier of the context. Format:
9770	// `projects//agent/sessions//contexts/`, or
9771	// `projects//agent/environments//users//sessions//contexts/`. The
9772	// `Context ID` is always converted to lowercase, may only contain
9773	// characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If
9774	// `Environment ID` is not specified, we assume default 'draft'
9775	// environment. If `User ID` is not specified, we assume default '-'
9776	// user. The following context names are reserved for internal use by
9777	// Dialogflow. You should not use these contexts or create contexts with
9778	// these names: * `__system_counters__` * `*_id_dialog_context` *
9779	// `*_dialog_params_size`
9780	Name string `json:"name,omitempty"`
9781
9782	// Parameters: Optional. The collection of parameters associated with
9783	// this context. Depending on your protocol or client library language,
9784	// this is a map, associative array, symbol table, dictionary, or JSON
9785	// object composed of a collection of (MapKey, MapValue) pairs: - MapKey
9786	// type: string - MapKey value: parameter name - MapValue type: - If
9787	// parameter's entity type is a composite entity: map - Else: depending
9788	// on parameter value type, could be one of string, number, boolean,
9789	// null, list or map - MapValue value: - If parameter's entity type is a
9790	// composite entity: map from composite entity property names to
9791	// property values - Else: parameter value
9792	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
9793
9794	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
9795	// unconditionally include in API requests. By default, fields with
9796	// empty values are omitted from API requests. However, any non-pointer,
9797	// non-interface field appearing in ForceSendFields will be sent to the
9798	// server regardless of whether the field is empty or not. This may be
9799	// used to include empty fields in Patch requests.
9800	ForceSendFields []string `json:"-"`
9801
9802	// NullFields is a list of field names (e.g. "LifespanCount") to include
9803	// in API requests with the JSON null value. By default, fields with
9804	// empty values are omitted from API requests. However, any field with
9805	// an empty value appearing in NullFields will be sent to the server as
9806	// null. It is an error if a field in this list has a non-empty value.
9807	// This may be used to include null fields in Patch requests.
9808	NullFields []string `json:"-"`
9809}
9810
9811func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
9812	type NoMethod GoogleCloudDialogflowV2Context
9813	raw := NoMethod(*s)
9814	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9815}
9816
9817// GoogleCloudDialogflowV2ConversationEvent: Represents a notification
9818// sent to Pub/Sub subscribers for conversation lifecycle events.
9819type GoogleCloudDialogflowV2ConversationEvent struct {
9820	// Conversation: The unique identifier of the conversation this
9821	// notification refers to. Format: `projects//conversations/`.
9822	Conversation string `json:"conversation,omitempty"`
9823
9824	// ErrorStatus: More detailed information about an error. Only set for
9825	// type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
9826	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
9827
9828	// NewMessagePayload: Payload of NEW_MESSAGE event.
9829	NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
9830
9831	// Type: The type of the event that this notification refers to.
9832	//
9833	// Possible values:
9834	//   "TYPE_UNSPECIFIED" - Type not set.
9835	//   "CONVERSATION_STARTED" - A new conversation has been opened. This
9836	// is fired when a telephone call is answered, or a conversation is
9837	// created via the API.
9838	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This
9839	// is fired when a telephone call is terminated, or a conversation is
9840	// closed via the API.
9841	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
9842	// notification from Dialogflow that human intervention is required.
9843	//   "NEW_MESSAGE" - An existing conversation has received a new
9844	// message, either from API or telephony. It is configured in
9845	// ConversationProfile.new_message_event_notification_config
9846	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone
9847	// call. In general non-recoverable errors only occur if something was
9848	// misconfigured in the ConversationProfile corresponding to the call.
9849	// After a non-recoverable error, Dialogflow may stop responding. We
9850	// don't fire this event: * in an API call because we can directly
9851	// return the error, or, * when we can recover from an error.
9852	Type string `json:"type,omitempty"`
9853
9854	// ForceSendFields is a list of field names (e.g. "Conversation") to
9855	// unconditionally include in API requests. By default, fields with
9856	// empty values are omitted from API requests. However, any non-pointer,
9857	// non-interface field appearing in ForceSendFields will be sent to the
9858	// server regardless of whether the field is empty or not. This may be
9859	// used to include empty fields in Patch requests.
9860	ForceSendFields []string `json:"-"`
9861
9862	// NullFields is a list of field names (e.g. "Conversation") to include
9863	// in API requests with the JSON null value. By default, fields with
9864	// empty values are omitted from API requests. However, any field with
9865	// an empty value appearing in NullFields will be sent to the server as
9866	// null. It is an error if a field in this list has a non-empty value.
9867	// This may be used to include null fields in Patch requests.
9868	NullFields []string `json:"-"`
9869}
9870
9871func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
9872	type NoMethod GoogleCloudDialogflowV2ConversationEvent
9873	raw := NoMethod(*s)
9874	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9875}
9876
9877// GoogleCloudDialogflowV2EntityType: Each intent parameter has a type,
9878// called the entity type, which dictates exactly how data from an
9879// end-user expression is extracted. Dialogflow provides predefined
9880// system entities that can match many common types of data. For
9881// example, there are system entities for matching dates, times, colors,
9882// email addresses, and so on. You can also create your own custom
9883// entities for matching custom data. For example, you could define a
9884// vegetable entity that can match the types of vegetables available for
9885// purchase with a grocery store agent. For more information, see the
9886// Entity guide
9887// (https://cloud.google.com/dialogflow/docs/entities-overview).
9888type GoogleCloudDialogflowV2EntityType struct {
9889	// AutoExpansionMode: Optional. Indicates whether the entity type can be
9890	// automatically expanded.
9891	//
9892	// Possible values:
9893	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
9894	// entity.
9895	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
9896	// that have not been explicitly listed in the entity.
9897	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
9898
9899	// DisplayName: Required. The name of the entity type.
9900	DisplayName string `json:"displayName,omitempty"`
9901
9902	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction
9903	// during classification.
9904	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
9905
9906	// Entities: Optional. The collection of entity entries associated with
9907	// the entity type.
9908	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
9909
9910	// Kind: Required. Indicates the kind of entity type.
9911	//
9912	// Possible values:
9913	//   "KIND_UNSPECIFIED" - Not specified. This value should be never
9914	// used.
9915	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms
9916	// to a reference value.
9917	//   "KIND_LIST" - List entity types contain a set of entries that do
9918	// not map to reference values. However, list entity types can contain
9919	// references to other entity types (with or without aliases).
9920	//   "KIND_REGEXP" - Regexp entity types allow to specify regular
9921	// expressions in entries values.
9922	Kind string `json:"kind,omitempty"`
9923
9924	// Name: The unique identifier of the entity type. Required for
9925	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
9926	// methods. Format: `projects//agent/entityTypes/`.
9927	Name string `json:"name,omitempty"`
9928
9929	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
9930	// to unconditionally include in API requests. By default, fields with
9931	// empty values are omitted from API requests. However, any non-pointer,
9932	// non-interface field appearing in ForceSendFields will be sent to the
9933	// server regardless of whether the field is empty or not. This may be
9934	// used to include empty fields in Patch requests.
9935	ForceSendFields []string `json:"-"`
9936
9937	// NullFields is a list of field names (e.g. "AutoExpansionMode") to
9938	// include in API requests with the JSON null value. By default, fields
9939	// with empty values are omitted from API requests. However, any field
9940	// with an empty value appearing in NullFields will be sent to the
9941	// server as null. It is an error if a field in this list has a
9942	// non-empty value. This may be used to include null fields in Patch
9943	// requests.
9944	NullFields []string `json:"-"`
9945}
9946
9947func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
9948	type NoMethod GoogleCloudDialogflowV2EntityType
9949	raw := NoMethod(*s)
9950	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9951}
9952
9953// GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an
9954// associated entity type.
9955type GoogleCloudDialogflowV2EntityTypeEntity struct {
9956	// Synonyms: Required. A collection of value synonyms. For example, if
9957	// the entity type is *vegetable*, and `value` is *scallions*, a synonym
9958	// could be *green onions*. For `KIND_LIST` entity types: * This
9959	// collection must contain exactly one synonym equal to `value`.
9960	Synonyms []string `json:"synonyms,omitempty"`
9961
9962	// Value: Required. The primary value associated with this entity entry.
9963	// For example, if the entity type is *vegetable*, the value could be
9964	// *scallions*. For `KIND_MAP` entity types: * A reference value to be
9965	// used in place of synonyms. For `KIND_LIST` entity types: * A string
9966	// that can contain references to other entity types (with or without
9967	// aliases).
9968	Value string `json:"value,omitempty"`
9969
9970	// ForceSendFields is a list of field names (e.g. "Synonyms") to
9971	// unconditionally include in API requests. By default, fields with
9972	// empty values are omitted from API requests. However, any non-pointer,
9973	// non-interface field appearing in ForceSendFields will be sent to the
9974	// server regardless of whether the field is empty or not. This may be
9975	// used to include empty fields in Patch requests.
9976	ForceSendFields []string `json:"-"`
9977
9978	// NullFields is a list of field names (e.g. "Synonyms") to include in
9979	// API requests with the JSON null value. By default, fields with empty
9980	// values are omitted from API requests. However, any field with an
9981	// empty value appearing in NullFields will be sent to the server as
9982	// null. It is an error if a field in this list has a non-empty value.
9983	// This may be used to include null fields in Patch requests.
9984	NullFields []string `json:"-"`
9985}
9986
9987func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
9988	type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
9989	raw := NoMethod(*s)
9990	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9991}
9992
9993// GoogleCloudDialogflowV2EventInput: Events allow for matching intents
9994// by event name instead of the natural language input. For instance,
9995// input `` can trigger a personalized welcome response. The parameter
9996// `name` may be used by the agent in the response: "Hello
9997// #welcome_event.name! What can I do for you today?".
9998type GoogleCloudDialogflowV2EventInput struct {
9999	// LanguageCode: Required. The language of this query. See Language
10000	// Support (https://cloud.google.com/dialogflow/docs/reference/language)
10001	// for a list of the currently supported language codes. Note that
10002	// queries in the same session do not necessarily need to specify the
10003	// same language.
10004	LanguageCode string `json:"languageCode,omitempty"`
10005
10006	// Name: Required. The unique identifier of the event.
10007	Name string `json:"name,omitempty"`
10008
10009	// Parameters: The collection of parameters associated with the event.
10010	// Depending on your protocol or client library language, this is a map,
10011	// associative array, symbol table, dictionary, or JSON object composed
10012	// of a collection of (MapKey, MapValue) pairs: - MapKey type: string -
10013	// MapKey value: parameter name - MapValue type: - If parameter's entity
10014	// type is a composite entity: map - Else: depending on parameter value
10015	// type, could be one of string, number, boolean, null, list or map -
10016	// MapValue value: - If parameter's entity type is a composite entity:
10017	// map from composite entity property names to property values - Else:
10018	// parameter value
10019	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
10020
10021	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
10022	// unconditionally include in API requests. By default, fields with
10023	// empty values are omitted from API requests. However, any non-pointer,
10024	// non-interface field appearing in ForceSendFields will be sent to the
10025	// server regardless of whether the field is empty or not. This may be
10026	// used to include empty fields in Patch requests.
10027	ForceSendFields []string `json:"-"`
10028
10029	// NullFields is a list of field names (e.g. "LanguageCode") to include
10030	// in API requests with the JSON null value. By default, fields with
10031	// empty values are omitted from API requests. However, any field with
10032	// an empty value appearing in NullFields will be sent to the server as
10033	// null. It is an error if a field in this list has a non-empty value.
10034	// This may be used to include null fields in Patch requests.
10035	NullFields []string `json:"-"`
10036}
10037
10038func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
10039	type NoMethod GoogleCloudDialogflowV2EventInput
10040	raw := NoMethod(*s)
10041	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10042}
10043
10044// GoogleCloudDialogflowV2ExportAgentResponse: The response message for
10045// Agents.ExportAgent.
10046type GoogleCloudDialogflowV2ExportAgentResponse struct {
10047	// AgentContent: Zip compressed raw byte content for agent.
10048	AgentContent string `json:"agentContent,omitempty"`
10049
10050	// AgentUri: The URI to a file containing the exported agent. This field
10051	// is populated only if `agent_uri` is specified in
10052	// `ExportAgentRequest`.
10053	AgentUri string `json:"agentUri,omitempty"`
10054
10055	// ForceSendFields is a list of field names (e.g. "AgentContent") to
10056	// unconditionally include in API requests. By default, fields with
10057	// empty values are omitted from API requests. However, any non-pointer,
10058	// non-interface field appearing in ForceSendFields will be sent to the
10059	// server regardless of whether the field is empty or not. This may be
10060	// used to include empty fields in Patch requests.
10061	ForceSendFields []string `json:"-"`
10062
10063	// NullFields is a list of field names (e.g. "AgentContent") to include
10064	// in API requests with the JSON null value. By default, fields with
10065	// empty values are omitted from API requests. However, any field with
10066	// an empty value appearing in NullFields will be sent to the server as
10067	// null. It is an error if a field in this list has a non-empty value.
10068	// This may be used to include null fields in Patch requests.
10069	NullFields []string `json:"-"`
10070}
10071
10072func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
10073	type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
10074	raw := NoMethod(*s)
10075	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10076}
10077
10078// GoogleCloudDialogflowV2FaqAnswer: Represents answer from "frequently
10079// asked questions".
10080type GoogleCloudDialogflowV2FaqAnswer struct {
10081	// Answer: The piece of text from the `source` knowledge base document.
10082	Answer string `json:"answer,omitempty"`
10083
10084	// AnswerRecord: The name of answer record, in the format of
10085	// "projects//locations//answerRecords/"
10086	AnswerRecord string `json:"answerRecord,omitempty"`
10087
10088	// Confidence: The system's confidence score that this Knowledge answer
10089	// is a good match for this conversational query, range from 0.0
10090	// (completely uncertain) to 1.0 (completely certain).
10091	Confidence float64 `json:"confidence,omitempty"`
10092
10093	// Metadata: A map that contains metadata about the answer and the
10094	// document from which it originates.
10095	Metadata map[string]string `json:"metadata,omitempty"`
10096
10097	// Question: The corresponding FAQ question.
10098	Question string `json:"question,omitempty"`
10099
10100	// Source: Indicates which Knowledge Document this answer was extracted
10101	// from. Format:
10102	// `projects//locations//agent/knowledgeBases//documents/`.
10103	Source string `json:"source,omitempty"`
10104
10105	// ForceSendFields is a list of field names (e.g. "Answer") to
10106	// unconditionally include in API requests. By default, fields with
10107	// empty values are omitted from API requests. However, any non-pointer,
10108	// non-interface field appearing in ForceSendFields will be sent to the
10109	// server regardless of whether the field is empty or not. This may be
10110	// used to include empty fields in Patch requests.
10111	ForceSendFields []string `json:"-"`
10112
10113	// NullFields is a list of field names (e.g. "Answer") to include in API
10114	// requests with the JSON null value. By default, fields with empty
10115	// values are omitted from API requests. However, any field with an
10116	// empty value appearing in NullFields will be sent to the server as
10117	// null. It is an error if a field in this list has a non-empty value.
10118	// This may be used to include null fields in Patch requests.
10119	NullFields []string `json:"-"`
10120}
10121
10122func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
10123	type NoMethod GoogleCloudDialogflowV2FaqAnswer
10124	raw := NoMethod(*s)
10125	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10126}
10127
10128func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
10129	type NoMethod GoogleCloudDialogflowV2FaqAnswer
10130	var s1 struct {
10131		Confidence gensupport.JSONFloat64 `json:"confidence"`
10132		*NoMethod
10133	}
10134	s1.NoMethod = (*NoMethod)(s)
10135	if err := json.Unmarshal(data, &s1); err != nil {
10136		return err
10137	}
10138	s.Confidence = float64(s1.Confidence)
10139	return nil
10140}
10141
10142// GoogleCloudDialogflowV2HumanAgentAssistantEvent: Represents a
10143// notification sent to Cloud Pub/Sub subscribers for human agent
10144// assistant events in a specific conversation.
10145type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
10146	// Conversation: The conversation this notification refers to. Format:
10147	// `projects//conversations/`.
10148	Conversation string `json:"conversation,omitempty"`
10149
10150	// Participant: The participant that the suggestion is compiled for.
10151	// Format: `projects//conversations//participants/`. It will not be set
10152	// in legacy workflow.
10153	Participant string `json:"participant,omitempty"`
10154
10155	// SuggestionResults: The suggestion results payload that this
10156	// notification refers to.
10157	SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
10158
10159	// ForceSendFields is a list of field names (e.g. "Conversation") to
10160	// unconditionally include in API requests. By default, fields with
10161	// empty values are omitted from API requests. However, any non-pointer,
10162	// non-interface field appearing in ForceSendFields will be sent to the
10163	// server regardless of whether the field is empty or not. This may be
10164	// used to include empty fields in Patch requests.
10165	ForceSendFields []string `json:"-"`
10166
10167	// NullFields is a list of field names (e.g. "Conversation") to include
10168	// in API requests with the JSON null value. By default, fields with
10169	// empty values are omitted from API requests. However, any field with
10170	// an empty value appearing in NullFields will be sent to the server as
10171	// null. It is an error if a field in this list has a non-empty value.
10172	// This may be used to include null fields in Patch requests.
10173	NullFields []string `json:"-"`
10174}
10175
10176func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
10177	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
10178	raw := NoMethod(*s)
10179	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10180}
10181
10182// GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's
10183// intention for one conversation turn. For each agent, you define many
10184// intents, where your combined intents can handle a complete
10185// conversation. When an end-user writes or says something, referred to
10186// as an end-user expression or end-user input, Dialogflow matches the
10187// end-user input to the best intent in your agent. Matching an intent
10188// is also known as intent classification. For more information, see the
10189// intent guide
10190// (https://cloud.google.com/dialogflow/docs/intents-overview).
10191type GoogleCloudDialogflowV2Intent struct {
10192	// Action: Optional. The name of the action associated with the intent.
10193	// Note: The action name must not contain whitespaces.
10194	Action string `json:"action,omitempty"`
10195
10196	// DefaultResponsePlatforms: Optional. The list of platforms for which
10197	// the first responses will be copied from the messages in
10198	// PLATFORM_UNSPECIFIED (i.e. default platform).
10199	//
10200	// Possible values:
10201	//   "PLATFORM_UNSPECIFIED" - Default platform.
10202	//   "FACEBOOK" - Facebook.
10203	//   "SLACK" - Slack.
10204	//   "TELEGRAM" - Telegram.
10205	//   "KIK" - Kik.
10206	//   "SKYPE" - Skype.
10207	//   "LINE" - Line.
10208	//   "VIBER" - Viber.
10209	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
10210	// format](https://developers.google.com/assistant/actions/build/json/dia
10211	// logflow-webhook-json)
10212	//   "GOOGLE_HANGOUTS" - Google Hangouts.
10213	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
10214
10215	// DisplayName: Required. The name of this intent.
10216	DisplayName string `json:"displayName,omitempty"`
10217
10218	// EndInteraction: Optional. Indicates that this intent ends an
10219	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
10220	// phone gateway) use this information to close interaction with an end
10221	// user. Default is false.
10222	EndInteraction bool `json:"endInteraction,omitempty"`
10223
10224	// Events: Optional. The collection of event names that trigger the
10225	// intent. If the collection of input contexts is not empty, all of the
10226	// contexts must be present in the active user session for an event to
10227	// trigger this intent. Event names are limited to 150 characters.
10228	Events []string `json:"events,omitempty"`
10229
10230	// FollowupIntentInfo: Read-only. Information about all followup intents
10231	// that have this intent as a direct or indirect parent. We populate
10232	// this field only in the output.
10233	FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
10234
10235	// InputContextNames: Optional. The list of context names required for
10236	// this intent to be triggered. Format:
10237	// `projects//agent/sessions/-/contexts/`.
10238	InputContextNames []string `json:"inputContextNames,omitempty"`
10239
10240	// IsFallback: Optional. Indicates whether this is a fallback intent.
10241	IsFallback bool `json:"isFallback,omitempty"`
10242
10243	// LiveAgentHandoff: Optional. Indicates that a live agent should be
10244	// brought in to handle the interaction with the user. In most cases,
10245	// when you set this flag to true, you would also want to set
10246	// end_interaction to true as well. Default is false.
10247	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
10248
10249	// Messages: Optional. The collection of rich messages corresponding to
10250	// the `Response` field in the Dialogflow console.
10251	Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
10252
10253	// MlDisabled: Optional. Indicates whether Machine Learning is disabled
10254	// for the intent. Note: If `ml_disabled` setting is set to true, then
10255	// this intent is not taken into account during inference in `ML ONLY`
10256	// match mode. Also, auto-markup in the UI is turned off.
10257	MlDisabled bool `json:"mlDisabled,omitempty"`
10258
10259	// Name: Optional. The unique identifier of this intent. Required for
10260	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
10261	// `projects//agent/intents/`.
10262	Name string `json:"name,omitempty"`
10263
10264	// OutputContexts: Optional. The collection of contexts that are
10265	// activated when the intent is matched. Context messages in this
10266	// collection should not set the parameters field. Setting the
10267	// `lifespan_count` to 0 will reset the context when the intent is
10268	// matched. Format: `projects//agent/sessions/-/contexts/`.
10269	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
10270
10271	// Parameters: Optional. The collection of parameters associated with
10272	// the intent.
10273	Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
10274
10275	// ParentFollowupIntentName: Read-only after creation. The unique
10276	// identifier of the parent intent in the chain of followup intents. You
10277	// can set this field when creating an intent, for example with
10278	// CreateIntent or BatchUpdateIntents, in order to make this intent a
10279	// followup intent. It identifies the parent followup intent. Format:
10280	// `projects//agent/intents/`.
10281	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
10282
10283	// Priority: Optional. The priority of this intent. Higher numbers
10284	// represent higher priorities. - If the supplied value is unspecified
10285	// or 0, the service translates the value to 500,000, which corresponds
10286	// to the `Normal` priority in the console. - If the supplied value is
10287	// negative, the intent is ignored in runtime detect intent requests.
10288	Priority int64 `json:"priority,omitempty"`
10289
10290	// ResetContexts: Optional. Indicates whether to delete all contexts in
10291	// the current session when this intent is matched.
10292	ResetContexts bool `json:"resetContexts,omitempty"`
10293
10294	// RootFollowupIntentName: Read-only. The unique identifier of the root
10295	// intent in the chain of followup intents. It identifies the correct
10296	// followup intents chain for this intent. We populate this field only
10297	// in the output. Format: `projects//agent/intents/`.
10298	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
10299
10300	// TrainingPhrases: Optional. The collection of examples that the agent
10301	// is trained on.
10302	TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
10303
10304	// WebhookState: Optional. Indicates whether webhooks are enabled for
10305	// the intent.
10306	//
10307	// Possible values:
10308	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and
10309	// in the intent.
10310	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in
10311	// the intent.
10312	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in
10313	// the agent and in the intent. Also, each slot filling prompt is
10314	// forwarded to the webhook.
10315	WebhookState string `json:"webhookState,omitempty"`
10316
10317	// ForceSendFields is a list of field names (e.g. "Action") to
10318	// unconditionally include in API requests. By default, fields with
10319	// empty values are omitted from API requests. However, any non-pointer,
10320	// non-interface field appearing in ForceSendFields will be sent to the
10321	// server regardless of whether the field is empty or not. This may be
10322	// used to include empty fields in Patch requests.
10323	ForceSendFields []string `json:"-"`
10324
10325	// NullFields is a list of field names (e.g. "Action") to include in API
10326	// requests with the JSON null value. By default, fields with empty
10327	// values are omitted from API requests. However, any field with an
10328	// empty value appearing in NullFields will be sent to the server as
10329	// null. It is an error if a field in this list has a non-empty value.
10330	// This may be used to include null fields in Patch requests.
10331	NullFields []string `json:"-"`
10332}
10333
10334func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
10335	type NoMethod GoogleCloudDialogflowV2Intent
10336	raw := NoMethod(*s)
10337	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10338}
10339
10340// GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single
10341// followup intent in the chain.
10342type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
10343	// FollowupIntentName: The unique identifier of the followup intent.
10344	// Format: `projects//agent/intents/`.
10345	FollowupIntentName string `json:"followupIntentName,omitempty"`
10346
10347	// ParentFollowupIntentName: The unique identifier of the followup
10348	// intent's parent. Format: `projects//agent/intents/`.
10349	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
10350
10351	// ForceSendFields is a list of field names (e.g. "FollowupIntentName")
10352	// to unconditionally include in API requests. By default, fields with
10353	// empty values are omitted from API requests. However, any non-pointer,
10354	// non-interface field appearing in ForceSendFields will be sent to the
10355	// server regardless of whether the field is empty or not. This may be
10356	// used to include empty fields in Patch requests.
10357	ForceSendFields []string `json:"-"`
10358
10359	// NullFields is a list of field names (e.g. "FollowupIntentName") to
10360	// include in API requests with the JSON null value. By default, fields
10361	// with empty values are omitted from API requests. However, any field
10362	// with an empty value appearing in NullFields will be sent to the
10363	// server as null. It is an error if a field in this list has a
10364	// non-empty value. This may be used to include null fields in Patch
10365	// requests.
10366	NullFields []string `json:"-"`
10367}
10368
10369func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
10370	type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
10371	raw := NoMethod(*s)
10372	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10373}
10374
10375// GoogleCloudDialogflowV2IntentMessage: A rich response message.
10376// Corresponds to the intent `Response` field in the Dialogflow console.
10377// For more information, see Rich response messages
10378// (https://cloud.google.com/dialogflow/docs/intents-rich-messages).
10379type GoogleCloudDialogflowV2IntentMessage struct {
10380	// BasicCard: The basic card response for Actions on Google.
10381	BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
10382
10383	// BrowseCarouselCard: Browse carousel card for Actions on Google.
10384	BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
10385
10386	// Card: The card response.
10387	Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
10388
10389	// CarouselSelect: The carousel card response for Actions on Google.
10390	CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
10391
10392	// Image: The image response.
10393	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
10394
10395	// LinkOutSuggestion: The link out suggestion chip for Actions on
10396	// Google.
10397	LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
10398
10399	// ListSelect: The list card response for Actions on Google.
10400	ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
10401
10402	// MediaContent: The media content card for Actions on Google.
10403	MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
10404
10405	// Payload: A custom platform-specific response.
10406	Payload googleapi.RawMessage `json:"payload,omitempty"`
10407
10408	// Platform: Optional. The platform that this message is intended for.
10409	//
10410	// Possible values:
10411	//   "PLATFORM_UNSPECIFIED" - Default platform.
10412	//   "FACEBOOK" - Facebook.
10413	//   "SLACK" - Slack.
10414	//   "TELEGRAM" - Telegram.
10415	//   "KIK" - Kik.
10416	//   "SKYPE" - Skype.
10417	//   "LINE" - Line.
10418	//   "VIBER" - Viber.
10419	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
10420	// format](https://developers.google.com/assistant/actions/build/json/dia
10421	// logflow-webhook-json)
10422	//   "GOOGLE_HANGOUTS" - Google Hangouts.
10423	Platform string `json:"platform,omitempty"`
10424
10425	// QuickReplies: The quick replies response.
10426	QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
10427
10428	// SimpleResponses: The voice and text-only responses for Actions on
10429	// Google.
10430	SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
10431
10432	// Suggestions: The suggestion chips for Actions on Google.
10433	Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
10434
10435	// TableCard: Table card for Actions on Google.
10436	TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
10437
10438	// Text: The text response.
10439	Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
10440
10441	// ForceSendFields is a list of field names (e.g. "BasicCard") to
10442	// unconditionally include in API requests. By default, fields with
10443	// empty values are omitted from API requests. However, any non-pointer,
10444	// non-interface field appearing in ForceSendFields will be sent to the
10445	// server regardless of whether the field is empty or not. This may be
10446	// used to include empty fields in Patch requests.
10447	ForceSendFields []string `json:"-"`
10448
10449	// NullFields is a list of field names (e.g. "BasicCard") to include in
10450	// API requests with the JSON null value. By default, fields with empty
10451	// values are omitted from API requests. However, any field with an
10452	// empty value appearing in NullFields will be sent to the server as
10453	// null. It is an error if a field in this list has a non-empty value.
10454	// This may be used to include null fields in Patch requests.
10455	NullFields []string `json:"-"`
10456}
10457
10458func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
10459	type NoMethod GoogleCloudDialogflowV2IntentMessage
10460	raw := NoMethod(*s)
10461	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10462}
10463
10464// GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card
10465// message. Useful for displaying information.
10466type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
10467	// Buttons: Optional. The collection of card buttons.
10468	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
10469
10470	// FormattedText: Required, unless image is present. The body text of
10471	// the card.
10472	FormattedText string `json:"formattedText,omitempty"`
10473
10474	// Image: Optional. The image for the card.
10475	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
10476
10477	// Subtitle: Optional. The subtitle of the card.
10478	Subtitle string `json:"subtitle,omitempty"`
10479
10480	// Title: Optional. The title of the card.
10481	Title string `json:"title,omitempty"`
10482
10483	// ForceSendFields is a list of field names (e.g. "Buttons") to
10484	// unconditionally include in API requests. By default, fields with
10485	// empty values are omitted from API requests. However, any non-pointer,
10486	// non-interface field appearing in ForceSendFields will be sent to the
10487	// server regardless of whether the field is empty or not. This may be
10488	// used to include empty fields in Patch requests.
10489	ForceSendFields []string `json:"-"`
10490
10491	// NullFields is a list of field names (e.g. "Buttons") to include in
10492	// API requests with the JSON null value. By default, fields with empty
10493	// values are omitted from API requests. However, any field with an
10494	// empty value appearing in NullFields will be sent to the server as
10495	// null. It is an error if a field in this list has a non-empty value.
10496	// This may be used to include null fields in Patch requests.
10497	NullFields []string `json:"-"`
10498}
10499
10500func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
10501	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
10502	raw := NoMethod(*s)
10503	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10504}
10505
10506// GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button
10507// object that appears at the bottom of a card.
10508type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
10509	// OpenUriAction: Required. Action to take when a user taps on the
10510	// button.
10511	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
10512
10513	// Title: Required. The title of the button.
10514	Title string `json:"title,omitempty"`
10515
10516	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
10517	// unconditionally include in API requests. By default, fields with
10518	// empty values are omitted from API requests. However, any non-pointer,
10519	// non-interface field appearing in ForceSendFields will be sent to the
10520	// server regardless of whether the field is empty or not. This may be
10521	// used to include empty fields in Patch requests.
10522	ForceSendFields []string `json:"-"`
10523
10524	// NullFields is a list of field names (e.g. "OpenUriAction") to include
10525	// in API requests with the JSON null value. By default, fields with
10526	// empty values are omitted from API requests. However, any field with
10527	// an empty value appearing in NullFields will be sent to the server as
10528	// null. It is an error if a field in this list has a non-empty value.
10529	// This may be used to include null fields in Patch requests.
10530	NullFields []string `json:"-"`
10531}
10532
10533func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
10534	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
10535	raw := NoMethod(*s)
10536	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10537}
10538
10539// GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction:
10540// Opens the given URI.
10541type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
10542	// Uri: Required. The HTTP or HTTPS scheme URI.
10543	Uri string `json:"uri,omitempty"`
10544
10545	// ForceSendFields is a list of field names (e.g. "Uri") to
10546	// unconditionally include in API requests. By default, fields with
10547	// empty values are omitted from API requests. However, any non-pointer,
10548	// non-interface field appearing in ForceSendFields will be sent to the
10549	// server regardless of whether the field is empty or not. This may be
10550	// used to include empty fields in Patch requests.
10551	ForceSendFields []string `json:"-"`
10552
10553	// NullFields is a list of field names (e.g. "Uri") to include in API
10554	// requests with the JSON null value. By default, fields with empty
10555	// values are omitted from API requests. However, any field with an
10556	// empty value appearing in NullFields will be sent to the server as
10557	// null. It is an error if a field in this list has a non-empty value.
10558	// This may be used to include null fields in Patch requests.
10559	NullFields []string `json:"-"`
10560}
10561
10562func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
10563	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
10564	raw := NoMethod(*s)
10565	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10566}
10567
10568// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse
10569// Carousel Card for Actions on Google.
10570// https://developers.google.com/actions/assistant/responses#browsing_carousel
10571type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
10572	// ImageDisplayOptions: Optional. Settings for displaying the image.
10573	// Applies to every image in items.
10574	//
10575	// Possible values:
10576	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the
10577	// image and the image container with gray bars.
10578	//   "GRAY" - Fill the gaps between the image and the image container
10579	// with gray bars.
10580	//   "WHITE" - Fill the gaps between the image and the image container
10581	// with white bars.
10582	//   "CROPPED" - Image is scaled such that the image width and height
10583	// match or exceed the container dimensions. This may crop the top and
10584	// bottom of the image if the scaled image height is greater than the
10585	// container height, or crop the left and right of the image if the
10586	// scaled image width is greater than the container width. This is
10587	// similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video.
10588	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame
10589	// with a blurred copy of the same image.
10590	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
10591
10592	// Items: Required. List of items in the Browse Carousel Card. Minimum
10593	// of two items, maximum of ten.
10594	Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
10595
10596	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions")
10597	// to unconditionally include in API requests. By default, fields with
10598	// empty values are omitted from API requests. However, any non-pointer,
10599	// non-interface field appearing in ForceSendFields will be sent to the
10600	// server regardless of whether the field is empty or not. This may be
10601	// used to include empty fields in Patch requests.
10602	ForceSendFields []string `json:"-"`
10603
10604	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to
10605	// include in API requests with the JSON null value. By default, fields
10606	// with empty values are omitted from API requests. However, any field
10607	// with an empty value appearing in NullFields will be sent to the
10608	// server as null. It is an error if a field in this list has a
10609	// non-empty value. This may be used to include null fields in Patch
10610	// requests.
10611	NullFields []string `json:"-"`
10612}
10613
10614func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
10615	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
10616	raw := NoMethod(*s)
10617	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10618}
10619
10620// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa
10621// rdItem: Browsing carousel tile
10622type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
10623	// Description: Optional. Description of the carousel item. Maximum of
10624	// four lines of text.
10625	Description string `json:"description,omitempty"`
10626
10627	// Footer: Optional. Text that appears at the bottom of the Browse
10628	// Carousel Card. Maximum of one line of text.
10629	Footer string `json:"footer,omitempty"`
10630
10631	// Image: Optional. Hero image for the carousel item.
10632	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
10633
10634	// OpenUriAction: Required. Action to present to the user.
10635	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
10636
10637	// Title: Required. Title of the carousel item. Maximum of two lines of
10638	// text.
10639	Title string `json:"title,omitempty"`
10640
10641	// ForceSendFields is a list of field names (e.g. "Description") to
10642	// unconditionally include in API requests. By default, fields with
10643	// empty values are omitted from API requests. However, any non-pointer,
10644	// non-interface field appearing in ForceSendFields will be sent to the
10645	// server regardless of whether the field is empty or not. This may be
10646	// used to include empty fields in Patch requests.
10647	ForceSendFields []string `json:"-"`
10648
10649	// NullFields is a list of field names (e.g. "Description") to include
10650	// in API requests with the JSON null value. By default, fields with
10651	// empty values are omitted from API requests. However, any field with
10652	// an empty value appearing in NullFields will be sent to the server as
10653	// null. It is an error if a field in this list has a non-empty value.
10654	// This may be used to include null fields in Patch requests.
10655	NullFields []string `json:"-"`
10656}
10657
10658func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
10659	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
10660	raw := NoMethod(*s)
10661	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10662}
10663
10664// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa
10665// rdItemOpenUrlAction: Actions on Google action to open a given url.
10666type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
10667	// Url: Required. URL
10668	Url string `json:"url,omitempty"`
10669
10670	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
10671	// opening the URL. Defaults to opening via web browser.
10672	//
10673	// Possible values:
10674	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
10675	//   "AMP_ACTION" - Url would be an amp action
10676	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a
10677	// canonical URL which refers to AMP content via .
10678	UrlTypeHint string `json:"urlTypeHint,omitempty"`
10679
10680	// ForceSendFields is a list of field names (e.g. "Url") to
10681	// unconditionally include in API requests. By default, fields with
10682	// empty values are omitted from API requests. However, any non-pointer,
10683	// non-interface field appearing in ForceSendFields will be sent to the
10684	// server regardless of whether the field is empty or not. This may be
10685	// used to include empty fields in Patch requests.
10686	ForceSendFields []string `json:"-"`
10687
10688	// NullFields is a list of field names (e.g. "Url") to include in API
10689	// requests with the JSON null value. By default, fields with empty
10690	// values are omitted from API requests. However, any field with an
10691	// empty value appearing in NullFields will be sent to the server as
10692	// null. It is an error if a field in this list has a non-empty value.
10693	// This may be used to include null fields in Patch requests.
10694	NullFields []string `json:"-"`
10695}
10696
10697func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
10698	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
10699	raw := NoMethod(*s)
10700	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10701}
10702
10703// GoogleCloudDialogflowV2IntentMessageCard: The card response message.
10704type GoogleCloudDialogflowV2IntentMessageCard struct {
10705	// Buttons: Optional. The collection of card buttons.
10706	Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
10707
10708	// ImageUri: Optional. The public URI to an image file for the card.
10709	ImageUri string `json:"imageUri,omitempty"`
10710
10711	// Subtitle: Optional. The subtitle of the card.
10712	Subtitle string `json:"subtitle,omitempty"`
10713
10714	// Title: Optional. The title of the card.
10715	Title string `json:"title,omitempty"`
10716
10717	// ForceSendFields is a list of field names (e.g. "Buttons") to
10718	// unconditionally include in API requests. By default, fields with
10719	// empty values are omitted from API requests. However, any non-pointer,
10720	// non-interface field appearing in ForceSendFields will be sent to the
10721	// server regardless of whether the field is empty or not. This may be
10722	// used to include empty fields in Patch requests.
10723	ForceSendFields []string `json:"-"`
10724
10725	// NullFields is a list of field names (e.g. "Buttons") to include in
10726	// API requests with the JSON null value. By default, fields with empty
10727	// values are omitted from API requests. However, any field with an
10728	// empty value appearing in NullFields will be sent to the server as
10729	// null. It is an error if a field in this list has a non-empty value.
10730	// This may be used to include null fields in Patch requests.
10731	NullFields []string `json:"-"`
10732}
10733
10734func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
10735	type NoMethod GoogleCloudDialogflowV2IntentMessageCard
10736	raw := NoMethod(*s)
10737	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10738}
10739
10740// GoogleCloudDialogflowV2IntentMessageCardButton: Contains information
10741// about a button.
10742type GoogleCloudDialogflowV2IntentMessageCardButton struct {
10743	// Postback: Optional. The text to send back to the Dialogflow API or a
10744	// URI to open.
10745	Postback string `json:"postback,omitempty"`
10746
10747	// Text: Optional. The text to show on the button.
10748	Text string `json:"text,omitempty"`
10749
10750	// ForceSendFields is a list of field names (e.g. "Postback") to
10751	// unconditionally include in API requests. By default, fields with
10752	// empty values are omitted from API requests. However, any non-pointer,
10753	// non-interface field appearing in ForceSendFields will be sent to the
10754	// server regardless of whether the field is empty or not. This may be
10755	// used to include empty fields in Patch requests.
10756	ForceSendFields []string `json:"-"`
10757
10758	// NullFields is a list of field names (e.g. "Postback") to include in
10759	// API requests with the JSON null value. By default, fields with empty
10760	// values are omitted from API requests. However, any field with an
10761	// empty value appearing in NullFields will be sent to the server as
10762	// null. It is an error if a field in this list has a non-empty value.
10763	// This may be used to include null fields in Patch requests.
10764	NullFields []string `json:"-"`
10765}
10766
10767func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
10768	type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
10769	raw := NoMethod(*s)
10770	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10771}
10772
10773// GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for
10774// presenting a carousel of options to select from.
10775type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
10776	// Items: Required. Carousel items.
10777	Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
10778
10779	// ForceSendFields is a list of field names (e.g. "Items") to
10780	// unconditionally include in API requests. By default, fields with
10781	// empty values are omitted from API requests. However, any non-pointer,
10782	// non-interface field appearing in ForceSendFields will be sent to the
10783	// server regardless of whether the field is empty or not. This may be
10784	// used to include empty fields in Patch requests.
10785	ForceSendFields []string `json:"-"`
10786
10787	// NullFields is a list of field names (e.g. "Items") to include in API
10788	// requests with the JSON null value. By default, fields with empty
10789	// values are omitted from API requests. However, any field with an
10790	// empty value appearing in NullFields will be sent to the server as
10791	// null. It is an error if a field in this list has a non-empty value.
10792	// This may be used to include null fields in Patch requests.
10793	NullFields []string `json:"-"`
10794}
10795
10796func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
10797	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
10798	raw := NoMethod(*s)
10799	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10800}
10801
10802// GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in
10803// the carousel.
10804type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
10805	// Description: Optional. The body text of the card.
10806	Description string `json:"description,omitempty"`
10807
10808	// Image: Optional. The image to display.
10809	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
10810
10811	// Info: Required. Additional info about the option item.
10812	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
10813
10814	// Title: Required. Title of the carousel item.
10815	Title string `json:"title,omitempty"`
10816
10817	// ForceSendFields is a list of field names (e.g. "Description") to
10818	// unconditionally include in API requests. By default, fields with
10819	// empty values are omitted from API requests. However, any non-pointer,
10820	// non-interface field appearing in ForceSendFields will be sent to the
10821	// server regardless of whether the field is empty or not. This may be
10822	// used to include empty fields in Patch requests.
10823	ForceSendFields []string `json:"-"`
10824
10825	// NullFields is a list of field names (e.g. "Description") to include
10826	// in API requests with the JSON null value. By default, fields with
10827	// empty values are omitted from API requests. However, any field with
10828	// an empty value appearing in NullFields will be sent to the server as
10829	// null. It is an error if a field in this list has a non-empty value.
10830	// This may be used to include null fields in Patch requests.
10831	NullFields []string `json:"-"`
10832}
10833
10834func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
10835	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
10836	raw := NoMethod(*s)
10837	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10838}
10839
10840// GoogleCloudDialogflowV2IntentMessageColumnProperties: Column
10841// properties for TableCard.
10842type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
10843	// Header: Required. Column heading.
10844	Header string `json:"header,omitempty"`
10845
10846	// HorizontalAlignment: Optional. Defines text alignment for all cells
10847	// in this column.
10848	//
10849	// Possible values:
10850	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading
10851	// edge of the column.
10852	//   "LEADING" - Text is aligned to the leading edge of the column.
10853	//   "CENTER" - Text is centered in the column.
10854	//   "TRAILING" - Text is aligned to the trailing edge of the column.
10855	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
10856
10857	// ForceSendFields is a list of field names (e.g. "Header") to
10858	// unconditionally include in API requests. By default, fields with
10859	// empty values are omitted from API requests. However, any non-pointer,
10860	// non-interface field appearing in ForceSendFields will be sent to the
10861	// server regardless of whether the field is empty or not. This may be
10862	// used to include empty fields in Patch requests.
10863	ForceSendFields []string `json:"-"`
10864
10865	// NullFields is a list of field names (e.g. "Header") to include in API
10866	// requests with the JSON null value. By default, fields with empty
10867	// values are omitted from API requests. However, any field with an
10868	// empty value appearing in NullFields will be sent to the server as
10869	// null. It is an error if a field in this list has a non-empty value.
10870	// This may be used to include null fields in Patch requests.
10871	NullFields []string `json:"-"`
10872}
10873
10874func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
10875	type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
10876	raw := NoMethod(*s)
10877	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10878}
10879
10880// GoogleCloudDialogflowV2IntentMessageImage: The image response
10881// message.
10882type GoogleCloudDialogflowV2IntentMessageImage struct {
10883	// AccessibilityText: Optional. A text description of the image to be
10884	// used for accessibility, e.g., screen readers.
10885	AccessibilityText string `json:"accessibilityText,omitempty"`
10886
10887	// ImageUri: Optional. The public URI to an image file.
10888	ImageUri string `json:"imageUri,omitempty"`
10889
10890	// ForceSendFields is a list of field names (e.g. "AccessibilityText")
10891	// to unconditionally include in API requests. By default, fields with
10892	// empty values are omitted from API requests. However, any non-pointer,
10893	// non-interface field appearing in ForceSendFields will be sent to the
10894	// server regardless of whether the field is empty or not. This may be
10895	// used to include empty fields in Patch requests.
10896	ForceSendFields []string `json:"-"`
10897
10898	// NullFields is a list of field names (e.g. "AccessibilityText") to
10899	// include in API requests with the JSON null value. By default, fields
10900	// with empty values are omitted from API requests. However, any field
10901	// with an empty value appearing in NullFields will be sent to the
10902	// server as null. It is an error if a field in this list has a
10903	// non-empty value. This may be used to include null fields in Patch
10904	// requests.
10905	NullFields []string `json:"-"`
10906}
10907
10908func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
10909	type NoMethod GoogleCloudDialogflowV2IntentMessageImage
10910	raw := NoMethod(*s)
10911	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10912}
10913
10914// GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion
10915// chip message that allows the user to jump out to the app or website
10916// associated with this agent.
10917type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
10918	// DestinationName: Required. The name of the app or site this chip is
10919	// linking to.
10920	DestinationName string `json:"destinationName,omitempty"`
10921
10922	// Uri: Required. The URI of the app or site to open when the user taps
10923	// the suggestion chip.
10924	Uri string `json:"uri,omitempty"`
10925
10926	// ForceSendFields is a list of field names (e.g. "DestinationName") to
10927	// unconditionally include in API requests. By default, fields with
10928	// empty values are omitted from API requests. However, any non-pointer,
10929	// non-interface field appearing in ForceSendFields will be sent to the
10930	// server regardless of whether the field is empty or not. This may be
10931	// used to include empty fields in Patch requests.
10932	ForceSendFields []string `json:"-"`
10933
10934	// NullFields is a list of field names (e.g. "DestinationName") to
10935	// include in API requests with the JSON null value. By default, fields
10936	// with empty values are omitted from API requests. However, any field
10937	// with an empty value appearing in NullFields will be sent to the
10938	// server as null. It is an error if a field in this list has a
10939	// non-empty value. This may be used to include null fields in Patch
10940	// requests.
10941	NullFields []string `json:"-"`
10942}
10943
10944func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
10945	type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
10946	raw := NoMethod(*s)
10947	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10948}
10949
10950// GoogleCloudDialogflowV2IntentMessageListSelect: The card for
10951// presenting a list of options to select from.
10952type GoogleCloudDialogflowV2IntentMessageListSelect struct {
10953	// Items: Required. List items.
10954	Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
10955
10956	// Subtitle: Optional. Subtitle of the list.
10957	Subtitle string `json:"subtitle,omitempty"`
10958
10959	// Title: Optional. The overall title of the list.
10960	Title string `json:"title,omitempty"`
10961
10962	// ForceSendFields is a list of field names (e.g. "Items") to
10963	// unconditionally include in API requests. By default, fields with
10964	// empty values are omitted from API requests. However, any non-pointer,
10965	// non-interface field appearing in ForceSendFields will be sent to the
10966	// server regardless of whether the field is empty or not. This may be
10967	// used to include empty fields in Patch requests.
10968	ForceSendFields []string `json:"-"`
10969
10970	// NullFields is a list of field names (e.g. "Items") to include in API
10971	// requests with the JSON null value. By default, fields with empty
10972	// values are omitted from API requests. However, any field with an
10973	// empty value appearing in NullFields will be sent to the server as
10974	// null. It is an error if a field in this list has a non-empty value.
10975	// This may be used to include null fields in Patch requests.
10976	NullFields []string `json:"-"`
10977}
10978
10979func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
10980	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
10981	raw := NoMethod(*s)
10982	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10983}
10984
10985// GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the
10986// list.
10987type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
10988	// Description: Optional. The main text describing the item.
10989	Description string `json:"description,omitempty"`
10990
10991	// Image: Optional. The image to display.
10992	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
10993
10994	// Info: Required. Additional information about this option.
10995	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
10996
10997	// Title: Required. The title of the list item.
10998	Title string `json:"title,omitempty"`
10999
11000	// ForceSendFields is a list of field names (e.g. "Description") to
11001	// unconditionally include in API requests. By default, fields with
11002	// empty values are omitted from API requests. However, any non-pointer,
11003	// non-interface field appearing in ForceSendFields will be sent to the
11004	// server regardless of whether the field is empty or not. This may be
11005	// used to include empty fields in Patch requests.
11006	ForceSendFields []string `json:"-"`
11007
11008	// NullFields is a list of field names (e.g. "Description") to include
11009	// in API requests with the JSON null value. By default, fields with
11010	// empty values are omitted from API requests. However, any field with
11011	// an empty value appearing in NullFields will be sent to the server as
11012	// null. It is an error if a field in this list has a non-empty value.
11013	// This may be used to include null fields in Patch requests.
11014	NullFields []string `json:"-"`
11015}
11016
11017func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
11018	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
11019	raw := NoMethod(*s)
11020	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11021}
11022
11023// GoogleCloudDialogflowV2IntentMessageMediaContent: The media content
11024// card for Actions on Google.
11025type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
11026	// MediaObjects: Required. List of media objects.
11027	MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
11028
11029	// MediaType: Optional. What type of media is the content (ie "audio").
11030	//
11031	// Possible values:
11032	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
11033	//   "AUDIO" - Response media type is audio.
11034	MediaType string `json:"mediaType,omitempty"`
11035
11036	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
11037	// unconditionally include in API requests. By default, fields with
11038	// empty values are omitted from API requests. However, any non-pointer,
11039	// non-interface field appearing in ForceSendFields will be sent to the
11040	// server regardless of whether the field is empty or not. This may be
11041	// used to include empty fields in Patch requests.
11042	ForceSendFields []string `json:"-"`
11043
11044	// NullFields is a list of field names (e.g. "MediaObjects") to include
11045	// in API requests with the JSON null value. By default, fields with
11046	// empty values are omitted from API requests. However, any field with
11047	// an empty value appearing in NullFields will be sent to the server as
11048	// null. It is an error if a field in this list has a non-empty value.
11049	// This may be used to include null fields in Patch requests.
11050	NullFields []string `json:"-"`
11051}
11052
11053func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
11054	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
11055	raw := NoMethod(*s)
11056	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11057}
11058
11059// GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject:
11060// Response media object for media content card.
11061type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
11062	// ContentUrl: Required. Url where the media is stored.
11063	ContentUrl string `json:"contentUrl,omitempty"`
11064
11065	// Description: Optional. Description of media card.
11066	Description string `json:"description,omitempty"`
11067
11068	// Icon: Optional. Icon to display above media content.
11069	Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
11070
11071	// LargeImage: Optional. Image to display above media content.
11072	LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
11073
11074	// Name: Required. Name of media card.
11075	Name string `json:"name,omitempty"`
11076
11077	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
11078	// unconditionally include in API requests. By default, fields with
11079	// empty values are omitted from API requests. However, any non-pointer,
11080	// non-interface field appearing in ForceSendFields will be sent to the
11081	// server regardless of whether the field is empty or not. This may be
11082	// used to include empty fields in Patch requests.
11083	ForceSendFields []string `json:"-"`
11084
11085	// NullFields is a list of field names (e.g. "ContentUrl") to include in
11086	// API requests with the JSON null value. By default, fields with empty
11087	// values are omitted from API requests. However, any field with an
11088	// empty value appearing in NullFields will be sent to the server as
11089	// null. It is an error if a field in this list has a non-empty value.
11090	// This may be used to include null fields in Patch requests.
11091	NullFields []string `json:"-"`
11092}
11093
11094func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
11095	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
11096	raw := NoMethod(*s)
11097	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11098}
11099
11100// GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies
11101// response message.
11102type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
11103	// QuickReplies: Optional. The collection of quick replies.
11104	QuickReplies []string `json:"quickReplies,omitempty"`
11105
11106	// Title: Optional. The title of the collection of quick replies.
11107	Title string `json:"title,omitempty"`
11108
11109	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
11110	// unconditionally include in API requests. By default, fields with
11111	// empty values are omitted from API requests. However, any non-pointer,
11112	// non-interface field appearing in ForceSendFields will be sent to the
11113	// server regardless of whether the field is empty or not. This may be
11114	// used to include empty fields in Patch requests.
11115	ForceSendFields []string `json:"-"`
11116
11117	// NullFields is a list of field names (e.g. "QuickReplies") to include
11118	// in API requests with the JSON null value. By default, fields with
11119	// empty values are omitted from API requests. However, any field with
11120	// an empty value appearing in NullFields will be sent to the server as
11121	// null. It is an error if a field in this list has a non-empty value.
11122	// This may be used to include null fields in Patch requests.
11123	NullFields []string `json:"-"`
11124}
11125
11126func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
11127	type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
11128	raw := NoMethod(*s)
11129	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11130}
11131
11132// GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info
11133// about the select item for when it is triggered in a dialog.
11134type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
11135	// Key: Required. A unique key that will be sent back to the agent if
11136	// this response is given.
11137	Key string `json:"key,omitempty"`
11138
11139	// Synonyms: Optional. A list of synonyms that can also be used to
11140	// trigger this item in dialog.
11141	Synonyms []string `json:"synonyms,omitempty"`
11142
11143	// ForceSendFields is a list of field names (e.g. "Key") to
11144	// unconditionally include in API requests. By default, fields with
11145	// empty values are omitted from API requests. However, any non-pointer,
11146	// non-interface field appearing in ForceSendFields will be sent to the
11147	// server regardless of whether the field is empty or not. This may be
11148	// used to include empty fields in Patch requests.
11149	ForceSendFields []string `json:"-"`
11150
11151	// NullFields is a list of field names (e.g. "Key") to include in API
11152	// requests with the JSON null value. By default, fields with empty
11153	// values are omitted from API requests. However, any field with an
11154	// empty value appearing in NullFields will be sent to the server as
11155	// null. It is an error if a field in this list has a non-empty value.
11156	// This may be used to include null fields in Patch requests.
11157	NullFields []string `json:"-"`
11158}
11159
11160func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
11161	type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
11162	raw := NoMethod(*s)
11163	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11164}
11165
11166// GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple
11167// response message containing speech or text.
11168type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
11169	// DisplayText: Optional. The text to display.
11170	DisplayText string `json:"displayText,omitempty"`
11171
11172	// Ssml: One of text_to_speech or ssml must be provided. Structured
11173	// spoken response to the user in the SSML format. Mutually exclusive
11174	// with text_to_speech.
11175	Ssml string `json:"ssml,omitempty"`
11176
11177	// TextToSpeech: One of text_to_speech or ssml must be provided. The
11178	// plain text of the speech output. Mutually exclusive with ssml.
11179	TextToSpeech string `json:"textToSpeech,omitempty"`
11180
11181	// ForceSendFields is a list of field names (e.g. "DisplayText") to
11182	// unconditionally include in API requests. By default, fields with
11183	// empty values are omitted from API requests. However, any non-pointer,
11184	// non-interface field appearing in ForceSendFields will be sent to the
11185	// server regardless of whether the field is empty or not. This may be
11186	// used to include empty fields in Patch requests.
11187	ForceSendFields []string `json:"-"`
11188
11189	// NullFields is a list of field names (e.g. "DisplayText") to include
11190	// in API requests with the JSON null value. By default, fields with
11191	// empty values are omitted from API requests. However, any field with
11192	// an empty value appearing in NullFields will be sent to the server as
11193	// null. It is an error if a field in this list has a non-empty value.
11194	// This may be used to include null fields in Patch requests.
11195	NullFields []string `json:"-"`
11196}
11197
11198func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
11199	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
11200	raw := NoMethod(*s)
11201	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11202}
11203
11204// GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection
11205// of simple response candidates. This message in
11206// `QueryResult.fulfillment_messages` and
11207// `WebhookResponse.fulfillment_messages` should contain only one
11208// `SimpleResponse`.
11209type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
11210	// SimpleResponses: Required. The list of simple responses.
11211	SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
11212
11213	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
11214	// unconditionally include in API requests. By default, fields with
11215	// empty values are omitted from API requests. However, any non-pointer,
11216	// non-interface field appearing in ForceSendFields will be sent to the
11217	// server regardless of whether the field is empty or not. This may be
11218	// used to include empty fields in Patch requests.
11219	ForceSendFields []string `json:"-"`
11220
11221	// NullFields is a list of field names (e.g. "SimpleResponses") to
11222	// include in API requests with the JSON null value. By default, fields
11223	// with empty values are omitted from API requests. However, any field
11224	// with an empty value appearing in NullFields will be sent to the
11225	// server as null. It is an error if a field in this list has a
11226	// non-empty value. This may be used to include null fields in Patch
11227	// requests.
11228	NullFields []string `json:"-"`
11229}
11230
11231func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
11232	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
11233	raw := NoMethod(*s)
11234	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11235}
11236
11237// GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip
11238// message that the user can tap to quickly post a reply to the
11239// conversation.
11240type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
11241	// Title: Required. The text shown the in the suggestion chip.
11242	Title string `json:"title,omitempty"`
11243
11244	// ForceSendFields is a list of field names (e.g. "Title") to
11245	// unconditionally include in API requests. By default, fields with
11246	// empty values are omitted from API requests. However, any non-pointer,
11247	// non-interface field appearing in ForceSendFields will be sent to the
11248	// server regardless of whether the field is empty or not. This may be
11249	// used to include empty fields in Patch requests.
11250	ForceSendFields []string `json:"-"`
11251
11252	// NullFields is a list of field names (e.g. "Title") to include in API
11253	// requests with the JSON null value. By default, fields with empty
11254	// values are omitted from API requests. However, any field with an
11255	// empty value appearing in NullFields will be sent to the server as
11256	// null. It is an error if a field in this list has a non-empty value.
11257	// This may be used to include null fields in Patch requests.
11258	NullFields []string `json:"-"`
11259}
11260
11261func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
11262	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
11263	raw := NoMethod(*s)
11264	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11265}
11266
11267// GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of
11268// suggestions.
11269type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
11270	// Suggestions: Required. The list of suggested replies.
11271	Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
11272
11273	// ForceSendFields is a list of field names (e.g. "Suggestions") to
11274	// unconditionally include in API requests. By default, fields with
11275	// empty values are omitted from API requests. However, any non-pointer,
11276	// non-interface field appearing in ForceSendFields will be sent to the
11277	// server regardless of whether the field is empty or not. This may be
11278	// used to include empty fields in Patch requests.
11279	ForceSendFields []string `json:"-"`
11280
11281	// NullFields is a list of field names (e.g. "Suggestions") to include
11282	// in API requests with the JSON null value. By default, fields with
11283	// empty values are omitted from API requests. However, any field with
11284	// an empty value appearing in NullFields will be sent to the server as
11285	// null. It is an error if a field in this list has a non-empty value.
11286	// This may be used to include null fields in Patch requests.
11287	NullFields []string `json:"-"`
11288}
11289
11290func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
11291	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
11292	raw := NoMethod(*s)
11293	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11294}
11295
11296// GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions
11297// on Google.
11298type GoogleCloudDialogflowV2IntentMessageTableCard struct {
11299	// Buttons: Optional. List of buttons for the card.
11300	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
11301
11302	// ColumnProperties: Optional. Display properties for the columns in
11303	// this table.
11304	ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
11305
11306	// Image: Optional. Image which should be displayed on the card.
11307	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
11308
11309	// Rows: Optional. Rows in this table of data.
11310	Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
11311
11312	// Subtitle: Optional. Subtitle to the title.
11313	Subtitle string `json:"subtitle,omitempty"`
11314
11315	// Title: Required. Title of the card.
11316	Title string `json:"title,omitempty"`
11317
11318	// ForceSendFields is a list of field names (e.g. "Buttons") to
11319	// unconditionally include in API requests. By default, fields with
11320	// empty values are omitted from API requests. However, any non-pointer,
11321	// non-interface field appearing in ForceSendFields will be sent to the
11322	// server regardless of whether the field is empty or not. This may be
11323	// used to include empty fields in Patch requests.
11324	ForceSendFields []string `json:"-"`
11325
11326	// NullFields is a list of field names (e.g. "Buttons") to include in
11327	// API requests with the JSON null value. By default, fields with empty
11328	// values are omitted from API requests. However, any field with an
11329	// empty value appearing in NullFields will be sent to the server as
11330	// null. It is an error if a field in this list has a non-empty value.
11331	// This may be used to include null fields in Patch requests.
11332	NullFields []string `json:"-"`
11333}
11334
11335func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
11336	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
11337	raw := NoMethod(*s)
11338	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11339}
11340
11341// GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of
11342// TableCardRow.
11343type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
11344	// Text: Required. Text in this cell.
11345	Text string `json:"text,omitempty"`
11346
11347	// ForceSendFields is a list of field names (e.g. "Text") 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. "Text") to include in API
11356	// requests with the JSON null value. By default, fields with empty
11357	// values are omitted from API requests. However, any field with an
11358	// 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 *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
11365	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
11366	raw := NoMethod(*s)
11367	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11368}
11369
11370// GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.
11371type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
11372	// Cells: Optional. List of cells that make up this row.
11373	Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
11374
11375	// DividerAfter: Optional. Whether to add a visual divider after this
11376	// row.
11377	DividerAfter bool `json:"dividerAfter,omitempty"`
11378
11379	// ForceSendFields is a list of field names (e.g. "Cells") 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. "Cells") to include in API
11388	// 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 *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
11397	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
11398	raw := NoMethod(*s)
11399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11400}
11401
11402// GoogleCloudDialogflowV2IntentMessageText: The text response message.
11403type GoogleCloudDialogflowV2IntentMessageText struct {
11404	// Text: Optional. The collection of the agent's responses.
11405	Text []string `json:"text,omitempty"`
11406
11407	// ForceSendFields is a list of field names (e.g. "Text") to
11408	// unconditionally include in API requests. By default, fields with
11409	// empty values are omitted from API requests. However, any non-pointer,
11410	// non-interface field appearing in ForceSendFields will be sent to the
11411	// server regardless of whether the field is empty or not. This may be
11412	// used to include empty fields in Patch requests.
11413	ForceSendFields []string `json:"-"`
11414
11415	// NullFields is a list of field names (e.g. "Text") to include in API
11416	// requests with the JSON null value. By default, fields with empty
11417	// values are omitted from API requests. However, any field with an
11418	// empty value appearing in NullFields will be sent to the server as
11419	// null. It is an error if a field in this list has a non-empty value.
11420	// This may be used to include null fields in Patch requests.
11421	NullFields []string `json:"-"`
11422}
11423
11424func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
11425	type NoMethod GoogleCloudDialogflowV2IntentMessageText
11426	raw := NoMethod(*s)
11427	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11428}
11429
11430// GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.
11431type GoogleCloudDialogflowV2IntentParameter struct {
11432	// DefaultValue: Optional. The default value to use when the `value`
11433	// yields an empty result. Default values can be extracted from contexts
11434	// by using the following syntax: `#context_name.parameter_name`.
11435	DefaultValue string `json:"defaultValue,omitempty"`
11436
11437	// DisplayName: Required. The name of the parameter.
11438	DisplayName string `json:"displayName,omitempty"`
11439
11440	// EntityTypeDisplayName: Optional. The name of the entity type,
11441	// prefixed with `@`, that describes values of the parameter. If the
11442	// parameter is required, this must be provided.
11443	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
11444
11445	// IsList: Optional. Indicates whether the parameter represents a list
11446	// of values.
11447	IsList bool `json:"isList,omitempty"`
11448
11449	// Mandatory: Optional. Indicates whether the parameter is required.
11450	// That is, whether the intent cannot be completed without collecting
11451	// the parameter value.
11452	Mandatory bool `json:"mandatory,omitempty"`
11453
11454	// Name: The unique identifier of this parameter.
11455	Name string `json:"name,omitempty"`
11456
11457	// Prompts: Optional. The collection of prompts that the agent can
11458	// present to the user in order to collect a value for the parameter.
11459	Prompts []string `json:"prompts,omitempty"`
11460
11461	// Value: Optional. The definition of the parameter value. It can be: -
11462	// a constant string, - a parameter value defined as `$parameter_name`,
11463	// - an original parameter value defined as `$parameter_name.original`,
11464	// - a parameter value from some context defined as
11465	// `#context_name.parameter_name`.
11466	Value string `json:"value,omitempty"`
11467
11468	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
11469	// unconditionally include in API requests. By default, fields with
11470	// empty values are omitted from API requests. However, any non-pointer,
11471	// non-interface field appearing in ForceSendFields will be sent to the
11472	// server regardless of whether the field is empty or not. This may be
11473	// used to include empty fields in Patch requests.
11474	ForceSendFields []string `json:"-"`
11475
11476	// NullFields is a list of field names (e.g. "DefaultValue") to include
11477	// in API requests with the JSON null value. By default, fields with
11478	// empty values are omitted from API requests. However, any field with
11479	// an empty value appearing in NullFields will be sent to the server as
11480	// null. It is an error if a field in this list has a non-empty value.
11481	// This may be used to include null fields in Patch requests.
11482	NullFields []string `json:"-"`
11483}
11484
11485func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
11486	type NoMethod GoogleCloudDialogflowV2IntentParameter
11487	raw := NoMethod(*s)
11488	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11489}
11490
11491// GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example
11492// that the agent is trained on.
11493type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
11494	// Name: Output only. The unique identifier of this training phrase.
11495	Name string `json:"name,omitempty"`
11496
11497	// Parts: Required. The ordered list of training phrase parts. The parts
11498	// are concatenated in order to form the training phrase. Note: The API
11499	// does not automatically annotate training phrases like the Dialogflow
11500	// Console does. Note: Do not forget to include whitespace at part
11501	// boundaries, so the training phrase is well formatted when the parts
11502	// are concatenated. If the training phrase does not need to be
11503	// annotated with parameters, you just need a single part with only the
11504	// Part.text field set. If you want to annotate the training phrase, you
11505	// must create multiple parts, where the fields of each part are
11506	// populated in one of two ways: - `Part.text` is set to a part of the
11507	// phrase that has no parameters. - `Part.text` is set to a part of the
11508	// phrase that you want to annotate, and the `entity_type`, `alias`, and
11509	// `user_defined` fields are all set.
11510	Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
11511
11512	// TimesAddedCount: Optional. Indicates how many times this example was
11513	// added to the intent. Each time a developer adds an existing sample by
11514	// editing an intent or training, this counter is increased.
11515	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
11516
11517	// Type: Required. The type of the training phrase.
11518	//
11519	// Possible values:
11520	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be
11521	// used.
11522	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names,
11523	// but example parts can be annotated with entity types.
11524	//   "TEMPLATE" - Templates are not annotated with entity types, but
11525	// they can contain @-prefixed entity type names as substrings. Template
11526	// mode has been deprecated. Example mode is the only supported way to
11527	// create new training phrases. If you have existing training phrases
11528	// that you've created in template mode, those will continue to work.
11529	Type string `json:"type,omitempty"`
11530
11531	// ForceSendFields is a list of field names (e.g. "Name") to
11532	// unconditionally include in API requests. By default, fields with
11533	// empty values are omitted from API requests. However, any non-pointer,
11534	// non-interface field appearing in ForceSendFields will be sent to the
11535	// server regardless of whether the field is empty or not. This may be
11536	// used to include empty fields in Patch requests.
11537	ForceSendFields []string `json:"-"`
11538
11539	// NullFields is a list of field names (e.g. "Name") to include in API
11540	// requests with the JSON null value. By default, fields with empty
11541	// values are omitted from API requests. However, any field with an
11542	// empty value appearing in NullFields will be sent to the server as
11543	// null. It is an error if a field in this list has a non-empty value.
11544	// This may be used to include null fields in Patch requests.
11545	NullFields []string `json:"-"`
11546}
11547
11548func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
11549	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
11550	raw := NoMethod(*s)
11551	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11552}
11553
11554// GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of
11555// a training phrase.
11556type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
11557	// Alias: Optional. The parameter name for the value extracted from the
11558	// annotated part of the example. This field is required for annotated
11559	// parts of the training phrase.
11560	Alias string `json:"alias,omitempty"`
11561
11562	// EntityType: Optional. The entity type name prefixed with `@`. This
11563	// field is required for annotated parts of the training phrase.
11564	EntityType string `json:"entityType,omitempty"`
11565
11566	// Text: Required. The text for this part.
11567	Text string `json:"text,omitempty"`
11568
11569	// UserDefined: Optional. Indicates whether the text was manually
11570	// annotated. This field is set to true when the Dialogflow Console is
11571	// used to manually annotate the part. When creating an annotated part
11572	// with the API, you must set this to true.
11573	UserDefined bool `json:"userDefined,omitempty"`
11574
11575	// ForceSendFields is a list of field names (e.g. "Alias") to
11576	// unconditionally include in API requests. By default, fields with
11577	// empty values are omitted from API requests. However, any non-pointer,
11578	// non-interface field appearing in ForceSendFields will be sent to the
11579	// server regardless of whether the field is empty or not. This may be
11580	// used to include empty fields in Patch requests.
11581	ForceSendFields []string `json:"-"`
11582
11583	// NullFields is a list of field names (e.g. "Alias") to include in API
11584	// requests with the JSON null value. By default, fields with empty
11585	// values are omitted from API requests. However, any field with an
11586	// empty value appearing in NullFields will be sent to the server as
11587	// null. It is an error if a field in this list has a non-empty value.
11588	// This may be used to include null fields in Patch requests.
11589	NullFields []string `json:"-"`
11590}
11591
11592func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
11593	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
11594	raw := NoMethod(*s)
11595	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11596}
11597
11598// GoogleCloudDialogflowV2KnowledgeOperationMetadata: Metadata in
11599// google::longrunning::Operation for Knowledge operations.
11600type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
11601	// State: Output only. The current state of this operation.
11602	//
11603	// Possible values:
11604	//   "STATE_UNSPECIFIED" - State unspecified.
11605	//   "PENDING" - The operation has been created.
11606	//   "RUNNING" - The operation is currently running.
11607	//   "DONE" - The operation is done, either cancelled or completed.
11608	State string `json:"state,omitempty"`
11609
11610	// ForceSendFields is a list of field names (e.g. "State") to
11611	// unconditionally include in API requests. By default, fields with
11612	// empty values are omitted from API requests. However, any non-pointer,
11613	// non-interface field appearing in ForceSendFields will be sent to the
11614	// server regardless of whether the field is empty or not. This may be
11615	// used to include empty fields in Patch requests.
11616	ForceSendFields []string `json:"-"`
11617
11618	// NullFields is a list of field names (e.g. "State") to include in API
11619	// requests with the JSON null value. By default, fields with empty
11620	// values are omitted from API requests. However, any field with an
11621	// empty value appearing in NullFields will be sent to the server as
11622	// null. It is an error if a field in this list has a non-empty value.
11623	// This may be used to include null fields in Patch requests.
11624	NullFields []string `json:"-"`
11625}
11626
11627func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
11628	type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
11629	raw := NoMethod(*s)
11630	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11631}
11632
11633// GoogleCloudDialogflowV2Message: Represents a message posted into a
11634// conversation.
11635type GoogleCloudDialogflowV2Message struct {
11636	// Content: Required. The message content.
11637	Content string `json:"content,omitempty"`
11638
11639	// CreateTime: Output only. The time when the message was created.
11640	CreateTime string `json:"createTime,omitempty"`
11641
11642	// LanguageCode: Optional. The message language. This should be a BCP-47
11643	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
11644	// "en-US".
11645	LanguageCode string `json:"languageCode,omitempty"`
11646
11647	// MessageAnnotation: Output only. The annotation for the message.
11648	MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
11649
11650	// Name: The unique identifier of the message. Format:
11651	// `projects//locations//conversations//messages/`.
11652	Name string `json:"name,omitempty"`
11653
11654	// Participant: Output only. The participant that sends this message.
11655	Participant string `json:"participant,omitempty"`
11656
11657	// ParticipantRole: Output only. The role of the participant.
11658	//
11659	// Possible values:
11660	//   "ROLE_UNSPECIFIED" - Participant role not set.
11661	//   "HUMAN_AGENT" - Participant is a human agent.
11662	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
11663	// Dialogflow agent.
11664	//   "END_USER" - Participant is an end user that has called or chatted
11665	// with Dialogflow services.
11666	ParticipantRole string `json:"participantRole,omitempty"`
11667
11668	// ForceSendFields is a list of field names (e.g. "Content") to
11669	// unconditionally include in API requests. By default, fields with
11670	// empty values are omitted from API requests. However, any non-pointer,
11671	// non-interface field appearing in ForceSendFields will be sent to the
11672	// server regardless of whether the field is empty or not. This may be
11673	// used to include empty fields in Patch requests.
11674	ForceSendFields []string `json:"-"`
11675
11676	// NullFields is a list of field names (e.g. "Content") to include in
11677	// API requests with the JSON null value. By default, fields with empty
11678	// values are omitted from API requests. However, any field with an
11679	// empty value appearing in NullFields will be sent to the server as
11680	// null. It is an error if a field in this list has a non-empty value.
11681	// This may be used to include null fields in Patch requests.
11682	NullFields []string `json:"-"`
11683}
11684
11685func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
11686	type NoMethod GoogleCloudDialogflowV2Message
11687	raw := NoMethod(*s)
11688	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11689}
11690
11691// GoogleCloudDialogflowV2MessageAnnotation: Represents the result of
11692// annotation for the message.
11693type GoogleCloudDialogflowV2MessageAnnotation struct {
11694	// ContainEntities: Indicates whether the text message contains
11695	// entities.
11696	ContainEntities bool `json:"containEntities,omitempty"`
11697
11698	// Parts: The collection of annotated message parts ordered by their
11699	// position in the message. You can recover the annotated message by
11700	// concatenating [AnnotatedMessagePart.text].
11701	Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
11702
11703	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
11704	// unconditionally include in API requests. By default, fields with
11705	// empty values are omitted from API requests. However, any non-pointer,
11706	// non-interface field appearing in ForceSendFields will be sent to the
11707	// server regardless of whether the field is empty or not. This may be
11708	// used to include empty fields in Patch requests.
11709	ForceSendFields []string `json:"-"`
11710
11711	// NullFields is a list of field names (e.g. "ContainEntities") to
11712	// include in API requests with the JSON null value. By default, fields
11713	// with empty values are omitted from API requests. However, any field
11714	// with an empty value appearing in NullFields will be sent to the
11715	// server as null. It is an error if a field in this list has a
11716	// non-empty value. This may be used to include null fields in Patch
11717	// requests.
11718	NullFields []string `json:"-"`
11719}
11720
11721func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
11722	type NoMethod GoogleCloudDialogflowV2MessageAnnotation
11723	raw := NoMethod(*s)
11724	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11725}
11726
11727// GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the
11728// contents of the original request that was passed to the
11729// `[Streaming]DetectIntent` call.
11730type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
11731	// Payload: Optional. This field is set to the value of the
11732	// `QueryParameters.payload` field passed in the request. Some
11733	// integrations that query a Dialogflow agent may provide additional
11734	// information in the payload. In particular, for the Dialogflow Phone
11735	// Gateway integration, this field has the form: { "telephony": {
11736	// "caller_id": "+18558363987" } } Note: The caller ID field
11737	// (`caller_id`) will be redacted for Trial Edition agents and populated
11738	// with the caller ID in E.164 format
11739	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
11740	Payload googleapi.RawMessage `json:"payload,omitempty"`
11741
11742	// Source: The source of this request, e.g., `google`, `facebook`,
11743	// `slack`. It is set by Dialogflow-owned servers.
11744	Source string `json:"source,omitempty"`
11745
11746	// Version: Optional. The version of the protocol used for this request.
11747	// This field is AoG-specific.
11748	Version string `json:"version,omitempty"`
11749
11750	// ForceSendFields is a list of field names (e.g. "Payload") to
11751	// unconditionally include in API requests. By default, fields with
11752	// empty values are omitted from API requests. However, any non-pointer,
11753	// non-interface field appearing in ForceSendFields will be sent to the
11754	// server regardless of whether the field is empty or not. This may be
11755	// used to include empty fields in Patch requests.
11756	ForceSendFields []string `json:"-"`
11757
11758	// NullFields is a list of field names (e.g. "Payload") to include in
11759	// API requests with the JSON null value. By default, fields with empty
11760	// values are omitted from API requests. However, any field with an
11761	// empty value appearing in NullFields will be sent to the server as
11762	// null. It is an error if a field in this list has a non-empty value.
11763	// This may be used to include null fields in Patch requests.
11764	NullFields []string `json:"-"`
11765}
11766
11767func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
11768	type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
11769	raw := NoMethod(*s)
11770	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11771}
11772
11773// GoogleCloudDialogflowV2QueryResult: Represents the result of
11774// conversational query or event processing.
11775type GoogleCloudDialogflowV2QueryResult struct {
11776	// Action: The action name from the matched intent.
11777	Action string `json:"action,omitempty"`
11778
11779	// AllRequiredParamsPresent: This field is set to: - `false` if the
11780	// matched intent has required parameters and not all of the required
11781	// parameter values have been collected. - `true` if all required
11782	// parameter values have been collected, or if the matched intent
11783	// doesn't contain any required parameters.
11784	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
11785
11786	// DiagnosticInfo: Free-form diagnostic information for the associated
11787	// detect intent request. The fields of this data can change without
11788	// notice, so you should not write code that depends on its structure.
11789	// The data may contain: - webhook call latency - webhook errors
11790	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
11791
11792	// FulfillmentMessages: The collection of rich messages to present to
11793	// the user.
11794	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
11795
11796	// FulfillmentText: The text to be pronounced to the user or shown on
11797	// the screen. Note: This is a legacy field, `fulfillment_messages`
11798	// should be preferred.
11799	FulfillmentText string `json:"fulfillmentText,omitempty"`
11800
11801	// Intent: The intent that matched the conversational query. Some, not
11802	// all fields are filled in this message, including but not limited to:
11803	// `name`, `display_name`, `end_interaction` and `is_fallback`.
11804	Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
11805
11806	// IntentDetectionConfidence: The intent detection confidence. Values
11807	// range from 0.0 (completely uncertain) to 1.0 (completely certain).
11808	// This value is for informational purpose only and is only used to help
11809	// match the best intent within the classification threshold. This value
11810	// may change for the same end-user expression at any time due to a
11811	// model retraining or change in implementation. If there are `multiple
11812	// knowledge_answers` messages, this value is set to the greatest
11813	// `knowledgeAnswers.match_confidence` value in the list.
11814	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
11815
11816	// LanguageCode: The language that was triggered during intent
11817	// detection. See Language Support
11818	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
11819	// list of the currently supported language codes.
11820	LanguageCode string `json:"languageCode,omitempty"`
11821
11822	// OutputContexts: The collection of output contexts. If applicable,
11823	// `output_contexts.parameters` contains entries with name `.original`
11824	// containing the original parameter values before the query.
11825	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
11826
11827	// Parameters: The collection of extracted parameters. Depending on your
11828	// protocol or client library language, this is a map, associative
11829	// array, symbol table, dictionary, or JSON object composed of a
11830	// collection of (MapKey, MapValue) pairs: - MapKey type: string -
11831	// MapKey value: parameter name - MapValue type: - If parameter's entity
11832	// type is a composite entity: map - Else: depending on parameter value
11833	// type, could be one of string, number, boolean, null, list or map -
11834	// MapValue value: - If parameter's entity type is a composite entity:
11835	// map from composite entity property names to property values - Else:
11836	// parameter value
11837	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
11838
11839	// QueryText: The original conversational query text: - If natural
11840	// language text was provided as input, `query_text` contains a copy of
11841	// the input. - If natural language speech audio was provided as input,
11842	// `query_text` contains the speech recognition result. If speech
11843	// recognizer produced multiple alternatives, a particular one is
11844	// picked. - If automatic spell correction is enabled, `query_text` will
11845	// contain the corrected user input.
11846	QueryText string `json:"queryText,omitempty"`
11847
11848	// SentimentAnalysisResult: The sentiment analysis result, which depends
11849	// on the `sentiment_analysis_request_config` specified in the request.
11850	SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
11851
11852	// SpeechRecognitionConfidence: The Speech recognition confidence
11853	// between 0.0 and 1.0. A higher number indicates an estimated greater
11854	// likelihood that the recognized words are correct. The default of 0.0
11855	// is a sentinel value indicating that confidence was not set. This
11856	// field is not guaranteed to be accurate or set. In particular this
11857	// field isn't set for StreamingDetectIntent since the streaming
11858	// endpoint has separate confidence estimates per portion of the audio
11859	// in StreamingRecognitionResult.
11860	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
11861
11862	// WebhookPayload: If the query was fulfilled by a webhook call, this
11863	// field is set to the value of the `payload` field returned in the
11864	// webhook response.
11865	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
11866
11867	// WebhookSource: If the query was fulfilled by a webhook call, this
11868	// field is set to the value of the `source` field returned in the
11869	// webhook response.
11870	WebhookSource string `json:"webhookSource,omitempty"`
11871
11872	// ForceSendFields is a list of field names (e.g. "Action") to
11873	// unconditionally include in API requests. By default, fields with
11874	// empty values are omitted from API requests. However, any non-pointer,
11875	// non-interface field appearing in ForceSendFields will be sent to the
11876	// server regardless of whether the field is empty or not. This may be
11877	// used to include empty fields in Patch requests.
11878	ForceSendFields []string `json:"-"`
11879
11880	// NullFields is a list of field names (e.g. "Action") to include in API
11881	// requests with the JSON null value. By default, fields with empty
11882	// values are omitted from API requests. However, any field with an
11883	// empty value appearing in NullFields will be sent to the server as
11884	// null. It is an error if a field in this list has a non-empty value.
11885	// This may be used to include null fields in Patch requests.
11886	NullFields []string `json:"-"`
11887}
11888
11889func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
11890	type NoMethod GoogleCloudDialogflowV2QueryResult
11891	raw := NoMethod(*s)
11892	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11893}
11894
11895func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
11896	type NoMethod GoogleCloudDialogflowV2QueryResult
11897	var s1 struct {
11898		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
11899		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
11900		*NoMethod
11901	}
11902	s1.NoMethod = (*NoMethod)(s)
11903	if err := json.Unmarshal(data, &s1); err != nil {
11904		return err
11905	}
11906	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
11907	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
11908	return nil
11909}
11910
11911// GoogleCloudDialogflowV2Sentiment: The sentiment, such as
11912// positive/negative feeling or association, for a unit of analysis,
11913// such as the query text.
11914type GoogleCloudDialogflowV2Sentiment struct {
11915	// Magnitude: A non-negative number in the [0, +inf) range, which
11916	// represents the absolute magnitude of sentiment, regardless of score
11917	// (positive or negative).
11918	Magnitude float64 `json:"magnitude,omitempty"`
11919
11920	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
11921	// (positive sentiment).
11922	Score float64 `json:"score,omitempty"`
11923
11924	// ForceSendFields is a list of field names (e.g. "Magnitude") to
11925	// unconditionally include in API requests. By default, fields with
11926	// empty values are omitted from API requests. However, any non-pointer,
11927	// non-interface field appearing in ForceSendFields will be sent to the
11928	// server regardless of whether the field is empty or not. This may be
11929	// used to include empty fields in Patch requests.
11930	ForceSendFields []string `json:"-"`
11931
11932	// NullFields is a list of field names (e.g. "Magnitude") to include in
11933	// API requests with the JSON null value. By default, fields with empty
11934	// values are omitted from API requests. However, any field with an
11935	// empty value appearing in NullFields will be sent to the server as
11936	// null. It is an error if a field in this list has a non-empty value.
11937	// This may be used to include null fields in Patch requests.
11938	NullFields []string `json:"-"`
11939}
11940
11941func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
11942	type NoMethod GoogleCloudDialogflowV2Sentiment
11943	raw := NoMethod(*s)
11944	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11945}
11946
11947func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
11948	type NoMethod GoogleCloudDialogflowV2Sentiment
11949	var s1 struct {
11950		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
11951		Score     gensupport.JSONFloat64 `json:"score"`
11952		*NoMethod
11953	}
11954	s1.NoMethod = (*NoMethod)(s)
11955	if err := json.Unmarshal(data, &s1); err != nil {
11956		return err
11957	}
11958	s.Magnitude = float64(s1.Magnitude)
11959	s.Score = float64(s1.Score)
11960	return nil
11961}
11962
11963// GoogleCloudDialogflowV2SentimentAnalysisResult: The result of
11964// sentiment analysis. Sentiment analysis inspects user input and
11965// identifies the prevailing subjective opinion, especially to determine
11966// a user's attitude as positive, negative, or neutral. For
11967// Participants.DetectIntent, it needs to be configured in
11968// DetectIntentRequest.query_params. For
11969// Participants.StreamingDetectIntent, it needs to be configured in
11970// StreamingDetectIntentRequest.query_params. And for
11971// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent,
11972// it needs to be configured in
11973// ConversationProfile.human_agent_assistant_config
11974type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
11975	// QueryTextSentiment: The sentiment analysis result for `query_text`.
11976	QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
11977
11978	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment")
11979	// to unconditionally include in API requests. By default, fields with
11980	// empty values are omitted from API requests. However, any non-pointer,
11981	// non-interface field appearing in ForceSendFields will be sent to the
11982	// server regardless of whether the field is empty or not. This may be
11983	// used to include empty fields in Patch requests.
11984	ForceSendFields []string `json:"-"`
11985
11986	// NullFields is a list of field names (e.g. "QueryTextSentiment") to
11987	// include in API requests with the JSON null value. By default, fields
11988	// with empty values are omitted from API requests. However, any field
11989	// with an empty value appearing in NullFields will be sent to the
11990	// server as null. It is an error if a field in this list has a
11991	// non-empty value. This may be used to include null fields in Patch
11992	// requests.
11993	NullFields []string `json:"-"`
11994}
11995
11996func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
11997	type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
11998	raw := NoMethod(*s)
11999	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12000}
12001
12002// GoogleCloudDialogflowV2SessionEntityType: A session represents a
12003// conversation between a Dialogflow agent and an end-user. You can
12004// create special entities, called session entities, during a session.
12005// Session entities can extend or replace custom entity types and only
12006// exist during the session that they were created for. All session
12007// data, including session entities, is stored by Dialogflow for 20
12008// minutes. For more information, see the session entity guide
12009// (https://cloud.google.com/dialogflow/docs/entities-session).
12010type GoogleCloudDialogflowV2SessionEntityType struct {
12011	// Entities: Required. The collection of entities associated with this
12012	// session entity type.
12013	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
12014
12015	// EntityOverrideMode: Required. Indicates whether the additional data
12016	// should override or supplement the custom entity type definition.
12017	//
12018	// Possible values:
12019	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value
12020	// should be never used.
12021	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session
12022	// entities overrides the collection of entities in the corresponding
12023	// custom entity type.
12024	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session
12025	// entities extends the collection of entities in the corresponding
12026	// custom entity type. Note: Even in this override mode calls to
12027	// `ListSessionEntityTypes`, `GetSessionEntityType`,
12028	// `CreateSessionEntityType` and `UpdateSessionEntityType` only return
12029	// the additional entities added in this session entity type. If you
12030	// want to get the supplemented list, please call
12031	// EntityTypes.GetEntityType on the custom entity type and merge.
12032	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
12033
12034	// Name: Required. The unique identifier of this session entity type.
12035	// Format: `projects//agent/sessions//entityTypes/`, or
12036	// `projects//agent/environments//users//sessions//entityTypes/`. If
12037	// `Environment ID` is not specified, we assume default 'draft'
12038	// environment. If `User ID` is not specified, we assume default '-'
12039	// user. `` must be the display name of an existing entity type in the
12040	// same agent that will be overridden or supplemented.
12041	Name string `json:"name,omitempty"`
12042
12043	// ForceSendFields is a list of field names (e.g. "Entities") to
12044	// unconditionally include in API requests. By default, fields with
12045	// empty values are omitted from API requests. However, any non-pointer,
12046	// non-interface field appearing in ForceSendFields will be sent to the
12047	// server regardless of whether the field is empty or not. This may be
12048	// used to include empty fields in Patch requests.
12049	ForceSendFields []string `json:"-"`
12050
12051	// NullFields is a list of field names (e.g. "Entities") to include in
12052	// API requests with the JSON null value. By default, fields with empty
12053	// values are omitted from API requests. However, any field with an
12054	// empty value appearing in NullFields will be sent to the server as
12055	// null. It is an error if a field in this list has a non-empty value.
12056	// This may be used to include null fields in Patch requests.
12057	NullFields []string `json:"-"`
12058}
12059
12060func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
12061	type NoMethod GoogleCloudDialogflowV2SessionEntityType
12062	raw := NoMethod(*s)
12063	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12064}
12065
12066// GoogleCloudDialogflowV2SuggestArticlesResponse: The response message
12067// for Participants.SuggestArticles.
12068type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
12069	// ArticleAnswers: Articles ordered by score in descending order.
12070	ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
12071
12072	// ContextSize: Number of messages prior to and including latest_message
12073	// to compile the suggestion. It may be smaller than the
12074	// SuggestArticlesRequest.context_size field in the request if there
12075	// aren't that many messages in the conversation.
12076	ContextSize int64 `json:"contextSize,omitempty"`
12077
12078	// LatestMessage: The name of the latest conversation message used to
12079	// compile suggestion for. Format:
12080	// `projects//locations//conversations//messages/`.
12081	LatestMessage string `json:"latestMessage,omitempty"`
12082
12083	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
12084	// unconditionally include in API requests. By default, fields with
12085	// empty values are omitted from API requests. However, any non-pointer,
12086	// non-interface field appearing in ForceSendFields will be sent to the
12087	// server regardless of whether the field is empty or not. This may be
12088	// used to include empty fields in Patch requests.
12089	ForceSendFields []string `json:"-"`
12090
12091	// NullFields is a list of field names (e.g. "ArticleAnswers") to
12092	// include in API requests with the JSON null value. By default, fields
12093	// with empty values are omitted from API requests. However, any field
12094	// with an empty value appearing in NullFields will be sent to the
12095	// server as null. It is an error if a field in this list has a
12096	// non-empty value. This may be used to include null fields in Patch
12097	// requests.
12098	NullFields []string `json:"-"`
12099}
12100
12101func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
12102	type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
12103	raw := NoMethod(*s)
12104	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12105}
12106
12107// GoogleCloudDialogflowV2SuggestFaqAnswersResponse: The request message
12108// for Participants.SuggestFaqAnswers.
12109type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
12110	// ContextSize: Number of messages prior to and including latest_message
12111	// to compile the suggestion. It may be smaller than the
12112	// SuggestFaqAnswersRequest.context_size field in the request if there
12113	// aren't that many messages in the conversation.
12114	ContextSize int64 `json:"contextSize,omitempty"`
12115
12116	// FaqAnswers: Answers extracted from FAQ documents.
12117	FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
12118
12119	// LatestMessage: The name of the latest conversation message used to
12120	// compile suggestion for. Format:
12121	// `projects//locations//conversations//messages/`.
12122	LatestMessage string `json:"latestMessage,omitempty"`
12123
12124	// ForceSendFields is a list of field names (e.g. "ContextSize") to
12125	// unconditionally include in API requests. By default, fields with
12126	// empty values are omitted from API requests. However, any non-pointer,
12127	// non-interface field appearing in ForceSendFields will be sent to the
12128	// server regardless of whether the field is empty or not. This may be
12129	// used to include empty fields in Patch requests.
12130	ForceSendFields []string `json:"-"`
12131
12132	// NullFields is a list of field names (e.g. "ContextSize") to include
12133	// in API requests with the JSON null value. By default, fields with
12134	// empty values are omitted from API requests. However, any field with
12135	// an empty value appearing in NullFields will be sent to the server as
12136	// null. It is an error if a field in this list has a non-empty value.
12137	// This may be used to include null fields in Patch requests.
12138	NullFields []string `json:"-"`
12139}
12140
12141func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
12142	type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
12143	raw := NoMethod(*s)
12144	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12145}
12146
12147// GoogleCloudDialogflowV2SuggestionResult: One response of different
12148// type of suggestion response which is used in the response of
12149// Participants.AnalyzeContent and Participants.AnalyzeContent, as well
12150// as HumanAgentAssistantEvent.
12151type GoogleCloudDialogflowV2SuggestionResult struct {
12152	// Error: Error status if the request failed.
12153	Error *GoogleRpcStatus `json:"error,omitempty"`
12154
12155	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
12156	// ARTICLE_SUGGESTION.
12157	SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
12158
12159	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is
12160	// for FAQ_ANSWER.
12161	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
12162
12163	// ForceSendFields is a list of field names (e.g. "Error") to
12164	// unconditionally include in API requests. By default, fields with
12165	// empty values are omitted from API requests. However, any non-pointer,
12166	// non-interface field appearing in ForceSendFields will be sent to the
12167	// server regardless of whether the field is empty or not. This may be
12168	// used to include empty fields in Patch requests.
12169	ForceSendFields []string `json:"-"`
12170
12171	// NullFields is a list of field names (e.g. "Error") to include in API
12172	// requests with the JSON null value. By default, fields with empty
12173	// values are omitted from API requests. However, any field with an
12174	// empty value appearing in NullFields will be sent to the server as
12175	// null. It is an error if a field in this list has a non-empty value.
12176	// This may be used to include null fields in Patch requests.
12177	NullFields []string `json:"-"`
12178}
12179
12180func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
12181	type NoMethod GoogleCloudDialogflowV2SuggestionResult
12182	raw := NoMethod(*s)
12183	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12184}
12185
12186// GoogleCloudDialogflowV2WebhookRequest: The request message for a
12187// webhook call.
12188type GoogleCloudDialogflowV2WebhookRequest struct {
12189	// OriginalDetectIntentRequest: Optional. The contents of the original
12190	// request that was passed to `[Streaming]DetectIntent` call.
12191	OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
12192
12193	// QueryResult: The result of the conversational query or event
12194	// processing. Contains the same value as
12195	// `[Streaming]DetectIntentResponse.query_result`.
12196	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
12197
12198	// ResponseId: The unique identifier of the response. Contains the same
12199	// value as `[Streaming]DetectIntentResponse.response_id`.
12200	ResponseId string `json:"responseId,omitempty"`
12201
12202	// Session: The unique identifier of detectIntent request session. Can
12203	// be used to identify end-user inside webhook implementation. Format:
12204	// `projects//agent/sessions/`, or
12205	// `projects//agent/environments//users//sessions/`.
12206	Session string `json:"session,omitempty"`
12207
12208	// ForceSendFields is a list of field names (e.g.
12209	// "OriginalDetectIntentRequest") to unconditionally include in API
12210	// requests. By default, fields with empty values are omitted from API
12211	// requests. However, any non-pointer, non-interface field appearing in
12212	// ForceSendFields will be sent to the server regardless of whether the
12213	// field is empty or not. This may be used to include empty fields in
12214	// Patch requests.
12215	ForceSendFields []string `json:"-"`
12216
12217	// NullFields is a list of field names (e.g.
12218	// "OriginalDetectIntentRequest") to include in API requests with the
12219	// JSON null value. By default, fields with empty values are omitted
12220	// from API requests. However, any field with an empty value appearing
12221	// in NullFields will be sent to the server as null. It is an error if a
12222	// field in this list has a non-empty value. This may be used to include
12223	// null fields in Patch requests.
12224	NullFields []string `json:"-"`
12225}
12226
12227func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
12228	type NoMethod GoogleCloudDialogflowV2WebhookRequest
12229	raw := NoMethod(*s)
12230	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12231}
12232
12233// GoogleCloudDialogflowV2WebhookResponse: The response message for a
12234// webhook call. This response is validated by the Dialogflow server. If
12235// validation fails, an error will be returned in the
12236// QueryResult.diagnostic_info field. Setting JSON fields to an empty
12237// value with the wrong type is a common error. To avoid this error: -
12238// Use "" for empty strings - Use `{}` or `null` for empty objects -
12239// Use `[]` or `null` for empty arrays For more information, see the
12240// Protocol Buffers Language Guide
12241// (https://developers.google.com/protocol-buffers/docs/proto3#json).
12242type GoogleCloudDialogflowV2WebhookResponse struct {
12243	// FollowupEventInput: Optional. Invokes the supplied events. When this
12244	// field is set, Dialogflow ignores the `fulfillment_text`,
12245	// `fulfillment_messages`, and `payload` fields.
12246	FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
12247
12248	// FulfillmentMessages: Optional. The rich response messages intended
12249	// for the end-user. When provided, Dialogflow uses this field to
12250	// populate QueryResult.fulfillment_messages sent to the integration or
12251	// API caller.
12252	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
12253
12254	// FulfillmentText: Optional. The text response message intended for the
12255	// end-user. It is recommended to use
12256	// `fulfillment_messages.text.text[0]` instead. When provided,
12257	// Dialogflow uses this field to populate QueryResult.fulfillment_text
12258	// sent to the integration or API caller.
12259	FulfillmentText string `json:"fulfillmentText,omitempty"`
12260
12261	// OutputContexts: Optional. The collection of output contexts that will
12262	// overwrite currently active contexts for the session and reset their
12263	// lifespans. When provided, Dialogflow uses this field to populate
12264	// QueryResult.output_contexts sent to the integration or API caller.
12265	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
12266
12267	// Payload: Optional. This field can be used to pass custom data from
12268	// your webhook to the integration or API caller. Arbitrary JSON objects
12269	// are supported. When provided, Dialogflow uses this field to populate
12270	// QueryResult.webhook_payload sent to the integration or API caller.
12271	// This field is also used by the Google Assistant integration
12272	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
12273	// response messages. See the format definition at Google Assistant
12274	// Dialogflow webhook format
12275	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
12276	Payload googleapi.RawMessage `json:"payload,omitempty"`
12277
12278	// SessionEntityTypes: Optional. Additional session entity types to
12279	// replace or extend developer entity types with. The entity synonyms
12280	// apply to all languages and persist for the session. Setting this data
12281	// from a webhook overwrites the session entity types that have been set
12282	// using `detectIntent`, `streamingDetectIntent` or SessionEntityType
12283	// management methods.
12284	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
12285
12286	// Source: Optional. A custom field used to identify the webhook source.
12287	// Arbitrary strings are supported. When provided, Dialogflow uses this
12288	// field to populate QueryResult.webhook_source sent to the integration
12289	// or API caller.
12290	Source string `json:"source,omitempty"`
12291
12292	// ForceSendFields is a list of field names (e.g. "FollowupEventInput")
12293	// to unconditionally include in API requests. By default, fields with
12294	// empty values are omitted from API requests. However, any non-pointer,
12295	// non-interface field appearing in ForceSendFields will be sent to the
12296	// server regardless of whether the field is empty or not. This may be
12297	// used to include empty fields in Patch requests.
12298	ForceSendFields []string `json:"-"`
12299
12300	// NullFields is a list of field names (e.g. "FollowupEventInput") to
12301	// include in API requests with the JSON null value. By default, fields
12302	// with empty values are omitted from API requests. However, any field
12303	// with an empty value appearing in NullFields will be sent to the
12304	// server as null. It is an error if a field in this list has a
12305	// non-empty value. This may be used to include null fields in Patch
12306	// requests.
12307	NullFields []string `json:"-"`
12308}
12309
12310func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
12311	type NoMethod GoogleCloudDialogflowV2WebhookResponse
12312	raw := NoMethod(*s)
12313	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12314}
12315
12316// GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part
12317// of a message possibly annotated with an entity. The part can be an
12318// entity or purely a part of the message between two entities or
12319// message start/end.
12320type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
12321	// EntityType: Optional. The Dialogflow system entity type
12322	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
12323	// of this message part. If this is empty, Dialogflow could not annotate
12324	// the phrase part with a system entity.
12325	EntityType string `json:"entityType,omitempty"`
12326
12327	// FormattedValue: Optional. The Dialogflow system entity formatted
12328	// value
12329	// (https://cloud.google.com/dialogflow/docs/reference/system-entities)
12330	// of this message part. For example for a system entity of type
12331	// `@sys.unit-currency`, this may contain: { "amount": 5, "currency":
12332	// "USD" }
12333	FormattedValue interface{} `json:"formattedValue,omitempty"`
12334
12335	// Text: Required. A part of a message possibly annotated with an
12336	// entity.
12337	Text string `json:"text,omitempty"`
12338
12339	// ForceSendFields is a list of field names (e.g. "EntityType") to
12340	// unconditionally include in API requests. By default, fields with
12341	// empty values are omitted from API requests. However, any non-pointer,
12342	// non-interface field appearing in ForceSendFields will be sent to the
12343	// server regardless of whether the field is empty or not. This may be
12344	// used to include empty fields in Patch requests.
12345	ForceSendFields []string `json:"-"`
12346
12347	// NullFields is a list of field names (e.g. "EntityType") to include in
12348	// API requests with the JSON null value. By default, fields with empty
12349	// values are omitted from API requests. However, any field with an
12350	// empty value appearing in NullFields will be sent to the server as
12351	// null. It is an error if a field in this list has a non-empty value.
12352	// This may be used to include null fields in Patch requests.
12353	NullFields []string `json:"-"`
12354}
12355
12356func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
12357	type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
12358	raw := NoMethod(*s)
12359	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12360}
12361
12362// GoogleCloudDialogflowV2beta1ArticleAnswer: Represents article answer.
12363type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
12364	// AnswerRecord: The name of answer record, in the format of
12365	// "projects//locations//answerRecords/"
12366	AnswerRecord string `json:"answerRecord,omitempty"`
12367
12368	// Metadata: A map that contains metadata about the answer and the
12369	// document from which it originates.
12370	Metadata map[string]string `json:"metadata,omitempty"`
12371
12372	// Snippets: Output only. Article snippets.
12373	Snippets []string `json:"snippets,omitempty"`
12374
12375	// Title: The article title.
12376	Title string `json:"title,omitempty"`
12377
12378	// Uri: The article URI.
12379	Uri string `json:"uri,omitempty"`
12380
12381	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
12382	// unconditionally include in API requests. By default, fields with
12383	// empty values are omitted from API requests. However, any non-pointer,
12384	// non-interface field appearing in ForceSendFields will be sent to the
12385	// server regardless of whether the field is empty or not. This may be
12386	// used to include empty fields in Patch requests.
12387	ForceSendFields []string `json:"-"`
12388
12389	// NullFields is a list of field names (e.g. "AnswerRecord") to include
12390	// in API requests with the JSON null value. By default, fields with
12391	// empty values are omitted from API requests. However, any field with
12392	// an empty value appearing in NullFields will be sent to the server as
12393	// null. It is an error if a field in this list has a non-empty value.
12394	// This may be used to include null fields in Patch requests.
12395	NullFields []string `json:"-"`
12396}
12397
12398func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
12399	type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
12400	raw := NoMethod(*s)
12401	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12402}
12403
12404// GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The
12405// response message for EntityTypes.BatchUpdateEntityTypes.
12406type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
12407	// EntityTypes: The collection of updated or created entity types.
12408	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
12409
12410	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
12411	// unconditionally include in API requests. By default, fields with
12412	// empty values are omitted from API requests. However, any non-pointer,
12413	// non-interface field appearing in ForceSendFields will be sent to the
12414	// server regardless of whether the field is empty or not. This may be
12415	// used to include empty fields in Patch requests.
12416	ForceSendFields []string `json:"-"`
12417
12418	// NullFields is a list of field names (e.g. "EntityTypes") to include
12419	// in API requests with the JSON null value. By default, fields with
12420	// empty values are omitted from API requests. However, any field with
12421	// an empty value appearing in NullFields will be sent to the server as
12422	// null. It is an error if a field in this list has a non-empty value.
12423	// This may be used to include null fields in Patch requests.
12424	NullFields []string `json:"-"`
12425}
12426
12427func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
12428	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
12429	raw := NoMethod(*s)
12430	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12431}
12432
12433// GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response
12434// message for Intents.BatchUpdateIntents.
12435type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
12436	// Intents: The collection of updated or created intents.
12437	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
12438
12439	// ForceSendFields is a list of field names (e.g. "Intents") to
12440	// unconditionally include in API requests. By default, fields with
12441	// empty values are omitted from API requests. However, any non-pointer,
12442	// non-interface field appearing in ForceSendFields will be sent to the
12443	// server regardless of whether the field is empty or not. This may be
12444	// used to include empty fields in Patch requests.
12445	ForceSendFields []string `json:"-"`
12446
12447	// NullFields is a list of field names (e.g. "Intents") to include in
12448	// API requests with the JSON null value. By default, fields with empty
12449	// values are omitted from API requests. However, any field with an
12450	// empty value appearing in NullFields will be sent to the server as
12451	// null. It is an error if a field in this list has a non-empty value.
12452	// This may be used to include null fields in Patch requests.
12453	NullFields []string `json:"-"`
12454}
12455
12456func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
12457	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
12458	raw := NoMethod(*s)
12459	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12460}
12461
12462// GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar
12463// to natural language context. If a person says to you "they are
12464// orange", you need context in order to understand what "they" is
12465// referring to. Similarly, for Dialogflow to handle an end-user
12466// expression like that, it needs to be provided with context in order
12467// to correctly match an intent. Using contexts, you can control the
12468// flow of a conversation. You can configure contexts for an intent by
12469// setting input and output contexts, which are identified by string
12470// names. When an intent is matched, any configured output contexts for
12471// that intent become active. While any contexts are active, Dialogflow
12472// is more likely to match intents that are configured with input
12473// contexts that correspond to the currently active contexts. For more
12474// information about context, see the Contexts guide
12475// (https://cloud.google.com/dialogflow/docs/contexts-overview).
12476type GoogleCloudDialogflowV2beta1Context struct {
12477	// LifespanCount: Optional. The number of conversational query requests
12478	// after which the context expires. The default is `0`. If set to `0`,
12479	// the context expires immediately. Contexts expire automatically after
12480	// 20 minutes if there are no matching queries.
12481	LifespanCount int64 `json:"lifespanCount,omitempty"`
12482
12483	// Name: Required. The unique identifier of the context. Supported
12484	// formats: - `projects//agent/sessions//contexts/`, -
12485	// `projects//locations//agent/sessions//contexts/`, -
12486	// `projects//agent/environments//users//sessions//contexts/`, -
12487	// `projects//locations//agent/environments//users//sessions//contexts/`,
12488	//  The `Context ID` is always converted to lowercase, may only contain
12489	// characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If
12490	// `Environment ID` is not specified, we assume default 'draft'
12491	// environment. If `User ID` is not specified, we assume default '-'
12492	// user. The following context names are reserved for internal use by
12493	// Dialogflow. You should not use these contexts or create contexts with
12494	// these names: * `__system_counters__` * `*_id_dialog_context` *
12495	// `*_dialog_params_size`
12496	Name string `json:"name,omitempty"`
12497
12498	// Parameters: Optional. The collection of parameters associated with
12499	// this context. Depending on your protocol or client library language,
12500	// this is a map, associative array, symbol table, dictionary, or JSON
12501	// object composed of a collection of (MapKey, MapValue) pairs: - MapKey
12502	// type: string - MapKey value: parameter name - MapValue type: - If
12503	// parameter's entity type is a composite entity: map - Else: depending
12504	// on parameter value type, could be one of string, number, boolean,
12505	// null, list or map - MapValue value: - If parameter's entity type is a
12506	// composite entity: map from composite entity property names to
12507	// property values - Else: parameter value
12508	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
12509
12510	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
12511	// unconditionally include in API requests. By default, fields with
12512	// empty values are omitted from API requests. However, any non-pointer,
12513	// non-interface field appearing in ForceSendFields will be sent to the
12514	// server regardless of whether the field is empty or not. This may be
12515	// used to include empty fields in Patch requests.
12516	ForceSendFields []string `json:"-"`
12517
12518	// NullFields is a list of field names (e.g. "LifespanCount") to include
12519	// in API requests with the JSON null value. By default, fields with
12520	// empty values are omitted from API requests. However, any field with
12521	// an empty value appearing in NullFields will be sent to the server as
12522	// null. It is an error if a field in this list has a non-empty value.
12523	// This may be used to include null fields in Patch requests.
12524	NullFields []string `json:"-"`
12525}
12526
12527func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
12528	type NoMethod GoogleCloudDialogflowV2beta1Context
12529	raw := NoMethod(*s)
12530	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12531}
12532
12533// GoogleCloudDialogflowV2beta1ConversationEvent: Represents a
12534// notification sent to Pub/Sub subscribers for conversation lifecycle
12535// events.
12536type GoogleCloudDialogflowV2beta1ConversationEvent struct {
12537	// Conversation: Required. The unique identifier of the conversation
12538	// this notification refers to. Format: `projects//conversations/`.
12539	Conversation string `json:"conversation,omitempty"`
12540
12541	// ErrorStatus: Optional. More detailed information about an error. Only
12542	// set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
12543	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
12544
12545	// NewMessagePayload: Payload of NEW_MESSAGE event.
12546	NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
12547
12548	// Type: Required. The type of the event that this notification refers
12549	// to.
12550	//
12551	// Possible values:
12552	//   "TYPE_UNSPECIFIED" - Type not set.
12553	//   "CONVERSATION_STARTED" - A new conversation has been opened. This
12554	// is fired when a telephone call is answered, or a conversation is
12555	// created via the API.
12556	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This
12557	// is fired when a telephone call is terminated, or a conversation is
12558	// closed via the API.
12559	//   "NEW_MESSAGE" - An existing conversation has received a new
12560	// message, either from API or telephony. It is configured in
12561	// ConversationProfile.new_message_event_notification_config
12562	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone
12563	// call. In general non-recoverable errors only occur if something was
12564	// misconfigured in the ConversationProfile corresponding to the call.
12565	// After a non-recoverable error, Dialogflow may stop responding. We
12566	// don't fire this event: * in an API call because we can directly
12567	// return the error, or, * when we can recover from an error.
12568	Type string `json:"type,omitempty"`
12569
12570	// ForceSendFields is a list of field names (e.g. "Conversation") to
12571	// unconditionally include in API requests. By default, fields with
12572	// empty values are omitted from API requests. However, any non-pointer,
12573	// non-interface field appearing in ForceSendFields will be sent to the
12574	// server regardless of whether the field is empty or not. This may be
12575	// used to include empty fields in Patch requests.
12576	ForceSendFields []string `json:"-"`
12577
12578	// NullFields is a list of field names (e.g. "Conversation") to include
12579	// in API requests with the JSON null value. By default, fields with
12580	// empty values are omitted from API requests. However, any field with
12581	// an empty value appearing in NullFields will be sent to the server as
12582	// null. It is an error if a field in this list has a non-empty value.
12583	// This may be used to include null fields in Patch requests.
12584	NullFields []string `json:"-"`
12585}
12586
12587func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
12588	type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
12589	raw := NoMethod(*s)
12590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12591}
12592
12593// GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a
12594// type, called the entity type, which dictates exactly how data from an
12595// end-user expression is extracted. Dialogflow provides predefined
12596// system entities that can match many common types of data. For
12597// example, there are system entities for matching dates, times, colors,
12598// email addresses, and so on. You can also create your own custom
12599// entities for matching custom data. For example, you could define a
12600// vegetable entity that can match the types of vegetables available for
12601// purchase with a grocery store agent. For more information, see the
12602// Entity guide
12603// (https://cloud.google.com/dialogflow/docs/entities-overview).
12604type GoogleCloudDialogflowV2beta1EntityType struct {
12605	// AutoExpansionMode: Optional. Indicates whether the entity type can be
12606	// automatically expanded.
12607	//
12608	// Possible values:
12609	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
12610	// entity.
12611	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values
12612	// that have not been explicitly listed in the entity.
12613	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
12614
12615	// DisplayName: Required. The name of the entity type.
12616	DisplayName string `json:"displayName,omitempty"`
12617
12618	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction
12619	// during classification.
12620	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
12621
12622	// Entities: Optional. The collection of entity entries associated with
12623	// the entity type.
12624	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
12625
12626	// Kind: Required. Indicates the kind of entity type.
12627	//
12628	// Possible values:
12629	//   "KIND_UNSPECIFIED" - Not specified. This value should be never
12630	// used.
12631	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms
12632	// to a reference value.
12633	//   "KIND_LIST" - List entity types contain a set of entries that do
12634	// not map to reference values. However, list entity types can contain
12635	// references to other entity types (with or without aliases).
12636	//   "KIND_REGEXP" - Regexp entity types allow to specify regular
12637	// expressions in entries values.
12638	Kind string `json:"kind,omitempty"`
12639
12640	// Name: The unique identifier of the entity type. Required for
12641	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
12642	// methods. Supported formats: - `projects//agent/entityTypes/` -
12643	// `projects//locations//agent/entityTypes/`
12644	Name string `json:"name,omitempty"`
12645
12646	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode")
12647	// to unconditionally include in API requests. By default, fields with
12648	// empty values are omitted from API requests. However, any non-pointer,
12649	// non-interface field appearing in ForceSendFields will be sent to the
12650	// server regardless of whether the field is empty or not. This may be
12651	// used to include empty fields in Patch requests.
12652	ForceSendFields []string `json:"-"`
12653
12654	// NullFields is a list of field names (e.g. "AutoExpansionMode") to
12655	// include in API requests with the JSON null value. By default, fields
12656	// with empty values are omitted from API requests. However, any field
12657	// with an empty value appearing in NullFields will be sent to the
12658	// server as null. It is an error if a field in this list has a
12659	// non-empty value. This may be used to include null fields in Patch
12660	// requests.
12661	NullFields []string `json:"-"`
12662}
12663
12664func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
12665	type NoMethod GoogleCloudDialogflowV2beta1EntityType
12666	raw := NoMethod(*s)
12667	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12668}
12669
12670// GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for
12671// an associated entity type.
12672type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
12673	// Synonyms: Required. A collection of value synonyms. For example, if
12674	// the entity type is *vegetable*, and `value` is *scallions*, a synonym
12675	// could be *green onions*. For `KIND_LIST` entity types: * This
12676	// collection must contain exactly one synonym equal to `value`.
12677	Synonyms []string `json:"synonyms,omitempty"`
12678
12679	// Value: Required. The primary value associated with this entity entry.
12680	// For example, if the entity type is *vegetable*, the value could be
12681	// *scallions*. For `KIND_MAP` entity types: * A reference value to be
12682	// used in place of synonyms. For `KIND_LIST` entity types: * A string
12683	// that can contain references to other entity types (with or without
12684	// aliases).
12685	Value string `json:"value,omitempty"`
12686
12687	// ForceSendFields is a list of field names (e.g. "Synonyms") to
12688	// unconditionally include in API requests. By default, fields with
12689	// empty values are omitted from API requests. However, any non-pointer,
12690	// non-interface field appearing in ForceSendFields will be sent to the
12691	// server regardless of whether the field is empty or not. This may be
12692	// used to include empty fields in Patch requests.
12693	ForceSendFields []string `json:"-"`
12694
12695	// NullFields is a list of field names (e.g. "Synonyms") to include in
12696	// API requests with the JSON null value. By default, fields with empty
12697	// values are omitted from API requests. However, any field with an
12698	// empty value appearing in NullFields will be sent to the server as
12699	// null. It is an error if a field in this list has a non-empty value.
12700	// This may be used to include null fields in Patch requests.
12701	NullFields []string `json:"-"`
12702}
12703
12704func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
12705	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
12706	raw := NoMethod(*s)
12707	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12708}
12709
12710// GoogleCloudDialogflowV2beta1EventInput: Events allow for matching
12711// intents by event name instead of the natural language input. For
12712// instance, input `` can trigger a personalized welcome response. The
12713// parameter `name` may be used by the agent in the response: "Hello
12714// #welcome_event.name! What can I do for you today?".
12715type GoogleCloudDialogflowV2beta1EventInput struct {
12716	// LanguageCode: Required. The language of this query. See Language
12717	// Support (https://cloud.google.com/dialogflow/docs/reference/language)
12718	// for a list of the currently supported language codes. Note that
12719	// queries in the same session do not necessarily need to specify the
12720	// same language.
12721	LanguageCode string `json:"languageCode,omitempty"`
12722
12723	// Name: Required. The unique identifier of the event.
12724	Name string `json:"name,omitempty"`
12725
12726	// Parameters: The collection of parameters associated with the event.
12727	// Depending on your protocol or client library language, this is a map,
12728	// associative array, symbol table, dictionary, or JSON object composed
12729	// of a collection of (MapKey, MapValue) pairs: - MapKey type: string -
12730	// MapKey value: parameter name - MapValue type: - If parameter's entity
12731	// type is a composite entity: map - Else: depending on parameter value
12732	// type, could be one of string, number, boolean, null, list or map -
12733	// MapValue value: - If parameter's entity type is a composite entity:
12734	// map from composite entity property names to property values - Else:
12735	// parameter value
12736	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
12737
12738	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
12739	// unconditionally include in API requests. By default, fields with
12740	// empty values are omitted from API requests. However, any non-pointer,
12741	// non-interface field appearing in ForceSendFields will be sent to the
12742	// server regardless of whether the field is empty or not. This may be
12743	// used to include empty fields in Patch requests.
12744	ForceSendFields []string `json:"-"`
12745
12746	// NullFields is a list of field names (e.g. "LanguageCode") to include
12747	// in API requests with the JSON null value. By default, fields with
12748	// empty values are omitted from API requests. However, any field with
12749	// an empty value appearing in NullFields will be sent to the server as
12750	// null. It is an error if a field in this list has a non-empty value.
12751	// This may be used to include null fields in Patch requests.
12752	NullFields []string `json:"-"`
12753}
12754
12755func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
12756	type NoMethod GoogleCloudDialogflowV2beta1EventInput
12757	raw := NoMethod(*s)
12758	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12759}
12760
12761// GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message
12762// for Agents.ExportAgent.
12763type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
12764	// AgentContent: Zip compressed raw byte content for agent.
12765	AgentContent string `json:"agentContent,omitempty"`
12766
12767	// AgentUri: The URI to a file containing the exported agent. This field
12768	// is populated only if `agent_uri` is specified in
12769	// `ExportAgentRequest`.
12770	AgentUri string `json:"agentUri,omitempty"`
12771
12772	// ForceSendFields is a list of field names (e.g. "AgentContent") to
12773	// unconditionally include in API requests. By default, fields with
12774	// empty values are omitted from API requests. However, any non-pointer,
12775	// non-interface field appearing in ForceSendFields will be sent to the
12776	// server regardless of whether the field is empty or not. This may be
12777	// used to include empty fields in Patch requests.
12778	ForceSendFields []string `json:"-"`
12779
12780	// NullFields is a list of field names (e.g. "AgentContent") to include
12781	// in API requests with the JSON null value. By default, fields with
12782	// empty values are omitted from API requests. However, any field with
12783	// an empty value appearing in NullFields will be sent to the server as
12784	// null. It is an error if a field in this list has a non-empty value.
12785	// This may be used to include null fields in Patch requests.
12786	NullFields []string `json:"-"`
12787}
12788
12789func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
12790	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
12791	raw := NoMethod(*s)
12792	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12793}
12794
12795// GoogleCloudDialogflowV2beta1FaqAnswer: Represents answer from
12796// "frequently asked questions".
12797type GoogleCloudDialogflowV2beta1FaqAnswer struct {
12798	// Answer: The piece of text from the `source` knowledge base document.
12799	Answer string `json:"answer,omitempty"`
12800
12801	// AnswerRecord: The name of answer record, in the format of
12802	// "projects//locations//answerRecords/"
12803	AnswerRecord string `json:"answerRecord,omitempty"`
12804
12805	// Confidence: The system's confidence score that this Knowledge answer
12806	// is a good match for this conversational query, range from 0.0
12807	// (completely uncertain) to 1.0 (completely certain).
12808	Confidence float64 `json:"confidence,omitempty"`
12809
12810	// Metadata: A map that contains metadata about the answer and the
12811	// document from which it originates.
12812	Metadata map[string]string `json:"metadata,omitempty"`
12813
12814	// Question: The corresponding FAQ question.
12815	Question string `json:"question,omitempty"`
12816
12817	// Source: Indicates which Knowledge Document this answer was extracted
12818	// from. Format:
12819	// `projects//locations//agent/knowledgeBases//documents/`.
12820	Source string `json:"source,omitempty"`
12821
12822	// ForceSendFields is a list of field names (e.g. "Answer") to
12823	// unconditionally include in API requests. By default, fields with
12824	// empty values are omitted from API requests. However, any non-pointer,
12825	// non-interface field appearing in ForceSendFields will be sent to the
12826	// server regardless of whether the field is empty or not. This may be
12827	// used to include empty fields in Patch requests.
12828	ForceSendFields []string `json:"-"`
12829
12830	// NullFields is a list of field names (e.g. "Answer") to include in API
12831	// requests with the JSON null value. By default, fields with empty
12832	// values are omitted from API requests. However, any field with an
12833	// empty value appearing in NullFields will be sent to the server as
12834	// null. It is an error if a field in this list has a non-empty value.
12835	// This may be used to include null fields in Patch requests.
12836	NullFields []string `json:"-"`
12837}
12838
12839func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
12840	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
12841	raw := NoMethod(*s)
12842	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12843}
12844
12845func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
12846	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
12847	var s1 struct {
12848		Confidence gensupport.JSONFloat64 `json:"confidence"`
12849		*NoMethod
12850	}
12851	s1.NoMethod = (*NoMethod)(s)
12852	if err := json.Unmarshal(data, &s1); err != nil {
12853		return err
12854	}
12855	s.Confidence = float64(s1.Confidence)
12856	return nil
12857}
12858
12859// GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent: Output only.
12860// Represents a notification sent to Pub/Sub subscribers for agent
12861// assistant events in a specific conversation.
12862type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
12863	// Conversation: The conversation this notification refers to. Format:
12864	// `projects//conversations/`.
12865	Conversation string `json:"conversation,omitempty"`
12866
12867	// Participant: The participant that the suggestion is compiled for. And
12868	// This field is used to call Participants.ListSuggestions API. Format:
12869	// `projects//conversations//participants/`. It will not be set in
12870	// legacy workflow. HumanAgentAssistantConfig.name for more information.
12871	Participant string `json:"participant,omitempty"`
12872
12873	// SuggestionResults: The suggestion results payload that this
12874	// notification refers to. It will only be set when
12875	// HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses
12876	// sets to true.
12877	SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
12878
12879	// ForceSendFields is a list of field names (e.g. "Conversation") to
12880	// unconditionally include in API requests. By default, fields with
12881	// empty values are omitted from API requests. However, any non-pointer,
12882	// non-interface field appearing in ForceSendFields will be sent to the
12883	// server regardless of whether the field is empty or not. This may be
12884	// used to include empty fields in Patch requests.
12885	ForceSendFields []string `json:"-"`
12886
12887	// NullFields is a list of field names (e.g. "Conversation") to include
12888	// in API requests with the JSON null value. By default, fields with
12889	// empty values are omitted from API requests. However, any field with
12890	// an empty value appearing in NullFields will be sent to the server as
12891	// null. It is an error if a field in this list has a non-empty value.
12892	// This may be used to include null fields in Patch requests.
12893	NullFields []string `json:"-"`
12894}
12895
12896func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
12897	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
12898	raw := NoMethod(*s)
12899	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12900}
12901
12902// GoogleCloudDialogflowV2beta1ImportDocumentsResponse: Response message
12903// for Documents.ImportDocuments.
12904type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
12905	// Warnings: Includes details about skipped documents or any other
12906	// warnings.
12907	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
12908
12909	// ForceSendFields is a list of field names (e.g. "Warnings") to
12910	// unconditionally include in API requests. By default, fields with
12911	// empty values are omitted from API requests. However, any non-pointer,
12912	// non-interface field appearing in ForceSendFields will be sent to the
12913	// server regardless of whether the field is empty or not. This may be
12914	// used to include empty fields in Patch requests.
12915	ForceSendFields []string `json:"-"`
12916
12917	// NullFields is a list of field names (e.g. "Warnings") to include in
12918	// API requests with the JSON null value. By default, fields with empty
12919	// values are omitted from API requests. However, any field with an
12920	// empty value appearing in NullFields will be sent to the server as
12921	// null. It is an error if a field in this list has a non-empty value.
12922	// This may be used to include null fields in Patch requests.
12923	NullFields []string `json:"-"`
12924}
12925
12926func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
12927	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
12928	raw := NoMethod(*s)
12929	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12930}
12931
12932// GoogleCloudDialogflowV2beta1Intent: An intent categorizes an
12933// end-user's intention for one conversation turn. For each agent, you
12934// define many intents, where your combined intents can handle a
12935// complete conversation. When an end-user writes or says something,
12936// referred to as an end-user expression or end-user input, Dialogflow
12937// matches the end-user input to the best intent in your agent. Matching
12938// an intent is also known as intent classification. For more
12939// information, see the intent guide
12940// (https://cloud.google.com/dialogflow/docs/intents-overview).
12941type GoogleCloudDialogflowV2beta1Intent struct {
12942	// Action: Optional. The name of the action associated with the intent.
12943	// Note: The action name must not contain whitespaces.
12944	Action string `json:"action,omitempty"`
12945
12946	// DefaultResponsePlatforms: Optional. The list of platforms for which
12947	// the first responses will be copied from the messages in
12948	// PLATFORM_UNSPECIFIED (i.e. default platform).
12949	//
12950	// Possible values:
12951	//   "PLATFORM_UNSPECIFIED" - Not specified.
12952	//   "FACEBOOK" - Facebook.
12953	//   "SLACK" - Slack.
12954	//   "TELEGRAM" - Telegram.
12955	//   "KIK" - Kik.
12956	//   "SKYPE" - Skype.
12957	//   "LINE" - Line.
12958	//   "VIBER" - Viber.
12959	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
12960	// format](https://developers.google.com/assistant/actions/build/json/dia
12961	// logflow-webhook-json)
12962	//   "TELEPHONY" - Telephony Gateway.
12963	//   "GOOGLE_HANGOUTS" - Google Hangouts.
12964	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
12965
12966	// DisplayName: Required. The name of this intent.
12967	DisplayName string `json:"displayName,omitempty"`
12968
12969	// EndInteraction: Optional. Indicates that this intent ends an
12970	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
12971	// phone gateway) use this information to close interaction with an end
12972	// user. Default is false.
12973	EndInteraction bool `json:"endInteraction,omitempty"`
12974
12975	// Events: Optional. The collection of event names that trigger the
12976	// intent. If the collection of input contexts is not empty, all of the
12977	// contexts must be present in the active user session for an event to
12978	// trigger this intent. Event names are limited to 150 characters.
12979	Events []string `json:"events,omitempty"`
12980
12981	// FollowupIntentInfo: Output only. Information about all followup
12982	// intents that have this intent as a direct or indirect parent. We
12983	// populate this field only in the output.
12984	FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
12985
12986	// InputContextNames: Optional. The list of context names required for
12987	// this intent to be triggered. Formats: -
12988	// `projects//agent/sessions/-/contexts/` -
12989	// `projects//locations//agent/sessions/-/contexts/`
12990	InputContextNames []string `json:"inputContextNames,omitempty"`
12991
12992	// IsFallback: Optional. Indicates whether this is a fallback intent.
12993	IsFallback bool `json:"isFallback,omitempty"`
12994
12995	// LiveAgentHandoff: Optional. Indicates that a live agent should be
12996	// brought in to handle the interaction with the user. In most cases,
12997	// when you set this flag to true, you would also want to set
12998	// end_interaction to true as well. Default is false.
12999	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
13000
13001	// Messages: Optional. The collection of rich messages corresponding to
13002	// the `Response` field in the Dialogflow console.
13003	Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
13004
13005	// MlDisabled: Optional. Indicates whether Machine Learning is disabled
13006	// for the intent. Note: If `ml_disabled` setting is set to true, then
13007	// this intent is not taken into account during inference in `ML ONLY`
13008	// match mode. Also, auto-markup in the UI is turned off.
13009	MlDisabled bool `json:"mlDisabled,omitempty"`
13010
13011	// MlEnabled: Optional. Indicates whether Machine Learning is enabled
13012	// for the intent. Note: If `ml_enabled` setting is set to false, then
13013	// this intent is not taken into account during inference in `ML ONLY`
13014	// match mode. Also, auto-markup in the UI is turned off. DEPRECATED!
13015	// Please use `ml_disabled` field instead. NOTE: If both `ml_enabled`
13016	// and `ml_disabled` are either not set or false, then the default value
13017	// is determined as follows: - Before April 15th, 2018 the default is:
13018	// ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the
13019	// default is: ml_enabled = true / ml_disabled = false.
13020	MlEnabled bool `json:"mlEnabled,omitempty"`
13021
13022	// Name: Optional. The unique identifier of this intent. Required for
13023	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods.
13024	// Supported formats: - `projects//agent/intents/` -
13025	// `projects//locations//agent/intents/`
13026	Name string `json:"name,omitempty"`
13027
13028	// OutputContexts: Optional. The collection of contexts that are
13029	// activated when the intent is matched. Context messages in this
13030	// collection should not set the parameters field. Setting the
13031	// `lifespan_count` to 0 will reset the context when the intent is
13032	// matched. Format: `projects//agent/sessions/-/contexts/`.
13033	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
13034
13035	// Parameters: Optional. The collection of parameters associated with
13036	// the intent.
13037	Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
13038
13039	// ParentFollowupIntentName: Optional. The unique identifier of the
13040	// parent intent in the chain of followup intents. You can set this
13041	// field when creating an intent, for example with CreateIntent or
13042	// BatchUpdateIntents, in order to make this intent a followup intent.
13043	// It identifies the parent followup intent. Format:
13044	// `projects//agent/intents/`.
13045	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13046
13047	// Priority: Optional. The priority of this intent. Higher numbers
13048	// represent higher priorities. - If the supplied value is unspecified
13049	// or 0, the service translates the value to 500,000, which corresponds
13050	// to the `Normal` priority in the console. - If the supplied value is
13051	// negative, the intent is ignored in runtime detect intent requests.
13052	Priority int64 `json:"priority,omitempty"`
13053
13054	// ResetContexts: Optional. Indicates whether to delete all contexts in
13055	// the current session when this intent is matched.
13056	ResetContexts bool `json:"resetContexts,omitempty"`
13057
13058	// RootFollowupIntentName: Output only. The unique identifier of the
13059	// root intent in the chain of followup intents. It identifies the
13060	// correct followup intents chain for this intent. Format:
13061	// `projects//agent/intents/`.
13062	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
13063
13064	// TrainingPhrases: Optional. The collection of examples that the agent
13065	// is trained on.
13066	TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
13067
13068	// WebhookState: Optional. Indicates whether webhooks are enabled for
13069	// the intent.
13070	//
13071	// Possible values:
13072	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and
13073	// in the intent.
13074	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in
13075	// the intent.
13076	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in
13077	// the agent and in the intent. Also, each slot filling prompt is
13078	// forwarded to the webhook.
13079	WebhookState string `json:"webhookState,omitempty"`
13080
13081	// ForceSendFields is a list of field names (e.g. "Action") to
13082	// unconditionally include in API requests. By default, fields with
13083	// empty values are omitted from API requests. However, any non-pointer,
13084	// non-interface field appearing in ForceSendFields will be sent to the
13085	// server regardless of whether the field is empty or not. This may be
13086	// used to include empty fields in Patch requests.
13087	ForceSendFields []string `json:"-"`
13088
13089	// NullFields is a list of field names (e.g. "Action") to include in API
13090	// requests with the JSON null value. By default, fields with empty
13091	// values are omitted from API requests. However, any field with an
13092	// empty value appearing in NullFields will be sent to the server as
13093	// null. It is an error if a field in this list has a non-empty value.
13094	// This may be used to include null fields in Patch requests.
13095	NullFields []string `json:"-"`
13096}
13097
13098func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
13099	type NoMethod GoogleCloudDialogflowV2beta1Intent
13100	raw := NoMethod(*s)
13101	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13102}
13103
13104// GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a
13105// single followup intent in the chain.
13106type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
13107	// FollowupIntentName: The unique identifier of the followup intent.
13108	// Format: `projects//agent/intents/`.
13109	FollowupIntentName string `json:"followupIntentName,omitempty"`
13110
13111	// ParentFollowupIntentName: The unique identifier of the followup
13112	// intent's parent. Format: `projects//agent/intents/`.
13113	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13114
13115	// ForceSendFields is a list of field names (e.g. "FollowupIntentName")
13116	// to unconditionally include in API requests. By default, fields with
13117	// empty values are omitted from API requests. However, any non-pointer,
13118	// non-interface field appearing in ForceSendFields will be sent to the
13119	// server regardless of whether the field is empty or not. This may be
13120	// used to include empty fields in Patch requests.
13121	ForceSendFields []string `json:"-"`
13122
13123	// NullFields is a list of field names (e.g. "FollowupIntentName") to
13124	// include in API requests with the JSON null value. By default, fields
13125	// with empty values are omitted from API requests. However, any field
13126	// with an empty value appearing in NullFields will be sent to the
13127	// server as null. It is an error if a field in this list has a
13128	// non-empty value. This may be used to include null fields in Patch
13129	// requests.
13130	NullFields []string `json:"-"`
13131}
13132
13133func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
13134	type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
13135	raw := NoMethod(*s)
13136	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13137}
13138
13139// GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the
13140// `Response` field in the Dialogflow console.
13141type GoogleCloudDialogflowV2beta1IntentMessage struct {
13142	// BasicCard: Displays a basic card for Actions on Google.
13143	BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
13144
13145	// BrowseCarouselCard: Browse carousel card for Actions on Google.
13146	BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
13147
13148	// Card: Displays a card.
13149	Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
13150
13151	// CarouselSelect: Displays a carousel card for Actions on Google.
13152	CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
13153
13154	// Image: Displays an image.
13155	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13156
13157	// LinkOutSuggestion: Displays a link out suggestion chip for Actions on
13158	// Google.
13159	LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
13160
13161	// ListSelect: Displays a list card for Actions on Google.
13162	ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
13163
13164	// MediaContent: The media content card for Actions on Google.
13165	MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
13166
13167	// Payload: A custom platform-specific response.
13168	Payload googleapi.RawMessage `json:"payload,omitempty"`
13169
13170	// Platform: Optional. The platform that this message is intended for.
13171	//
13172	// Possible values:
13173	//   "PLATFORM_UNSPECIFIED" - Not specified.
13174	//   "FACEBOOK" - Facebook.
13175	//   "SLACK" - Slack.
13176	//   "TELEGRAM" - Telegram.
13177	//   "KIK" - Kik.
13178	//   "SKYPE" - Skype.
13179	//   "LINE" - Line.
13180	//   "VIBER" - Viber.
13181	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
13182	// format](https://developers.google.com/assistant/actions/build/json/dia
13183	// logflow-webhook-json)
13184	//   "TELEPHONY" - Telephony Gateway.
13185	//   "GOOGLE_HANGOUTS" - Google Hangouts.
13186	Platform string `json:"platform,omitempty"`
13187
13188	// QuickReplies: Displays quick replies.
13189	QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
13190
13191	// RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card
13192	// response.
13193	RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
13194
13195	// RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich
13196	// card response.
13197	RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
13198
13199	// RbmText: Rich Business Messaging (RBM) text response. RBM allows
13200	// businesses to send enriched and branded versions of SMS. See
13201	// https://jibe.google.com/business-messaging.
13202	RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
13203
13204	// SimpleResponses: Returns a voice or text-only response for Actions on
13205	// Google.
13206	SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
13207
13208	// Suggestions: Displays suggestion chips for Actions on Google.
13209	Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
13210
13211	// TableCard: Table card for Actions on Google.
13212	TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
13213
13214	// TelephonyPlayAudio: Plays audio from a file in Telephony Gateway.
13215	TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
13216
13217	// TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway.
13218	TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
13219
13220	// TelephonyTransferCall: Transfers the call in Telephony Gateway.
13221	TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
13222
13223	// Text: Returns a text response.
13224	Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
13225
13226	// ForceSendFields is a list of field names (e.g. "BasicCard") to
13227	// unconditionally include in API requests. By default, fields with
13228	// empty values are omitted from API requests. However, any non-pointer,
13229	// non-interface field appearing in ForceSendFields will be sent to the
13230	// server regardless of whether the field is empty or not. This may be
13231	// used to include empty fields in Patch requests.
13232	ForceSendFields []string `json:"-"`
13233
13234	// NullFields is a list of field names (e.g. "BasicCard") to include in
13235	// API requests with the JSON null value. By default, fields with empty
13236	// values are omitted from API requests. However, any field with an
13237	// empty value appearing in NullFields will be sent to the server as
13238	// null. It is an error if a field in this list has a non-empty value.
13239	// This may be used to include null fields in Patch requests.
13240	NullFields []string `json:"-"`
13241}
13242
13243func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
13244	type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
13245	raw := NoMethod(*s)
13246	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13247}
13248
13249// GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card
13250// message. Useful for displaying information.
13251type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
13252	// Buttons: Optional. The collection of card buttons.
13253	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
13254
13255	// FormattedText: Required, unless image is present. The body text of
13256	// the card.
13257	FormattedText string `json:"formattedText,omitempty"`
13258
13259	// Image: Optional. The image for the card.
13260	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13261
13262	// Subtitle: Optional. The subtitle of the card.
13263	Subtitle string `json:"subtitle,omitempty"`
13264
13265	// Title: Optional. The title of the card.
13266	Title string `json:"title,omitempty"`
13267
13268	// ForceSendFields is a list of field names (e.g. "Buttons") to
13269	// unconditionally include in API requests. By default, fields with
13270	// empty values are omitted from API requests. However, any non-pointer,
13271	// non-interface field appearing in ForceSendFields will be sent to the
13272	// server regardless of whether the field is empty or not. This may be
13273	// used to include empty fields in Patch requests.
13274	ForceSendFields []string `json:"-"`
13275
13276	// NullFields is a list of field names (e.g. "Buttons") to include in
13277	// API requests with the JSON null value. By default, fields with empty
13278	// values are omitted from API requests. However, any field with an
13279	// empty value appearing in NullFields will be sent to the server as
13280	// null. It is an error if a field in this list has a non-empty value.
13281	// This may be used to include null fields in Patch requests.
13282	NullFields []string `json:"-"`
13283}
13284
13285func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
13286	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
13287	raw := NoMethod(*s)
13288	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13289}
13290
13291// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button
13292// object that appears at the bottom of a card.
13293type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
13294	// OpenUriAction: Required. Action to take when a user taps on the
13295	// button.
13296	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
13297
13298	// Title: Required. The title of the button.
13299	Title string `json:"title,omitempty"`
13300
13301	// ForceSendFields is a list of field names (e.g. "OpenUriAction") 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. "OpenUriAction") to include
13310	// in API requests with the JSON null value. By default, fields with
13311	// empty values are omitted from API requests. However, any field with
13312	// an 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 *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
13319	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
13320	raw := NoMethod(*s)
13321	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13322}
13323
13324// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction:
13325//  Opens the given URI.
13326type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
13327	// Uri: Required. The HTTP or HTTPS scheme URI.
13328	Uri string `json:"uri,omitempty"`
13329
13330	// ForceSendFields is a list of field names (e.g. "Uri") to
13331	// unconditionally include in API requests. By default, fields with
13332	// empty values are omitted from API requests. However, any non-pointer,
13333	// non-interface field appearing in ForceSendFields will be sent to the
13334	// server regardless of whether the field is empty or not. This may be
13335	// used to include empty fields in Patch requests.
13336	ForceSendFields []string `json:"-"`
13337
13338	// NullFields is a list of field names (e.g. "Uri") to include in API
13339	// requests with the JSON null value. By default, fields with empty
13340	// values are omitted from API requests. However, any field with an
13341	// empty value appearing in NullFields will be sent to the server as
13342	// null. It is an error if a field in this list has a non-empty value.
13343	// This may be used to include null fields in Patch requests.
13344	NullFields []string `json:"-"`
13345}
13346
13347func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
13348	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
13349	raw := NoMethod(*s)
13350	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13351}
13352
13353// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse
13354// Carousel Card for Actions on Google.
13355// https://developers.google.com/actions/assistant/responses#browsing_carousel
13356type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
13357	// ImageDisplayOptions: Optional. Settings for displaying the image.
13358	// Applies to every image in items.
13359	//
13360	// Possible values:
13361	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the
13362	// image and the image container with gray bars.
13363	//   "GRAY" - Fill the gaps between the image and the image container
13364	// with gray bars.
13365	//   "WHITE" - Fill the gaps between the image and the image container
13366	// with white bars.
13367	//   "CROPPED" - Image is scaled such that the image width and height
13368	// match or exceed the container dimensions. This may crop the top and
13369	// bottom of the image if the scaled image height is greater than the
13370	// container height, or crop the left and right of the image if the
13371	// scaled image width is greater than the container width. This is
13372	// similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video.
13373	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame
13374	// with a blurred copy of the same image.
13375	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
13376
13377	// Items: Required. List of items in the Browse Carousel Card. Minimum
13378	// of two items, maximum of ten.
13379	Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
13380
13381	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions")
13382	// to unconditionally include in API requests. By default, fields with
13383	// empty values are omitted from API requests. However, any non-pointer,
13384	// non-interface field appearing in ForceSendFields will be sent to the
13385	// server regardless of whether the field is empty or not. This may be
13386	// used to include empty fields in Patch requests.
13387	ForceSendFields []string `json:"-"`
13388
13389	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to
13390	// include in API requests with the JSON null value. By default, fields
13391	// with empty values are omitted from API requests. However, any field
13392	// with an empty value appearing in NullFields will be sent to the
13393	// server as null. It is an error if a field in this list has a
13394	// non-empty value. This may be used to include null fields in Patch
13395	// requests.
13396	NullFields []string `json:"-"`
13397}
13398
13399func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
13400	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
13401	raw := NoMethod(*s)
13402	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13403}
13404
13405// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou
13406// selCardItem: Browsing carousel tile
13407type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
13408	// Description: Optional. Description of the carousel item. Maximum of
13409	// four lines of text.
13410	Description string `json:"description,omitempty"`
13411
13412	// Footer: Optional. Text that appears at the bottom of the Browse
13413	// Carousel Card. Maximum of one line of text.
13414	Footer string `json:"footer,omitempty"`
13415
13416	// Image: Optional. Hero image for the carousel item.
13417	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13418
13419	// OpenUriAction: Required. Action to present to the user.
13420	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
13421
13422	// Title: Required. Title of the carousel item. Maximum of two lines of
13423	// text.
13424	Title string `json:"title,omitempty"`
13425
13426	// ForceSendFields is a list of field names (e.g. "Description") to
13427	// unconditionally include in API requests. By default, fields with
13428	// empty values are omitted from API requests. However, any non-pointer,
13429	// non-interface field appearing in ForceSendFields will be sent to the
13430	// server regardless of whether the field is empty or not. This may be
13431	// used to include empty fields in Patch requests.
13432	ForceSendFields []string `json:"-"`
13433
13434	// NullFields is a list of field names (e.g. "Description") to include
13435	// in API requests with the JSON null value. By default, fields with
13436	// empty values are omitted from API requests. However, any field with
13437	// an empty value appearing in NullFields will be sent to the server as
13438	// null. It is an error if a field in this list has a non-empty value.
13439	// This may be used to include null fields in Patch requests.
13440	NullFields []string `json:"-"`
13441}
13442
13443func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
13444	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
13445	raw := NoMethod(*s)
13446	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13447}
13448
13449// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou
13450// selCardItemOpenUrlAction: Actions on Google action to open a given
13451// url.
13452type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
13453	// Url: Required. URL
13454	Url string `json:"url,omitempty"`
13455
13456	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
13457	// opening the URL. Defaults to opening via web browser.
13458	//
13459	// Possible values:
13460	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
13461	//   "AMP_ACTION" - Url would be an amp action
13462	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a
13463	// canonical URL which refers to AMP content via .
13464	UrlTypeHint string `json:"urlTypeHint,omitempty"`
13465
13466	// ForceSendFields is a list of field names (e.g. "Url") to
13467	// unconditionally include in API requests. By default, fields with
13468	// empty values are omitted from API requests. However, any non-pointer,
13469	// non-interface field appearing in ForceSendFields will be sent to the
13470	// server regardless of whether the field is empty or not. This may be
13471	// used to include empty fields in Patch requests.
13472	ForceSendFields []string `json:"-"`
13473
13474	// NullFields is a list of field names (e.g. "Url") to include in API
13475	// requests with the JSON null value. By default, fields with empty
13476	// values are omitted from API requests. However, any field with an
13477	// empty value appearing in NullFields will be sent to the server as
13478	// null. It is an error if a field in this list has a non-empty value.
13479	// This may be used to include null fields in Patch requests.
13480	NullFields []string `json:"-"`
13481}
13482
13483func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
13484	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
13485	raw := NoMethod(*s)
13486	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13487}
13488
13489// GoogleCloudDialogflowV2beta1IntentMessageCard: The card response
13490// message.
13491type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
13492	// Buttons: Optional. The collection of card buttons.
13493	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
13494
13495	// ImageUri: Optional. The public URI to an image file for the card.
13496	ImageUri string `json:"imageUri,omitempty"`
13497
13498	// Subtitle: Optional. The subtitle of the card.
13499	Subtitle string `json:"subtitle,omitempty"`
13500
13501	// Title: Optional. The title of the card.
13502	Title string `json:"title,omitempty"`
13503
13504	// ForceSendFields is a list of field names (e.g. "Buttons") to
13505	// unconditionally include in API requests. By default, fields with
13506	// empty values are omitted from API requests. However, any non-pointer,
13507	// non-interface field appearing in ForceSendFields will be sent to the
13508	// server regardless of whether the field is empty or not. This may be
13509	// used to include empty fields in Patch requests.
13510	ForceSendFields []string `json:"-"`
13511
13512	// NullFields is a list of field names (e.g. "Buttons") to include in
13513	// API requests with the JSON null value. By default, fields with empty
13514	// values are omitted from API requests. However, any field with an
13515	// empty value appearing in NullFields will be sent to the server as
13516	// null. It is an error if a field in this list has a non-empty value.
13517	// This may be used to include null fields in Patch requests.
13518	NullFields []string `json:"-"`
13519}
13520
13521func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
13522	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
13523	raw := NoMethod(*s)
13524	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13525}
13526
13527// GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional.
13528// Contains information about a button.
13529type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
13530	// Postback: Optional. The text to send back to the Dialogflow API or a
13531	// URI to open.
13532	Postback string `json:"postback,omitempty"`
13533
13534	// Text: Optional. The text to show on the button.
13535	Text string `json:"text,omitempty"`
13536
13537	// ForceSendFields is a list of field names (e.g. "Postback") to
13538	// unconditionally include in API requests. By default, fields with
13539	// empty values are omitted from API requests. However, any non-pointer,
13540	// non-interface field appearing in ForceSendFields will be sent to the
13541	// server regardless of whether the field is empty or not. This may be
13542	// used to include empty fields in Patch requests.
13543	ForceSendFields []string `json:"-"`
13544
13545	// NullFields is a list of field names (e.g. "Postback") to include in
13546	// API requests with the JSON null value. By default, fields with empty
13547	// values are omitted from API requests. However, any field with an
13548	// empty value appearing in NullFields will be sent to the server as
13549	// null. It is an error if a field in this list has a non-empty value.
13550	// This may be used to include null fields in Patch requests.
13551	NullFields []string `json:"-"`
13552}
13553
13554func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
13555	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
13556	raw := NoMethod(*s)
13557	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13558}
13559
13560// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for
13561// presenting a carousel of options to select from.
13562type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
13563	// Items: Required. Carousel items.
13564	Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
13565
13566	// ForceSendFields is a list of field names (e.g. "Items") to
13567	// unconditionally include in API requests. By default, fields with
13568	// empty values are omitted from API requests. However, any non-pointer,
13569	// non-interface field appearing in ForceSendFields will be sent to the
13570	// server regardless of whether the field is empty or not. This may be
13571	// used to include empty fields in Patch requests.
13572	ForceSendFields []string `json:"-"`
13573
13574	// NullFields is a list of field names (e.g. "Items") to include in API
13575	// requests with the JSON null value. By default, fields with empty
13576	// values are omitted from API requests. However, any field with an
13577	// empty value appearing in NullFields will be sent to the server as
13578	// null. It is an error if a field in this list has a non-empty value.
13579	// This may be used to include null fields in Patch requests.
13580	NullFields []string `json:"-"`
13581}
13582
13583func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
13584	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
13585	raw := NoMethod(*s)
13586	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13587}
13588
13589// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item
13590// in the carousel.
13591type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
13592	// Description: Optional. The body text of the card.
13593	Description string `json:"description,omitempty"`
13594
13595	// Image: Optional. The image to display.
13596	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13597
13598	// Info: Required. Additional info about the option item.
13599	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
13600
13601	// Title: Required. Title of the carousel item.
13602	Title string `json:"title,omitempty"`
13603
13604	// ForceSendFields is a list of field names (e.g. "Description") to
13605	// unconditionally include in API requests. By default, fields with
13606	// empty values are omitted from API requests. However, any non-pointer,
13607	// non-interface field appearing in ForceSendFields will be sent to the
13608	// server regardless of whether the field is empty or not. This may be
13609	// used to include empty fields in Patch requests.
13610	ForceSendFields []string `json:"-"`
13611
13612	// NullFields is a list of field names (e.g. "Description") to include
13613	// in API requests with the JSON null value. By default, fields with
13614	// empty values are omitted from API requests. However, any field with
13615	// an empty value appearing in NullFields will be sent to the server as
13616	// null. It is an error if a field in this list has a non-empty value.
13617	// This may be used to include null fields in Patch requests.
13618	NullFields []string `json:"-"`
13619}
13620
13621func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
13622	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
13623	raw := NoMethod(*s)
13624	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13625}
13626
13627// GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column
13628// properties for TableCard.
13629type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
13630	// Header: Required. Column heading.
13631	Header string `json:"header,omitempty"`
13632
13633	// HorizontalAlignment: Optional. Defines text alignment for all cells
13634	// in this column.
13635	//
13636	// Possible values:
13637	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading
13638	// edge of the column.
13639	//   "LEADING" - Text is aligned to the leading edge of the column.
13640	//   "CENTER" - Text is centered in the column.
13641	//   "TRAILING" - Text is aligned to the trailing edge of the column.
13642	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
13643
13644	// ForceSendFields is a list of field names (e.g. "Header") to
13645	// unconditionally include in API requests. By default, fields with
13646	// empty values are omitted from API requests. However, any non-pointer,
13647	// non-interface field appearing in ForceSendFields will be sent to the
13648	// server regardless of whether the field is empty or not. This may be
13649	// used to include empty fields in Patch requests.
13650	ForceSendFields []string `json:"-"`
13651
13652	// NullFields is a list of field names (e.g. "Header") to include in API
13653	// requests with the JSON null value. By default, fields with empty
13654	// values are omitted from API requests. However, any field with an
13655	// empty value appearing in NullFields will be sent to the server as
13656	// null. It is an error if a field in this list has a non-empty value.
13657	// This may be used to include null fields in Patch requests.
13658	NullFields []string `json:"-"`
13659}
13660
13661func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
13662	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
13663	raw := NoMethod(*s)
13664	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13665}
13666
13667// GoogleCloudDialogflowV2beta1IntentMessageImage: The image response
13668// message.
13669type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
13670	// AccessibilityText: A text description of the image to be used for
13671	// accessibility, e.g., screen readers. Required if image_uri is set for
13672	// CarouselSelect.
13673	AccessibilityText string `json:"accessibilityText,omitempty"`
13674
13675	// ImageUri: Optional. The public URI to an image file.
13676	ImageUri string `json:"imageUri,omitempty"`
13677
13678	// ForceSendFields is a list of field names (e.g. "AccessibilityText")
13679	// to unconditionally include in API requests. By default, fields with
13680	// empty values are omitted from API requests. However, any non-pointer,
13681	// non-interface field appearing in ForceSendFields will be sent to the
13682	// server regardless of whether the field is empty or not. This may be
13683	// used to include empty fields in Patch requests.
13684	ForceSendFields []string `json:"-"`
13685
13686	// NullFields is a list of field names (e.g. "AccessibilityText") to
13687	// include in API requests with the JSON null value. By default, fields
13688	// with empty values are omitted from API requests. However, any field
13689	// with an empty value appearing in NullFields will be sent to the
13690	// server as null. It is an error if a field in this list has a
13691	// non-empty value. This may be used to include null fields in Patch
13692	// requests.
13693	NullFields []string `json:"-"`
13694}
13695
13696func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
13697	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
13698	raw := NoMethod(*s)
13699	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13700}
13701
13702// GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The
13703// suggestion chip message that allows the user to jump out to the app
13704// or website associated with this agent.
13705type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
13706	// DestinationName: Required. The name of the app or site this chip is
13707	// linking to.
13708	DestinationName string `json:"destinationName,omitempty"`
13709
13710	// Uri: Required. The URI of the app or site to open when the user taps
13711	// the suggestion chip.
13712	Uri string `json:"uri,omitempty"`
13713
13714	// ForceSendFields is a list of field names (e.g. "DestinationName") to
13715	// unconditionally include in API requests. By default, fields with
13716	// empty values are omitted from API requests. However, any non-pointer,
13717	// non-interface field appearing in ForceSendFields will be sent to the
13718	// server regardless of whether the field is empty or not. This may be
13719	// used to include empty fields in Patch requests.
13720	ForceSendFields []string `json:"-"`
13721
13722	// NullFields is a list of field names (e.g. "DestinationName") to
13723	// include in API requests with the JSON null value. By default, fields
13724	// with empty values are omitted from API requests. However, any field
13725	// with an empty value appearing in NullFields will be sent to the
13726	// server as null. It is an error if a field in this list has a
13727	// non-empty value. This may be used to include null fields in Patch
13728	// requests.
13729	NullFields []string `json:"-"`
13730}
13731
13732func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
13733	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
13734	raw := NoMethod(*s)
13735	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13736}
13737
13738// GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for
13739// presenting a list of options to select from.
13740type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
13741	// Items: Required. List items.
13742	Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
13743
13744	// Subtitle: Optional. Subtitle of the list.
13745	Subtitle string `json:"subtitle,omitempty"`
13746
13747	// Title: Optional. The overall title of the list.
13748	Title string `json:"title,omitempty"`
13749
13750	// ForceSendFields is a list of field names (e.g. "Items") to
13751	// unconditionally include in API requests. By default, fields with
13752	// empty values are omitted from API requests. However, any non-pointer,
13753	// non-interface field appearing in ForceSendFields will be sent to the
13754	// server regardless of whether the field is empty or not. This may be
13755	// used to include empty fields in Patch requests.
13756	ForceSendFields []string `json:"-"`
13757
13758	// NullFields is a list of field names (e.g. "Items") to include in API
13759	// requests with the JSON null value. By default, fields with empty
13760	// values are omitted from API requests. However, any field with an
13761	// empty value appearing in NullFields will be sent to the server as
13762	// null. It is an error if a field in this list has a non-empty value.
13763	// This may be used to include null fields in Patch requests.
13764	NullFields []string `json:"-"`
13765}
13766
13767func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
13768	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
13769	raw := NoMethod(*s)
13770	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13771}
13772
13773// GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in
13774// the list.
13775type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
13776	// Description: Optional. The main text describing the item.
13777	Description string `json:"description,omitempty"`
13778
13779	// Image: Optional. The image to display.
13780	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
13781
13782	// Info: Required. Additional information about this option.
13783	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
13784
13785	// Title: Required. The title of the list item.
13786	Title string `json:"title,omitempty"`
13787
13788	// ForceSendFields is a list of field names (e.g. "Description") to
13789	// unconditionally include in API requests. By default, fields with
13790	// empty values are omitted from API requests. However, any non-pointer,
13791	// non-interface field appearing in ForceSendFields will be sent to the
13792	// server regardless of whether the field is empty or not. This may be
13793	// used to include empty fields in Patch requests.
13794	ForceSendFields []string `json:"-"`
13795
13796	// NullFields is a list of field names (e.g. "Description") to include
13797	// in API requests with the JSON null value. By default, fields with
13798	// empty values are omitted from API requests. However, any field with
13799	// an empty value appearing in NullFields will be sent to the server as
13800	// null. It is an error if a field in this list has a non-empty value.
13801	// This may be used to include null fields in Patch requests.
13802	NullFields []string `json:"-"`
13803}
13804
13805func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
13806	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
13807	raw := NoMethod(*s)
13808	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13809}
13810
13811// GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media
13812// content card for Actions on Google.
13813type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
13814	// MediaObjects: Required. List of media objects.
13815	MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
13816
13817	// MediaType: Optional. What type of media is the content (ie "audio").
13818	//
13819	// Possible values:
13820	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
13821	//   "AUDIO" - Response media type is audio.
13822	MediaType string `json:"mediaType,omitempty"`
13823
13824	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
13825	// unconditionally include in API requests. By default, fields with
13826	// empty values are omitted from API requests. However, any non-pointer,
13827	// non-interface field appearing in ForceSendFields will be sent to the
13828	// server regardless of whether the field is empty or not. This may be
13829	// used to include empty fields in Patch requests.
13830	ForceSendFields []string `json:"-"`
13831
13832	// NullFields is a list of field names (e.g. "MediaObjects") to include
13833	// in API requests with the JSON null value. By default, fields with
13834	// empty values are omitted from API requests. However, any field with
13835	// an empty value appearing in NullFields will be sent to the server as
13836	// null. It is an error if a field in this list has a non-empty value.
13837	// This may be used to include null fields in Patch requests.
13838	NullFields []string `json:"-"`
13839}
13840
13841func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
13842	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
13843	raw := NoMethod(*s)
13844	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13845}
13846
13847// GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObje
13848// ct: Response media object for media content card.
13849type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
13850	// ContentUrl: Required. Url where the media is stored.
13851	ContentUrl string `json:"contentUrl,omitempty"`
13852
13853	// Description: Optional. Description of media card.
13854	Description string `json:"description,omitempty"`
13855
13856	// Icon: Optional. Icon to display above media content.
13857	Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
13858
13859	// LargeImage: Optional. Image to display above media content.
13860	LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
13861
13862	// Name: Required. Name of media card.
13863	Name string `json:"name,omitempty"`
13864
13865	// ForceSendFields is a list of field names (e.g. "ContentUrl") 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. "ContentUrl") to include in
13874	// API 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 *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
13883	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
13884	raw := NoMethod(*s)
13885	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13886}
13887
13888// GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick
13889// replies response message.
13890type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
13891	// QuickReplies: Optional. The collection of quick replies.
13892	QuickReplies []string `json:"quickReplies,omitempty"`
13893
13894	// Title: Optional. The title of the collection of quick replies.
13895	Title string `json:"title,omitempty"`
13896
13897	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
13898	// unconditionally include in API requests. By default, fields with
13899	// empty values are omitted from API requests. However, any non-pointer,
13900	// non-interface field appearing in ForceSendFields will be sent to the
13901	// server regardless of whether the field is empty or not. This may be
13902	// used to include empty fields in Patch requests.
13903	ForceSendFields []string `json:"-"`
13904
13905	// NullFields is a list of field names (e.g. "QuickReplies") to include
13906	// in API requests with the JSON null value. By default, fields with
13907	// empty values are omitted from API requests. However, any field with
13908	// an empty value appearing in NullFields will be sent to the server as
13909	// null. It is an error if a field in this list has a non-empty value.
13910	// This may be used to include null fields in Patch requests.
13911	NullFields []string `json:"-"`
13912}
13913
13914func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
13915	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
13916	raw := NoMethod(*s)
13917	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13918}
13919
13920// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich
13921// Business Messaging (RBM) Card content
13922type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
13923	// Description: Optional. Description of the card (at most 2000 bytes).
13924	// At least one of the title, description or media must be set.
13925	Description string `json:"description,omitempty"`
13926
13927	// Media: Optional. However at least one of the title, description or
13928	// media must be set. Media (image, GIF or a video) to include in the
13929	// card.
13930	Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
13931
13932	// Suggestions: Optional. List of suggestions to include in the card.
13933	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
13934
13935	// Title: Optional. Title of the card (at most 200 bytes). At least one
13936	// of the title, description or media must be set.
13937	Title string `json:"title,omitempty"`
13938
13939	// ForceSendFields is a list of field names (e.g. "Description") to
13940	// unconditionally include in API requests. By default, fields with
13941	// empty values are omitted from API requests. However, any non-pointer,
13942	// non-interface field appearing in ForceSendFields will be sent to the
13943	// server regardless of whether the field is empty or not. This may be
13944	// used to include empty fields in Patch requests.
13945	ForceSendFields []string `json:"-"`
13946
13947	// NullFields is a list of field names (e.g. "Description") to include
13948	// in API requests with the JSON null value. By default, fields with
13949	// empty values are omitted from API requests. However, any field with
13950	// an empty value appearing in NullFields will be sent to the server as
13951	// null. It is an error if a field in this list has a non-empty value.
13952	// This may be used to include null fields in Patch requests.
13953	NullFields []string `json:"-"`
13954}
13955
13956func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
13957	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
13958	raw := NoMethod(*s)
13959	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13960}
13961
13962// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich
13963// Business Messaging (RBM) Media displayed in Cards The following
13964// media-types are currently supported: Image Types * image/jpeg *
13965// image/jpg' * image/gif * image/png Video Types * video/h263 *
13966// video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm
13967type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
13968	// FileUri: Required. Publicly reachable URI of the file. The RBM
13969	// platform determines the MIME type of the file from the content-type
13970	// field in the HTTP headers when the platform fetches the file. The
13971	// content-type field must be present and accurate in the HTTP response
13972	// from the URL.
13973	FileUri string `json:"fileUri,omitempty"`
13974
13975	// Height: Required for cards with vertical orientation. The height of
13976	// the media within a rich card with a vertical layout. For a standalone
13977	// card with horizontal layout, height is not customizable, and this
13978	// field is ignored.
13979	//
13980	// Possible values:
13981	//   "HEIGHT_UNSPECIFIED" - Not specified.
13982	//   "SHORT" - 112 DP.
13983	//   "MEDIUM" - 168 DP.
13984	//   "TALL" - 264 DP. Not available for rich card carousels when the
13985	// card width is set to small.
13986	Height string `json:"height,omitempty"`
13987
13988	// ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If
13989	// you don't provide a thumbnail URI, the RBM platform displays a blank
13990	// placeholder thumbnail until the user's device downloads the file.
13991	// Depending on the user's setting, the file may not download
13992	// automatically and may require the user to tap a download button.
13993	ThumbnailUri string `json:"thumbnailUri,omitempty"`
13994
13995	// ForceSendFields is a list of field names (e.g. "FileUri") to
13996	// unconditionally include in API requests. By default, fields with
13997	// empty values are omitted from API requests. However, any non-pointer,
13998	// non-interface field appearing in ForceSendFields will be sent to the
13999	// server regardless of whether the field is empty or not. This may be
14000	// used to include empty fields in Patch requests.
14001	ForceSendFields []string `json:"-"`
14002
14003	// NullFields is a list of field names (e.g. "FileUri") to include in
14004	// API requests with the JSON null value. By default, fields with empty
14005	// values are omitted from API requests. However, any field with an
14006	// empty value appearing in NullFields will be sent to the server as
14007	// null. It is an error if a field in this list has a non-empty value.
14008	// This may be used to include null fields in Patch requests.
14009	NullFields []string `json:"-"`
14010}
14011
14012func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
14013	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
14014	raw := NoMethod(*s)
14015	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14016}
14017
14018// GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel
14019// Rich Business Messaging (RBM) rich card. Rich cards allow you to
14020// respond to users with more vivid content, e.g. with media and
14021// suggestions. If you want to show a single card with more control over
14022// the layout, please use RbmStandaloneCard instead.
14023type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
14024	// CardContents: Required. The cards in the carousel. A carousel must
14025	// have at least 2 cards and at most 10.
14026	CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
14027
14028	// CardWidth: Required. The width of the cards in the carousel.
14029	//
14030	// Possible values:
14031	//   "CARD_WIDTH_UNSPECIFIED" - Not specified.
14032	//   "SMALL" - 120 DP. Note that tall media cannot be used.
14033	//   "MEDIUM" - 232 DP.
14034	CardWidth string `json:"cardWidth,omitempty"`
14035
14036	// ForceSendFields is a list of field names (e.g. "CardContents") to
14037	// unconditionally include in API requests. By default, fields with
14038	// empty values are omitted from API requests. However, any non-pointer,
14039	// non-interface field appearing in ForceSendFields will be sent to the
14040	// server regardless of whether the field is empty or not. This may be
14041	// used to include empty fields in Patch requests.
14042	ForceSendFields []string `json:"-"`
14043
14044	// NullFields is a list of field names (e.g. "CardContents") to include
14045	// in API requests with the JSON null value. By default, fields with
14046	// empty values are omitted from API requests. However, any field with
14047	// an empty value appearing in NullFields will be sent to the server as
14048	// null. It is an error if a field in this list has a non-empty value.
14049	// This may be used to include null fields in Patch requests.
14050	NullFields []string `json:"-"`
14051}
14052
14053func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
14054	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
14055	raw := NoMethod(*s)
14056	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14057}
14058
14059// GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard:
14060// Standalone Rich Business Messaging (RBM) rich card. Rich cards allow
14061// you to respond to users with more vivid content, e.g. with media and
14062// suggestions. You can group multiple rich cards into one using
14063// RbmCarouselCard but carousel cards will give you less control over
14064// the card layout.
14065type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
14066	// CardContent: Required. Card content.
14067	CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
14068
14069	// CardOrientation: Required. Orientation of the card.
14070	//
14071	// Possible values:
14072	//   "CARD_ORIENTATION_UNSPECIFIED" - Not specified.
14073	//   "HORIZONTAL" - Horizontal layout.
14074	//   "VERTICAL" - Vertical layout.
14075	CardOrientation string `json:"cardOrientation,omitempty"`
14076
14077	// ThumbnailImageAlignment: Required if orientation is horizontal. Image
14078	// preview alignment for standalone cards with horizontal layout.
14079	//
14080	// Possible values:
14081	//   "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified.
14082	//   "LEFT" - Thumbnail preview is left-aligned.
14083	//   "RIGHT" - Thumbnail preview is right-aligned.
14084	ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
14085
14086	// ForceSendFields is a list of field names (e.g. "CardContent") to
14087	// unconditionally include in API requests. By default, fields with
14088	// empty values are omitted from API requests. However, any non-pointer,
14089	// non-interface field appearing in ForceSendFields will be sent to the
14090	// server regardless of whether the field is empty or not. This may be
14091	// used to include empty fields in Patch requests.
14092	ForceSendFields []string `json:"-"`
14093
14094	// NullFields is a list of field names (e.g. "CardContent") to include
14095	// in API requests with the JSON null value. By default, fields with
14096	// empty values are omitted from API requests. However, any field with
14097	// an empty value appearing in NullFields will be sent to the server as
14098	// null. It is an error if a field in this list has a non-empty value.
14099	// This may be used to include null fields in Patch requests.
14100	NullFields []string `json:"-"`
14101}
14102
14103func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
14104	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
14105	raw := NoMethod(*s)
14106	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14107}
14108
14109// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich
14110// Business Messaging (RBM) suggested client-side action that the user
14111// can choose from the card.
14112type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
14113	// Dial: Suggested client side action: Dial a phone number
14114	Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
14115
14116	// OpenUrl: Suggested client side action: Open a URI on device
14117	OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
14118
14119	// PostbackData: Opaque payload that the Dialogflow receives in a user
14120	// event when the user taps the suggested action. This data will be also
14121	// forwarded to webhook to allow performing custom business logic.
14122	PostbackData string `json:"postbackData,omitempty"`
14123
14124	// ShareLocation: Suggested client side action: Share user location
14125	ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
14126
14127	// Text: Text to display alongside the action.
14128	Text string `json:"text,omitempty"`
14129
14130	// ForceSendFields is a list of field names (e.g. "Dial") to
14131	// unconditionally include in API requests. By default, fields with
14132	// empty values are omitted from API requests. However, any non-pointer,
14133	// non-interface field appearing in ForceSendFields will be sent to the
14134	// server regardless of whether the field is empty or not. This may be
14135	// used to include empty fields in Patch requests.
14136	ForceSendFields []string `json:"-"`
14137
14138	// NullFields is a list of field names (e.g. "Dial") to include in API
14139	// requests with the JSON null value. By default, fields with empty
14140	// values are omitted from API requests. However, any field with an
14141	// empty value appearing in NullFields will be sent to the server as
14142	// null. It is an error if a field in this list has a non-empty value.
14143	// This may be used to include null fields in Patch requests.
14144	NullFields []string `json:"-"`
14145}
14146
14147func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
14148	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
14149	raw := NoMethod(*s)
14150	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14151}
14152
14153// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
14154// dActionDial: Opens the user's default dialer app with the specified
14155// phone number but does not dial automatically.
14156type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
14157	// PhoneNumber: Required. The phone number to fill in the default dialer
14158	// app. This field should be in E.164
14159	// (https://en.wikipedia.org/wiki/E.164) format. An example of a
14160	// correctly formatted phone number: +15556767888.
14161	PhoneNumber string `json:"phoneNumber,omitempty"`
14162
14163	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
14164	// unconditionally include in API requests. By default, fields with
14165	// empty values are omitted from API requests. However, any non-pointer,
14166	// non-interface field appearing in ForceSendFields will be sent to the
14167	// server regardless of whether the field is empty or not. This may be
14168	// used to include empty fields in Patch requests.
14169	ForceSendFields []string `json:"-"`
14170
14171	// NullFields is a list of field names (e.g. "PhoneNumber") to include
14172	// in API requests with the JSON null value. By default, fields with
14173	// empty values are omitted from API requests. However, any field with
14174	// an empty value appearing in NullFields will be sent to the server as
14175	// null. It is an error if a field in this list has a non-empty value.
14176	// This may be used to include null fields in Patch requests.
14177	NullFields []string `json:"-"`
14178}
14179
14180func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
14181	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
14182	raw := NoMethod(*s)
14183	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14184}
14185
14186// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
14187// dActionOpenUri: Opens the user's default web browser app to the
14188// specified uri If the user has an app installed that is registered as
14189// the default handler for the URL, then this app will be opened
14190// instead, and its icon will be used in the suggested action UI.
14191type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
14192	// Uri: Required. The uri to open on the user device
14193	Uri string `json:"uri,omitempty"`
14194
14195	// ForceSendFields is a list of field names (e.g. "Uri") to
14196	// unconditionally include in API requests. By default, fields with
14197	// empty values are omitted from API requests. However, any non-pointer,
14198	// non-interface field appearing in ForceSendFields will be sent to the
14199	// server regardless of whether the field is empty or not. This may be
14200	// used to include empty fields in Patch requests.
14201	ForceSendFields []string `json:"-"`
14202
14203	// NullFields is a list of field names (e.g. "Uri") to include in API
14204	// requests with the JSON null value. By default, fields with empty
14205	// values are omitted from API requests. However, any field with an
14206	// empty value appearing in NullFields will be sent to the server as
14207	// null. It is an error if a field in this list has a non-empty value.
14208	// This may be used to include null fields in Patch requests.
14209	NullFields []string `json:"-"`
14210}
14211
14212func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
14213	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
14214	raw := NoMethod(*s)
14215	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14216}
14217
14218// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste
14219// dActionShareLocation: Opens the device's location chooser so the user
14220// can pick a location to send back to the agent.
14221type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
14222}
14223
14224// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich
14225// Business Messaging (RBM) suggested reply that the user can click
14226// instead of typing in their own response.
14227type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
14228	// PostbackData: Opaque payload that the Dialogflow receives in a user
14229	// event when the user taps the suggested reply. This data will be also
14230	// forwarded to webhook to allow performing custom business logic.
14231	PostbackData string `json:"postbackData,omitempty"`
14232
14233	// Text: Suggested reply text.
14234	Text string `json:"text,omitempty"`
14235
14236	// ForceSendFields is a list of field names (e.g. "PostbackData") to
14237	// unconditionally include in API requests. By default, fields with
14238	// empty values are omitted from API requests. However, any non-pointer,
14239	// non-interface field appearing in ForceSendFields will be sent to the
14240	// server regardless of whether the field is empty or not. This may be
14241	// used to include empty fields in Patch requests.
14242	ForceSendFields []string `json:"-"`
14243
14244	// NullFields is a list of field names (e.g. "PostbackData") to include
14245	// in API requests with the JSON null value. By default, fields with
14246	// empty values are omitted from API requests. However, any field with
14247	// an empty value appearing in NullFields will be sent to the server as
14248	// null. It is an error if a field in this list has a non-empty value.
14249	// This may be used to include null fields in Patch requests.
14250	NullFields []string `json:"-"`
14251}
14252
14253func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
14254	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
14255	raw := NoMethod(*s)
14256	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14257}
14258
14259// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business
14260// Messaging (RBM) suggestion. Suggestions allow user to easily
14261// select/click a predefined response or perform an action (like opening
14262// a web uri).
14263type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
14264	// Action: Predefined client side actions that user can choose
14265	Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
14266
14267	// Reply: Predefined replies for user to select instead of typing
14268	Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
14269
14270	// ForceSendFields is a list of field names (e.g. "Action") to
14271	// unconditionally include in API requests. By default, fields with
14272	// empty values are omitted from API requests. However, any non-pointer,
14273	// non-interface field appearing in ForceSendFields will be sent to the
14274	// server regardless of whether the field is empty or not. This may be
14275	// used to include empty fields in Patch requests.
14276	ForceSendFields []string `json:"-"`
14277
14278	// NullFields is a list of field names (e.g. "Action") to include in API
14279	// requests with the JSON null value. By default, fields with empty
14280	// values are omitted from API requests. However, any field with an
14281	// empty value appearing in NullFields will be sent to the server as
14282	// null. It is an error if a field in this list has a non-empty value.
14283	// This may be used to include null fields in Patch requests.
14284	NullFields []string `json:"-"`
14285}
14286
14287func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
14288	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
14289	raw := NoMethod(*s)
14290	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14291}
14292
14293// GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business
14294// Messaging (RBM) text response with suggestions.
14295type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
14296	// RbmSuggestion: Optional. One or more suggestions to show to the user.
14297	RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
14298
14299	// Text: Required. Text sent and displayed to the user.
14300	Text string `json:"text,omitempty"`
14301
14302	// ForceSendFields is a list of field names (e.g. "RbmSuggestion") to
14303	// unconditionally include in API requests. By default, fields with
14304	// empty values are omitted from API requests. However, any non-pointer,
14305	// non-interface field appearing in ForceSendFields will be sent to the
14306	// server regardless of whether the field is empty or not. This may be
14307	// used to include empty fields in Patch requests.
14308	ForceSendFields []string `json:"-"`
14309
14310	// NullFields is a list of field names (e.g. "RbmSuggestion") to include
14311	// in API requests with the JSON null value. By default, fields with
14312	// empty values are omitted from API requests. However, any field with
14313	// an empty value appearing in NullFields will be sent to the server as
14314	// null. It is an error if a field in this list has a non-empty value.
14315	// This may be used to include null fields in Patch requests.
14316	NullFields []string `json:"-"`
14317}
14318
14319func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
14320	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
14321	raw := NoMethod(*s)
14322	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14323}
14324
14325// GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional
14326// info about the select item for when it is triggered in a dialog.
14327type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
14328	// Key: Required. A unique key that will be sent back to the agent if
14329	// this response is given.
14330	Key string `json:"key,omitempty"`
14331
14332	// Synonyms: Optional. A list of synonyms that can also be used to
14333	// trigger this item in dialog.
14334	Synonyms []string `json:"synonyms,omitempty"`
14335
14336	// ForceSendFields is a list of field names (e.g. "Key") to
14337	// unconditionally include in API requests. By default, fields with
14338	// empty values are omitted from API requests. However, any non-pointer,
14339	// non-interface field appearing in ForceSendFields will be sent to the
14340	// server regardless of whether the field is empty or not. This may be
14341	// used to include empty fields in Patch requests.
14342	ForceSendFields []string `json:"-"`
14343
14344	// NullFields is a list of field names (e.g. "Key") to include in API
14345	// requests with the JSON null value. By default, fields with empty
14346	// values are omitted from API requests. However, any field with an
14347	// empty value appearing in NullFields will be sent to the server as
14348	// null. It is an error if a field in this list has a non-empty value.
14349	// This may be used to include null fields in Patch requests.
14350	NullFields []string `json:"-"`
14351}
14352
14353func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
14354	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
14355	raw := NoMethod(*s)
14356	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14357}
14358
14359// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple
14360// response message containing speech or text.
14361type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
14362	// DisplayText: Optional. The text to display.
14363	DisplayText string `json:"displayText,omitempty"`
14364
14365	// Ssml: One of text_to_speech or ssml must be provided. Structured
14366	// spoken response to the user in the SSML format. Mutually exclusive
14367	// with text_to_speech.
14368	Ssml string `json:"ssml,omitempty"`
14369
14370	// TextToSpeech: One of text_to_speech or ssml must be provided. The
14371	// plain text of the speech output. Mutually exclusive with ssml.
14372	TextToSpeech string `json:"textToSpeech,omitempty"`
14373
14374	// ForceSendFields is a list of field names (e.g. "DisplayText") to
14375	// unconditionally include in API requests. By default, fields with
14376	// empty values are omitted from API requests. However, any non-pointer,
14377	// non-interface field appearing in ForceSendFields will be sent to the
14378	// server regardless of whether the field is empty or not. This may be
14379	// used to include empty fields in Patch requests.
14380	ForceSendFields []string `json:"-"`
14381
14382	// NullFields is a list of field names (e.g. "DisplayText") to include
14383	// in API requests with the JSON null value. By default, fields with
14384	// empty values are omitted from API requests. However, any field with
14385	// an empty value appearing in NullFields will be sent to the server as
14386	// null. It is an error if a field in this list has a non-empty value.
14387	// This may be used to include null fields in Patch requests.
14388	NullFields []string `json:"-"`
14389}
14390
14391func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
14392	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
14393	raw := NoMethod(*s)
14394	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14395}
14396
14397// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The
14398// collection of simple response candidates. This message in
14399// `QueryResult.fulfillment_messages` and
14400// `WebhookResponse.fulfillment_messages` should contain only one
14401// `SimpleResponse`.
14402type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
14403	// SimpleResponses: Required. The list of simple responses.
14404	SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
14405
14406	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
14407	// unconditionally include in API requests. By default, fields with
14408	// empty values are omitted from API requests. However, any non-pointer,
14409	// non-interface field appearing in ForceSendFields will be sent to the
14410	// server regardless of whether the field is empty or not. This may be
14411	// used to include empty fields in Patch requests.
14412	ForceSendFields []string `json:"-"`
14413
14414	// NullFields is a list of field names (e.g. "SimpleResponses") to
14415	// include in API requests with the JSON null value. By default, fields
14416	// with empty values are omitted from API requests. However, any field
14417	// with an empty value appearing in NullFields will be sent to the
14418	// server as null. It is an error if a field in this list has a
14419	// non-empty value. This may be used to include null fields in Patch
14420	// requests.
14421	NullFields []string `json:"-"`
14422}
14423
14424func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
14425	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
14426	raw := NoMethod(*s)
14427	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14428}
14429
14430// GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion
14431// chip message that the user can tap to quickly post a reply to the
14432// conversation.
14433type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
14434	// Title: Required. The text shown the in the suggestion chip.
14435	Title string `json:"title,omitempty"`
14436
14437	// ForceSendFields is a list of field names (e.g. "Title") to
14438	// unconditionally include in API requests. By default, fields with
14439	// empty values are omitted from API requests. However, any non-pointer,
14440	// non-interface field appearing in ForceSendFields will be sent to the
14441	// server regardless of whether the field is empty or not. This may be
14442	// used to include empty fields in Patch requests.
14443	ForceSendFields []string `json:"-"`
14444
14445	// NullFields is a list of field names (e.g. "Title") to include in API
14446	// requests with the JSON null value. By default, fields with empty
14447	// values are omitted from API requests. However, any field with an
14448	// empty value appearing in NullFields will be sent to the server as
14449	// null. It is an error if a field in this list has a non-empty value.
14450	// This may be used to include null fields in Patch requests.
14451	NullFields []string `json:"-"`
14452}
14453
14454func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
14455	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
14456	raw := NoMethod(*s)
14457	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14458}
14459
14460// GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection
14461// of suggestions.
14462type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
14463	// Suggestions: Required. The list of suggested replies.
14464	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
14465
14466	// ForceSendFields is a list of field names (e.g. "Suggestions") to
14467	// unconditionally include in API requests. By default, fields with
14468	// empty values are omitted from API requests. However, any non-pointer,
14469	// non-interface field appearing in ForceSendFields will be sent to the
14470	// server regardless of whether the field is empty or not. This may be
14471	// used to include empty fields in Patch requests.
14472	ForceSendFields []string `json:"-"`
14473
14474	// NullFields is a list of field names (e.g. "Suggestions") to include
14475	// in API requests with the JSON null value. By default, fields with
14476	// empty values are omitted from API requests. However, any field with
14477	// an empty value appearing in NullFields will be sent to the server as
14478	// null. It is an error if a field in this list has a non-empty value.
14479	// This may be used to include null fields in Patch requests.
14480	NullFields []string `json:"-"`
14481}
14482
14483func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
14484	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
14485	raw := NoMethod(*s)
14486	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14487}
14488
14489// GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for
14490// Actions on Google.
14491type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
14492	// Buttons: Optional. List of buttons for the card.
14493	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
14494
14495	// ColumnProperties: Optional. Display properties for the columns in
14496	// this table.
14497	ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
14498
14499	// Image: Optional. Image which should be displayed on the card.
14500	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14501
14502	// Rows: Optional. Rows in this table of data.
14503	Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
14504
14505	// Subtitle: Optional. Subtitle to the title.
14506	Subtitle string `json:"subtitle,omitempty"`
14507
14508	// Title: Required. Title of the card.
14509	Title string `json:"title,omitempty"`
14510
14511	// ForceSendFields is a list of field names (e.g. "Buttons") to
14512	// unconditionally include in API requests. By default, fields with
14513	// empty values are omitted from API requests. However, any non-pointer,
14514	// non-interface field appearing in ForceSendFields will be sent to the
14515	// server regardless of whether the field is empty or not. This may be
14516	// used to include empty fields in Patch requests.
14517	ForceSendFields []string `json:"-"`
14518
14519	// NullFields is a list of field names (e.g. "Buttons") to include in
14520	// API requests with the JSON null value. By default, fields with empty
14521	// values are omitted from API requests. However, any field with an
14522	// empty value appearing in NullFields will be sent to the server as
14523	// null. It is an error if a field in this list has a non-empty value.
14524	// This may be used to include null fields in Patch requests.
14525	NullFields []string `json:"-"`
14526}
14527
14528func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
14529	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
14530	raw := NoMethod(*s)
14531	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14532}
14533
14534// GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of
14535// TableCardRow.
14536type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
14537	// Text: Required. Text in this cell.
14538	Text string `json:"text,omitempty"`
14539
14540	// ForceSendFields is a list of field names (e.g. "Text") to
14541	// unconditionally include in API requests. By default, fields with
14542	// empty values are omitted from API requests. However, any non-pointer,
14543	// non-interface field appearing in ForceSendFields will be sent to the
14544	// server regardless of whether the field is empty or not. This may be
14545	// used to include empty fields in Patch requests.
14546	ForceSendFields []string `json:"-"`
14547
14548	// NullFields is a list of field names (e.g. "Text") to include in API
14549	// requests with the JSON null value. By default, fields with empty
14550	// values are omitted from API requests. However, any field with an
14551	// empty value appearing in NullFields will be sent to the server as
14552	// null. It is an error if a field in this list has a non-empty value.
14553	// This may be used to include null fields in Patch requests.
14554	NullFields []string `json:"-"`
14555}
14556
14557func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
14558	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
14559	raw := NoMethod(*s)
14560	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14561}
14562
14563// GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of
14564// TableCard.
14565type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
14566	// Cells: Optional. List of cells that make up this row.
14567	Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
14568
14569	// DividerAfter: Optional. Whether to add a visual divider after this
14570	// row.
14571	DividerAfter bool `json:"dividerAfter,omitempty"`
14572
14573	// ForceSendFields is a list of field names (e.g. "Cells") to
14574	// unconditionally include in API requests. By default, fields with
14575	// empty values are omitted from API requests. However, any non-pointer,
14576	// non-interface field appearing in ForceSendFields will be sent to the
14577	// server regardless of whether the field is empty or not. This may be
14578	// used to include empty fields in Patch requests.
14579	ForceSendFields []string `json:"-"`
14580
14581	// NullFields is a list of field names (e.g. "Cells") to include in API
14582	// requests with the JSON null value. By default, fields with empty
14583	// values are omitted from API requests. However, any field with an
14584	// empty value appearing in NullFields will be sent to the server as
14585	// null. It is an error if a field in this list has a non-empty value.
14586	// This may be used to include null fields in Patch requests.
14587	NullFields []string `json:"-"`
14588}
14589
14590func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
14591	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
14592	raw := NoMethod(*s)
14593	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14594}
14595
14596// GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays
14597// audio from a file in Telephony Gateway.
14598type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
14599	// AudioUri: Required. URI to a Google Cloud Storage object containing
14600	// the audio to play, e.g., "gs://bucket/object". The object must
14601	// contain a single channel (mono) of linear PCM audio (2 bytes /
14602	// sample) at 8kHz. This object must be readable by the
14603	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
14604	// where is the number of the Telephony Gateway project (usually the
14605	// same as the Dialogflow agent project). If the Google Cloud Storage
14606	// bucket is in the Telephony Gateway project, this permission is added
14607	// by default when enabling the Dialogflow V2 API. For audio from other
14608	// sources, consider using the `TelephonySynthesizeSpeech` message with
14609	// SSML.
14610	AudioUri string `json:"audioUri,omitempty"`
14611
14612	// ForceSendFields is a list of field names (e.g. "AudioUri") to
14613	// unconditionally include in API requests. By default, fields with
14614	// empty values are omitted from API requests. However, any non-pointer,
14615	// non-interface field appearing in ForceSendFields will be sent to the
14616	// server regardless of whether the field is empty or not. This may be
14617	// used to include empty fields in Patch requests.
14618	ForceSendFields []string `json:"-"`
14619
14620	// NullFields is a list of field names (e.g. "AudioUri") to include in
14621	// API requests with the JSON null value. By default, fields with empty
14622	// values are omitted from API requests. However, any field with an
14623	// empty value appearing in NullFields will be sent to the server as
14624	// null. It is an error if a field in this list has a non-empty value.
14625	// This may be used to include null fields in Patch requests.
14626	NullFields []string `json:"-"`
14627}
14628
14629func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
14630	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
14631	raw := NoMethod(*s)
14632	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14633}
14634
14635// GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech:
14636// Synthesizes speech and plays back the synthesized audio to the caller
14637// in Telephony Gateway. Telephony Gateway takes the synthesizer
14638// settings from `DetectIntentResponse.output_audio_config` which can
14639// either be set at request-level or can come from the agent-level
14640// synthesizer config.
14641type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
14642	// Ssml: The SSML to be synthesized. For more information, see SSML
14643	// (https://developers.google.com/actions/reference/ssml).
14644	Ssml string `json:"ssml,omitempty"`
14645
14646	// Text: The raw text to be synthesized.
14647	Text string `json:"text,omitempty"`
14648
14649	// ForceSendFields is a list of field names (e.g. "Ssml") to
14650	// unconditionally include in API requests. By default, fields with
14651	// empty values are omitted from API requests. However, any non-pointer,
14652	// non-interface field appearing in ForceSendFields will be sent to the
14653	// server regardless of whether the field is empty or not. This may be
14654	// used to include empty fields in Patch requests.
14655	ForceSendFields []string `json:"-"`
14656
14657	// NullFields is a list of field names (e.g. "Ssml") to include in API
14658	// requests with the JSON null value. By default, fields with empty
14659	// values are omitted from API requests. However, any field with an
14660	// empty value appearing in NullFields will be sent to the server as
14661	// null. It is an error if a field in this list has a non-empty value.
14662	// This may be used to include null fields in Patch requests.
14663	NullFields []string `json:"-"`
14664}
14665
14666func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
14667	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
14668	raw := NoMethod(*s)
14669	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14670}
14671
14672// GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall:
14673// Transfers the call in Telephony Gateway.
14674type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
14675	// PhoneNumber: Required. The phone number to transfer the call to in
14676	// E.164 format (https://en.wikipedia.org/wiki/E.164). We currently only
14677	// allow transferring to US numbers (+1xxxyyyzzzz).
14678	PhoneNumber string `json:"phoneNumber,omitempty"`
14679
14680	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
14681	// unconditionally include in API requests. By default, fields with
14682	// empty values are omitted from API requests. However, any non-pointer,
14683	// non-interface field appearing in ForceSendFields will be sent to the
14684	// server regardless of whether the field is empty or not. This may be
14685	// used to include empty fields in Patch requests.
14686	ForceSendFields []string `json:"-"`
14687
14688	// NullFields is a list of field names (e.g. "PhoneNumber") to include
14689	// in API requests with the JSON null value. By default, fields with
14690	// empty values are omitted from API requests. However, any field with
14691	// an empty value appearing in NullFields will be sent to the server as
14692	// null. It is an error if a field in this list has a non-empty value.
14693	// This may be used to include null fields in Patch requests.
14694	NullFields []string `json:"-"`
14695}
14696
14697func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
14698	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
14699	raw := NoMethod(*s)
14700	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14701}
14702
14703// GoogleCloudDialogflowV2beta1IntentMessageText: The text response
14704// message.
14705type GoogleCloudDialogflowV2beta1IntentMessageText struct {
14706	// Text: Optional. The collection of the agent's responses.
14707	Text []string `json:"text,omitempty"`
14708
14709	// ForceSendFields is a list of field names (e.g. "Text") to
14710	// unconditionally include in API requests. By default, fields with
14711	// empty values are omitted from API requests. However, any non-pointer,
14712	// non-interface field appearing in ForceSendFields will be sent to the
14713	// server regardless of whether the field is empty or not. This may be
14714	// used to include empty fields in Patch requests.
14715	ForceSendFields []string `json:"-"`
14716
14717	// NullFields is a list of field names (e.g. "Text") to include in API
14718	// requests with the JSON null value. By default, fields with empty
14719	// values are omitted from API requests. However, any field with an
14720	// empty value appearing in NullFields will be sent to the server as
14721	// null. It is an error if a field in this list has a non-empty value.
14722	// This may be used to include null fields in Patch requests.
14723	NullFields []string `json:"-"`
14724}
14725
14726func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
14727	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
14728	raw := NoMethod(*s)
14729	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14730}
14731
14732// GoogleCloudDialogflowV2beta1IntentParameter: Represents intent
14733// parameters.
14734type GoogleCloudDialogflowV2beta1IntentParameter struct {
14735	// DefaultValue: Optional. The default value to use when the `value`
14736	// yields an empty result. Default values can be extracted from contexts
14737	// by using the following syntax: `#context_name.parameter_name`.
14738	DefaultValue string `json:"defaultValue,omitempty"`
14739
14740	// DisplayName: Required. The name of the parameter.
14741	DisplayName string `json:"displayName,omitempty"`
14742
14743	// EntityTypeDisplayName: Optional. The name of the entity type,
14744	// prefixed with `@`, that describes values of the parameter. If the
14745	// parameter is required, this must be provided.
14746	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
14747
14748	// IsList: Optional. Indicates whether the parameter represents a list
14749	// of values.
14750	IsList bool `json:"isList,omitempty"`
14751
14752	// Mandatory: Optional. Indicates whether the parameter is required.
14753	// That is, whether the intent cannot be completed without collecting
14754	// the parameter value.
14755	Mandatory bool `json:"mandatory,omitempty"`
14756
14757	// Name: The unique identifier of this parameter.
14758	Name string `json:"name,omitempty"`
14759
14760	// Prompts: Optional. The collection of prompts that the agent can
14761	// present to the user in order to collect a value for the parameter.
14762	Prompts []string `json:"prompts,omitempty"`
14763
14764	// Value: Optional. The definition of the parameter value. It can be: -
14765	// a constant string, - a parameter value defined as `$parameter_name`,
14766	// - an original parameter value defined as `$parameter_name.original`,
14767	// - a parameter value from some context defined as
14768	// `#context_name.parameter_name`.
14769	Value string `json:"value,omitempty"`
14770
14771	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
14772	// unconditionally include in API requests. By default, fields with
14773	// empty values are omitted from API requests. However, any non-pointer,
14774	// non-interface field appearing in ForceSendFields will be sent to the
14775	// server regardless of whether the field is empty or not. This may be
14776	// used to include empty fields in Patch requests.
14777	ForceSendFields []string `json:"-"`
14778
14779	// NullFields is a list of field names (e.g. "DefaultValue") to include
14780	// in API requests with the JSON null value. By default, fields with
14781	// empty values are omitted from API requests. However, any field with
14782	// an empty value appearing in NullFields will be sent to the server as
14783	// null. It is an error if a field in this list has a non-empty value.
14784	// This may be used to include null fields in Patch requests.
14785	NullFields []string `json:"-"`
14786}
14787
14788func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
14789	type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
14790	raw := NoMethod(*s)
14791	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14792}
14793
14794// GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an
14795// example that the agent is trained on.
14796type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
14797	// Name: Output only. The unique identifier of this training phrase.
14798	Name string `json:"name,omitempty"`
14799
14800	// Parts: Required. The ordered list of training phrase parts. The parts
14801	// are concatenated in order to form the training phrase. Note: The API
14802	// does not automatically annotate training phrases like the Dialogflow
14803	// Console does. Note: Do not forget to include whitespace at part
14804	// boundaries, so the training phrase is well formatted when the parts
14805	// are concatenated. If the training phrase does not need to be
14806	// annotated with parameters, you just need a single part with only the
14807	// Part.text field set. If you want to annotate the training phrase, you
14808	// must create multiple parts, where the fields of each part are
14809	// populated in one of two ways: - `Part.text` is set to a part of the
14810	// phrase that has no parameters. - `Part.text` is set to a part of the
14811	// phrase that you want to annotate, and the `entity_type`, `alias`, and
14812	// `user_defined` fields are all set.
14813	Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
14814
14815	// TimesAddedCount: Optional. Indicates how many times this example was
14816	// added to the intent. Each time a developer adds an existing sample by
14817	// editing an intent or training, this counter is increased.
14818	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
14819
14820	// Type: Required. The type of the training phrase.
14821	//
14822	// Possible values:
14823	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be
14824	// used.
14825	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names,
14826	// but example parts can be annotated with entity types.
14827	//   "TEMPLATE" - Templates are not annotated with entity types, but
14828	// they can contain @-prefixed entity type names as substrings. Template
14829	// mode has been deprecated. Example mode is the only supported way to
14830	// create new training phrases. If you have existing training phrases
14831	// that you've created in template mode, those will continue to work.
14832	Type string `json:"type,omitempty"`
14833
14834	// ForceSendFields is a list of field names (e.g. "Name") to
14835	// unconditionally include in API requests. By default, fields with
14836	// empty values are omitted from API requests. However, any non-pointer,
14837	// non-interface field appearing in ForceSendFields will be sent to the
14838	// server regardless of whether the field is empty or not. This may be
14839	// used to include empty fields in Patch requests.
14840	ForceSendFields []string `json:"-"`
14841
14842	// NullFields is a list of field names (e.g. "Name") to include in API
14843	// requests with the JSON null value. By default, fields with empty
14844	// values are omitted from API requests. However, any field with an
14845	// empty value appearing in NullFields will be sent to the server as
14846	// null. It is an error if a field in this list has a non-empty value.
14847	// This may be used to include null fields in Patch requests.
14848	NullFields []string `json:"-"`
14849}
14850
14851func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
14852	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
14853	raw := NoMethod(*s)
14854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14855}
14856
14857// GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a
14858// part of a training phrase.
14859type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
14860	// Alias: Optional. The parameter name for the value extracted from the
14861	// annotated part of the example. This field is required for annotated
14862	// parts of the training phrase.
14863	Alias string `json:"alias,omitempty"`
14864
14865	// EntityType: Optional. The entity type name prefixed with `@`. This
14866	// field is required for annotated parts of the training phrase.
14867	EntityType string `json:"entityType,omitempty"`
14868
14869	// Text: Required. The text for this part.
14870	Text string `json:"text,omitempty"`
14871
14872	// UserDefined: Optional. Indicates whether the text was manually
14873	// annotated. This field is set to true when the Dialogflow Console is
14874	// used to manually annotate the part. When creating an annotated part
14875	// with the API, you must set this to true.
14876	UserDefined bool `json:"userDefined,omitempty"`
14877
14878	// ForceSendFields is a list of field names (e.g. "Alias") to
14879	// unconditionally include in API requests. By default, fields with
14880	// empty values are omitted from API requests. However, any non-pointer,
14881	// non-interface field appearing in ForceSendFields will be sent to the
14882	// server regardless of whether the field is empty or not. This may be
14883	// used to include empty fields in Patch requests.
14884	ForceSendFields []string `json:"-"`
14885
14886	// NullFields is a list of field names (e.g. "Alias") to include in API
14887	// requests with the JSON null value. By default, fields with empty
14888	// values are omitted from API requests. However, any field with an
14889	// empty value appearing in NullFields will be sent to the server as
14890	// null. It is an error if a field in this list has a non-empty value.
14891	// This may be used to include null fields in Patch requests.
14892	NullFields []string `json:"-"`
14893}
14894
14895func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
14896	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
14897	raw := NoMethod(*s)
14898	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14899}
14900
14901// GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result
14902// of querying a Knowledge base.
14903type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
14904	// Answers: A list of answers from Knowledge Connector.
14905	Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
14906
14907	// ForceSendFields is a list of field names (e.g. "Answers") to
14908	// unconditionally include in API requests. By default, fields with
14909	// empty values are omitted from API requests. However, any non-pointer,
14910	// non-interface field appearing in ForceSendFields will be sent to the
14911	// server regardless of whether the field is empty or not. This may be
14912	// used to include empty fields in Patch requests.
14913	ForceSendFields []string `json:"-"`
14914
14915	// NullFields is a list of field names (e.g. "Answers") to include in
14916	// API requests with the JSON null value. By default, fields with empty
14917	// values are omitted from API requests. However, any field with an
14918	// empty value appearing in NullFields will be sent to the server as
14919	// null. It is an error if a field in this list has a non-empty value.
14920	// This may be used to include null fields in Patch requests.
14921	NullFields []string `json:"-"`
14922}
14923
14924func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
14925	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
14926	raw := NoMethod(*s)
14927	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14928}
14929
14930// GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from
14931// Knowledge Connector.
14932type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
14933	// Answer: The piece of text from the `source` knowledge base document
14934	// that answers this conversational query.
14935	Answer string `json:"answer,omitempty"`
14936
14937	// FaqQuestion: The corresponding FAQ question if the answer was
14938	// extracted from a FAQ Document, empty otherwise.
14939	FaqQuestion string `json:"faqQuestion,omitempty"`
14940
14941	// MatchConfidence: The system's confidence score that this Knowledge
14942	// answer is a good match for this conversational query. The range is
14943	// from 0.0 (completely uncertain) to 1.0 (completely certain). Note:
14944	// The confidence score is likely to vary somewhat (possibly even for
14945	// identical requests), as the underlying model is under constant
14946	// improvement. It may be deprecated in the future. We recommend using
14947	// `match_confidence_level` which should be generally more stable.
14948	MatchConfidence float64 `json:"matchConfidence,omitempty"`
14949
14950	// MatchConfidenceLevel: The system's confidence level that this
14951	// knowledge answer is a good match for this conversational query. NOTE:
14952	// The confidence level for a given `` pair may change without notice,
14953	// as it depends on models that are constantly being improved. However,
14954	// it will change less frequently than the confidence score below, and
14955	// should be preferred for referencing the quality of an answer.
14956	//
14957	// Possible values:
14958	//   "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified.
14959	//   "LOW" - Indicates that the confidence is low.
14960	//   "MEDIUM" - Indicates our confidence is medium.
14961	//   "HIGH" - Indicates our confidence is high.
14962	MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
14963
14964	// Source: Indicates which Knowledge Document this answer was extracted
14965	// from. Format: `projects//knowledgeBases//documents/`.
14966	Source string `json:"source,omitempty"`
14967
14968	// ForceSendFields is a list of field names (e.g. "Answer") to
14969	// unconditionally include in API requests. By default, fields with
14970	// empty values are omitted from API requests. However, any non-pointer,
14971	// non-interface field appearing in ForceSendFields will be sent to the
14972	// server regardless of whether the field is empty or not. This may be
14973	// used to include empty fields in Patch requests.
14974	ForceSendFields []string `json:"-"`
14975
14976	// NullFields is a list of field names (e.g. "Answer") to include in API
14977	// requests with the JSON null value. By default, fields with empty
14978	// values are omitted from API requests. However, any field with an
14979	// empty value appearing in NullFields will be sent to the server as
14980	// null. It is an error if a field in this list has a non-empty value.
14981	// This may be used to include null fields in Patch requests.
14982	NullFields []string `json:"-"`
14983}
14984
14985func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
14986	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
14987	raw := NoMethod(*s)
14988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14989}
14990
14991func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
14992	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
14993	var s1 struct {
14994		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
14995		*NoMethod
14996	}
14997	s1.NoMethod = (*NoMethod)(s)
14998	if err := json.Unmarshal(data, &s1); err != nil {
14999		return err
15000	}
15001	s.MatchConfidence = float64(s1.MatchConfidence)
15002	return nil
15003}
15004
15005// GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in
15006// google::longrunning::Operation for Knowledge operations.
15007type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
15008	// State: Required. Output only. The current state of this operation.
15009	//
15010	// Possible values:
15011	//   "STATE_UNSPECIFIED" - State unspecified.
15012	//   "PENDING" - The operation has been created.
15013	//   "RUNNING" - The operation is currently running.
15014	//   "DONE" - The operation is done, either cancelled or completed.
15015	State string `json:"state,omitempty"`
15016
15017	// ForceSendFields is a list of field names (e.g. "State") to
15018	// unconditionally include in API requests. By default, fields with
15019	// empty values are omitted from API requests. However, any non-pointer,
15020	// non-interface field appearing in ForceSendFields will be sent to the
15021	// server regardless of whether the field is empty or not. This may be
15022	// used to include empty fields in Patch requests.
15023	ForceSendFields []string `json:"-"`
15024
15025	// NullFields is a list of field names (e.g. "State") to include in API
15026	// requests with the JSON null value. By default, fields with empty
15027	// values are omitted from API requests. However, any field with an
15028	// empty value appearing in NullFields will be sent to the server as
15029	// null. It is an error if a field in this list has a non-empty value.
15030	// This may be used to include null fields in Patch requests.
15031	NullFields []string `json:"-"`
15032}
15033
15034func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
15035	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
15036	raw := NoMethod(*s)
15037	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15038}
15039
15040// GoogleCloudDialogflowV2beta1Message: Represents a message posted into
15041// a conversation.
15042type GoogleCloudDialogflowV2beta1Message struct {
15043	// Content: Required. The message content.
15044	Content string `json:"content,omitempty"`
15045
15046	// CreateTime: Output only. The time when the message was created in
15047	// Contact Center AI.
15048	CreateTime string `json:"createTime,omitempty"`
15049
15050	// LanguageCode: Optional. The message language. This should be a BCP-47
15051	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
15052	// "en-US".
15053	LanguageCode string `json:"languageCode,omitempty"`
15054
15055	// MessageAnnotation: Output only. The annotation for the message.
15056	MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
15057
15058	// Name: Optional. The unique identifier of the message. Format:
15059	// `projects//locations//conversations//messages/`.
15060	Name string `json:"name,omitempty"`
15061
15062	// Participant: Output only. The participant that sends this message.
15063	Participant string `json:"participant,omitempty"`
15064
15065	// ParticipantRole: Output only. The role of the participant.
15066	//
15067	// Possible values:
15068	//   "ROLE_UNSPECIFIED" - Participant role not set.
15069	//   "HUMAN_AGENT" - Participant is a human agent.
15070	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
15071	// Dialogflow agent.
15072	//   "END_USER" - Participant is an end user that has called or chatted
15073	// with Dialogflow services.
15074	ParticipantRole string `json:"participantRole,omitempty"`
15075
15076	// SendTime: Optional. The time when the message was sent.
15077	SendTime string `json:"sendTime,omitempty"`
15078
15079	// SentimentAnalysis: Output only. The sentiment analysis result for the
15080	// message.
15081	SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
15082
15083	// ForceSendFields is a list of field names (e.g. "Content") to
15084	// unconditionally include in API requests. By default, fields with
15085	// empty values are omitted from API requests. However, any non-pointer,
15086	// non-interface field appearing in ForceSendFields will be sent to the
15087	// server regardless of whether the field is empty or not. This may be
15088	// used to include empty fields in Patch requests.
15089	ForceSendFields []string `json:"-"`
15090
15091	// NullFields is a list of field names (e.g. "Content") to include in
15092	// API requests with the JSON null value. By default, fields with empty
15093	// values are omitted from API requests. However, any field with an
15094	// empty value appearing in NullFields will be sent to the server as
15095	// null. It is an error if a field in this list has a non-empty value.
15096	// This may be used to include null fields in Patch requests.
15097	NullFields []string `json:"-"`
15098}
15099
15100func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
15101	type NoMethod GoogleCloudDialogflowV2beta1Message
15102	raw := NoMethod(*s)
15103	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15104}
15105
15106// GoogleCloudDialogflowV2beta1MessageAnnotation: Represents the result
15107// of annotation for the message.
15108type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
15109	// ContainEntities: Required. Indicates whether the text message
15110	// contains entities.
15111	ContainEntities bool `json:"containEntities,omitempty"`
15112
15113	// Parts: Optional. The collection of annotated message parts ordered by
15114	// their position in the message. You can recover the annotated message
15115	// by concatenating [AnnotatedMessagePart.text].
15116	Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
15117
15118	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
15119	// unconditionally include in API requests. By default, fields with
15120	// empty values are omitted from API requests. However, any non-pointer,
15121	// non-interface field appearing in ForceSendFields will be sent to the
15122	// server regardless of whether the field is empty or not. This may be
15123	// used to include empty fields in Patch requests.
15124	ForceSendFields []string `json:"-"`
15125
15126	// NullFields is a list of field names (e.g. "ContainEntities") to
15127	// include in API requests with the JSON null value. By default, fields
15128	// with empty values are omitted from API requests. However, any field
15129	// with an empty value appearing in NullFields will be sent to the
15130	// server as null. It is an error if a field in this list has a
15131	// non-empty value. This may be used to include null fields in Patch
15132	// requests.
15133	NullFields []string `json:"-"`
15134}
15135
15136func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
15137	type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
15138	raw := NoMethod(*s)
15139	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15140}
15141
15142// GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents
15143// the contents of the original request that was passed to the
15144// `[Streaming]DetectIntent` call.
15145type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
15146	// Payload: Optional. This field is set to the value of the
15147	// `QueryParameters.payload` field passed in the request. Some
15148	// integrations that query a Dialogflow agent may provide additional
15149	// information in the payload. In particular, for the Dialogflow Phone
15150	// Gateway integration, this field has the form: { "telephony": {
15151	// "caller_id": "+18558363987" } } Note: The caller ID field
15152	// (`caller_id`) will be redacted for Trial Edition agents and populated
15153	// with the caller ID in E.164 format
15154	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
15155	Payload googleapi.RawMessage `json:"payload,omitempty"`
15156
15157	// Source: The source of this request, e.g., `google`, `facebook`,
15158	// `slack`. It is set by Dialogflow-owned servers.
15159	Source string `json:"source,omitempty"`
15160
15161	// Version: Optional. The version of the protocol used for this request.
15162	// This field is AoG-specific.
15163	Version string `json:"version,omitempty"`
15164
15165	// ForceSendFields is a list of field names (e.g. "Payload") to
15166	// unconditionally include in API requests. By default, fields with
15167	// empty values are omitted from API requests. However, any non-pointer,
15168	// non-interface field appearing in ForceSendFields will be sent to the
15169	// server regardless of whether the field is empty or not. This may be
15170	// used to include empty fields in Patch requests.
15171	ForceSendFields []string `json:"-"`
15172
15173	// NullFields is a list of field names (e.g. "Payload") to include in
15174	// API requests with the JSON null value. By default, fields with empty
15175	// values are omitted from API requests. However, any field with an
15176	// empty value appearing in NullFields will be sent to the server as
15177	// null. It is an error if a field in this list has a non-empty value.
15178	// This may be used to include null fields in Patch requests.
15179	NullFields []string `json:"-"`
15180}
15181
15182func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
15183	type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
15184	raw := NoMethod(*s)
15185	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15186}
15187
15188// GoogleCloudDialogflowV2beta1QueryResult: Represents the result of
15189// conversational query or event processing.
15190type GoogleCloudDialogflowV2beta1QueryResult struct {
15191	// Action: The action name from the matched intent.
15192	Action string `json:"action,omitempty"`
15193
15194	// AllRequiredParamsPresent: This field is set to: - `false` if the
15195	// matched intent has required parameters and not all of the required
15196	// parameter values have been collected. - `true` if all required
15197	// parameter values have been collected, or if the matched intent
15198	// doesn't contain any required parameters.
15199	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
15200
15201	// DiagnosticInfo: Free-form diagnostic information for the associated
15202	// detect intent request. The fields of this data can change without
15203	// notice, so you should not write code that depends on its structure.
15204	// The data may contain: - webhook call latency - webhook errors
15205	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
15206
15207	// FulfillmentMessages: The collection of rich messages to present to
15208	// the user.
15209	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
15210
15211	// FulfillmentText: The text to be pronounced to the user or shown on
15212	// the screen. Note: This is a legacy field, `fulfillment_messages`
15213	// should be preferred.
15214	FulfillmentText string `json:"fulfillmentText,omitempty"`
15215
15216	// Intent: The intent that matched the conversational query. Some, not
15217	// all fields are filled in this message, including but not limited to:
15218	// `name`, `display_name`, `end_interaction` and `is_fallback`.
15219	Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
15220
15221	// IntentDetectionConfidence: The intent detection confidence. Values
15222	// range from 0.0 (completely uncertain) to 1.0 (completely certain).
15223	// This value is for informational purpose only and is only used to help
15224	// match the best intent within the classification threshold. This value
15225	// may change for the same end-user expression at any time due to a
15226	// model retraining or change in implementation. If there are `multiple
15227	// knowledge_answers` messages, this value is set to the greatest
15228	// `knowledgeAnswers.match_confidence` value in the list.
15229	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
15230
15231	// KnowledgeAnswers: The result from Knowledge Connector (if any),
15232	// ordered by decreasing `KnowledgeAnswers.match_confidence`.
15233	KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
15234
15235	// LanguageCode: The language that was triggered during intent
15236	// detection. See Language Support
15237	// (https://cloud.google.com/dialogflow/docs/reference/language) for a
15238	// list of the currently supported language codes.
15239	LanguageCode string `json:"languageCode,omitempty"`
15240
15241	// OutputContexts: The collection of output contexts. If applicable,
15242	// `output_contexts.parameters` contains entries with name `.original`
15243	// containing the original parameter values before the query.
15244	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
15245
15246	// Parameters: The collection of extracted parameters. Depending on your
15247	// protocol or client library language, this is a map, associative
15248	// array, symbol table, dictionary, or JSON object composed of a
15249	// collection of (MapKey, MapValue) pairs: - MapKey type: string -
15250	// MapKey value: parameter name - MapValue type: - If parameter's entity
15251	// type is a composite entity: map - Else: depending on parameter value
15252	// type, could be one of string, number, boolean, null, list or map -
15253	// MapValue value: - If parameter's entity type is a composite entity:
15254	// map from composite entity property names to property values - Else:
15255	// parameter value
15256	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15257
15258	// QueryText: The original conversational query text: - If natural
15259	// language text was provided as input, `query_text` contains a copy of
15260	// the input. - If natural language speech audio was provided as input,
15261	// `query_text` contains the speech recognition result. If speech
15262	// recognizer produced multiple alternatives, a particular one is
15263	// picked. - If automatic spell correction is enabled, `query_text` will
15264	// contain the corrected user input.
15265	QueryText string `json:"queryText,omitempty"`
15266
15267	// SentimentAnalysisResult: The sentiment analysis result, which depends
15268	// on the `sentiment_analysis_request_config` specified in the request.
15269	SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
15270
15271	// SpeechRecognitionConfidence: The Speech recognition confidence
15272	// between 0.0 and 1.0. A higher number indicates an estimated greater
15273	// likelihood that the recognized words are correct. The default of 0.0
15274	// is a sentinel value indicating that confidence was not set. This
15275	// field is not guaranteed to be accurate or set. In particular this
15276	// field isn't set for StreamingDetectIntent since the streaming
15277	// endpoint has separate confidence estimates per portion of the audio
15278	// in StreamingRecognitionResult.
15279	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
15280
15281	// WebhookPayload: If the query was fulfilled by a webhook call, this
15282	// field is set to the value of the `payload` field returned in the
15283	// webhook response.
15284	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
15285
15286	// WebhookSource: If the query was fulfilled by a webhook call, this
15287	// field is set to the value of the `source` field returned in the
15288	// webhook response.
15289	WebhookSource string `json:"webhookSource,omitempty"`
15290
15291	// ForceSendFields is a list of field names (e.g. "Action") to
15292	// unconditionally include in API requests. By default, fields with
15293	// empty values are omitted from API requests. However, any non-pointer,
15294	// non-interface field appearing in ForceSendFields will be sent to the
15295	// server regardless of whether the field is empty or not. This may be
15296	// used to include empty fields in Patch requests.
15297	ForceSendFields []string `json:"-"`
15298
15299	// NullFields is a list of field names (e.g. "Action") to include in API
15300	// requests with the JSON null value. By default, fields with empty
15301	// values are omitted from API requests. However, any field with an
15302	// empty value appearing in NullFields will be sent to the server as
15303	// null. It is an error if a field in this list has a non-empty value.
15304	// This may be used to include null fields in Patch requests.
15305	NullFields []string `json:"-"`
15306}
15307
15308func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
15309	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
15310	raw := NoMethod(*s)
15311	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15312}
15313
15314func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
15315	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
15316	var s1 struct {
15317		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
15318		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
15319		*NoMethod
15320	}
15321	s1.NoMethod = (*NoMethod)(s)
15322	if err := json.Unmarshal(data, &s1); err != nil {
15323		return err
15324	}
15325	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
15326	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
15327	return nil
15328}
15329
15330// GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as
15331// positive/negative feeling or association, for a unit of analysis,
15332// such as the query text.
15333type GoogleCloudDialogflowV2beta1Sentiment struct {
15334	// Magnitude: A non-negative number in the [0, +inf) range, which
15335	// represents the absolute magnitude of sentiment, regardless of score
15336	// (positive or negative).
15337	Magnitude float64 `json:"magnitude,omitempty"`
15338
15339	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0
15340	// (positive sentiment).
15341	Score float64 `json:"score,omitempty"`
15342
15343	// ForceSendFields is a list of field names (e.g. "Magnitude") 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. "Magnitude") to include in
15352	// API requests with the JSON null value. By default, fields with empty
15353	// values are omitted from API requests. However, any field with an
15354	// 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 *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
15361	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
15362	raw := NoMethod(*s)
15363	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15364}
15365
15366func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
15367	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
15368	var s1 struct {
15369		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
15370		Score     gensupport.JSONFloat64 `json:"score"`
15371		*NoMethod
15372	}
15373	s1.NoMethod = (*NoMethod)(s)
15374	if err := json.Unmarshal(data, &s1); err != nil {
15375		return err
15376	}
15377	s.Magnitude = float64(s1.Magnitude)
15378	s.Score = float64(s1.Score)
15379	return nil
15380}
15381
15382// GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of
15383// sentiment analysis. Sentiment analysis inspects user input and
15384// identifies the prevailing subjective opinion, especially to determine
15385// a user's attitude as positive, negative, or neutral. For
15386// Participants.DetectIntent, it needs to be configured in
15387// DetectIntentRequest.query_params. For
15388// Participants.StreamingDetectIntent, it needs to be configured in
15389// StreamingDetectIntentRequest.query_params. And for
15390// Participants.AnalyzeContent and Participants.StreamingAnalyzeContent,
15391// it needs to be configured in
15392// ConversationProfile.human_agent_assistant_config
15393type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
15394	// QueryTextSentiment: The sentiment analysis result for `query_text`.
15395	QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
15396
15397	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment")
15398	// to unconditionally include in API requests. By default, fields with
15399	// empty values are omitted from API requests. However, any non-pointer,
15400	// non-interface field appearing in ForceSendFields will be sent to the
15401	// server regardless of whether the field is empty or not. This may be
15402	// used to include empty fields in Patch requests.
15403	ForceSendFields []string `json:"-"`
15404
15405	// NullFields is a list of field names (e.g. "QueryTextSentiment") to
15406	// include in API requests with the JSON null value. By default, fields
15407	// with empty values are omitted from API requests. However, any field
15408	// with an empty value appearing in NullFields will be sent to the
15409	// server as null. It is an error if a field in this list has a
15410	// non-empty value. This may be used to include null fields in Patch
15411	// requests.
15412	NullFields []string `json:"-"`
15413}
15414
15415func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
15416	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
15417	raw := NoMethod(*s)
15418	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15419}
15420
15421// GoogleCloudDialogflowV2beta1SessionEntityType: A session represents a
15422// conversation between a Dialogflow agent and an end-user. You can
15423// create special entities, called session entities, during a session.
15424// Session entities can extend or replace custom entity types and only
15425// exist during the session that they were created for. All session
15426// data, including session entities, is stored by Dialogflow for 20
15427// minutes. For more information, see the session entity guide
15428// (https://cloud.google.com/dialogflow/docs/entities-session).
15429type GoogleCloudDialogflowV2beta1SessionEntityType struct {
15430	// Entities: Required. The collection of entities associated with this
15431	// session entity type.
15432	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
15433
15434	// EntityOverrideMode: Required. Indicates whether the additional data
15435	// should override or supplement the custom entity type definition.
15436	//
15437	// Possible values:
15438	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value
15439	// should be never used.
15440	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session
15441	// entities overrides the collection of entities in the corresponding
15442	// custom entity type.
15443	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session
15444	// entities extends the collection of entities in the corresponding
15445	// custom entity type. Note: Even in this override mode calls to
15446	// `ListSessionEntityTypes`, `GetSessionEntityType`,
15447	// `CreateSessionEntityType` and `UpdateSessionEntityType` only return
15448	// the additional entities added in this session entity type. If you
15449	// want to get the supplemented list, please call
15450	// EntityTypes.GetEntityType on the custom entity type and merge.
15451	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
15452
15453	// Name: Required. The unique identifier of this session entity type.
15454	// Supported formats: - `projects//agent/sessions//entityTypes/` -
15455	// `projects//locations//agent/sessions//entityTypes/` -
15456	// `projects//agent/environments//users//sessions//entityTypes/` -
15457	// `projects//locations//agent/environments/
15458	// /users//sessions//entityTypes/` If `Location ID` is not specified we
15459	// assume default 'us' location. If `Environment ID` is not specified,
15460	// we assume default 'draft' environment. If `User ID` is not specified,
15461	// we assume default '-' user. `` must be the display name of an
15462	// existing entity type in the same agent that will be overridden or
15463	// supplemented.
15464	Name string `json:"name,omitempty"`
15465
15466	// ForceSendFields is a list of field names (e.g. "Entities") to
15467	// unconditionally include in API requests. By default, fields with
15468	// empty values are omitted from API requests. However, any non-pointer,
15469	// non-interface field appearing in ForceSendFields will be sent to the
15470	// server regardless of whether the field is empty or not. This may be
15471	// used to include empty fields in Patch requests.
15472	ForceSendFields []string `json:"-"`
15473
15474	// NullFields is a list of field names (e.g. "Entities") to include in
15475	// API requests with the JSON null value. By default, fields with empty
15476	// values are omitted from API requests. However, any field with an
15477	// empty value appearing in NullFields will be sent to the server as
15478	// null. It is an error if a field in this list has a non-empty value.
15479	// This may be used to include null fields in Patch requests.
15480	NullFields []string `json:"-"`
15481}
15482
15483func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
15484	type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
15485	raw := NoMethod(*s)
15486	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15487}
15488
15489// GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart
15490// reply answer.
15491type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
15492	// AnswerRecord: The name of answer record, in the format of
15493	// "projects//locations//answerRecords/"
15494	AnswerRecord string `json:"answerRecord,omitempty"`
15495
15496	// Confidence: Smart reply confidence. The system's confidence score
15497	// that this reply is a good match for this conversation, as a value
15498	// from 0.0 (completely uncertain) to 1.0 (completely certain).
15499	Confidence float64 `json:"confidence,omitempty"`
15500
15501	// Reply: The content of the reply.
15502	Reply string `json:"reply,omitempty"`
15503
15504	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
15505	// unconditionally include in API requests. By default, fields with
15506	// empty values are omitted from API requests. However, any non-pointer,
15507	// non-interface field appearing in ForceSendFields will be sent to the
15508	// server regardless of whether the field is empty or not. This may be
15509	// used to include empty fields in Patch requests.
15510	ForceSendFields []string `json:"-"`
15511
15512	// NullFields is a list of field names (e.g. "AnswerRecord") to include
15513	// in API requests with the JSON null value. By default, fields with
15514	// empty values are omitted from API requests. However, any field with
15515	// an empty value appearing in NullFields will be sent to the server as
15516	// null. It is an error if a field in this list has a non-empty value.
15517	// This may be used to include null fields in Patch requests.
15518	NullFields []string `json:"-"`
15519}
15520
15521func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
15522	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
15523	raw := NoMethod(*s)
15524	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15525}
15526
15527func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
15528	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
15529	var s1 struct {
15530		Confidence gensupport.JSONFloat64 `json:"confidence"`
15531		*NoMethod
15532	}
15533	s1.NoMethod = (*NoMethod)(s)
15534	if err := json.Unmarshal(data, &s1); err != nil {
15535		return err
15536	}
15537	s.Confidence = float64(s1.Confidence)
15538	return nil
15539}
15540
15541// GoogleCloudDialogflowV2beta1SuggestArticlesResponse: The response
15542// message for Participants.SuggestArticles.
15543type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
15544	// ArticleAnswers: Output only. Articles ordered by score in descending
15545	// order.
15546	ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
15547
15548	// ContextSize: Number of messages prior to and including latest_message
15549	// to compile the suggestion. It may be smaller than the
15550	// SuggestArticlesResponse.context_size field in the request if there
15551	// aren't that many messages in the conversation.
15552	ContextSize int64 `json:"contextSize,omitempty"`
15553
15554	// LatestMessage: The name of the latest conversation message used to
15555	// compile suggestion for. Format:
15556	// `projects//locations//conversations//messages/`.
15557	LatestMessage string `json:"latestMessage,omitempty"`
15558
15559	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
15560	// unconditionally include in API requests. By default, fields with
15561	// empty values are omitted from API requests. However, any non-pointer,
15562	// non-interface field appearing in ForceSendFields will be sent to the
15563	// server regardless of whether the field is empty or not. This may be
15564	// used to include empty fields in Patch requests.
15565	ForceSendFields []string `json:"-"`
15566
15567	// NullFields is a list of field names (e.g. "ArticleAnswers") to
15568	// include in API requests with the JSON null value. By default, fields
15569	// with empty values are omitted from API requests. However, any field
15570	// with an empty value appearing in NullFields will be sent to the
15571	// server as null. It is an error if a field in this list has a
15572	// non-empty value. This may be used to include null fields in Patch
15573	// requests.
15574	NullFields []string `json:"-"`
15575}
15576
15577func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
15578	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
15579	raw := NoMethod(*s)
15580	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15581}
15582
15583// GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: The request
15584// message for Participants.SuggestFaqAnswers.
15585type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
15586	// ContextSize: Number of messages prior to and including latest_message
15587	// to compile the suggestion. It may be smaller than the
15588	// SuggestFaqAnswersRequest.context_size field in the request if there
15589	// aren't that many messages in the conversation.
15590	ContextSize int64 `json:"contextSize,omitempty"`
15591
15592	// FaqAnswers: Output only. Answers extracted from FAQ documents.
15593	FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
15594
15595	// LatestMessage: The name of the latest conversation message used to
15596	// compile suggestion for. Format:
15597	// `projects//locations//conversations//messages/`.
15598	LatestMessage string `json:"latestMessage,omitempty"`
15599
15600	// ForceSendFields is a list of field names (e.g. "ContextSize") to
15601	// unconditionally include in API requests. By default, fields with
15602	// empty values are omitted from API requests. However, any non-pointer,
15603	// non-interface field appearing in ForceSendFields will be sent to the
15604	// server regardless of whether the field is empty or not. This may be
15605	// used to include empty fields in Patch requests.
15606	ForceSendFields []string `json:"-"`
15607
15608	// NullFields is a list of field names (e.g. "ContextSize") to include
15609	// in API requests with the JSON null value. By default, fields with
15610	// empty values are omitted from API requests. However, any field with
15611	// an empty value appearing in NullFields will be sent to the server as
15612	// null. It is an error if a field in this list has a non-empty value.
15613	// This may be used to include null fields in Patch requests.
15614	NullFields []string `json:"-"`
15615}
15616
15617func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
15618	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
15619	raw := NoMethod(*s)
15620	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15621}
15622
15623// GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse: The response
15624// message for Participants.SuggestSmartReplies.
15625type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
15626	// ContextSize: Number of messages prior to and including latest_message
15627	// to compile the suggestion. It may be smaller than the
15628	// SuggestSmartRepliesRequest.context_size field in the request if there
15629	// aren't that many messages in the conversation.
15630	ContextSize int64 `json:"contextSize,omitempty"`
15631
15632	// LatestMessage: The name of the latest conversation message used to
15633	// compile suggestion for. Format:
15634	// `projects//locations//conversations//messages/`.
15635	LatestMessage string `json:"latestMessage,omitempty"`
15636
15637	// SmartReplyAnswers: Output only. Multiple reply options provided by
15638	// smart reply service. The order is based on the rank of the model
15639	// prediction. The maximum number of the returned replies is set in
15640	// SmartReplyConfig.
15641	SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
15642
15643	// ForceSendFields is a list of field names (e.g. "ContextSize") to
15644	// unconditionally include in API requests. By default, fields with
15645	// empty values are omitted from API requests. However, any non-pointer,
15646	// non-interface field appearing in ForceSendFields will be sent to the
15647	// server regardless of whether the field is empty or not. This may be
15648	// used to include empty fields in Patch requests.
15649	ForceSendFields []string `json:"-"`
15650
15651	// NullFields is a list of field names (e.g. "ContextSize") to include
15652	// in API requests with the JSON null value. By default, fields with
15653	// empty values are omitted from API requests. However, any field with
15654	// an empty value appearing in NullFields will be sent to the server as
15655	// null. It is an error if a field in this list has a non-empty value.
15656	// This may be used to include null fields in Patch requests.
15657	NullFields []string `json:"-"`
15658}
15659
15660func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
15661	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
15662	raw := NoMethod(*s)
15663	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15664}
15665
15666// GoogleCloudDialogflowV2beta1SuggestionResult: One response of
15667// different type of suggestion response which is used in the response
15668// of Participants.AnalyzeContent and Participants.AnalyzeContent, as
15669// well as HumanAgentAssistantEvent.
15670type GoogleCloudDialogflowV2beta1SuggestionResult struct {
15671	// Error: Error status if the request failed.
15672	Error *GoogleRpcStatus `json:"error,omitempty"`
15673
15674	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
15675	// ARTICLE_SUGGESTION.
15676	SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
15677
15678	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is
15679	// for FAQ_ANSWER.
15680	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
15681
15682	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request
15683	// is for SMART_REPLY.
15684	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
15685
15686	// ForceSendFields is a list of field names (e.g. "Error") to
15687	// unconditionally include in API requests. By default, fields with
15688	// empty values are omitted from API requests. However, any non-pointer,
15689	// non-interface field appearing in ForceSendFields will be sent to the
15690	// server regardless of whether the field is empty or not. This may be
15691	// used to include empty fields in Patch requests.
15692	ForceSendFields []string `json:"-"`
15693
15694	// NullFields is a list of field names (e.g. "Error") to include in API
15695	// requests with the JSON null value. By default, fields with empty
15696	// values are omitted from API requests. However, any field with an
15697	// empty value appearing in NullFields will be sent to the server as
15698	// null. It is an error if a field in this list has a non-empty value.
15699	// This may be used to include null fields in Patch requests.
15700	NullFields []string `json:"-"`
15701}
15702
15703func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
15704	type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
15705	raw := NoMethod(*s)
15706	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15707}
15708
15709// GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a
15710// webhook call.
15711type GoogleCloudDialogflowV2beta1WebhookRequest struct {
15712	// AlternativeQueryResults: Alternative query results from
15713	// KnowledgeService.
15714	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
15715
15716	// OriginalDetectIntentRequest: Optional. The contents of the original
15717	// request that was passed to `[Streaming]DetectIntent` call.
15718	OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
15719
15720	// QueryResult: The result of the conversational query or event
15721	// processing. Contains the same value as
15722	// `[Streaming]DetectIntentResponse.query_result`.
15723	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
15724
15725	// ResponseId: The unique identifier of the response. Contains the same
15726	// value as `[Streaming]DetectIntentResponse.response_id`.
15727	ResponseId string `json:"responseId,omitempty"`
15728
15729	// Session: The unique identifier of detectIntent request session. Can
15730	// be used to identify end-user inside webhook implementation. Supported
15731	// formats: - `projects//agent/sessions/, -
15732	// `projects//locations//agent/sessions/`, -
15733	// `projects//agent/environments//users//sessions/`, -
15734	// `projects//locations//agent/environments//users//sessions/`,
15735	Session string `json:"session,omitempty"`
15736
15737	// ForceSendFields is a list of field names (e.g.
15738	// "AlternativeQueryResults") to unconditionally include in API
15739	// requests. By default, fields with empty values are omitted from API
15740	// requests. However, any non-pointer, non-interface field appearing in
15741	// ForceSendFields will be sent to the server regardless of whether the
15742	// field is empty or not. This may be used to include empty fields in
15743	// Patch requests.
15744	ForceSendFields []string `json:"-"`
15745
15746	// NullFields is a list of field names (e.g. "AlternativeQueryResults")
15747	// to include in API requests with the JSON null value. By default,
15748	// fields with empty values are omitted from API requests. However, any
15749	// field with an empty value appearing in NullFields will be sent to the
15750	// server as null. It is an error if a field in this list has a
15751	// non-empty value. This may be used to include null fields in Patch
15752	// requests.
15753	NullFields []string `json:"-"`
15754}
15755
15756func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
15757	type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
15758	raw := NoMethod(*s)
15759	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15760}
15761
15762// GoogleCloudDialogflowV2beta1WebhookResponse: The response message for
15763// a webhook call. This response is validated by the Dialogflow server.
15764// If validation fails, an error will be returned in the
15765// QueryResult.diagnostic_info field. Setting JSON fields to an empty
15766// value with the wrong type is a common error. To avoid this error: -
15767// Use "" for empty strings - Use `{}` or `null` for empty objects -
15768// Use `[]` or `null` for empty arrays For more information, see the
15769// Protocol Buffers Language Guide
15770// (https://developers.google.com/protocol-buffers/docs/proto3#json).
15771type GoogleCloudDialogflowV2beta1WebhookResponse struct {
15772	// EndInteraction: Optional. Indicates that this intent ends an
15773	// interaction. Some integrations (e.g., Actions on Google or Dialogflow
15774	// phone gateway) use this information to close interaction with an end
15775	// user. Default is false.
15776	EndInteraction bool `json:"endInteraction,omitempty"`
15777
15778	// FollowupEventInput: Optional. Invokes the supplied events. When this
15779	// field is set, Dialogflow ignores the `fulfillment_text`,
15780	// `fulfillment_messages`, and `payload` fields.
15781	FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
15782
15783	// FulfillmentMessages: Optional. The rich response messages intended
15784	// for the end-user. When provided, Dialogflow uses this field to
15785	// populate QueryResult.fulfillment_messages sent to the integration or
15786	// API caller.
15787	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
15788
15789	// FulfillmentText: Optional. The text response message intended for the
15790	// end-user. It is recommended to use
15791	// `fulfillment_messages.text.text[0]` instead. When provided,
15792	// Dialogflow uses this field to populate QueryResult.fulfillment_text
15793	// sent to the integration or API caller.
15794	FulfillmentText string `json:"fulfillmentText,omitempty"`
15795
15796	// LiveAgentHandoff: Indicates that a live agent should be brought in to
15797	// handle the interaction with the user. In most cases, when you set
15798	// this flag to true, you would also want to set end_interaction to true
15799	// as well. Default is false.
15800	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
15801
15802	// OutputContexts: Optional. The collection of output contexts that will
15803	// overwrite currently active contexts for the session and reset their
15804	// lifespans. When provided, Dialogflow uses this field to populate
15805	// QueryResult.output_contexts sent to the integration or API caller.
15806	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
15807
15808	// Payload: Optional. This field can be used to pass custom data from
15809	// your webhook to the integration or API caller. Arbitrary JSON objects
15810	// are supported. When provided, Dialogflow uses this field to populate
15811	// QueryResult.webhook_payload sent to the integration or API caller.
15812	// This field is also used by the Google Assistant integration
15813	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
15814	// response messages. See the format definition at Google Assistant
15815	// Dialogflow webhook format
15816	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
15817	Payload googleapi.RawMessage `json:"payload,omitempty"`
15818
15819	// SessionEntityTypes: Optional. Additional session entity types to
15820	// replace or extend developer entity types with. The entity synonyms
15821	// apply to all languages and persist for the session. Setting this data
15822	// from a webhook overwrites the session entity types that have been set
15823	// using `detectIntent`, `streamingDetectIntent` or SessionEntityType
15824	// management methods.
15825	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
15826
15827	// Source: Optional. A custom field used to identify the webhook source.
15828	// Arbitrary strings are supported. When provided, Dialogflow uses this
15829	// field to populate QueryResult.webhook_source sent to the integration
15830	// or API caller.
15831	Source string `json:"source,omitempty"`
15832
15833	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
15834	// unconditionally include in API requests. By default, fields with
15835	// empty values are omitted from API requests. However, any non-pointer,
15836	// non-interface field appearing in ForceSendFields will be sent to the
15837	// server regardless of whether the field is empty or not. This may be
15838	// used to include empty fields in Patch requests.
15839	ForceSendFields []string `json:"-"`
15840
15841	// NullFields is a list of field names (e.g. "EndInteraction") to
15842	// include in API requests with the JSON null value. By default, fields
15843	// with empty values are omitted from API requests. However, any field
15844	// with an empty value appearing in NullFields will be sent to the
15845	// server as null. It is an error if a field in this list has a
15846	// non-empty value. This may be used to include null fields in Patch
15847	// requests.
15848	NullFields []string `json:"-"`
15849}
15850
15851func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
15852	type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
15853	raw := NoMethod(*s)
15854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15855}
15856
15857// GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata:
15858// Metadata for CreateDocument operation.
15859type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
15860	// GenericMetadata: The generic information of the operation.
15861	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
15862
15863	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
15864	// unconditionally include in API requests. By default, fields with
15865	// empty values are omitted from API requests. However, any non-pointer,
15866	// non-interface field appearing in ForceSendFields will be sent to the
15867	// server regardless of whether the field is empty or not. This may be
15868	// used to include empty fields in Patch requests.
15869	ForceSendFields []string `json:"-"`
15870
15871	// NullFields is a list of field names (e.g. "GenericMetadata") to
15872	// include in API requests with the JSON null value. By default, fields
15873	// with empty values are omitted from API requests. However, any field
15874	// with an empty value appearing in NullFields will be sent to the
15875	// server as null. It is an error if a field in this list has a
15876	// non-empty value. This may be used to include null fields in Patch
15877	// requests.
15878	NullFields []string `json:"-"`
15879}
15880
15881func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
15882	type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
15883	raw := NoMethod(*s)
15884	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15885}
15886
15887// GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata:
15888// Metadata for DeleteDocument operation.
15889type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
15890	// GenericMetadata: The generic information of the operation.
15891	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
15892
15893	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
15894	// unconditionally include in API requests. By default, fields with
15895	// empty values are omitted from API requests. However, any non-pointer,
15896	// non-interface field appearing in ForceSendFields will be sent to the
15897	// server regardless of whether the field is empty or not. This may be
15898	// used to include empty fields in Patch requests.
15899	ForceSendFields []string `json:"-"`
15900
15901	// NullFields is a list of field names (e.g. "GenericMetadata") to
15902	// include in API requests with the JSON null value. By default, fields
15903	// with empty values are omitted from API requests. However, any field
15904	// with an empty value appearing in NullFields will be sent to the
15905	// server as null. It is an error if a field in this list has a
15906	// non-empty value. This may be used to include null fields in Patch
15907	// requests.
15908	NullFields []string `json:"-"`
15909}
15910
15911func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
15912	type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
15913	raw := NoMethod(*s)
15914	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15915}
15916
15917// GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata:
15918// Metadata in google::longrunning::Operation for Knowledge operations.
15919type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
15920	// State: Required. Output only. The current state of this operation.
15921	//
15922	// Possible values:
15923	//   "STATE_UNSPECIFIED" - State unspecified.
15924	//   "PENDING" - The operation has been created.
15925	//   "RUNNING" - The operation is currently running.
15926	//   "DONE" - The operation is done, either cancelled or completed.
15927	State string `json:"state,omitempty"`
15928
15929	// ForceSendFields is a list of field names (e.g. "State") to
15930	// unconditionally include in API requests. By default, fields with
15931	// empty values are omitted from API requests. However, any non-pointer,
15932	// non-interface field appearing in ForceSendFields will be sent to the
15933	// server regardless of whether the field is empty or not. This may be
15934	// used to include empty fields in Patch requests.
15935	ForceSendFields []string `json:"-"`
15936
15937	// NullFields is a list of field names (e.g. "State") to include in API
15938	// requests with the JSON null value. By default, fields with empty
15939	// values are omitted from API requests. However, any field with an
15940	// empty value appearing in NullFields will be sent to the server as
15941	// null. It is an error if a field in this list has a non-empty value.
15942	// This may be used to include null fields in Patch requests.
15943	NullFields []string `json:"-"`
15944}
15945
15946func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
15947	type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
15948	raw := NoMethod(*s)
15949	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15950}
15951
15952// GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata:
15953// Metadata for ImportDocuments operation.
15954type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
15955	// GenericMetadata: The generic information of the operation.
15956	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
15957
15958	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
15959	// unconditionally include in API requests. By default, fields with
15960	// empty values are omitted from API requests. However, any non-pointer,
15961	// non-interface field appearing in ForceSendFields will be sent to the
15962	// server regardless of whether the field is empty or not. This may be
15963	// used to include empty fields in Patch requests.
15964	ForceSendFields []string `json:"-"`
15965
15966	// NullFields is a list of field names (e.g. "GenericMetadata") to
15967	// include in API requests with the JSON null value. By default, fields
15968	// with empty values are omitted from API requests. However, any field
15969	// with an empty value appearing in NullFields will be sent to the
15970	// server as null. It is an error if a field in this list has a
15971	// non-empty value. This may be used to include null fields in Patch
15972	// requests.
15973	NullFields []string `json:"-"`
15974}
15975
15976func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
15977	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
15978	raw := NoMethod(*s)
15979	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15980}
15981
15982// GoogleCloudDialogflowV3alpha1ImportDocumentsResponse: Response
15983// message for Documents.ImportDocuments.
15984type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
15985	// Warnings: Includes details about skipped documents or any other
15986	// warnings.
15987	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
15988
15989	// ForceSendFields is a list of field names (e.g. "Warnings") to
15990	// unconditionally include in API requests. By default, fields with
15991	// empty values are omitted from API requests. However, any non-pointer,
15992	// non-interface field appearing in ForceSendFields will be sent to the
15993	// server regardless of whether the field is empty or not. This may be
15994	// used to include empty fields in Patch requests.
15995	ForceSendFields []string `json:"-"`
15996
15997	// NullFields is a list of field names (e.g. "Warnings") to include in
15998	// API requests with the JSON null value. By default, fields with empty
15999	// values are omitted from API requests. However, any field with an
16000	// empty value appearing in NullFields will be sent to the server as
16001	// null. It is an error if a field in this list has a non-empty value.
16002	// This may be used to include null fields in Patch requests.
16003	NullFields []string `json:"-"`
16004}
16005
16006func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
16007	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
16008	raw := NoMethod(*s)
16009	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16010}
16011
16012// GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata:
16013// Metadata for ReloadDocument operation.
16014type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
16015	// GenericMetadata: The generic information of the operation.
16016	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
16017
16018	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
16019	// unconditionally include in API requests. By default, fields with
16020	// empty values are omitted from API requests. However, any non-pointer,
16021	// non-interface field appearing in ForceSendFields will be sent to the
16022	// server regardless of whether the field is empty or not. This may be
16023	// used to include empty fields in Patch requests.
16024	ForceSendFields []string `json:"-"`
16025
16026	// NullFields is a list of field names (e.g. "GenericMetadata") to
16027	// include in API requests with the JSON null value. By default, fields
16028	// with empty values are omitted from API requests. However, any field
16029	// with an empty value appearing in NullFields will be sent to the
16030	// server as null. It is an error if a field in this list has a
16031	// non-empty value. This may be used to include null fields in Patch
16032	// requests.
16033	NullFields []string `json:"-"`
16034}
16035
16036func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
16037	type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
16038	raw := NoMethod(*s)
16039	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16040}
16041
16042// GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata:
16043// Metadata for UpdateDocument operation.
16044type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
16045	// GenericMetadata: The generic information of the operation.
16046	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
16047
16048	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
16049	// unconditionally include in API requests. By default, fields with
16050	// empty values are omitted from API requests. However, any non-pointer,
16051	// non-interface field appearing in ForceSendFields will be sent to the
16052	// server regardless of whether the field is empty or not. This may be
16053	// used to include empty fields in Patch requests.
16054	ForceSendFields []string `json:"-"`
16055
16056	// NullFields is a list of field names (e.g. "GenericMetadata") to
16057	// include in API requests with the JSON null value. By default, fields
16058	// with empty values are omitted from API requests. However, any field
16059	// with an empty value appearing in NullFields will be sent to the
16060	// server as null. It is an error if a field in this list has a
16061	// non-empty value. This may be used to include null fields in Patch
16062	// requests.
16063	NullFields []string `json:"-"`
16064}
16065
16066func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
16067	type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
16068	raw := NoMethod(*s)
16069	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16070}
16071
16072// GoogleLongrunningListOperationsResponse: The response message for
16073// Operations.ListOperations.
16074type GoogleLongrunningListOperationsResponse struct {
16075	// NextPageToken: The standard List next-page token.
16076	NextPageToken string `json:"nextPageToken,omitempty"`
16077
16078	// Operations: A list of operations that matches the specified filter in
16079	// the request.
16080	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
16081
16082	// ServerResponse contains the HTTP response code and headers from the
16083	// server.
16084	googleapi.ServerResponse `json:"-"`
16085
16086	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
16087	// unconditionally include in API requests. By default, fields with
16088	// empty values are omitted from API requests. However, any non-pointer,
16089	// non-interface field appearing in ForceSendFields will be sent to the
16090	// server regardless of whether the field is empty or not. This may be
16091	// used to include empty fields in Patch requests.
16092	ForceSendFields []string `json:"-"`
16093
16094	// NullFields is a list of field names (e.g. "NextPageToken") to include
16095	// in API requests with the JSON null value. By default, fields with
16096	// empty values are omitted from API requests. However, any field with
16097	// an empty value appearing in NullFields will be sent to the server as
16098	// null. It is an error if a field in this list has a non-empty value.
16099	// This may be used to include null fields in Patch requests.
16100	NullFields []string `json:"-"`
16101}
16102
16103func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
16104	type NoMethod GoogleLongrunningListOperationsResponse
16105	raw := NoMethod(*s)
16106	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16107}
16108
16109// GoogleLongrunningOperation: This resource represents a long-running
16110// operation that is the result of a network API call.
16111type GoogleLongrunningOperation struct {
16112	// Done: If the value is `false`, it means the operation is still in
16113	// progress. If `true`, the operation is completed, and either `error`
16114	// or `response` is available.
16115	Done bool `json:"done,omitempty"`
16116
16117	// Error: The error result of the operation in case of failure or
16118	// cancellation.
16119	Error *GoogleRpcStatus `json:"error,omitempty"`
16120
16121	// Metadata: Service-specific metadata associated with the operation. It
16122	// typically contains progress information and common metadata such as
16123	// create time. Some services might not provide such metadata. Any
16124	// method that returns a long-running operation should document the
16125	// metadata type, if any.
16126	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
16127
16128	// Name: The server-assigned name, which is only unique within the same
16129	// service that originally returns it. If you use the default HTTP
16130	// mapping, the `name` should be a resource name ending with
16131	// `operations/{unique_id}`.
16132	Name string `json:"name,omitempty"`
16133
16134	// Response: The normal response of the operation in case of success. If
16135	// the original method returns no data on success, such as `Delete`, the
16136	// response is `google.protobuf.Empty`. If the original method is
16137	// standard `Get`/`Create`/`Update`, the response should be the
16138	// resource. For other methods, the response should have the type
16139	// `XxxResponse`, where `Xxx` is the original method name. For example,
16140	// if the original method name is `TakeSnapshot()`, the inferred
16141	// response type is `TakeSnapshotResponse`.
16142	Response googleapi.RawMessage `json:"response,omitempty"`
16143
16144	// ServerResponse contains the HTTP response code and headers from the
16145	// server.
16146	googleapi.ServerResponse `json:"-"`
16147
16148	// ForceSendFields is a list of field names (e.g. "Done") to
16149	// unconditionally include in API requests. By default, fields with
16150	// empty values are omitted from API requests. However, any non-pointer,
16151	// non-interface field appearing in ForceSendFields will be sent to the
16152	// server regardless of whether the field is empty or not. This may be
16153	// used to include empty fields in Patch requests.
16154	ForceSendFields []string `json:"-"`
16155
16156	// NullFields is a list of field names (e.g. "Done") to include in API
16157	// requests with the JSON null value. By default, fields with empty
16158	// values are omitted from API requests. However, any field with an
16159	// empty value appearing in NullFields will be sent to the server as
16160	// null. It is an error if a field in this list has a non-empty value.
16161	// This may be used to include null fields in Patch requests.
16162	NullFields []string `json:"-"`
16163}
16164
16165func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
16166	type NoMethod GoogleLongrunningOperation
16167	raw := NoMethod(*s)
16168	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16169}
16170
16171// GoogleProtobufEmpty: A generic empty message that you can re-use to
16172// avoid defining duplicated empty messages in your APIs. A typical
16173// example is to use it as the request or the response type of an API
16174// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
16175// returns (google.protobuf.Empty); } The JSON representation for
16176// `Empty` is empty JSON object `{}`.
16177type GoogleProtobufEmpty struct {
16178	// ServerResponse contains the HTTP response code and headers from the
16179	// server.
16180	googleapi.ServerResponse `json:"-"`
16181}
16182
16183// GoogleRpcStatus: The `Status` type defines a logical error model that
16184// is suitable for different programming environments, including REST
16185// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
16186// `Status` message contains three pieces of data: error code, error
16187// message, and error details. You can find out more about this error
16188// model and how to work with it in the API Design Guide
16189// (https://cloud.google.com/apis/design/errors).
16190type GoogleRpcStatus struct {
16191	// Code: The status code, which should be an enum value of
16192	// google.rpc.Code.
16193	Code int64 `json:"code,omitempty"`
16194
16195	// Details: A list of messages that carry the error details. There is a
16196	// common set of message types for APIs to use.
16197	Details []googleapi.RawMessage `json:"details,omitempty"`
16198
16199	// Message: A developer-facing error message, which should be in
16200	// English. Any user-facing error message should be localized and sent
16201	// in the google.rpc.Status.details field, or localized by the client.
16202	Message string `json:"message,omitempty"`
16203
16204	// ForceSendFields is a list of field names (e.g. "Code") to
16205	// unconditionally include in API requests. By default, fields with
16206	// empty values are omitted from API requests. However, any non-pointer,
16207	// non-interface field appearing in ForceSendFields will be sent to the
16208	// server regardless of whether the field is empty or not. This may be
16209	// used to include empty fields in Patch requests.
16210	ForceSendFields []string `json:"-"`
16211
16212	// NullFields is a list of field names (e.g. "Code") to include in API
16213	// requests with the JSON null value. By default, fields with empty
16214	// values are omitted from API requests. However, any field with an
16215	// empty value appearing in NullFields will be sent to the server as
16216	// null. It is an error if a field in this list has a non-empty value.
16217	// This may be used to include null fields in Patch requests.
16218	NullFields []string `json:"-"`
16219}
16220
16221func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
16222	type NoMethod GoogleRpcStatus
16223	raw := NoMethod(*s)
16224	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16225}
16226
16227// GoogleTypeLatLng: An object that represents a latitude/longitude
16228// pair. This is expressed as a pair of doubles to represent degrees
16229// latitude and degrees longitude. Unless specified otherwise, this must
16230// conform to the WGS84 standard. Values must be within normalized
16231// ranges.
16232type GoogleTypeLatLng struct {
16233	// Latitude: The latitude in degrees. It must be in the range [-90.0,
16234	// +90.0].
16235	Latitude float64 `json:"latitude,omitempty"`
16236
16237	// Longitude: The longitude in degrees. It must be in the range [-180.0,
16238	// +180.0].
16239	Longitude float64 `json:"longitude,omitempty"`
16240
16241	// ForceSendFields is a list of field names (e.g. "Latitude") to
16242	// unconditionally include in API requests. By default, fields with
16243	// empty values are omitted from API requests. However, any non-pointer,
16244	// non-interface field appearing in ForceSendFields will be sent to the
16245	// server regardless of whether the field is empty or not. This may be
16246	// used to include empty fields in Patch requests.
16247	ForceSendFields []string `json:"-"`
16248
16249	// NullFields is a list of field names (e.g. "Latitude") to include in
16250	// API requests with the JSON null value. By default, fields with empty
16251	// values are omitted from API requests. However, any field with an
16252	// empty value appearing in NullFields will be sent to the server as
16253	// null. It is an error if a field in this list has a non-empty value.
16254	// This may be used to include null fields in Patch requests.
16255	NullFields []string `json:"-"`
16256}
16257
16258func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
16259	type NoMethod GoogleTypeLatLng
16260	raw := NoMethod(*s)
16261	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
16262}
16263
16264func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
16265	type NoMethod GoogleTypeLatLng
16266	var s1 struct {
16267		Latitude  gensupport.JSONFloat64 `json:"latitude"`
16268		Longitude gensupport.JSONFloat64 `json:"longitude"`
16269		*NoMethod
16270	}
16271	s1.NoMethod = (*NoMethod)(s)
16272	if err := json.Unmarshal(data, &s1); err != nil {
16273		return err
16274	}
16275	s.Latitude = float64(s1.Latitude)
16276	s.Longitude = float64(s1.Longitude)
16277	return nil
16278}
16279
16280// method id "dialogflow.projects.locations.agents.create":
16281
16282type ProjectsLocationsAgentsCreateCall struct {
16283	s                                   *Service
16284	parent                              string
16285	googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent
16286	urlParams_                          gensupport.URLParams
16287	ctx_                                context.Context
16288	header_                             http.Header
16289}
16290
16291// Create: Creates an agent in the specified location.
16292func (r *ProjectsLocationsAgentsService) Create(parent string, googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent) *ProjectsLocationsAgentsCreateCall {
16293	c := &ProjectsLocationsAgentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16294	c.parent = parent
16295	c.googleclouddialogflowcxv3beta1agent = googleclouddialogflowcxv3beta1agent
16296	return c
16297}
16298
16299// Fields allows partial responses to be retrieved. See
16300// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16301// for more information.
16302func (c *ProjectsLocationsAgentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsCreateCall {
16303	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16304	return c
16305}
16306
16307// Context sets the context to be used in this call's Do method. Any
16308// pending HTTP request will be aborted if the provided context is
16309// canceled.
16310func (c *ProjectsLocationsAgentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsCreateCall {
16311	c.ctx_ = ctx
16312	return c
16313}
16314
16315// Header returns an http.Header that can be modified by the caller to
16316// add HTTP headers to the request.
16317func (c *ProjectsLocationsAgentsCreateCall) Header() http.Header {
16318	if c.header_ == nil {
16319		c.header_ = make(http.Header)
16320	}
16321	return c.header_
16322}
16323
16324func (c *ProjectsLocationsAgentsCreateCall) doRequest(alt string) (*http.Response, error) {
16325	reqHeaders := make(http.Header)
16326	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16327	for k, v := range c.header_ {
16328		reqHeaders[k] = v
16329	}
16330	reqHeaders.Set("User-Agent", c.s.userAgent())
16331	var body io.Reader = nil
16332	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1agent)
16333	if err != nil {
16334		return nil, err
16335	}
16336	reqHeaders.Set("Content-Type", "application/json")
16337	c.urlParams_.Set("alt", alt)
16338	c.urlParams_.Set("prettyPrint", "false")
16339	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/agents")
16340	urls += "?" + c.urlParams_.Encode()
16341	req, err := http.NewRequest("POST", urls, body)
16342	if err != nil {
16343		return nil, err
16344	}
16345	req.Header = reqHeaders
16346	googleapi.Expand(req.URL, map[string]string{
16347		"parent": c.parent,
16348	})
16349	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16350}
16351
16352// Do executes the "dialogflow.projects.locations.agents.create" call.
16353// Exactly one of *GoogleCloudDialogflowCxV3beta1Agent or error will be
16354// non-nil. Any non-2xx status code is an error. Response headers are in
16355// either *GoogleCloudDialogflowCxV3beta1Agent.ServerResponse.Header or
16356// (if a response was returned at all) in
16357// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16358// whether the returned error was because http.StatusNotModified was
16359// returned.
16360func (c *ProjectsLocationsAgentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
16361	gensupport.SetOptions(c.urlParams_, opts...)
16362	res, err := c.doRequest("json")
16363	if res != nil && res.StatusCode == http.StatusNotModified {
16364		if res.Body != nil {
16365			res.Body.Close()
16366		}
16367		return nil, &googleapi.Error{
16368			Code:   res.StatusCode,
16369			Header: res.Header,
16370		}
16371	}
16372	if err != nil {
16373		return nil, err
16374	}
16375	defer googleapi.CloseBody(res)
16376	if err := googleapi.CheckResponse(res); err != nil {
16377		return nil, err
16378	}
16379	ret := &GoogleCloudDialogflowCxV3beta1Agent{
16380		ServerResponse: googleapi.ServerResponse{
16381			Header:         res.Header,
16382			HTTPStatusCode: res.StatusCode,
16383		},
16384	}
16385	target := &ret
16386	if err := gensupport.DecodeResponse(target, res); err != nil {
16387		return nil, err
16388	}
16389	return ret, nil
16390	// {
16391	//   "description": "Creates an agent in the specified location.",
16392	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents",
16393	//   "httpMethod": "POST",
16394	//   "id": "dialogflow.projects.locations.agents.create",
16395	//   "parameterOrder": [
16396	//     "parent"
16397	//   ],
16398	//   "parameters": {
16399	//     "parent": {
16400	//       "description": "Required. The location to create a agent for. Format: `projects//locations/`.",
16401	//       "location": "path",
16402	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
16403	//       "required": true,
16404	//       "type": "string"
16405	//     }
16406	//   },
16407	//   "path": "v3beta1/{+parent}/agents",
16408	//   "request": {
16409	//     "$ref": "GoogleCloudDialogflowCxV3beta1Agent"
16410	//   },
16411	//   "response": {
16412	//     "$ref": "GoogleCloudDialogflowCxV3beta1Agent"
16413	//   },
16414	//   "scopes": [
16415	//     "https://www.googleapis.com/auth/cloud-platform",
16416	//     "https://www.googleapis.com/auth/dialogflow"
16417	//   ]
16418	// }
16419
16420}
16421
16422// method id "dialogflow.projects.locations.agents.delete":
16423
16424type ProjectsLocationsAgentsDeleteCall struct {
16425	s          *Service
16426	name       string
16427	urlParams_ gensupport.URLParams
16428	ctx_       context.Context
16429	header_    http.Header
16430}
16431
16432// Delete: Deletes the specified agent.
16433func (r *ProjectsLocationsAgentsService) Delete(name string) *ProjectsLocationsAgentsDeleteCall {
16434	c := &ProjectsLocationsAgentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16435	c.name = name
16436	return c
16437}
16438
16439// Fields allows partial responses to be retrieved. See
16440// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16441// for more information.
16442func (c *ProjectsLocationsAgentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsDeleteCall {
16443	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16444	return c
16445}
16446
16447// Context sets the context to be used in this call's Do method. Any
16448// pending HTTP request will be aborted if the provided context is
16449// canceled.
16450func (c *ProjectsLocationsAgentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsDeleteCall {
16451	c.ctx_ = ctx
16452	return c
16453}
16454
16455// Header returns an http.Header that can be modified by the caller to
16456// add HTTP headers to the request.
16457func (c *ProjectsLocationsAgentsDeleteCall) Header() http.Header {
16458	if c.header_ == nil {
16459		c.header_ = make(http.Header)
16460	}
16461	return c.header_
16462}
16463
16464func (c *ProjectsLocationsAgentsDeleteCall) doRequest(alt string) (*http.Response, error) {
16465	reqHeaders := make(http.Header)
16466	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16467	for k, v := range c.header_ {
16468		reqHeaders[k] = v
16469	}
16470	reqHeaders.Set("User-Agent", c.s.userAgent())
16471	var body io.Reader = nil
16472	c.urlParams_.Set("alt", alt)
16473	c.urlParams_.Set("prettyPrint", "false")
16474	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
16475	urls += "?" + c.urlParams_.Encode()
16476	req, err := http.NewRequest("DELETE", urls, body)
16477	if err != nil {
16478		return nil, err
16479	}
16480	req.Header = reqHeaders
16481	googleapi.Expand(req.URL, map[string]string{
16482		"name": c.name,
16483	})
16484	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16485}
16486
16487// Do executes the "dialogflow.projects.locations.agents.delete" call.
16488// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
16489// non-2xx status code is an error. Response headers are in either
16490// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
16491// returned at all) in error.(*googleapi.Error).Header. Use
16492// googleapi.IsNotModified to check whether the returned error was
16493// because http.StatusNotModified was returned.
16494func (c *ProjectsLocationsAgentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
16495	gensupport.SetOptions(c.urlParams_, opts...)
16496	res, err := c.doRequest("json")
16497	if res != nil && res.StatusCode == http.StatusNotModified {
16498		if res.Body != nil {
16499			res.Body.Close()
16500		}
16501		return nil, &googleapi.Error{
16502			Code:   res.StatusCode,
16503			Header: res.Header,
16504		}
16505	}
16506	if err != nil {
16507		return nil, err
16508	}
16509	defer googleapi.CloseBody(res)
16510	if err := googleapi.CheckResponse(res); err != nil {
16511		return nil, err
16512	}
16513	ret := &GoogleProtobufEmpty{
16514		ServerResponse: googleapi.ServerResponse{
16515			Header:         res.Header,
16516			HTTPStatusCode: res.StatusCode,
16517		},
16518	}
16519	target := &ret
16520	if err := gensupport.DecodeResponse(target, res); err != nil {
16521		return nil, err
16522	}
16523	return ret, nil
16524	// {
16525	//   "description": "Deletes the specified agent.",
16526	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}",
16527	//   "httpMethod": "DELETE",
16528	//   "id": "dialogflow.projects.locations.agents.delete",
16529	//   "parameterOrder": [
16530	//     "name"
16531	//   ],
16532	//   "parameters": {
16533	//     "name": {
16534	//       "description": "Required. The name of the agent to delete. Format: `projects//locations//agents/`.",
16535	//       "location": "path",
16536	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
16537	//       "required": true,
16538	//       "type": "string"
16539	//     }
16540	//   },
16541	//   "path": "v3beta1/{+name}",
16542	//   "response": {
16543	//     "$ref": "GoogleProtobufEmpty"
16544	//   },
16545	//   "scopes": [
16546	//     "https://www.googleapis.com/auth/cloud-platform",
16547	//     "https://www.googleapis.com/auth/dialogflow"
16548	//   ]
16549	// }
16550
16551}
16552
16553// method id "dialogflow.projects.locations.agents.export":
16554
16555type ProjectsLocationsAgentsExportCall struct {
16556	s                                                *Service
16557	name                                             string
16558	googleclouddialogflowcxv3beta1exportagentrequest *GoogleCloudDialogflowCxV3beta1ExportAgentRequest
16559	urlParams_                                       gensupport.URLParams
16560	ctx_                                             context.Context
16561	header_                                          http.Header
16562}
16563
16564// Export: Exports the specified agent to a binary file.
16565func (r *ProjectsLocationsAgentsService) Export(name string, googleclouddialogflowcxv3beta1exportagentrequest *GoogleCloudDialogflowCxV3beta1ExportAgentRequest) *ProjectsLocationsAgentsExportCall {
16566	c := &ProjectsLocationsAgentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16567	c.name = name
16568	c.googleclouddialogflowcxv3beta1exportagentrequest = googleclouddialogflowcxv3beta1exportagentrequest
16569	return c
16570}
16571
16572// Fields allows partial responses to be retrieved. See
16573// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16574// for more information.
16575func (c *ProjectsLocationsAgentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsExportCall {
16576	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16577	return c
16578}
16579
16580// Context sets the context to be used in this call's Do method. Any
16581// pending HTTP request will be aborted if the provided context is
16582// canceled.
16583func (c *ProjectsLocationsAgentsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsExportCall {
16584	c.ctx_ = ctx
16585	return c
16586}
16587
16588// Header returns an http.Header that can be modified by the caller to
16589// add HTTP headers to the request.
16590func (c *ProjectsLocationsAgentsExportCall) Header() http.Header {
16591	if c.header_ == nil {
16592		c.header_ = make(http.Header)
16593	}
16594	return c.header_
16595}
16596
16597func (c *ProjectsLocationsAgentsExportCall) doRequest(alt string) (*http.Response, error) {
16598	reqHeaders := make(http.Header)
16599	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16600	for k, v := range c.header_ {
16601		reqHeaders[k] = v
16602	}
16603	reqHeaders.Set("User-Agent", c.s.userAgent())
16604	var body io.Reader = nil
16605	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportagentrequest)
16606	if err != nil {
16607		return nil, err
16608	}
16609	reqHeaders.Set("Content-Type", "application/json")
16610	c.urlParams_.Set("alt", alt)
16611	c.urlParams_.Set("prettyPrint", "false")
16612	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:export")
16613	urls += "?" + c.urlParams_.Encode()
16614	req, err := http.NewRequest("POST", urls, body)
16615	if err != nil {
16616		return nil, err
16617	}
16618	req.Header = reqHeaders
16619	googleapi.Expand(req.URL, map[string]string{
16620		"name": c.name,
16621	})
16622	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16623}
16624
16625// Do executes the "dialogflow.projects.locations.agents.export" call.
16626// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
16627// Any non-2xx status code is an error. Response headers are in either
16628// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
16629// was returned at all) in error.(*googleapi.Error).Header. Use
16630// googleapi.IsNotModified to check whether the returned error was
16631// because http.StatusNotModified was returned.
16632func (c *ProjectsLocationsAgentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16633	gensupport.SetOptions(c.urlParams_, opts...)
16634	res, err := c.doRequest("json")
16635	if res != nil && res.StatusCode == http.StatusNotModified {
16636		if res.Body != nil {
16637			res.Body.Close()
16638		}
16639		return nil, &googleapi.Error{
16640			Code:   res.StatusCode,
16641			Header: res.Header,
16642		}
16643	}
16644	if err != nil {
16645		return nil, err
16646	}
16647	defer googleapi.CloseBody(res)
16648	if err := googleapi.CheckResponse(res); err != nil {
16649		return nil, err
16650	}
16651	ret := &GoogleLongrunningOperation{
16652		ServerResponse: googleapi.ServerResponse{
16653			Header:         res.Header,
16654			HTTPStatusCode: res.StatusCode,
16655		},
16656	}
16657	target := &ret
16658	if err := gensupport.DecodeResponse(target, res); err != nil {
16659		return nil, err
16660	}
16661	return ret, nil
16662	// {
16663	//   "description": "Exports the specified agent to a binary file.",
16664	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}:export",
16665	//   "httpMethod": "POST",
16666	//   "id": "dialogflow.projects.locations.agents.export",
16667	//   "parameterOrder": [
16668	//     "name"
16669	//   ],
16670	//   "parameters": {
16671	//     "name": {
16672	//       "description": "Required. The name of the agent to export. Format: `projects//locations//agents/`.",
16673	//       "location": "path",
16674	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
16675	//       "required": true,
16676	//       "type": "string"
16677	//     }
16678	//   },
16679	//   "path": "v3beta1/{+name}:export",
16680	//   "request": {
16681	//     "$ref": "GoogleCloudDialogflowCxV3beta1ExportAgentRequest"
16682	//   },
16683	//   "response": {
16684	//     "$ref": "GoogleLongrunningOperation"
16685	//   },
16686	//   "scopes": [
16687	//     "https://www.googleapis.com/auth/cloud-platform",
16688	//     "https://www.googleapis.com/auth/dialogflow"
16689	//   ]
16690	// }
16691
16692}
16693
16694// method id "dialogflow.projects.locations.agents.get":
16695
16696type ProjectsLocationsAgentsGetCall struct {
16697	s            *Service
16698	name         string
16699	urlParams_   gensupport.URLParams
16700	ifNoneMatch_ string
16701	ctx_         context.Context
16702	header_      http.Header
16703}
16704
16705// Get: Retrieves the specified agent.
16706func (r *ProjectsLocationsAgentsService) Get(name string) *ProjectsLocationsAgentsGetCall {
16707	c := &ProjectsLocationsAgentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16708	c.name = name
16709	return c
16710}
16711
16712// Fields allows partial responses to be retrieved. See
16713// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16714// for more information.
16715func (c *ProjectsLocationsAgentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetCall {
16716	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16717	return c
16718}
16719
16720// IfNoneMatch sets the optional parameter which makes the operation
16721// fail if the object's ETag matches the given value. This is useful for
16722// getting updates only after the object has changed since the last
16723// request. Use googleapi.IsNotModified to check whether the response
16724// error from Do is the result of In-None-Match.
16725func (c *ProjectsLocationsAgentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetCall {
16726	c.ifNoneMatch_ = entityTag
16727	return c
16728}
16729
16730// Context sets the context to be used in this call's Do method. Any
16731// pending HTTP request will be aborted if the provided context is
16732// canceled.
16733func (c *ProjectsLocationsAgentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetCall {
16734	c.ctx_ = ctx
16735	return c
16736}
16737
16738// Header returns an http.Header that can be modified by the caller to
16739// add HTTP headers to the request.
16740func (c *ProjectsLocationsAgentsGetCall) Header() http.Header {
16741	if c.header_ == nil {
16742		c.header_ = make(http.Header)
16743	}
16744	return c.header_
16745}
16746
16747func (c *ProjectsLocationsAgentsGetCall) doRequest(alt string) (*http.Response, error) {
16748	reqHeaders := make(http.Header)
16749	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16750	for k, v := range c.header_ {
16751		reqHeaders[k] = v
16752	}
16753	reqHeaders.Set("User-Agent", c.s.userAgent())
16754	if c.ifNoneMatch_ != "" {
16755		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16756	}
16757	var body io.Reader = nil
16758	c.urlParams_.Set("alt", alt)
16759	c.urlParams_.Set("prettyPrint", "false")
16760	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
16761	urls += "?" + c.urlParams_.Encode()
16762	req, err := http.NewRequest("GET", urls, body)
16763	if err != nil {
16764		return nil, err
16765	}
16766	req.Header = reqHeaders
16767	googleapi.Expand(req.URL, map[string]string{
16768		"name": c.name,
16769	})
16770	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16771}
16772
16773// Do executes the "dialogflow.projects.locations.agents.get" call.
16774// Exactly one of *GoogleCloudDialogflowCxV3beta1Agent or error will be
16775// non-nil. Any non-2xx status code is an error. Response headers are in
16776// either *GoogleCloudDialogflowCxV3beta1Agent.ServerResponse.Header or
16777// (if a response was returned at all) in
16778// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16779// whether the returned error was because http.StatusNotModified was
16780// returned.
16781func (c *ProjectsLocationsAgentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
16782	gensupport.SetOptions(c.urlParams_, opts...)
16783	res, err := c.doRequest("json")
16784	if res != nil && res.StatusCode == http.StatusNotModified {
16785		if res.Body != nil {
16786			res.Body.Close()
16787		}
16788		return nil, &googleapi.Error{
16789			Code:   res.StatusCode,
16790			Header: res.Header,
16791		}
16792	}
16793	if err != nil {
16794		return nil, err
16795	}
16796	defer googleapi.CloseBody(res)
16797	if err := googleapi.CheckResponse(res); err != nil {
16798		return nil, err
16799	}
16800	ret := &GoogleCloudDialogflowCxV3beta1Agent{
16801		ServerResponse: googleapi.ServerResponse{
16802			Header:         res.Header,
16803			HTTPStatusCode: res.StatusCode,
16804		},
16805	}
16806	target := &ret
16807	if err := gensupport.DecodeResponse(target, res); err != nil {
16808		return nil, err
16809	}
16810	return ret, nil
16811	// {
16812	//   "description": "Retrieves the specified agent.",
16813	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}",
16814	//   "httpMethod": "GET",
16815	//   "id": "dialogflow.projects.locations.agents.get",
16816	//   "parameterOrder": [
16817	//     "name"
16818	//   ],
16819	//   "parameters": {
16820	//     "name": {
16821	//       "description": "Required. The name of the agent. Format: `projects//locations//agents/`.",
16822	//       "location": "path",
16823	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
16824	//       "required": true,
16825	//       "type": "string"
16826	//     }
16827	//   },
16828	//   "path": "v3beta1/{+name}",
16829	//   "response": {
16830	//     "$ref": "GoogleCloudDialogflowCxV3beta1Agent"
16831	//   },
16832	//   "scopes": [
16833	//     "https://www.googleapis.com/auth/cloud-platform",
16834	//     "https://www.googleapis.com/auth/dialogflow"
16835	//   ]
16836	// }
16837
16838}
16839
16840// method id "dialogflow.projects.locations.agents.getValidationResult":
16841
16842type ProjectsLocationsAgentsGetValidationResultCall struct {
16843	s            *Service
16844	name         string
16845	urlParams_   gensupport.URLParams
16846	ifNoneMatch_ string
16847	ctx_         context.Context
16848	header_      http.Header
16849}
16850
16851// GetValidationResult: Gets the latest agent validation result. Agent
16852// validation is performed when ValidateAgent is called.
16853func (r *ProjectsLocationsAgentsService) GetValidationResult(name string) *ProjectsLocationsAgentsGetValidationResultCall {
16854	c := &ProjectsLocationsAgentsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16855	c.name = name
16856	return c
16857}
16858
16859// LanguageCode sets the optional parameter "languageCode": If not
16860// specified, the agent's default language is used.
16861func (c *ProjectsLocationsAgentsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGetValidationResultCall {
16862	c.urlParams_.Set("languageCode", languageCode)
16863	return c
16864}
16865
16866// Fields allows partial responses to be retrieved. See
16867// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16868// for more information.
16869func (c *ProjectsLocationsAgentsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetValidationResultCall {
16870	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16871	return c
16872}
16873
16874// IfNoneMatch sets the optional parameter which makes the operation
16875// fail if the object's ETag matches the given value. This is useful for
16876// getting updates only after the object has changed since the last
16877// request. Use googleapi.IsNotModified to check whether the response
16878// error from Do is the result of In-None-Match.
16879func (c *ProjectsLocationsAgentsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetValidationResultCall {
16880	c.ifNoneMatch_ = entityTag
16881	return c
16882}
16883
16884// Context sets the context to be used in this call's Do method. Any
16885// pending HTTP request will be aborted if the provided context is
16886// canceled.
16887func (c *ProjectsLocationsAgentsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetValidationResultCall {
16888	c.ctx_ = ctx
16889	return c
16890}
16891
16892// Header returns an http.Header that can be modified by the caller to
16893// add HTTP headers to the request.
16894func (c *ProjectsLocationsAgentsGetValidationResultCall) Header() http.Header {
16895	if c.header_ == nil {
16896		c.header_ = make(http.Header)
16897	}
16898	return c.header_
16899}
16900
16901func (c *ProjectsLocationsAgentsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
16902	reqHeaders := make(http.Header)
16903	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
16904	for k, v := range c.header_ {
16905		reqHeaders[k] = v
16906	}
16907	reqHeaders.Set("User-Agent", c.s.userAgent())
16908	if c.ifNoneMatch_ != "" {
16909		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16910	}
16911	var body io.Reader = nil
16912	c.urlParams_.Set("alt", alt)
16913	c.urlParams_.Set("prettyPrint", "false")
16914	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
16915	urls += "?" + c.urlParams_.Encode()
16916	req, err := http.NewRequest("GET", urls, body)
16917	if err != nil {
16918		return nil, err
16919	}
16920	req.Header = reqHeaders
16921	googleapi.Expand(req.URL, map[string]string{
16922		"name": c.name,
16923	})
16924	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16925}
16926
16927// Do executes the "dialogflow.projects.locations.agents.getValidationResult" call.
16928// Exactly one of *GoogleCloudDialogflowCxV3beta1AgentValidationResult
16929// or error will be non-nil. Any non-2xx status code is an error.
16930// Response headers are in either
16931// *GoogleCloudDialogflowCxV3beta1AgentValidationResult.ServerResponse.He
16932// ader or (if a response was returned at all) in
16933// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16934// whether the returned error was because http.StatusNotModified was
16935// returned.
16936func (c *ProjectsLocationsAgentsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AgentValidationResult, error) {
16937	gensupport.SetOptions(c.urlParams_, opts...)
16938	res, err := c.doRequest("json")
16939	if res != nil && res.StatusCode == http.StatusNotModified {
16940		if res.Body != nil {
16941			res.Body.Close()
16942		}
16943		return nil, &googleapi.Error{
16944			Code:   res.StatusCode,
16945			Header: res.Header,
16946		}
16947	}
16948	if err != nil {
16949		return nil, err
16950	}
16951	defer googleapi.CloseBody(res)
16952	if err := googleapi.CheckResponse(res); err != nil {
16953		return nil, err
16954	}
16955	ret := &GoogleCloudDialogflowCxV3beta1AgentValidationResult{
16956		ServerResponse: googleapi.ServerResponse{
16957			Header:         res.Header,
16958			HTTPStatusCode: res.StatusCode,
16959		},
16960	}
16961	target := &ret
16962	if err := gensupport.DecodeResponse(target, res); err != nil {
16963		return nil, err
16964	}
16965	return ret, nil
16966	// {
16967	//   "description": "Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.",
16968	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/validationResult",
16969	//   "httpMethod": "GET",
16970	//   "id": "dialogflow.projects.locations.agents.getValidationResult",
16971	//   "parameterOrder": [
16972	//     "name"
16973	//   ],
16974	//   "parameters": {
16975	//     "languageCode": {
16976	//       "description": "If not specified, the agent's default language is used.",
16977	//       "location": "query",
16978	//       "type": "string"
16979	//     },
16980	//     "name": {
16981	//       "description": "Required. The agent name. Format: `projects//locations//agents//validationResult`.",
16982	//       "location": "path",
16983	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/validationResult$",
16984	//       "required": true,
16985	//       "type": "string"
16986	//     }
16987	//   },
16988	//   "path": "v3beta1/{+name}",
16989	//   "response": {
16990	//     "$ref": "GoogleCloudDialogflowCxV3beta1AgentValidationResult"
16991	//   },
16992	//   "scopes": [
16993	//     "https://www.googleapis.com/auth/cloud-platform",
16994	//     "https://www.googleapis.com/auth/dialogflow"
16995	//   ]
16996	// }
16997
16998}
16999
17000// method id "dialogflow.projects.locations.agents.list":
17001
17002type ProjectsLocationsAgentsListCall struct {
17003	s            *Service
17004	parent       string
17005	urlParams_   gensupport.URLParams
17006	ifNoneMatch_ string
17007	ctx_         context.Context
17008	header_      http.Header
17009}
17010
17011// List: Returns the list of all agents in the specified location.
17012func (r *ProjectsLocationsAgentsService) List(parent string) *ProjectsLocationsAgentsListCall {
17013	c := &ProjectsLocationsAgentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17014	c.parent = parent
17015	return c
17016}
17017
17018// PageSize sets the optional parameter "pageSize": The maximum number
17019// of items to return in a single page. By default 100 and at most 1000.
17020func (c *ProjectsLocationsAgentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsListCall {
17021	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17022	return c
17023}
17024
17025// PageToken sets the optional parameter "pageToken": The
17026// next_page_token value returned from a previous list request.
17027func (c *ProjectsLocationsAgentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsListCall {
17028	c.urlParams_.Set("pageToken", pageToken)
17029	return c
17030}
17031
17032// Fields allows partial responses to be retrieved. See
17033// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17034// for more information.
17035func (c *ProjectsLocationsAgentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsListCall {
17036	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17037	return c
17038}
17039
17040// IfNoneMatch sets the optional parameter which makes the operation
17041// fail if the object's ETag matches the given value. This is useful for
17042// getting updates only after the object has changed since the last
17043// request. Use googleapi.IsNotModified to check whether the response
17044// error from Do is the result of In-None-Match.
17045func (c *ProjectsLocationsAgentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsListCall {
17046	c.ifNoneMatch_ = entityTag
17047	return c
17048}
17049
17050// Context sets the context to be used in this call's Do method. Any
17051// pending HTTP request will be aborted if the provided context is
17052// canceled.
17053func (c *ProjectsLocationsAgentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsListCall {
17054	c.ctx_ = ctx
17055	return c
17056}
17057
17058// Header returns an http.Header that can be modified by the caller to
17059// add HTTP headers to the request.
17060func (c *ProjectsLocationsAgentsListCall) Header() http.Header {
17061	if c.header_ == nil {
17062		c.header_ = make(http.Header)
17063	}
17064	return c.header_
17065}
17066
17067func (c *ProjectsLocationsAgentsListCall) doRequest(alt string) (*http.Response, error) {
17068	reqHeaders := make(http.Header)
17069	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17070	for k, v := range c.header_ {
17071		reqHeaders[k] = v
17072	}
17073	reqHeaders.Set("User-Agent", c.s.userAgent())
17074	if c.ifNoneMatch_ != "" {
17075		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17076	}
17077	var body io.Reader = nil
17078	c.urlParams_.Set("alt", alt)
17079	c.urlParams_.Set("prettyPrint", "false")
17080	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/agents")
17081	urls += "?" + c.urlParams_.Encode()
17082	req, err := http.NewRequest("GET", urls, body)
17083	if err != nil {
17084		return nil, err
17085	}
17086	req.Header = reqHeaders
17087	googleapi.Expand(req.URL, map[string]string{
17088		"parent": c.parent,
17089	})
17090	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17091}
17092
17093// Do executes the "dialogflow.projects.locations.agents.list" call.
17094// Exactly one of *GoogleCloudDialogflowCxV3beta1ListAgentsResponse or
17095// error will be non-nil. Any non-2xx status code is an error. Response
17096// headers are in either
17097// *GoogleCloudDialogflowCxV3beta1ListAgentsResponse.ServerResponse.Heade
17098// r or (if a response was returned at all) in
17099// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17100// whether the returned error was because http.StatusNotModified was
17101// returned.
17102func (c *ProjectsLocationsAgentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListAgentsResponse, error) {
17103	gensupport.SetOptions(c.urlParams_, opts...)
17104	res, err := c.doRequest("json")
17105	if res != nil && res.StatusCode == http.StatusNotModified {
17106		if res.Body != nil {
17107			res.Body.Close()
17108		}
17109		return nil, &googleapi.Error{
17110			Code:   res.StatusCode,
17111			Header: res.Header,
17112		}
17113	}
17114	if err != nil {
17115		return nil, err
17116	}
17117	defer googleapi.CloseBody(res)
17118	if err := googleapi.CheckResponse(res); err != nil {
17119		return nil, err
17120	}
17121	ret := &GoogleCloudDialogflowCxV3beta1ListAgentsResponse{
17122		ServerResponse: googleapi.ServerResponse{
17123			Header:         res.Header,
17124			HTTPStatusCode: res.StatusCode,
17125		},
17126	}
17127	target := &ret
17128	if err := gensupport.DecodeResponse(target, res); err != nil {
17129		return nil, err
17130	}
17131	return ret, nil
17132	// {
17133	//   "description": "Returns the list of all agents in the specified location.",
17134	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents",
17135	//   "httpMethod": "GET",
17136	//   "id": "dialogflow.projects.locations.agents.list",
17137	//   "parameterOrder": [
17138	//     "parent"
17139	//   ],
17140	//   "parameters": {
17141	//     "pageSize": {
17142	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
17143	//       "format": "int32",
17144	//       "location": "query",
17145	//       "type": "integer"
17146	//     },
17147	//     "pageToken": {
17148	//       "description": "The next_page_token value returned from a previous list request.",
17149	//       "location": "query",
17150	//       "type": "string"
17151	//     },
17152	//     "parent": {
17153	//       "description": "Required. The location to list all agents for. Format: `projects//locations/`.",
17154	//       "location": "path",
17155	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
17156	//       "required": true,
17157	//       "type": "string"
17158	//     }
17159	//   },
17160	//   "path": "v3beta1/{+parent}/agents",
17161	//   "response": {
17162	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListAgentsResponse"
17163	//   },
17164	//   "scopes": [
17165	//     "https://www.googleapis.com/auth/cloud-platform",
17166	//     "https://www.googleapis.com/auth/dialogflow"
17167	//   ]
17168	// }
17169
17170}
17171
17172// Pages invokes f for each page of results.
17173// A non-nil error returned from f will halt the iteration.
17174// The provided context supersedes any context provided to the Context method.
17175func (c *ProjectsLocationsAgentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListAgentsResponse) error) error {
17176	c.ctx_ = ctx
17177	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
17178	for {
17179		x, err := c.Do()
17180		if err != nil {
17181			return err
17182		}
17183		if err := f(x); err != nil {
17184			return err
17185		}
17186		if x.NextPageToken == "" {
17187			return nil
17188		}
17189		c.PageToken(x.NextPageToken)
17190	}
17191}
17192
17193// method id "dialogflow.projects.locations.agents.patch":
17194
17195type ProjectsLocationsAgentsPatchCall struct {
17196	s                                   *Service
17197	nameid                              string
17198	googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent
17199	urlParams_                          gensupport.URLParams
17200	ctx_                                context.Context
17201	header_                             http.Header
17202}
17203
17204// Patch: Updates the specified agent.
17205func (r *ProjectsLocationsAgentsService) Patch(nameid string, googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent) *ProjectsLocationsAgentsPatchCall {
17206	c := &ProjectsLocationsAgentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17207	c.nameid = nameid
17208	c.googleclouddialogflowcxv3beta1agent = googleclouddialogflowcxv3beta1agent
17209	return c
17210}
17211
17212// UpdateMask sets the optional parameter "updateMask": The mask to
17213// control which fields get updated. If the mask is not present, all
17214// fields will be updated.
17215func (c *ProjectsLocationsAgentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsPatchCall {
17216	c.urlParams_.Set("updateMask", updateMask)
17217	return c
17218}
17219
17220// Fields allows partial responses to be retrieved. See
17221// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17222// for more information.
17223func (c *ProjectsLocationsAgentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPatchCall {
17224	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17225	return c
17226}
17227
17228// Context sets the context to be used in this call's Do method. Any
17229// pending HTTP request will be aborted if the provided context is
17230// canceled.
17231func (c *ProjectsLocationsAgentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsPatchCall {
17232	c.ctx_ = ctx
17233	return c
17234}
17235
17236// Header returns an http.Header that can be modified by the caller to
17237// add HTTP headers to the request.
17238func (c *ProjectsLocationsAgentsPatchCall) Header() http.Header {
17239	if c.header_ == nil {
17240		c.header_ = make(http.Header)
17241	}
17242	return c.header_
17243}
17244
17245func (c *ProjectsLocationsAgentsPatchCall) doRequest(alt string) (*http.Response, error) {
17246	reqHeaders := make(http.Header)
17247	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17248	for k, v := range c.header_ {
17249		reqHeaders[k] = v
17250	}
17251	reqHeaders.Set("User-Agent", c.s.userAgent())
17252	var body io.Reader = nil
17253	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1agent)
17254	if err != nil {
17255		return nil, err
17256	}
17257	reqHeaders.Set("Content-Type", "application/json")
17258	c.urlParams_.Set("alt", alt)
17259	c.urlParams_.Set("prettyPrint", "false")
17260	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
17261	urls += "?" + c.urlParams_.Encode()
17262	req, err := http.NewRequest("PATCH", urls, body)
17263	if err != nil {
17264		return nil, err
17265	}
17266	req.Header = reqHeaders
17267	googleapi.Expand(req.URL, map[string]string{
17268		"name": c.nameid,
17269	})
17270	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17271}
17272
17273// Do executes the "dialogflow.projects.locations.agents.patch" call.
17274// Exactly one of *GoogleCloudDialogflowCxV3beta1Agent or error will be
17275// non-nil. Any non-2xx status code is an error. Response headers are in
17276// either *GoogleCloudDialogflowCxV3beta1Agent.ServerResponse.Header or
17277// (if a response was returned at all) in
17278// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17279// whether the returned error was because http.StatusNotModified was
17280// returned.
17281func (c *ProjectsLocationsAgentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
17282	gensupport.SetOptions(c.urlParams_, opts...)
17283	res, err := c.doRequest("json")
17284	if res != nil && res.StatusCode == http.StatusNotModified {
17285		if res.Body != nil {
17286			res.Body.Close()
17287		}
17288		return nil, &googleapi.Error{
17289			Code:   res.StatusCode,
17290			Header: res.Header,
17291		}
17292	}
17293	if err != nil {
17294		return nil, err
17295	}
17296	defer googleapi.CloseBody(res)
17297	if err := googleapi.CheckResponse(res); err != nil {
17298		return nil, err
17299	}
17300	ret := &GoogleCloudDialogflowCxV3beta1Agent{
17301		ServerResponse: googleapi.ServerResponse{
17302			Header:         res.Header,
17303			HTTPStatusCode: res.StatusCode,
17304		},
17305	}
17306	target := &ret
17307	if err := gensupport.DecodeResponse(target, res); err != nil {
17308		return nil, err
17309	}
17310	return ret, nil
17311	// {
17312	//   "description": "Updates the specified agent.",
17313	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}",
17314	//   "httpMethod": "PATCH",
17315	//   "id": "dialogflow.projects.locations.agents.patch",
17316	//   "parameterOrder": [
17317	//     "name"
17318	//   ],
17319	//   "parameters": {
17320	//     "name": {
17321	//       "description": "The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.",
17322	//       "location": "path",
17323	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
17324	//       "required": true,
17325	//       "type": "string"
17326	//     },
17327	//     "updateMask": {
17328	//       "description": "The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
17329	//       "format": "google-fieldmask",
17330	//       "location": "query",
17331	//       "type": "string"
17332	//     }
17333	//   },
17334	//   "path": "v3beta1/{+name}",
17335	//   "request": {
17336	//     "$ref": "GoogleCloudDialogflowCxV3beta1Agent"
17337	//   },
17338	//   "response": {
17339	//     "$ref": "GoogleCloudDialogflowCxV3beta1Agent"
17340	//   },
17341	//   "scopes": [
17342	//     "https://www.googleapis.com/auth/cloud-platform",
17343	//     "https://www.googleapis.com/auth/dialogflow"
17344	//   ]
17345	// }
17346
17347}
17348
17349// method id "dialogflow.projects.locations.agents.restore":
17350
17351type ProjectsLocationsAgentsRestoreCall struct {
17352	s                                                 *Service
17353	name                                              string
17354	googleclouddialogflowcxv3beta1restoreagentrequest *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest
17355	urlParams_                                        gensupport.URLParams
17356	ctx_                                              context.Context
17357	header_                                           http.Header
17358}
17359
17360// Restore: Restores the specified agent from a binary file. Replaces
17361// the current agent with a new one. Note that all existing resources in
17362// agent (e.g. intents, entity types, flows) will be removed.
17363func (r *ProjectsLocationsAgentsService) Restore(name string, googleclouddialogflowcxv3beta1restoreagentrequest *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest) *ProjectsLocationsAgentsRestoreCall {
17364	c := &ProjectsLocationsAgentsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17365	c.name = name
17366	c.googleclouddialogflowcxv3beta1restoreagentrequest = googleclouddialogflowcxv3beta1restoreagentrequest
17367	return c
17368}
17369
17370// Fields allows partial responses to be retrieved. See
17371// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17372// for more information.
17373func (c *ProjectsLocationsAgentsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsRestoreCall {
17374	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17375	return c
17376}
17377
17378// Context sets the context to be used in this call's Do method. Any
17379// pending HTTP request will be aborted if the provided context is
17380// canceled.
17381func (c *ProjectsLocationsAgentsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentsRestoreCall {
17382	c.ctx_ = ctx
17383	return c
17384}
17385
17386// Header returns an http.Header that can be modified by the caller to
17387// add HTTP headers to the request.
17388func (c *ProjectsLocationsAgentsRestoreCall) Header() http.Header {
17389	if c.header_ == nil {
17390		c.header_ = make(http.Header)
17391	}
17392	return c.header_
17393}
17394
17395func (c *ProjectsLocationsAgentsRestoreCall) doRequest(alt string) (*http.Response, error) {
17396	reqHeaders := make(http.Header)
17397	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17398	for k, v := range c.header_ {
17399		reqHeaders[k] = v
17400	}
17401	reqHeaders.Set("User-Agent", c.s.userAgent())
17402	var body io.Reader = nil
17403	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1restoreagentrequest)
17404	if err != nil {
17405		return nil, err
17406	}
17407	reqHeaders.Set("Content-Type", "application/json")
17408	c.urlParams_.Set("alt", alt)
17409	c.urlParams_.Set("prettyPrint", "false")
17410	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:restore")
17411	urls += "?" + c.urlParams_.Encode()
17412	req, err := http.NewRequest("POST", urls, body)
17413	if err != nil {
17414		return nil, err
17415	}
17416	req.Header = reqHeaders
17417	googleapi.Expand(req.URL, map[string]string{
17418		"name": c.name,
17419	})
17420	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17421}
17422
17423// Do executes the "dialogflow.projects.locations.agents.restore" call.
17424// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
17425// Any non-2xx status code is an error. Response headers are in either
17426// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
17427// was returned at all) in error.(*googleapi.Error).Header. Use
17428// googleapi.IsNotModified to check whether the returned error was
17429// because http.StatusNotModified was returned.
17430func (c *ProjectsLocationsAgentsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17431	gensupport.SetOptions(c.urlParams_, opts...)
17432	res, err := c.doRequest("json")
17433	if res != nil && res.StatusCode == http.StatusNotModified {
17434		if res.Body != nil {
17435			res.Body.Close()
17436		}
17437		return nil, &googleapi.Error{
17438			Code:   res.StatusCode,
17439			Header: res.Header,
17440		}
17441	}
17442	if err != nil {
17443		return nil, err
17444	}
17445	defer googleapi.CloseBody(res)
17446	if err := googleapi.CheckResponse(res); err != nil {
17447		return nil, err
17448	}
17449	ret := &GoogleLongrunningOperation{
17450		ServerResponse: googleapi.ServerResponse{
17451			Header:         res.Header,
17452			HTTPStatusCode: res.StatusCode,
17453		},
17454	}
17455	target := &ret
17456	if err := gensupport.DecodeResponse(target, res); err != nil {
17457		return nil, err
17458	}
17459	return ret, nil
17460	// {
17461	//   "description": "Restores the specified agent from a binary file. Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed.",
17462	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}:restore",
17463	//   "httpMethod": "POST",
17464	//   "id": "dialogflow.projects.locations.agents.restore",
17465	//   "parameterOrder": [
17466	//     "name"
17467	//   ],
17468	//   "parameters": {
17469	//     "name": {
17470	//       "description": "Required. The name of the agent to restore into. Format: `projects//locations//agents/`.",
17471	//       "location": "path",
17472	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
17473	//       "required": true,
17474	//       "type": "string"
17475	//     }
17476	//   },
17477	//   "path": "v3beta1/{+name}:restore",
17478	//   "request": {
17479	//     "$ref": "GoogleCloudDialogflowCxV3beta1RestoreAgentRequest"
17480	//   },
17481	//   "response": {
17482	//     "$ref": "GoogleLongrunningOperation"
17483	//   },
17484	//   "scopes": [
17485	//     "https://www.googleapis.com/auth/cloud-platform",
17486	//     "https://www.googleapis.com/auth/dialogflow"
17487	//   ]
17488	// }
17489
17490}
17491
17492// method id "dialogflow.projects.locations.agents.validate":
17493
17494type ProjectsLocationsAgentsValidateCall struct {
17495	s                                                  *Service
17496	name                                               string
17497	googleclouddialogflowcxv3beta1validateagentrequest *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest
17498	urlParams_                                         gensupport.URLParams
17499	ctx_                                               context.Context
17500	header_                                            http.Header
17501}
17502
17503// Validate: Validates the specified agent and creates or updates
17504// validation results. The agent in draft version is validated. Please
17505// call this API after the training is completed to get the complete
17506// validation results.
17507func (r *ProjectsLocationsAgentsService) Validate(name string, googleclouddialogflowcxv3beta1validateagentrequest *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest) *ProjectsLocationsAgentsValidateCall {
17508	c := &ProjectsLocationsAgentsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17509	c.name = name
17510	c.googleclouddialogflowcxv3beta1validateagentrequest = googleclouddialogflowcxv3beta1validateagentrequest
17511	return c
17512}
17513
17514// Fields allows partial responses to be retrieved. See
17515// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17516// for more information.
17517func (c *ProjectsLocationsAgentsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsValidateCall {
17518	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17519	return c
17520}
17521
17522// Context sets the context to be used in this call's Do method. Any
17523// pending HTTP request will be aborted if the provided context is
17524// canceled.
17525func (c *ProjectsLocationsAgentsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsValidateCall {
17526	c.ctx_ = ctx
17527	return c
17528}
17529
17530// Header returns an http.Header that can be modified by the caller to
17531// add HTTP headers to the request.
17532func (c *ProjectsLocationsAgentsValidateCall) Header() http.Header {
17533	if c.header_ == nil {
17534		c.header_ = make(http.Header)
17535	}
17536	return c.header_
17537}
17538
17539func (c *ProjectsLocationsAgentsValidateCall) doRequest(alt string) (*http.Response, error) {
17540	reqHeaders := make(http.Header)
17541	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17542	for k, v := range c.header_ {
17543		reqHeaders[k] = v
17544	}
17545	reqHeaders.Set("User-Agent", c.s.userAgent())
17546	var body io.Reader = nil
17547	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1validateagentrequest)
17548	if err != nil {
17549		return nil, err
17550	}
17551	reqHeaders.Set("Content-Type", "application/json")
17552	c.urlParams_.Set("alt", alt)
17553	c.urlParams_.Set("prettyPrint", "false")
17554	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:validate")
17555	urls += "?" + c.urlParams_.Encode()
17556	req, err := http.NewRequest("POST", urls, body)
17557	if err != nil {
17558		return nil, err
17559	}
17560	req.Header = reqHeaders
17561	googleapi.Expand(req.URL, map[string]string{
17562		"name": c.name,
17563	})
17564	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17565}
17566
17567// Do executes the "dialogflow.projects.locations.agents.validate" call.
17568// Exactly one of *GoogleCloudDialogflowCxV3beta1AgentValidationResult
17569// or error will be non-nil. Any non-2xx status code is an error.
17570// Response headers are in either
17571// *GoogleCloudDialogflowCxV3beta1AgentValidationResult.ServerResponse.He
17572// ader or (if a response was returned at all) in
17573// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17574// whether the returned error was because http.StatusNotModified was
17575// returned.
17576func (c *ProjectsLocationsAgentsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AgentValidationResult, error) {
17577	gensupport.SetOptions(c.urlParams_, opts...)
17578	res, err := c.doRequest("json")
17579	if res != nil && res.StatusCode == http.StatusNotModified {
17580		if res.Body != nil {
17581			res.Body.Close()
17582		}
17583		return nil, &googleapi.Error{
17584			Code:   res.StatusCode,
17585			Header: res.Header,
17586		}
17587	}
17588	if err != nil {
17589		return nil, err
17590	}
17591	defer googleapi.CloseBody(res)
17592	if err := googleapi.CheckResponse(res); err != nil {
17593		return nil, err
17594	}
17595	ret := &GoogleCloudDialogflowCxV3beta1AgentValidationResult{
17596		ServerResponse: googleapi.ServerResponse{
17597			Header:         res.Header,
17598			HTTPStatusCode: res.StatusCode,
17599		},
17600	}
17601	target := &ret
17602	if err := gensupport.DecodeResponse(target, res); err != nil {
17603		return nil, err
17604	}
17605	return ret, nil
17606	// {
17607	//   "description": "Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.",
17608	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}:validate",
17609	//   "httpMethod": "POST",
17610	//   "id": "dialogflow.projects.locations.agents.validate",
17611	//   "parameterOrder": [
17612	//     "name"
17613	//   ],
17614	//   "parameters": {
17615	//     "name": {
17616	//       "description": "Required. The agent to validate. Format: `projects//locations//agents/`.",
17617	//       "location": "path",
17618	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
17619	//       "required": true,
17620	//       "type": "string"
17621	//     }
17622	//   },
17623	//   "path": "v3beta1/{+name}:validate",
17624	//   "request": {
17625	//     "$ref": "GoogleCloudDialogflowCxV3beta1ValidateAgentRequest"
17626	//   },
17627	//   "response": {
17628	//     "$ref": "GoogleCloudDialogflowCxV3beta1AgentValidationResult"
17629	//   },
17630	//   "scopes": [
17631	//     "https://www.googleapis.com/auth/cloud-platform",
17632	//     "https://www.googleapis.com/auth/dialogflow"
17633	//   ]
17634	// }
17635
17636}
17637
17638// method id "dialogflow.projects.locations.agents.entityTypes.create":
17639
17640type ProjectsLocationsAgentsEntityTypesCreateCall struct {
17641	s                                        *Service
17642	parent                                   string
17643	googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType
17644	urlParams_                               gensupport.URLParams
17645	ctx_                                     context.Context
17646	header_                                  http.Header
17647}
17648
17649// Create: Creates an entity type in the specified agent.
17650func (r *ProjectsLocationsAgentsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType) *ProjectsLocationsAgentsEntityTypesCreateCall {
17651	c := &ProjectsLocationsAgentsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17652	c.parent = parent
17653	c.googleclouddialogflowcxv3beta1entitytype = googleclouddialogflowcxv3beta1entitytype
17654	return c
17655}
17656
17657// LanguageCode sets the optional parameter "languageCode": The language
17658// of the following fields in `entity_type`: *
17659// `EntityType.entities.value` * `EntityType.entities.synonyms` *
17660// `EntityType.excluded_phrases.value` If not specified, the agent's
17661// default language is used. Many languages
17662// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
17663// supported. Note: languages must be enabled in the agent before they
17664// can be used.
17665func (c *ProjectsLocationsAgentsEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesCreateCall {
17666	c.urlParams_.Set("languageCode", languageCode)
17667	return c
17668}
17669
17670// Fields allows partial responses to be retrieved. See
17671// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17672// for more information.
17673func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesCreateCall {
17674	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17675	return c
17676}
17677
17678// Context sets the context to be used in this call's Do method. Any
17679// pending HTTP request will be aborted if the provided context is
17680// canceled.
17681func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesCreateCall {
17682	c.ctx_ = ctx
17683	return c
17684}
17685
17686// Header returns an http.Header that can be modified by the caller to
17687// add HTTP headers to the request.
17688func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Header() http.Header {
17689	if c.header_ == nil {
17690		c.header_ = make(http.Header)
17691	}
17692	return c.header_
17693}
17694
17695func (c *ProjectsLocationsAgentsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
17696	reqHeaders := make(http.Header)
17697	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17698	for k, v := range c.header_ {
17699		reqHeaders[k] = v
17700	}
17701	reqHeaders.Set("User-Agent", c.s.userAgent())
17702	var body io.Reader = nil
17703	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1entitytype)
17704	if err != nil {
17705		return nil, err
17706	}
17707	reqHeaders.Set("Content-Type", "application/json")
17708	c.urlParams_.Set("alt", alt)
17709	c.urlParams_.Set("prettyPrint", "false")
17710	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
17711	urls += "?" + c.urlParams_.Encode()
17712	req, err := http.NewRequest("POST", urls, body)
17713	if err != nil {
17714		return nil, err
17715	}
17716	req.Header = reqHeaders
17717	googleapi.Expand(req.URL, map[string]string{
17718		"parent": c.parent,
17719	})
17720	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17721}
17722
17723// Do executes the "dialogflow.projects.locations.agents.entityTypes.create" call.
17724// Exactly one of *GoogleCloudDialogflowCxV3beta1EntityType or error
17725// will be non-nil. Any non-2xx status code is an error. Response
17726// headers are in either
17727// *GoogleCloudDialogflowCxV3beta1EntityType.ServerResponse.Header or
17728// (if a response was returned at all) in
17729// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17730// whether the returned error was because http.StatusNotModified was
17731// returned.
17732func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
17733	gensupport.SetOptions(c.urlParams_, opts...)
17734	res, err := c.doRequest("json")
17735	if res != nil && res.StatusCode == http.StatusNotModified {
17736		if res.Body != nil {
17737			res.Body.Close()
17738		}
17739		return nil, &googleapi.Error{
17740			Code:   res.StatusCode,
17741			Header: res.Header,
17742		}
17743	}
17744	if err != nil {
17745		return nil, err
17746	}
17747	defer googleapi.CloseBody(res)
17748	if err := googleapi.CheckResponse(res); err != nil {
17749		return nil, err
17750	}
17751	ret := &GoogleCloudDialogflowCxV3beta1EntityType{
17752		ServerResponse: googleapi.ServerResponse{
17753			Header:         res.Header,
17754			HTTPStatusCode: res.StatusCode,
17755		},
17756	}
17757	target := &ret
17758	if err := gensupport.DecodeResponse(target, res); err != nil {
17759		return nil, err
17760	}
17761	return ret, nil
17762	// {
17763	//   "description": "Creates an entity type in the specified agent.",
17764	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes",
17765	//   "httpMethod": "POST",
17766	//   "id": "dialogflow.projects.locations.agents.entityTypes.create",
17767	//   "parameterOrder": [
17768	//     "parent"
17769	//   ],
17770	//   "parameters": {
17771	//     "languageCode": {
17772	//       "description": "The language of the following fields in `entity_type`: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
17773	//       "location": "query",
17774	//       "type": "string"
17775	//     },
17776	//     "parent": {
17777	//       "description": "Required. The agent to create a entity type for. Format: `projects//locations//agents/`.",
17778	//       "location": "path",
17779	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
17780	//       "required": true,
17781	//       "type": "string"
17782	//     }
17783	//   },
17784	//   "path": "v3beta1/{+parent}/entityTypes",
17785	//   "request": {
17786	//     "$ref": "GoogleCloudDialogflowCxV3beta1EntityType"
17787	//   },
17788	//   "response": {
17789	//     "$ref": "GoogleCloudDialogflowCxV3beta1EntityType"
17790	//   },
17791	//   "scopes": [
17792	//     "https://www.googleapis.com/auth/cloud-platform",
17793	//     "https://www.googleapis.com/auth/dialogflow"
17794	//   ]
17795	// }
17796
17797}
17798
17799// method id "dialogflow.projects.locations.agents.entityTypes.delete":
17800
17801type ProjectsLocationsAgentsEntityTypesDeleteCall struct {
17802	s          *Service
17803	name       string
17804	urlParams_ gensupport.URLParams
17805	ctx_       context.Context
17806	header_    http.Header
17807}
17808
17809// Delete: Deletes the specified entity type.
17810func (r *ProjectsLocationsAgentsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEntityTypesDeleteCall {
17811	c := &ProjectsLocationsAgentsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17812	c.name = name
17813	return c
17814}
17815
17816// Force sets the optional parameter "force": This field has no effect
17817// for entity type not being used. For entity types that are used by
17818// intents or pages: * If `force` is set to false, an error will be
17819// returned with message indicating the referencing resources. * If
17820// `force` is set to true, Dialogflow will remove the entity type, as
17821// well as any references to the entity type (i.e. Page parameter of the
17822// entity type will be changed to '@sys.any' and intent parameter of the
17823// entity type will be removed).
17824func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsAgentsEntityTypesDeleteCall {
17825	c.urlParams_.Set("force", fmt.Sprint(force))
17826	return c
17827}
17828
17829// Fields allows partial responses to be retrieved. See
17830// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17831// for more information.
17832func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesDeleteCall {
17833	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17834	return c
17835}
17836
17837// Context sets the context to be used in this call's Do method. Any
17838// pending HTTP request will be aborted if the provided context is
17839// canceled.
17840func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesDeleteCall {
17841	c.ctx_ = ctx
17842	return c
17843}
17844
17845// Header returns an http.Header that can be modified by the caller to
17846// add HTTP headers to the request.
17847func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Header() http.Header {
17848	if c.header_ == nil {
17849		c.header_ = make(http.Header)
17850	}
17851	return c.header_
17852}
17853
17854func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
17855	reqHeaders := make(http.Header)
17856	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
17857	for k, v := range c.header_ {
17858		reqHeaders[k] = v
17859	}
17860	reqHeaders.Set("User-Agent", c.s.userAgent())
17861	var body io.Reader = nil
17862	c.urlParams_.Set("alt", alt)
17863	c.urlParams_.Set("prettyPrint", "false")
17864	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
17865	urls += "?" + c.urlParams_.Encode()
17866	req, err := http.NewRequest("DELETE", urls, body)
17867	if err != nil {
17868		return nil, err
17869	}
17870	req.Header = reqHeaders
17871	googleapi.Expand(req.URL, map[string]string{
17872		"name": c.name,
17873	})
17874	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17875}
17876
17877// Do executes the "dialogflow.projects.locations.agents.entityTypes.delete" call.
17878// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
17879// non-2xx status code is an error. Response headers are in either
17880// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
17881// returned at all) in error.(*googleapi.Error).Header. Use
17882// googleapi.IsNotModified to check whether the returned error was
17883// because http.StatusNotModified was returned.
17884func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
17885	gensupport.SetOptions(c.urlParams_, opts...)
17886	res, err := c.doRequest("json")
17887	if res != nil && res.StatusCode == http.StatusNotModified {
17888		if res.Body != nil {
17889			res.Body.Close()
17890		}
17891		return nil, &googleapi.Error{
17892			Code:   res.StatusCode,
17893			Header: res.Header,
17894		}
17895	}
17896	if err != nil {
17897		return nil, err
17898	}
17899	defer googleapi.CloseBody(res)
17900	if err := googleapi.CheckResponse(res); err != nil {
17901		return nil, err
17902	}
17903	ret := &GoogleProtobufEmpty{
17904		ServerResponse: googleapi.ServerResponse{
17905			Header:         res.Header,
17906			HTTPStatusCode: res.StatusCode,
17907		},
17908	}
17909	target := &ret
17910	if err := gensupport.DecodeResponse(target, res); err != nil {
17911		return nil, err
17912	}
17913	return ret, nil
17914	// {
17915	//   "description": "Deletes the specified entity type.",
17916	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes/{entityTypesId}",
17917	//   "httpMethod": "DELETE",
17918	//   "id": "dialogflow.projects.locations.agents.entityTypes.delete",
17919	//   "parameterOrder": [
17920	//     "name"
17921	//   ],
17922	//   "parameters": {
17923	//     "force": {
17924	//       "description": "This field has no effect for entity type not being used. For entity types that are used by intents or pages: * If `force` is set to false, an error will be returned with message indicating the referencing resources. * If `force` is set to true, Dialogflow will remove the entity type, as well as any references to the entity type (i.e. Page parameter of the entity type will be changed to '@sys.any' and intent parameter of the entity type will be removed).",
17925	//       "location": "query",
17926	//       "type": "boolean"
17927	//     },
17928	//     "name": {
17929	//       "description": "Required. The name of the entity type to delete. Format: `projects//locations//agents//entityTypes/`.",
17930	//       "location": "path",
17931	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/entityTypes/[^/]+$",
17932	//       "required": true,
17933	//       "type": "string"
17934	//     }
17935	//   },
17936	//   "path": "v3beta1/{+name}",
17937	//   "response": {
17938	//     "$ref": "GoogleProtobufEmpty"
17939	//   },
17940	//   "scopes": [
17941	//     "https://www.googleapis.com/auth/cloud-platform",
17942	//     "https://www.googleapis.com/auth/dialogflow"
17943	//   ]
17944	// }
17945
17946}
17947
17948// method id "dialogflow.projects.locations.agents.entityTypes.get":
17949
17950type ProjectsLocationsAgentsEntityTypesGetCall struct {
17951	s            *Service
17952	name         string
17953	urlParams_   gensupport.URLParams
17954	ifNoneMatch_ string
17955	ctx_         context.Context
17956	header_      http.Header
17957}
17958
17959// Get: Retrieves the specified entity type.
17960func (r *ProjectsLocationsAgentsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEntityTypesGetCall {
17961	c := &ProjectsLocationsAgentsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17962	c.name = name
17963	return c
17964}
17965
17966// LanguageCode sets the optional parameter "languageCode": The language
17967// to retrieve the entity type for. The following fields are language
17968// dependent: * `EntityType.entities.value` *
17969// `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
17970// If not specified, the agent's default language is used. Many
17971// languages
17972// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
17973// supported. Note: languages must be enabled in the agent before they
17974// can be used.
17975func (c *ProjectsLocationsAgentsEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesGetCall {
17976	c.urlParams_.Set("languageCode", languageCode)
17977	return c
17978}
17979
17980// Fields allows partial responses to be retrieved. See
17981// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17982// for more information.
17983func (c *ProjectsLocationsAgentsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesGetCall {
17984	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17985	return c
17986}
17987
17988// IfNoneMatch sets the optional parameter which makes the operation
17989// fail if the object's ETag matches the given value. This is useful for
17990// getting updates only after the object has changed since the last
17991// request. Use googleapi.IsNotModified to check whether the response
17992// error from Do is the result of In-None-Match.
17993func (c *ProjectsLocationsAgentsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesGetCall {
17994	c.ifNoneMatch_ = entityTag
17995	return c
17996}
17997
17998// Context sets the context to be used in this call's Do method. Any
17999// pending HTTP request will be aborted if the provided context is
18000// canceled.
18001func (c *ProjectsLocationsAgentsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesGetCall {
18002	c.ctx_ = ctx
18003	return c
18004}
18005
18006// Header returns an http.Header that can be modified by the caller to
18007// add HTTP headers to the request.
18008func (c *ProjectsLocationsAgentsEntityTypesGetCall) Header() http.Header {
18009	if c.header_ == nil {
18010		c.header_ = make(http.Header)
18011	}
18012	return c.header_
18013}
18014
18015func (c *ProjectsLocationsAgentsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
18016	reqHeaders := make(http.Header)
18017	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18018	for k, v := range c.header_ {
18019		reqHeaders[k] = v
18020	}
18021	reqHeaders.Set("User-Agent", c.s.userAgent())
18022	if c.ifNoneMatch_ != "" {
18023		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18024	}
18025	var body io.Reader = nil
18026	c.urlParams_.Set("alt", alt)
18027	c.urlParams_.Set("prettyPrint", "false")
18028	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
18029	urls += "?" + c.urlParams_.Encode()
18030	req, err := http.NewRequest("GET", urls, body)
18031	if err != nil {
18032		return nil, err
18033	}
18034	req.Header = reqHeaders
18035	googleapi.Expand(req.URL, map[string]string{
18036		"name": c.name,
18037	})
18038	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18039}
18040
18041// Do executes the "dialogflow.projects.locations.agents.entityTypes.get" call.
18042// Exactly one of *GoogleCloudDialogflowCxV3beta1EntityType or error
18043// will be non-nil. Any non-2xx status code is an error. Response
18044// headers are in either
18045// *GoogleCloudDialogflowCxV3beta1EntityType.ServerResponse.Header or
18046// (if a response was returned at all) in
18047// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18048// whether the returned error was because http.StatusNotModified was
18049// returned.
18050func (c *ProjectsLocationsAgentsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
18051	gensupport.SetOptions(c.urlParams_, opts...)
18052	res, err := c.doRequest("json")
18053	if res != nil && res.StatusCode == http.StatusNotModified {
18054		if res.Body != nil {
18055			res.Body.Close()
18056		}
18057		return nil, &googleapi.Error{
18058			Code:   res.StatusCode,
18059			Header: res.Header,
18060		}
18061	}
18062	if err != nil {
18063		return nil, err
18064	}
18065	defer googleapi.CloseBody(res)
18066	if err := googleapi.CheckResponse(res); err != nil {
18067		return nil, err
18068	}
18069	ret := &GoogleCloudDialogflowCxV3beta1EntityType{
18070		ServerResponse: googleapi.ServerResponse{
18071			Header:         res.Header,
18072			HTTPStatusCode: res.StatusCode,
18073		},
18074	}
18075	target := &ret
18076	if err := gensupport.DecodeResponse(target, res); err != nil {
18077		return nil, err
18078	}
18079	return ret, nil
18080	// {
18081	//   "description": "Retrieves the specified entity type.",
18082	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes/{entityTypesId}",
18083	//   "httpMethod": "GET",
18084	//   "id": "dialogflow.projects.locations.agents.entityTypes.get",
18085	//   "parameterOrder": [
18086	//     "name"
18087	//   ],
18088	//   "parameters": {
18089	//     "languageCode": {
18090	//       "description": "The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
18091	//       "location": "query",
18092	//       "type": "string"
18093	//     },
18094	//     "name": {
18095	//       "description": "Required. The name of the entity type. Format: `projects//locations//agents//entityTypes/`.",
18096	//       "location": "path",
18097	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/entityTypes/[^/]+$",
18098	//       "required": true,
18099	//       "type": "string"
18100	//     }
18101	//   },
18102	//   "path": "v3beta1/{+name}",
18103	//   "response": {
18104	//     "$ref": "GoogleCloudDialogflowCxV3beta1EntityType"
18105	//   },
18106	//   "scopes": [
18107	//     "https://www.googleapis.com/auth/cloud-platform",
18108	//     "https://www.googleapis.com/auth/dialogflow"
18109	//   ]
18110	// }
18111
18112}
18113
18114// method id "dialogflow.projects.locations.agents.entityTypes.list":
18115
18116type ProjectsLocationsAgentsEntityTypesListCall struct {
18117	s            *Service
18118	parent       string
18119	urlParams_   gensupport.URLParams
18120	ifNoneMatch_ string
18121	ctx_         context.Context
18122	header_      http.Header
18123}
18124
18125// List: Returns the list of all entity types in the specified agent.
18126func (r *ProjectsLocationsAgentsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEntityTypesListCall {
18127	c := &ProjectsLocationsAgentsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18128	c.parent = parent
18129	return c
18130}
18131
18132// LanguageCode sets the optional parameter "languageCode": The language
18133// to list entity types for. The following fields are language
18134// dependent: * `EntityType.entities.value` *
18135// `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
18136// If not specified, the agent's default language is used. Many
18137// languages
18138// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
18139// supported. Note: languages must be enabled in the agent before they
18140// can be used.
18141func (c *ProjectsLocationsAgentsEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesListCall {
18142	c.urlParams_.Set("languageCode", languageCode)
18143	return c
18144}
18145
18146// PageSize sets the optional parameter "pageSize": The maximum number
18147// of items to return in a single page. By default 100 and at most 1000.
18148func (c *ProjectsLocationsAgentsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEntityTypesListCall {
18149	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18150	return c
18151}
18152
18153// PageToken sets the optional parameter "pageToken": The
18154// next_page_token value returned from a previous list request.
18155func (c *ProjectsLocationsAgentsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEntityTypesListCall {
18156	c.urlParams_.Set("pageToken", pageToken)
18157	return c
18158}
18159
18160// Fields allows partial responses to be retrieved. See
18161// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18162// for more information.
18163func (c *ProjectsLocationsAgentsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesListCall {
18164	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18165	return c
18166}
18167
18168// IfNoneMatch sets the optional parameter which makes the operation
18169// fail if the object's ETag matches the given value. This is useful for
18170// getting updates only after the object has changed since the last
18171// request. Use googleapi.IsNotModified to check whether the response
18172// error from Do is the result of In-None-Match.
18173func (c *ProjectsLocationsAgentsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesListCall {
18174	c.ifNoneMatch_ = entityTag
18175	return c
18176}
18177
18178// Context sets the context to be used in this call's Do method. Any
18179// pending HTTP request will be aborted if the provided context is
18180// canceled.
18181func (c *ProjectsLocationsAgentsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesListCall {
18182	c.ctx_ = ctx
18183	return c
18184}
18185
18186// Header returns an http.Header that can be modified by the caller to
18187// add HTTP headers to the request.
18188func (c *ProjectsLocationsAgentsEntityTypesListCall) Header() http.Header {
18189	if c.header_ == nil {
18190		c.header_ = make(http.Header)
18191	}
18192	return c.header_
18193}
18194
18195func (c *ProjectsLocationsAgentsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
18196	reqHeaders := make(http.Header)
18197	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18198	for k, v := range c.header_ {
18199		reqHeaders[k] = v
18200	}
18201	reqHeaders.Set("User-Agent", c.s.userAgent())
18202	if c.ifNoneMatch_ != "" {
18203		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18204	}
18205	var body io.Reader = nil
18206	c.urlParams_.Set("alt", alt)
18207	c.urlParams_.Set("prettyPrint", "false")
18208	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
18209	urls += "?" + c.urlParams_.Encode()
18210	req, err := http.NewRequest("GET", urls, body)
18211	if err != nil {
18212		return nil, err
18213	}
18214	req.Header = reqHeaders
18215	googleapi.Expand(req.URL, map[string]string{
18216		"parent": c.parent,
18217	})
18218	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18219}
18220
18221// Do executes the "dialogflow.projects.locations.agents.entityTypes.list" call.
18222// Exactly one of *GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse
18223// or error will be non-nil. Any non-2xx status code is an error.
18224// Response headers are in either
18225// *GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse.ServerResponse.
18226// Header or (if a response was returned at all) in
18227// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18228// whether the returned error was because http.StatusNotModified was
18229// returned.
18230func (c *ProjectsLocationsAgentsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse, error) {
18231	gensupport.SetOptions(c.urlParams_, opts...)
18232	res, err := c.doRequest("json")
18233	if res != nil && res.StatusCode == http.StatusNotModified {
18234		if res.Body != nil {
18235			res.Body.Close()
18236		}
18237		return nil, &googleapi.Error{
18238			Code:   res.StatusCode,
18239			Header: res.Header,
18240		}
18241	}
18242	if err != nil {
18243		return nil, err
18244	}
18245	defer googleapi.CloseBody(res)
18246	if err := googleapi.CheckResponse(res); err != nil {
18247		return nil, err
18248	}
18249	ret := &GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse{
18250		ServerResponse: googleapi.ServerResponse{
18251			Header:         res.Header,
18252			HTTPStatusCode: res.StatusCode,
18253		},
18254	}
18255	target := &ret
18256	if err := gensupport.DecodeResponse(target, res); err != nil {
18257		return nil, err
18258	}
18259	return ret, nil
18260	// {
18261	//   "description": "Returns the list of all entity types in the specified agent.",
18262	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes",
18263	//   "httpMethod": "GET",
18264	//   "id": "dialogflow.projects.locations.agents.entityTypes.list",
18265	//   "parameterOrder": [
18266	//     "parent"
18267	//   ],
18268	//   "parameters": {
18269	//     "languageCode": {
18270	//       "description": "The language to list entity types for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
18271	//       "location": "query",
18272	//       "type": "string"
18273	//     },
18274	//     "pageSize": {
18275	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
18276	//       "format": "int32",
18277	//       "location": "query",
18278	//       "type": "integer"
18279	//     },
18280	//     "pageToken": {
18281	//       "description": "The next_page_token value returned from a previous list request.",
18282	//       "location": "query",
18283	//       "type": "string"
18284	//     },
18285	//     "parent": {
18286	//       "description": "Required. The agent to list all entity types for. Format: `projects//locations//agents/`.",
18287	//       "location": "path",
18288	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
18289	//       "required": true,
18290	//       "type": "string"
18291	//     }
18292	//   },
18293	//   "path": "v3beta1/{+parent}/entityTypes",
18294	//   "response": {
18295	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse"
18296	//   },
18297	//   "scopes": [
18298	//     "https://www.googleapis.com/auth/cloud-platform",
18299	//     "https://www.googleapis.com/auth/dialogflow"
18300	//   ]
18301	// }
18302
18303}
18304
18305// Pages invokes f for each page of results.
18306// A non-nil error returned from f will halt the iteration.
18307// The provided context supersedes any context provided to the Context method.
18308func (c *ProjectsLocationsAgentsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse) error) error {
18309	c.ctx_ = ctx
18310	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
18311	for {
18312		x, err := c.Do()
18313		if err != nil {
18314			return err
18315		}
18316		if err := f(x); err != nil {
18317			return err
18318		}
18319		if x.NextPageToken == "" {
18320			return nil
18321		}
18322		c.PageToken(x.NextPageToken)
18323	}
18324}
18325
18326// method id "dialogflow.projects.locations.agents.entityTypes.patch":
18327
18328type ProjectsLocationsAgentsEntityTypesPatchCall struct {
18329	s                                        *Service
18330	nameid                                   string
18331	googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType
18332	urlParams_                               gensupport.URLParams
18333	ctx_                                     context.Context
18334	header_                                  http.Header
18335}
18336
18337// Patch: Updates the specified entity type.
18338func (r *ProjectsLocationsAgentsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType) *ProjectsLocationsAgentsEntityTypesPatchCall {
18339	c := &ProjectsLocationsAgentsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18340	c.nameid = nameid
18341	c.googleclouddialogflowcxv3beta1entitytype = googleclouddialogflowcxv3beta1entitytype
18342	return c
18343}
18344
18345// LanguageCode sets the optional parameter "languageCode": The language
18346// of the following fields in `entity_type`: *
18347// `EntityType.entities.value` * `EntityType.entities.synonyms` *
18348// `EntityType.excluded_phrases.value` If not specified, the agent's
18349// default language is used. Many languages
18350// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
18351// supported. Note: languages must be enabled in the agent before they
18352// can be used.
18353func (c *ProjectsLocationsAgentsEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesPatchCall {
18354	c.urlParams_.Set("languageCode", languageCode)
18355	return c
18356}
18357
18358// UpdateMask sets the optional parameter "updateMask": The mask to
18359// control which fields get updated.
18360func (c *ProjectsLocationsAgentsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEntityTypesPatchCall {
18361	c.urlParams_.Set("updateMask", updateMask)
18362	return c
18363}
18364
18365// Fields allows partial responses to be retrieved. See
18366// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18367// for more information.
18368func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesPatchCall {
18369	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18370	return c
18371}
18372
18373// Context sets the context to be used in this call's Do method. Any
18374// pending HTTP request will be aborted if the provided context is
18375// canceled.
18376func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesPatchCall {
18377	c.ctx_ = ctx
18378	return c
18379}
18380
18381// Header returns an http.Header that can be modified by the caller to
18382// add HTTP headers to the request.
18383func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Header() http.Header {
18384	if c.header_ == nil {
18385		c.header_ = make(http.Header)
18386	}
18387	return c.header_
18388}
18389
18390func (c *ProjectsLocationsAgentsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
18391	reqHeaders := make(http.Header)
18392	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18393	for k, v := range c.header_ {
18394		reqHeaders[k] = v
18395	}
18396	reqHeaders.Set("User-Agent", c.s.userAgent())
18397	var body io.Reader = nil
18398	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1entitytype)
18399	if err != nil {
18400		return nil, err
18401	}
18402	reqHeaders.Set("Content-Type", "application/json")
18403	c.urlParams_.Set("alt", alt)
18404	c.urlParams_.Set("prettyPrint", "false")
18405	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
18406	urls += "?" + c.urlParams_.Encode()
18407	req, err := http.NewRequest("PATCH", urls, body)
18408	if err != nil {
18409		return nil, err
18410	}
18411	req.Header = reqHeaders
18412	googleapi.Expand(req.URL, map[string]string{
18413		"name": c.nameid,
18414	})
18415	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18416}
18417
18418// Do executes the "dialogflow.projects.locations.agents.entityTypes.patch" call.
18419// Exactly one of *GoogleCloudDialogflowCxV3beta1EntityType or error
18420// will be non-nil. Any non-2xx status code is an error. Response
18421// headers are in either
18422// *GoogleCloudDialogflowCxV3beta1EntityType.ServerResponse.Header or
18423// (if a response was returned at all) in
18424// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18425// whether the returned error was because http.StatusNotModified was
18426// returned.
18427func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
18428	gensupport.SetOptions(c.urlParams_, opts...)
18429	res, err := c.doRequest("json")
18430	if res != nil && res.StatusCode == http.StatusNotModified {
18431		if res.Body != nil {
18432			res.Body.Close()
18433		}
18434		return nil, &googleapi.Error{
18435			Code:   res.StatusCode,
18436			Header: res.Header,
18437		}
18438	}
18439	if err != nil {
18440		return nil, err
18441	}
18442	defer googleapi.CloseBody(res)
18443	if err := googleapi.CheckResponse(res); err != nil {
18444		return nil, err
18445	}
18446	ret := &GoogleCloudDialogflowCxV3beta1EntityType{
18447		ServerResponse: googleapi.ServerResponse{
18448			Header:         res.Header,
18449			HTTPStatusCode: res.StatusCode,
18450		},
18451	}
18452	target := &ret
18453	if err := gensupport.DecodeResponse(target, res); err != nil {
18454		return nil, err
18455	}
18456	return ret, nil
18457	// {
18458	//   "description": "Updates the specified entity type.",
18459	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes/{entityTypesId}",
18460	//   "httpMethod": "PATCH",
18461	//   "id": "dialogflow.projects.locations.agents.entityTypes.patch",
18462	//   "parameterOrder": [
18463	//     "name"
18464	//   ],
18465	//   "parameters": {
18466	//     "languageCode": {
18467	//       "description": "The language of the following fields in `entity_type`: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
18468	//       "location": "query",
18469	//       "type": "string"
18470	//     },
18471	//     "name": {
18472	//       "description": "The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType. Format: `projects//locations//agents//entityTypes/`.",
18473	//       "location": "path",
18474	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/entityTypes/[^/]+$",
18475	//       "required": true,
18476	//       "type": "string"
18477	//     },
18478	//     "updateMask": {
18479	//       "description": "The mask to control which fields get updated.",
18480	//       "format": "google-fieldmask",
18481	//       "location": "query",
18482	//       "type": "string"
18483	//     }
18484	//   },
18485	//   "path": "v3beta1/{+name}",
18486	//   "request": {
18487	//     "$ref": "GoogleCloudDialogflowCxV3beta1EntityType"
18488	//   },
18489	//   "response": {
18490	//     "$ref": "GoogleCloudDialogflowCxV3beta1EntityType"
18491	//   },
18492	//   "scopes": [
18493	//     "https://www.googleapis.com/auth/cloud-platform",
18494	//     "https://www.googleapis.com/auth/dialogflow"
18495	//   ]
18496	// }
18497
18498}
18499
18500// method id "dialogflow.projects.locations.agents.environments.create":
18501
18502type ProjectsLocationsAgentsEnvironmentsCreateCall struct {
18503	s                                         *Service
18504	parent                                    string
18505	googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment
18506	urlParams_                                gensupport.URLParams
18507	ctx_                                      context.Context
18508	header_                                   http.Header
18509}
18510
18511// Create: Creates an Environment in the specified Agent.
18512func (r *ProjectsLocationsAgentsEnvironmentsService) Create(parent string, googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment) *ProjectsLocationsAgentsEnvironmentsCreateCall {
18513	c := &ProjectsLocationsAgentsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18514	c.parent = parent
18515	c.googleclouddialogflowcxv3beta1environment = googleclouddialogflowcxv3beta1environment
18516	return c
18517}
18518
18519// Fields allows partial responses to be retrieved. See
18520// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18521// for more information.
18522func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsCreateCall {
18523	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18524	return c
18525}
18526
18527// Context sets the context to be used in this call's Do method. Any
18528// pending HTTP request will be aborted if the provided context is
18529// canceled.
18530func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsCreateCall {
18531	c.ctx_ = ctx
18532	return c
18533}
18534
18535// Header returns an http.Header that can be modified by the caller to
18536// add HTTP headers to the request.
18537func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Header() http.Header {
18538	if c.header_ == nil {
18539		c.header_ = make(http.Header)
18540	}
18541	return c.header_
18542}
18543
18544func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
18545	reqHeaders := make(http.Header)
18546	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18547	for k, v := range c.header_ {
18548		reqHeaders[k] = v
18549	}
18550	reqHeaders.Set("User-Agent", c.s.userAgent())
18551	var body io.Reader = nil
18552	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1environment)
18553	if err != nil {
18554		return nil, err
18555	}
18556	reqHeaders.Set("Content-Type", "application/json")
18557	c.urlParams_.Set("alt", alt)
18558	c.urlParams_.Set("prettyPrint", "false")
18559	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/environments")
18560	urls += "?" + c.urlParams_.Encode()
18561	req, err := http.NewRequest("POST", urls, body)
18562	if err != nil {
18563		return nil, err
18564	}
18565	req.Header = reqHeaders
18566	googleapi.Expand(req.URL, map[string]string{
18567		"parent": c.parent,
18568	})
18569	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18570}
18571
18572// Do executes the "dialogflow.projects.locations.agents.environments.create" call.
18573// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
18574// Any non-2xx status code is an error. Response headers are in either
18575// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
18576// was returned at all) in error.(*googleapi.Error).Header. Use
18577// googleapi.IsNotModified to check whether the returned error was
18578// because http.StatusNotModified was returned.
18579func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18580	gensupport.SetOptions(c.urlParams_, opts...)
18581	res, err := c.doRequest("json")
18582	if res != nil && res.StatusCode == http.StatusNotModified {
18583		if res.Body != nil {
18584			res.Body.Close()
18585		}
18586		return nil, &googleapi.Error{
18587			Code:   res.StatusCode,
18588			Header: res.Header,
18589		}
18590	}
18591	if err != nil {
18592		return nil, err
18593	}
18594	defer googleapi.CloseBody(res)
18595	if err := googleapi.CheckResponse(res); err != nil {
18596		return nil, err
18597	}
18598	ret := &GoogleLongrunningOperation{
18599		ServerResponse: googleapi.ServerResponse{
18600			Header:         res.Header,
18601			HTTPStatusCode: res.StatusCode,
18602		},
18603	}
18604	target := &ret
18605	if err := gensupport.DecodeResponse(target, res); err != nil {
18606		return nil, err
18607	}
18608	return ret, nil
18609	// {
18610	//   "description": "Creates an Environment in the specified Agent.",
18611	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments",
18612	//   "httpMethod": "POST",
18613	//   "id": "dialogflow.projects.locations.agents.environments.create",
18614	//   "parameterOrder": [
18615	//     "parent"
18616	//   ],
18617	//   "parameters": {
18618	//     "parent": {
18619	//       "description": "Required. The Agent to create an Environment for. Format: `projects//locations//agents/`.",
18620	//       "location": "path",
18621	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
18622	//       "required": true,
18623	//       "type": "string"
18624	//     }
18625	//   },
18626	//   "path": "v3beta1/{+parent}/environments",
18627	//   "request": {
18628	//     "$ref": "GoogleCloudDialogflowCxV3beta1Environment"
18629	//   },
18630	//   "response": {
18631	//     "$ref": "GoogleLongrunningOperation"
18632	//   },
18633	//   "scopes": [
18634	//     "https://www.googleapis.com/auth/cloud-platform",
18635	//     "https://www.googleapis.com/auth/dialogflow"
18636	//   ]
18637	// }
18638
18639}
18640
18641// method id "dialogflow.projects.locations.agents.environments.delete":
18642
18643type ProjectsLocationsAgentsEnvironmentsDeleteCall struct {
18644	s          *Service
18645	name       string
18646	urlParams_ gensupport.URLParams
18647	ctx_       context.Context
18648	header_    http.Header
18649}
18650
18651// Delete: Deletes the specified Environment.
18652func (r *ProjectsLocationsAgentsEnvironmentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
18653	c := &ProjectsLocationsAgentsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18654	c.name = name
18655	return c
18656}
18657
18658// Fields allows partial responses to be retrieved. See
18659// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18660// for more information.
18661func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
18662	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18663	return c
18664}
18665
18666// Context sets the context to be used in this call's Do method. Any
18667// pending HTTP request will be aborted if the provided context is
18668// canceled.
18669func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
18670	c.ctx_ = ctx
18671	return c
18672}
18673
18674// Header returns an http.Header that can be modified by the caller to
18675// add HTTP headers to the request.
18676func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Header() http.Header {
18677	if c.header_ == nil {
18678		c.header_ = make(http.Header)
18679	}
18680	return c.header_
18681}
18682
18683func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
18684	reqHeaders := make(http.Header)
18685	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18686	for k, v := range c.header_ {
18687		reqHeaders[k] = v
18688	}
18689	reqHeaders.Set("User-Agent", c.s.userAgent())
18690	var body io.Reader = nil
18691	c.urlParams_.Set("alt", alt)
18692	c.urlParams_.Set("prettyPrint", "false")
18693	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
18694	urls += "?" + c.urlParams_.Encode()
18695	req, err := http.NewRequest("DELETE", urls, body)
18696	if err != nil {
18697		return nil, err
18698	}
18699	req.Header = reqHeaders
18700	googleapi.Expand(req.URL, map[string]string{
18701		"name": c.name,
18702	})
18703	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18704}
18705
18706// Do executes the "dialogflow.projects.locations.agents.environments.delete" call.
18707// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
18708// non-2xx status code is an error. Response headers are in either
18709// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
18710// returned at all) in error.(*googleapi.Error).Header. Use
18711// googleapi.IsNotModified to check whether the returned error was
18712// because http.StatusNotModified was returned.
18713func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18714	gensupport.SetOptions(c.urlParams_, opts...)
18715	res, err := c.doRequest("json")
18716	if res != nil && res.StatusCode == http.StatusNotModified {
18717		if res.Body != nil {
18718			res.Body.Close()
18719		}
18720		return nil, &googleapi.Error{
18721			Code:   res.StatusCode,
18722			Header: res.Header,
18723		}
18724	}
18725	if err != nil {
18726		return nil, err
18727	}
18728	defer googleapi.CloseBody(res)
18729	if err := googleapi.CheckResponse(res); err != nil {
18730		return nil, err
18731	}
18732	ret := &GoogleProtobufEmpty{
18733		ServerResponse: googleapi.ServerResponse{
18734			Header:         res.Header,
18735			HTTPStatusCode: res.StatusCode,
18736		},
18737	}
18738	target := &ret
18739	if err := gensupport.DecodeResponse(target, res); err != nil {
18740		return nil, err
18741	}
18742	return ret, nil
18743	// {
18744	//   "description": "Deletes the specified Environment.",
18745	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}",
18746	//   "httpMethod": "DELETE",
18747	//   "id": "dialogflow.projects.locations.agents.environments.delete",
18748	//   "parameterOrder": [
18749	//     "name"
18750	//   ],
18751	//   "parameters": {
18752	//     "name": {
18753	//       "description": "Required. The name of the Environment to delete. Format: `projects//locations//agents//environments/`.",
18754	//       "location": "path",
18755	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$",
18756	//       "required": true,
18757	//       "type": "string"
18758	//     }
18759	//   },
18760	//   "path": "v3beta1/{+name}",
18761	//   "response": {
18762	//     "$ref": "GoogleProtobufEmpty"
18763	//   },
18764	//   "scopes": [
18765	//     "https://www.googleapis.com/auth/cloud-platform",
18766	//     "https://www.googleapis.com/auth/dialogflow"
18767	//   ]
18768	// }
18769
18770}
18771
18772// method id "dialogflow.projects.locations.agents.environments.get":
18773
18774type ProjectsLocationsAgentsEnvironmentsGetCall struct {
18775	s            *Service
18776	name         string
18777	urlParams_   gensupport.URLParams
18778	ifNoneMatch_ string
18779	ctx_         context.Context
18780	header_      http.Header
18781}
18782
18783// Get: Retrieves the specified Environment.
18784func (r *ProjectsLocationsAgentsEnvironmentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsGetCall {
18785	c := &ProjectsLocationsAgentsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18786	c.name = name
18787	return c
18788}
18789
18790// Fields allows partial responses to be retrieved. See
18791// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18792// for more information.
18793func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsGetCall {
18794	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18795	return c
18796}
18797
18798// IfNoneMatch sets the optional parameter which makes the operation
18799// fail if the object's ETag matches the given value. This is useful for
18800// getting updates only after the object has changed since the last
18801// request. Use googleapi.IsNotModified to check whether the response
18802// error from Do is the result of In-None-Match.
18803func (c *ProjectsLocationsAgentsEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsGetCall {
18804	c.ifNoneMatch_ = entityTag
18805	return c
18806}
18807
18808// Context sets the context to be used in this call's Do method. Any
18809// pending HTTP request will be aborted if the provided context is
18810// canceled.
18811func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsGetCall {
18812	c.ctx_ = ctx
18813	return c
18814}
18815
18816// Header returns an http.Header that can be modified by the caller to
18817// add HTTP headers to the request.
18818func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Header() http.Header {
18819	if c.header_ == nil {
18820		c.header_ = make(http.Header)
18821	}
18822	return c.header_
18823}
18824
18825func (c *ProjectsLocationsAgentsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
18826	reqHeaders := make(http.Header)
18827	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18828	for k, v := range c.header_ {
18829		reqHeaders[k] = v
18830	}
18831	reqHeaders.Set("User-Agent", c.s.userAgent())
18832	if c.ifNoneMatch_ != "" {
18833		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18834	}
18835	var body io.Reader = nil
18836	c.urlParams_.Set("alt", alt)
18837	c.urlParams_.Set("prettyPrint", "false")
18838	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
18839	urls += "?" + c.urlParams_.Encode()
18840	req, err := http.NewRequest("GET", urls, body)
18841	if err != nil {
18842		return nil, err
18843	}
18844	req.Header = reqHeaders
18845	googleapi.Expand(req.URL, map[string]string{
18846		"name": c.name,
18847	})
18848	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18849}
18850
18851// Do executes the "dialogflow.projects.locations.agents.environments.get" call.
18852// Exactly one of *GoogleCloudDialogflowCxV3beta1Environment or error
18853// will be non-nil. Any non-2xx status code is an error. Response
18854// headers are in either
18855// *GoogleCloudDialogflowCxV3beta1Environment.ServerResponse.Header or
18856// (if a response was returned at all) in
18857// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18858// whether the returned error was because http.StatusNotModified was
18859// returned.
18860func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Environment, error) {
18861	gensupport.SetOptions(c.urlParams_, opts...)
18862	res, err := c.doRequest("json")
18863	if res != nil && res.StatusCode == http.StatusNotModified {
18864		if res.Body != nil {
18865			res.Body.Close()
18866		}
18867		return nil, &googleapi.Error{
18868			Code:   res.StatusCode,
18869			Header: res.Header,
18870		}
18871	}
18872	if err != nil {
18873		return nil, err
18874	}
18875	defer googleapi.CloseBody(res)
18876	if err := googleapi.CheckResponse(res); err != nil {
18877		return nil, err
18878	}
18879	ret := &GoogleCloudDialogflowCxV3beta1Environment{
18880		ServerResponse: googleapi.ServerResponse{
18881			Header:         res.Header,
18882			HTTPStatusCode: res.StatusCode,
18883		},
18884	}
18885	target := &ret
18886	if err := gensupport.DecodeResponse(target, res); err != nil {
18887		return nil, err
18888	}
18889	return ret, nil
18890	// {
18891	//   "description": "Retrieves the specified Environment.",
18892	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}",
18893	//   "httpMethod": "GET",
18894	//   "id": "dialogflow.projects.locations.agents.environments.get",
18895	//   "parameterOrder": [
18896	//     "name"
18897	//   ],
18898	//   "parameters": {
18899	//     "name": {
18900	//       "description": "Required. The name of the Environment. Format: `projects//locations//agents//environments/`.",
18901	//       "location": "path",
18902	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$",
18903	//       "required": true,
18904	//       "type": "string"
18905	//     }
18906	//   },
18907	//   "path": "v3beta1/{+name}",
18908	//   "response": {
18909	//     "$ref": "GoogleCloudDialogflowCxV3beta1Environment"
18910	//   },
18911	//   "scopes": [
18912	//     "https://www.googleapis.com/auth/cloud-platform",
18913	//     "https://www.googleapis.com/auth/dialogflow"
18914	//   ]
18915	// }
18916
18917}
18918
18919// method id "dialogflow.projects.locations.agents.environments.list":
18920
18921type ProjectsLocationsAgentsEnvironmentsListCall struct {
18922	s            *Service
18923	parent       string
18924	urlParams_   gensupport.URLParams
18925	ifNoneMatch_ string
18926	ctx_         context.Context
18927	header_      http.Header
18928}
18929
18930// List: Returns the list of all environments in the specified Agent.
18931func (r *ProjectsLocationsAgentsEnvironmentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsListCall {
18932	c := &ProjectsLocationsAgentsEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18933	c.parent = parent
18934	return c
18935}
18936
18937// PageSize sets the optional parameter "pageSize": The maximum number
18938// of items to return in a single page. By default 20 and at most 100.
18939func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsListCall {
18940	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18941	return c
18942}
18943
18944// PageToken sets the optional parameter "pageToken": The
18945// next_page_token value returned from a previous list request.
18946func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsListCall {
18947	c.urlParams_.Set("pageToken", pageToken)
18948	return c
18949}
18950
18951// Fields allows partial responses to be retrieved. See
18952// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18953// for more information.
18954func (c *ProjectsLocationsAgentsEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsListCall {
18955	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18956	return c
18957}
18958
18959// IfNoneMatch sets the optional parameter which makes the operation
18960// fail if the object's ETag matches the given value. This is useful for
18961// getting updates only after the object has changed since the last
18962// request. Use googleapi.IsNotModified to check whether the response
18963// error from Do is the result of In-None-Match.
18964func (c *ProjectsLocationsAgentsEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsListCall {
18965	c.ifNoneMatch_ = entityTag
18966	return c
18967}
18968
18969// Context sets the context to be used in this call's Do method. Any
18970// pending HTTP request will be aborted if the provided context is
18971// canceled.
18972func (c *ProjectsLocationsAgentsEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsListCall {
18973	c.ctx_ = ctx
18974	return c
18975}
18976
18977// Header returns an http.Header that can be modified by the caller to
18978// add HTTP headers to the request.
18979func (c *ProjectsLocationsAgentsEnvironmentsListCall) Header() http.Header {
18980	if c.header_ == nil {
18981		c.header_ = make(http.Header)
18982	}
18983	return c.header_
18984}
18985
18986func (c *ProjectsLocationsAgentsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
18987	reqHeaders := make(http.Header)
18988	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
18989	for k, v := range c.header_ {
18990		reqHeaders[k] = v
18991	}
18992	reqHeaders.Set("User-Agent", c.s.userAgent())
18993	if c.ifNoneMatch_ != "" {
18994		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18995	}
18996	var body io.Reader = nil
18997	c.urlParams_.Set("alt", alt)
18998	c.urlParams_.Set("prettyPrint", "false")
18999	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/environments")
19000	urls += "?" + c.urlParams_.Encode()
19001	req, err := http.NewRequest("GET", urls, body)
19002	if err != nil {
19003		return nil, err
19004	}
19005	req.Header = reqHeaders
19006	googleapi.Expand(req.URL, map[string]string{
19007		"parent": c.parent,
19008	})
19009	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19010}
19011
19012// Do executes the "dialogflow.projects.locations.agents.environments.list" call.
19013// Exactly one of
19014// *GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse or error will
19015// be non-nil. Any non-2xx status code is an error. Response headers are
19016// in either
19017// *GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse.ServerResponse
19018// .Header or (if a response was returned at all) in
19019// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19020// whether the returned error was because http.StatusNotModified was
19021// returned.
19022func (c *ProjectsLocationsAgentsEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse, error) {
19023	gensupport.SetOptions(c.urlParams_, opts...)
19024	res, err := c.doRequest("json")
19025	if res != nil && res.StatusCode == http.StatusNotModified {
19026		if res.Body != nil {
19027			res.Body.Close()
19028		}
19029		return nil, &googleapi.Error{
19030			Code:   res.StatusCode,
19031			Header: res.Header,
19032		}
19033	}
19034	if err != nil {
19035		return nil, err
19036	}
19037	defer googleapi.CloseBody(res)
19038	if err := googleapi.CheckResponse(res); err != nil {
19039		return nil, err
19040	}
19041	ret := &GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse{
19042		ServerResponse: googleapi.ServerResponse{
19043			Header:         res.Header,
19044			HTTPStatusCode: res.StatusCode,
19045		},
19046	}
19047	target := &ret
19048	if err := gensupport.DecodeResponse(target, res); err != nil {
19049		return nil, err
19050	}
19051	return ret, nil
19052	// {
19053	//   "description": "Returns the list of all environments in the specified Agent.",
19054	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments",
19055	//   "httpMethod": "GET",
19056	//   "id": "dialogflow.projects.locations.agents.environments.list",
19057	//   "parameterOrder": [
19058	//     "parent"
19059	//   ],
19060	//   "parameters": {
19061	//     "pageSize": {
19062	//       "description": "The maximum number of items to return in a single page. By default 20 and at most 100.",
19063	//       "format": "int32",
19064	//       "location": "query",
19065	//       "type": "integer"
19066	//     },
19067	//     "pageToken": {
19068	//       "description": "The next_page_token value returned from a previous list request.",
19069	//       "location": "query",
19070	//       "type": "string"
19071	//     },
19072	//     "parent": {
19073	//       "description": "Required. The Agent to list all environments for. Format: `projects//locations//agents/`.",
19074	//       "location": "path",
19075	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
19076	//       "required": true,
19077	//       "type": "string"
19078	//     }
19079	//   },
19080	//   "path": "v3beta1/{+parent}/environments",
19081	//   "response": {
19082	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse"
19083	//   },
19084	//   "scopes": [
19085	//     "https://www.googleapis.com/auth/cloud-platform",
19086	//     "https://www.googleapis.com/auth/dialogflow"
19087	//   ]
19088	// }
19089
19090}
19091
19092// Pages invokes f for each page of results.
19093// A non-nil error returned from f will halt the iteration.
19094// The provided context supersedes any context provided to the Context method.
19095func (c *ProjectsLocationsAgentsEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse) error) error {
19096	c.ctx_ = ctx
19097	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
19098	for {
19099		x, err := c.Do()
19100		if err != nil {
19101			return err
19102		}
19103		if err := f(x); err != nil {
19104			return err
19105		}
19106		if x.NextPageToken == "" {
19107			return nil
19108		}
19109		c.PageToken(x.NextPageToken)
19110	}
19111}
19112
19113// method id "dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory":
19114
19115type ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall struct {
19116	s            *Service
19117	name         string
19118	urlParams_   gensupport.URLParams
19119	ifNoneMatch_ string
19120	ctx_         context.Context
19121	header_      http.Header
19122}
19123
19124// LookupEnvironmentHistory: Looks up the history of the specified
19125// Environment.
19126func (r *ProjectsLocationsAgentsEnvironmentsService) LookupEnvironmentHistory(name string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
19127	c := &ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19128	c.name = name
19129	return c
19130}
19131
19132// PageSize sets the optional parameter "pageSize": The maximum number
19133// of items to return in a single page. By default 100 and at most 1000.
19134func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
19135	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19136	return c
19137}
19138
19139// PageToken sets the optional parameter "pageToken": The
19140// next_page_token value returned from a previous list request.
19141func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
19142	c.urlParams_.Set("pageToken", pageToken)
19143	return c
19144}
19145
19146// Fields allows partial responses to be retrieved. See
19147// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19148// for more information.
19149func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
19150	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19151	return c
19152}
19153
19154// IfNoneMatch sets the optional parameter which makes the operation
19155// fail if the object's ETag matches the given value. This is useful for
19156// getting updates only after the object has changed since the last
19157// request. Use googleapi.IsNotModified to check whether the response
19158// error from Do is the result of In-None-Match.
19159func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
19160	c.ifNoneMatch_ = entityTag
19161	return c
19162}
19163
19164// Context sets the context to be used in this call's Do method. Any
19165// pending HTTP request will be aborted if the provided context is
19166// canceled.
19167func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
19168	c.ctx_ = ctx
19169	return c
19170}
19171
19172// Header returns an http.Header that can be modified by the caller to
19173// add HTTP headers to the request.
19174func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Header() http.Header {
19175	if c.header_ == nil {
19176		c.header_ = make(http.Header)
19177	}
19178	return c.header_
19179}
19180
19181func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) doRequest(alt string) (*http.Response, error) {
19182	reqHeaders := make(http.Header)
19183	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19184	for k, v := range c.header_ {
19185		reqHeaders[k] = v
19186	}
19187	reqHeaders.Set("User-Agent", c.s.userAgent())
19188	if c.ifNoneMatch_ != "" {
19189		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19190	}
19191	var body io.Reader = nil
19192	c.urlParams_.Set("alt", alt)
19193	c.urlParams_.Set("prettyPrint", "false")
19194	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:lookupEnvironmentHistory")
19195	urls += "?" + c.urlParams_.Encode()
19196	req, err := http.NewRequest("GET", urls, body)
19197	if err != nil {
19198		return nil, err
19199	}
19200	req.Header = reqHeaders
19201	googleapi.Expand(req.URL, map[string]string{
19202		"name": c.name,
19203	})
19204	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19205}
19206
19207// Do executes the "dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory" call.
19208// Exactly one of
19209// *GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse or
19210// error will be non-nil. Any non-2xx status code is an error. Response
19211// headers are in either
19212// *GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse.Server
19213// Response.Header or (if a response was returned at all) in
19214// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19215// whether the returned error was because http.StatusNotModified was
19216// returned.
19217func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse, error) {
19218	gensupport.SetOptions(c.urlParams_, opts...)
19219	res, err := c.doRequest("json")
19220	if res != nil && res.StatusCode == http.StatusNotModified {
19221		if res.Body != nil {
19222			res.Body.Close()
19223		}
19224		return nil, &googleapi.Error{
19225			Code:   res.StatusCode,
19226			Header: res.Header,
19227		}
19228	}
19229	if err != nil {
19230		return nil, err
19231	}
19232	defer googleapi.CloseBody(res)
19233	if err := googleapi.CheckResponse(res); err != nil {
19234		return nil, err
19235	}
19236	ret := &GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse{
19237		ServerResponse: googleapi.ServerResponse{
19238			Header:         res.Header,
19239			HTTPStatusCode: res.StatusCode,
19240		},
19241	}
19242	target := &ret
19243	if err := gensupport.DecodeResponse(target, res); err != nil {
19244		return nil, err
19245	}
19246	return ret, nil
19247	// {
19248	//   "description": "Looks up the history of the specified Environment.",
19249	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}:lookupEnvironmentHistory",
19250	//   "httpMethod": "GET",
19251	//   "id": "dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory",
19252	//   "parameterOrder": [
19253	//     "name"
19254	//   ],
19255	//   "parameters": {
19256	//     "name": {
19257	//       "description": "Required. Resource name of the environment to look up the history for. Format: `projects//locations//agents//environments/`.",
19258	//       "location": "path",
19259	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$",
19260	//       "required": true,
19261	//       "type": "string"
19262	//     },
19263	//     "pageSize": {
19264	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
19265	//       "format": "int32",
19266	//       "location": "query",
19267	//       "type": "integer"
19268	//     },
19269	//     "pageToken": {
19270	//       "description": "The next_page_token value returned from a previous list request.",
19271	//       "location": "query",
19272	//       "type": "string"
19273	//     }
19274	//   },
19275	//   "path": "v3beta1/{+name}:lookupEnvironmentHistory",
19276	//   "response": {
19277	//     "$ref": "GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse"
19278	//   },
19279	//   "scopes": [
19280	//     "https://www.googleapis.com/auth/cloud-platform",
19281	//     "https://www.googleapis.com/auth/dialogflow"
19282	//   ]
19283	// }
19284
19285}
19286
19287// Pages invokes f for each page of results.
19288// A non-nil error returned from f will halt the iteration.
19289// The provided context supersedes any context provided to the Context method.
19290func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse) error) error {
19291	c.ctx_ = ctx
19292	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
19293	for {
19294		x, err := c.Do()
19295		if err != nil {
19296			return err
19297		}
19298		if err := f(x); err != nil {
19299			return err
19300		}
19301		if x.NextPageToken == "" {
19302			return nil
19303		}
19304		c.PageToken(x.NextPageToken)
19305	}
19306}
19307
19308// method id "dialogflow.projects.locations.agents.environments.patch":
19309
19310type ProjectsLocationsAgentsEnvironmentsPatchCall struct {
19311	s                                         *Service
19312	name                                      string
19313	googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment
19314	urlParams_                                gensupport.URLParams
19315	ctx_                                      context.Context
19316	header_                                   http.Header
19317}
19318
19319// Patch: Updates the specified Environment.
19320func (r *ProjectsLocationsAgentsEnvironmentsService) Patch(name string, googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment) *ProjectsLocationsAgentsEnvironmentsPatchCall {
19321	c := &ProjectsLocationsAgentsEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19322	c.name = name
19323	c.googleclouddialogflowcxv3beta1environment = googleclouddialogflowcxv3beta1environment
19324	return c
19325}
19326
19327// UpdateMask sets the optional parameter "updateMask": Required. The
19328// mask to control which fields get updated.
19329func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsPatchCall {
19330	c.urlParams_.Set("updateMask", updateMask)
19331	return c
19332}
19333
19334// Fields allows partial responses to be retrieved. See
19335// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19336// for more information.
19337func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsPatchCall {
19338	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19339	return c
19340}
19341
19342// Context sets the context to be used in this call's Do method. Any
19343// pending HTTP request will be aborted if the provided context is
19344// canceled.
19345func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsPatchCall {
19346	c.ctx_ = ctx
19347	return c
19348}
19349
19350// Header returns an http.Header that can be modified by the caller to
19351// add HTTP headers to the request.
19352func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Header() http.Header {
19353	if c.header_ == nil {
19354		c.header_ = make(http.Header)
19355	}
19356	return c.header_
19357}
19358
19359func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
19360	reqHeaders := make(http.Header)
19361	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19362	for k, v := range c.header_ {
19363		reqHeaders[k] = v
19364	}
19365	reqHeaders.Set("User-Agent", c.s.userAgent())
19366	var body io.Reader = nil
19367	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1environment)
19368	if err != nil {
19369		return nil, err
19370	}
19371	reqHeaders.Set("Content-Type", "application/json")
19372	c.urlParams_.Set("alt", alt)
19373	c.urlParams_.Set("prettyPrint", "false")
19374	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
19375	urls += "?" + c.urlParams_.Encode()
19376	req, err := http.NewRequest("PATCH", urls, body)
19377	if err != nil {
19378		return nil, err
19379	}
19380	req.Header = reqHeaders
19381	googleapi.Expand(req.URL, map[string]string{
19382		"name": c.name,
19383	})
19384	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19385}
19386
19387// Do executes the "dialogflow.projects.locations.agents.environments.patch" call.
19388// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
19389// Any non-2xx status code is an error. Response headers are in either
19390// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
19391// was returned at all) in error.(*googleapi.Error).Header. Use
19392// googleapi.IsNotModified to check whether the returned error was
19393// because http.StatusNotModified was returned.
19394func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19395	gensupport.SetOptions(c.urlParams_, opts...)
19396	res, err := c.doRequest("json")
19397	if res != nil && res.StatusCode == http.StatusNotModified {
19398		if res.Body != nil {
19399			res.Body.Close()
19400		}
19401		return nil, &googleapi.Error{
19402			Code:   res.StatusCode,
19403			Header: res.Header,
19404		}
19405	}
19406	if err != nil {
19407		return nil, err
19408	}
19409	defer googleapi.CloseBody(res)
19410	if err := googleapi.CheckResponse(res); err != nil {
19411		return nil, err
19412	}
19413	ret := &GoogleLongrunningOperation{
19414		ServerResponse: googleapi.ServerResponse{
19415			Header:         res.Header,
19416			HTTPStatusCode: res.StatusCode,
19417		},
19418	}
19419	target := &ret
19420	if err := gensupport.DecodeResponse(target, res); err != nil {
19421		return nil, err
19422	}
19423	return ret, nil
19424	// {
19425	//   "description": "Updates the specified Environment.",
19426	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}",
19427	//   "httpMethod": "PATCH",
19428	//   "id": "dialogflow.projects.locations.agents.environments.patch",
19429	//   "parameterOrder": [
19430	//     "name"
19431	//   ],
19432	//   "parameters": {
19433	//     "name": {
19434	//       "description": "The name of the environment. Format: `projects//locations//agents//environments/`.",
19435	//       "location": "path",
19436	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$",
19437	//       "required": true,
19438	//       "type": "string"
19439	//     },
19440	//     "updateMask": {
19441	//       "description": "Required. The mask to control which fields get updated.",
19442	//       "format": "google-fieldmask",
19443	//       "location": "query",
19444	//       "type": "string"
19445	//     }
19446	//   },
19447	//   "path": "v3beta1/{+name}",
19448	//   "request": {
19449	//     "$ref": "GoogleCloudDialogflowCxV3beta1Environment"
19450	//   },
19451	//   "response": {
19452	//     "$ref": "GoogleLongrunningOperation"
19453	//   },
19454	//   "scopes": [
19455	//     "https://www.googleapis.com/auth/cloud-platform",
19456	//     "https://www.googleapis.com/auth/dialogflow"
19457	//   ]
19458	// }
19459
19460}
19461
19462// method id "dialogflow.projects.locations.agents.environments.experiments.create":
19463
19464type ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall struct {
19465	s                                        *Service
19466	parent                                   string
19467	googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment
19468	urlParams_                               gensupport.URLParams
19469	ctx_                                     context.Context
19470	header_                                  http.Header
19471}
19472
19473// Create: Creates an Experiment in the specified Environment.
19474func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Create(parent string, googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
19475	c := &ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19476	c.parent = parent
19477	c.googleclouddialogflowcxv3beta1experiment = googleclouddialogflowcxv3beta1experiment
19478	return c
19479}
19480
19481// Fields allows partial responses to be retrieved. See
19482// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19483// for more information.
19484func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
19485	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19486	return c
19487}
19488
19489// Context sets the context to be used in this call's Do method. Any
19490// pending HTTP request will be aborted if the provided context is
19491// canceled.
19492func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
19493	c.ctx_ = ctx
19494	return c
19495}
19496
19497// Header returns an http.Header that can be modified by the caller to
19498// add HTTP headers to the request.
19499func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Header() http.Header {
19500	if c.header_ == nil {
19501		c.header_ = make(http.Header)
19502	}
19503	return c.header_
19504}
19505
19506func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) doRequest(alt string) (*http.Response, error) {
19507	reqHeaders := make(http.Header)
19508	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19509	for k, v := range c.header_ {
19510		reqHeaders[k] = v
19511	}
19512	reqHeaders.Set("User-Agent", c.s.userAgent())
19513	var body io.Reader = nil
19514	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1experiment)
19515	if err != nil {
19516		return nil, err
19517	}
19518	reqHeaders.Set("Content-Type", "application/json")
19519	c.urlParams_.Set("alt", alt)
19520	c.urlParams_.Set("prettyPrint", "false")
19521	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/experiments")
19522	urls += "?" + c.urlParams_.Encode()
19523	req, err := http.NewRequest("POST", urls, body)
19524	if err != nil {
19525		return nil, err
19526	}
19527	req.Header = reqHeaders
19528	googleapi.Expand(req.URL, map[string]string{
19529		"parent": c.parent,
19530	})
19531	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19532}
19533
19534// Do executes the "dialogflow.projects.locations.agents.environments.experiments.create" call.
19535// Exactly one of *GoogleCloudDialogflowCxV3beta1Experiment or error
19536// will be non-nil. Any non-2xx status code is an error. Response
19537// headers are in either
19538// *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or
19539// (if a response was returned at all) in
19540// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19541// whether the returned error was because http.StatusNotModified was
19542// returned.
19543func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
19544	gensupport.SetOptions(c.urlParams_, opts...)
19545	res, err := c.doRequest("json")
19546	if res != nil && res.StatusCode == http.StatusNotModified {
19547		if res.Body != nil {
19548			res.Body.Close()
19549		}
19550		return nil, &googleapi.Error{
19551			Code:   res.StatusCode,
19552			Header: res.Header,
19553		}
19554	}
19555	if err != nil {
19556		return nil, err
19557	}
19558	defer googleapi.CloseBody(res)
19559	if err := googleapi.CheckResponse(res); err != nil {
19560		return nil, err
19561	}
19562	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
19563		ServerResponse: googleapi.ServerResponse{
19564			Header:         res.Header,
19565			HTTPStatusCode: res.StatusCode,
19566		},
19567	}
19568	target := &ret
19569	if err := gensupport.DecodeResponse(target, res); err != nil {
19570		return nil, err
19571	}
19572	return ret, nil
19573	// {
19574	//   "description": "Creates an Experiment in the specified Environment.",
19575	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/experiments",
19576	//   "httpMethod": "POST",
19577	//   "id": "dialogflow.projects.locations.agents.environments.experiments.create",
19578	//   "parameterOrder": [
19579	//     "parent"
19580	//   ],
19581	//   "parameters": {
19582	//     "parent": {
19583	//       "description": "Required. The Agent to create an Environment for. Format: `projects//locations//agents//environments/`.",
19584	//       "location": "path",
19585	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$",
19586	//       "required": true,
19587	//       "type": "string"
19588	//     }
19589	//   },
19590	//   "path": "v3beta1/{+parent}/experiments",
19591	//   "request": {
19592	//     "$ref": "GoogleCloudDialogflowCxV3beta1Experiment"
19593	//   },
19594	//   "response": {
19595	//     "$ref": "GoogleCloudDialogflowCxV3beta1Experiment"
19596	//   },
19597	//   "scopes": [
19598	//     "https://www.googleapis.com/auth/cloud-platform",
19599	//     "https://www.googleapis.com/auth/dialogflow"
19600	//   ]
19601	// }
19602
19603}
19604
19605// method id "dialogflow.projects.locations.agents.environments.experiments.delete":
19606
19607type ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall struct {
19608	s          *Service
19609	name       string
19610	urlParams_ gensupport.URLParams
19611	ctx_       context.Context
19612	header_    http.Header
19613}
19614
19615// Delete: Deletes the specified Experiment.
19616func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
19617	c := &ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19618	c.name = name
19619	return c
19620}
19621
19622// Fields allows partial responses to be retrieved. See
19623// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19624// for more information.
19625func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
19626	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19627	return c
19628}
19629
19630// Context sets the context to be used in this call's Do method. Any
19631// pending HTTP request will be aborted if the provided context is
19632// canceled.
19633func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
19634	c.ctx_ = ctx
19635	return c
19636}
19637
19638// Header returns an http.Header that can be modified by the caller to
19639// add HTTP headers to the request.
19640func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Header() http.Header {
19641	if c.header_ == nil {
19642		c.header_ = make(http.Header)
19643	}
19644	return c.header_
19645}
19646
19647func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) doRequest(alt string) (*http.Response, error) {
19648	reqHeaders := make(http.Header)
19649	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19650	for k, v := range c.header_ {
19651		reqHeaders[k] = v
19652	}
19653	reqHeaders.Set("User-Agent", c.s.userAgent())
19654	var body io.Reader = nil
19655	c.urlParams_.Set("alt", alt)
19656	c.urlParams_.Set("prettyPrint", "false")
19657	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
19658	urls += "?" + c.urlParams_.Encode()
19659	req, err := http.NewRequest("DELETE", urls, body)
19660	if err != nil {
19661		return nil, err
19662	}
19663	req.Header = reqHeaders
19664	googleapi.Expand(req.URL, map[string]string{
19665		"name": c.name,
19666	})
19667	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19668}
19669
19670// Do executes the "dialogflow.projects.locations.agents.environments.experiments.delete" call.
19671// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
19672// non-2xx status code is an error. Response headers are in either
19673// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
19674// returned at all) in error.(*googleapi.Error).Header. Use
19675// googleapi.IsNotModified to check whether the returned error was
19676// because http.StatusNotModified was returned.
19677func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19678	gensupport.SetOptions(c.urlParams_, opts...)
19679	res, err := c.doRequest("json")
19680	if res != nil && res.StatusCode == http.StatusNotModified {
19681		if res.Body != nil {
19682			res.Body.Close()
19683		}
19684		return nil, &googleapi.Error{
19685			Code:   res.StatusCode,
19686			Header: res.Header,
19687		}
19688	}
19689	if err != nil {
19690		return nil, err
19691	}
19692	defer googleapi.CloseBody(res)
19693	if err := googleapi.CheckResponse(res); err != nil {
19694		return nil, err
19695	}
19696	ret := &GoogleProtobufEmpty{
19697		ServerResponse: googleapi.ServerResponse{
19698			Header:         res.Header,
19699			HTTPStatusCode: res.StatusCode,
19700		},
19701	}
19702	target := &ret
19703	if err := gensupport.DecodeResponse(target, res); err != nil {
19704		return nil, err
19705	}
19706	return ret, nil
19707	// {
19708	//   "description": "Deletes the specified Experiment.",
19709	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/experiments/{experimentsId}",
19710	//   "httpMethod": "DELETE",
19711	//   "id": "dialogflow.projects.locations.agents.environments.experiments.delete",
19712	//   "parameterOrder": [
19713	//     "name"
19714	//   ],
19715	//   "parameters": {
19716	//     "name": {
19717	//       "description": "Required. The name of the Environment to delete. Format: `projects//locations//agents//environments//experiments/`.",
19718	//       "location": "path",
19719	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$",
19720	//       "required": true,
19721	//       "type": "string"
19722	//     }
19723	//   },
19724	//   "path": "v3beta1/{+name}",
19725	//   "response": {
19726	//     "$ref": "GoogleProtobufEmpty"
19727	//   },
19728	//   "scopes": [
19729	//     "https://www.googleapis.com/auth/cloud-platform",
19730	//     "https://www.googleapis.com/auth/dialogflow"
19731	//   ]
19732	// }
19733
19734}
19735
19736// method id "dialogflow.projects.locations.agents.environments.experiments.get":
19737
19738type ProjectsLocationsAgentsEnvironmentsExperimentsGetCall struct {
19739	s            *Service
19740	name         string
19741	urlParams_   gensupport.URLParams
19742	ifNoneMatch_ string
19743	ctx_         context.Context
19744	header_      http.Header
19745}
19746
19747// Get: Retrieves the specified Experiment.
19748func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
19749	c := &ProjectsLocationsAgentsEnvironmentsExperimentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19750	c.name = name
19751	return c
19752}
19753
19754// Fields allows partial responses to be retrieved. See
19755// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19756// for more information.
19757func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
19758	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19759	return c
19760}
19761
19762// IfNoneMatch sets the optional parameter which makes the operation
19763// fail if the object's ETag matches the given value. This is useful for
19764// getting updates only after the object has changed since the last
19765// request. Use googleapi.IsNotModified to check whether the response
19766// error from Do is the result of In-None-Match.
19767func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
19768	c.ifNoneMatch_ = entityTag
19769	return c
19770}
19771
19772// Context sets the context to be used in this call's Do method. Any
19773// pending HTTP request will be aborted if the provided context is
19774// canceled.
19775func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
19776	c.ctx_ = ctx
19777	return c
19778}
19779
19780// Header returns an http.Header that can be modified by the caller to
19781// add HTTP headers to the request.
19782func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Header() http.Header {
19783	if c.header_ == nil {
19784		c.header_ = make(http.Header)
19785	}
19786	return c.header_
19787}
19788
19789func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) doRequest(alt string) (*http.Response, error) {
19790	reqHeaders := make(http.Header)
19791	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19792	for k, v := range c.header_ {
19793		reqHeaders[k] = v
19794	}
19795	reqHeaders.Set("User-Agent", c.s.userAgent())
19796	if c.ifNoneMatch_ != "" {
19797		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19798	}
19799	var body io.Reader = nil
19800	c.urlParams_.Set("alt", alt)
19801	c.urlParams_.Set("prettyPrint", "false")
19802	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
19803	urls += "?" + c.urlParams_.Encode()
19804	req, err := http.NewRequest("GET", urls, body)
19805	if err != nil {
19806		return nil, err
19807	}
19808	req.Header = reqHeaders
19809	googleapi.Expand(req.URL, map[string]string{
19810		"name": c.name,
19811	})
19812	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19813}
19814
19815// Do executes the "dialogflow.projects.locations.agents.environments.experiments.get" call.
19816// Exactly one of *GoogleCloudDialogflowCxV3beta1Experiment or error
19817// will be non-nil. Any non-2xx status code is an error. Response
19818// headers are in either
19819// *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or
19820// (if a response was returned at all) in
19821// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19822// whether the returned error was because http.StatusNotModified was
19823// returned.
19824func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
19825	gensupport.SetOptions(c.urlParams_, opts...)
19826	res, err := c.doRequest("json")
19827	if res != nil && res.StatusCode == http.StatusNotModified {
19828		if res.Body != nil {
19829			res.Body.Close()
19830		}
19831		return nil, &googleapi.Error{
19832			Code:   res.StatusCode,
19833			Header: res.Header,
19834		}
19835	}
19836	if err != nil {
19837		return nil, err
19838	}
19839	defer googleapi.CloseBody(res)
19840	if err := googleapi.CheckResponse(res); err != nil {
19841		return nil, err
19842	}
19843	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
19844		ServerResponse: googleapi.ServerResponse{
19845			Header:         res.Header,
19846			HTTPStatusCode: res.StatusCode,
19847		},
19848	}
19849	target := &ret
19850	if err := gensupport.DecodeResponse(target, res); err != nil {
19851		return nil, err
19852	}
19853	return ret, nil
19854	// {
19855	//   "description": "Retrieves the specified Experiment.",
19856	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/experiments/{experimentsId}",
19857	//   "httpMethod": "GET",
19858	//   "id": "dialogflow.projects.locations.agents.environments.experiments.get",
19859	//   "parameterOrder": [
19860	//     "name"
19861	//   ],
19862	//   "parameters": {
19863	//     "name": {
19864	//       "description": "Required. The name of the Environment. Format: `projects//locations//agents//environments//experiments/`.",
19865	//       "location": "path",
19866	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$",
19867	//       "required": true,
19868	//       "type": "string"
19869	//     }
19870	//   },
19871	//   "path": "v3beta1/{+name}",
19872	//   "response": {
19873	//     "$ref": "GoogleCloudDialogflowCxV3beta1Experiment"
19874	//   },
19875	//   "scopes": [
19876	//     "https://www.googleapis.com/auth/cloud-platform",
19877	//     "https://www.googleapis.com/auth/dialogflow"
19878	//   ]
19879	// }
19880
19881}
19882
19883// method id "dialogflow.projects.locations.agents.environments.experiments.list":
19884
19885type ProjectsLocationsAgentsEnvironmentsExperimentsListCall struct {
19886	s            *Service
19887	parent       string
19888	urlParams_   gensupport.URLParams
19889	ifNoneMatch_ string
19890	ctx_         context.Context
19891	header_      http.Header
19892}
19893
19894// List: Returns the list of all experiments in the specified
19895// Environment.
19896func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
19897	c := &ProjectsLocationsAgentsEnvironmentsExperimentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19898	c.parent = parent
19899	return c
19900}
19901
19902// PageSize sets the optional parameter "pageSize": The maximum number
19903// of items to return in a single page. By default 20 and at most 100.
19904func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
19905	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19906	return c
19907}
19908
19909// PageToken sets the optional parameter "pageToken": The
19910// next_page_token value returned from a previous list request.
19911func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
19912	c.urlParams_.Set("pageToken", pageToken)
19913	return c
19914}
19915
19916// Fields allows partial responses to be retrieved. See
19917// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19918// for more information.
19919func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
19920	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19921	return c
19922}
19923
19924// IfNoneMatch sets the optional parameter which makes the operation
19925// fail if the object's ETag matches the given value. This is useful for
19926// getting updates only after the object has changed since the last
19927// request. Use googleapi.IsNotModified to check whether the response
19928// error from Do is the result of In-None-Match.
19929func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
19930	c.ifNoneMatch_ = entityTag
19931	return c
19932}
19933
19934// Context sets the context to be used in this call's Do method. Any
19935// pending HTTP request will be aborted if the provided context is
19936// canceled.
19937func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
19938	c.ctx_ = ctx
19939	return c
19940}
19941
19942// Header returns an http.Header that can be modified by the caller to
19943// add HTTP headers to the request.
19944func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Header() http.Header {
19945	if c.header_ == nil {
19946		c.header_ = make(http.Header)
19947	}
19948	return c.header_
19949}
19950
19951func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) doRequest(alt string) (*http.Response, error) {
19952	reqHeaders := make(http.Header)
19953	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
19954	for k, v := range c.header_ {
19955		reqHeaders[k] = v
19956	}
19957	reqHeaders.Set("User-Agent", c.s.userAgent())
19958	if c.ifNoneMatch_ != "" {
19959		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19960	}
19961	var body io.Reader = nil
19962	c.urlParams_.Set("alt", alt)
19963	c.urlParams_.Set("prettyPrint", "false")
19964	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/experiments")
19965	urls += "?" + c.urlParams_.Encode()
19966	req, err := http.NewRequest("GET", urls, body)
19967	if err != nil {
19968		return nil, err
19969	}
19970	req.Header = reqHeaders
19971	googleapi.Expand(req.URL, map[string]string{
19972		"parent": c.parent,
19973	})
19974	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19975}
19976
19977// Do executes the "dialogflow.projects.locations.agents.environments.experiments.list" call.
19978// Exactly one of *GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
19979// or error will be non-nil. Any non-2xx status code is an error.
19980// Response headers are in either
19981// *GoogleCloudDialogflowCxV3beta1ListExperimentsResponse.ServerResponse.
19982// Header or (if a response was returned at all) in
19983// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19984// whether the returned error was because http.StatusNotModified was
19985// returned.
19986func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListExperimentsResponse, error) {
19987	gensupport.SetOptions(c.urlParams_, opts...)
19988	res, err := c.doRequest("json")
19989	if res != nil && res.StatusCode == http.StatusNotModified {
19990		if res.Body != nil {
19991			res.Body.Close()
19992		}
19993		return nil, &googleapi.Error{
19994			Code:   res.StatusCode,
19995			Header: res.Header,
19996		}
19997	}
19998	if err != nil {
19999		return nil, err
20000	}
20001	defer googleapi.CloseBody(res)
20002	if err := googleapi.CheckResponse(res); err != nil {
20003		return nil, err
20004	}
20005	ret := &GoogleCloudDialogflowCxV3beta1ListExperimentsResponse{
20006		ServerResponse: googleapi.ServerResponse{
20007			Header:         res.Header,
20008			HTTPStatusCode: res.StatusCode,
20009		},
20010	}
20011	target := &ret
20012	if err := gensupport.DecodeResponse(target, res); err != nil {
20013		return nil, err
20014	}
20015	return ret, nil
20016	// {
20017	//   "description": "Returns the list of all experiments in the specified Environment.",
20018	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/experiments",
20019	//   "httpMethod": "GET",
20020	//   "id": "dialogflow.projects.locations.agents.environments.experiments.list",
20021	//   "parameterOrder": [
20022	//     "parent"
20023	//   ],
20024	//   "parameters": {
20025	//     "pageSize": {
20026	//       "description": "The maximum number of items to return in a single page. By default 20 and at most 100.",
20027	//       "format": "int32",
20028	//       "location": "query",
20029	//       "type": "integer"
20030	//     },
20031	//     "pageToken": {
20032	//       "description": "The next_page_token value returned from a previous list request.",
20033	//       "location": "query",
20034	//       "type": "string"
20035	//     },
20036	//     "parent": {
20037	//       "description": "Required. The Environment to list all environments for. Format: `projects//locations//agents//environments/`.",
20038	//       "location": "path",
20039	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+$",
20040	//       "required": true,
20041	//       "type": "string"
20042	//     }
20043	//   },
20044	//   "path": "v3beta1/{+parent}/experiments",
20045	//   "response": {
20046	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListExperimentsResponse"
20047	//   },
20048	//   "scopes": [
20049	//     "https://www.googleapis.com/auth/cloud-platform",
20050	//     "https://www.googleapis.com/auth/dialogflow"
20051	//   ]
20052	// }
20053
20054}
20055
20056// Pages invokes f for each page of results.
20057// A non-nil error returned from f will halt the iteration.
20058// The provided context supersedes any context provided to the Context method.
20059func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListExperimentsResponse) error) error {
20060	c.ctx_ = ctx
20061	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
20062	for {
20063		x, err := c.Do()
20064		if err != nil {
20065			return err
20066		}
20067		if err := f(x); err != nil {
20068			return err
20069		}
20070		if x.NextPageToken == "" {
20071			return nil
20072		}
20073		c.PageToken(x.NextPageToken)
20074	}
20075}
20076
20077// method id "dialogflow.projects.locations.agents.environments.experiments.patch":
20078
20079type ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall struct {
20080	s                                        *Service
20081	name                                     string
20082	googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment
20083	urlParams_                               gensupport.URLParams
20084	ctx_                                     context.Context
20085	header_                                  http.Header
20086}
20087
20088// Patch: Updates the specified Experiment.
20089func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Patch(name string, googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
20090	c := &ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20091	c.name = name
20092	c.googleclouddialogflowcxv3beta1experiment = googleclouddialogflowcxv3beta1experiment
20093	return c
20094}
20095
20096// UpdateMask sets the optional parameter "updateMask": Required. The
20097// mask to control which fields get updated.
20098func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
20099	c.urlParams_.Set("updateMask", updateMask)
20100	return c
20101}
20102
20103// Fields allows partial responses to be retrieved. See
20104// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20105// for more information.
20106func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
20107	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20108	return c
20109}
20110
20111// Context sets the context to be used in this call's Do method. Any
20112// pending HTTP request will be aborted if the provided context is
20113// canceled.
20114func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
20115	c.ctx_ = ctx
20116	return c
20117}
20118
20119// Header returns an http.Header that can be modified by the caller to
20120// add HTTP headers to the request.
20121func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Header() http.Header {
20122	if c.header_ == nil {
20123		c.header_ = make(http.Header)
20124	}
20125	return c.header_
20126}
20127
20128func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) doRequest(alt string) (*http.Response, error) {
20129	reqHeaders := make(http.Header)
20130	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20131	for k, v := range c.header_ {
20132		reqHeaders[k] = v
20133	}
20134	reqHeaders.Set("User-Agent", c.s.userAgent())
20135	var body io.Reader = nil
20136	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1experiment)
20137	if err != nil {
20138		return nil, err
20139	}
20140	reqHeaders.Set("Content-Type", "application/json")
20141	c.urlParams_.Set("alt", alt)
20142	c.urlParams_.Set("prettyPrint", "false")
20143	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
20144	urls += "?" + c.urlParams_.Encode()
20145	req, err := http.NewRequest("PATCH", urls, body)
20146	if err != nil {
20147		return nil, err
20148	}
20149	req.Header = reqHeaders
20150	googleapi.Expand(req.URL, map[string]string{
20151		"name": c.name,
20152	})
20153	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20154}
20155
20156// Do executes the "dialogflow.projects.locations.agents.environments.experiments.patch" call.
20157// Exactly one of *GoogleCloudDialogflowCxV3beta1Experiment or error
20158// will be non-nil. Any non-2xx status code is an error. Response
20159// headers are in either
20160// *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or
20161// (if a response was returned at all) in
20162// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20163// whether the returned error was because http.StatusNotModified was
20164// returned.
20165func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
20166	gensupport.SetOptions(c.urlParams_, opts...)
20167	res, err := c.doRequest("json")
20168	if res != nil && res.StatusCode == http.StatusNotModified {
20169		if res.Body != nil {
20170			res.Body.Close()
20171		}
20172		return nil, &googleapi.Error{
20173			Code:   res.StatusCode,
20174			Header: res.Header,
20175		}
20176	}
20177	if err != nil {
20178		return nil, err
20179	}
20180	defer googleapi.CloseBody(res)
20181	if err := googleapi.CheckResponse(res); err != nil {
20182		return nil, err
20183	}
20184	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
20185		ServerResponse: googleapi.ServerResponse{
20186			Header:         res.Header,
20187			HTTPStatusCode: res.StatusCode,
20188		},
20189	}
20190	target := &ret
20191	if err := gensupport.DecodeResponse(target, res); err != nil {
20192		return nil, err
20193	}
20194	return ret, nil
20195	// {
20196	//   "description": "Updates the specified Experiment.",
20197	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/experiments/{experimentsId}",
20198	//   "httpMethod": "PATCH",
20199	//   "id": "dialogflow.projects.locations.agents.environments.experiments.patch",
20200	//   "parameterOrder": [
20201	//     "name"
20202	//   ],
20203	//   "parameters": {
20204	//     "name": {
20205	//       "description": "The name of the experiment. Format: projects//locations//agents//environments//experiments/..",
20206	//       "location": "path",
20207	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$",
20208	//       "required": true,
20209	//       "type": "string"
20210	//     },
20211	//     "updateMask": {
20212	//       "description": "Required. The mask to control which fields get updated.",
20213	//       "format": "google-fieldmask",
20214	//       "location": "query",
20215	//       "type": "string"
20216	//     }
20217	//   },
20218	//   "path": "v3beta1/{+name}",
20219	//   "request": {
20220	//     "$ref": "GoogleCloudDialogflowCxV3beta1Experiment"
20221	//   },
20222	//   "response": {
20223	//     "$ref": "GoogleCloudDialogflowCxV3beta1Experiment"
20224	//   },
20225	//   "scopes": [
20226	//     "https://www.googleapis.com/auth/cloud-platform",
20227	//     "https://www.googleapis.com/auth/dialogflow"
20228	//   ]
20229	// }
20230
20231}
20232
20233// method id "dialogflow.projects.locations.agents.environments.experiments.start":
20234
20235type ProjectsLocationsAgentsEnvironmentsExperimentsStartCall struct {
20236	s                                                    *Service
20237	name                                                 string
20238	googleclouddialogflowcxv3beta1startexperimentrequest *GoogleCloudDialogflowCxV3beta1StartExperimentRequest
20239	urlParams_                                           gensupport.URLParams
20240	ctx_                                                 context.Context
20241	header_                                              http.Header
20242}
20243
20244// Start: Starts the specified Experiment. This rpc only changes the
20245// state of experiment from PENDING to RUNNING.
20246func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Start(name string, googleclouddialogflowcxv3beta1startexperimentrequest *GoogleCloudDialogflowCxV3beta1StartExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
20247	c := &ProjectsLocationsAgentsEnvironmentsExperimentsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20248	c.name = name
20249	c.googleclouddialogflowcxv3beta1startexperimentrequest = googleclouddialogflowcxv3beta1startexperimentrequest
20250	return c
20251}
20252
20253// Fields allows partial responses to be retrieved. See
20254// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20255// for more information.
20256func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
20257	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20258	return c
20259}
20260
20261// Context sets the context to be used in this call's Do method. Any
20262// pending HTTP request will be aborted if the provided context is
20263// canceled.
20264func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
20265	c.ctx_ = ctx
20266	return c
20267}
20268
20269// Header returns an http.Header that can be modified by the caller to
20270// add HTTP headers to the request.
20271func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Header() http.Header {
20272	if c.header_ == nil {
20273		c.header_ = make(http.Header)
20274	}
20275	return c.header_
20276}
20277
20278func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) doRequest(alt string) (*http.Response, error) {
20279	reqHeaders := make(http.Header)
20280	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20281	for k, v := range c.header_ {
20282		reqHeaders[k] = v
20283	}
20284	reqHeaders.Set("User-Agent", c.s.userAgent())
20285	var body io.Reader = nil
20286	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1startexperimentrequest)
20287	if err != nil {
20288		return nil, err
20289	}
20290	reqHeaders.Set("Content-Type", "application/json")
20291	c.urlParams_.Set("alt", alt)
20292	c.urlParams_.Set("prettyPrint", "false")
20293	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:start")
20294	urls += "?" + c.urlParams_.Encode()
20295	req, err := http.NewRequest("POST", urls, body)
20296	if err != nil {
20297		return nil, err
20298	}
20299	req.Header = reqHeaders
20300	googleapi.Expand(req.URL, map[string]string{
20301		"name": c.name,
20302	})
20303	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20304}
20305
20306// Do executes the "dialogflow.projects.locations.agents.environments.experiments.start" call.
20307// Exactly one of *GoogleCloudDialogflowCxV3beta1Experiment or error
20308// will be non-nil. Any non-2xx status code is an error. Response
20309// headers are in either
20310// *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or
20311// (if a response was returned at all) in
20312// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20313// whether the returned error was because http.StatusNotModified was
20314// returned.
20315func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
20316	gensupport.SetOptions(c.urlParams_, opts...)
20317	res, err := c.doRequest("json")
20318	if res != nil && res.StatusCode == http.StatusNotModified {
20319		if res.Body != nil {
20320			res.Body.Close()
20321		}
20322		return nil, &googleapi.Error{
20323			Code:   res.StatusCode,
20324			Header: res.Header,
20325		}
20326	}
20327	if err != nil {
20328		return nil, err
20329	}
20330	defer googleapi.CloseBody(res)
20331	if err := googleapi.CheckResponse(res); err != nil {
20332		return nil, err
20333	}
20334	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
20335		ServerResponse: googleapi.ServerResponse{
20336			Header:         res.Header,
20337			HTTPStatusCode: res.StatusCode,
20338		},
20339	}
20340	target := &ret
20341	if err := gensupport.DecodeResponse(target, res); err != nil {
20342		return nil, err
20343	}
20344	return ret, nil
20345	// {
20346	//   "description": "Starts the specified Experiment. This rpc only changes the state of experiment from PENDING to RUNNING.",
20347	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/experiments/{experimentsId}:start",
20348	//   "httpMethod": "POST",
20349	//   "id": "dialogflow.projects.locations.agents.environments.experiments.start",
20350	//   "parameterOrder": [
20351	//     "name"
20352	//   ],
20353	//   "parameters": {
20354	//     "name": {
20355	//       "description": "Required. Resource name of the experiment to start. Format: `projects//locations//agents//environments//experiments/`.",
20356	//       "location": "path",
20357	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$",
20358	//       "required": true,
20359	//       "type": "string"
20360	//     }
20361	//   },
20362	//   "path": "v3beta1/{+name}:start",
20363	//   "request": {
20364	//     "$ref": "GoogleCloudDialogflowCxV3beta1StartExperimentRequest"
20365	//   },
20366	//   "response": {
20367	//     "$ref": "GoogleCloudDialogflowCxV3beta1Experiment"
20368	//   },
20369	//   "scopes": [
20370	//     "https://www.googleapis.com/auth/cloud-platform",
20371	//     "https://www.googleapis.com/auth/dialogflow"
20372	//   ]
20373	// }
20374
20375}
20376
20377// method id "dialogflow.projects.locations.agents.environments.experiments.stop":
20378
20379type ProjectsLocationsAgentsEnvironmentsExperimentsStopCall struct {
20380	s                                                   *Service
20381	name                                                string
20382	googleclouddialogflowcxv3beta1stopexperimentrequest *GoogleCloudDialogflowCxV3beta1StopExperimentRequest
20383	urlParams_                                          gensupport.URLParams
20384	ctx_                                                context.Context
20385	header_                                             http.Header
20386}
20387
20388// Stop: Stops the specified Experiment. This rpc only changes the state
20389// of experiment from RUNNING to DONE.
20390func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Stop(name string, googleclouddialogflowcxv3beta1stopexperimentrequest *GoogleCloudDialogflowCxV3beta1StopExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
20391	c := &ProjectsLocationsAgentsEnvironmentsExperimentsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20392	c.name = name
20393	c.googleclouddialogflowcxv3beta1stopexperimentrequest = googleclouddialogflowcxv3beta1stopexperimentrequest
20394	return c
20395}
20396
20397// Fields allows partial responses to be retrieved. See
20398// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20399// for more information.
20400func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
20401	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20402	return c
20403}
20404
20405// Context sets the context to be used in this call's Do method. Any
20406// pending HTTP request will be aborted if the provided context is
20407// canceled.
20408func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
20409	c.ctx_ = ctx
20410	return c
20411}
20412
20413// Header returns an http.Header that can be modified by the caller to
20414// add HTTP headers to the request.
20415func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Header() http.Header {
20416	if c.header_ == nil {
20417		c.header_ = make(http.Header)
20418	}
20419	return c.header_
20420}
20421
20422func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) doRequest(alt string) (*http.Response, error) {
20423	reqHeaders := make(http.Header)
20424	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20425	for k, v := range c.header_ {
20426		reqHeaders[k] = v
20427	}
20428	reqHeaders.Set("User-Agent", c.s.userAgent())
20429	var body io.Reader = nil
20430	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1stopexperimentrequest)
20431	if err != nil {
20432		return nil, err
20433	}
20434	reqHeaders.Set("Content-Type", "application/json")
20435	c.urlParams_.Set("alt", alt)
20436	c.urlParams_.Set("prettyPrint", "false")
20437	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:stop")
20438	urls += "?" + c.urlParams_.Encode()
20439	req, err := http.NewRequest("POST", urls, body)
20440	if err != nil {
20441		return nil, err
20442	}
20443	req.Header = reqHeaders
20444	googleapi.Expand(req.URL, map[string]string{
20445		"name": c.name,
20446	})
20447	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20448}
20449
20450// Do executes the "dialogflow.projects.locations.agents.environments.experiments.stop" call.
20451// Exactly one of *GoogleCloudDialogflowCxV3beta1Experiment or error
20452// will be non-nil. Any non-2xx status code is an error. Response
20453// headers are in either
20454// *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or
20455// (if a response was returned at all) in
20456// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20457// whether the returned error was because http.StatusNotModified was
20458// returned.
20459func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
20460	gensupport.SetOptions(c.urlParams_, opts...)
20461	res, err := c.doRequest("json")
20462	if res != nil && res.StatusCode == http.StatusNotModified {
20463		if res.Body != nil {
20464			res.Body.Close()
20465		}
20466		return nil, &googleapi.Error{
20467			Code:   res.StatusCode,
20468			Header: res.Header,
20469		}
20470	}
20471	if err != nil {
20472		return nil, err
20473	}
20474	defer googleapi.CloseBody(res)
20475	if err := googleapi.CheckResponse(res); err != nil {
20476		return nil, err
20477	}
20478	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
20479		ServerResponse: googleapi.ServerResponse{
20480			Header:         res.Header,
20481			HTTPStatusCode: res.StatusCode,
20482		},
20483	}
20484	target := &ret
20485	if err := gensupport.DecodeResponse(target, res); err != nil {
20486		return nil, err
20487	}
20488	return ret, nil
20489	// {
20490	//   "description": "Stops the specified Experiment. This rpc only changes the state of experiment from RUNNING to DONE.",
20491	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/experiments/{experimentsId}:stop",
20492	//   "httpMethod": "POST",
20493	//   "id": "dialogflow.projects.locations.agents.environments.experiments.stop",
20494	//   "parameterOrder": [
20495	//     "name"
20496	//   ],
20497	//   "parameters": {
20498	//     "name": {
20499	//       "description": "Required. Resource name of the experiment to stop. Format: `projects//locations//agents//environments//experiments/`.",
20500	//       "location": "path",
20501	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/experiments/[^/]+$",
20502	//       "required": true,
20503	//       "type": "string"
20504	//     }
20505	//   },
20506	//   "path": "v3beta1/{+name}:stop",
20507	//   "request": {
20508	//     "$ref": "GoogleCloudDialogflowCxV3beta1StopExperimentRequest"
20509	//   },
20510	//   "response": {
20511	//     "$ref": "GoogleCloudDialogflowCxV3beta1Experiment"
20512	//   },
20513	//   "scopes": [
20514	//     "https://www.googleapis.com/auth/cloud-platform",
20515	//     "https://www.googleapis.com/auth/dialogflow"
20516	//   ]
20517	// }
20518
20519}
20520
20521// method id "dialogflow.projects.locations.agents.environments.sessions.detectIntent":
20522
20523type ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall struct {
20524	s                                                 *Service
20525	sessionid                                         string
20526	googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
20527	urlParams_                                        gensupport.URLParams
20528	ctx_                                              context.Context
20529	header_                                           http.Header
20530}
20531
20532// DetectIntent: Processes a natural language query and returns
20533// structured, actionable data as a result. This method is not
20534// idempotent, because it may cause session entity types to be updated,
20535// which in turn might affect results of future queries. Note: Always
20536// use agent versions for production traffic. See Versions and
20537// environments
20538// (https://cloud.google.com/dialogflow/cx/docs/concept/version).
20539func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
20540	c := &ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20541	c.sessionid = sessionid
20542	c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
20543	return c
20544}
20545
20546// Fields allows partial responses to be retrieved. See
20547// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20548// for more information.
20549func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
20550	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20551	return c
20552}
20553
20554// Context sets the context to be used in this call's Do method. Any
20555// pending HTTP request will be aborted if the provided context is
20556// canceled.
20557func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
20558	c.ctx_ = ctx
20559	return c
20560}
20561
20562// Header returns an http.Header that can be modified by the caller to
20563// add HTTP headers to the request.
20564func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Header() http.Header {
20565	if c.header_ == nil {
20566		c.header_ = make(http.Header)
20567	}
20568	return c.header_
20569}
20570
20571func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
20572	reqHeaders := make(http.Header)
20573	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20574	for k, v := range c.header_ {
20575		reqHeaders[k] = v
20576	}
20577	reqHeaders.Set("User-Agent", c.s.userAgent())
20578	var body io.Reader = nil
20579	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
20580	if err != nil {
20581		return nil, err
20582	}
20583	reqHeaders.Set("Content-Type", "application/json")
20584	c.urlParams_.Set("alt", alt)
20585	c.urlParams_.Set("prettyPrint", "false")
20586	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:detectIntent")
20587	urls += "?" + c.urlParams_.Encode()
20588	req, err := http.NewRequest("POST", urls, body)
20589	if err != nil {
20590		return nil, err
20591	}
20592	req.Header = reqHeaders
20593	googleapi.Expand(req.URL, map[string]string{
20594		"session": c.sessionid,
20595	})
20596	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20597}
20598
20599// Do executes the "dialogflow.projects.locations.agents.environments.sessions.detectIntent" call.
20600// Exactly one of *GoogleCloudDialogflowCxV3beta1DetectIntentResponse or
20601// error will be non-nil. Any non-2xx status code is an error. Response
20602// headers are in either
20603// *GoogleCloudDialogflowCxV3beta1DetectIntentResponse.ServerResponse.Hea
20604// der or (if a response was returned at all) in
20605// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20606// whether the returned error was because http.StatusNotModified was
20607// returned.
20608func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
20609	gensupport.SetOptions(c.urlParams_, opts...)
20610	res, err := c.doRequest("json")
20611	if res != nil && res.StatusCode == http.StatusNotModified {
20612		if res.Body != nil {
20613			res.Body.Close()
20614		}
20615		return nil, &googleapi.Error{
20616			Code:   res.StatusCode,
20617			Header: res.Header,
20618		}
20619	}
20620	if err != nil {
20621		return nil, err
20622	}
20623	defer googleapi.CloseBody(res)
20624	if err := googleapi.CheckResponse(res); err != nil {
20625		return nil, err
20626	}
20627	ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
20628		ServerResponse: googleapi.ServerResponse{
20629			Header:         res.Header,
20630			HTTPStatusCode: res.StatusCode,
20631		},
20632	}
20633	target := &ret
20634	if err := gensupport.DecodeResponse(target, res); err != nil {
20635		return nil, err
20636	}
20637	return ret, nil
20638	// {
20639	//   "description": "Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause 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/cx/docs/concept/version).",
20640	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}:detectIntent",
20641	//   "httpMethod": "POST",
20642	//   "id": "dialogflow.projects.locations.agents.environments.sessions.detectIntent",
20643	//   "parameterOrder": [
20644	//     "session"
20645	//   ],
20646	//   "parameters": {
20647	//     "session": {
20648	//       "description": "Required. The name of the session this query is sent to. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).",
20649	//       "location": "path",
20650	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$",
20651	//       "required": true,
20652	//       "type": "string"
20653	//     }
20654	//   },
20655	//   "path": "v3beta1/{+session}:detectIntent",
20656	//   "request": {
20657	//     "$ref": "GoogleCloudDialogflowCxV3beta1DetectIntentRequest"
20658	//   },
20659	//   "response": {
20660	//     "$ref": "GoogleCloudDialogflowCxV3beta1DetectIntentResponse"
20661	//   },
20662	//   "scopes": [
20663	//     "https://www.googleapis.com/auth/cloud-platform",
20664	//     "https://www.googleapis.com/auth/dialogflow"
20665	//   ]
20666	// }
20667
20668}
20669
20670// method id "dialogflow.projects.locations.agents.environments.sessions.fulfillIntent":
20671
20672type ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall struct {
20673	s                                                  *Service
20674	sessionid                                          string
20675	googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
20676	urlParams_                                         gensupport.URLParams
20677	ctx_                                               context.Context
20678	header_                                            http.Header
20679}
20680
20681// FulfillIntent: Fulfills a matched intent returned by MatchIntent.
20682// Must be called after MatchIntent, with input from
20683// MatchIntentResponse. Otherwise, the behavior is undefined.
20684func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
20685	c := &ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20686	c.sessionid = sessionid
20687	c.googleclouddialogflowcxv3beta1fulfillintentrequest = googleclouddialogflowcxv3beta1fulfillintentrequest
20688	return c
20689}
20690
20691// Fields allows partial responses to be retrieved. See
20692// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20693// for more information.
20694func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
20695	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20696	return c
20697}
20698
20699// Context sets the context to be used in this call's Do method. Any
20700// pending HTTP request will be aborted if the provided context is
20701// canceled.
20702func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
20703	c.ctx_ = ctx
20704	return c
20705}
20706
20707// Header returns an http.Header that can be modified by the caller to
20708// add HTTP headers to the request.
20709func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Header() http.Header {
20710	if c.header_ == nil {
20711		c.header_ = make(http.Header)
20712	}
20713	return c.header_
20714}
20715
20716func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
20717	reqHeaders := make(http.Header)
20718	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20719	for k, v := range c.header_ {
20720		reqHeaders[k] = v
20721	}
20722	reqHeaders.Set("User-Agent", c.s.userAgent())
20723	var body io.Reader = nil
20724	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1fulfillintentrequest)
20725	if err != nil {
20726		return nil, err
20727	}
20728	reqHeaders.Set("Content-Type", "application/json")
20729	c.urlParams_.Set("alt", alt)
20730	c.urlParams_.Set("prettyPrint", "false")
20731	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:fulfillIntent")
20732	urls += "?" + c.urlParams_.Encode()
20733	req, err := http.NewRequest("POST", urls, body)
20734	if err != nil {
20735		return nil, err
20736	}
20737	req.Header = reqHeaders
20738	googleapi.Expand(req.URL, map[string]string{
20739		"session": c.sessionid,
20740	})
20741	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20742}
20743
20744// Do executes the "dialogflow.projects.locations.agents.environments.sessions.fulfillIntent" call.
20745// Exactly one of *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
20746// or error will be non-nil. Any non-2xx status code is an error.
20747// Response headers are in either
20748// *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse.ServerResponse.He
20749// ader or (if a response was returned at all) in
20750// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20751// whether the returned error was because http.StatusNotModified was
20752// returned.
20753func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FulfillIntentResponse, error) {
20754	gensupport.SetOptions(c.urlParams_, opts...)
20755	res, err := c.doRequest("json")
20756	if res != nil && res.StatusCode == http.StatusNotModified {
20757		if res.Body != nil {
20758			res.Body.Close()
20759		}
20760		return nil, &googleapi.Error{
20761			Code:   res.StatusCode,
20762			Header: res.Header,
20763		}
20764	}
20765	if err != nil {
20766		return nil, err
20767	}
20768	defer googleapi.CloseBody(res)
20769	if err := googleapi.CheckResponse(res); err != nil {
20770		return nil, err
20771	}
20772	ret := &GoogleCloudDialogflowCxV3beta1FulfillIntentResponse{
20773		ServerResponse: googleapi.ServerResponse{
20774			Header:         res.Header,
20775			HTTPStatusCode: res.StatusCode,
20776		},
20777	}
20778	target := &ret
20779	if err := gensupport.DecodeResponse(target, res); err != nil {
20780		return nil, err
20781	}
20782	return ret, nil
20783	// {
20784	//   "description": "Fulfills a matched intent returned by MatchIntent. Must be called after MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is undefined.",
20785	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}:fulfillIntent",
20786	//   "httpMethod": "POST",
20787	//   "id": "dialogflow.projects.locations.agents.environments.sessions.fulfillIntent",
20788	//   "parameterOrder": [
20789	//     "session"
20790	//   ],
20791	//   "parameters": {
20792	//     "session": {
20793	//       "description": "Required. The name of the session this query is sent to. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).",
20794	//       "location": "path",
20795	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$",
20796	//       "required": true,
20797	//       "type": "string"
20798	//     }
20799	//   },
20800	//   "path": "v3beta1/{+session}:fulfillIntent",
20801	//   "request": {
20802	//     "$ref": "GoogleCloudDialogflowCxV3beta1FulfillIntentRequest"
20803	//   },
20804	//   "response": {
20805	//     "$ref": "GoogleCloudDialogflowCxV3beta1FulfillIntentResponse"
20806	//   },
20807	//   "scopes": [
20808	//     "https://www.googleapis.com/auth/cloud-platform",
20809	//     "https://www.googleapis.com/auth/dialogflow"
20810	//   ]
20811	// }
20812
20813}
20814
20815// method id "dialogflow.projects.locations.agents.environments.sessions.matchIntent":
20816
20817type ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall struct {
20818	s                                                *Service
20819	sessionid                                        string
20820	googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest
20821	urlParams_                                       gensupport.URLParams
20822	ctx_                                             context.Context
20823	header_                                          http.Header
20824}
20825
20826// MatchIntent: Returns preliminary intent match results, doesn't change
20827// the session status.
20828func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
20829	c := &ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20830	c.sessionid = sessionid
20831	c.googleclouddialogflowcxv3beta1matchintentrequest = googleclouddialogflowcxv3beta1matchintentrequest
20832	return c
20833}
20834
20835// Fields allows partial responses to be retrieved. See
20836// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20837// for more information.
20838func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
20839	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20840	return c
20841}
20842
20843// Context sets the context to be used in this call's Do method. Any
20844// pending HTTP request will be aborted if the provided context is
20845// canceled.
20846func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
20847	c.ctx_ = ctx
20848	return c
20849}
20850
20851// Header returns an http.Header that can be modified by the caller to
20852// add HTTP headers to the request.
20853func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Header() http.Header {
20854	if c.header_ == nil {
20855		c.header_ = make(http.Header)
20856	}
20857	return c.header_
20858}
20859
20860func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
20861	reqHeaders := make(http.Header)
20862	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
20863	for k, v := range c.header_ {
20864		reqHeaders[k] = v
20865	}
20866	reqHeaders.Set("User-Agent", c.s.userAgent())
20867	var body io.Reader = nil
20868	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1matchintentrequest)
20869	if err != nil {
20870		return nil, err
20871	}
20872	reqHeaders.Set("Content-Type", "application/json")
20873	c.urlParams_.Set("alt", alt)
20874	c.urlParams_.Set("prettyPrint", "false")
20875	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:matchIntent")
20876	urls += "?" + c.urlParams_.Encode()
20877	req, err := http.NewRequest("POST", urls, body)
20878	if err != nil {
20879		return nil, err
20880	}
20881	req.Header = reqHeaders
20882	googleapi.Expand(req.URL, map[string]string{
20883		"session": c.sessionid,
20884	})
20885	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20886}
20887
20888// Do executes the "dialogflow.projects.locations.agents.environments.sessions.matchIntent" call.
20889// Exactly one of *GoogleCloudDialogflowCxV3beta1MatchIntentResponse or
20890// error will be non-nil. Any non-2xx status code is an error. Response
20891// headers are in either
20892// *GoogleCloudDialogflowCxV3beta1MatchIntentResponse.ServerResponse.Head
20893// er or (if a response was returned at all) in
20894// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20895// whether the returned error was because http.StatusNotModified was
20896// returned.
20897func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1MatchIntentResponse, error) {
20898	gensupport.SetOptions(c.urlParams_, opts...)
20899	res, err := c.doRequest("json")
20900	if res != nil && res.StatusCode == http.StatusNotModified {
20901		if res.Body != nil {
20902			res.Body.Close()
20903		}
20904		return nil, &googleapi.Error{
20905			Code:   res.StatusCode,
20906			Header: res.Header,
20907		}
20908	}
20909	if err != nil {
20910		return nil, err
20911	}
20912	defer googleapi.CloseBody(res)
20913	if err := googleapi.CheckResponse(res); err != nil {
20914		return nil, err
20915	}
20916	ret := &GoogleCloudDialogflowCxV3beta1MatchIntentResponse{
20917		ServerResponse: googleapi.ServerResponse{
20918			Header:         res.Header,
20919			HTTPStatusCode: res.StatusCode,
20920		},
20921	}
20922	target := &ret
20923	if err := gensupport.DecodeResponse(target, res); err != nil {
20924		return nil, err
20925	}
20926	return ret, nil
20927	// {
20928	//   "description": "Returns preliminary intent match results, doesn't change the session status.",
20929	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}:matchIntent",
20930	//   "httpMethod": "POST",
20931	//   "id": "dialogflow.projects.locations.agents.environments.sessions.matchIntent",
20932	//   "parameterOrder": [
20933	//     "session"
20934	//   ],
20935	//   "parameters": {
20936	//     "session": {
20937	//       "description": "Required. The name of the session this query is sent to. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).",
20938	//       "location": "path",
20939	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$",
20940	//       "required": true,
20941	//       "type": "string"
20942	//     }
20943	//   },
20944	//   "path": "v3beta1/{+session}:matchIntent",
20945	//   "request": {
20946	//     "$ref": "GoogleCloudDialogflowCxV3beta1MatchIntentRequest"
20947	//   },
20948	//   "response": {
20949	//     "$ref": "GoogleCloudDialogflowCxV3beta1MatchIntentResponse"
20950	//   },
20951	//   "scopes": [
20952	//     "https://www.googleapis.com/auth/cloud-platform",
20953	//     "https://www.googleapis.com/auth/dialogflow"
20954	//   ]
20955	// }
20956
20957}
20958
20959// method id "dialogflow.projects.locations.agents.environments.sessions.entityTypes.create":
20960
20961type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall struct {
20962	s                                               *Service
20963	parent                                          string
20964	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
20965	urlParams_                                      gensupport.URLParams
20966	ctx_                                            context.Context
20967	header_                                         http.Header
20968}
20969
20970// Create: Creates a session entity type.
20971func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
20972	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20973	c.parent = parent
20974	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
20975	return c
20976}
20977
20978// Fields allows partial responses to be retrieved. See
20979// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20980// for more information.
20981func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
20982	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20983	return c
20984}
20985
20986// Context sets the context to be used in this call's Do method. Any
20987// pending HTTP request will be aborted if the provided context is
20988// canceled.
20989func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
20990	c.ctx_ = ctx
20991	return c
20992}
20993
20994// Header returns an http.Header that can be modified by the caller to
20995// add HTTP headers to the request.
20996func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Header() http.Header {
20997	if c.header_ == nil {
20998		c.header_ = make(http.Header)
20999	}
21000	return c.header_
21001}
21002
21003func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
21004	reqHeaders := make(http.Header)
21005	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21006	for k, v := range c.header_ {
21007		reqHeaders[k] = v
21008	}
21009	reqHeaders.Set("User-Agent", c.s.userAgent())
21010	var body io.Reader = nil
21011	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
21012	if err != nil {
21013		return nil, err
21014	}
21015	reqHeaders.Set("Content-Type", "application/json")
21016	c.urlParams_.Set("alt", alt)
21017	c.urlParams_.Set("prettyPrint", "false")
21018	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
21019	urls += "?" + c.urlParams_.Encode()
21020	req, err := http.NewRequest("POST", urls, body)
21021	if err != nil {
21022		return nil, err
21023	}
21024	req.Header = reqHeaders
21025	googleapi.Expand(req.URL, map[string]string{
21026		"parent": c.parent,
21027	})
21028	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21029}
21030
21031// Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.create" call.
21032// Exactly one of *GoogleCloudDialogflowCxV3beta1SessionEntityType or
21033// error will be non-nil. Any non-2xx status code is an error. Response
21034// headers are in either
21035// *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header
21036//  or (if a response was returned at all) in
21037// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21038// whether the returned error was because http.StatusNotModified was
21039// returned.
21040func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
21041	gensupport.SetOptions(c.urlParams_, opts...)
21042	res, err := c.doRequest("json")
21043	if res != nil && res.StatusCode == http.StatusNotModified {
21044		if res.Body != nil {
21045			res.Body.Close()
21046		}
21047		return nil, &googleapi.Error{
21048			Code:   res.StatusCode,
21049			Header: res.Header,
21050		}
21051	}
21052	if err != nil {
21053		return nil, err
21054	}
21055	defer googleapi.CloseBody(res)
21056	if err := googleapi.CheckResponse(res); err != nil {
21057		return nil, err
21058	}
21059	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
21060		ServerResponse: googleapi.ServerResponse{
21061			Header:         res.Header,
21062			HTTPStatusCode: res.StatusCode,
21063		},
21064	}
21065	target := &ret
21066	if err := gensupport.DecodeResponse(target, res); err != nil {
21067		return nil, err
21068	}
21069	return ret, nil
21070	// {
21071	//   "description": "Creates a session entity type.",
21072	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}/entityTypes",
21073	//   "httpMethod": "POST",
21074	//   "id": "dialogflow.projects.locations.agents.environments.sessions.entityTypes.create",
21075	//   "parameterOrder": [
21076	//     "parent"
21077	//   ],
21078	//   "parameters": {
21079	//     "parent": {
21080	//       "description": "Required. The session to create a session entity type for. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
21081	//       "location": "path",
21082	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$",
21083	//       "required": true,
21084	//       "type": "string"
21085	//     }
21086	//   },
21087	//   "path": "v3beta1/{+parent}/entityTypes",
21088	//   "request": {
21089	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
21090	//   },
21091	//   "response": {
21092	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
21093	//   },
21094	//   "scopes": [
21095	//     "https://www.googleapis.com/auth/cloud-platform",
21096	//     "https://www.googleapis.com/auth/dialogflow"
21097	//   ]
21098	// }
21099
21100}
21101
21102// method id "dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete":
21103
21104type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall struct {
21105	s          *Service
21106	name       string
21107	urlParams_ gensupport.URLParams
21108	ctx_       context.Context
21109	header_    http.Header
21110}
21111
21112// Delete: Deletes the specified session entity type.
21113func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
21114	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21115	c.name = name
21116	return c
21117}
21118
21119// Fields allows partial responses to be retrieved. See
21120// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21121// for more information.
21122func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
21123	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21124	return c
21125}
21126
21127// Context sets the context to be used in this call's Do method. Any
21128// pending HTTP request will be aborted if the provided context is
21129// canceled.
21130func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
21131	c.ctx_ = ctx
21132	return c
21133}
21134
21135// Header returns an http.Header that can be modified by the caller to
21136// add HTTP headers to the request.
21137func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Header() http.Header {
21138	if c.header_ == nil {
21139		c.header_ = make(http.Header)
21140	}
21141	return c.header_
21142}
21143
21144func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
21145	reqHeaders := make(http.Header)
21146	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21147	for k, v := range c.header_ {
21148		reqHeaders[k] = v
21149	}
21150	reqHeaders.Set("User-Agent", c.s.userAgent())
21151	var body io.Reader = nil
21152	c.urlParams_.Set("alt", alt)
21153	c.urlParams_.Set("prettyPrint", "false")
21154	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
21155	urls += "?" + c.urlParams_.Encode()
21156	req, err := http.NewRequest("DELETE", urls, body)
21157	if err != nil {
21158		return nil, err
21159	}
21160	req.Header = reqHeaders
21161	googleapi.Expand(req.URL, map[string]string{
21162		"name": c.name,
21163	})
21164	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21165}
21166
21167// Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete" call.
21168// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21169// non-2xx status code is an error. Response headers are in either
21170// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21171// returned at all) in error.(*googleapi.Error).Header. Use
21172// googleapi.IsNotModified to check whether the returned error was
21173// because http.StatusNotModified was returned.
21174func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21175	gensupport.SetOptions(c.urlParams_, opts...)
21176	res, err := c.doRequest("json")
21177	if res != nil && res.StatusCode == http.StatusNotModified {
21178		if res.Body != nil {
21179			res.Body.Close()
21180		}
21181		return nil, &googleapi.Error{
21182			Code:   res.StatusCode,
21183			Header: res.Header,
21184		}
21185	}
21186	if err != nil {
21187		return nil, err
21188	}
21189	defer googleapi.CloseBody(res)
21190	if err := googleapi.CheckResponse(res); err != nil {
21191		return nil, err
21192	}
21193	ret := &GoogleProtobufEmpty{
21194		ServerResponse: googleapi.ServerResponse{
21195			Header:         res.Header,
21196			HTTPStatusCode: res.StatusCode,
21197		},
21198	}
21199	target := &ret
21200	if err := gensupport.DecodeResponse(target, res); err != nil {
21201		return nil, err
21202	}
21203	return ret, nil
21204	// {
21205	//   "description": "Deletes the specified session entity type.",
21206	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
21207	//   "httpMethod": "DELETE",
21208	//   "id": "dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete",
21209	//   "parameterOrder": [
21210	//     "name"
21211	//   ],
21212	//   "parameters": {
21213	//     "name": {
21214	//       "description": "Required. The name of the session entity type to delete. Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
21215	//       "location": "path",
21216	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
21217	//       "required": true,
21218	//       "type": "string"
21219	//     }
21220	//   },
21221	//   "path": "v3beta1/{+name}",
21222	//   "response": {
21223	//     "$ref": "GoogleProtobufEmpty"
21224	//   },
21225	//   "scopes": [
21226	//     "https://www.googleapis.com/auth/cloud-platform",
21227	//     "https://www.googleapis.com/auth/dialogflow"
21228	//   ]
21229	// }
21230
21231}
21232
21233// method id "dialogflow.projects.locations.agents.environments.sessions.entityTypes.get":
21234
21235type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall struct {
21236	s            *Service
21237	name         string
21238	urlParams_   gensupport.URLParams
21239	ifNoneMatch_ string
21240	ctx_         context.Context
21241	header_      http.Header
21242}
21243
21244// Get: Retrieves the specified session entity type.
21245func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
21246	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21247	c.name = name
21248	return c
21249}
21250
21251// Fields allows partial responses to be retrieved. See
21252// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21253// for more information.
21254func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
21255	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21256	return c
21257}
21258
21259// IfNoneMatch sets the optional parameter which makes the operation
21260// fail if the object's ETag matches the given value. This is useful for
21261// getting updates only after the object has changed since the last
21262// request. Use googleapi.IsNotModified to check whether the response
21263// error from Do is the result of In-None-Match.
21264func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
21265	c.ifNoneMatch_ = entityTag
21266	return c
21267}
21268
21269// Context sets the context to be used in this call's Do method. Any
21270// pending HTTP request will be aborted if the provided context is
21271// canceled.
21272func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
21273	c.ctx_ = ctx
21274	return c
21275}
21276
21277// Header returns an http.Header that can be modified by the caller to
21278// add HTTP headers to the request.
21279func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Header() http.Header {
21280	if c.header_ == nil {
21281		c.header_ = make(http.Header)
21282	}
21283	return c.header_
21284}
21285
21286func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
21287	reqHeaders := make(http.Header)
21288	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21289	for k, v := range c.header_ {
21290		reqHeaders[k] = v
21291	}
21292	reqHeaders.Set("User-Agent", c.s.userAgent())
21293	if c.ifNoneMatch_ != "" {
21294		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21295	}
21296	var body io.Reader = nil
21297	c.urlParams_.Set("alt", alt)
21298	c.urlParams_.Set("prettyPrint", "false")
21299	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
21300	urls += "?" + c.urlParams_.Encode()
21301	req, err := http.NewRequest("GET", urls, body)
21302	if err != nil {
21303		return nil, err
21304	}
21305	req.Header = reqHeaders
21306	googleapi.Expand(req.URL, map[string]string{
21307		"name": c.name,
21308	})
21309	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21310}
21311
21312// Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.get" call.
21313// Exactly one of *GoogleCloudDialogflowCxV3beta1SessionEntityType or
21314// error will be non-nil. Any non-2xx status code is an error. Response
21315// headers are in either
21316// *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header
21317//  or (if a response was returned at all) in
21318// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21319// whether the returned error was because http.StatusNotModified was
21320// returned.
21321func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
21322	gensupport.SetOptions(c.urlParams_, opts...)
21323	res, err := c.doRequest("json")
21324	if res != nil && res.StatusCode == http.StatusNotModified {
21325		if res.Body != nil {
21326			res.Body.Close()
21327		}
21328		return nil, &googleapi.Error{
21329			Code:   res.StatusCode,
21330			Header: res.Header,
21331		}
21332	}
21333	if err != nil {
21334		return nil, err
21335	}
21336	defer googleapi.CloseBody(res)
21337	if err := googleapi.CheckResponse(res); err != nil {
21338		return nil, err
21339	}
21340	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
21341		ServerResponse: googleapi.ServerResponse{
21342			Header:         res.Header,
21343			HTTPStatusCode: res.StatusCode,
21344		},
21345	}
21346	target := &ret
21347	if err := gensupport.DecodeResponse(target, res); err != nil {
21348		return nil, err
21349	}
21350	return ret, nil
21351	// {
21352	//   "description": "Retrieves the specified session entity type.",
21353	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
21354	//   "httpMethod": "GET",
21355	//   "id": "dialogflow.projects.locations.agents.environments.sessions.entityTypes.get",
21356	//   "parameterOrder": [
21357	//     "name"
21358	//   ],
21359	//   "parameters": {
21360	//     "name": {
21361	//       "description": "Required. The name of the session entity type. Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
21362	//       "location": "path",
21363	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
21364	//       "required": true,
21365	//       "type": "string"
21366	//     }
21367	//   },
21368	//   "path": "v3beta1/{+name}",
21369	//   "response": {
21370	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
21371	//   },
21372	//   "scopes": [
21373	//     "https://www.googleapis.com/auth/cloud-platform",
21374	//     "https://www.googleapis.com/auth/dialogflow"
21375	//   ]
21376	// }
21377
21378}
21379
21380// method id "dialogflow.projects.locations.agents.environments.sessions.entityTypes.list":
21381
21382type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall struct {
21383	s            *Service
21384	parent       string
21385	urlParams_   gensupport.URLParams
21386	ifNoneMatch_ string
21387	ctx_         context.Context
21388	header_      http.Header
21389}
21390
21391// List: Returns the list of all session entity types in the specified
21392// session.
21393func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
21394	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21395	c.parent = parent
21396	return c
21397}
21398
21399// PageSize sets the optional parameter "pageSize": The maximum number
21400// of items to return in a single page. By default 100 and at most 1000.
21401func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
21402	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21403	return c
21404}
21405
21406// PageToken sets the optional parameter "pageToken": The
21407// next_page_token value returned from a previous list request.
21408func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
21409	c.urlParams_.Set("pageToken", pageToken)
21410	return c
21411}
21412
21413// Fields allows partial responses to be retrieved. See
21414// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21415// for more information.
21416func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
21417	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21418	return c
21419}
21420
21421// IfNoneMatch sets the optional parameter which makes the operation
21422// fail if the object's ETag matches the given value. This is useful for
21423// getting updates only after the object has changed since the last
21424// request. Use googleapi.IsNotModified to check whether the response
21425// error from Do is the result of In-None-Match.
21426func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
21427	c.ifNoneMatch_ = entityTag
21428	return c
21429}
21430
21431// Context sets the context to be used in this call's Do method. Any
21432// pending HTTP request will be aborted if the provided context is
21433// canceled.
21434func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
21435	c.ctx_ = ctx
21436	return c
21437}
21438
21439// Header returns an http.Header that can be modified by the caller to
21440// add HTTP headers to the request.
21441func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Header() http.Header {
21442	if c.header_ == nil {
21443		c.header_ = make(http.Header)
21444	}
21445	return c.header_
21446}
21447
21448func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
21449	reqHeaders := make(http.Header)
21450	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21451	for k, v := range c.header_ {
21452		reqHeaders[k] = v
21453	}
21454	reqHeaders.Set("User-Agent", c.s.userAgent())
21455	if c.ifNoneMatch_ != "" {
21456		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21457	}
21458	var body io.Reader = nil
21459	c.urlParams_.Set("alt", alt)
21460	c.urlParams_.Set("prettyPrint", "false")
21461	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
21462	urls += "?" + c.urlParams_.Encode()
21463	req, err := http.NewRequest("GET", urls, body)
21464	if err != nil {
21465		return nil, err
21466	}
21467	req.Header = reqHeaders
21468	googleapi.Expand(req.URL, map[string]string{
21469		"parent": c.parent,
21470	})
21471	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21472}
21473
21474// Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.list" call.
21475// Exactly one of
21476// *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse or
21477// error will be non-nil. Any non-2xx status code is an error. Response
21478// headers are in either
21479// *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse.ServerRe
21480// sponse.Header or (if a response was returned at all) in
21481// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21482// whether the returned error was because http.StatusNotModified was
21483// returned.
21484func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse, error) {
21485	gensupport.SetOptions(c.urlParams_, opts...)
21486	res, err := c.doRequest("json")
21487	if res != nil && res.StatusCode == http.StatusNotModified {
21488		if res.Body != nil {
21489			res.Body.Close()
21490		}
21491		return nil, &googleapi.Error{
21492			Code:   res.StatusCode,
21493			Header: res.Header,
21494		}
21495	}
21496	if err != nil {
21497		return nil, err
21498	}
21499	defer googleapi.CloseBody(res)
21500	if err := googleapi.CheckResponse(res); err != nil {
21501		return nil, err
21502	}
21503	ret := &GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse{
21504		ServerResponse: googleapi.ServerResponse{
21505			Header:         res.Header,
21506			HTTPStatusCode: res.StatusCode,
21507		},
21508	}
21509	target := &ret
21510	if err := gensupport.DecodeResponse(target, res); err != nil {
21511		return nil, err
21512	}
21513	return ret, nil
21514	// {
21515	//   "description": "Returns the list of all session entity types in the specified session.",
21516	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}/entityTypes",
21517	//   "httpMethod": "GET",
21518	//   "id": "dialogflow.projects.locations.agents.environments.sessions.entityTypes.list",
21519	//   "parameterOrder": [
21520	//     "parent"
21521	//   ],
21522	//   "parameters": {
21523	//     "pageSize": {
21524	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
21525	//       "format": "int32",
21526	//       "location": "query",
21527	//       "type": "integer"
21528	//     },
21529	//     "pageToken": {
21530	//       "description": "The next_page_token value returned from a previous list request.",
21531	//       "location": "query",
21532	//       "type": "string"
21533	//     },
21534	//     "parent": {
21535	//       "description": "Required. The session to list all session entity types from. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
21536	//       "location": "path",
21537	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+$",
21538	//       "required": true,
21539	//       "type": "string"
21540	//     }
21541	//   },
21542	//   "path": "v3beta1/{+parent}/entityTypes",
21543	//   "response": {
21544	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse"
21545	//   },
21546	//   "scopes": [
21547	//     "https://www.googleapis.com/auth/cloud-platform",
21548	//     "https://www.googleapis.com/auth/dialogflow"
21549	//   ]
21550	// }
21551
21552}
21553
21554// Pages invokes f for each page of results.
21555// A non-nil error returned from f will halt the iteration.
21556// The provided context supersedes any context provided to the Context method.
21557func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) error) error {
21558	c.ctx_ = ctx
21559	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
21560	for {
21561		x, err := c.Do()
21562		if err != nil {
21563			return err
21564		}
21565		if err := f(x); err != nil {
21566			return err
21567		}
21568		if x.NextPageToken == "" {
21569			return nil
21570		}
21571		c.PageToken(x.NextPageToken)
21572	}
21573}
21574
21575// method id "dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch":
21576
21577type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall struct {
21578	s                                               *Service
21579	nameid                                          string
21580	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
21581	urlParams_                                      gensupport.URLParams
21582	ctx_                                            context.Context
21583	header_                                         http.Header
21584}
21585
21586// Patch: Updates the specified session entity type.
21587func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
21588	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21589	c.nameid = nameid
21590	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
21591	return c
21592}
21593
21594// UpdateMask sets the optional parameter "updateMask": The mask to
21595// control which fields get updated.
21596func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
21597	c.urlParams_.Set("updateMask", updateMask)
21598	return c
21599}
21600
21601// Fields allows partial responses to be retrieved. See
21602// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21603// for more information.
21604func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
21605	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21606	return c
21607}
21608
21609// Context sets the context to be used in this call's Do method. Any
21610// pending HTTP request will be aborted if the provided context is
21611// canceled.
21612func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
21613	c.ctx_ = ctx
21614	return c
21615}
21616
21617// Header returns an http.Header that can be modified by the caller to
21618// add HTTP headers to the request.
21619func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Header() http.Header {
21620	if c.header_ == nil {
21621		c.header_ = make(http.Header)
21622	}
21623	return c.header_
21624}
21625
21626func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
21627	reqHeaders := make(http.Header)
21628	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21629	for k, v := range c.header_ {
21630		reqHeaders[k] = v
21631	}
21632	reqHeaders.Set("User-Agent", c.s.userAgent())
21633	var body io.Reader = nil
21634	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
21635	if err != nil {
21636		return nil, err
21637	}
21638	reqHeaders.Set("Content-Type", "application/json")
21639	c.urlParams_.Set("alt", alt)
21640	c.urlParams_.Set("prettyPrint", "false")
21641	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
21642	urls += "?" + c.urlParams_.Encode()
21643	req, err := http.NewRequest("PATCH", urls, body)
21644	if err != nil {
21645		return nil, err
21646	}
21647	req.Header = reqHeaders
21648	googleapi.Expand(req.URL, map[string]string{
21649		"name": c.nameid,
21650	})
21651	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21652}
21653
21654// Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch" call.
21655// Exactly one of *GoogleCloudDialogflowCxV3beta1SessionEntityType or
21656// error will be non-nil. Any non-2xx status code is an error. Response
21657// headers are in either
21658// *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header
21659//  or (if a response was returned at all) in
21660// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21661// whether the returned error was because http.StatusNotModified was
21662// returned.
21663func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
21664	gensupport.SetOptions(c.urlParams_, opts...)
21665	res, err := c.doRequest("json")
21666	if res != nil && res.StatusCode == http.StatusNotModified {
21667		if res.Body != nil {
21668			res.Body.Close()
21669		}
21670		return nil, &googleapi.Error{
21671			Code:   res.StatusCode,
21672			Header: res.Header,
21673		}
21674	}
21675	if err != nil {
21676		return nil, err
21677	}
21678	defer googleapi.CloseBody(res)
21679	if err := googleapi.CheckResponse(res); err != nil {
21680		return nil, err
21681	}
21682	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
21683		ServerResponse: googleapi.ServerResponse{
21684			Header:         res.Header,
21685			HTTPStatusCode: res.StatusCode,
21686		},
21687	}
21688	target := &ret
21689	if err := gensupport.DecodeResponse(target, res); err != nil {
21690		return nil, err
21691	}
21692	return ret, nil
21693	// {
21694	//   "description": "Updates the specified session entity type.",
21695	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/environments/{environmentsId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
21696	//   "httpMethod": "PATCH",
21697	//   "id": "dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch",
21698	//   "parameterOrder": [
21699	//     "name"
21700	//   ],
21701	//   "parameters": {
21702	//     "name": {
21703	//       "description": "Required. The unique identifier of the session entity type. Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
21704	//       "location": "path",
21705	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/environments/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
21706	//       "required": true,
21707	//       "type": "string"
21708	//     },
21709	//     "updateMask": {
21710	//       "description": "The mask to control which fields get updated.",
21711	//       "format": "google-fieldmask",
21712	//       "location": "query",
21713	//       "type": "string"
21714	//     }
21715	//   },
21716	//   "path": "v3beta1/{+name}",
21717	//   "request": {
21718	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
21719	//   },
21720	//   "response": {
21721	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
21722	//   },
21723	//   "scopes": [
21724	//     "https://www.googleapis.com/auth/cloud-platform",
21725	//     "https://www.googleapis.com/auth/dialogflow"
21726	//   ]
21727	// }
21728
21729}
21730
21731// method id "dialogflow.projects.locations.agents.flows.create":
21732
21733type ProjectsLocationsAgentsFlowsCreateCall struct {
21734	s                                  *Service
21735	parent                             string
21736	googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow
21737	urlParams_                         gensupport.URLParams
21738	ctx_                               context.Context
21739	header_                            http.Header
21740}
21741
21742// Create: Creates a flow in the specified agent.
21743func (r *ProjectsLocationsAgentsFlowsService) Create(parent string, googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow) *ProjectsLocationsAgentsFlowsCreateCall {
21744	c := &ProjectsLocationsAgentsFlowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21745	c.parent = parent
21746	c.googleclouddialogflowcxv3beta1flow = googleclouddialogflowcxv3beta1flow
21747	return c
21748}
21749
21750// LanguageCode sets the optional parameter "languageCode": The language
21751// of the following fields in `flow`: *
21752// `Flow.event_handlers.trigger_fulfillment.messages` *
21753// `Flow.transition_routes.trigger_fulfillment.messages` If not
21754// specified, the agent's default language is used. Many languages
21755// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
21756// supported. Note: languages must be enabled in the agent before they
21757// can be used.
21758func (c *ProjectsLocationsAgentsFlowsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsCreateCall {
21759	c.urlParams_.Set("languageCode", languageCode)
21760	return c
21761}
21762
21763// Fields allows partial responses to be retrieved. See
21764// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21765// for more information.
21766func (c *ProjectsLocationsAgentsFlowsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsCreateCall {
21767	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21768	return c
21769}
21770
21771// Context sets the context to be used in this call's Do method. Any
21772// pending HTTP request will be aborted if the provided context is
21773// canceled.
21774func (c *ProjectsLocationsAgentsFlowsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsCreateCall {
21775	c.ctx_ = ctx
21776	return c
21777}
21778
21779// Header returns an http.Header that can be modified by the caller to
21780// add HTTP headers to the request.
21781func (c *ProjectsLocationsAgentsFlowsCreateCall) Header() http.Header {
21782	if c.header_ == nil {
21783		c.header_ = make(http.Header)
21784	}
21785	return c.header_
21786}
21787
21788func (c *ProjectsLocationsAgentsFlowsCreateCall) doRequest(alt string) (*http.Response, error) {
21789	reqHeaders := make(http.Header)
21790	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21791	for k, v := range c.header_ {
21792		reqHeaders[k] = v
21793	}
21794	reqHeaders.Set("User-Agent", c.s.userAgent())
21795	var body io.Reader = nil
21796	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1flow)
21797	if err != nil {
21798		return nil, err
21799	}
21800	reqHeaders.Set("Content-Type", "application/json")
21801	c.urlParams_.Set("alt", alt)
21802	c.urlParams_.Set("prettyPrint", "false")
21803	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows")
21804	urls += "?" + c.urlParams_.Encode()
21805	req, err := http.NewRequest("POST", urls, body)
21806	if err != nil {
21807		return nil, err
21808	}
21809	req.Header = reqHeaders
21810	googleapi.Expand(req.URL, map[string]string{
21811		"parent": c.parent,
21812	})
21813	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21814}
21815
21816// Do executes the "dialogflow.projects.locations.agents.flows.create" call.
21817// Exactly one of *GoogleCloudDialogflowCxV3beta1Flow or error will be
21818// non-nil. Any non-2xx status code is an error. Response headers are in
21819// either *GoogleCloudDialogflowCxV3beta1Flow.ServerResponse.Header or
21820// (if a response was returned at all) in
21821// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21822// whether the returned error was because http.StatusNotModified was
21823// returned.
21824func (c *ProjectsLocationsAgentsFlowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
21825	gensupport.SetOptions(c.urlParams_, opts...)
21826	res, err := c.doRequest("json")
21827	if res != nil && res.StatusCode == http.StatusNotModified {
21828		if res.Body != nil {
21829			res.Body.Close()
21830		}
21831		return nil, &googleapi.Error{
21832			Code:   res.StatusCode,
21833			Header: res.Header,
21834		}
21835	}
21836	if err != nil {
21837		return nil, err
21838	}
21839	defer googleapi.CloseBody(res)
21840	if err := googleapi.CheckResponse(res); err != nil {
21841		return nil, err
21842	}
21843	ret := &GoogleCloudDialogflowCxV3beta1Flow{
21844		ServerResponse: googleapi.ServerResponse{
21845			Header:         res.Header,
21846			HTTPStatusCode: res.StatusCode,
21847		},
21848	}
21849	target := &ret
21850	if err := gensupport.DecodeResponse(target, res); err != nil {
21851		return nil, err
21852	}
21853	return ret, nil
21854	// {
21855	//   "description": "Creates a flow in the specified agent.",
21856	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows",
21857	//   "httpMethod": "POST",
21858	//   "id": "dialogflow.projects.locations.agents.flows.create",
21859	//   "parameterOrder": [
21860	//     "parent"
21861	//   ],
21862	//   "parameters": {
21863	//     "languageCode": {
21864	//       "description": "The language of the following fields in `flow`: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
21865	//       "location": "query",
21866	//       "type": "string"
21867	//     },
21868	//     "parent": {
21869	//       "description": "Required. The agent to create a flow for. Format: `projects//locations//agents/`.",
21870	//       "location": "path",
21871	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
21872	//       "required": true,
21873	//       "type": "string"
21874	//     }
21875	//   },
21876	//   "path": "v3beta1/{+parent}/flows",
21877	//   "request": {
21878	//     "$ref": "GoogleCloudDialogflowCxV3beta1Flow"
21879	//   },
21880	//   "response": {
21881	//     "$ref": "GoogleCloudDialogflowCxV3beta1Flow"
21882	//   },
21883	//   "scopes": [
21884	//     "https://www.googleapis.com/auth/cloud-platform",
21885	//     "https://www.googleapis.com/auth/dialogflow"
21886	//   ]
21887	// }
21888
21889}
21890
21891// method id "dialogflow.projects.locations.agents.flows.delete":
21892
21893type ProjectsLocationsAgentsFlowsDeleteCall struct {
21894	s          *Service
21895	name       string
21896	urlParams_ gensupport.URLParams
21897	ctx_       context.Context
21898	header_    http.Header
21899}
21900
21901// Delete: Deletes a specified flow.
21902func (r *ProjectsLocationsAgentsFlowsService) Delete(name string) *ProjectsLocationsAgentsFlowsDeleteCall {
21903	c := &ProjectsLocationsAgentsFlowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21904	c.name = name
21905	return c
21906}
21907
21908// Force sets the optional parameter "force": This field has no effect
21909// for flows with no incoming transitions. For flows with incoming
21910// transitions: * If `force` is set to false, an error will be returned
21911// with message indicating the incoming transitions. * If `force` is set
21912// to true, Dialogflow will remove the flow, as well as any transitions
21913// to the flow (i.e. Target flow in event handlers or Target flow in
21914// transition routes that point to this flow will be cleared).
21915func (c *ProjectsLocationsAgentsFlowsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsDeleteCall {
21916	c.urlParams_.Set("force", fmt.Sprint(force))
21917	return c
21918}
21919
21920// Fields allows partial responses to be retrieved. See
21921// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21922// for more information.
21923func (c *ProjectsLocationsAgentsFlowsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsDeleteCall {
21924	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21925	return c
21926}
21927
21928// Context sets the context to be used in this call's Do method. Any
21929// pending HTTP request will be aborted if the provided context is
21930// canceled.
21931func (c *ProjectsLocationsAgentsFlowsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsDeleteCall {
21932	c.ctx_ = ctx
21933	return c
21934}
21935
21936// Header returns an http.Header that can be modified by the caller to
21937// add HTTP headers to the request.
21938func (c *ProjectsLocationsAgentsFlowsDeleteCall) Header() http.Header {
21939	if c.header_ == nil {
21940		c.header_ = make(http.Header)
21941	}
21942	return c.header_
21943}
21944
21945func (c *ProjectsLocationsAgentsFlowsDeleteCall) doRequest(alt string) (*http.Response, error) {
21946	reqHeaders := make(http.Header)
21947	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
21948	for k, v := range c.header_ {
21949		reqHeaders[k] = v
21950	}
21951	reqHeaders.Set("User-Agent", c.s.userAgent())
21952	var body io.Reader = nil
21953	c.urlParams_.Set("alt", alt)
21954	c.urlParams_.Set("prettyPrint", "false")
21955	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
21956	urls += "?" + c.urlParams_.Encode()
21957	req, err := http.NewRequest("DELETE", urls, body)
21958	if err != nil {
21959		return nil, err
21960	}
21961	req.Header = reqHeaders
21962	googleapi.Expand(req.URL, map[string]string{
21963		"name": c.name,
21964	})
21965	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21966}
21967
21968// Do executes the "dialogflow.projects.locations.agents.flows.delete" call.
21969// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21970// non-2xx status code is an error. Response headers are in either
21971// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21972// returned at all) in error.(*googleapi.Error).Header. Use
21973// googleapi.IsNotModified to check whether the returned error was
21974// because http.StatusNotModified was returned.
21975func (c *ProjectsLocationsAgentsFlowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21976	gensupport.SetOptions(c.urlParams_, opts...)
21977	res, err := c.doRequest("json")
21978	if res != nil && res.StatusCode == http.StatusNotModified {
21979		if res.Body != nil {
21980			res.Body.Close()
21981		}
21982		return nil, &googleapi.Error{
21983			Code:   res.StatusCode,
21984			Header: res.Header,
21985		}
21986	}
21987	if err != nil {
21988		return nil, err
21989	}
21990	defer googleapi.CloseBody(res)
21991	if err := googleapi.CheckResponse(res); err != nil {
21992		return nil, err
21993	}
21994	ret := &GoogleProtobufEmpty{
21995		ServerResponse: googleapi.ServerResponse{
21996			Header:         res.Header,
21997			HTTPStatusCode: res.StatusCode,
21998		},
21999	}
22000	target := &ret
22001	if err := gensupport.DecodeResponse(target, res); err != nil {
22002		return nil, err
22003	}
22004	return ret, nil
22005	// {
22006	//   "description": "Deletes a specified flow.",
22007	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}",
22008	//   "httpMethod": "DELETE",
22009	//   "id": "dialogflow.projects.locations.agents.flows.delete",
22010	//   "parameterOrder": [
22011	//     "name"
22012	//   ],
22013	//   "parameters": {
22014	//     "force": {
22015	//       "description": "This field has no effect for flows with no incoming transitions. For flows with incoming transitions: * If `force` is set to false, an error will be returned with message indicating the incoming transitions. * If `force` is set to true, Dialogflow will remove the flow, as well as any transitions to the flow (i.e. Target flow in event handlers or Target flow in transition routes that point to this flow will be cleared).",
22016	//       "location": "query",
22017	//       "type": "boolean"
22018	//     },
22019	//     "name": {
22020	//       "description": "Required. The name of the flow to delete. Format: `projects//locations//agents//flows/`.",
22021	//       "location": "path",
22022	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
22023	//       "required": true,
22024	//       "type": "string"
22025	//     }
22026	//   },
22027	//   "path": "v3beta1/{+name}",
22028	//   "response": {
22029	//     "$ref": "GoogleProtobufEmpty"
22030	//   },
22031	//   "scopes": [
22032	//     "https://www.googleapis.com/auth/cloud-platform",
22033	//     "https://www.googleapis.com/auth/dialogflow"
22034	//   ]
22035	// }
22036
22037}
22038
22039// method id "dialogflow.projects.locations.agents.flows.get":
22040
22041type ProjectsLocationsAgentsFlowsGetCall struct {
22042	s            *Service
22043	name         string
22044	urlParams_   gensupport.URLParams
22045	ifNoneMatch_ string
22046	ctx_         context.Context
22047	header_      http.Header
22048}
22049
22050// Get: Retrieves the specified flow.
22051func (r *ProjectsLocationsAgentsFlowsService) Get(name string) *ProjectsLocationsAgentsFlowsGetCall {
22052	c := &ProjectsLocationsAgentsFlowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22053	c.name = name
22054	return c
22055}
22056
22057// LanguageCode sets the optional parameter "languageCode": The language
22058// to retrieve the flow for. The following fields are language
22059// dependent: * `Flow.event_handlers.trigger_fulfillment.messages` *
22060// `Flow.transition_routes.trigger_fulfillment.messages` If not
22061// specified, the agent's default language is used. Many languages
22062// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
22063// supported. Note: languages must be enabled in the agent before they
22064// can be used.
22065func (c *ProjectsLocationsAgentsFlowsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetCall {
22066	c.urlParams_.Set("languageCode", languageCode)
22067	return c
22068}
22069
22070// Fields allows partial responses to be retrieved. See
22071// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22072// for more information.
22073func (c *ProjectsLocationsAgentsFlowsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetCall {
22074	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22075	return c
22076}
22077
22078// IfNoneMatch sets the optional parameter which makes the operation
22079// fail if the object's ETag matches the given value. This is useful for
22080// getting updates only after the object has changed since the last
22081// request. Use googleapi.IsNotModified to check whether the response
22082// error from Do is the result of In-None-Match.
22083func (c *ProjectsLocationsAgentsFlowsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetCall {
22084	c.ifNoneMatch_ = entityTag
22085	return c
22086}
22087
22088// Context sets the context to be used in this call's Do method. Any
22089// pending HTTP request will be aborted if the provided context is
22090// canceled.
22091func (c *ProjectsLocationsAgentsFlowsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetCall {
22092	c.ctx_ = ctx
22093	return c
22094}
22095
22096// Header returns an http.Header that can be modified by the caller to
22097// add HTTP headers to the request.
22098func (c *ProjectsLocationsAgentsFlowsGetCall) Header() http.Header {
22099	if c.header_ == nil {
22100		c.header_ = make(http.Header)
22101	}
22102	return c.header_
22103}
22104
22105func (c *ProjectsLocationsAgentsFlowsGetCall) doRequest(alt string) (*http.Response, error) {
22106	reqHeaders := make(http.Header)
22107	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22108	for k, v := range c.header_ {
22109		reqHeaders[k] = v
22110	}
22111	reqHeaders.Set("User-Agent", c.s.userAgent())
22112	if c.ifNoneMatch_ != "" {
22113		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22114	}
22115	var body io.Reader = nil
22116	c.urlParams_.Set("alt", alt)
22117	c.urlParams_.Set("prettyPrint", "false")
22118	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
22119	urls += "?" + c.urlParams_.Encode()
22120	req, err := http.NewRequest("GET", urls, body)
22121	if err != nil {
22122		return nil, err
22123	}
22124	req.Header = reqHeaders
22125	googleapi.Expand(req.URL, map[string]string{
22126		"name": c.name,
22127	})
22128	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22129}
22130
22131// Do executes the "dialogflow.projects.locations.agents.flows.get" call.
22132// Exactly one of *GoogleCloudDialogflowCxV3beta1Flow or error will be
22133// non-nil. Any non-2xx status code is an error. Response headers are in
22134// either *GoogleCloudDialogflowCxV3beta1Flow.ServerResponse.Header or
22135// (if a response was returned at all) in
22136// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22137// whether the returned error was because http.StatusNotModified was
22138// returned.
22139func (c *ProjectsLocationsAgentsFlowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
22140	gensupport.SetOptions(c.urlParams_, opts...)
22141	res, err := c.doRequest("json")
22142	if res != nil && res.StatusCode == http.StatusNotModified {
22143		if res.Body != nil {
22144			res.Body.Close()
22145		}
22146		return nil, &googleapi.Error{
22147			Code:   res.StatusCode,
22148			Header: res.Header,
22149		}
22150	}
22151	if err != nil {
22152		return nil, err
22153	}
22154	defer googleapi.CloseBody(res)
22155	if err := googleapi.CheckResponse(res); err != nil {
22156		return nil, err
22157	}
22158	ret := &GoogleCloudDialogflowCxV3beta1Flow{
22159		ServerResponse: googleapi.ServerResponse{
22160			Header:         res.Header,
22161			HTTPStatusCode: res.StatusCode,
22162		},
22163	}
22164	target := &ret
22165	if err := gensupport.DecodeResponse(target, res); err != nil {
22166		return nil, err
22167	}
22168	return ret, nil
22169	// {
22170	//   "description": "Retrieves the specified flow.",
22171	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}",
22172	//   "httpMethod": "GET",
22173	//   "id": "dialogflow.projects.locations.agents.flows.get",
22174	//   "parameterOrder": [
22175	//     "name"
22176	//   ],
22177	//   "parameters": {
22178	//     "languageCode": {
22179	//       "description": "The language to retrieve the flow for. The following fields are language dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
22180	//       "location": "query",
22181	//       "type": "string"
22182	//     },
22183	//     "name": {
22184	//       "description": "Required. The name of the flow to get. Format: `projects//locations//agents//flows/`.",
22185	//       "location": "path",
22186	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
22187	//       "required": true,
22188	//       "type": "string"
22189	//     }
22190	//   },
22191	//   "path": "v3beta1/{+name}",
22192	//   "response": {
22193	//     "$ref": "GoogleCloudDialogflowCxV3beta1Flow"
22194	//   },
22195	//   "scopes": [
22196	//     "https://www.googleapis.com/auth/cloud-platform",
22197	//     "https://www.googleapis.com/auth/dialogflow"
22198	//   ]
22199	// }
22200
22201}
22202
22203// method id "dialogflow.projects.locations.agents.flows.getValidationResult":
22204
22205type ProjectsLocationsAgentsFlowsGetValidationResultCall struct {
22206	s            *Service
22207	name         string
22208	urlParams_   gensupport.URLParams
22209	ifNoneMatch_ string
22210	ctx_         context.Context
22211	header_      http.Header
22212}
22213
22214// GetValidationResult: Gets the latest flow validation result. Flow
22215// validation is performed when ValidateFlow is called.
22216func (r *ProjectsLocationsAgentsFlowsService) GetValidationResult(name string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
22217	c := &ProjectsLocationsAgentsFlowsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22218	c.name = name
22219	return c
22220}
22221
22222// LanguageCode sets the optional parameter "languageCode": If not
22223// specified, the agent's default language is used.
22224func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
22225	c.urlParams_.Set("languageCode", languageCode)
22226	return c
22227}
22228
22229// Fields allows partial responses to be retrieved. See
22230// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22231// for more information.
22232func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
22233	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22234	return c
22235}
22236
22237// IfNoneMatch sets the optional parameter which makes the operation
22238// fail if the object's ETag matches the given value. This is useful for
22239// getting updates only after the object has changed since the last
22240// request. Use googleapi.IsNotModified to check whether the response
22241// error from Do is the result of In-None-Match.
22242func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
22243	c.ifNoneMatch_ = entityTag
22244	return c
22245}
22246
22247// Context sets the context to be used in this call's Do method. Any
22248// pending HTTP request will be aborted if the provided context is
22249// canceled.
22250func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
22251	c.ctx_ = ctx
22252	return c
22253}
22254
22255// Header returns an http.Header that can be modified by the caller to
22256// add HTTP headers to the request.
22257func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Header() http.Header {
22258	if c.header_ == nil {
22259		c.header_ = make(http.Header)
22260	}
22261	return c.header_
22262}
22263
22264func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
22265	reqHeaders := make(http.Header)
22266	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22267	for k, v := range c.header_ {
22268		reqHeaders[k] = v
22269	}
22270	reqHeaders.Set("User-Agent", c.s.userAgent())
22271	if c.ifNoneMatch_ != "" {
22272		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22273	}
22274	var body io.Reader = nil
22275	c.urlParams_.Set("alt", alt)
22276	c.urlParams_.Set("prettyPrint", "false")
22277	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
22278	urls += "?" + c.urlParams_.Encode()
22279	req, err := http.NewRequest("GET", urls, body)
22280	if err != nil {
22281		return nil, err
22282	}
22283	req.Header = reqHeaders
22284	googleapi.Expand(req.URL, map[string]string{
22285		"name": c.name,
22286	})
22287	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22288}
22289
22290// Do executes the "dialogflow.projects.locations.agents.flows.getValidationResult" call.
22291// Exactly one of *GoogleCloudDialogflowCxV3beta1FlowValidationResult or
22292// error will be non-nil. Any non-2xx status code is an error. Response
22293// headers are in either
22294// *GoogleCloudDialogflowCxV3beta1FlowValidationResult.ServerResponse.Hea
22295// der or (if a response was returned at all) in
22296// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22297// whether the returned error was because http.StatusNotModified was
22298// returned.
22299func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FlowValidationResult, error) {
22300	gensupport.SetOptions(c.urlParams_, opts...)
22301	res, err := c.doRequest("json")
22302	if res != nil && res.StatusCode == http.StatusNotModified {
22303		if res.Body != nil {
22304			res.Body.Close()
22305		}
22306		return nil, &googleapi.Error{
22307			Code:   res.StatusCode,
22308			Header: res.Header,
22309		}
22310	}
22311	if err != nil {
22312		return nil, err
22313	}
22314	defer googleapi.CloseBody(res)
22315	if err := googleapi.CheckResponse(res); err != nil {
22316		return nil, err
22317	}
22318	ret := &GoogleCloudDialogflowCxV3beta1FlowValidationResult{
22319		ServerResponse: googleapi.ServerResponse{
22320			Header:         res.Header,
22321			HTTPStatusCode: res.StatusCode,
22322		},
22323	}
22324	target := &ret
22325	if err := gensupport.DecodeResponse(target, res); err != nil {
22326		return nil, err
22327	}
22328	return ret, nil
22329	// {
22330	//   "description": "Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.",
22331	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/validationResult",
22332	//   "httpMethod": "GET",
22333	//   "id": "dialogflow.projects.locations.agents.flows.getValidationResult",
22334	//   "parameterOrder": [
22335	//     "name"
22336	//   ],
22337	//   "parameters": {
22338	//     "languageCode": {
22339	//       "description": "If not specified, the agent's default language is used.",
22340	//       "location": "query",
22341	//       "type": "string"
22342	//     },
22343	//     "name": {
22344	//       "description": "Required. The flow name. Format: `projects//locations//agents//flows//validationResult`.",
22345	//       "location": "path",
22346	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/validationResult$",
22347	//       "required": true,
22348	//       "type": "string"
22349	//     }
22350	//   },
22351	//   "path": "v3beta1/{+name}",
22352	//   "response": {
22353	//     "$ref": "GoogleCloudDialogflowCxV3beta1FlowValidationResult"
22354	//   },
22355	//   "scopes": [
22356	//     "https://www.googleapis.com/auth/cloud-platform",
22357	//     "https://www.googleapis.com/auth/dialogflow"
22358	//   ]
22359	// }
22360
22361}
22362
22363// method id "dialogflow.projects.locations.agents.flows.list":
22364
22365type ProjectsLocationsAgentsFlowsListCall struct {
22366	s            *Service
22367	parent       string
22368	urlParams_   gensupport.URLParams
22369	ifNoneMatch_ string
22370	ctx_         context.Context
22371	header_      http.Header
22372}
22373
22374// List: Returns the list of all flows in the specified agent.
22375func (r *ProjectsLocationsAgentsFlowsService) List(parent string) *ProjectsLocationsAgentsFlowsListCall {
22376	c := &ProjectsLocationsAgentsFlowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22377	c.parent = parent
22378	return c
22379}
22380
22381// LanguageCode sets the optional parameter "languageCode": The language
22382// to list flows for. The following fields are language dependent: *
22383// `Flow.event_handlers.trigger_fulfillment.messages` *
22384// `Flow.transition_routes.trigger_fulfillment.messages` If not
22385// specified, the agent's default language is used. Many languages
22386// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
22387// supported. Note: languages must be enabled in the agent before they
22388// can be used.
22389func (c *ProjectsLocationsAgentsFlowsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsListCall {
22390	c.urlParams_.Set("languageCode", languageCode)
22391	return c
22392}
22393
22394// PageSize sets the optional parameter "pageSize": The maximum number
22395// of items to return in a single page. By default 100 and at most 1000.
22396func (c *ProjectsLocationsAgentsFlowsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsListCall {
22397	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22398	return c
22399}
22400
22401// PageToken sets the optional parameter "pageToken": The
22402// next_page_token value returned from a previous list request.
22403func (c *ProjectsLocationsAgentsFlowsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsListCall {
22404	c.urlParams_.Set("pageToken", pageToken)
22405	return c
22406}
22407
22408// Fields allows partial responses to be retrieved. See
22409// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22410// for more information.
22411func (c *ProjectsLocationsAgentsFlowsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsListCall {
22412	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22413	return c
22414}
22415
22416// IfNoneMatch sets the optional parameter which makes the operation
22417// fail if the object's ETag matches the given value. This is useful for
22418// getting updates only after the object has changed since the last
22419// request. Use googleapi.IsNotModified to check whether the response
22420// error from Do is the result of In-None-Match.
22421func (c *ProjectsLocationsAgentsFlowsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsListCall {
22422	c.ifNoneMatch_ = entityTag
22423	return c
22424}
22425
22426// Context sets the context to be used in this call's Do method. Any
22427// pending HTTP request will be aborted if the provided context is
22428// canceled.
22429func (c *ProjectsLocationsAgentsFlowsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsListCall {
22430	c.ctx_ = ctx
22431	return c
22432}
22433
22434// Header returns an http.Header that can be modified by the caller to
22435// add HTTP headers to the request.
22436func (c *ProjectsLocationsAgentsFlowsListCall) Header() http.Header {
22437	if c.header_ == nil {
22438		c.header_ = make(http.Header)
22439	}
22440	return c.header_
22441}
22442
22443func (c *ProjectsLocationsAgentsFlowsListCall) doRequest(alt string) (*http.Response, error) {
22444	reqHeaders := make(http.Header)
22445	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22446	for k, v := range c.header_ {
22447		reqHeaders[k] = v
22448	}
22449	reqHeaders.Set("User-Agent", c.s.userAgent())
22450	if c.ifNoneMatch_ != "" {
22451		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22452	}
22453	var body io.Reader = nil
22454	c.urlParams_.Set("alt", alt)
22455	c.urlParams_.Set("prettyPrint", "false")
22456	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows")
22457	urls += "?" + c.urlParams_.Encode()
22458	req, err := http.NewRequest("GET", urls, body)
22459	if err != nil {
22460		return nil, err
22461	}
22462	req.Header = reqHeaders
22463	googleapi.Expand(req.URL, map[string]string{
22464		"parent": c.parent,
22465	})
22466	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22467}
22468
22469// Do executes the "dialogflow.projects.locations.agents.flows.list" call.
22470// Exactly one of *GoogleCloudDialogflowCxV3beta1ListFlowsResponse or
22471// error will be non-nil. Any non-2xx status code is an error. Response
22472// headers are in either
22473// *GoogleCloudDialogflowCxV3beta1ListFlowsResponse.ServerResponse.Header
22474//  or (if a response was returned at all) in
22475// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22476// whether the returned error was because http.StatusNotModified was
22477// returned.
22478func (c *ProjectsLocationsAgentsFlowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListFlowsResponse, error) {
22479	gensupport.SetOptions(c.urlParams_, opts...)
22480	res, err := c.doRequest("json")
22481	if res != nil && res.StatusCode == http.StatusNotModified {
22482		if res.Body != nil {
22483			res.Body.Close()
22484		}
22485		return nil, &googleapi.Error{
22486			Code:   res.StatusCode,
22487			Header: res.Header,
22488		}
22489	}
22490	if err != nil {
22491		return nil, err
22492	}
22493	defer googleapi.CloseBody(res)
22494	if err := googleapi.CheckResponse(res); err != nil {
22495		return nil, err
22496	}
22497	ret := &GoogleCloudDialogflowCxV3beta1ListFlowsResponse{
22498		ServerResponse: googleapi.ServerResponse{
22499			Header:         res.Header,
22500			HTTPStatusCode: res.StatusCode,
22501		},
22502	}
22503	target := &ret
22504	if err := gensupport.DecodeResponse(target, res); err != nil {
22505		return nil, err
22506	}
22507	return ret, nil
22508	// {
22509	//   "description": "Returns the list of all flows in the specified agent.",
22510	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows",
22511	//   "httpMethod": "GET",
22512	//   "id": "dialogflow.projects.locations.agents.flows.list",
22513	//   "parameterOrder": [
22514	//     "parent"
22515	//   ],
22516	//   "parameters": {
22517	//     "languageCode": {
22518	//       "description": "The language to list flows for. The following fields are language dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
22519	//       "location": "query",
22520	//       "type": "string"
22521	//     },
22522	//     "pageSize": {
22523	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
22524	//       "format": "int32",
22525	//       "location": "query",
22526	//       "type": "integer"
22527	//     },
22528	//     "pageToken": {
22529	//       "description": "The next_page_token value returned from a previous list request.",
22530	//       "location": "query",
22531	//       "type": "string"
22532	//     },
22533	//     "parent": {
22534	//       "description": "Required. The agent containing the flows. Format: `projects//locations//agents/`.",
22535	//       "location": "path",
22536	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
22537	//       "required": true,
22538	//       "type": "string"
22539	//     }
22540	//   },
22541	//   "path": "v3beta1/{+parent}/flows",
22542	//   "response": {
22543	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListFlowsResponse"
22544	//   },
22545	//   "scopes": [
22546	//     "https://www.googleapis.com/auth/cloud-platform",
22547	//     "https://www.googleapis.com/auth/dialogflow"
22548	//   ]
22549	// }
22550
22551}
22552
22553// Pages invokes f for each page of results.
22554// A non-nil error returned from f will halt the iteration.
22555// The provided context supersedes any context provided to the Context method.
22556func (c *ProjectsLocationsAgentsFlowsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListFlowsResponse) error) error {
22557	c.ctx_ = ctx
22558	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
22559	for {
22560		x, err := c.Do()
22561		if err != nil {
22562			return err
22563		}
22564		if err := f(x); err != nil {
22565			return err
22566		}
22567		if x.NextPageToken == "" {
22568			return nil
22569		}
22570		c.PageToken(x.NextPageToken)
22571	}
22572}
22573
22574// method id "dialogflow.projects.locations.agents.flows.patch":
22575
22576type ProjectsLocationsAgentsFlowsPatchCall struct {
22577	s                                  *Service
22578	nameid                             string
22579	googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow
22580	urlParams_                         gensupport.URLParams
22581	ctx_                               context.Context
22582	header_                            http.Header
22583}
22584
22585// Patch: Updates the specified flow.
22586func (r *ProjectsLocationsAgentsFlowsService) Patch(nameid string, googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow) *ProjectsLocationsAgentsFlowsPatchCall {
22587	c := &ProjectsLocationsAgentsFlowsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22588	c.nameid = nameid
22589	c.googleclouddialogflowcxv3beta1flow = googleclouddialogflowcxv3beta1flow
22590	return c
22591}
22592
22593// LanguageCode sets the optional parameter "languageCode": The language
22594// of the following fields in `flow`: *
22595// `Flow.event_handlers.trigger_fulfillment.messages` *
22596// `Flow.transition_routes.trigger_fulfillment.messages` If not
22597// specified, the agent's default language is used. Many languages
22598// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
22599// supported. Note: languages must be enabled in the agent before they
22600// can be used.
22601func (c *ProjectsLocationsAgentsFlowsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPatchCall {
22602	c.urlParams_.Set("languageCode", languageCode)
22603	return c
22604}
22605
22606// UpdateMask sets the optional parameter "updateMask": Required. The
22607// mask to control which fields get updated. If `update_mask` is not
22608// specified, an error will be returned.
22609func (c *ProjectsLocationsAgentsFlowsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPatchCall {
22610	c.urlParams_.Set("updateMask", updateMask)
22611	return c
22612}
22613
22614// Fields allows partial responses to be retrieved. See
22615// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22616// for more information.
22617func (c *ProjectsLocationsAgentsFlowsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPatchCall {
22618	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22619	return c
22620}
22621
22622// Context sets the context to be used in this call's Do method. Any
22623// pending HTTP request will be aborted if the provided context is
22624// canceled.
22625func (c *ProjectsLocationsAgentsFlowsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPatchCall {
22626	c.ctx_ = ctx
22627	return c
22628}
22629
22630// Header returns an http.Header that can be modified by the caller to
22631// add HTTP headers to the request.
22632func (c *ProjectsLocationsAgentsFlowsPatchCall) Header() http.Header {
22633	if c.header_ == nil {
22634		c.header_ = make(http.Header)
22635	}
22636	return c.header_
22637}
22638
22639func (c *ProjectsLocationsAgentsFlowsPatchCall) doRequest(alt string) (*http.Response, error) {
22640	reqHeaders := make(http.Header)
22641	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22642	for k, v := range c.header_ {
22643		reqHeaders[k] = v
22644	}
22645	reqHeaders.Set("User-Agent", c.s.userAgent())
22646	var body io.Reader = nil
22647	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1flow)
22648	if err != nil {
22649		return nil, err
22650	}
22651	reqHeaders.Set("Content-Type", "application/json")
22652	c.urlParams_.Set("alt", alt)
22653	c.urlParams_.Set("prettyPrint", "false")
22654	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
22655	urls += "?" + c.urlParams_.Encode()
22656	req, err := http.NewRequest("PATCH", urls, body)
22657	if err != nil {
22658		return nil, err
22659	}
22660	req.Header = reqHeaders
22661	googleapi.Expand(req.URL, map[string]string{
22662		"name": c.nameid,
22663	})
22664	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22665}
22666
22667// Do executes the "dialogflow.projects.locations.agents.flows.patch" call.
22668// Exactly one of *GoogleCloudDialogflowCxV3beta1Flow or error will be
22669// non-nil. Any non-2xx status code is an error. Response headers are in
22670// either *GoogleCloudDialogflowCxV3beta1Flow.ServerResponse.Header or
22671// (if a response was returned at all) in
22672// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22673// whether the returned error was because http.StatusNotModified was
22674// returned.
22675func (c *ProjectsLocationsAgentsFlowsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
22676	gensupport.SetOptions(c.urlParams_, opts...)
22677	res, err := c.doRequest("json")
22678	if res != nil && res.StatusCode == http.StatusNotModified {
22679		if res.Body != nil {
22680			res.Body.Close()
22681		}
22682		return nil, &googleapi.Error{
22683			Code:   res.StatusCode,
22684			Header: res.Header,
22685		}
22686	}
22687	if err != nil {
22688		return nil, err
22689	}
22690	defer googleapi.CloseBody(res)
22691	if err := googleapi.CheckResponse(res); err != nil {
22692		return nil, err
22693	}
22694	ret := &GoogleCloudDialogflowCxV3beta1Flow{
22695		ServerResponse: googleapi.ServerResponse{
22696			Header:         res.Header,
22697			HTTPStatusCode: res.StatusCode,
22698		},
22699	}
22700	target := &ret
22701	if err := gensupport.DecodeResponse(target, res); err != nil {
22702		return nil, err
22703	}
22704	return ret, nil
22705	// {
22706	//   "description": "Updates the specified flow.",
22707	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}",
22708	//   "httpMethod": "PATCH",
22709	//   "id": "dialogflow.projects.locations.agents.flows.patch",
22710	//   "parameterOrder": [
22711	//     "name"
22712	//   ],
22713	//   "parameters": {
22714	//     "languageCode": {
22715	//       "description": "The language of the following fields in `flow`: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
22716	//       "location": "query",
22717	//       "type": "string"
22718	//     },
22719	//     "name": {
22720	//       "description": "The unique identifier of the flow. Format: `projects//locations//agents//flows/`.",
22721	//       "location": "path",
22722	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
22723	//       "required": true,
22724	//       "type": "string"
22725	//     },
22726	//     "updateMask": {
22727	//       "description": "Required. The mask to control which fields get updated. If `update_mask` is not specified, an error will be returned.",
22728	//       "format": "google-fieldmask",
22729	//       "location": "query",
22730	//       "type": "string"
22731	//     }
22732	//   },
22733	//   "path": "v3beta1/{+name}",
22734	//   "request": {
22735	//     "$ref": "GoogleCloudDialogflowCxV3beta1Flow"
22736	//   },
22737	//   "response": {
22738	//     "$ref": "GoogleCloudDialogflowCxV3beta1Flow"
22739	//   },
22740	//   "scopes": [
22741	//     "https://www.googleapis.com/auth/cloud-platform",
22742	//     "https://www.googleapis.com/auth/dialogflow"
22743	//   ]
22744	// }
22745
22746}
22747
22748// method id "dialogflow.projects.locations.agents.flows.train":
22749
22750type ProjectsLocationsAgentsFlowsTrainCall struct {
22751	s                                              *Service
22752	name                                           string
22753	googleclouddialogflowcxv3beta1trainflowrequest *GoogleCloudDialogflowCxV3beta1TrainFlowRequest
22754	urlParams_                                     gensupport.URLParams
22755	ctx_                                           context.Context
22756	header_                                        http.Header
22757}
22758
22759// Train: Trains the specified flow. Note that only the flow in 'draft'
22760// environment is trained.
22761func (r *ProjectsLocationsAgentsFlowsService) Train(name string, googleclouddialogflowcxv3beta1trainflowrequest *GoogleCloudDialogflowCxV3beta1TrainFlowRequest) *ProjectsLocationsAgentsFlowsTrainCall {
22762	c := &ProjectsLocationsAgentsFlowsTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22763	c.name = name
22764	c.googleclouddialogflowcxv3beta1trainflowrequest = googleclouddialogflowcxv3beta1trainflowrequest
22765	return c
22766}
22767
22768// Fields allows partial responses to be retrieved. See
22769// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22770// for more information.
22771func (c *ProjectsLocationsAgentsFlowsTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTrainCall {
22772	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22773	return c
22774}
22775
22776// Context sets the context to be used in this call's Do method. Any
22777// pending HTTP request will be aborted if the provided context is
22778// canceled.
22779func (c *ProjectsLocationsAgentsFlowsTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTrainCall {
22780	c.ctx_ = ctx
22781	return c
22782}
22783
22784// Header returns an http.Header that can be modified by the caller to
22785// add HTTP headers to the request.
22786func (c *ProjectsLocationsAgentsFlowsTrainCall) Header() http.Header {
22787	if c.header_ == nil {
22788		c.header_ = make(http.Header)
22789	}
22790	return c.header_
22791}
22792
22793func (c *ProjectsLocationsAgentsFlowsTrainCall) doRequest(alt string) (*http.Response, error) {
22794	reqHeaders := make(http.Header)
22795	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22796	for k, v := range c.header_ {
22797		reqHeaders[k] = v
22798	}
22799	reqHeaders.Set("User-Agent", c.s.userAgent())
22800	var body io.Reader = nil
22801	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1trainflowrequest)
22802	if err != nil {
22803		return nil, err
22804	}
22805	reqHeaders.Set("Content-Type", "application/json")
22806	c.urlParams_.Set("alt", alt)
22807	c.urlParams_.Set("prettyPrint", "false")
22808	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:train")
22809	urls += "?" + c.urlParams_.Encode()
22810	req, err := http.NewRequest("POST", urls, body)
22811	if err != nil {
22812		return nil, err
22813	}
22814	req.Header = reqHeaders
22815	googleapi.Expand(req.URL, map[string]string{
22816		"name": c.name,
22817	})
22818	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22819}
22820
22821// Do executes the "dialogflow.projects.locations.agents.flows.train" call.
22822// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
22823// Any non-2xx status code is an error. Response headers are in either
22824// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
22825// was returned at all) in error.(*googleapi.Error).Header. Use
22826// googleapi.IsNotModified to check whether the returned error was
22827// because http.StatusNotModified was returned.
22828func (c *ProjectsLocationsAgentsFlowsTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22829	gensupport.SetOptions(c.urlParams_, opts...)
22830	res, err := c.doRequest("json")
22831	if res != nil && res.StatusCode == http.StatusNotModified {
22832		if res.Body != nil {
22833			res.Body.Close()
22834		}
22835		return nil, &googleapi.Error{
22836			Code:   res.StatusCode,
22837			Header: res.Header,
22838		}
22839	}
22840	if err != nil {
22841		return nil, err
22842	}
22843	defer googleapi.CloseBody(res)
22844	if err := googleapi.CheckResponse(res); err != nil {
22845		return nil, err
22846	}
22847	ret := &GoogleLongrunningOperation{
22848		ServerResponse: googleapi.ServerResponse{
22849			Header:         res.Header,
22850			HTTPStatusCode: res.StatusCode,
22851		},
22852	}
22853	target := &ret
22854	if err := gensupport.DecodeResponse(target, res); err != nil {
22855		return nil, err
22856	}
22857	return ret, nil
22858	// {
22859	//   "description": "Trains the specified flow. Note that only the flow in 'draft' environment is trained.",
22860	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}:train",
22861	//   "httpMethod": "POST",
22862	//   "id": "dialogflow.projects.locations.agents.flows.train",
22863	//   "parameterOrder": [
22864	//     "name"
22865	//   ],
22866	//   "parameters": {
22867	//     "name": {
22868	//       "description": "Required. The flow to train. Format: `projects//locations//agents//flows/`.",
22869	//       "location": "path",
22870	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
22871	//       "required": true,
22872	//       "type": "string"
22873	//     }
22874	//   },
22875	//   "path": "v3beta1/{+name}:train",
22876	//   "request": {
22877	//     "$ref": "GoogleCloudDialogflowCxV3beta1TrainFlowRequest"
22878	//   },
22879	//   "response": {
22880	//     "$ref": "GoogleLongrunningOperation"
22881	//   },
22882	//   "scopes": [
22883	//     "https://www.googleapis.com/auth/cloud-platform",
22884	//     "https://www.googleapis.com/auth/dialogflow"
22885	//   ]
22886	// }
22887
22888}
22889
22890// method id "dialogflow.projects.locations.agents.flows.validate":
22891
22892type ProjectsLocationsAgentsFlowsValidateCall struct {
22893	s                                                 *Service
22894	name                                              string
22895	googleclouddialogflowcxv3beta1validateflowrequest *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest
22896	urlParams_                                        gensupport.URLParams
22897	ctx_                                              context.Context
22898	header_                                           http.Header
22899}
22900
22901// Validate: Validates the specified flow and creates or updates
22902// validation results. Please call this API after the training is
22903// completed to get the complete validation results.
22904func (r *ProjectsLocationsAgentsFlowsService) Validate(name string, googleclouddialogflowcxv3beta1validateflowrequest *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest) *ProjectsLocationsAgentsFlowsValidateCall {
22905	c := &ProjectsLocationsAgentsFlowsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22906	c.name = name
22907	c.googleclouddialogflowcxv3beta1validateflowrequest = googleclouddialogflowcxv3beta1validateflowrequest
22908	return c
22909}
22910
22911// Fields allows partial responses to be retrieved. See
22912// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22913// for more information.
22914func (c *ProjectsLocationsAgentsFlowsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsValidateCall {
22915	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22916	return c
22917}
22918
22919// Context sets the context to be used in this call's Do method. Any
22920// pending HTTP request will be aborted if the provided context is
22921// canceled.
22922func (c *ProjectsLocationsAgentsFlowsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsValidateCall {
22923	c.ctx_ = ctx
22924	return c
22925}
22926
22927// Header returns an http.Header that can be modified by the caller to
22928// add HTTP headers to the request.
22929func (c *ProjectsLocationsAgentsFlowsValidateCall) Header() http.Header {
22930	if c.header_ == nil {
22931		c.header_ = make(http.Header)
22932	}
22933	return c.header_
22934}
22935
22936func (c *ProjectsLocationsAgentsFlowsValidateCall) doRequest(alt string) (*http.Response, error) {
22937	reqHeaders := make(http.Header)
22938	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
22939	for k, v := range c.header_ {
22940		reqHeaders[k] = v
22941	}
22942	reqHeaders.Set("User-Agent", c.s.userAgent())
22943	var body io.Reader = nil
22944	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1validateflowrequest)
22945	if err != nil {
22946		return nil, err
22947	}
22948	reqHeaders.Set("Content-Type", "application/json")
22949	c.urlParams_.Set("alt", alt)
22950	c.urlParams_.Set("prettyPrint", "false")
22951	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:validate")
22952	urls += "?" + c.urlParams_.Encode()
22953	req, err := http.NewRequest("POST", urls, body)
22954	if err != nil {
22955		return nil, err
22956	}
22957	req.Header = reqHeaders
22958	googleapi.Expand(req.URL, map[string]string{
22959		"name": c.name,
22960	})
22961	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22962}
22963
22964// Do executes the "dialogflow.projects.locations.agents.flows.validate" call.
22965// Exactly one of *GoogleCloudDialogflowCxV3beta1FlowValidationResult or
22966// error will be non-nil. Any non-2xx status code is an error. Response
22967// headers are in either
22968// *GoogleCloudDialogflowCxV3beta1FlowValidationResult.ServerResponse.Hea
22969// der or (if a response was returned at all) in
22970// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22971// whether the returned error was because http.StatusNotModified was
22972// returned.
22973func (c *ProjectsLocationsAgentsFlowsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FlowValidationResult, error) {
22974	gensupport.SetOptions(c.urlParams_, opts...)
22975	res, err := c.doRequest("json")
22976	if res != nil && res.StatusCode == http.StatusNotModified {
22977		if res.Body != nil {
22978			res.Body.Close()
22979		}
22980		return nil, &googleapi.Error{
22981			Code:   res.StatusCode,
22982			Header: res.Header,
22983		}
22984	}
22985	if err != nil {
22986		return nil, err
22987	}
22988	defer googleapi.CloseBody(res)
22989	if err := googleapi.CheckResponse(res); err != nil {
22990		return nil, err
22991	}
22992	ret := &GoogleCloudDialogflowCxV3beta1FlowValidationResult{
22993		ServerResponse: googleapi.ServerResponse{
22994			Header:         res.Header,
22995			HTTPStatusCode: res.StatusCode,
22996		},
22997	}
22998	target := &ret
22999	if err := gensupport.DecodeResponse(target, res); err != nil {
23000		return nil, err
23001	}
23002	return ret, nil
23003	// {
23004	//   "description": "Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.",
23005	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}:validate",
23006	//   "httpMethod": "POST",
23007	//   "id": "dialogflow.projects.locations.agents.flows.validate",
23008	//   "parameterOrder": [
23009	//     "name"
23010	//   ],
23011	//   "parameters": {
23012	//     "name": {
23013	//       "description": "Required. The flow to validate. Format: `projects//locations//agents//flows/`.",
23014	//       "location": "path",
23015	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
23016	//       "required": true,
23017	//       "type": "string"
23018	//     }
23019	//   },
23020	//   "path": "v3beta1/{+name}:validate",
23021	//   "request": {
23022	//     "$ref": "GoogleCloudDialogflowCxV3beta1ValidateFlowRequest"
23023	//   },
23024	//   "response": {
23025	//     "$ref": "GoogleCloudDialogflowCxV3beta1FlowValidationResult"
23026	//   },
23027	//   "scopes": [
23028	//     "https://www.googleapis.com/auth/cloud-platform",
23029	//     "https://www.googleapis.com/auth/dialogflow"
23030	//   ]
23031	// }
23032
23033}
23034
23035// method id "dialogflow.projects.locations.agents.flows.pages.create":
23036
23037type ProjectsLocationsAgentsFlowsPagesCreateCall struct {
23038	s                                  *Service
23039	parent                             string
23040	googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page
23041	urlParams_                         gensupport.URLParams
23042	ctx_                               context.Context
23043	header_                            http.Header
23044}
23045
23046// Create: Creates a page in the specified flow.
23047func (r *ProjectsLocationsAgentsFlowsPagesService) Create(parent string, googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page) *ProjectsLocationsAgentsFlowsPagesCreateCall {
23048	c := &ProjectsLocationsAgentsFlowsPagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23049	c.parent = parent
23050	c.googleclouddialogflowcxv3beta1page = googleclouddialogflowcxv3beta1page
23051	return c
23052}
23053
23054// LanguageCode sets the optional parameter "languageCode": The language
23055// of the following fields in `page`: *
23056// `Page.entry_fulfillment.messages` *
23057// `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.message
23058// s` *
23059// `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
23060// * `Page.transition_routes.trigger_fulfillment.messages` *
23061// `Page.transition_route_groups.transition_routes.trigger_fulfillment.me
23062// ssages` If not specified, the agent's default language is used. Many
23063// languages
23064// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
23065// supported. Note: languages must be enabled in the agent before they
23066// can be used.
23067func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesCreateCall {
23068	c.urlParams_.Set("languageCode", languageCode)
23069	return c
23070}
23071
23072// Fields allows partial responses to be retrieved. See
23073// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23074// for more information.
23075func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesCreateCall {
23076	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23077	return c
23078}
23079
23080// Context sets the context to be used in this call's Do method. Any
23081// pending HTTP request will be aborted if the provided context is
23082// canceled.
23083func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesCreateCall {
23084	c.ctx_ = ctx
23085	return c
23086}
23087
23088// Header returns an http.Header that can be modified by the caller to
23089// add HTTP headers to the request.
23090func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Header() http.Header {
23091	if c.header_ == nil {
23092		c.header_ = make(http.Header)
23093	}
23094	return c.header_
23095}
23096
23097func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) doRequest(alt string) (*http.Response, error) {
23098	reqHeaders := make(http.Header)
23099	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23100	for k, v := range c.header_ {
23101		reqHeaders[k] = v
23102	}
23103	reqHeaders.Set("User-Agent", c.s.userAgent())
23104	var body io.Reader = nil
23105	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1page)
23106	if err != nil {
23107		return nil, err
23108	}
23109	reqHeaders.Set("Content-Type", "application/json")
23110	c.urlParams_.Set("alt", alt)
23111	c.urlParams_.Set("prettyPrint", "false")
23112	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/pages")
23113	urls += "?" + c.urlParams_.Encode()
23114	req, err := http.NewRequest("POST", urls, body)
23115	if err != nil {
23116		return nil, err
23117	}
23118	req.Header = reqHeaders
23119	googleapi.Expand(req.URL, map[string]string{
23120		"parent": c.parent,
23121	})
23122	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23123}
23124
23125// Do executes the "dialogflow.projects.locations.agents.flows.pages.create" call.
23126// Exactly one of *GoogleCloudDialogflowCxV3beta1Page or error will be
23127// non-nil. Any non-2xx status code is an error. Response headers are in
23128// either *GoogleCloudDialogflowCxV3beta1Page.ServerResponse.Header or
23129// (if a response was returned at all) in
23130// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23131// whether the returned error was because http.StatusNotModified was
23132// returned.
23133func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
23134	gensupport.SetOptions(c.urlParams_, opts...)
23135	res, err := c.doRequest("json")
23136	if res != nil && res.StatusCode == http.StatusNotModified {
23137		if res.Body != nil {
23138			res.Body.Close()
23139		}
23140		return nil, &googleapi.Error{
23141			Code:   res.StatusCode,
23142			Header: res.Header,
23143		}
23144	}
23145	if err != nil {
23146		return nil, err
23147	}
23148	defer googleapi.CloseBody(res)
23149	if err := googleapi.CheckResponse(res); err != nil {
23150		return nil, err
23151	}
23152	ret := &GoogleCloudDialogflowCxV3beta1Page{
23153		ServerResponse: googleapi.ServerResponse{
23154			Header:         res.Header,
23155			HTTPStatusCode: res.StatusCode,
23156		},
23157	}
23158	target := &ret
23159	if err := gensupport.DecodeResponse(target, res); err != nil {
23160		return nil, err
23161	}
23162	return ret, nil
23163	// {
23164	//   "description": "Creates a page in the specified flow.",
23165	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/pages",
23166	//   "httpMethod": "POST",
23167	//   "id": "dialogflow.projects.locations.agents.flows.pages.create",
23168	//   "parameterOrder": [
23169	//     "parent"
23170	//   ],
23171	//   "parameters": {
23172	//     "languageCode": {
23173	//       "description": "The language of the following fields in `page`: * `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
23174	//       "location": "query",
23175	//       "type": "string"
23176	//     },
23177	//     "parent": {
23178	//       "description": "Required. The flow to create a page for. Format: `projects//locations//agents//flows/`.",
23179	//       "location": "path",
23180	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
23181	//       "required": true,
23182	//       "type": "string"
23183	//     }
23184	//   },
23185	//   "path": "v3beta1/{+parent}/pages",
23186	//   "request": {
23187	//     "$ref": "GoogleCloudDialogflowCxV3beta1Page"
23188	//   },
23189	//   "response": {
23190	//     "$ref": "GoogleCloudDialogflowCxV3beta1Page"
23191	//   },
23192	//   "scopes": [
23193	//     "https://www.googleapis.com/auth/cloud-platform",
23194	//     "https://www.googleapis.com/auth/dialogflow"
23195	//   ]
23196	// }
23197
23198}
23199
23200// method id "dialogflow.projects.locations.agents.flows.pages.delete":
23201
23202type ProjectsLocationsAgentsFlowsPagesDeleteCall struct {
23203	s          *Service
23204	name       string
23205	urlParams_ gensupport.URLParams
23206	ctx_       context.Context
23207	header_    http.Header
23208}
23209
23210// Delete: Deletes the specified page.
23211func (r *ProjectsLocationsAgentsFlowsPagesService) Delete(name string) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
23212	c := &ProjectsLocationsAgentsFlowsPagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23213	c.name = name
23214	return c
23215}
23216
23217// Force sets the optional parameter "force": This field has no effect
23218// for pages with no incoming transitions. For pages with incoming
23219// transitions: * If `force` is set to false, an error will be returned
23220// with message indicating the incoming transitions. * If `force` is set
23221// to true, Dialogflow will remove the page, as well as any transitions
23222// to the page (i.e. Target page in event handlers or Target page in
23223// transition routes that point to this page will be cleared).
23224func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
23225	c.urlParams_.Set("force", fmt.Sprint(force))
23226	return c
23227}
23228
23229// Fields allows partial responses to be retrieved. See
23230// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23231// for more information.
23232func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
23233	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23234	return c
23235}
23236
23237// Context sets the context to be used in this call's Do method. Any
23238// pending HTTP request will be aborted if the provided context is
23239// canceled.
23240func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
23241	c.ctx_ = ctx
23242	return c
23243}
23244
23245// Header returns an http.Header that can be modified by the caller to
23246// add HTTP headers to the request.
23247func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Header() http.Header {
23248	if c.header_ == nil {
23249		c.header_ = make(http.Header)
23250	}
23251	return c.header_
23252}
23253
23254func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) doRequest(alt string) (*http.Response, error) {
23255	reqHeaders := make(http.Header)
23256	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23257	for k, v := range c.header_ {
23258		reqHeaders[k] = v
23259	}
23260	reqHeaders.Set("User-Agent", c.s.userAgent())
23261	var body io.Reader = nil
23262	c.urlParams_.Set("alt", alt)
23263	c.urlParams_.Set("prettyPrint", "false")
23264	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
23265	urls += "?" + c.urlParams_.Encode()
23266	req, err := http.NewRequest("DELETE", urls, body)
23267	if err != nil {
23268		return nil, err
23269	}
23270	req.Header = reqHeaders
23271	googleapi.Expand(req.URL, map[string]string{
23272		"name": c.name,
23273	})
23274	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23275}
23276
23277// Do executes the "dialogflow.projects.locations.agents.flows.pages.delete" call.
23278// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
23279// non-2xx status code is an error. Response headers are in either
23280// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
23281// returned at all) in error.(*googleapi.Error).Header. Use
23282// googleapi.IsNotModified to check whether the returned error was
23283// because http.StatusNotModified was returned.
23284func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23285	gensupport.SetOptions(c.urlParams_, opts...)
23286	res, err := c.doRequest("json")
23287	if res != nil && res.StatusCode == http.StatusNotModified {
23288		if res.Body != nil {
23289			res.Body.Close()
23290		}
23291		return nil, &googleapi.Error{
23292			Code:   res.StatusCode,
23293			Header: res.Header,
23294		}
23295	}
23296	if err != nil {
23297		return nil, err
23298	}
23299	defer googleapi.CloseBody(res)
23300	if err := googleapi.CheckResponse(res); err != nil {
23301		return nil, err
23302	}
23303	ret := &GoogleProtobufEmpty{
23304		ServerResponse: googleapi.ServerResponse{
23305			Header:         res.Header,
23306			HTTPStatusCode: res.StatusCode,
23307		},
23308	}
23309	target := &ret
23310	if err := gensupport.DecodeResponse(target, res); err != nil {
23311		return nil, err
23312	}
23313	return ret, nil
23314	// {
23315	//   "description": "Deletes the specified page.",
23316	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/pages/{pagesId}",
23317	//   "httpMethod": "DELETE",
23318	//   "id": "dialogflow.projects.locations.agents.flows.pages.delete",
23319	//   "parameterOrder": [
23320	//     "name"
23321	//   ],
23322	//   "parameters": {
23323	//     "force": {
23324	//       "description": "This field has no effect for pages with no incoming transitions. For pages with incoming transitions: * If `force` is set to false, an error will be returned with message indicating the incoming transitions. * If `force` is set to true, Dialogflow will remove the page, as well as any transitions to the page (i.e. Target page in event handlers or Target page in transition routes that point to this page will be cleared).",
23325	//       "location": "query",
23326	//       "type": "boolean"
23327	//     },
23328	//     "name": {
23329	//       "description": "Required. The name of the page to delete. Format: `projects//locations//agents//Flows//pages/`.",
23330	//       "location": "path",
23331	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/pages/[^/]+$",
23332	//       "required": true,
23333	//       "type": "string"
23334	//     }
23335	//   },
23336	//   "path": "v3beta1/{+name}",
23337	//   "response": {
23338	//     "$ref": "GoogleProtobufEmpty"
23339	//   },
23340	//   "scopes": [
23341	//     "https://www.googleapis.com/auth/cloud-platform",
23342	//     "https://www.googleapis.com/auth/dialogflow"
23343	//   ]
23344	// }
23345
23346}
23347
23348// method id "dialogflow.projects.locations.agents.flows.pages.get":
23349
23350type ProjectsLocationsAgentsFlowsPagesGetCall struct {
23351	s            *Service
23352	name         string
23353	urlParams_   gensupport.URLParams
23354	ifNoneMatch_ string
23355	ctx_         context.Context
23356	header_      http.Header
23357}
23358
23359// Get: Retrieves the specified page.
23360func (r *ProjectsLocationsAgentsFlowsPagesService) Get(name string) *ProjectsLocationsAgentsFlowsPagesGetCall {
23361	c := &ProjectsLocationsAgentsFlowsPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23362	c.name = name
23363	return c
23364}
23365
23366// LanguageCode sets the optional parameter "languageCode": The language
23367// to retrieve the page for. The following fields are language
23368// dependent: * `Page.entry_fulfillment.messages` *
23369// `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.message
23370// s` *
23371// `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
23372// * `Page.transition_routes.trigger_fulfillment.messages` *
23373// `Page.transition_route_groups.transition_routes.trigger_fulfillment.me
23374// ssages` If not specified, the agent's default language is used. Many
23375// languages
23376// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
23377// supported. Note: languages must be enabled in the agent before they
23378// can be used.
23379func (c *ProjectsLocationsAgentsFlowsPagesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesGetCall {
23380	c.urlParams_.Set("languageCode", languageCode)
23381	return c
23382}
23383
23384// Fields allows partial responses to be retrieved. See
23385// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23386// for more information.
23387func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesGetCall {
23388	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23389	return c
23390}
23391
23392// IfNoneMatch sets the optional parameter which makes the operation
23393// fail if the object's ETag matches the given value. This is useful for
23394// getting updates only after the object has changed since the last
23395// request. Use googleapi.IsNotModified to check whether the response
23396// error from Do is the result of In-None-Match.
23397func (c *ProjectsLocationsAgentsFlowsPagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesGetCall {
23398	c.ifNoneMatch_ = entityTag
23399	return c
23400}
23401
23402// Context sets the context to be used in this call's Do method. Any
23403// pending HTTP request will be aborted if the provided context is
23404// canceled.
23405func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesGetCall {
23406	c.ctx_ = ctx
23407	return c
23408}
23409
23410// Header returns an http.Header that can be modified by the caller to
23411// add HTTP headers to the request.
23412func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Header() http.Header {
23413	if c.header_ == nil {
23414		c.header_ = make(http.Header)
23415	}
23416	return c.header_
23417}
23418
23419func (c *ProjectsLocationsAgentsFlowsPagesGetCall) doRequest(alt string) (*http.Response, error) {
23420	reqHeaders := make(http.Header)
23421	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23422	for k, v := range c.header_ {
23423		reqHeaders[k] = v
23424	}
23425	reqHeaders.Set("User-Agent", c.s.userAgent())
23426	if c.ifNoneMatch_ != "" {
23427		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23428	}
23429	var body io.Reader = nil
23430	c.urlParams_.Set("alt", alt)
23431	c.urlParams_.Set("prettyPrint", "false")
23432	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
23433	urls += "?" + c.urlParams_.Encode()
23434	req, err := http.NewRequest("GET", urls, body)
23435	if err != nil {
23436		return nil, err
23437	}
23438	req.Header = reqHeaders
23439	googleapi.Expand(req.URL, map[string]string{
23440		"name": c.name,
23441	})
23442	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23443}
23444
23445// Do executes the "dialogflow.projects.locations.agents.flows.pages.get" call.
23446// Exactly one of *GoogleCloudDialogflowCxV3beta1Page or error will be
23447// non-nil. Any non-2xx status code is an error. Response headers are in
23448// either *GoogleCloudDialogflowCxV3beta1Page.ServerResponse.Header or
23449// (if a response was returned at all) in
23450// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23451// whether the returned error was because http.StatusNotModified was
23452// returned.
23453func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
23454	gensupport.SetOptions(c.urlParams_, opts...)
23455	res, err := c.doRequest("json")
23456	if res != nil && res.StatusCode == http.StatusNotModified {
23457		if res.Body != nil {
23458			res.Body.Close()
23459		}
23460		return nil, &googleapi.Error{
23461			Code:   res.StatusCode,
23462			Header: res.Header,
23463		}
23464	}
23465	if err != nil {
23466		return nil, err
23467	}
23468	defer googleapi.CloseBody(res)
23469	if err := googleapi.CheckResponse(res); err != nil {
23470		return nil, err
23471	}
23472	ret := &GoogleCloudDialogflowCxV3beta1Page{
23473		ServerResponse: googleapi.ServerResponse{
23474			Header:         res.Header,
23475			HTTPStatusCode: res.StatusCode,
23476		},
23477	}
23478	target := &ret
23479	if err := gensupport.DecodeResponse(target, res); err != nil {
23480		return nil, err
23481	}
23482	return ret, nil
23483	// {
23484	//   "description": "Retrieves the specified page.",
23485	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/pages/{pagesId}",
23486	//   "httpMethod": "GET",
23487	//   "id": "dialogflow.projects.locations.agents.flows.pages.get",
23488	//   "parameterOrder": [
23489	//     "name"
23490	//   ],
23491	//   "parameters": {
23492	//     "languageCode": {
23493	//       "description": "The language to retrieve the page for. The following fields are language dependent: * `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
23494	//       "location": "query",
23495	//       "type": "string"
23496	//     },
23497	//     "name": {
23498	//       "description": "Required. The name of the page. Format: `projects//locations//agents//flows//pages/`.",
23499	//       "location": "path",
23500	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/pages/[^/]+$",
23501	//       "required": true,
23502	//       "type": "string"
23503	//     }
23504	//   },
23505	//   "path": "v3beta1/{+name}",
23506	//   "response": {
23507	//     "$ref": "GoogleCloudDialogflowCxV3beta1Page"
23508	//   },
23509	//   "scopes": [
23510	//     "https://www.googleapis.com/auth/cloud-platform",
23511	//     "https://www.googleapis.com/auth/dialogflow"
23512	//   ]
23513	// }
23514
23515}
23516
23517// method id "dialogflow.projects.locations.agents.flows.pages.list":
23518
23519type ProjectsLocationsAgentsFlowsPagesListCall struct {
23520	s            *Service
23521	parent       string
23522	urlParams_   gensupport.URLParams
23523	ifNoneMatch_ string
23524	ctx_         context.Context
23525	header_      http.Header
23526}
23527
23528// List: Returns the list of all pages in the specified flow.
23529func (r *ProjectsLocationsAgentsFlowsPagesService) List(parent string) *ProjectsLocationsAgentsFlowsPagesListCall {
23530	c := &ProjectsLocationsAgentsFlowsPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23531	c.parent = parent
23532	return c
23533}
23534
23535// LanguageCode sets the optional parameter "languageCode": The language
23536// to list pages for. The following fields are language dependent: *
23537// `Page.entry_fulfillment.messages` *
23538// `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.message
23539// s` *
23540// `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
23541// * `Page.transition_routes.trigger_fulfillment.messages` *
23542// `Page.transition_route_groups.transition_routes.trigger_fulfillment.me
23543// ssages` If not specified, the agent's default language is used. Many
23544// languages
23545// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
23546// supported. Note: languages must be enabled in the agent before they
23547// can be used.
23548func (c *ProjectsLocationsAgentsFlowsPagesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesListCall {
23549	c.urlParams_.Set("languageCode", languageCode)
23550	return c
23551}
23552
23553// PageSize sets the optional parameter "pageSize": The maximum number
23554// of items to return in a single page. By default 100 and at most 1000.
23555func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsPagesListCall {
23556	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23557	return c
23558}
23559
23560// PageToken sets the optional parameter "pageToken": The
23561// next_page_token value returned from a previous list request.
23562func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsPagesListCall {
23563	c.urlParams_.Set("pageToken", pageToken)
23564	return c
23565}
23566
23567// Fields allows partial responses to be retrieved. See
23568// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23569// for more information.
23570func (c *ProjectsLocationsAgentsFlowsPagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesListCall {
23571	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23572	return c
23573}
23574
23575// IfNoneMatch sets the optional parameter which makes the operation
23576// fail if the object's ETag matches the given value. This is useful for
23577// getting updates only after the object has changed since the last
23578// request. Use googleapi.IsNotModified to check whether the response
23579// error from Do is the result of In-None-Match.
23580func (c *ProjectsLocationsAgentsFlowsPagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesListCall {
23581	c.ifNoneMatch_ = entityTag
23582	return c
23583}
23584
23585// Context sets the context to be used in this call's Do method. Any
23586// pending HTTP request will be aborted if the provided context is
23587// canceled.
23588func (c *ProjectsLocationsAgentsFlowsPagesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesListCall {
23589	c.ctx_ = ctx
23590	return c
23591}
23592
23593// Header returns an http.Header that can be modified by the caller to
23594// add HTTP headers to the request.
23595func (c *ProjectsLocationsAgentsFlowsPagesListCall) Header() http.Header {
23596	if c.header_ == nil {
23597		c.header_ = make(http.Header)
23598	}
23599	return c.header_
23600}
23601
23602func (c *ProjectsLocationsAgentsFlowsPagesListCall) doRequest(alt string) (*http.Response, error) {
23603	reqHeaders := make(http.Header)
23604	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23605	for k, v := range c.header_ {
23606		reqHeaders[k] = v
23607	}
23608	reqHeaders.Set("User-Agent", c.s.userAgent())
23609	if c.ifNoneMatch_ != "" {
23610		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23611	}
23612	var body io.Reader = nil
23613	c.urlParams_.Set("alt", alt)
23614	c.urlParams_.Set("prettyPrint", "false")
23615	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/pages")
23616	urls += "?" + c.urlParams_.Encode()
23617	req, err := http.NewRequest("GET", urls, body)
23618	if err != nil {
23619		return nil, err
23620	}
23621	req.Header = reqHeaders
23622	googleapi.Expand(req.URL, map[string]string{
23623		"parent": c.parent,
23624	})
23625	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23626}
23627
23628// Do executes the "dialogflow.projects.locations.agents.flows.pages.list" call.
23629// Exactly one of *GoogleCloudDialogflowCxV3beta1ListPagesResponse or
23630// error will be non-nil. Any non-2xx status code is an error. Response
23631// headers are in either
23632// *GoogleCloudDialogflowCxV3beta1ListPagesResponse.ServerResponse.Header
23633//  or (if a response was returned at all) in
23634// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23635// whether the returned error was because http.StatusNotModified was
23636// returned.
23637func (c *ProjectsLocationsAgentsFlowsPagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListPagesResponse, error) {
23638	gensupport.SetOptions(c.urlParams_, opts...)
23639	res, err := c.doRequest("json")
23640	if res != nil && res.StatusCode == http.StatusNotModified {
23641		if res.Body != nil {
23642			res.Body.Close()
23643		}
23644		return nil, &googleapi.Error{
23645			Code:   res.StatusCode,
23646			Header: res.Header,
23647		}
23648	}
23649	if err != nil {
23650		return nil, err
23651	}
23652	defer googleapi.CloseBody(res)
23653	if err := googleapi.CheckResponse(res); err != nil {
23654		return nil, err
23655	}
23656	ret := &GoogleCloudDialogflowCxV3beta1ListPagesResponse{
23657		ServerResponse: googleapi.ServerResponse{
23658			Header:         res.Header,
23659			HTTPStatusCode: res.StatusCode,
23660		},
23661	}
23662	target := &ret
23663	if err := gensupport.DecodeResponse(target, res); err != nil {
23664		return nil, err
23665	}
23666	return ret, nil
23667	// {
23668	//   "description": "Returns the list of all pages in the specified flow.",
23669	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/pages",
23670	//   "httpMethod": "GET",
23671	//   "id": "dialogflow.projects.locations.agents.flows.pages.list",
23672	//   "parameterOrder": [
23673	//     "parent"
23674	//   ],
23675	//   "parameters": {
23676	//     "languageCode": {
23677	//       "description": "The language to list pages for. The following fields are language dependent: * `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
23678	//       "location": "query",
23679	//       "type": "string"
23680	//     },
23681	//     "pageSize": {
23682	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
23683	//       "format": "int32",
23684	//       "location": "query",
23685	//       "type": "integer"
23686	//     },
23687	//     "pageToken": {
23688	//       "description": "The next_page_token value returned from a previous list request.",
23689	//       "location": "query",
23690	//       "type": "string"
23691	//     },
23692	//     "parent": {
23693	//       "description": "Required. The flow to list all pages for. Format: `projects//locations//agents//flows/`.",
23694	//       "location": "path",
23695	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
23696	//       "required": true,
23697	//       "type": "string"
23698	//     }
23699	//   },
23700	//   "path": "v3beta1/{+parent}/pages",
23701	//   "response": {
23702	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListPagesResponse"
23703	//   },
23704	//   "scopes": [
23705	//     "https://www.googleapis.com/auth/cloud-platform",
23706	//     "https://www.googleapis.com/auth/dialogflow"
23707	//   ]
23708	// }
23709
23710}
23711
23712// Pages invokes f for each page of results.
23713// A non-nil error returned from f will halt the iteration.
23714// The provided context supersedes any context provided to the Context method.
23715func (c *ProjectsLocationsAgentsFlowsPagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListPagesResponse) error) error {
23716	c.ctx_ = ctx
23717	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
23718	for {
23719		x, err := c.Do()
23720		if err != nil {
23721			return err
23722		}
23723		if err := f(x); err != nil {
23724			return err
23725		}
23726		if x.NextPageToken == "" {
23727			return nil
23728		}
23729		c.PageToken(x.NextPageToken)
23730	}
23731}
23732
23733// method id "dialogflow.projects.locations.agents.flows.pages.patch":
23734
23735type ProjectsLocationsAgentsFlowsPagesPatchCall struct {
23736	s                                  *Service
23737	nameid                             string
23738	googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page
23739	urlParams_                         gensupport.URLParams
23740	ctx_                               context.Context
23741	header_                            http.Header
23742}
23743
23744// Patch: Updates the specified page.
23745func (r *ProjectsLocationsAgentsFlowsPagesService) Patch(nameid string, googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page) *ProjectsLocationsAgentsFlowsPagesPatchCall {
23746	c := &ProjectsLocationsAgentsFlowsPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23747	c.nameid = nameid
23748	c.googleclouddialogflowcxv3beta1page = googleclouddialogflowcxv3beta1page
23749	return c
23750}
23751
23752// LanguageCode sets the optional parameter "languageCode": The language
23753// of the following fields in `page`: *
23754// `Page.entry_fulfillment.messages` *
23755// `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.message
23756// s` *
23757// `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
23758// * `Page.transition_routes.trigger_fulfillment.messages` *
23759// `Page.transition_route_groups.transition_routes.trigger_fulfillment.me
23760// ssages` If not specified, the agent's default language is used. Many
23761// languages
23762// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
23763// supported. Note: languages must be enabled in the agent before they
23764// can be used.
23765func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
23766	c.urlParams_.Set("languageCode", languageCode)
23767	return c
23768}
23769
23770// UpdateMask sets the optional parameter "updateMask": The mask to
23771// control which fields get updated. If the mask is not present, all
23772// fields will be updated.
23773func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
23774	c.urlParams_.Set("updateMask", updateMask)
23775	return c
23776}
23777
23778// Fields allows partial responses to be retrieved. See
23779// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23780// for more information.
23781func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesPatchCall {
23782	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23783	return c
23784}
23785
23786// Context sets the context to be used in this call's Do method. Any
23787// pending HTTP request will be aborted if the provided context is
23788// canceled.
23789func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesPatchCall {
23790	c.ctx_ = ctx
23791	return c
23792}
23793
23794// Header returns an http.Header that can be modified by the caller to
23795// add HTTP headers to the request.
23796func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Header() http.Header {
23797	if c.header_ == nil {
23798		c.header_ = make(http.Header)
23799	}
23800	return c.header_
23801}
23802
23803func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) doRequest(alt string) (*http.Response, error) {
23804	reqHeaders := make(http.Header)
23805	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23806	for k, v := range c.header_ {
23807		reqHeaders[k] = v
23808	}
23809	reqHeaders.Set("User-Agent", c.s.userAgent())
23810	var body io.Reader = nil
23811	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1page)
23812	if err != nil {
23813		return nil, err
23814	}
23815	reqHeaders.Set("Content-Type", "application/json")
23816	c.urlParams_.Set("alt", alt)
23817	c.urlParams_.Set("prettyPrint", "false")
23818	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
23819	urls += "?" + c.urlParams_.Encode()
23820	req, err := http.NewRequest("PATCH", urls, body)
23821	if err != nil {
23822		return nil, err
23823	}
23824	req.Header = reqHeaders
23825	googleapi.Expand(req.URL, map[string]string{
23826		"name": c.nameid,
23827	})
23828	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23829}
23830
23831// Do executes the "dialogflow.projects.locations.agents.flows.pages.patch" call.
23832// Exactly one of *GoogleCloudDialogflowCxV3beta1Page or error will be
23833// non-nil. Any non-2xx status code is an error. Response headers are in
23834// either *GoogleCloudDialogflowCxV3beta1Page.ServerResponse.Header or
23835// (if a response was returned at all) in
23836// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23837// whether the returned error was because http.StatusNotModified was
23838// returned.
23839func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
23840	gensupport.SetOptions(c.urlParams_, opts...)
23841	res, err := c.doRequest("json")
23842	if res != nil && res.StatusCode == http.StatusNotModified {
23843		if res.Body != nil {
23844			res.Body.Close()
23845		}
23846		return nil, &googleapi.Error{
23847			Code:   res.StatusCode,
23848			Header: res.Header,
23849		}
23850	}
23851	if err != nil {
23852		return nil, err
23853	}
23854	defer googleapi.CloseBody(res)
23855	if err := googleapi.CheckResponse(res); err != nil {
23856		return nil, err
23857	}
23858	ret := &GoogleCloudDialogflowCxV3beta1Page{
23859		ServerResponse: googleapi.ServerResponse{
23860			Header:         res.Header,
23861			HTTPStatusCode: res.StatusCode,
23862		},
23863	}
23864	target := &ret
23865	if err := gensupport.DecodeResponse(target, res); err != nil {
23866		return nil, err
23867	}
23868	return ret, nil
23869	// {
23870	//   "description": "Updates the specified page.",
23871	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/pages/{pagesId}",
23872	//   "httpMethod": "PATCH",
23873	//   "id": "dialogflow.projects.locations.agents.flows.pages.patch",
23874	//   "parameterOrder": [
23875	//     "name"
23876	//   ],
23877	//   "parameters": {
23878	//     "languageCode": {
23879	//       "description": "The language of the following fields in `page`: * `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
23880	//       "location": "query",
23881	//       "type": "string"
23882	//     },
23883	//     "name": {
23884	//       "description": "The unique identifier of the page. Required for the Pages.UpdatePage method. Pages.CreatePage populates the name automatically. Format: `projects//locations//agents//flows//pages/`.",
23885	//       "location": "path",
23886	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/pages/[^/]+$",
23887	//       "required": true,
23888	//       "type": "string"
23889	//     },
23890	//     "updateMask": {
23891	//       "description": "The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
23892	//       "format": "google-fieldmask",
23893	//       "location": "query",
23894	//       "type": "string"
23895	//     }
23896	//   },
23897	//   "path": "v3beta1/{+name}",
23898	//   "request": {
23899	//     "$ref": "GoogleCloudDialogflowCxV3beta1Page"
23900	//   },
23901	//   "response": {
23902	//     "$ref": "GoogleCloudDialogflowCxV3beta1Page"
23903	//   },
23904	//   "scopes": [
23905	//     "https://www.googleapis.com/auth/cloud-platform",
23906	//     "https://www.googleapis.com/auth/dialogflow"
23907	//   ]
23908	// }
23909
23910}
23911
23912// method id "dialogflow.projects.locations.agents.flows.transitionRouteGroups.create":
23913
23914type ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall struct {
23915	s                                                  *Service
23916	parent                                             string
23917	googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
23918	urlParams_                                         gensupport.URLParams
23919	ctx_                                               context.Context
23920	header_                                            http.Header
23921}
23922
23923// Create: Creates an TransitionRouteGroup in the specified flow.
23924func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Create(parent string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
23925	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23926	c.parent = parent
23927	c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
23928	return c
23929}
23930
23931// LanguageCode sets the optional parameter "languageCode": The language
23932// to list transition route groups for. The field `messages` in
23933// TransitionRoute is language dependent. If not specified, the agent's
23934// default language is used. Many languages
23935// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
23936// supported. Note: languages must be enabled in the agent before they
23937// can be used.
23938func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
23939	c.urlParams_.Set("languageCode", languageCode)
23940	return c
23941}
23942
23943// Fields allows partial responses to be retrieved. See
23944// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23945// for more information.
23946func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
23947	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23948	return c
23949}
23950
23951// Context sets the context to be used in this call's Do method. Any
23952// pending HTTP request will be aborted if the provided context is
23953// canceled.
23954func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
23955	c.ctx_ = ctx
23956	return c
23957}
23958
23959// Header returns an http.Header that can be modified by the caller to
23960// add HTTP headers to the request.
23961func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Header() http.Header {
23962	if c.header_ == nil {
23963		c.header_ = make(http.Header)
23964	}
23965	return c.header_
23966}
23967
23968func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
23969	reqHeaders := make(http.Header)
23970	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
23971	for k, v := range c.header_ {
23972		reqHeaders[k] = v
23973	}
23974	reqHeaders.Set("User-Agent", c.s.userAgent())
23975	var body io.Reader = nil
23976	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
23977	if err != nil {
23978		return nil, err
23979	}
23980	reqHeaders.Set("Content-Type", "application/json")
23981	c.urlParams_.Set("alt", alt)
23982	c.urlParams_.Set("prettyPrint", "false")
23983	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
23984	urls += "?" + c.urlParams_.Encode()
23985	req, err := http.NewRequest("POST", urls, body)
23986	if err != nil {
23987		return nil, err
23988	}
23989	req.Header = reqHeaders
23990	googleapi.Expand(req.URL, map[string]string{
23991		"parent": c.parent,
23992	})
23993	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23994}
23995
23996// Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.create" call.
23997// Exactly one of *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup or
23998// error will be non-nil. Any non-2xx status code is an error. Response
23999// headers are in either
24000// *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Hea
24001// der or (if a response was returned at all) in
24002// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24003// whether the returned error was because http.StatusNotModified was
24004// returned.
24005func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
24006	gensupport.SetOptions(c.urlParams_, opts...)
24007	res, err := c.doRequest("json")
24008	if res != nil && res.StatusCode == http.StatusNotModified {
24009		if res.Body != nil {
24010			res.Body.Close()
24011		}
24012		return nil, &googleapi.Error{
24013			Code:   res.StatusCode,
24014			Header: res.Header,
24015		}
24016	}
24017	if err != nil {
24018		return nil, err
24019	}
24020	defer googleapi.CloseBody(res)
24021	if err := googleapi.CheckResponse(res); err != nil {
24022		return nil, err
24023	}
24024	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
24025		ServerResponse: googleapi.ServerResponse{
24026			Header:         res.Header,
24027			HTTPStatusCode: res.StatusCode,
24028		},
24029	}
24030	target := &ret
24031	if err := gensupport.DecodeResponse(target, res); err != nil {
24032		return nil, err
24033	}
24034	return ret, nil
24035	// {
24036	//   "description": "Creates an TransitionRouteGroup in the specified flow.",
24037	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/transitionRouteGroups",
24038	//   "httpMethod": "POST",
24039	//   "id": "dialogflow.projects.locations.agents.flows.transitionRouteGroups.create",
24040	//   "parameterOrder": [
24041	//     "parent"
24042	//   ],
24043	//   "parameters": {
24044	//     "languageCode": {
24045	//       "description": "The language to list transition route groups for. The field `messages` in TransitionRoute is language dependent. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
24046	//       "location": "query",
24047	//       "type": "string"
24048	//     },
24049	//     "parent": {
24050	//       "description": "Required. The flow to create an TransitionRouteGroup for. Format: `projects//locations//agents//flows/`.",
24051	//       "location": "path",
24052	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
24053	//       "required": true,
24054	//       "type": "string"
24055	//     }
24056	//   },
24057	//   "path": "v3beta1/{+parent}/transitionRouteGroups",
24058	//   "request": {
24059	//     "$ref": "GoogleCloudDialogflowCxV3beta1TransitionRouteGroup"
24060	//   },
24061	//   "response": {
24062	//     "$ref": "GoogleCloudDialogflowCxV3beta1TransitionRouteGroup"
24063	//   },
24064	//   "scopes": [
24065	//     "https://www.googleapis.com/auth/cloud-platform",
24066	//     "https://www.googleapis.com/auth/dialogflow"
24067	//   ]
24068	// }
24069
24070}
24071
24072// method id "dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete":
24073
24074type ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall struct {
24075	s          *Service
24076	name       string
24077	urlParams_ gensupport.URLParams
24078	ctx_       context.Context
24079	header_    http.Header
24080}
24081
24082// Delete: Deletes the specified TransitionRouteGroup.
24083func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Delete(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
24084	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24085	c.name = name
24086	return c
24087}
24088
24089// Force sets the optional parameter "force": This field has no effect
24090// for transition route group that no page is using. If the transition
24091// route group is referenced by any page: * If `force` is set to false,
24092// an error will be returned with message indicating pages that
24093// reference the transition route group. * If `force` is set to true,
24094// Dialogflow will remove the transition route group, as well as any
24095// reference to it.
24096func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
24097	c.urlParams_.Set("force", fmt.Sprint(force))
24098	return c
24099}
24100
24101// Fields allows partial responses to be retrieved. See
24102// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24103// for more information.
24104func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
24105	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24106	return c
24107}
24108
24109// Context sets the context to be used in this call's Do method. Any
24110// pending HTTP request will be aborted if the provided context is
24111// canceled.
24112func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
24113	c.ctx_ = ctx
24114	return c
24115}
24116
24117// Header returns an http.Header that can be modified by the caller to
24118// add HTTP headers to the request.
24119func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Header() http.Header {
24120	if c.header_ == nil {
24121		c.header_ = make(http.Header)
24122	}
24123	return c.header_
24124}
24125
24126func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
24127	reqHeaders := make(http.Header)
24128	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24129	for k, v := range c.header_ {
24130		reqHeaders[k] = v
24131	}
24132	reqHeaders.Set("User-Agent", c.s.userAgent())
24133	var body io.Reader = nil
24134	c.urlParams_.Set("alt", alt)
24135	c.urlParams_.Set("prettyPrint", "false")
24136	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
24137	urls += "?" + c.urlParams_.Encode()
24138	req, err := http.NewRequest("DELETE", urls, body)
24139	if err != nil {
24140		return nil, err
24141	}
24142	req.Header = reqHeaders
24143	googleapi.Expand(req.URL, map[string]string{
24144		"name": c.name,
24145	})
24146	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24147}
24148
24149// Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete" call.
24150// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
24151// non-2xx status code is an error. Response headers are in either
24152// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
24153// returned at all) in error.(*googleapi.Error).Header. Use
24154// googleapi.IsNotModified to check whether the returned error was
24155// because http.StatusNotModified was returned.
24156func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24157	gensupport.SetOptions(c.urlParams_, opts...)
24158	res, err := c.doRequest("json")
24159	if res != nil && res.StatusCode == http.StatusNotModified {
24160		if res.Body != nil {
24161			res.Body.Close()
24162		}
24163		return nil, &googleapi.Error{
24164			Code:   res.StatusCode,
24165			Header: res.Header,
24166		}
24167	}
24168	if err != nil {
24169		return nil, err
24170	}
24171	defer googleapi.CloseBody(res)
24172	if err := googleapi.CheckResponse(res); err != nil {
24173		return nil, err
24174	}
24175	ret := &GoogleProtobufEmpty{
24176		ServerResponse: googleapi.ServerResponse{
24177			Header:         res.Header,
24178			HTTPStatusCode: res.StatusCode,
24179		},
24180	}
24181	target := &ret
24182	if err := gensupport.DecodeResponse(target, res); err != nil {
24183		return nil, err
24184	}
24185	return ret, nil
24186	// {
24187	//   "description": "Deletes the specified TransitionRouteGroup.",
24188	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/transitionRouteGroups/{transitionRouteGroupsId}",
24189	//   "httpMethod": "DELETE",
24190	//   "id": "dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete",
24191	//   "parameterOrder": [
24192	//     "name"
24193	//   ],
24194	//   "parameters": {
24195	//     "force": {
24196	//       "description": "This field has no effect for transition route group that no page is using. If the transition route group is referenced by any page: * If `force` is set to false, an error will be returned with message indicating pages that reference the transition route group. * If `force` is set to true, Dialogflow will remove the transition route group, as well as any reference to it.",
24197	//       "location": "query",
24198	//       "type": "boolean"
24199	//     },
24200	//     "name": {
24201	//       "description": "Required. The name of the TransitionRouteGroup to delete. Format: `projects//locations//agents//flows//transitionRouteGroups/`.",
24202	//       "location": "path",
24203	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+$",
24204	//       "required": true,
24205	//       "type": "string"
24206	//     }
24207	//   },
24208	//   "path": "v3beta1/{+name}",
24209	//   "response": {
24210	//     "$ref": "GoogleProtobufEmpty"
24211	//   },
24212	//   "scopes": [
24213	//     "https://www.googleapis.com/auth/cloud-platform",
24214	//     "https://www.googleapis.com/auth/dialogflow"
24215	//   ]
24216	// }
24217
24218}
24219
24220// method id "dialogflow.projects.locations.agents.flows.transitionRouteGroups.get":
24221
24222type ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall struct {
24223	s            *Service
24224	name         string
24225	urlParams_   gensupport.URLParams
24226	ifNoneMatch_ string
24227	ctx_         context.Context
24228	header_      http.Header
24229}
24230
24231// Get: Retrieves the specified TransitionRouteGroup.
24232func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Get(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
24233	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24234	c.name = name
24235	return c
24236}
24237
24238// LanguageCode sets the optional parameter "languageCode": The language
24239// to list transition route groups for. The field `messages` in
24240// TransitionRoute is language dependent. If not specified, the agent's
24241// default language is used. Many languages
24242// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
24243// supported. Note: languages must be enabled in the agent before they
24244// can be used.
24245func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
24246	c.urlParams_.Set("languageCode", languageCode)
24247	return c
24248}
24249
24250// Fields allows partial responses to be retrieved. See
24251// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24252// for more information.
24253func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
24254	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24255	return c
24256}
24257
24258// IfNoneMatch sets the optional parameter which makes the operation
24259// fail if the object's ETag matches the given value. This is useful for
24260// getting updates only after the object has changed since the last
24261// request. Use googleapi.IsNotModified to check whether the response
24262// error from Do is the result of In-None-Match.
24263func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
24264	c.ifNoneMatch_ = entityTag
24265	return c
24266}
24267
24268// Context sets the context to be used in this call's Do method. Any
24269// pending HTTP request will be aborted if the provided context is
24270// canceled.
24271func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
24272	c.ctx_ = ctx
24273	return c
24274}
24275
24276// Header returns an http.Header that can be modified by the caller to
24277// add HTTP headers to the request.
24278func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Header() http.Header {
24279	if c.header_ == nil {
24280		c.header_ = make(http.Header)
24281	}
24282	return c.header_
24283}
24284
24285func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) {
24286	reqHeaders := make(http.Header)
24287	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24288	for k, v := range c.header_ {
24289		reqHeaders[k] = v
24290	}
24291	reqHeaders.Set("User-Agent", c.s.userAgent())
24292	if c.ifNoneMatch_ != "" {
24293		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24294	}
24295	var body io.Reader = nil
24296	c.urlParams_.Set("alt", alt)
24297	c.urlParams_.Set("prettyPrint", "false")
24298	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
24299	urls += "?" + c.urlParams_.Encode()
24300	req, err := http.NewRequest("GET", urls, body)
24301	if err != nil {
24302		return nil, err
24303	}
24304	req.Header = reqHeaders
24305	googleapi.Expand(req.URL, map[string]string{
24306		"name": c.name,
24307	})
24308	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24309}
24310
24311// Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.get" call.
24312// Exactly one of *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup or
24313// error will be non-nil. Any non-2xx status code is an error. Response
24314// headers are in either
24315// *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Hea
24316// der or (if a response was returned at all) in
24317// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24318// whether the returned error was because http.StatusNotModified was
24319// returned.
24320func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
24321	gensupport.SetOptions(c.urlParams_, opts...)
24322	res, err := c.doRequest("json")
24323	if res != nil && res.StatusCode == http.StatusNotModified {
24324		if res.Body != nil {
24325			res.Body.Close()
24326		}
24327		return nil, &googleapi.Error{
24328			Code:   res.StatusCode,
24329			Header: res.Header,
24330		}
24331	}
24332	if err != nil {
24333		return nil, err
24334	}
24335	defer googleapi.CloseBody(res)
24336	if err := googleapi.CheckResponse(res); err != nil {
24337		return nil, err
24338	}
24339	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
24340		ServerResponse: googleapi.ServerResponse{
24341			Header:         res.Header,
24342			HTTPStatusCode: res.StatusCode,
24343		},
24344	}
24345	target := &ret
24346	if err := gensupport.DecodeResponse(target, res); err != nil {
24347		return nil, err
24348	}
24349	return ret, nil
24350	// {
24351	//   "description": "Retrieves the specified TransitionRouteGroup.",
24352	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/transitionRouteGroups/{transitionRouteGroupsId}",
24353	//   "httpMethod": "GET",
24354	//   "id": "dialogflow.projects.locations.agents.flows.transitionRouteGroups.get",
24355	//   "parameterOrder": [
24356	//     "name"
24357	//   ],
24358	//   "parameters": {
24359	//     "languageCode": {
24360	//       "description": "The language to list transition route groups for. The field `messages` in TransitionRoute is language dependent. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
24361	//       "location": "query",
24362	//       "type": "string"
24363	//     },
24364	//     "name": {
24365	//       "description": "Required. The name of the TransitionRouteGroup. Format: `projects//locations//agents//flows//transitionRouteGroups/`.",
24366	//       "location": "path",
24367	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+$",
24368	//       "required": true,
24369	//       "type": "string"
24370	//     }
24371	//   },
24372	//   "path": "v3beta1/{+name}",
24373	//   "response": {
24374	//     "$ref": "GoogleCloudDialogflowCxV3beta1TransitionRouteGroup"
24375	//   },
24376	//   "scopes": [
24377	//     "https://www.googleapis.com/auth/cloud-platform",
24378	//     "https://www.googleapis.com/auth/dialogflow"
24379	//   ]
24380	// }
24381
24382}
24383
24384// method id "dialogflow.projects.locations.agents.flows.transitionRouteGroups.list":
24385
24386type ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall struct {
24387	s            *Service
24388	parent       string
24389	urlParams_   gensupport.URLParams
24390	ifNoneMatch_ string
24391	ctx_         context.Context
24392	header_      http.Header
24393}
24394
24395// List: Returns the list of all transition route groups in the
24396// specified flow.
24397func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) List(parent string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
24398	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24399	c.parent = parent
24400	return c
24401}
24402
24403// LanguageCode sets the optional parameter "languageCode": The language
24404// to list transition route groups for. The field `messages` in
24405// TransitionRoute is language dependent. If not specified, the agent's
24406// default language is used. Many languages
24407// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
24408// supported. Note: languages must be enabled in the agent before they
24409// can be used.
24410func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
24411	c.urlParams_.Set("languageCode", languageCode)
24412	return c
24413}
24414
24415// PageSize sets the optional parameter "pageSize": The maximum number
24416// of items to return in a single page. By default 100 and at most 1000.
24417func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
24418	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24419	return c
24420}
24421
24422// PageToken sets the optional parameter "pageToken": The
24423// next_page_token value returned from a previous list request.
24424func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
24425	c.urlParams_.Set("pageToken", pageToken)
24426	return c
24427}
24428
24429// Fields allows partial responses to be retrieved. See
24430// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24431// for more information.
24432func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
24433	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24434	return c
24435}
24436
24437// IfNoneMatch sets the optional parameter which makes the operation
24438// fail if the object's ETag matches the given value. This is useful for
24439// getting updates only after the object has changed since the last
24440// request. Use googleapi.IsNotModified to check whether the response
24441// error from Do is the result of In-None-Match.
24442func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
24443	c.ifNoneMatch_ = entityTag
24444	return c
24445}
24446
24447// Context sets the context to be used in this call's Do method. Any
24448// pending HTTP request will be aborted if the provided context is
24449// canceled.
24450func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
24451	c.ctx_ = ctx
24452	return c
24453}
24454
24455// Header returns an http.Header that can be modified by the caller to
24456// add HTTP headers to the request.
24457func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Header() http.Header {
24458	if c.header_ == nil {
24459		c.header_ = make(http.Header)
24460	}
24461	return c.header_
24462}
24463
24464func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) {
24465	reqHeaders := make(http.Header)
24466	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24467	for k, v := range c.header_ {
24468		reqHeaders[k] = v
24469	}
24470	reqHeaders.Set("User-Agent", c.s.userAgent())
24471	if c.ifNoneMatch_ != "" {
24472		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24473	}
24474	var body io.Reader = nil
24475	c.urlParams_.Set("alt", alt)
24476	c.urlParams_.Set("prettyPrint", "false")
24477	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
24478	urls += "?" + c.urlParams_.Encode()
24479	req, err := http.NewRequest("GET", urls, body)
24480	if err != nil {
24481		return nil, err
24482	}
24483	req.Header = reqHeaders
24484	googleapi.Expand(req.URL, map[string]string{
24485		"parent": c.parent,
24486	})
24487	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24488}
24489
24490// Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.list" call.
24491// Exactly one of
24492// *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse or
24493// error will be non-nil. Any non-2xx status code is an error. Response
24494// headers are in either
24495// *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse.Serve
24496// rResponse.Header or (if a response was returned at all) in
24497// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24498// whether the returned error was because http.StatusNotModified was
24499// returned.
24500func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse, error) {
24501	gensupport.SetOptions(c.urlParams_, opts...)
24502	res, err := c.doRequest("json")
24503	if res != nil && res.StatusCode == http.StatusNotModified {
24504		if res.Body != nil {
24505			res.Body.Close()
24506		}
24507		return nil, &googleapi.Error{
24508			Code:   res.StatusCode,
24509			Header: res.Header,
24510		}
24511	}
24512	if err != nil {
24513		return nil, err
24514	}
24515	defer googleapi.CloseBody(res)
24516	if err := googleapi.CheckResponse(res); err != nil {
24517		return nil, err
24518	}
24519	ret := &GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse{
24520		ServerResponse: googleapi.ServerResponse{
24521			Header:         res.Header,
24522			HTTPStatusCode: res.StatusCode,
24523		},
24524	}
24525	target := &ret
24526	if err := gensupport.DecodeResponse(target, res); err != nil {
24527		return nil, err
24528	}
24529	return ret, nil
24530	// {
24531	//   "description": "Returns the list of all transition route groups in the specified flow.",
24532	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/transitionRouteGroups",
24533	//   "httpMethod": "GET",
24534	//   "id": "dialogflow.projects.locations.agents.flows.transitionRouteGroups.list",
24535	//   "parameterOrder": [
24536	//     "parent"
24537	//   ],
24538	//   "parameters": {
24539	//     "languageCode": {
24540	//       "description": "The language to list transition route groups for. The field `messages` in TransitionRoute is language dependent. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
24541	//       "location": "query",
24542	//       "type": "string"
24543	//     },
24544	//     "pageSize": {
24545	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
24546	//       "format": "int32",
24547	//       "location": "query",
24548	//       "type": "integer"
24549	//     },
24550	//     "pageToken": {
24551	//       "description": "The next_page_token value returned from a previous list request.",
24552	//       "location": "query",
24553	//       "type": "string"
24554	//     },
24555	//     "parent": {
24556	//       "description": "Required. The flow to list all transition route groups for. Format: `projects//locations//agents//flows/`.",
24557	//       "location": "path",
24558	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
24559	//       "required": true,
24560	//       "type": "string"
24561	//     }
24562	//   },
24563	//   "path": "v3beta1/{+parent}/transitionRouteGroups",
24564	//   "response": {
24565	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse"
24566	//   },
24567	//   "scopes": [
24568	//     "https://www.googleapis.com/auth/cloud-platform",
24569	//     "https://www.googleapis.com/auth/dialogflow"
24570	//   ]
24571	// }
24572
24573}
24574
24575// Pages invokes f for each page of results.
24576// A non-nil error returned from f will halt the iteration.
24577// The provided context supersedes any context provided to the Context method.
24578func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) error) error {
24579	c.ctx_ = ctx
24580	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
24581	for {
24582		x, err := c.Do()
24583		if err != nil {
24584			return err
24585		}
24586		if err := f(x); err != nil {
24587			return err
24588		}
24589		if x.NextPageToken == "" {
24590			return nil
24591		}
24592		c.PageToken(x.NextPageToken)
24593	}
24594}
24595
24596// method id "dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch":
24597
24598type ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall struct {
24599	s                                                  *Service
24600	nameid                                             string
24601	googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
24602	urlParams_                                         gensupport.URLParams
24603	ctx_                                               context.Context
24604	header_                                            http.Header
24605}
24606
24607// Patch: Updates the specified TransitionRouteGroup.
24608func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Patch(nameid string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
24609	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24610	c.nameid = nameid
24611	c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
24612	return c
24613}
24614
24615// LanguageCode sets the optional parameter "languageCode": The language
24616// to list transition route groups for. The field `messages` in
24617// TransitionRoute is language dependent. If not specified, the agent's
24618// default language is used. Many languages
24619// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
24620// supported. Note: languages must be enabled in the agent before they
24621// can be used.
24622func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
24623	c.urlParams_.Set("languageCode", languageCode)
24624	return c
24625}
24626
24627// UpdateMask sets the optional parameter "updateMask": The mask to
24628// control which fields get updated.
24629func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
24630	c.urlParams_.Set("updateMask", updateMask)
24631	return c
24632}
24633
24634// Fields allows partial responses to be retrieved. See
24635// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24636// for more information.
24637func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
24638	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24639	return c
24640}
24641
24642// Context sets the context to be used in this call's Do method. Any
24643// pending HTTP request will be aborted if the provided context is
24644// canceled.
24645func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
24646	c.ctx_ = ctx
24647	return c
24648}
24649
24650// Header returns an http.Header that can be modified by the caller to
24651// add HTTP headers to the request.
24652func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Header() http.Header {
24653	if c.header_ == nil {
24654		c.header_ = make(http.Header)
24655	}
24656	return c.header_
24657}
24658
24659func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
24660	reqHeaders := make(http.Header)
24661	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24662	for k, v := range c.header_ {
24663		reqHeaders[k] = v
24664	}
24665	reqHeaders.Set("User-Agent", c.s.userAgent())
24666	var body io.Reader = nil
24667	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
24668	if err != nil {
24669		return nil, err
24670	}
24671	reqHeaders.Set("Content-Type", "application/json")
24672	c.urlParams_.Set("alt", alt)
24673	c.urlParams_.Set("prettyPrint", "false")
24674	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
24675	urls += "?" + c.urlParams_.Encode()
24676	req, err := http.NewRequest("PATCH", urls, body)
24677	if err != nil {
24678		return nil, err
24679	}
24680	req.Header = reqHeaders
24681	googleapi.Expand(req.URL, map[string]string{
24682		"name": c.nameid,
24683	})
24684	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24685}
24686
24687// Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch" call.
24688// Exactly one of *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup or
24689// error will be non-nil. Any non-2xx status code is an error. Response
24690// headers are in either
24691// *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Hea
24692// der or (if a response was returned at all) in
24693// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24694// whether the returned error was because http.StatusNotModified was
24695// returned.
24696func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
24697	gensupport.SetOptions(c.urlParams_, opts...)
24698	res, err := c.doRequest("json")
24699	if res != nil && res.StatusCode == http.StatusNotModified {
24700		if res.Body != nil {
24701			res.Body.Close()
24702		}
24703		return nil, &googleapi.Error{
24704			Code:   res.StatusCode,
24705			Header: res.Header,
24706		}
24707	}
24708	if err != nil {
24709		return nil, err
24710	}
24711	defer googleapi.CloseBody(res)
24712	if err := googleapi.CheckResponse(res); err != nil {
24713		return nil, err
24714	}
24715	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
24716		ServerResponse: googleapi.ServerResponse{
24717			Header:         res.Header,
24718			HTTPStatusCode: res.StatusCode,
24719		},
24720	}
24721	target := &ret
24722	if err := gensupport.DecodeResponse(target, res); err != nil {
24723		return nil, err
24724	}
24725	return ret, nil
24726	// {
24727	//   "description": "Updates the specified TransitionRouteGroup.",
24728	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/transitionRouteGroups/{transitionRouteGroupsId}",
24729	//   "httpMethod": "PATCH",
24730	//   "id": "dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch",
24731	//   "parameterOrder": [
24732	//     "name"
24733	//   ],
24734	//   "parameters": {
24735	//     "languageCode": {
24736	//       "description": "The language to list transition route groups for. The field `messages` in TransitionRoute is language dependent. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
24737	//       "location": "query",
24738	//       "type": "string"
24739	//     },
24740	//     "name": {
24741	//       "description": "The unique identifier of the transition route group. TransitionRouteGroups.CreateTransitionRouteGroup populates the name automatically. Format: `projects//locations//agents//flows//transitionRouteGroups/`.",
24742	//       "location": "path",
24743	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+$",
24744	//       "required": true,
24745	//       "type": "string"
24746	//     },
24747	//     "updateMask": {
24748	//       "description": "The mask to control which fields get updated.",
24749	//       "format": "google-fieldmask",
24750	//       "location": "query",
24751	//       "type": "string"
24752	//     }
24753	//   },
24754	//   "path": "v3beta1/{+name}",
24755	//   "request": {
24756	//     "$ref": "GoogleCloudDialogflowCxV3beta1TransitionRouteGroup"
24757	//   },
24758	//   "response": {
24759	//     "$ref": "GoogleCloudDialogflowCxV3beta1TransitionRouteGroup"
24760	//   },
24761	//   "scopes": [
24762	//     "https://www.googleapis.com/auth/cloud-platform",
24763	//     "https://www.googleapis.com/auth/dialogflow"
24764	//   ]
24765	// }
24766
24767}
24768
24769// method id "dialogflow.projects.locations.agents.flows.versions.create":
24770
24771type ProjectsLocationsAgentsFlowsVersionsCreateCall struct {
24772	s                                     *Service
24773	parent                                string
24774	googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version
24775	urlParams_                            gensupport.URLParams
24776	ctx_                                  context.Context
24777	header_                               http.Header
24778}
24779
24780// Create: Creates a Version in the specified Flow.
24781func (r *ProjectsLocationsAgentsFlowsVersionsService) Create(parent string, googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
24782	c := &ProjectsLocationsAgentsFlowsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24783	c.parent = parent
24784	c.googleclouddialogflowcxv3beta1version = googleclouddialogflowcxv3beta1version
24785	return c
24786}
24787
24788// Fields allows partial responses to be retrieved. See
24789// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24790// for more information.
24791func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
24792	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24793	return c
24794}
24795
24796// Context sets the context to be used in this call's Do method. Any
24797// pending HTTP request will be aborted if the provided context is
24798// canceled.
24799func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
24800	c.ctx_ = ctx
24801	return c
24802}
24803
24804// Header returns an http.Header that can be modified by the caller to
24805// add HTTP headers to the request.
24806func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Header() http.Header {
24807	if c.header_ == nil {
24808		c.header_ = make(http.Header)
24809	}
24810	return c.header_
24811}
24812
24813func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
24814	reqHeaders := make(http.Header)
24815	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24816	for k, v := range c.header_ {
24817		reqHeaders[k] = v
24818	}
24819	reqHeaders.Set("User-Agent", c.s.userAgent())
24820	var body io.Reader = nil
24821	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1version)
24822	if err != nil {
24823		return nil, err
24824	}
24825	reqHeaders.Set("Content-Type", "application/json")
24826	c.urlParams_.Set("alt", alt)
24827	c.urlParams_.Set("prettyPrint", "false")
24828	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/versions")
24829	urls += "?" + c.urlParams_.Encode()
24830	req, err := http.NewRequest("POST", urls, body)
24831	if err != nil {
24832		return nil, err
24833	}
24834	req.Header = reqHeaders
24835	googleapi.Expand(req.URL, map[string]string{
24836		"parent": c.parent,
24837	})
24838	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24839}
24840
24841// Do executes the "dialogflow.projects.locations.agents.flows.versions.create" call.
24842// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24843// Any non-2xx status code is an error. Response headers are in either
24844// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24845// was returned at all) in error.(*googleapi.Error).Header. Use
24846// googleapi.IsNotModified to check whether the returned error was
24847// because http.StatusNotModified was returned.
24848func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24849	gensupport.SetOptions(c.urlParams_, opts...)
24850	res, err := c.doRequest("json")
24851	if res != nil && res.StatusCode == http.StatusNotModified {
24852		if res.Body != nil {
24853			res.Body.Close()
24854		}
24855		return nil, &googleapi.Error{
24856			Code:   res.StatusCode,
24857			Header: res.Header,
24858		}
24859	}
24860	if err != nil {
24861		return nil, err
24862	}
24863	defer googleapi.CloseBody(res)
24864	if err := googleapi.CheckResponse(res); err != nil {
24865		return nil, err
24866	}
24867	ret := &GoogleLongrunningOperation{
24868		ServerResponse: googleapi.ServerResponse{
24869			Header:         res.Header,
24870			HTTPStatusCode: res.StatusCode,
24871		},
24872	}
24873	target := &ret
24874	if err := gensupport.DecodeResponse(target, res); err != nil {
24875		return nil, err
24876	}
24877	return ret, nil
24878	// {
24879	//   "description": "Creates a Version in the specified Flow.",
24880	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/versions",
24881	//   "httpMethod": "POST",
24882	//   "id": "dialogflow.projects.locations.agents.flows.versions.create",
24883	//   "parameterOrder": [
24884	//     "parent"
24885	//   ],
24886	//   "parameters": {
24887	//     "parent": {
24888	//       "description": "Required. The Flow to create an Version for. Format: `projects//locations//agents//flows/`.",
24889	//       "location": "path",
24890	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
24891	//       "required": true,
24892	//       "type": "string"
24893	//     }
24894	//   },
24895	//   "path": "v3beta1/{+parent}/versions",
24896	//   "request": {
24897	//     "$ref": "GoogleCloudDialogflowCxV3beta1Version"
24898	//   },
24899	//   "response": {
24900	//     "$ref": "GoogleLongrunningOperation"
24901	//   },
24902	//   "scopes": [
24903	//     "https://www.googleapis.com/auth/cloud-platform",
24904	//     "https://www.googleapis.com/auth/dialogflow"
24905	//   ]
24906	// }
24907
24908}
24909
24910// method id "dialogflow.projects.locations.agents.flows.versions.delete":
24911
24912type ProjectsLocationsAgentsFlowsVersionsDeleteCall struct {
24913	s          *Service
24914	name       string
24915	urlParams_ gensupport.URLParams
24916	ctx_       context.Context
24917	header_    http.Header
24918}
24919
24920// Delete: Deletes the specified Version.
24921func (r *ProjectsLocationsAgentsFlowsVersionsService) Delete(name string) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
24922	c := &ProjectsLocationsAgentsFlowsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24923	c.name = name
24924	return c
24925}
24926
24927// Fields allows partial responses to be retrieved. See
24928// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24929// for more information.
24930func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
24931	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24932	return c
24933}
24934
24935// Context sets the context to be used in this call's Do method. Any
24936// pending HTTP request will be aborted if the provided context is
24937// canceled.
24938func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
24939	c.ctx_ = ctx
24940	return c
24941}
24942
24943// Header returns an http.Header that can be modified by the caller to
24944// add HTTP headers to the request.
24945func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Header() http.Header {
24946	if c.header_ == nil {
24947		c.header_ = make(http.Header)
24948	}
24949	return c.header_
24950}
24951
24952func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
24953	reqHeaders := make(http.Header)
24954	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
24955	for k, v := range c.header_ {
24956		reqHeaders[k] = v
24957	}
24958	reqHeaders.Set("User-Agent", c.s.userAgent())
24959	var body io.Reader = nil
24960	c.urlParams_.Set("alt", alt)
24961	c.urlParams_.Set("prettyPrint", "false")
24962	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
24963	urls += "?" + c.urlParams_.Encode()
24964	req, err := http.NewRequest("DELETE", urls, body)
24965	if err != nil {
24966		return nil, err
24967	}
24968	req.Header = reqHeaders
24969	googleapi.Expand(req.URL, map[string]string{
24970		"name": c.name,
24971	})
24972	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24973}
24974
24975// Do executes the "dialogflow.projects.locations.agents.flows.versions.delete" call.
24976// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
24977// non-2xx status code is an error. Response headers are in either
24978// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
24979// returned at all) in error.(*googleapi.Error).Header. Use
24980// googleapi.IsNotModified to check whether the returned error was
24981// because http.StatusNotModified was returned.
24982func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24983	gensupport.SetOptions(c.urlParams_, opts...)
24984	res, err := c.doRequest("json")
24985	if res != nil && res.StatusCode == http.StatusNotModified {
24986		if res.Body != nil {
24987			res.Body.Close()
24988		}
24989		return nil, &googleapi.Error{
24990			Code:   res.StatusCode,
24991			Header: res.Header,
24992		}
24993	}
24994	if err != nil {
24995		return nil, err
24996	}
24997	defer googleapi.CloseBody(res)
24998	if err := googleapi.CheckResponse(res); err != nil {
24999		return nil, err
25000	}
25001	ret := &GoogleProtobufEmpty{
25002		ServerResponse: googleapi.ServerResponse{
25003			Header:         res.Header,
25004			HTTPStatusCode: res.StatusCode,
25005		},
25006	}
25007	target := &ret
25008	if err := gensupport.DecodeResponse(target, res); err != nil {
25009		return nil, err
25010	}
25011	return ret, nil
25012	// {
25013	//   "description": "Deletes the specified Version.",
25014	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/versions/{versionsId}",
25015	//   "httpMethod": "DELETE",
25016	//   "id": "dialogflow.projects.locations.agents.flows.versions.delete",
25017	//   "parameterOrder": [
25018	//     "name"
25019	//   ],
25020	//   "parameters": {
25021	//     "name": {
25022	//       "description": "Required. The name of the Version to delete. Format: `projects//locations//agents//flows//versions/`.",
25023	//       "location": "path",
25024	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$",
25025	//       "required": true,
25026	//       "type": "string"
25027	//     }
25028	//   },
25029	//   "path": "v3beta1/{+name}",
25030	//   "response": {
25031	//     "$ref": "GoogleProtobufEmpty"
25032	//   },
25033	//   "scopes": [
25034	//     "https://www.googleapis.com/auth/cloud-platform",
25035	//     "https://www.googleapis.com/auth/dialogflow"
25036	//   ]
25037	// }
25038
25039}
25040
25041// method id "dialogflow.projects.locations.agents.flows.versions.get":
25042
25043type ProjectsLocationsAgentsFlowsVersionsGetCall struct {
25044	s            *Service
25045	name         string
25046	urlParams_   gensupport.URLParams
25047	ifNoneMatch_ string
25048	ctx_         context.Context
25049	header_      http.Header
25050}
25051
25052// Get: Retrieves the specified Version.
25053func (r *ProjectsLocationsAgentsFlowsVersionsService) Get(name string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
25054	c := &ProjectsLocationsAgentsFlowsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25055	c.name = name
25056	return c
25057}
25058
25059// Fields allows partial responses to be retrieved. See
25060// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25061// for more information.
25062func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsGetCall {
25063	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25064	return c
25065}
25066
25067// IfNoneMatch sets the optional parameter which makes the operation
25068// fail if the object's ETag matches the given value. This is useful for
25069// getting updates only after the object has changed since the last
25070// request. Use googleapi.IsNotModified to check whether the response
25071// error from Do is the result of In-None-Match.
25072func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
25073	c.ifNoneMatch_ = entityTag
25074	return c
25075}
25076
25077// Context sets the context to be used in this call's Do method. Any
25078// pending HTTP request will be aborted if the provided context is
25079// canceled.
25080func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsGetCall {
25081	c.ctx_ = ctx
25082	return c
25083}
25084
25085// Header returns an http.Header that can be modified by the caller to
25086// add HTTP headers to the request.
25087func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Header() http.Header {
25088	if c.header_ == nil {
25089		c.header_ = make(http.Header)
25090	}
25091	return c.header_
25092}
25093
25094func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) doRequest(alt string) (*http.Response, error) {
25095	reqHeaders := make(http.Header)
25096	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25097	for k, v := range c.header_ {
25098		reqHeaders[k] = v
25099	}
25100	reqHeaders.Set("User-Agent", c.s.userAgent())
25101	if c.ifNoneMatch_ != "" {
25102		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25103	}
25104	var body io.Reader = nil
25105	c.urlParams_.Set("alt", alt)
25106	c.urlParams_.Set("prettyPrint", "false")
25107	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
25108	urls += "?" + c.urlParams_.Encode()
25109	req, err := http.NewRequest("GET", urls, body)
25110	if err != nil {
25111		return nil, err
25112	}
25113	req.Header = reqHeaders
25114	googleapi.Expand(req.URL, map[string]string{
25115		"name": c.name,
25116	})
25117	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25118}
25119
25120// Do executes the "dialogflow.projects.locations.agents.flows.versions.get" call.
25121// Exactly one of *GoogleCloudDialogflowCxV3beta1Version or error will
25122// be non-nil. Any non-2xx status code is an error. Response headers are
25123// in either
25124// *GoogleCloudDialogflowCxV3beta1Version.ServerResponse.Header or (if a
25125// response was returned at all) in error.(*googleapi.Error).Header. Use
25126// googleapi.IsNotModified to check whether the returned error was
25127// because http.StatusNotModified was returned.
25128func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Version, error) {
25129	gensupport.SetOptions(c.urlParams_, opts...)
25130	res, err := c.doRequest("json")
25131	if res != nil && res.StatusCode == http.StatusNotModified {
25132		if res.Body != nil {
25133			res.Body.Close()
25134		}
25135		return nil, &googleapi.Error{
25136			Code:   res.StatusCode,
25137			Header: res.Header,
25138		}
25139	}
25140	if err != nil {
25141		return nil, err
25142	}
25143	defer googleapi.CloseBody(res)
25144	if err := googleapi.CheckResponse(res); err != nil {
25145		return nil, err
25146	}
25147	ret := &GoogleCloudDialogflowCxV3beta1Version{
25148		ServerResponse: googleapi.ServerResponse{
25149			Header:         res.Header,
25150			HTTPStatusCode: res.StatusCode,
25151		},
25152	}
25153	target := &ret
25154	if err := gensupport.DecodeResponse(target, res); err != nil {
25155		return nil, err
25156	}
25157	return ret, nil
25158	// {
25159	//   "description": "Retrieves the specified Version.",
25160	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/versions/{versionsId}",
25161	//   "httpMethod": "GET",
25162	//   "id": "dialogflow.projects.locations.agents.flows.versions.get",
25163	//   "parameterOrder": [
25164	//     "name"
25165	//   ],
25166	//   "parameters": {
25167	//     "name": {
25168	//       "description": "Required. The name of the Version. Format: `projects//locations//agents//flows//versions/`.",
25169	//       "location": "path",
25170	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$",
25171	//       "required": true,
25172	//       "type": "string"
25173	//     }
25174	//   },
25175	//   "path": "v3beta1/{+name}",
25176	//   "response": {
25177	//     "$ref": "GoogleCloudDialogflowCxV3beta1Version"
25178	//   },
25179	//   "scopes": [
25180	//     "https://www.googleapis.com/auth/cloud-platform",
25181	//     "https://www.googleapis.com/auth/dialogflow"
25182	//   ]
25183	// }
25184
25185}
25186
25187// method id "dialogflow.projects.locations.agents.flows.versions.list":
25188
25189type ProjectsLocationsAgentsFlowsVersionsListCall struct {
25190	s            *Service
25191	parent       string
25192	urlParams_   gensupport.URLParams
25193	ifNoneMatch_ string
25194	ctx_         context.Context
25195	header_      http.Header
25196}
25197
25198// List: Returns the list of all versions in the specified Flow.
25199func (r *ProjectsLocationsAgentsFlowsVersionsService) List(parent string) *ProjectsLocationsAgentsFlowsVersionsListCall {
25200	c := &ProjectsLocationsAgentsFlowsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25201	c.parent = parent
25202	return c
25203}
25204
25205// PageSize sets the optional parameter "pageSize": The maximum number
25206// of items to return in a single page. By default 20 and at most 100.
25207func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsVersionsListCall {
25208	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25209	return c
25210}
25211
25212// PageToken sets the optional parameter "pageToken": The
25213// next_page_token value returned from a previous list request.
25214func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsVersionsListCall {
25215	c.urlParams_.Set("pageToken", pageToken)
25216	return c
25217}
25218
25219// Fields allows partial responses to be retrieved. See
25220// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25221// for more information.
25222func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsListCall {
25223	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25224	return c
25225}
25226
25227// IfNoneMatch sets the optional parameter which makes the operation
25228// fail if the object's ETag matches the given value. This is useful for
25229// getting updates only after the object has changed since the last
25230// request. Use googleapi.IsNotModified to check whether the response
25231// error from Do is the result of In-None-Match.
25232func (c *ProjectsLocationsAgentsFlowsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsListCall {
25233	c.ifNoneMatch_ = entityTag
25234	return c
25235}
25236
25237// Context sets the context to be used in this call's Do method. Any
25238// pending HTTP request will be aborted if the provided context is
25239// canceled.
25240func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsListCall {
25241	c.ctx_ = ctx
25242	return c
25243}
25244
25245// Header returns an http.Header that can be modified by the caller to
25246// add HTTP headers to the request.
25247func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Header() http.Header {
25248	if c.header_ == nil {
25249		c.header_ = make(http.Header)
25250	}
25251	return c.header_
25252}
25253
25254func (c *ProjectsLocationsAgentsFlowsVersionsListCall) doRequest(alt string) (*http.Response, error) {
25255	reqHeaders := make(http.Header)
25256	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25257	for k, v := range c.header_ {
25258		reqHeaders[k] = v
25259	}
25260	reqHeaders.Set("User-Agent", c.s.userAgent())
25261	if c.ifNoneMatch_ != "" {
25262		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25263	}
25264	var body io.Reader = nil
25265	c.urlParams_.Set("alt", alt)
25266	c.urlParams_.Set("prettyPrint", "false")
25267	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/versions")
25268	urls += "?" + c.urlParams_.Encode()
25269	req, err := http.NewRequest("GET", urls, body)
25270	if err != nil {
25271		return nil, err
25272	}
25273	req.Header = reqHeaders
25274	googleapi.Expand(req.URL, map[string]string{
25275		"parent": c.parent,
25276	})
25277	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25278}
25279
25280// Do executes the "dialogflow.projects.locations.agents.flows.versions.list" call.
25281// Exactly one of *GoogleCloudDialogflowCxV3beta1ListVersionsResponse or
25282// error will be non-nil. Any non-2xx status code is an error. Response
25283// headers are in either
25284// *GoogleCloudDialogflowCxV3beta1ListVersionsResponse.ServerResponse.Hea
25285// der or (if a response was returned at all) in
25286// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25287// whether the returned error was because http.StatusNotModified was
25288// returned.
25289func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListVersionsResponse, error) {
25290	gensupport.SetOptions(c.urlParams_, opts...)
25291	res, err := c.doRequest("json")
25292	if res != nil && res.StatusCode == http.StatusNotModified {
25293		if res.Body != nil {
25294			res.Body.Close()
25295		}
25296		return nil, &googleapi.Error{
25297			Code:   res.StatusCode,
25298			Header: res.Header,
25299		}
25300	}
25301	if err != nil {
25302		return nil, err
25303	}
25304	defer googleapi.CloseBody(res)
25305	if err := googleapi.CheckResponse(res); err != nil {
25306		return nil, err
25307	}
25308	ret := &GoogleCloudDialogflowCxV3beta1ListVersionsResponse{
25309		ServerResponse: googleapi.ServerResponse{
25310			Header:         res.Header,
25311			HTTPStatusCode: res.StatusCode,
25312		},
25313	}
25314	target := &ret
25315	if err := gensupport.DecodeResponse(target, res); err != nil {
25316		return nil, err
25317	}
25318	return ret, nil
25319	// {
25320	//   "description": "Returns the list of all versions in the specified Flow.",
25321	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/versions",
25322	//   "httpMethod": "GET",
25323	//   "id": "dialogflow.projects.locations.agents.flows.versions.list",
25324	//   "parameterOrder": [
25325	//     "parent"
25326	//   ],
25327	//   "parameters": {
25328	//     "pageSize": {
25329	//       "description": "The maximum number of items to return in a single page. By default 20 and at most 100.",
25330	//       "format": "int32",
25331	//       "location": "query",
25332	//       "type": "integer"
25333	//     },
25334	//     "pageToken": {
25335	//       "description": "The next_page_token value returned from a previous list request.",
25336	//       "location": "query",
25337	//       "type": "string"
25338	//     },
25339	//     "parent": {
25340	//       "description": "Required. The Flow to list all versions for. Format: `projects//locations//agents//flows/`.",
25341	//       "location": "path",
25342	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+$",
25343	//       "required": true,
25344	//       "type": "string"
25345	//     }
25346	//   },
25347	//   "path": "v3beta1/{+parent}/versions",
25348	//   "response": {
25349	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListVersionsResponse"
25350	//   },
25351	//   "scopes": [
25352	//     "https://www.googleapis.com/auth/cloud-platform",
25353	//     "https://www.googleapis.com/auth/dialogflow"
25354	//   ]
25355	// }
25356
25357}
25358
25359// Pages invokes f for each page of results.
25360// A non-nil error returned from f will halt the iteration.
25361// The provided context supersedes any context provided to the Context method.
25362func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListVersionsResponse) error) error {
25363	c.ctx_ = ctx
25364	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
25365	for {
25366		x, err := c.Do()
25367		if err != nil {
25368			return err
25369		}
25370		if err := f(x); err != nil {
25371			return err
25372		}
25373		if x.NextPageToken == "" {
25374			return nil
25375		}
25376		c.PageToken(x.NextPageToken)
25377	}
25378}
25379
25380// method id "dialogflow.projects.locations.agents.flows.versions.load":
25381
25382type ProjectsLocationsAgentsFlowsVersionsLoadCall struct {
25383	s                                                *Service
25384	name                                             string
25385	googleclouddialogflowcxv3beta1loadversionrequest *GoogleCloudDialogflowCxV3beta1LoadVersionRequest
25386	urlParams_                                       gensupport.URLParams
25387	ctx_                                             context.Context
25388	header_                                          http.Header
25389}
25390
25391// Load: Loads a specified version to draft version.
25392func (r *ProjectsLocationsAgentsFlowsVersionsService) Load(name string, googleclouddialogflowcxv3beta1loadversionrequest *GoogleCloudDialogflowCxV3beta1LoadVersionRequest) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
25393	c := &ProjectsLocationsAgentsFlowsVersionsLoadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25394	c.name = name
25395	c.googleclouddialogflowcxv3beta1loadversionrequest = googleclouddialogflowcxv3beta1loadversionrequest
25396	return c
25397}
25398
25399// Fields allows partial responses to be retrieved. See
25400// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25401// for more information.
25402func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
25403	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25404	return c
25405}
25406
25407// Context sets the context to be used in this call's Do method. Any
25408// pending HTTP request will be aborted if the provided context is
25409// canceled.
25410func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
25411	c.ctx_ = ctx
25412	return c
25413}
25414
25415// Header returns an http.Header that can be modified by the caller to
25416// add HTTP headers to the request.
25417func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Header() http.Header {
25418	if c.header_ == nil {
25419		c.header_ = make(http.Header)
25420	}
25421	return c.header_
25422}
25423
25424func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) doRequest(alt string) (*http.Response, error) {
25425	reqHeaders := make(http.Header)
25426	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25427	for k, v := range c.header_ {
25428		reqHeaders[k] = v
25429	}
25430	reqHeaders.Set("User-Agent", c.s.userAgent())
25431	var body io.Reader = nil
25432	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1loadversionrequest)
25433	if err != nil {
25434		return nil, err
25435	}
25436	reqHeaders.Set("Content-Type", "application/json")
25437	c.urlParams_.Set("alt", alt)
25438	c.urlParams_.Set("prettyPrint", "false")
25439	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:load")
25440	urls += "?" + c.urlParams_.Encode()
25441	req, err := http.NewRequest("POST", urls, body)
25442	if err != nil {
25443		return nil, err
25444	}
25445	req.Header = reqHeaders
25446	googleapi.Expand(req.URL, map[string]string{
25447		"name": c.name,
25448	})
25449	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25450}
25451
25452// Do executes the "dialogflow.projects.locations.agents.flows.versions.load" call.
25453// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
25454// Any non-2xx status code is an error. Response headers are in either
25455// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
25456// was returned at all) in error.(*googleapi.Error).Header. Use
25457// googleapi.IsNotModified to check whether the returned error was
25458// because http.StatusNotModified was returned.
25459func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25460	gensupport.SetOptions(c.urlParams_, opts...)
25461	res, err := c.doRequest("json")
25462	if res != nil && res.StatusCode == http.StatusNotModified {
25463		if res.Body != nil {
25464			res.Body.Close()
25465		}
25466		return nil, &googleapi.Error{
25467			Code:   res.StatusCode,
25468			Header: res.Header,
25469		}
25470	}
25471	if err != nil {
25472		return nil, err
25473	}
25474	defer googleapi.CloseBody(res)
25475	if err := googleapi.CheckResponse(res); err != nil {
25476		return nil, err
25477	}
25478	ret := &GoogleLongrunningOperation{
25479		ServerResponse: googleapi.ServerResponse{
25480			Header:         res.Header,
25481			HTTPStatusCode: res.StatusCode,
25482		},
25483	}
25484	target := &ret
25485	if err := gensupport.DecodeResponse(target, res); err != nil {
25486		return nil, err
25487	}
25488	return ret, nil
25489	// {
25490	//   "description": "Loads a specified version to draft version.",
25491	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/versions/{versionsId}:load",
25492	//   "httpMethod": "POST",
25493	//   "id": "dialogflow.projects.locations.agents.flows.versions.load",
25494	//   "parameterOrder": [
25495	//     "name"
25496	//   ],
25497	//   "parameters": {
25498	//     "name": {
25499	//       "description": "Required. The Version to be loaded to draft version. Format: `projects//locations//agents//flows//versions/`.",
25500	//       "location": "path",
25501	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$",
25502	//       "required": true,
25503	//       "type": "string"
25504	//     }
25505	//   },
25506	//   "path": "v3beta1/{+name}:load",
25507	//   "request": {
25508	//     "$ref": "GoogleCloudDialogflowCxV3beta1LoadVersionRequest"
25509	//   },
25510	//   "response": {
25511	//     "$ref": "GoogleLongrunningOperation"
25512	//   },
25513	//   "scopes": [
25514	//     "https://www.googleapis.com/auth/cloud-platform",
25515	//     "https://www.googleapis.com/auth/dialogflow"
25516	//   ]
25517	// }
25518
25519}
25520
25521// method id "dialogflow.projects.locations.agents.flows.versions.patch":
25522
25523type ProjectsLocationsAgentsFlowsVersionsPatchCall struct {
25524	s                                     *Service
25525	name                                  string
25526	googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version
25527	urlParams_                            gensupport.URLParams
25528	ctx_                                  context.Context
25529	header_                               http.Header
25530}
25531
25532// Patch: Updates the specified Version.
25533func (r *ProjectsLocationsAgentsFlowsVersionsService) Patch(name string, googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
25534	c := &ProjectsLocationsAgentsFlowsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25535	c.name = name
25536	c.googleclouddialogflowcxv3beta1version = googleclouddialogflowcxv3beta1version
25537	return c
25538}
25539
25540// UpdateMask sets the optional parameter "updateMask": Required. The
25541// mask to control which fields get updated. Currently only
25542// `description` and `display_name` can be updated.
25543func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
25544	c.urlParams_.Set("updateMask", updateMask)
25545	return c
25546}
25547
25548// Fields allows partial responses to be retrieved. See
25549// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25550// for more information.
25551func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
25552	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25553	return c
25554}
25555
25556// Context sets the context to be used in this call's Do method. Any
25557// pending HTTP request will be aborted if the provided context is
25558// canceled.
25559func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
25560	c.ctx_ = ctx
25561	return c
25562}
25563
25564// Header returns an http.Header that can be modified by the caller to
25565// add HTTP headers to the request.
25566func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Header() http.Header {
25567	if c.header_ == nil {
25568		c.header_ = make(http.Header)
25569	}
25570	return c.header_
25571}
25572
25573func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
25574	reqHeaders := make(http.Header)
25575	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25576	for k, v := range c.header_ {
25577		reqHeaders[k] = v
25578	}
25579	reqHeaders.Set("User-Agent", c.s.userAgent())
25580	var body io.Reader = nil
25581	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1version)
25582	if err != nil {
25583		return nil, err
25584	}
25585	reqHeaders.Set("Content-Type", "application/json")
25586	c.urlParams_.Set("alt", alt)
25587	c.urlParams_.Set("prettyPrint", "false")
25588	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
25589	urls += "?" + c.urlParams_.Encode()
25590	req, err := http.NewRequest("PATCH", urls, body)
25591	if err != nil {
25592		return nil, err
25593	}
25594	req.Header = reqHeaders
25595	googleapi.Expand(req.URL, map[string]string{
25596		"name": c.name,
25597	})
25598	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25599}
25600
25601// Do executes the "dialogflow.projects.locations.agents.flows.versions.patch" call.
25602// Exactly one of *GoogleCloudDialogflowCxV3beta1Version or error will
25603// be non-nil. Any non-2xx status code is an error. Response headers are
25604// in either
25605// *GoogleCloudDialogflowCxV3beta1Version.ServerResponse.Header or (if a
25606// response was returned at all) in error.(*googleapi.Error).Header. Use
25607// googleapi.IsNotModified to check whether the returned error was
25608// because http.StatusNotModified was returned.
25609func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Version, error) {
25610	gensupport.SetOptions(c.urlParams_, opts...)
25611	res, err := c.doRequest("json")
25612	if res != nil && res.StatusCode == http.StatusNotModified {
25613		if res.Body != nil {
25614			res.Body.Close()
25615		}
25616		return nil, &googleapi.Error{
25617			Code:   res.StatusCode,
25618			Header: res.Header,
25619		}
25620	}
25621	if err != nil {
25622		return nil, err
25623	}
25624	defer googleapi.CloseBody(res)
25625	if err := googleapi.CheckResponse(res); err != nil {
25626		return nil, err
25627	}
25628	ret := &GoogleCloudDialogflowCxV3beta1Version{
25629		ServerResponse: googleapi.ServerResponse{
25630			Header:         res.Header,
25631			HTTPStatusCode: res.StatusCode,
25632		},
25633	}
25634	target := &ret
25635	if err := gensupport.DecodeResponse(target, res); err != nil {
25636		return nil, err
25637	}
25638	return ret, nil
25639	// {
25640	//   "description": "Updates the specified Version.",
25641	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/flows/{flowsId}/versions/{versionsId}",
25642	//   "httpMethod": "PATCH",
25643	//   "id": "dialogflow.projects.locations.agents.flows.versions.patch",
25644	//   "parameterOrder": [
25645	//     "name"
25646	//   ],
25647	//   "parameters": {
25648	//     "name": {
25649	//       "description": "Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.",
25650	//       "location": "path",
25651	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/versions/[^/]+$",
25652	//       "required": true,
25653	//       "type": "string"
25654	//     },
25655	//     "updateMask": {
25656	//       "description": "Required. The mask to control which fields get updated. Currently only `description` and `display_name` can be updated.",
25657	//       "format": "google-fieldmask",
25658	//       "location": "query",
25659	//       "type": "string"
25660	//     }
25661	//   },
25662	//   "path": "v3beta1/{+name}",
25663	//   "request": {
25664	//     "$ref": "GoogleCloudDialogflowCxV3beta1Version"
25665	//   },
25666	//   "response": {
25667	//     "$ref": "GoogleCloudDialogflowCxV3beta1Version"
25668	//   },
25669	//   "scopes": [
25670	//     "https://www.googleapis.com/auth/cloud-platform",
25671	//     "https://www.googleapis.com/auth/dialogflow"
25672	//   ]
25673	// }
25674
25675}
25676
25677// method id "dialogflow.projects.locations.agents.intents.create":
25678
25679type ProjectsLocationsAgentsIntentsCreateCall struct {
25680	s                                    *Service
25681	parent                               string
25682	googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent
25683	urlParams_                           gensupport.URLParams
25684	ctx_                                 context.Context
25685	header_                              http.Header
25686}
25687
25688// Create: Creates an intent in the specified agent.
25689func (r *ProjectsLocationsAgentsIntentsService) Create(parent string, googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent) *ProjectsLocationsAgentsIntentsCreateCall {
25690	c := &ProjectsLocationsAgentsIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25691	c.parent = parent
25692	c.googleclouddialogflowcxv3beta1intent = googleclouddialogflowcxv3beta1intent
25693	return c
25694}
25695
25696// LanguageCode sets the optional parameter "languageCode": The language
25697// of the following fields in `intent`: *
25698// `Intent.training_phrases.parts.text` If not specified, the agent's
25699// default language is used. Many languages
25700// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
25701// supported. Note: languages must be enabled in the agent before they
25702// can be used.
25703func (c *ProjectsLocationsAgentsIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsCreateCall {
25704	c.urlParams_.Set("languageCode", languageCode)
25705	return c
25706}
25707
25708// Fields allows partial responses to be retrieved. See
25709// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25710// for more information.
25711func (c *ProjectsLocationsAgentsIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsCreateCall {
25712	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25713	return c
25714}
25715
25716// Context sets the context to be used in this call's Do method. Any
25717// pending HTTP request will be aborted if the provided context is
25718// canceled.
25719func (c *ProjectsLocationsAgentsIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsCreateCall {
25720	c.ctx_ = ctx
25721	return c
25722}
25723
25724// Header returns an http.Header that can be modified by the caller to
25725// add HTTP headers to the request.
25726func (c *ProjectsLocationsAgentsIntentsCreateCall) Header() http.Header {
25727	if c.header_ == nil {
25728		c.header_ = make(http.Header)
25729	}
25730	return c.header_
25731}
25732
25733func (c *ProjectsLocationsAgentsIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
25734	reqHeaders := make(http.Header)
25735	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25736	for k, v := range c.header_ {
25737		reqHeaders[k] = v
25738	}
25739	reqHeaders.Set("User-Agent", c.s.userAgent())
25740	var body io.Reader = nil
25741	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1intent)
25742	if err != nil {
25743		return nil, err
25744	}
25745	reqHeaders.Set("Content-Type", "application/json")
25746	c.urlParams_.Set("alt", alt)
25747	c.urlParams_.Set("prettyPrint", "false")
25748	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents")
25749	urls += "?" + c.urlParams_.Encode()
25750	req, err := http.NewRequest("POST", urls, body)
25751	if err != nil {
25752		return nil, err
25753	}
25754	req.Header = reqHeaders
25755	googleapi.Expand(req.URL, map[string]string{
25756		"parent": c.parent,
25757	})
25758	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25759}
25760
25761// Do executes the "dialogflow.projects.locations.agents.intents.create" call.
25762// Exactly one of *GoogleCloudDialogflowCxV3beta1Intent or error will be
25763// non-nil. Any non-2xx status code is an error. Response headers are in
25764// either *GoogleCloudDialogflowCxV3beta1Intent.ServerResponse.Header or
25765// (if a response was returned at all) in
25766// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25767// whether the returned error was because http.StatusNotModified was
25768// returned.
25769func (c *ProjectsLocationsAgentsIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
25770	gensupport.SetOptions(c.urlParams_, opts...)
25771	res, err := c.doRequest("json")
25772	if res != nil && res.StatusCode == http.StatusNotModified {
25773		if res.Body != nil {
25774			res.Body.Close()
25775		}
25776		return nil, &googleapi.Error{
25777			Code:   res.StatusCode,
25778			Header: res.Header,
25779		}
25780	}
25781	if err != nil {
25782		return nil, err
25783	}
25784	defer googleapi.CloseBody(res)
25785	if err := googleapi.CheckResponse(res); err != nil {
25786		return nil, err
25787	}
25788	ret := &GoogleCloudDialogflowCxV3beta1Intent{
25789		ServerResponse: googleapi.ServerResponse{
25790			Header:         res.Header,
25791			HTTPStatusCode: res.StatusCode,
25792		},
25793	}
25794	target := &ret
25795	if err := gensupport.DecodeResponse(target, res); err != nil {
25796		return nil, err
25797	}
25798	return ret, nil
25799	// {
25800	//   "description": "Creates an intent in the specified agent.",
25801	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/intents",
25802	//   "httpMethod": "POST",
25803	//   "id": "dialogflow.projects.locations.agents.intents.create",
25804	//   "parameterOrder": [
25805	//     "parent"
25806	//   ],
25807	//   "parameters": {
25808	//     "languageCode": {
25809	//       "description": "The language of the following fields in `intent`: * `Intent.training_phrases.parts.text` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
25810	//       "location": "query",
25811	//       "type": "string"
25812	//     },
25813	//     "parent": {
25814	//       "description": "Required. The agent to create an intent for. Format: `projects//locations//agents/`.",
25815	//       "location": "path",
25816	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
25817	//       "required": true,
25818	//       "type": "string"
25819	//     }
25820	//   },
25821	//   "path": "v3beta1/{+parent}/intents",
25822	//   "request": {
25823	//     "$ref": "GoogleCloudDialogflowCxV3beta1Intent"
25824	//   },
25825	//   "response": {
25826	//     "$ref": "GoogleCloudDialogflowCxV3beta1Intent"
25827	//   },
25828	//   "scopes": [
25829	//     "https://www.googleapis.com/auth/cloud-platform",
25830	//     "https://www.googleapis.com/auth/dialogflow"
25831	//   ]
25832	// }
25833
25834}
25835
25836// method id "dialogflow.projects.locations.agents.intents.delete":
25837
25838type ProjectsLocationsAgentsIntentsDeleteCall struct {
25839	s          *Service
25840	name       string
25841	urlParams_ gensupport.URLParams
25842	ctx_       context.Context
25843	header_    http.Header
25844}
25845
25846// Delete: Deletes the specified intent.
25847func (r *ProjectsLocationsAgentsIntentsService) Delete(name string) *ProjectsLocationsAgentsIntentsDeleteCall {
25848	c := &ProjectsLocationsAgentsIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25849	c.name = name
25850	return c
25851}
25852
25853// Fields allows partial responses to be retrieved. See
25854// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25855// for more information.
25856func (c *ProjectsLocationsAgentsIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsDeleteCall {
25857	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25858	return c
25859}
25860
25861// Context sets the context to be used in this call's Do method. Any
25862// pending HTTP request will be aborted if the provided context is
25863// canceled.
25864func (c *ProjectsLocationsAgentsIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsDeleteCall {
25865	c.ctx_ = ctx
25866	return c
25867}
25868
25869// Header returns an http.Header that can be modified by the caller to
25870// add HTTP headers to the request.
25871func (c *ProjectsLocationsAgentsIntentsDeleteCall) Header() http.Header {
25872	if c.header_ == nil {
25873		c.header_ = make(http.Header)
25874	}
25875	return c.header_
25876}
25877
25878func (c *ProjectsLocationsAgentsIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25879	reqHeaders := make(http.Header)
25880	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
25881	for k, v := range c.header_ {
25882		reqHeaders[k] = v
25883	}
25884	reqHeaders.Set("User-Agent", c.s.userAgent())
25885	var body io.Reader = nil
25886	c.urlParams_.Set("alt", alt)
25887	c.urlParams_.Set("prettyPrint", "false")
25888	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
25889	urls += "?" + c.urlParams_.Encode()
25890	req, err := http.NewRequest("DELETE", urls, body)
25891	if err != nil {
25892		return nil, err
25893	}
25894	req.Header = reqHeaders
25895	googleapi.Expand(req.URL, map[string]string{
25896		"name": c.name,
25897	})
25898	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25899}
25900
25901// Do executes the "dialogflow.projects.locations.agents.intents.delete" call.
25902// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
25903// non-2xx status code is an error. Response headers are in either
25904// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
25905// returned at all) in error.(*googleapi.Error).Header. Use
25906// googleapi.IsNotModified to check whether the returned error was
25907// because http.StatusNotModified was returned.
25908func (c *ProjectsLocationsAgentsIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25909	gensupport.SetOptions(c.urlParams_, opts...)
25910	res, err := c.doRequest("json")
25911	if res != nil && res.StatusCode == http.StatusNotModified {
25912		if res.Body != nil {
25913			res.Body.Close()
25914		}
25915		return nil, &googleapi.Error{
25916			Code:   res.StatusCode,
25917			Header: res.Header,
25918		}
25919	}
25920	if err != nil {
25921		return nil, err
25922	}
25923	defer googleapi.CloseBody(res)
25924	if err := googleapi.CheckResponse(res); err != nil {
25925		return nil, err
25926	}
25927	ret := &GoogleProtobufEmpty{
25928		ServerResponse: googleapi.ServerResponse{
25929			Header:         res.Header,
25930			HTTPStatusCode: res.StatusCode,
25931		},
25932	}
25933	target := &ret
25934	if err := gensupport.DecodeResponse(target, res); err != nil {
25935		return nil, err
25936	}
25937	return ret, nil
25938	// {
25939	//   "description": "Deletes the specified intent.",
25940	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/intents/{intentsId}",
25941	//   "httpMethod": "DELETE",
25942	//   "id": "dialogflow.projects.locations.agents.intents.delete",
25943	//   "parameterOrder": [
25944	//     "name"
25945	//   ],
25946	//   "parameters": {
25947	//     "name": {
25948	//       "description": "Required. The name of the intent to delete. Format: `projects//locations//agents//intents/`.",
25949	//       "location": "path",
25950	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/intents/[^/]+$",
25951	//       "required": true,
25952	//       "type": "string"
25953	//     }
25954	//   },
25955	//   "path": "v3beta1/{+name}",
25956	//   "response": {
25957	//     "$ref": "GoogleProtobufEmpty"
25958	//   },
25959	//   "scopes": [
25960	//     "https://www.googleapis.com/auth/cloud-platform",
25961	//     "https://www.googleapis.com/auth/dialogflow"
25962	//   ]
25963	// }
25964
25965}
25966
25967// method id "dialogflow.projects.locations.agents.intents.get":
25968
25969type ProjectsLocationsAgentsIntentsGetCall struct {
25970	s            *Service
25971	name         string
25972	urlParams_   gensupport.URLParams
25973	ifNoneMatch_ string
25974	ctx_         context.Context
25975	header_      http.Header
25976}
25977
25978// Get: Retrieves the specified intent.
25979func (r *ProjectsLocationsAgentsIntentsService) Get(name string) *ProjectsLocationsAgentsIntentsGetCall {
25980	c := &ProjectsLocationsAgentsIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25981	c.name = name
25982	return c
25983}
25984
25985// LanguageCode sets the optional parameter "languageCode": The language
25986// to retrieve the intent for. The following fields are language
25987// dependent: * `Intent.training_phrases.parts.text` If not specified,
25988// the agent's default language is used. Many languages
25989// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
25990// supported. Note: languages must be enabled in the agent before they
25991// can be used.
25992func (c *ProjectsLocationsAgentsIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsGetCall {
25993	c.urlParams_.Set("languageCode", languageCode)
25994	return c
25995}
25996
25997// Fields allows partial responses to be retrieved. See
25998// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25999// for more information.
26000func (c *ProjectsLocationsAgentsIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsGetCall {
26001	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26002	return c
26003}
26004
26005// IfNoneMatch sets the optional parameter which makes the operation
26006// fail if the object's ETag matches the given value. This is useful for
26007// getting updates only after the object has changed since the last
26008// request. Use googleapi.IsNotModified to check whether the response
26009// error from Do is the result of In-None-Match.
26010func (c *ProjectsLocationsAgentsIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsGetCall {
26011	c.ifNoneMatch_ = entityTag
26012	return c
26013}
26014
26015// Context sets the context to be used in this call's Do method. Any
26016// pending HTTP request will be aborted if the provided context is
26017// canceled.
26018func (c *ProjectsLocationsAgentsIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsGetCall {
26019	c.ctx_ = ctx
26020	return c
26021}
26022
26023// Header returns an http.Header that can be modified by the caller to
26024// add HTTP headers to the request.
26025func (c *ProjectsLocationsAgentsIntentsGetCall) Header() http.Header {
26026	if c.header_ == nil {
26027		c.header_ = make(http.Header)
26028	}
26029	return c.header_
26030}
26031
26032func (c *ProjectsLocationsAgentsIntentsGetCall) doRequest(alt string) (*http.Response, error) {
26033	reqHeaders := make(http.Header)
26034	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26035	for k, v := range c.header_ {
26036		reqHeaders[k] = v
26037	}
26038	reqHeaders.Set("User-Agent", c.s.userAgent())
26039	if c.ifNoneMatch_ != "" {
26040		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26041	}
26042	var body io.Reader = nil
26043	c.urlParams_.Set("alt", alt)
26044	c.urlParams_.Set("prettyPrint", "false")
26045	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
26046	urls += "?" + c.urlParams_.Encode()
26047	req, err := http.NewRequest("GET", urls, body)
26048	if err != nil {
26049		return nil, err
26050	}
26051	req.Header = reqHeaders
26052	googleapi.Expand(req.URL, map[string]string{
26053		"name": c.name,
26054	})
26055	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26056}
26057
26058// Do executes the "dialogflow.projects.locations.agents.intents.get" call.
26059// Exactly one of *GoogleCloudDialogflowCxV3beta1Intent or error will be
26060// non-nil. Any non-2xx status code is an error. Response headers are in
26061// either *GoogleCloudDialogflowCxV3beta1Intent.ServerResponse.Header or
26062// (if a response was returned at all) in
26063// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26064// whether the returned error was because http.StatusNotModified was
26065// returned.
26066func (c *ProjectsLocationsAgentsIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
26067	gensupport.SetOptions(c.urlParams_, opts...)
26068	res, err := c.doRequest("json")
26069	if res != nil && res.StatusCode == http.StatusNotModified {
26070		if res.Body != nil {
26071			res.Body.Close()
26072		}
26073		return nil, &googleapi.Error{
26074			Code:   res.StatusCode,
26075			Header: res.Header,
26076		}
26077	}
26078	if err != nil {
26079		return nil, err
26080	}
26081	defer googleapi.CloseBody(res)
26082	if err := googleapi.CheckResponse(res); err != nil {
26083		return nil, err
26084	}
26085	ret := &GoogleCloudDialogflowCxV3beta1Intent{
26086		ServerResponse: googleapi.ServerResponse{
26087			Header:         res.Header,
26088			HTTPStatusCode: res.StatusCode,
26089		},
26090	}
26091	target := &ret
26092	if err := gensupport.DecodeResponse(target, res); err != nil {
26093		return nil, err
26094	}
26095	return ret, nil
26096	// {
26097	//   "description": "Retrieves the specified intent.",
26098	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/intents/{intentsId}",
26099	//   "httpMethod": "GET",
26100	//   "id": "dialogflow.projects.locations.agents.intents.get",
26101	//   "parameterOrder": [
26102	//     "name"
26103	//   ],
26104	//   "parameters": {
26105	//     "languageCode": {
26106	//       "description": "The language to retrieve the intent for. The following fields are language dependent: * `Intent.training_phrases.parts.text` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
26107	//       "location": "query",
26108	//       "type": "string"
26109	//     },
26110	//     "name": {
26111	//       "description": "Required. The name of the intent. Format: `projects//locations//agents//intents/`.",
26112	//       "location": "path",
26113	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/intents/[^/]+$",
26114	//       "required": true,
26115	//       "type": "string"
26116	//     }
26117	//   },
26118	//   "path": "v3beta1/{+name}",
26119	//   "response": {
26120	//     "$ref": "GoogleCloudDialogflowCxV3beta1Intent"
26121	//   },
26122	//   "scopes": [
26123	//     "https://www.googleapis.com/auth/cloud-platform",
26124	//     "https://www.googleapis.com/auth/dialogflow"
26125	//   ]
26126	// }
26127
26128}
26129
26130// method id "dialogflow.projects.locations.agents.intents.list":
26131
26132type ProjectsLocationsAgentsIntentsListCall struct {
26133	s            *Service
26134	parent       string
26135	urlParams_   gensupport.URLParams
26136	ifNoneMatch_ string
26137	ctx_         context.Context
26138	header_      http.Header
26139}
26140
26141// List: Returns the list of all intents in the specified agent.
26142func (r *ProjectsLocationsAgentsIntentsService) List(parent string) *ProjectsLocationsAgentsIntentsListCall {
26143	c := &ProjectsLocationsAgentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26144	c.parent = parent
26145	return c
26146}
26147
26148// IntentView sets the optional parameter "intentView": The resource
26149// view to apply to the returned intent.
26150//
26151// Possible values:
26152//   "INTENT_VIEW_UNSPECIFIED" - Not specified. Treated as
26153// INTENT_VIEW_FULL.
26154//   "INTENT_VIEW_PARTIAL" - Training phrases field is not populated in
26155// the response.
26156//   "INTENT_VIEW_FULL" - All fields are populated.
26157func (c *ProjectsLocationsAgentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentsIntentsListCall {
26158	c.urlParams_.Set("intentView", intentView)
26159	return c
26160}
26161
26162// LanguageCode sets the optional parameter "languageCode": The language
26163// to list intents for. The following fields are language dependent: *
26164// `Intent.training_phrases.parts.text` If not specified, the agent's
26165// default language is used. Many languages
26166// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
26167// supported. Note: languages must be enabled in the agent before they
26168// can be used.
26169func (c *ProjectsLocationsAgentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsListCall {
26170	c.urlParams_.Set("languageCode", languageCode)
26171	return c
26172}
26173
26174// PageSize sets the optional parameter "pageSize": The maximum number
26175// of items to return in a single page. By default 100 and at most 1000.
26176func (c *ProjectsLocationsAgentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsIntentsListCall {
26177	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26178	return c
26179}
26180
26181// PageToken sets the optional parameter "pageToken": The
26182// next_page_token value returned from a previous list request.
26183func (c *ProjectsLocationsAgentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsIntentsListCall {
26184	c.urlParams_.Set("pageToken", pageToken)
26185	return c
26186}
26187
26188// Fields allows partial responses to be retrieved. See
26189// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26190// for more information.
26191func (c *ProjectsLocationsAgentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsListCall {
26192	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26193	return c
26194}
26195
26196// IfNoneMatch sets the optional parameter which makes the operation
26197// fail if the object's ETag matches the given value. This is useful for
26198// getting updates only after the object has changed since the last
26199// request. Use googleapi.IsNotModified to check whether the response
26200// error from Do is the result of In-None-Match.
26201func (c *ProjectsLocationsAgentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsListCall {
26202	c.ifNoneMatch_ = entityTag
26203	return c
26204}
26205
26206// Context sets the context to be used in this call's Do method. Any
26207// pending HTTP request will be aborted if the provided context is
26208// canceled.
26209func (c *ProjectsLocationsAgentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsListCall {
26210	c.ctx_ = ctx
26211	return c
26212}
26213
26214// Header returns an http.Header that can be modified by the caller to
26215// add HTTP headers to the request.
26216func (c *ProjectsLocationsAgentsIntentsListCall) Header() http.Header {
26217	if c.header_ == nil {
26218		c.header_ = make(http.Header)
26219	}
26220	return c.header_
26221}
26222
26223func (c *ProjectsLocationsAgentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
26224	reqHeaders := make(http.Header)
26225	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26226	for k, v := range c.header_ {
26227		reqHeaders[k] = v
26228	}
26229	reqHeaders.Set("User-Agent", c.s.userAgent())
26230	if c.ifNoneMatch_ != "" {
26231		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26232	}
26233	var body io.Reader = nil
26234	c.urlParams_.Set("alt", alt)
26235	c.urlParams_.Set("prettyPrint", "false")
26236	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents")
26237	urls += "?" + c.urlParams_.Encode()
26238	req, err := http.NewRequest("GET", urls, body)
26239	if err != nil {
26240		return nil, err
26241	}
26242	req.Header = reqHeaders
26243	googleapi.Expand(req.URL, map[string]string{
26244		"parent": c.parent,
26245	})
26246	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26247}
26248
26249// Do executes the "dialogflow.projects.locations.agents.intents.list" call.
26250// Exactly one of *GoogleCloudDialogflowCxV3beta1ListIntentsResponse or
26251// error will be non-nil. Any non-2xx status code is an error. Response
26252// headers are in either
26253// *GoogleCloudDialogflowCxV3beta1ListIntentsResponse.ServerResponse.Head
26254// er or (if a response was returned at all) in
26255// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26256// whether the returned error was because http.StatusNotModified was
26257// returned.
26258func (c *ProjectsLocationsAgentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListIntentsResponse, error) {
26259	gensupport.SetOptions(c.urlParams_, opts...)
26260	res, err := c.doRequest("json")
26261	if res != nil && res.StatusCode == http.StatusNotModified {
26262		if res.Body != nil {
26263			res.Body.Close()
26264		}
26265		return nil, &googleapi.Error{
26266			Code:   res.StatusCode,
26267			Header: res.Header,
26268		}
26269	}
26270	if err != nil {
26271		return nil, err
26272	}
26273	defer googleapi.CloseBody(res)
26274	if err := googleapi.CheckResponse(res); err != nil {
26275		return nil, err
26276	}
26277	ret := &GoogleCloudDialogflowCxV3beta1ListIntentsResponse{
26278		ServerResponse: googleapi.ServerResponse{
26279			Header:         res.Header,
26280			HTTPStatusCode: res.StatusCode,
26281		},
26282	}
26283	target := &ret
26284	if err := gensupport.DecodeResponse(target, res); err != nil {
26285		return nil, err
26286	}
26287	return ret, nil
26288	// {
26289	//   "description": "Returns the list of all intents in the specified agent.",
26290	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/intents",
26291	//   "httpMethod": "GET",
26292	//   "id": "dialogflow.projects.locations.agents.intents.list",
26293	//   "parameterOrder": [
26294	//     "parent"
26295	//   ],
26296	//   "parameters": {
26297	//     "intentView": {
26298	//       "description": "The resource view to apply to the returned intent.",
26299	//       "enum": [
26300	//         "INTENT_VIEW_UNSPECIFIED",
26301	//         "INTENT_VIEW_PARTIAL",
26302	//         "INTENT_VIEW_FULL"
26303	//       ],
26304	//       "enumDescriptions": [
26305	//         "Not specified. Treated as INTENT_VIEW_FULL.",
26306	//         "Training phrases field is not populated in the response.",
26307	//         "All fields are populated."
26308	//       ],
26309	//       "location": "query",
26310	//       "type": "string"
26311	//     },
26312	//     "languageCode": {
26313	//       "description": "The language to list intents for. The following fields are language dependent: * `Intent.training_phrases.parts.text` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
26314	//       "location": "query",
26315	//       "type": "string"
26316	//     },
26317	//     "pageSize": {
26318	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
26319	//       "format": "int32",
26320	//       "location": "query",
26321	//       "type": "integer"
26322	//     },
26323	//     "pageToken": {
26324	//       "description": "The next_page_token value returned from a previous list request.",
26325	//       "location": "query",
26326	//       "type": "string"
26327	//     },
26328	//     "parent": {
26329	//       "description": "Required. The agent to list all intents for. Format: `projects//locations//agents/`.",
26330	//       "location": "path",
26331	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
26332	//       "required": true,
26333	//       "type": "string"
26334	//     }
26335	//   },
26336	//   "path": "v3beta1/{+parent}/intents",
26337	//   "response": {
26338	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListIntentsResponse"
26339	//   },
26340	//   "scopes": [
26341	//     "https://www.googleapis.com/auth/cloud-platform",
26342	//     "https://www.googleapis.com/auth/dialogflow"
26343	//   ]
26344	// }
26345
26346}
26347
26348// Pages invokes f for each page of results.
26349// A non-nil error returned from f will halt the iteration.
26350// The provided context supersedes any context provided to the Context method.
26351func (c *ProjectsLocationsAgentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListIntentsResponse) error) error {
26352	c.ctx_ = ctx
26353	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
26354	for {
26355		x, err := c.Do()
26356		if err != nil {
26357			return err
26358		}
26359		if err := f(x); err != nil {
26360			return err
26361		}
26362		if x.NextPageToken == "" {
26363			return nil
26364		}
26365		c.PageToken(x.NextPageToken)
26366	}
26367}
26368
26369// method id "dialogflow.projects.locations.agents.intents.patch":
26370
26371type ProjectsLocationsAgentsIntentsPatchCall struct {
26372	s                                    *Service
26373	nameid                               string
26374	googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent
26375	urlParams_                           gensupport.URLParams
26376	ctx_                                 context.Context
26377	header_                              http.Header
26378}
26379
26380// Patch: Updates the specified intent.
26381func (r *ProjectsLocationsAgentsIntentsService) Patch(nameid string, googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent) *ProjectsLocationsAgentsIntentsPatchCall {
26382	c := &ProjectsLocationsAgentsIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26383	c.nameid = nameid
26384	c.googleclouddialogflowcxv3beta1intent = googleclouddialogflowcxv3beta1intent
26385	return c
26386}
26387
26388// LanguageCode sets the optional parameter "languageCode": The language
26389// of the following fields in `intent`: *
26390// `Intent.training_phrases.parts.text` If not specified, the agent's
26391// default language is used. Many languages
26392// (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
26393// supported. Note: languages must be enabled in the agent before they
26394// can be used.
26395func (c *ProjectsLocationsAgentsIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsPatchCall {
26396	c.urlParams_.Set("languageCode", languageCode)
26397	return c
26398}
26399
26400// UpdateMask sets the optional parameter "updateMask": The mask to
26401// control which fields get updated. If the mask is not present, all
26402// fields will be updated.
26403func (c *ProjectsLocationsAgentsIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsIntentsPatchCall {
26404	c.urlParams_.Set("updateMask", updateMask)
26405	return c
26406}
26407
26408// Fields allows partial responses to be retrieved. See
26409// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26410// for more information.
26411func (c *ProjectsLocationsAgentsIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsPatchCall {
26412	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26413	return c
26414}
26415
26416// Context sets the context to be used in this call's Do method. Any
26417// pending HTTP request will be aborted if the provided context is
26418// canceled.
26419func (c *ProjectsLocationsAgentsIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsPatchCall {
26420	c.ctx_ = ctx
26421	return c
26422}
26423
26424// Header returns an http.Header that can be modified by the caller to
26425// add HTTP headers to the request.
26426func (c *ProjectsLocationsAgentsIntentsPatchCall) Header() http.Header {
26427	if c.header_ == nil {
26428		c.header_ = make(http.Header)
26429	}
26430	return c.header_
26431}
26432
26433func (c *ProjectsLocationsAgentsIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
26434	reqHeaders := make(http.Header)
26435	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26436	for k, v := range c.header_ {
26437		reqHeaders[k] = v
26438	}
26439	reqHeaders.Set("User-Agent", c.s.userAgent())
26440	var body io.Reader = nil
26441	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1intent)
26442	if err != nil {
26443		return nil, err
26444	}
26445	reqHeaders.Set("Content-Type", "application/json")
26446	c.urlParams_.Set("alt", alt)
26447	c.urlParams_.Set("prettyPrint", "false")
26448	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
26449	urls += "?" + c.urlParams_.Encode()
26450	req, err := http.NewRequest("PATCH", urls, body)
26451	if err != nil {
26452		return nil, err
26453	}
26454	req.Header = reqHeaders
26455	googleapi.Expand(req.URL, map[string]string{
26456		"name": c.nameid,
26457	})
26458	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26459}
26460
26461// Do executes the "dialogflow.projects.locations.agents.intents.patch" call.
26462// Exactly one of *GoogleCloudDialogflowCxV3beta1Intent or error will be
26463// non-nil. Any non-2xx status code is an error. Response headers are in
26464// either *GoogleCloudDialogflowCxV3beta1Intent.ServerResponse.Header or
26465// (if a response was returned at all) in
26466// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26467// whether the returned error was because http.StatusNotModified was
26468// returned.
26469func (c *ProjectsLocationsAgentsIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
26470	gensupport.SetOptions(c.urlParams_, opts...)
26471	res, err := c.doRequest("json")
26472	if res != nil && res.StatusCode == http.StatusNotModified {
26473		if res.Body != nil {
26474			res.Body.Close()
26475		}
26476		return nil, &googleapi.Error{
26477			Code:   res.StatusCode,
26478			Header: res.Header,
26479		}
26480	}
26481	if err != nil {
26482		return nil, err
26483	}
26484	defer googleapi.CloseBody(res)
26485	if err := googleapi.CheckResponse(res); err != nil {
26486		return nil, err
26487	}
26488	ret := &GoogleCloudDialogflowCxV3beta1Intent{
26489		ServerResponse: googleapi.ServerResponse{
26490			Header:         res.Header,
26491			HTTPStatusCode: res.StatusCode,
26492		},
26493	}
26494	target := &ret
26495	if err := gensupport.DecodeResponse(target, res); err != nil {
26496		return nil, err
26497	}
26498	return ret, nil
26499	// {
26500	//   "description": "Updates the specified intent.",
26501	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/intents/{intentsId}",
26502	//   "httpMethod": "PATCH",
26503	//   "id": "dialogflow.projects.locations.agents.intents.patch",
26504	//   "parameterOrder": [
26505	//     "name"
26506	//   ],
26507	//   "parameters": {
26508	//     "languageCode": {
26509	//       "description": "The language of the following fields in `intent`: * `Intent.training_phrases.parts.text` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.",
26510	//       "location": "query",
26511	//       "type": "string"
26512	//     },
26513	//     "name": {
26514	//       "description": "The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`.",
26515	//       "location": "path",
26516	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/intents/[^/]+$",
26517	//       "required": true,
26518	//       "type": "string"
26519	//     },
26520	//     "updateMask": {
26521	//       "description": "The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
26522	//       "format": "google-fieldmask",
26523	//       "location": "query",
26524	//       "type": "string"
26525	//     }
26526	//   },
26527	//   "path": "v3beta1/{+name}",
26528	//   "request": {
26529	//     "$ref": "GoogleCloudDialogflowCxV3beta1Intent"
26530	//   },
26531	//   "response": {
26532	//     "$ref": "GoogleCloudDialogflowCxV3beta1Intent"
26533	//   },
26534	//   "scopes": [
26535	//     "https://www.googleapis.com/auth/cloud-platform",
26536	//     "https://www.googleapis.com/auth/dialogflow"
26537	//   ]
26538	// }
26539
26540}
26541
26542// method id "dialogflow.projects.locations.agents.sessions.detectIntent":
26543
26544type ProjectsLocationsAgentsSessionsDetectIntentCall struct {
26545	s                                                 *Service
26546	sessionid                                         string
26547	googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
26548	urlParams_                                        gensupport.URLParams
26549	ctx_                                              context.Context
26550	header_                                           http.Header
26551}
26552
26553// DetectIntent: Processes a natural language query and returns
26554// structured, actionable data as a result. This method is not
26555// idempotent, because it may cause session entity types to be updated,
26556// which in turn might affect results of future queries. Note: Always
26557// use agent versions for production traffic. See Versions and
26558// environments
26559// (https://cloud.google.com/dialogflow/cx/docs/concept/version).
26560func (r *ProjectsLocationsAgentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsSessionsDetectIntentCall {
26561	c := &ProjectsLocationsAgentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26562	c.sessionid = sessionid
26563	c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
26564	return c
26565}
26566
26567// Fields allows partial responses to be retrieved. See
26568// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26569// for more information.
26570func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsDetectIntentCall {
26571	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26572	return c
26573}
26574
26575// Context sets the context to be used in this call's Do method. Any
26576// pending HTTP request will be aborted if the provided context is
26577// canceled.
26578func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsDetectIntentCall {
26579	c.ctx_ = ctx
26580	return c
26581}
26582
26583// Header returns an http.Header that can be modified by the caller to
26584// add HTTP headers to the request.
26585func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Header() http.Header {
26586	if c.header_ == nil {
26587		c.header_ = make(http.Header)
26588	}
26589	return c.header_
26590}
26591
26592func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
26593	reqHeaders := make(http.Header)
26594	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26595	for k, v := range c.header_ {
26596		reqHeaders[k] = v
26597	}
26598	reqHeaders.Set("User-Agent", c.s.userAgent())
26599	var body io.Reader = nil
26600	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
26601	if err != nil {
26602		return nil, err
26603	}
26604	reqHeaders.Set("Content-Type", "application/json")
26605	c.urlParams_.Set("alt", alt)
26606	c.urlParams_.Set("prettyPrint", "false")
26607	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:detectIntent")
26608	urls += "?" + c.urlParams_.Encode()
26609	req, err := http.NewRequest("POST", urls, body)
26610	if err != nil {
26611		return nil, err
26612	}
26613	req.Header = reqHeaders
26614	googleapi.Expand(req.URL, map[string]string{
26615		"session": c.sessionid,
26616	})
26617	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26618}
26619
26620// Do executes the "dialogflow.projects.locations.agents.sessions.detectIntent" call.
26621// Exactly one of *GoogleCloudDialogflowCxV3beta1DetectIntentResponse or
26622// error will be non-nil. Any non-2xx status code is an error. Response
26623// headers are in either
26624// *GoogleCloudDialogflowCxV3beta1DetectIntentResponse.ServerResponse.Hea
26625// der or (if a response was returned at all) in
26626// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26627// whether the returned error was because http.StatusNotModified was
26628// returned.
26629func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
26630	gensupport.SetOptions(c.urlParams_, opts...)
26631	res, err := c.doRequest("json")
26632	if res != nil && res.StatusCode == http.StatusNotModified {
26633		if res.Body != nil {
26634			res.Body.Close()
26635		}
26636		return nil, &googleapi.Error{
26637			Code:   res.StatusCode,
26638			Header: res.Header,
26639		}
26640	}
26641	if err != nil {
26642		return nil, err
26643	}
26644	defer googleapi.CloseBody(res)
26645	if err := googleapi.CheckResponse(res); err != nil {
26646		return nil, err
26647	}
26648	ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
26649		ServerResponse: googleapi.ServerResponse{
26650			Header:         res.Header,
26651			HTTPStatusCode: res.StatusCode,
26652		},
26653	}
26654	target := &ret
26655	if err := gensupport.DecodeResponse(target, res); err != nil {
26656		return nil, err
26657	}
26658	return ret, nil
26659	// {
26660	//   "description": "Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause 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/cx/docs/concept/version).",
26661	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}:detectIntent",
26662	//   "httpMethod": "POST",
26663	//   "id": "dialogflow.projects.locations.agents.sessions.detectIntent",
26664	//   "parameterOrder": [
26665	//     "session"
26666	//   ],
26667	//   "parameters": {
26668	//     "session": {
26669	//       "description": "Required. The name of the session this query is sent to. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).",
26670	//       "location": "path",
26671	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$",
26672	//       "required": true,
26673	//       "type": "string"
26674	//     }
26675	//   },
26676	//   "path": "v3beta1/{+session}:detectIntent",
26677	//   "request": {
26678	//     "$ref": "GoogleCloudDialogflowCxV3beta1DetectIntentRequest"
26679	//   },
26680	//   "response": {
26681	//     "$ref": "GoogleCloudDialogflowCxV3beta1DetectIntentResponse"
26682	//   },
26683	//   "scopes": [
26684	//     "https://www.googleapis.com/auth/cloud-platform",
26685	//     "https://www.googleapis.com/auth/dialogflow"
26686	//   ]
26687	// }
26688
26689}
26690
26691// method id "dialogflow.projects.locations.agents.sessions.fulfillIntent":
26692
26693type ProjectsLocationsAgentsSessionsFulfillIntentCall struct {
26694	s                                                  *Service
26695	sessionid                                          string
26696	googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
26697	urlParams_                                         gensupport.URLParams
26698	ctx_                                               context.Context
26699	header_                                            http.Header
26700}
26701
26702// FulfillIntent: Fulfills a matched intent returned by MatchIntent.
26703// Must be called after MatchIntent, with input from
26704// MatchIntentResponse. Otherwise, the behavior is undefined.
26705func (r *ProjectsLocationsAgentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
26706	c := &ProjectsLocationsAgentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26707	c.sessionid = sessionid
26708	c.googleclouddialogflowcxv3beta1fulfillintentrequest = googleclouddialogflowcxv3beta1fulfillintentrequest
26709	return c
26710}
26711
26712// Fields allows partial responses to be retrieved. See
26713// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26714// for more information.
26715func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
26716	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26717	return c
26718}
26719
26720// Context sets the context to be used in this call's Do method. Any
26721// pending HTTP request will be aborted if the provided context is
26722// canceled.
26723func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
26724	c.ctx_ = ctx
26725	return c
26726}
26727
26728// Header returns an http.Header that can be modified by the caller to
26729// add HTTP headers to the request.
26730func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Header() http.Header {
26731	if c.header_ == nil {
26732		c.header_ = make(http.Header)
26733	}
26734	return c.header_
26735}
26736
26737func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
26738	reqHeaders := make(http.Header)
26739	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26740	for k, v := range c.header_ {
26741		reqHeaders[k] = v
26742	}
26743	reqHeaders.Set("User-Agent", c.s.userAgent())
26744	var body io.Reader = nil
26745	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1fulfillintentrequest)
26746	if err != nil {
26747		return nil, err
26748	}
26749	reqHeaders.Set("Content-Type", "application/json")
26750	c.urlParams_.Set("alt", alt)
26751	c.urlParams_.Set("prettyPrint", "false")
26752	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:fulfillIntent")
26753	urls += "?" + c.urlParams_.Encode()
26754	req, err := http.NewRequest("POST", urls, body)
26755	if err != nil {
26756		return nil, err
26757	}
26758	req.Header = reqHeaders
26759	googleapi.Expand(req.URL, map[string]string{
26760		"session": c.sessionid,
26761	})
26762	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26763}
26764
26765// Do executes the "dialogflow.projects.locations.agents.sessions.fulfillIntent" call.
26766// Exactly one of *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
26767// or error will be non-nil. Any non-2xx status code is an error.
26768// Response headers are in either
26769// *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse.ServerResponse.He
26770// ader or (if a response was returned at all) in
26771// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26772// whether the returned error was because http.StatusNotModified was
26773// returned.
26774func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FulfillIntentResponse, error) {
26775	gensupport.SetOptions(c.urlParams_, opts...)
26776	res, err := c.doRequest("json")
26777	if res != nil && res.StatusCode == http.StatusNotModified {
26778		if res.Body != nil {
26779			res.Body.Close()
26780		}
26781		return nil, &googleapi.Error{
26782			Code:   res.StatusCode,
26783			Header: res.Header,
26784		}
26785	}
26786	if err != nil {
26787		return nil, err
26788	}
26789	defer googleapi.CloseBody(res)
26790	if err := googleapi.CheckResponse(res); err != nil {
26791		return nil, err
26792	}
26793	ret := &GoogleCloudDialogflowCxV3beta1FulfillIntentResponse{
26794		ServerResponse: googleapi.ServerResponse{
26795			Header:         res.Header,
26796			HTTPStatusCode: res.StatusCode,
26797		},
26798	}
26799	target := &ret
26800	if err := gensupport.DecodeResponse(target, res); err != nil {
26801		return nil, err
26802	}
26803	return ret, nil
26804	// {
26805	//   "description": "Fulfills a matched intent returned by MatchIntent. Must be called after MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is undefined.",
26806	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}:fulfillIntent",
26807	//   "httpMethod": "POST",
26808	//   "id": "dialogflow.projects.locations.agents.sessions.fulfillIntent",
26809	//   "parameterOrder": [
26810	//     "session"
26811	//   ],
26812	//   "parameters": {
26813	//     "session": {
26814	//       "description": "Required. The name of the session this query is sent to. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).",
26815	//       "location": "path",
26816	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$",
26817	//       "required": true,
26818	//       "type": "string"
26819	//     }
26820	//   },
26821	//   "path": "v3beta1/{+session}:fulfillIntent",
26822	//   "request": {
26823	//     "$ref": "GoogleCloudDialogflowCxV3beta1FulfillIntentRequest"
26824	//   },
26825	//   "response": {
26826	//     "$ref": "GoogleCloudDialogflowCxV3beta1FulfillIntentResponse"
26827	//   },
26828	//   "scopes": [
26829	//     "https://www.googleapis.com/auth/cloud-platform",
26830	//     "https://www.googleapis.com/auth/dialogflow"
26831	//   ]
26832	// }
26833
26834}
26835
26836// method id "dialogflow.projects.locations.agents.sessions.matchIntent":
26837
26838type ProjectsLocationsAgentsSessionsMatchIntentCall struct {
26839	s                                                *Service
26840	sessionid                                        string
26841	googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest
26842	urlParams_                                       gensupport.URLParams
26843	ctx_                                             context.Context
26844	header_                                          http.Header
26845}
26846
26847// MatchIntent: Returns preliminary intent match results, doesn't change
26848// the session status.
26849func (r *ProjectsLocationsAgentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) *ProjectsLocationsAgentsSessionsMatchIntentCall {
26850	c := &ProjectsLocationsAgentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26851	c.sessionid = sessionid
26852	c.googleclouddialogflowcxv3beta1matchintentrequest = googleclouddialogflowcxv3beta1matchintentrequest
26853	return c
26854}
26855
26856// Fields allows partial responses to be retrieved. See
26857// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26858// for more information.
26859func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsMatchIntentCall {
26860	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26861	return c
26862}
26863
26864// Context sets the context to be used in this call's Do method. Any
26865// pending HTTP request will be aborted if the provided context is
26866// canceled.
26867func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsMatchIntentCall {
26868	c.ctx_ = ctx
26869	return c
26870}
26871
26872// Header returns an http.Header that can be modified by the caller to
26873// add HTTP headers to the request.
26874func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Header() http.Header {
26875	if c.header_ == nil {
26876		c.header_ = make(http.Header)
26877	}
26878	return c.header_
26879}
26880
26881func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
26882	reqHeaders := make(http.Header)
26883	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
26884	for k, v := range c.header_ {
26885		reqHeaders[k] = v
26886	}
26887	reqHeaders.Set("User-Agent", c.s.userAgent())
26888	var body io.Reader = nil
26889	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1matchintentrequest)
26890	if err != nil {
26891		return nil, err
26892	}
26893	reqHeaders.Set("Content-Type", "application/json")
26894	c.urlParams_.Set("alt", alt)
26895	c.urlParams_.Set("prettyPrint", "false")
26896	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:matchIntent")
26897	urls += "?" + c.urlParams_.Encode()
26898	req, err := http.NewRequest("POST", urls, body)
26899	if err != nil {
26900		return nil, err
26901	}
26902	req.Header = reqHeaders
26903	googleapi.Expand(req.URL, map[string]string{
26904		"session": c.sessionid,
26905	})
26906	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26907}
26908
26909// Do executes the "dialogflow.projects.locations.agents.sessions.matchIntent" call.
26910// Exactly one of *GoogleCloudDialogflowCxV3beta1MatchIntentResponse or
26911// error will be non-nil. Any non-2xx status code is an error. Response
26912// headers are in either
26913// *GoogleCloudDialogflowCxV3beta1MatchIntentResponse.ServerResponse.Head
26914// er or (if a response was returned at all) in
26915// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26916// whether the returned error was because http.StatusNotModified was
26917// returned.
26918func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1MatchIntentResponse, error) {
26919	gensupport.SetOptions(c.urlParams_, opts...)
26920	res, err := c.doRequest("json")
26921	if res != nil && res.StatusCode == http.StatusNotModified {
26922		if res.Body != nil {
26923			res.Body.Close()
26924		}
26925		return nil, &googleapi.Error{
26926			Code:   res.StatusCode,
26927			Header: res.Header,
26928		}
26929	}
26930	if err != nil {
26931		return nil, err
26932	}
26933	defer googleapi.CloseBody(res)
26934	if err := googleapi.CheckResponse(res); err != nil {
26935		return nil, err
26936	}
26937	ret := &GoogleCloudDialogflowCxV3beta1MatchIntentResponse{
26938		ServerResponse: googleapi.ServerResponse{
26939			Header:         res.Header,
26940			HTTPStatusCode: res.StatusCode,
26941		},
26942	}
26943	target := &ret
26944	if err := gensupport.DecodeResponse(target, res); err != nil {
26945		return nil, err
26946	}
26947	return ret, nil
26948	// {
26949	//   "description": "Returns preliminary intent match results, doesn't change the session status.",
26950	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}:matchIntent",
26951	//   "httpMethod": "POST",
26952	//   "id": "dialogflow.projects.locations.agents.sessions.matchIntent",
26953	//   "parameterOrder": [
26954	//     "session"
26955	//   ],
26956	//   "parameters": {
26957	//     "session": {
26958	//       "description": "Required. The name of the session this query is sent to. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).",
26959	//       "location": "path",
26960	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$",
26961	//       "required": true,
26962	//       "type": "string"
26963	//     }
26964	//   },
26965	//   "path": "v3beta1/{+session}:matchIntent",
26966	//   "request": {
26967	//     "$ref": "GoogleCloudDialogflowCxV3beta1MatchIntentRequest"
26968	//   },
26969	//   "response": {
26970	//     "$ref": "GoogleCloudDialogflowCxV3beta1MatchIntentResponse"
26971	//   },
26972	//   "scopes": [
26973	//     "https://www.googleapis.com/auth/cloud-platform",
26974	//     "https://www.googleapis.com/auth/dialogflow"
26975	//   ]
26976	// }
26977
26978}
26979
26980// method id "dialogflow.projects.locations.agents.sessions.entityTypes.create":
26981
26982type ProjectsLocationsAgentsSessionsEntityTypesCreateCall struct {
26983	s                                               *Service
26984	parent                                          string
26985	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
26986	urlParams_                                      gensupport.URLParams
26987	ctx_                                            context.Context
26988	header_                                         http.Header
26989}
26990
26991// Create: Creates a session entity type.
26992func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
26993	c := &ProjectsLocationsAgentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26994	c.parent = parent
26995	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
26996	return c
26997}
26998
26999// Fields allows partial responses to be retrieved. See
27000// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27001// for more information.
27002func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
27003	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27004	return c
27005}
27006
27007// Context sets the context to be used in this call's Do method. Any
27008// pending HTTP request will be aborted if the provided context is
27009// canceled.
27010func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
27011	c.ctx_ = ctx
27012	return c
27013}
27014
27015// Header returns an http.Header that can be modified by the caller to
27016// add HTTP headers to the request.
27017func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Header() http.Header {
27018	if c.header_ == nil {
27019		c.header_ = make(http.Header)
27020	}
27021	return c.header_
27022}
27023
27024func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
27025	reqHeaders := make(http.Header)
27026	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27027	for k, v := range c.header_ {
27028		reqHeaders[k] = v
27029	}
27030	reqHeaders.Set("User-Agent", c.s.userAgent())
27031	var body io.Reader = nil
27032	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
27033	if err != nil {
27034		return nil, err
27035	}
27036	reqHeaders.Set("Content-Type", "application/json")
27037	c.urlParams_.Set("alt", alt)
27038	c.urlParams_.Set("prettyPrint", "false")
27039	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
27040	urls += "?" + c.urlParams_.Encode()
27041	req, err := http.NewRequest("POST", urls, body)
27042	if err != nil {
27043		return nil, err
27044	}
27045	req.Header = reqHeaders
27046	googleapi.Expand(req.URL, map[string]string{
27047		"parent": c.parent,
27048	})
27049	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27050}
27051
27052// Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.create" call.
27053// Exactly one of *GoogleCloudDialogflowCxV3beta1SessionEntityType or
27054// error will be non-nil. Any non-2xx status code is an error. Response
27055// headers are in either
27056// *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header
27057//  or (if a response was returned at all) in
27058// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27059// whether the returned error was because http.StatusNotModified was
27060// returned.
27061func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
27062	gensupport.SetOptions(c.urlParams_, opts...)
27063	res, err := c.doRequest("json")
27064	if res != nil && res.StatusCode == http.StatusNotModified {
27065		if res.Body != nil {
27066			res.Body.Close()
27067		}
27068		return nil, &googleapi.Error{
27069			Code:   res.StatusCode,
27070			Header: res.Header,
27071		}
27072	}
27073	if err != nil {
27074		return nil, err
27075	}
27076	defer googleapi.CloseBody(res)
27077	if err := googleapi.CheckResponse(res); err != nil {
27078		return nil, err
27079	}
27080	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
27081		ServerResponse: googleapi.ServerResponse{
27082			Header:         res.Header,
27083			HTTPStatusCode: res.StatusCode,
27084		},
27085	}
27086	target := &ret
27087	if err := gensupport.DecodeResponse(target, res); err != nil {
27088		return nil, err
27089	}
27090	return ret, nil
27091	// {
27092	//   "description": "Creates a session entity type.",
27093	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}/entityTypes",
27094	//   "httpMethod": "POST",
27095	//   "id": "dialogflow.projects.locations.agents.sessions.entityTypes.create",
27096	//   "parameterOrder": [
27097	//     "parent"
27098	//   ],
27099	//   "parameters": {
27100	//     "parent": {
27101	//       "description": "Required. The session to create a session entity type for. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
27102	//       "location": "path",
27103	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$",
27104	//       "required": true,
27105	//       "type": "string"
27106	//     }
27107	//   },
27108	//   "path": "v3beta1/{+parent}/entityTypes",
27109	//   "request": {
27110	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
27111	//   },
27112	//   "response": {
27113	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
27114	//   },
27115	//   "scopes": [
27116	//     "https://www.googleapis.com/auth/cloud-platform",
27117	//     "https://www.googleapis.com/auth/dialogflow"
27118	//   ]
27119	// }
27120
27121}
27122
27123// method id "dialogflow.projects.locations.agents.sessions.entityTypes.delete":
27124
27125type ProjectsLocationsAgentsSessionsEntityTypesDeleteCall struct {
27126	s          *Service
27127	name       string
27128	urlParams_ gensupport.URLParams
27129	ctx_       context.Context
27130	header_    http.Header
27131}
27132
27133// Delete: Deletes the specified session entity type.
27134func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
27135	c := &ProjectsLocationsAgentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27136	c.name = name
27137	return c
27138}
27139
27140// Fields allows partial responses to be retrieved. See
27141// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27142// for more information.
27143func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
27144	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27145	return c
27146}
27147
27148// Context sets the context to be used in this call's Do method. Any
27149// pending HTTP request will be aborted if the provided context is
27150// canceled.
27151func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
27152	c.ctx_ = ctx
27153	return c
27154}
27155
27156// Header returns an http.Header that can be modified by the caller to
27157// add HTTP headers to the request.
27158func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Header() http.Header {
27159	if c.header_ == nil {
27160		c.header_ = make(http.Header)
27161	}
27162	return c.header_
27163}
27164
27165func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
27166	reqHeaders := make(http.Header)
27167	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27168	for k, v := range c.header_ {
27169		reqHeaders[k] = v
27170	}
27171	reqHeaders.Set("User-Agent", c.s.userAgent())
27172	var body io.Reader = nil
27173	c.urlParams_.Set("alt", alt)
27174	c.urlParams_.Set("prettyPrint", "false")
27175	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27176	urls += "?" + c.urlParams_.Encode()
27177	req, err := http.NewRequest("DELETE", urls, body)
27178	if err != nil {
27179		return nil, err
27180	}
27181	req.Header = reqHeaders
27182	googleapi.Expand(req.URL, map[string]string{
27183		"name": c.name,
27184	})
27185	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27186}
27187
27188// Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.delete" call.
27189// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27190// non-2xx status code is an error. Response headers are in either
27191// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27192// returned at all) in error.(*googleapi.Error).Header. Use
27193// googleapi.IsNotModified to check whether the returned error was
27194// because http.StatusNotModified was returned.
27195func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27196	gensupport.SetOptions(c.urlParams_, opts...)
27197	res, err := c.doRequest("json")
27198	if res != nil && res.StatusCode == http.StatusNotModified {
27199		if res.Body != nil {
27200			res.Body.Close()
27201		}
27202		return nil, &googleapi.Error{
27203			Code:   res.StatusCode,
27204			Header: res.Header,
27205		}
27206	}
27207	if err != nil {
27208		return nil, err
27209	}
27210	defer googleapi.CloseBody(res)
27211	if err := googleapi.CheckResponse(res); err != nil {
27212		return nil, err
27213	}
27214	ret := &GoogleProtobufEmpty{
27215		ServerResponse: googleapi.ServerResponse{
27216			Header:         res.Header,
27217			HTTPStatusCode: res.StatusCode,
27218		},
27219	}
27220	target := &ret
27221	if err := gensupport.DecodeResponse(target, res); err != nil {
27222		return nil, err
27223	}
27224	return ret, nil
27225	// {
27226	//   "description": "Deletes the specified session entity type.",
27227	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
27228	//   "httpMethod": "DELETE",
27229	//   "id": "dialogflow.projects.locations.agents.sessions.entityTypes.delete",
27230	//   "parameterOrder": [
27231	//     "name"
27232	//   ],
27233	//   "parameters": {
27234	//     "name": {
27235	//       "description": "Required. The name of the session entity type to delete. Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
27236	//       "location": "path",
27237	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
27238	//       "required": true,
27239	//       "type": "string"
27240	//     }
27241	//   },
27242	//   "path": "v3beta1/{+name}",
27243	//   "response": {
27244	//     "$ref": "GoogleProtobufEmpty"
27245	//   },
27246	//   "scopes": [
27247	//     "https://www.googleapis.com/auth/cloud-platform",
27248	//     "https://www.googleapis.com/auth/dialogflow"
27249	//   ]
27250	// }
27251
27252}
27253
27254// method id "dialogflow.projects.locations.agents.sessions.entityTypes.get":
27255
27256type ProjectsLocationsAgentsSessionsEntityTypesGetCall struct {
27257	s            *Service
27258	name         string
27259	urlParams_   gensupport.URLParams
27260	ifNoneMatch_ string
27261	ctx_         context.Context
27262	header_      http.Header
27263}
27264
27265// Get: Retrieves the specified session entity type.
27266func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
27267	c := &ProjectsLocationsAgentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27268	c.name = name
27269	return c
27270}
27271
27272// Fields allows partial responses to be retrieved. See
27273// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27274// for more information.
27275func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
27276	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27277	return c
27278}
27279
27280// IfNoneMatch sets the optional parameter which makes the operation
27281// fail if the object's ETag matches the given value. This is useful for
27282// getting updates only after the object has changed since the last
27283// request. Use googleapi.IsNotModified to check whether the response
27284// error from Do is the result of In-None-Match.
27285func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
27286	c.ifNoneMatch_ = entityTag
27287	return c
27288}
27289
27290// Context sets the context to be used in this call's Do method. Any
27291// pending HTTP request will be aborted if the provided context is
27292// canceled.
27293func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
27294	c.ctx_ = ctx
27295	return c
27296}
27297
27298// Header returns an http.Header that can be modified by the caller to
27299// add HTTP headers to the request.
27300func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Header() http.Header {
27301	if c.header_ == nil {
27302		c.header_ = make(http.Header)
27303	}
27304	return c.header_
27305}
27306
27307func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
27308	reqHeaders := make(http.Header)
27309	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27310	for k, v := range c.header_ {
27311		reqHeaders[k] = v
27312	}
27313	reqHeaders.Set("User-Agent", c.s.userAgent())
27314	if c.ifNoneMatch_ != "" {
27315		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27316	}
27317	var body io.Reader = nil
27318	c.urlParams_.Set("alt", alt)
27319	c.urlParams_.Set("prettyPrint", "false")
27320	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27321	urls += "?" + c.urlParams_.Encode()
27322	req, err := http.NewRequest("GET", urls, body)
27323	if err != nil {
27324		return nil, err
27325	}
27326	req.Header = reqHeaders
27327	googleapi.Expand(req.URL, map[string]string{
27328		"name": c.name,
27329	})
27330	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27331}
27332
27333// Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.get" call.
27334// Exactly one of *GoogleCloudDialogflowCxV3beta1SessionEntityType or
27335// error will be non-nil. Any non-2xx status code is an error. Response
27336// headers are in either
27337// *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header
27338//  or (if a response was returned at all) in
27339// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27340// whether the returned error was because http.StatusNotModified was
27341// returned.
27342func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
27343	gensupport.SetOptions(c.urlParams_, opts...)
27344	res, err := c.doRequest("json")
27345	if res != nil && res.StatusCode == http.StatusNotModified {
27346		if res.Body != nil {
27347			res.Body.Close()
27348		}
27349		return nil, &googleapi.Error{
27350			Code:   res.StatusCode,
27351			Header: res.Header,
27352		}
27353	}
27354	if err != nil {
27355		return nil, err
27356	}
27357	defer googleapi.CloseBody(res)
27358	if err := googleapi.CheckResponse(res); err != nil {
27359		return nil, err
27360	}
27361	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
27362		ServerResponse: googleapi.ServerResponse{
27363			Header:         res.Header,
27364			HTTPStatusCode: res.StatusCode,
27365		},
27366	}
27367	target := &ret
27368	if err := gensupport.DecodeResponse(target, res); err != nil {
27369		return nil, err
27370	}
27371	return ret, nil
27372	// {
27373	//   "description": "Retrieves the specified session entity type.",
27374	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
27375	//   "httpMethod": "GET",
27376	//   "id": "dialogflow.projects.locations.agents.sessions.entityTypes.get",
27377	//   "parameterOrder": [
27378	//     "name"
27379	//   ],
27380	//   "parameters": {
27381	//     "name": {
27382	//       "description": "Required. The name of the session entity type. Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
27383	//       "location": "path",
27384	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
27385	//       "required": true,
27386	//       "type": "string"
27387	//     }
27388	//   },
27389	//   "path": "v3beta1/{+name}",
27390	//   "response": {
27391	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
27392	//   },
27393	//   "scopes": [
27394	//     "https://www.googleapis.com/auth/cloud-platform",
27395	//     "https://www.googleapis.com/auth/dialogflow"
27396	//   ]
27397	// }
27398
27399}
27400
27401// method id "dialogflow.projects.locations.agents.sessions.entityTypes.list":
27402
27403type ProjectsLocationsAgentsSessionsEntityTypesListCall struct {
27404	s            *Service
27405	parent       string
27406	urlParams_   gensupport.URLParams
27407	ifNoneMatch_ string
27408	ctx_         context.Context
27409	header_      http.Header
27410}
27411
27412// List: Returns the list of all session entity types in the specified
27413// session.
27414func (r *ProjectsLocationsAgentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
27415	c := &ProjectsLocationsAgentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27416	c.parent = parent
27417	return c
27418}
27419
27420// PageSize sets the optional parameter "pageSize": The maximum number
27421// of items to return in a single page. By default 100 and at most 1000.
27422func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
27423	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27424	return c
27425}
27426
27427// PageToken sets the optional parameter "pageToken": The
27428// next_page_token value returned from a previous list request.
27429func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
27430	c.urlParams_.Set("pageToken", pageToken)
27431	return c
27432}
27433
27434// Fields allows partial responses to be retrieved. See
27435// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27436// for more information.
27437func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
27438	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27439	return c
27440}
27441
27442// IfNoneMatch sets the optional parameter which makes the operation
27443// fail if the object's ETag matches the given value. This is useful for
27444// getting updates only after the object has changed since the last
27445// request. Use googleapi.IsNotModified to check whether the response
27446// error from Do is the result of In-None-Match.
27447func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
27448	c.ifNoneMatch_ = entityTag
27449	return c
27450}
27451
27452// Context sets the context to be used in this call's Do method. Any
27453// pending HTTP request will be aborted if the provided context is
27454// canceled.
27455func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
27456	c.ctx_ = ctx
27457	return c
27458}
27459
27460// Header returns an http.Header that can be modified by the caller to
27461// add HTTP headers to the request.
27462func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Header() http.Header {
27463	if c.header_ == nil {
27464		c.header_ = make(http.Header)
27465	}
27466	return c.header_
27467}
27468
27469func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
27470	reqHeaders := make(http.Header)
27471	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27472	for k, v := range c.header_ {
27473		reqHeaders[k] = v
27474	}
27475	reqHeaders.Set("User-Agent", c.s.userAgent())
27476	if c.ifNoneMatch_ != "" {
27477		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27478	}
27479	var body io.Reader = nil
27480	c.urlParams_.Set("alt", alt)
27481	c.urlParams_.Set("prettyPrint", "false")
27482	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
27483	urls += "?" + c.urlParams_.Encode()
27484	req, err := http.NewRequest("GET", urls, body)
27485	if err != nil {
27486		return nil, err
27487	}
27488	req.Header = reqHeaders
27489	googleapi.Expand(req.URL, map[string]string{
27490		"parent": c.parent,
27491	})
27492	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27493}
27494
27495// Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.list" call.
27496// Exactly one of
27497// *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse or
27498// error will be non-nil. Any non-2xx status code is an error. Response
27499// headers are in either
27500// *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse.ServerRe
27501// sponse.Header or (if a response was returned at all) in
27502// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27503// whether the returned error was because http.StatusNotModified was
27504// returned.
27505func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse, error) {
27506	gensupport.SetOptions(c.urlParams_, opts...)
27507	res, err := c.doRequest("json")
27508	if res != nil && res.StatusCode == http.StatusNotModified {
27509		if res.Body != nil {
27510			res.Body.Close()
27511		}
27512		return nil, &googleapi.Error{
27513			Code:   res.StatusCode,
27514			Header: res.Header,
27515		}
27516	}
27517	if err != nil {
27518		return nil, err
27519	}
27520	defer googleapi.CloseBody(res)
27521	if err := googleapi.CheckResponse(res); err != nil {
27522		return nil, err
27523	}
27524	ret := &GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse{
27525		ServerResponse: googleapi.ServerResponse{
27526			Header:         res.Header,
27527			HTTPStatusCode: res.StatusCode,
27528		},
27529	}
27530	target := &ret
27531	if err := gensupport.DecodeResponse(target, res); err != nil {
27532		return nil, err
27533	}
27534	return ret, nil
27535	// {
27536	//   "description": "Returns the list of all session entity types in the specified session.",
27537	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}/entityTypes",
27538	//   "httpMethod": "GET",
27539	//   "id": "dialogflow.projects.locations.agents.sessions.entityTypes.list",
27540	//   "parameterOrder": [
27541	//     "parent"
27542	//   ],
27543	//   "parameters": {
27544	//     "pageSize": {
27545	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
27546	//       "format": "int32",
27547	//       "location": "query",
27548	//       "type": "integer"
27549	//     },
27550	//     "pageToken": {
27551	//       "description": "The next_page_token value returned from a previous list request.",
27552	//       "location": "query",
27553	//       "type": "string"
27554	//     },
27555	//     "parent": {
27556	//       "description": "Required. The session to list all session entity types from. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
27557	//       "location": "path",
27558	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+$",
27559	//       "required": true,
27560	//       "type": "string"
27561	//     }
27562	//   },
27563	//   "path": "v3beta1/{+parent}/entityTypes",
27564	//   "response": {
27565	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse"
27566	//   },
27567	//   "scopes": [
27568	//     "https://www.googleapis.com/auth/cloud-platform",
27569	//     "https://www.googleapis.com/auth/dialogflow"
27570	//   ]
27571	// }
27572
27573}
27574
27575// Pages invokes f for each page of results.
27576// A non-nil error returned from f will halt the iteration.
27577// The provided context supersedes any context provided to the Context method.
27578func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) error) error {
27579	c.ctx_ = ctx
27580	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
27581	for {
27582		x, err := c.Do()
27583		if err != nil {
27584			return err
27585		}
27586		if err := f(x); err != nil {
27587			return err
27588		}
27589		if x.NextPageToken == "" {
27590			return nil
27591		}
27592		c.PageToken(x.NextPageToken)
27593	}
27594}
27595
27596// method id "dialogflow.projects.locations.agents.sessions.entityTypes.patch":
27597
27598type ProjectsLocationsAgentsSessionsEntityTypesPatchCall struct {
27599	s                                               *Service
27600	nameid                                          string
27601	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
27602	urlParams_                                      gensupport.URLParams
27603	ctx_                                            context.Context
27604	header_                                         http.Header
27605}
27606
27607// Patch: Updates the specified session entity type.
27608func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
27609	c := &ProjectsLocationsAgentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27610	c.nameid = nameid
27611	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
27612	return c
27613}
27614
27615// UpdateMask sets the optional parameter "updateMask": The mask to
27616// control which fields get updated.
27617func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
27618	c.urlParams_.Set("updateMask", updateMask)
27619	return c
27620}
27621
27622// Fields allows partial responses to be retrieved. See
27623// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27624// for more information.
27625func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
27626	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27627	return c
27628}
27629
27630// Context sets the context to be used in this call's Do method. Any
27631// pending HTTP request will be aborted if the provided context is
27632// canceled.
27633func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
27634	c.ctx_ = ctx
27635	return c
27636}
27637
27638// Header returns an http.Header that can be modified by the caller to
27639// add HTTP headers to the request.
27640func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Header() http.Header {
27641	if c.header_ == nil {
27642		c.header_ = make(http.Header)
27643	}
27644	return c.header_
27645}
27646
27647func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
27648	reqHeaders := make(http.Header)
27649	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27650	for k, v := range c.header_ {
27651		reqHeaders[k] = v
27652	}
27653	reqHeaders.Set("User-Agent", c.s.userAgent())
27654	var body io.Reader = nil
27655	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
27656	if err != nil {
27657		return nil, err
27658	}
27659	reqHeaders.Set("Content-Type", "application/json")
27660	c.urlParams_.Set("alt", alt)
27661	c.urlParams_.Set("prettyPrint", "false")
27662	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27663	urls += "?" + c.urlParams_.Encode()
27664	req, err := http.NewRequest("PATCH", urls, body)
27665	if err != nil {
27666		return nil, err
27667	}
27668	req.Header = reqHeaders
27669	googleapi.Expand(req.URL, map[string]string{
27670		"name": c.nameid,
27671	})
27672	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27673}
27674
27675// Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.patch" call.
27676// Exactly one of *GoogleCloudDialogflowCxV3beta1SessionEntityType or
27677// error will be non-nil. Any non-2xx status code is an error. Response
27678// headers are in either
27679// *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header
27680//  or (if a response was returned at all) in
27681// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27682// whether the returned error was because http.StatusNotModified was
27683// returned.
27684func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
27685	gensupport.SetOptions(c.urlParams_, opts...)
27686	res, err := c.doRequest("json")
27687	if res != nil && res.StatusCode == http.StatusNotModified {
27688		if res.Body != nil {
27689			res.Body.Close()
27690		}
27691		return nil, &googleapi.Error{
27692			Code:   res.StatusCode,
27693			Header: res.Header,
27694		}
27695	}
27696	if err != nil {
27697		return nil, err
27698	}
27699	defer googleapi.CloseBody(res)
27700	if err := googleapi.CheckResponse(res); err != nil {
27701		return nil, err
27702	}
27703	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
27704		ServerResponse: googleapi.ServerResponse{
27705			Header:         res.Header,
27706			HTTPStatusCode: res.StatusCode,
27707		},
27708	}
27709	target := &ret
27710	if err := gensupport.DecodeResponse(target, res); err != nil {
27711		return nil, err
27712	}
27713	return ret, nil
27714	// {
27715	//   "description": "Updates the specified session entity type.",
27716	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/sessions/{sessionsId}/entityTypes/{entityTypesId}",
27717	//   "httpMethod": "PATCH",
27718	//   "id": "dialogflow.projects.locations.agents.sessions.entityTypes.patch",
27719	//   "parameterOrder": [
27720	//     "name"
27721	//   ],
27722	//   "parameters": {
27723	//     "name": {
27724	//       "description": "Required. The unique identifier of the session entity type. Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' environment.",
27725	//       "location": "path",
27726	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/sessions/[^/]+/entityTypes/[^/]+$",
27727	//       "required": true,
27728	//       "type": "string"
27729	//     },
27730	//     "updateMask": {
27731	//       "description": "The mask to control which fields get updated.",
27732	//       "format": "google-fieldmask",
27733	//       "location": "query",
27734	//       "type": "string"
27735	//     }
27736	//   },
27737	//   "path": "v3beta1/{+name}",
27738	//   "request": {
27739	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
27740	//   },
27741	//   "response": {
27742	//     "$ref": "GoogleCloudDialogflowCxV3beta1SessionEntityType"
27743	//   },
27744	//   "scopes": [
27745	//     "https://www.googleapis.com/auth/cloud-platform",
27746	//     "https://www.googleapis.com/auth/dialogflow"
27747	//   ]
27748	// }
27749
27750}
27751
27752// method id "dialogflow.projects.locations.agents.testCases.batchDelete":
27753
27754type ProjectsLocationsAgentsTestCasesBatchDeleteCall struct {
27755	s                                                         *Service
27756	parent                                                    string
27757	googleclouddialogflowcxv3beta1batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest
27758	urlParams_                                                gensupport.URLParams
27759	ctx_                                                      context.Context
27760	header_                                                   http.Header
27761}
27762
27763// BatchDelete: Batch deletes test cases.
27764func (r *ProjectsLocationsAgentsTestCasesService) BatchDelete(parent string, googleclouddialogflowcxv3beta1batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
27765	c := &ProjectsLocationsAgentsTestCasesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27766	c.parent = parent
27767	c.googleclouddialogflowcxv3beta1batchdeletetestcasesrequest = googleclouddialogflowcxv3beta1batchdeletetestcasesrequest
27768	return c
27769}
27770
27771// Fields allows partial responses to be retrieved. See
27772// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27773// for more information.
27774func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
27775	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27776	return c
27777}
27778
27779// Context sets the context to be used in this call's Do method. Any
27780// pending HTTP request will be aborted if the provided context is
27781// canceled.
27782func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
27783	c.ctx_ = ctx
27784	return c
27785}
27786
27787// Header returns an http.Header that can be modified by the caller to
27788// add HTTP headers to the request.
27789func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Header() http.Header {
27790	if c.header_ == nil {
27791		c.header_ = make(http.Header)
27792	}
27793	return c.header_
27794}
27795
27796func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
27797	reqHeaders := make(http.Header)
27798	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27799	for k, v := range c.header_ {
27800		reqHeaders[k] = v
27801	}
27802	reqHeaders.Set("User-Agent", c.s.userAgent())
27803	var body io.Reader = nil
27804	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1batchdeletetestcasesrequest)
27805	if err != nil {
27806		return nil, err
27807	}
27808	reqHeaders.Set("Content-Type", "application/json")
27809	c.urlParams_.Set("alt", alt)
27810	c.urlParams_.Set("prettyPrint", "false")
27811	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:batchDelete")
27812	urls += "?" + c.urlParams_.Encode()
27813	req, err := http.NewRequest("POST", urls, body)
27814	if err != nil {
27815		return nil, err
27816	}
27817	req.Header = reqHeaders
27818	googleapi.Expand(req.URL, map[string]string{
27819		"parent": c.parent,
27820	})
27821	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27822}
27823
27824// Do executes the "dialogflow.projects.locations.agents.testCases.batchDelete" call.
27825// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27826// non-2xx status code is an error. Response headers are in either
27827// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27828// returned at all) in error.(*googleapi.Error).Header. Use
27829// googleapi.IsNotModified to check whether the returned error was
27830// because http.StatusNotModified was returned.
27831func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27832	gensupport.SetOptions(c.urlParams_, opts...)
27833	res, err := c.doRequest("json")
27834	if res != nil && res.StatusCode == http.StatusNotModified {
27835		if res.Body != nil {
27836			res.Body.Close()
27837		}
27838		return nil, &googleapi.Error{
27839			Code:   res.StatusCode,
27840			Header: res.Header,
27841		}
27842	}
27843	if err != nil {
27844		return nil, err
27845	}
27846	defer googleapi.CloseBody(res)
27847	if err := googleapi.CheckResponse(res); err != nil {
27848		return nil, err
27849	}
27850	ret := &GoogleProtobufEmpty{
27851		ServerResponse: googleapi.ServerResponse{
27852			Header:         res.Header,
27853			HTTPStatusCode: res.StatusCode,
27854		},
27855	}
27856	target := &ret
27857	if err := gensupport.DecodeResponse(target, res); err != nil {
27858		return nil, err
27859	}
27860	return ret, nil
27861	// {
27862	//   "description": "Batch deletes test cases.",
27863	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:batchDelete",
27864	//   "httpMethod": "POST",
27865	//   "id": "dialogflow.projects.locations.agents.testCases.batchDelete",
27866	//   "parameterOrder": [
27867	//     "parent"
27868	//   ],
27869	//   "parameters": {
27870	//     "parent": {
27871	//       "description": "Required. The agent to delete test cases from. Format: `projects//locations//agents/`.",
27872	//       "location": "path",
27873	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
27874	//       "required": true,
27875	//       "type": "string"
27876	//     }
27877	//   },
27878	//   "path": "v3beta1/{+parent}/testCases:batchDelete",
27879	//   "request": {
27880	//     "$ref": "GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest"
27881	//   },
27882	//   "response": {
27883	//     "$ref": "GoogleProtobufEmpty"
27884	//   },
27885	//   "scopes": [
27886	//     "https://www.googleapis.com/auth/cloud-platform",
27887	//     "https://www.googleapis.com/auth/dialogflow"
27888	//   ]
27889	// }
27890
27891}
27892
27893// method id "dialogflow.projects.locations.agents.testCases.batchRun":
27894
27895type ProjectsLocationsAgentsTestCasesBatchRunCall struct {
27896	s                                                      *Service
27897	parent                                                 string
27898	googleclouddialogflowcxv3beta1batchruntestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest
27899	urlParams_                                             gensupport.URLParams
27900	ctx_                                                   context.Context
27901	header_                                                http.Header
27902}
27903
27904// BatchRun: Kicks off a batch run of test cases.
27905func (r *ProjectsLocationsAgentsTestCasesService) BatchRun(parent string, googleclouddialogflowcxv3beta1batchruntestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchRunCall {
27906	c := &ProjectsLocationsAgentsTestCasesBatchRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27907	c.parent = parent
27908	c.googleclouddialogflowcxv3beta1batchruntestcasesrequest = googleclouddialogflowcxv3beta1batchruntestcasesrequest
27909	return c
27910}
27911
27912// Fields allows partial responses to be retrieved. See
27913// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27914// for more information.
27915func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchRunCall {
27916	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27917	return c
27918}
27919
27920// Context sets the context to be used in this call's Do method. Any
27921// pending HTTP request will be aborted if the provided context is
27922// canceled.
27923func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchRunCall {
27924	c.ctx_ = ctx
27925	return c
27926}
27927
27928// Header returns an http.Header that can be modified by the caller to
27929// add HTTP headers to the request.
27930func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Header() http.Header {
27931	if c.header_ == nil {
27932		c.header_ = make(http.Header)
27933	}
27934	return c.header_
27935}
27936
27937func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) doRequest(alt string) (*http.Response, error) {
27938	reqHeaders := make(http.Header)
27939	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
27940	for k, v := range c.header_ {
27941		reqHeaders[k] = v
27942	}
27943	reqHeaders.Set("User-Agent", c.s.userAgent())
27944	var body io.Reader = nil
27945	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1batchruntestcasesrequest)
27946	if err != nil {
27947		return nil, err
27948	}
27949	reqHeaders.Set("Content-Type", "application/json")
27950	c.urlParams_.Set("alt", alt)
27951	c.urlParams_.Set("prettyPrint", "false")
27952	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:batchRun")
27953	urls += "?" + c.urlParams_.Encode()
27954	req, err := http.NewRequest("POST", urls, body)
27955	if err != nil {
27956		return nil, err
27957	}
27958	req.Header = reqHeaders
27959	googleapi.Expand(req.URL, map[string]string{
27960		"parent": c.parent,
27961	})
27962	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27963}
27964
27965// Do executes the "dialogflow.projects.locations.agents.testCases.batchRun" call.
27966// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
27967// Any non-2xx status code is an error. Response headers are in either
27968// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
27969// was returned at all) in error.(*googleapi.Error).Header. Use
27970// googleapi.IsNotModified to check whether the returned error was
27971// because http.StatusNotModified was returned.
27972func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27973	gensupport.SetOptions(c.urlParams_, opts...)
27974	res, err := c.doRequest("json")
27975	if res != nil && res.StatusCode == http.StatusNotModified {
27976		if res.Body != nil {
27977			res.Body.Close()
27978		}
27979		return nil, &googleapi.Error{
27980			Code:   res.StatusCode,
27981			Header: res.Header,
27982		}
27983	}
27984	if err != nil {
27985		return nil, err
27986	}
27987	defer googleapi.CloseBody(res)
27988	if err := googleapi.CheckResponse(res); err != nil {
27989		return nil, err
27990	}
27991	ret := &GoogleLongrunningOperation{
27992		ServerResponse: googleapi.ServerResponse{
27993			Header:         res.Header,
27994			HTTPStatusCode: res.StatusCode,
27995		},
27996	}
27997	target := &ret
27998	if err := gensupport.DecodeResponse(target, res); err != nil {
27999		return nil, err
28000	}
28001	return ret, nil
28002	// {
28003	//   "description": "Kicks off a batch run of test cases.",
28004	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:batchRun",
28005	//   "httpMethod": "POST",
28006	//   "id": "dialogflow.projects.locations.agents.testCases.batchRun",
28007	//   "parameterOrder": [
28008	//     "parent"
28009	//   ],
28010	//   "parameters": {
28011	//     "parent": {
28012	//       "description": "Required. Agent name. Format: `projects//locations//agents/ `.",
28013	//       "location": "path",
28014	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
28015	//       "required": true,
28016	//       "type": "string"
28017	//     }
28018	//   },
28019	//   "path": "v3beta1/{+parent}/testCases:batchRun",
28020	//   "request": {
28021	//     "$ref": "GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest"
28022	//   },
28023	//   "response": {
28024	//     "$ref": "GoogleLongrunningOperation"
28025	//   },
28026	//   "scopes": [
28027	//     "https://www.googleapis.com/auth/cloud-platform",
28028	//     "https://www.googleapis.com/auth/dialogflow"
28029	//   ]
28030	// }
28031
28032}
28033
28034// method id "dialogflow.projects.locations.agents.testCases.calculateCoverage":
28035
28036type ProjectsLocationsAgentsTestCasesCalculateCoverageCall struct {
28037	s            *Service
28038	agent        string
28039	urlParams_   gensupport.URLParams
28040	ifNoneMatch_ string
28041	ctx_         context.Context
28042	header_      http.Header
28043}
28044
28045// CalculateCoverage: Calculates the test coverage for an agent.
28046func (r *ProjectsLocationsAgentsTestCasesService) CalculateCoverage(agent string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
28047	c := &ProjectsLocationsAgentsTestCasesCalculateCoverageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28048	c.agent = agent
28049	return c
28050}
28051
28052// Type sets the optional parameter "type": Required. The type of
28053// coverage requested.
28054//
28055// Possible values:
28056//   "COVERAGE_TYPE_UNSPECIFIED" - Should never be used.
28057//   "INTENT" - Intent coverage.
28058//   "PAGE_TRANSITION" - Page transition coverage.
28059//   "TRANSITION_ROUTE_GROUP" - Transition route group coverage.
28060func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Type(type_ string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
28061	c.urlParams_.Set("type", type_)
28062	return c
28063}
28064
28065// Fields allows partial responses to be retrieved. See
28066// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28067// for more information.
28068func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
28069	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28070	return c
28071}
28072
28073// IfNoneMatch sets the optional parameter which makes the operation
28074// fail if the object's ETag matches the given value. This is useful for
28075// getting updates only after the object has changed since the last
28076// request. Use googleapi.IsNotModified to check whether the response
28077// error from Do is the result of In-None-Match.
28078func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
28079	c.ifNoneMatch_ = entityTag
28080	return c
28081}
28082
28083// Context sets the context to be used in this call's Do method. Any
28084// pending HTTP request will be aborted if the provided context is
28085// canceled.
28086func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
28087	c.ctx_ = ctx
28088	return c
28089}
28090
28091// Header returns an http.Header that can be modified by the caller to
28092// add HTTP headers to the request.
28093func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Header() http.Header {
28094	if c.header_ == nil {
28095		c.header_ = make(http.Header)
28096	}
28097	return c.header_
28098}
28099
28100func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) doRequest(alt string) (*http.Response, error) {
28101	reqHeaders := make(http.Header)
28102	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28103	for k, v := range c.header_ {
28104		reqHeaders[k] = v
28105	}
28106	reqHeaders.Set("User-Agent", c.s.userAgent())
28107	if c.ifNoneMatch_ != "" {
28108		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28109	}
28110	var body io.Reader = nil
28111	c.urlParams_.Set("alt", alt)
28112	c.urlParams_.Set("prettyPrint", "false")
28113	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+agent}/testCases:calculateCoverage")
28114	urls += "?" + c.urlParams_.Encode()
28115	req, err := http.NewRequest("GET", urls, body)
28116	if err != nil {
28117		return nil, err
28118	}
28119	req.Header = reqHeaders
28120	googleapi.Expand(req.URL, map[string]string{
28121		"agent": c.agent,
28122	})
28123	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28124}
28125
28126// Do executes the "dialogflow.projects.locations.agents.testCases.calculateCoverage" call.
28127// Exactly one of
28128// *GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse or error
28129// will be non-nil. Any non-2xx status code is an error. Response
28130// headers are in either
28131// *GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse.ServerRespons
28132// e.Header or (if a response was returned at all) in
28133// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28134// whether the returned error was because http.StatusNotModified was
28135// returned.
28136func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse, error) {
28137	gensupport.SetOptions(c.urlParams_, opts...)
28138	res, err := c.doRequest("json")
28139	if res != nil && res.StatusCode == http.StatusNotModified {
28140		if res.Body != nil {
28141			res.Body.Close()
28142		}
28143		return nil, &googleapi.Error{
28144			Code:   res.StatusCode,
28145			Header: res.Header,
28146		}
28147	}
28148	if err != nil {
28149		return nil, err
28150	}
28151	defer googleapi.CloseBody(res)
28152	if err := googleapi.CheckResponse(res); err != nil {
28153		return nil, err
28154	}
28155	ret := &GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse{
28156		ServerResponse: googleapi.ServerResponse{
28157			Header:         res.Header,
28158			HTTPStatusCode: res.StatusCode,
28159		},
28160	}
28161	target := &ret
28162	if err := gensupport.DecodeResponse(target, res); err != nil {
28163		return nil, err
28164	}
28165	return ret, nil
28166	// {
28167	//   "description": "Calculates the test coverage for an agent.",
28168	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:calculateCoverage",
28169	//   "httpMethod": "GET",
28170	//   "id": "dialogflow.projects.locations.agents.testCases.calculateCoverage",
28171	//   "parameterOrder": [
28172	//     "agent"
28173	//   ],
28174	//   "parameters": {
28175	//     "agent": {
28176	//       "description": "Required. The agent to calculate coverage for. Format: `projects//locations//agents/`.",
28177	//       "location": "path",
28178	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
28179	//       "required": true,
28180	//       "type": "string"
28181	//     },
28182	//     "type": {
28183	//       "description": "Required. The type of coverage requested.",
28184	//       "enum": [
28185	//         "COVERAGE_TYPE_UNSPECIFIED",
28186	//         "INTENT",
28187	//         "PAGE_TRANSITION",
28188	//         "TRANSITION_ROUTE_GROUP"
28189	//       ],
28190	//       "enumDescriptions": [
28191	//         "Should never be used.",
28192	//         "Intent coverage.",
28193	//         "Page transition coverage.",
28194	//         "Transition route group coverage."
28195	//       ],
28196	//       "location": "query",
28197	//       "type": "string"
28198	//     }
28199	//   },
28200	//   "path": "v3beta1/{+agent}/testCases:calculateCoverage",
28201	//   "response": {
28202	//     "$ref": "GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse"
28203	//   },
28204	//   "scopes": [
28205	//     "https://www.googleapis.com/auth/cloud-platform",
28206	//     "https://www.googleapis.com/auth/dialogflow"
28207	//   ]
28208	// }
28209
28210}
28211
28212// method id "dialogflow.projects.locations.agents.testCases.create":
28213
28214type ProjectsLocationsAgentsTestCasesCreateCall struct {
28215	s                                      *Service
28216	parent                                 string
28217	googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase
28218	urlParams_                             gensupport.URLParams
28219	ctx_                                   context.Context
28220	header_                                http.Header
28221}
28222
28223// Create: Creates a test case for the given agent.
28224func (r *ProjectsLocationsAgentsTestCasesService) Create(parent string, googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase) *ProjectsLocationsAgentsTestCasesCreateCall {
28225	c := &ProjectsLocationsAgentsTestCasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28226	c.parent = parent
28227	c.googleclouddialogflowcxv3beta1testcase = googleclouddialogflowcxv3beta1testcase
28228	return c
28229}
28230
28231// Fields allows partial responses to be retrieved. See
28232// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28233// for more information.
28234func (c *ProjectsLocationsAgentsTestCasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCreateCall {
28235	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28236	return c
28237}
28238
28239// Context sets the context to be used in this call's Do method. Any
28240// pending HTTP request will be aborted if the provided context is
28241// canceled.
28242func (c *ProjectsLocationsAgentsTestCasesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCreateCall {
28243	c.ctx_ = ctx
28244	return c
28245}
28246
28247// Header returns an http.Header that can be modified by the caller to
28248// add HTTP headers to the request.
28249func (c *ProjectsLocationsAgentsTestCasesCreateCall) Header() http.Header {
28250	if c.header_ == nil {
28251		c.header_ = make(http.Header)
28252	}
28253	return c.header_
28254}
28255
28256func (c *ProjectsLocationsAgentsTestCasesCreateCall) doRequest(alt string) (*http.Response, error) {
28257	reqHeaders := make(http.Header)
28258	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28259	for k, v := range c.header_ {
28260		reqHeaders[k] = v
28261	}
28262	reqHeaders.Set("User-Agent", c.s.userAgent())
28263	var body io.Reader = nil
28264	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1testcase)
28265	if err != nil {
28266		return nil, err
28267	}
28268	reqHeaders.Set("Content-Type", "application/json")
28269	c.urlParams_.Set("alt", alt)
28270	c.urlParams_.Set("prettyPrint", "false")
28271	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases")
28272	urls += "?" + c.urlParams_.Encode()
28273	req, err := http.NewRequest("POST", urls, body)
28274	if err != nil {
28275		return nil, err
28276	}
28277	req.Header = reqHeaders
28278	googleapi.Expand(req.URL, map[string]string{
28279		"parent": c.parent,
28280	})
28281	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28282}
28283
28284// Do executes the "dialogflow.projects.locations.agents.testCases.create" call.
28285// Exactly one of *GoogleCloudDialogflowCxV3beta1TestCase or error will
28286// be non-nil. Any non-2xx status code is an error. Response headers are
28287// in either
28288// *GoogleCloudDialogflowCxV3beta1TestCase.ServerResponse.Header or (if
28289// a response was returned at all) in error.(*googleapi.Error).Header.
28290// Use googleapi.IsNotModified to check whether the returned error was
28291// because http.StatusNotModified was returned.
28292func (c *ProjectsLocationsAgentsTestCasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
28293	gensupport.SetOptions(c.urlParams_, opts...)
28294	res, err := c.doRequest("json")
28295	if res != nil && res.StatusCode == http.StatusNotModified {
28296		if res.Body != nil {
28297			res.Body.Close()
28298		}
28299		return nil, &googleapi.Error{
28300			Code:   res.StatusCode,
28301			Header: res.Header,
28302		}
28303	}
28304	if err != nil {
28305		return nil, err
28306	}
28307	defer googleapi.CloseBody(res)
28308	if err := googleapi.CheckResponse(res); err != nil {
28309		return nil, err
28310	}
28311	ret := &GoogleCloudDialogflowCxV3beta1TestCase{
28312		ServerResponse: googleapi.ServerResponse{
28313			Header:         res.Header,
28314			HTTPStatusCode: res.StatusCode,
28315		},
28316	}
28317	target := &ret
28318	if err := gensupport.DecodeResponse(target, res); err != nil {
28319		return nil, err
28320	}
28321	return ret, nil
28322	// {
28323	//   "description": "Creates a test case for the given agent.",
28324	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases",
28325	//   "httpMethod": "POST",
28326	//   "id": "dialogflow.projects.locations.agents.testCases.create",
28327	//   "parameterOrder": [
28328	//     "parent"
28329	//   ],
28330	//   "parameters": {
28331	//     "parent": {
28332	//       "description": "Required. The agent to create the test case for. Format: `projects//locations//agents/`.",
28333	//       "location": "path",
28334	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
28335	//       "required": true,
28336	//       "type": "string"
28337	//     }
28338	//   },
28339	//   "path": "v3beta1/{+parent}/testCases",
28340	//   "request": {
28341	//     "$ref": "GoogleCloudDialogflowCxV3beta1TestCase"
28342	//   },
28343	//   "response": {
28344	//     "$ref": "GoogleCloudDialogflowCxV3beta1TestCase"
28345	//   },
28346	//   "scopes": [
28347	//     "https://www.googleapis.com/auth/cloud-platform",
28348	//     "https://www.googleapis.com/auth/dialogflow"
28349	//   ]
28350	// }
28351
28352}
28353
28354// method id "dialogflow.projects.locations.agents.testCases.export":
28355
28356type ProjectsLocationsAgentsTestCasesExportCall struct {
28357	s                                                    *Service
28358	parent                                               string
28359	googleclouddialogflowcxv3beta1exporttestcasesrequest *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest
28360	urlParams_                                           gensupport.URLParams
28361	ctx_                                                 context.Context
28362	header_                                              http.Header
28363}
28364
28365// Export: Exports the test cases under the agent to a Cloud Storage
28366// bucket or a local file. Filter can be applied to export a subset of
28367// test cases.
28368func (r *ProjectsLocationsAgentsTestCasesService) Export(parent string, googleclouddialogflowcxv3beta1exporttestcasesrequest *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest) *ProjectsLocationsAgentsTestCasesExportCall {
28369	c := &ProjectsLocationsAgentsTestCasesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28370	c.parent = parent
28371	c.googleclouddialogflowcxv3beta1exporttestcasesrequest = googleclouddialogflowcxv3beta1exporttestcasesrequest
28372	return c
28373}
28374
28375// Fields allows partial responses to be retrieved. See
28376// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28377// for more information.
28378func (c *ProjectsLocationsAgentsTestCasesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesExportCall {
28379	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28380	return c
28381}
28382
28383// Context sets the context to be used in this call's Do method. Any
28384// pending HTTP request will be aborted if the provided context is
28385// canceled.
28386func (c *ProjectsLocationsAgentsTestCasesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesExportCall {
28387	c.ctx_ = ctx
28388	return c
28389}
28390
28391// Header returns an http.Header that can be modified by the caller to
28392// add HTTP headers to the request.
28393func (c *ProjectsLocationsAgentsTestCasesExportCall) Header() http.Header {
28394	if c.header_ == nil {
28395		c.header_ = make(http.Header)
28396	}
28397	return c.header_
28398}
28399
28400func (c *ProjectsLocationsAgentsTestCasesExportCall) doRequest(alt string) (*http.Response, error) {
28401	reqHeaders := make(http.Header)
28402	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28403	for k, v := range c.header_ {
28404		reqHeaders[k] = v
28405	}
28406	reqHeaders.Set("User-Agent", c.s.userAgent())
28407	var body io.Reader = nil
28408	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exporttestcasesrequest)
28409	if err != nil {
28410		return nil, err
28411	}
28412	reqHeaders.Set("Content-Type", "application/json")
28413	c.urlParams_.Set("alt", alt)
28414	c.urlParams_.Set("prettyPrint", "false")
28415	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:export")
28416	urls += "?" + c.urlParams_.Encode()
28417	req, err := http.NewRequest("POST", urls, body)
28418	if err != nil {
28419		return nil, err
28420	}
28421	req.Header = reqHeaders
28422	googleapi.Expand(req.URL, map[string]string{
28423		"parent": c.parent,
28424	})
28425	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28426}
28427
28428// Do executes the "dialogflow.projects.locations.agents.testCases.export" call.
28429// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
28430// Any non-2xx status code is an error. Response headers are in either
28431// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
28432// was returned at all) in error.(*googleapi.Error).Header. Use
28433// googleapi.IsNotModified to check whether the returned error was
28434// because http.StatusNotModified was returned.
28435func (c *ProjectsLocationsAgentsTestCasesExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28436	gensupport.SetOptions(c.urlParams_, opts...)
28437	res, err := c.doRequest("json")
28438	if res != nil && res.StatusCode == http.StatusNotModified {
28439		if res.Body != nil {
28440			res.Body.Close()
28441		}
28442		return nil, &googleapi.Error{
28443			Code:   res.StatusCode,
28444			Header: res.Header,
28445		}
28446	}
28447	if err != nil {
28448		return nil, err
28449	}
28450	defer googleapi.CloseBody(res)
28451	if err := googleapi.CheckResponse(res); err != nil {
28452		return nil, err
28453	}
28454	ret := &GoogleLongrunningOperation{
28455		ServerResponse: googleapi.ServerResponse{
28456			Header:         res.Header,
28457			HTTPStatusCode: res.StatusCode,
28458		},
28459	}
28460	target := &ret
28461	if err := gensupport.DecodeResponse(target, res); err != nil {
28462		return nil, err
28463	}
28464	return ret, nil
28465	// {
28466	//   "description": "Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases.",
28467	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:export",
28468	//   "httpMethod": "POST",
28469	//   "id": "dialogflow.projects.locations.agents.testCases.export",
28470	//   "parameterOrder": [
28471	//     "parent"
28472	//   ],
28473	//   "parameters": {
28474	//     "parent": {
28475	//       "description": "Required. The agent where to export test cases from. Format: `projects//locations//agents/`.",
28476	//       "location": "path",
28477	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
28478	//       "required": true,
28479	//       "type": "string"
28480	//     }
28481	//   },
28482	//   "path": "v3beta1/{+parent}/testCases:export",
28483	//   "request": {
28484	//     "$ref": "GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest"
28485	//   },
28486	//   "response": {
28487	//     "$ref": "GoogleLongrunningOperation"
28488	//   },
28489	//   "scopes": [
28490	//     "https://www.googleapis.com/auth/cloud-platform",
28491	//     "https://www.googleapis.com/auth/dialogflow"
28492	//   ]
28493	// }
28494
28495}
28496
28497// method id "dialogflow.projects.locations.agents.testCases.get":
28498
28499type ProjectsLocationsAgentsTestCasesGetCall struct {
28500	s            *Service
28501	name         string
28502	urlParams_   gensupport.URLParams
28503	ifNoneMatch_ string
28504	ctx_         context.Context
28505	header_      http.Header
28506}
28507
28508// Get: Gets a test case.
28509func (r *ProjectsLocationsAgentsTestCasesService) Get(name string) *ProjectsLocationsAgentsTestCasesGetCall {
28510	c := &ProjectsLocationsAgentsTestCasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28511	c.name = name
28512	return c
28513}
28514
28515// Fields allows partial responses to be retrieved. See
28516// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28517// for more information.
28518func (c *ProjectsLocationsAgentsTestCasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesGetCall {
28519	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28520	return c
28521}
28522
28523// IfNoneMatch sets the optional parameter which makes the operation
28524// fail if the object's ETag matches the given value. This is useful for
28525// getting updates only after the object has changed since the last
28526// request. Use googleapi.IsNotModified to check whether the response
28527// error from Do is the result of In-None-Match.
28528func (c *ProjectsLocationsAgentsTestCasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesGetCall {
28529	c.ifNoneMatch_ = entityTag
28530	return c
28531}
28532
28533// Context sets the context to be used in this call's Do method. Any
28534// pending HTTP request will be aborted if the provided context is
28535// canceled.
28536func (c *ProjectsLocationsAgentsTestCasesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesGetCall {
28537	c.ctx_ = ctx
28538	return c
28539}
28540
28541// Header returns an http.Header that can be modified by the caller to
28542// add HTTP headers to the request.
28543func (c *ProjectsLocationsAgentsTestCasesGetCall) Header() http.Header {
28544	if c.header_ == nil {
28545		c.header_ = make(http.Header)
28546	}
28547	return c.header_
28548}
28549
28550func (c *ProjectsLocationsAgentsTestCasesGetCall) doRequest(alt string) (*http.Response, error) {
28551	reqHeaders := make(http.Header)
28552	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28553	for k, v := range c.header_ {
28554		reqHeaders[k] = v
28555	}
28556	reqHeaders.Set("User-Agent", c.s.userAgent())
28557	if c.ifNoneMatch_ != "" {
28558		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28559	}
28560	var body io.Reader = nil
28561	c.urlParams_.Set("alt", alt)
28562	c.urlParams_.Set("prettyPrint", "false")
28563	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
28564	urls += "?" + c.urlParams_.Encode()
28565	req, err := http.NewRequest("GET", urls, body)
28566	if err != nil {
28567		return nil, err
28568	}
28569	req.Header = reqHeaders
28570	googleapi.Expand(req.URL, map[string]string{
28571		"name": c.name,
28572	})
28573	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28574}
28575
28576// Do executes the "dialogflow.projects.locations.agents.testCases.get" call.
28577// Exactly one of *GoogleCloudDialogflowCxV3beta1TestCase or error will
28578// be non-nil. Any non-2xx status code is an error. Response headers are
28579// in either
28580// *GoogleCloudDialogflowCxV3beta1TestCase.ServerResponse.Header or (if
28581// a response was returned at all) in error.(*googleapi.Error).Header.
28582// Use googleapi.IsNotModified to check whether the returned error was
28583// because http.StatusNotModified was returned.
28584func (c *ProjectsLocationsAgentsTestCasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
28585	gensupport.SetOptions(c.urlParams_, opts...)
28586	res, err := c.doRequest("json")
28587	if res != nil && res.StatusCode == http.StatusNotModified {
28588		if res.Body != nil {
28589			res.Body.Close()
28590		}
28591		return nil, &googleapi.Error{
28592			Code:   res.StatusCode,
28593			Header: res.Header,
28594		}
28595	}
28596	if err != nil {
28597		return nil, err
28598	}
28599	defer googleapi.CloseBody(res)
28600	if err := googleapi.CheckResponse(res); err != nil {
28601		return nil, err
28602	}
28603	ret := &GoogleCloudDialogflowCxV3beta1TestCase{
28604		ServerResponse: googleapi.ServerResponse{
28605			Header:         res.Header,
28606			HTTPStatusCode: res.StatusCode,
28607		},
28608	}
28609	target := &ret
28610	if err := gensupport.DecodeResponse(target, res); err != nil {
28611		return nil, err
28612	}
28613	return ret, nil
28614	// {
28615	//   "description": "Gets a test case.",
28616	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId}",
28617	//   "httpMethod": "GET",
28618	//   "id": "dialogflow.projects.locations.agents.testCases.get",
28619	//   "parameterOrder": [
28620	//     "name"
28621	//   ],
28622	//   "parameters": {
28623	//     "name": {
28624	//       "description": "Required. The name of the testcase. Format: `projects//locations//agents//testCases/`.",
28625	//       "location": "path",
28626	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$",
28627	//       "required": true,
28628	//       "type": "string"
28629	//     }
28630	//   },
28631	//   "path": "v3beta1/{+name}",
28632	//   "response": {
28633	//     "$ref": "GoogleCloudDialogflowCxV3beta1TestCase"
28634	//   },
28635	//   "scopes": [
28636	//     "https://www.googleapis.com/auth/cloud-platform",
28637	//     "https://www.googleapis.com/auth/dialogflow"
28638	//   ]
28639	// }
28640
28641}
28642
28643// method id "dialogflow.projects.locations.agents.testCases.import":
28644
28645type ProjectsLocationsAgentsTestCasesImportCall struct {
28646	s                                                    *Service
28647	parent                                               string
28648	googleclouddialogflowcxv3beta1importtestcasesrequest *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest
28649	urlParams_                                           gensupport.URLParams
28650	ctx_                                                 context.Context
28651	header_                                              http.Header
28652}
28653
28654// Import: Imports the test cases from a Cloud Storage bucket or a local
28655// file. It always creates new test cases and won't overwite any
28656// existing ones. The provided ID in the imported test case is
28657// neglected.
28658func (r *ProjectsLocationsAgentsTestCasesService) Import(parent string, googleclouddialogflowcxv3beta1importtestcasesrequest *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest) *ProjectsLocationsAgentsTestCasesImportCall {
28659	c := &ProjectsLocationsAgentsTestCasesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28660	c.parent = parent
28661	c.googleclouddialogflowcxv3beta1importtestcasesrequest = googleclouddialogflowcxv3beta1importtestcasesrequest
28662	return c
28663}
28664
28665// Fields allows partial responses to be retrieved. See
28666// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28667// for more information.
28668func (c *ProjectsLocationsAgentsTestCasesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesImportCall {
28669	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28670	return c
28671}
28672
28673// Context sets the context to be used in this call's Do method. Any
28674// pending HTTP request will be aborted if the provided context is
28675// canceled.
28676func (c *ProjectsLocationsAgentsTestCasesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesImportCall {
28677	c.ctx_ = ctx
28678	return c
28679}
28680
28681// Header returns an http.Header that can be modified by the caller to
28682// add HTTP headers to the request.
28683func (c *ProjectsLocationsAgentsTestCasesImportCall) Header() http.Header {
28684	if c.header_ == nil {
28685		c.header_ = make(http.Header)
28686	}
28687	return c.header_
28688}
28689
28690func (c *ProjectsLocationsAgentsTestCasesImportCall) doRequest(alt string) (*http.Response, error) {
28691	reqHeaders := make(http.Header)
28692	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28693	for k, v := range c.header_ {
28694		reqHeaders[k] = v
28695	}
28696	reqHeaders.Set("User-Agent", c.s.userAgent())
28697	var body io.Reader = nil
28698	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importtestcasesrequest)
28699	if err != nil {
28700		return nil, err
28701	}
28702	reqHeaders.Set("Content-Type", "application/json")
28703	c.urlParams_.Set("alt", alt)
28704	c.urlParams_.Set("prettyPrint", "false")
28705	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:import")
28706	urls += "?" + c.urlParams_.Encode()
28707	req, err := http.NewRequest("POST", urls, body)
28708	if err != nil {
28709		return nil, err
28710	}
28711	req.Header = reqHeaders
28712	googleapi.Expand(req.URL, map[string]string{
28713		"parent": c.parent,
28714	})
28715	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28716}
28717
28718// Do executes the "dialogflow.projects.locations.agents.testCases.import" call.
28719// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
28720// Any non-2xx status code is an error. Response headers are in either
28721// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
28722// was returned at all) in error.(*googleapi.Error).Header. Use
28723// googleapi.IsNotModified to check whether the returned error was
28724// because http.StatusNotModified was returned.
28725func (c *ProjectsLocationsAgentsTestCasesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28726	gensupport.SetOptions(c.urlParams_, opts...)
28727	res, err := c.doRequest("json")
28728	if res != nil && res.StatusCode == http.StatusNotModified {
28729		if res.Body != nil {
28730			res.Body.Close()
28731		}
28732		return nil, &googleapi.Error{
28733			Code:   res.StatusCode,
28734			Header: res.Header,
28735		}
28736	}
28737	if err != nil {
28738		return nil, err
28739	}
28740	defer googleapi.CloseBody(res)
28741	if err := googleapi.CheckResponse(res); err != nil {
28742		return nil, err
28743	}
28744	ret := &GoogleLongrunningOperation{
28745		ServerResponse: googleapi.ServerResponse{
28746			Header:         res.Header,
28747			HTTPStatusCode: res.StatusCode,
28748		},
28749	}
28750	target := &ret
28751	if err := gensupport.DecodeResponse(target, res); err != nil {
28752		return nil, err
28753	}
28754	return ret, nil
28755	// {
28756	//   "description": "Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwite any existing ones. The provided ID in the imported test case is neglected.",
28757	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:import",
28758	//   "httpMethod": "POST",
28759	//   "id": "dialogflow.projects.locations.agents.testCases.import",
28760	//   "parameterOrder": [
28761	//     "parent"
28762	//   ],
28763	//   "parameters": {
28764	//     "parent": {
28765	//       "description": "Required. The agent to import test cases to. Format: `projects//locations//agents/`.",
28766	//       "location": "path",
28767	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
28768	//       "required": true,
28769	//       "type": "string"
28770	//     }
28771	//   },
28772	//   "path": "v3beta1/{+parent}/testCases:import",
28773	//   "request": {
28774	//     "$ref": "GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest"
28775	//   },
28776	//   "response": {
28777	//     "$ref": "GoogleLongrunningOperation"
28778	//   },
28779	//   "scopes": [
28780	//     "https://www.googleapis.com/auth/cloud-platform",
28781	//     "https://www.googleapis.com/auth/dialogflow"
28782	//   ]
28783	// }
28784
28785}
28786
28787// method id "dialogflow.projects.locations.agents.testCases.list":
28788
28789type ProjectsLocationsAgentsTestCasesListCall struct {
28790	s            *Service
28791	parent       string
28792	urlParams_   gensupport.URLParams
28793	ifNoneMatch_ string
28794	ctx_         context.Context
28795	header_      http.Header
28796}
28797
28798// List: Fetches a list of test cases for a given agent.
28799func (r *ProjectsLocationsAgentsTestCasesService) List(parent string) *ProjectsLocationsAgentsTestCasesListCall {
28800	c := &ProjectsLocationsAgentsTestCasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28801	c.parent = parent
28802	return c
28803}
28804
28805// PageSize sets the optional parameter "pageSize": The maximum number
28806// of items to return in a single page. By default 20. Note that when
28807// TestCaseView = FULL, the maximum page size allowed is 20. When
28808// TestCaseView = BASIC, the maximum page size allowed is 500.
28809func (c *ProjectsLocationsAgentsTestCasesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesListCall {
28810	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28811	return c
28812}
28813
28814// PageToken sets the optional parameter "pageToken": The
28815// next_page_token value returned from a previous list request.
28816func (c *ProjectsLocationsAgentsTestCasesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesListCall {
28817	c.urlParams_.Set("pageToken", pageToken)
28818	return c
28819}
28820
28821// View sets the optional parameter "view": Specifies whether response
28822// should include all fields or just the metadata.
28823//
28824// Possible values:
28825//   "TEST_CASE_VIEW_UNSPECIFIED" - The default / unset value. The API
28826// will default to the BASIC view.
28827//   "BASIC" - Include basic metadata about the test case, but not the
28828// conversation turns. This is the default value.
28829//   "FULL" - Include everything.
28830func (c *ProjectsLocationsAgentsTestCasesListCall) View(view string) *ProjectsLocationsAgentsTestCasesListCall {
28831	c.urlParams_.Set("view", view)
28832	return c
28833}
28834
28835// Fields allows partial responses to be retrieved. See
28836// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28837// for more information.
28838func (c *ProjectsLocationsAgentsTestCasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesListCall {
28839	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28840	return c
28841}
28842
28843// IfNoneMatch sets the optional parameter which makes the operation
28844// fail if the object's ETag matches the given value. This is useful for
28845// getting updates only after the object has changed since the last
28846// request. Use googleapi.IsNotModified to check whether the response
28847// error from Do is the result of In-None-Match.
28848func (c *ProjectsLocationsAgentsTestCasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesListCall {
28849	c.ifNoneMatch_ = entityTag
28850	return c
28851}
28852
28853// Context sets the context to be used in this call's Do method. Any
28854// pending HTTP request will be aborted if the provided context is
28855// canceled.
28856func (c *ProjectsLocationsAgentsTestCasesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesListCall {
28857	c.ctx_ = ctx
28858	return c
28859}
28860
28861// Header returns an http.Header that can be modified by the caller to
28862// add HTTP headers to the request.
28863func (c *ProjectsLocationsAgentsTestCasesListCall) Header() http.Header {
28864	if c.header_ == nil {
28865		c.header_ = make(http.Header)
28866	}
28867	return c.header_
28868}
28869
28870func (c *ProjectsLocationsAgentsTestCasesListCall) doRequest(alt string) (*http.Response, error) {
28871	reqHeaders := make(http.Header)
28872	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
28873	for k, v := range c.header_ {
28874		reqHeaders[k] = v
28875	}
28876	reqHeaders.Set("User-Agent", c.s.userAgent())
28877	if c.ifNoneMatch_ != "" {
28878		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28879	}
28880	var body io.Reader = nil
28881	c.urlParams_.Set("alt", alt)
28882	c.urlParams_.Set("prettyPrint", "false")
28883	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases")
28884	urls += "?" + c.urlParams_.Encode()
28885	req, err := http.NewRequest("GET", urls, body)
28886	if err != nil {
28887		return nil, err
28888	}
28889	req.Header = reqHeaders
28890	googleapi.Expand(req.URL, map[string]string{
28891		"parent": c.parent,
28892	})
28893	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28894}
28895
28896// Do executes the "dialogflow.projects.locations.agents.testCases.list" call.
28897// Exactly one of *GoogleCloudDialogflowCxV3beta1ListTestCasesResponse
28898// or error will be non-nil. Any non-2xx status code is an error.
28899// Response headers are in either
28900// *GoogleCloudDialogflowCxV3beta1ListTestCasesResponse.ServerResponse.He
28901// ader or (if a response was returned at all) in
28902// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28903// whether the returned error was because http.StatusNotModified was
28904// returned.
28905func (c *ProjectsLocationsAgentsTestCasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTestCasesResponse, error) {
28906	gensupport.SetOptions(c.urlParams_, opts...)
28907	res, err := c.doRequest("json")
28908	if res != nil && res.StatusCode == http.StatusNotModified {
28909		if res.Body != nil {
28910			res.Body.Close()
28911		}
28912		return nil, &googleapi.Error{
28913			Code:   res.StatusCode,
28914			Header: res.Header,
28915		}
28916	}
28917	if err != nil {
28918		return nil, err
28919	}
28920	defer googleapi.CloseBody(res)
28921	if err := googleapi.CheckResponse(res); err != nil {
28922		return nil, err
28923	}
28924	ret := &GoogleCloudDialogflowCxV3beta1ListTestCasesResponse{
28925		ServerResponse: googleapi.ServerResponse{
28926			Header:         res.Header,
28927			HTTPStatusCode: res.StatusCode,
28928		},
28929	}
28930	target := &ret
28931	if err := gensupport.DecodeResponse(target, res); err != nil {
28932		return nil, err
28933	}
28934	return ret, nil
28935	// {
28936	//   "description": "Fetches a list of test cases for a given agent.",
28937	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases",
28938	//   "httpMethod": "GET",
28939	//   "id": "dialogflow.projects.locations.agents.testCases.list",
28940	//   "parameterOrder": [
28941	//     "parent"
28942	//   ],
28943	//   "parameters": {
28944	//     "pageSize": {
28945	//       "description": "The maximum number of items to return in a single page. By default 20. Note that when TestCaseView = FULL, the maximum page size allowed is 20. When TestCaseView = BASIC, the maximum page size allowed is 500.",
28946	//       "format": "int32",
28947	//       "location": "query",
28948	//       "type": "integer"
28949	//     },
28950	//     "pageToken": {
28951	//       "description": "The next_page_token value returned from a previous list request.",
28952	//       "location": "query",
28953	//       "type": "string"
28954	//     },
28955	//     "parent": {
28956	//       "description": "Required. The agent to list all pages for. Format: `projects//locations//agents/`.",
28957	//       "location": "path",
28958	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
28959	//       "required": true,
28960	//       "type": "string"
28961	//     },
28962	//     "view": {
28963	//       "description": "Specifies whether response should include all fields or just the metadata.",
28964	//       "enum": [
28965	//         "TEST_CASE_VIEW_UNSPECIFIED",
28966	//         "BASIC",
28967	//         "FULL"
28968	//       ],
28969	//       "enumDescriptions": [
28970	//         "The default / unset value. The API will default to the BASIC view.",
28971	//         "Include basic metadata about the test case, but not the conversation turns. This is the default value.",
28972	//         "Include everything."
28973	//       ],
28974	//       "location": "query",
28975	//       "type": "string"
28976	//     }
28977	//   },
28978	//   "path": "v3beta1/{+parent}/testCases",
28979	//   "response": {
28980	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListTestCasesResponse"
28981	//   },
28982	//   "scopes": [
28983	//     "https://www.googleapis.com/auth/cloud-platform",
28984	//     "https://www.googleapis.com/auth/dialogflow"
28985	//   ]
28986	// }
28987
28988}
28989
28990// Pages invokes f for each page of results.
28991// A non-nil error returned from f will halt the iteration.
28992// The provided context supersedes any context provided to the Context method.
28993func (c *ProjectsLocationsAgentsTestCasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTestCasesResponse) error) error {
28994	c.ctx_ = ctx
28995	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
28996	for {
28997		x, err := c.Do()
28998		if err != nil {
28999			return err
29000		}
29001		if err := f(x); err != nil {
29002			return err
29003		}
29004		if x.NextPageToken == "" {
29005			return nil
29006		}
29007		c.PageToken(x.NextPageToken)
29008	}
29009}
29010
29011// method id "dialogflow.projects.locations.agents.testCases.patch":
29012
29013type ProjectsLocationsAgentsTestCasesPatchCall struct {
29014	s                                      *Service
29015	nameid                                 string
29016	googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase
29017	urlParams_                             gensupport.URLParams
29018	ctx_                                   context.Context
29019	header_                                http.Header
29020}
29021
29022// Patch: Updates the specified test case.
29023func (r *ProjectsLocationsAgentsTestCasesService) Patch(nameid string, googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase) *ProjectsLocationsAgentsTestCasesPatchCall {
29024	c := &ProjectsLocationsAgentsTestCasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29025	c.nameid = nameid
29026	c.googleclouddialogflowcxv3beta1testcase = googleclouddialogflowcxv3beta1testcase
29027	return c
29028}
29029
29030// UpdateMask sets the optional parameter "updateMask": Required. The
29031// mask to specify which fields should be updated. The `creationTime`
29032// and `lastTestResult` cannot be updated.
29033func (c *ProjectsLocationsAgentsTestCasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsTestCasesPatchCall {
29034	c.urlParams_.Set("updateMask", updateMask)
29035	return c
29036}
29037
29038// Fields allows partial responses to be retrieved. See
29039// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29040// for more information.
29041func (c *ProjectsLocationsAgentsTestCasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesPatchCall {
29042	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29043	return c
29044}
29045
29046// Context sets the context to be used in this call's Do method. Any
29047// pending HTTP request will be aborted if the provided context is
29048// canceled.
29049func (c *ProjectsLocationsAgentsTestCasesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesPatchCall {
29050	c.ctx_ = ctx
29051	return c
29052}
29053
29054// Header returns an http.Header that can be modified by the caller to
29055// add HTTP headers to the request.
29056func (c *ProjectsLocationsAgentsTestCasesPatchCall) Header() http.Header {
29057	if c.header_ == nil {
29058		c.header_ = make(http.Header)
29059	}
29060	return c.header_
29061}
29062
29063func (c *ProjectsLocationsAgentsTestCasesPatchCall) doRequest(alt string) (*http.Response, error) {
29064	reqHeaders := make(http.Header)
29065	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29066	for k, v := range c.header_ {
29067		reqHeaders[k] = v
29068	}
29069	reqHeaders.Set("User-Agent", c.s.userAgent())
29070	var body io.Reader = nil
29071	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1testcase)
29072	if err != nil {
29073		return nil, err
29074	}
29075	reqHeaders.Set("Content-Type", "application/json")
29076	c.urlParams_.Set("alt", alt)
29077	c.urlParams_.Set("prettyPrint", "false")
29078	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
29079	urls += "?" + c.urlParams_.Encode()
29080	req, err := http.NewRequest("PATCH", urls, body)
29081	if err != nil {
29082		return nil, err
29083	}
29084	req.Header = reqHeaders
29085	googleapi.Expand(req.URL, map[string]string{
29086		"name": c.nameid,
29087	})
29088	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29089}
29090
29091// Do executes the "dialogflow.projects.locations.agents.testCases.patch" call.
29092// Exactly one of *GoogleCloudDialogflowCxV3beta1TestCase or error will
29093// be non-nil. Any non-2xx status code is an error. Response headers are
29094// in either
29095// *GoogleCloudDialogflowCxV3beta1TestCase.ServerResponse.Header or (if
29096// a response was returned at all) in error.(*googleapi.Error).Header.
29097// Use googleapi.IsNotModified to check whether the returned error was
29098// because http.StatusNotModified was returned.
29099func (c *ProjectsLocationsAgentsTestCasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
29100	gensupport.SetOptions(c.urlParams_, opts...)
29101	res, err := c.doRequest("json")
29102	if res != nil && res.StatusCode == http.StatusNotModified {
29103		if res.Body != nil {
29104			res.Body.Close()
29105		}
29106		return nil, &googleapi.Error{
29107			Code:   res.StatusCode,
29108			Header: res.Header,
29109		}
29110	}
29111	if err != nil {
29112		return nil, err
29113	}
29114	defer googleapi.CloseBody(res)
29115	if err := googleapi.CheckResponse(res); err != nil {
29116		return nil, err
29117	}
29118	ret := &GoogleCloudDialogflowCxV3beta1TestCase{
29119		ServerResponse: googleapi.ServerResponse{
29120			Header:         res.Header,
29121			HTTPStatusCode: res.StatusCode,
29122		},
29123	}
29124	target := &ret
29125	if err := gensupport.DecodeResponse(target, res); err != nil {
29126		return nil, err
29127	}
29128	return ret, nil
29129	// {
29130	//   "description": "Updates the specified test case.",
29131	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId}",
29132	//   "httpMethod": "PATCH",
29133	//   "id": "dialogflow.projects.locations.agents.testCases.patch",
29134	//   "parameterOrder": [
29135	//     "name"
29136	//   ],
29137	//   "parameters": {
29138	//     "name": {
29139	//       "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ /testCases/`.",
29140	//       "location": "path",
29141	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$",
29142	//       "required": true,
29143	//       "type": "string"
29144	//     },
29145	//     "updateMask": {
29146	//       "description": "Required. The mask to specify which fields should be updated. The `creationTime` and `lastTestResult` cannot be updated.",
29147	//       "format": "google-fieldmask",
29148	//       "location": "query",
29149	//       "type": "string"
29150	//     }
29151	//   },
29152	//   "path": "v3beta1/{+name}",
29153	//   "request": {
29154	//     "$ref": "GoogleCloudDialogflowCxV3beta1TestCase"
29155	//   },
29156	//   "response": {
29157	//     "$ref": "GoogleCloudDialogflowCxV3beta1TestCase"
29158	//   },
29159	//   "scopes": [
29160	//     "https://www.googleapis.com/auth/cloud-platform",
29161	//     "https://www.googleapis.com/auth/dialogflow"
29162	//   ]
29163	// }
29164
29165}
29166
29167// method id "dialogflow.projects.locations.agents.testCases.run":
29168
29169type ProjectsLocationsAgentsTestCasesRunCall struct {
29170	s                                                *Service
29171	name                                             string
29172	googleclouddialogflowcxv3beta1runtestcaserequest *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest
29173	urlParams_                                       gensupport.URLParams
29174	ctx_                                             context.Context
29175	header_                                          http.Header
29176}
29177
29178// Run: Kicks off a test case run.
29179func (r *ProjectsLocationsAgentsTestCasesService) Run(name string, googleclouddialogflowcxv3beta1runtestcaserequest *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest) *ProjectsLocationsAgentsTestCasesRunCall {
29180	c := &ProjectsLocationsAgentsTestCasesRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29181	c.name = name
29182	c.googleclouddialogflowcxv3beta1runtestcaserequest = googleclouddialogflowcxv3beta1runtestcaserequest
29183	return c
29184}
29185
29186// Fields allows partial responses to be retrieved. See
29187// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29188// for more information.
29189func (c *ProjectsLocationsAgentsTestCasesRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesRunCall {
29190	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29191	return c
29192}
29193
29194// Context sets the context to be used in this call's Do method. Any
29195// pending HTTP request will be aborted if the provided context is
29196// canceled.
29197func (c *ProjectsLocationsAgentsTestCasesRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesRunCall {
29198	c.ctx_ = ctx
29199	return c
29200}
29201
29202// Header returns an http.Header that can be modified by the caller to
29203// add HTTP headers to the request.
29204func (c *ProjectsLocationsAgentsTestCasesRunCall) Header() http.Header {
29205	if c.header_ == nil {
29206		c.header_ = make(http.Header)
29207	}
29208	return c.header_
29209}
29210
29211func (c *ProjectsLocationsAgentsTestCasesRunCall) doRequest(alt string) (*http.Response, error) {
29212	reqHeaders := make(http.Header)
29213	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29214	for k, v := range c.header_ {
29215		reqHeaders[k] = v
29216	}
29217	reqHeaders.Set("User-Agent", c.s.userAgent())
29218	var body io.Reader = nil
29219	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1runtestcaserequest)
29220	if err != nil {
29221		return nil, err
29222	}
29223	reqHeaders.Set("Content-Type", "application/json")
29224	c.urlParams_.Set("alt", alt)
29225	c.urlParams_.Set("prettyPrint", "false")
29226	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:run")
29227	urls += "?" + c.urlParams_.Encode()
29228	req, err := http.NewRequest("POST", urls, body)
29229	if err != nil {
29230		return nil, err
29231	}
29232	req.Header = reqHeaders
29233	googleapi.Expand(req.URL, map[string]string{
29234		"name": c.name,
29235	})
29236	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29237}
29238
29239// Do executes the "dialogflow.projects.locations.agents.testCases.run" call.
29240// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
29241// Any non-2xx status code is an error. Response headers are in either
29242// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
29243// was returned at all) in error.(*googleapi.Error).Header. Use
29244// googleapi.IsNotModified to check whether the returned error was
29245// because http.StatusNotModified was returned.
29246func (c *ProjectsLocationsAgentsTestCasesRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29247	gensupport.SetOptions(c.urlParams_, opts...)
29248	res, err := c.doRequest("json")
29249	if res != nil && res.StatusCode == http.StatusNotModified {
29250		if res.Body != nil {
29251			res.Body.Close()
29252		}
29253		return nil, &googleapi.Error{
29254			Code:   res.StatusCode,
29255			Header: res.Header,
29256		}
29257	}
29258	if err != nil {
29259		return nil, err
29260	}
29261	defer googleapi.CloseBody(res)
29262	if err := googleapi.CheckResponse(res); err != nil {
29263		return nil, err
29264	}
29265	ret := &GoogleLongrunningOperation{
29266		ServerResponse: googleapi.ServerResponse{
29267			Header:         res.Header,
29268			HTTPStatusCode: res.StatusCode,
29269		},
29270	}
29271	target := &ret
29272	if err := gensupport.DecodeResponse(target, res); err != nil {
29273		return nil, err
29274	}
29275	return ret, nil
29276	// {
29277	//   "description": "Kicks off a test case run.",
29278	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId}:run",
29279	//   "httpMethod": "POST",
29280	//   "id": "dialogflow.projects.locations.agents.testCases.run",
29281	//   "parameterOrder": [
29282	//     "name"
29283	//   ],
29284	//   "parameters": {
29285	//     "name": {
29286	//       "description": "Required. Format of test case name to run: `projects//locations/ /agents//testCases/`.",
29287	//       "location": "path",
29288	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$",
29289	//       "required": true,
29290	//       "type": "string"
29291	//     }
29292	//   },
29293	//   "path": "v3beta1/{+name}:run",
29294	//   "request": {
29295	//     "$ref": "GoogleCloudDialogflowCxV3beta1RunTestCaseRequest"
29296	//   },
29297	//   "response": {
29298	//     "$ref": "GoogleLongrunningOperation"
29299	//   },
29300	//   "scopes": [
29301	//     "https://www.googleapis.com/auth/cloud-platform",
29302	//     "https://www.googleapis.com/auth/dialogflow"
29303	//   ]
29304	// }
29305
29306}
29307
29308// method id "dialogflow.projects.locations.agents.testCases.results.get":
29309
29310type ProjectsLocationsAgentsTestCasesResultsGetCall struct {
29311	s            *Service
29312	name         string
29313	urlParams_   gensupport.URLParams
29314	ifNoneMatch_ string
29315	ctx_         context.Context
29316	header_      http.Header
29317}
29318
29319// Get: Gets a test case result.
29320func (r *ProjectsLocationsAgentsTestCasesResultsService) Get(name string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
29321	c := &ProjectsLocationsAgentsTestCasesResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29322	c.name = name
29323	return c
29324}
29325
29326// Fields allows partial responses to be retrieved. See
29327// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29328// for more information.
29329func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsGetCall {
29330	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29331	return c
29332}
29333
29334// IfNoneMatch sets the optional parameter which makes the operation
29335// fail if the object's ETag matches the given value. This is useful for
29336// getting updates only after the object has changed since the last
29337// request. Use googleapi.IsNotModified to check whether the response
29338// error from Do is the result of In-None-Match.
29339func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
29340	c.ifNoneMatch_ = entityTag
29341	return c
29342}
29343
29344// Context sets the context to be used in this call's Do method. Any
29345// pending HTTP request will be aborted if the provided context is
29346// canceled.
29347func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsGetCall {
29348	c.ctx_ = ctx
29349	return c
29350}
29351
29352// Header returns an http.Header that can be modified by the caller to
29353// add HTTP headers to the request.
29354func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Header() http.Header {
29355	if c.header_ == nil {
29356		c.header_ = make(http.Header)
29357	}
29358	return c.header_
29359}
29360
29361func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) doRequest(alt string) (*http.Response, error) {
29362	reqHeaders := make(http.Header)
29363	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29364	for k, v := range c.header_ {
29365		reqHeaders[k] = v
29366	}
29367	reqHeaders.Set("User-Agent", c.s.userAgent())
29368	if c.ifNoneMatch_ != "" {
29369		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29370	}
29371	var body io.Reader = nil
29372	c.urlParams_.Set("alt", alt)
29373	c.urlParams_.Set("prettyPrint", "false")
29374	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
29375	urls += "?" + c.urlParams_.Encode()
29376	req, err := http.NewRequest("GET", urls, body)
29377	if err != nil {
29378		return nil, err
29379	}
29380	req.Header = reqHeaders
29381	googleapi.Expand(req.URL, map[string]string{
29382		"name": c.name,
29383	})
29384	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29385}
29386
29387// Do executes the "dialogflow.projects.locations.agents.testCases.results.get" call.
29388// Exactly one of *GoogleCloudDialogflowCxV3beta1TestCaseResult or error
29389// will be non-nil. Any non-2xx status code is an error. Response
29390// headers are in either
29391// *GoogleCloudDialogflowCxV3beta1TestCaseResult.ServerResponse.Header
29392// or (if a response was returned at all) in
29393// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29394// whether the returned error was because http.StatusNotModified was
29395// returned.
29396func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCaseResult, error) {
29397	gensupport.SetOptions(c.urlParams_, opts...)
29398	res, err := c.doRequest("json")
29399	if res != nil && res.StatusCode == http.StatusNotModified {
29400		if res.Body != nil {
29401			res.Body.Close()
29402		}
29403		return nil, &googleapi.Error{
29404			Code:   res.StatusCode,
29405			Header: res.Header,
29406		}
29407	}
29408	if err != nil {
29409		return nil, err
29410	}
29411	defer googleapi.CloseBody(res)
29412	if err := googleapi.CheckResponse(res); err != nil {
29413		return nil, err
29414	}
29415	ret := &GoogleCloudDialogflowCxV3beta1TestCaseResult{
29416		ServerResponse: googleapi.ServerResponse{
29417			Header:         res.Header,
29418			HTTPStatusCode: res.StatusCode,
29419		},
29420	}
29421	target := &ret
29422	if err := gensupport.DecodeResponse(target, res); err != nil {
29423		return nil, err
29424	}
29425	return ret, nil
29426	// {
29427	//   "description": "Gets a test case result.",
29428	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId}/results/{resultsId}",
29429	//   "httpMethod": "GET",
29430	//   "id": "dialogflow.projects.locations.agents.testCases.results.get",
29431	//   "parameterOrder": [
29432	//     "name"
29433	//   ],
29434	//   "parameters": {
29435	//     "name": {
29436	//       "description": "Required. The name of the testcase. Format: `projects//locations//agents//testCases//results/`.",
29437	//       "location": "path",
29438	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+/results/[^/]+$",
29439	//       "required": true,
29440	//       "type": "string"
29441	//     }
29442	//   },
29443	//   "path": "v3beta1/{+name}",
29444	//   "response": {
29445	//     "$ref": "GoogleCloudDialogflowCxV3beta1TestCaseResult"
29446	//   },
29447	//   "scopes": [
29448	//     "https://www.googleapis.com/auth/cloud-platform",
29449	//     "https://www.googleapis.com/auth/dialogflow"
29450	//   ]
29451	// }
29452
29453}
29454
29455// method id "dialogflow.projects.locations.agents.testCases.results.list":
29456
29457type ProjectsLocationsAgentsTestCasesResultsListCall struct {
29458	s            *Service
29459	parent       string
29460	urlParams_   gensupport.URLParams
29461	ifNoneMatch_ string
29462	ctx_         context.Context
29463	header_      http.Header
29464}
29465
29466// List: Fetches a list of results for a given test case.
29467func (r *ProjectsLocationsAgentsTestCasesResultsService) List(parent string) *ProjectsLocationsAgentsTestCasesResultsListCall {
29468	c := &ProjectsLocationsAgentsTestCasesResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29469	c.parent = parent
29470	return c
29471}
29472
29473// Filter sets the optional parameter "filter": The filter expression
29474// used to filter test case results. See API Filtering
29475// (https://aip.dev/160). The expression is case insensitive. Only 'AND'
29476// is supported for logical operators. The supported syntax is listed
29477// below in detail: [AND ] ... [AND latest] The supported fields and
29478// operators are: field operator `environment` `=`, `IN` (Use value
29479// `draft` for draft environment) `test_time` `>`, `<` `latest` only
29480// returns the latest test result in all results for each test case.
29481// Examples: * "environment=draft AND latest" matches the latest test
29482// result for each test case in the draft environment. * "environment IN
29483// (e1,e2)" matches any test case results with an environment resource
29484// name of either "e1" or "e2". * "test_time > 1602540713" matches any
29485// test case results with test time later than a unix timestamp in
29486// seconds 1602540713.
29487func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Filter(filter string) *ProjectsLocationsAgentsTestCasesResultsListCall {
29488	c.urlParams_.Set("filter", filter)
29489	return c
29490}
29491
29492// PageSize sets the optional parameter "pageSize": The maximum number
29493// of items to return in a single page. By default 100 and at most 1000.
29494func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesResultsListCall {
29495	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29496	return c
29497}
29498
29499// PageToken sets the optional parameter "pageToken": The
29500// next_page_token value returned from a previous list request.
29501func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesResultsListCall {
29502	c.urlParams_.Set("pageToken", pageToken)
29503	return c
29504}
29505
29506// Fields allows partial responses to be retrieved. See
29507// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29508// for more information.
29509func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsListCall {
29510	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29511	return c
29512}
29513
29514// IfNoneMatch sets the optional parameter which makes the operation
29515// fail if the object's ETag matches the given value. This is useful for
29516// getting updates only after the object has changed since the last
29517// request. Use googleapi.IsNotModified to check whether the response
29518// error from Do is the result of In-None-Match.
29519func (c *ProjectsLocationsAgentsTestCasesResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsListCall {
29520	c.ifNoneMatch_ = entityTag
29521	return c
29522}
29523
29524// Context sets the context to be used in this call's Do method. Any
29525// pending HTTP request will be aborted if the provided context is
29526// canceled.
29527func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsListCall {
29528	c.ctx_ = ctx
29529	return c
29530}
29531
29532// Header returns an http.Header that can be modified by the caller to
29533// add HTTP headers to the request.
29534func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Header() http.Header {
29535	if c.header_ == nil {
29536		c.header_ = make(http.Header)
29537	}
29538	return c.header_
29539}
29540
29541func (c *ProjectsLocationsAgentsTestCasesResultsListCall) doRequest(alt string) (*http.Response, error) {
29542	reqHeaders := make(http.Header)
29543	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29544	for k, v := range c.header_ {
29545		reqHeaders[k] = v
29546	}
29547	reqHeaders.Set("User-Agent", c.s.userAgent())
29548	if c.ifNoneMatch_ != "" {
29549		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29550	}
29551	var body io.Reader = nil
29552	c.urlParams_.Set("alt", alt)
29553	c.urlParams_.Set("prettyPrint", "false")
29554	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/results")
29555	urls += "?" + c.urlParams_.Encode()
29556	req, err := http.NewRequest("GET", urls, body)
29557	if err != nil {
29558		return nil, err
29559	}
29560	req.Header = reqHeaders
29561	googleapi.Expand(req.URL, map[string]string{
29562		"parent": c.parent,
29563	})
29564	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29565}
29566
29567// Do executes the "dialogflow.projects.locations.agents.testCases.results.list" call.
29568// Exactly one of
29569// *GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse or error
29570// will be non-nil. Any non-2xx status code is an error. Response
29571// headers are in either
29572// *GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse.ServerRespo
29573// nse.Header or (if a response was returned at all) in
29574// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29575// whether the returned error was because http.StatusNotModified was
29576// returned.
29577func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse, error) {
29578	gensupport.SetOptions(c.urlParams_, opts...)
29579	res, err := c.doRequest("json")
29580	if res != nil && res.StatusCode == http.StatusNotModified {
29581		if res.Body != nil {
29582			res.Body.Close()
29583		}
29584		return nil, &googleapi.Error{
29585			Code:   res.StatusCode,
29586			Header: res.Header,
29587		}
29588	}
29589	if err != nil {
29590		return nil, err
29591	}
29592	defer googleapi.CloseBody(res)
29593	if err := googleapi.CheckResponse(res); err != nil {
29594		return nil, err
29595	}
29596	ret := &GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse{
29597		ServerResponse: googleapi.ServerResponse{
29598			Header:         res.Header,
29599			HTTPStatusCode: res.StatusCode,
29600		},
29601	}
29602	target := &ret
29603	if err := gensupport.DecodeResponse(target, res); err != nil {
29604		return nil, err
29605	}
29606	return ret, nil
29607	// {
29608	//   "description": "Fetches a list of results for a given test case.",
29609	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases/{testCasesId}/results",
29610	//   "httpMethod": "GET",
29611	//   "id": "dialogflow.projects.locations.agents.testCases.results.list",
29612	//   "parameterOrder": [
29613	//     "parent"
29614	//   ],
29615	//   "parameters": {
29616	//     "filter": {
29617	//       "description": "The filter expression used to filter test case results. See [API Filtering](https://aip.dev/160). The expression is case insensitive. Only 'AND' is supported for logical operators. The supported syntax is listed below in detail: [AND ] ... [AND latest] The supported fields and operators are: field operator `environment` `=`, `IN` (Use value `draft` for draft environment) `test_time` `\u003e`, `\u003c` `latest` only returns the latest test result in all results for each test case. Examples: * \"environment=draft AND latest\" matches the latest test result for each test case in the draft environment. * \"environment IN (e1,e2)\" matches any test case results with an environment resource name of either \"e1\" or \"e2\". * \"test_time \u003e 1602540713\" matches any test case results with test time later than a unix timestamp in seconds 1602540713.",
29618	//       "location": "query",
29619	//       "type": "string"
29620	//     },
29621	//     "pageSize": {
29622	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
29623	//       "format": "int32",
29624	//       "location": "query",
29625	//       "type": "integer"
29626	//     },
29627	//     "pageToken": {
29628	//       "description": "The next_page_token value returned from a previous list request.",
29629	//       "location": "query",
29630	//       "type": "string"
29631	//     },
29632	//     "parent": {
29633	//       "description": "Required. The test case to list results for. Format: `projects//locations//agents// testCases/`. Specify a `-` as a wildcard for TestCase ID to list results across multiple test cases.",
29634	//       "location": "path",
29635	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/testCases/[^/]+$",
29636	//       "required": true,
29637	//       "type": "string"
29638	//     }
29639	//   },
29640	//   "path": "v3beta1/{+parent}/results",
29641	//   "response": {
29642	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse"
29643	//   },
29644	//   "scopes": [
29645	//     "https://www.googleapis.com/auth/cloud-platform",
29646	//     "https://www.googleapis.com/auth/dialogflow"
29647	//   ]
29648	// }
29649
29650}
29651
29652// Pages invokes f for each page of results.
29653// A non-nil error returned from f will halt the iteration.
29654// The provided context supersedes any context provided to the Context method.
29655func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse) error) error {
29656	c.ctx_ = ctx
29657	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
29658	for {
29659		x, err := c.Do()
29660		if err != nil {
29661			return err
29662		}
29663		if err := f(x); err != nil {
29664			return err
29665		}
29666		if x.NextPageToken == "" {
29667			return nil
29668		}
29669		c.PageToken(x.NextPageToken)
29670	}
29671}
29672
29673// method id "dialogflow.projects.locations.agents.webhooks.create":
29674
29675type ProjectsLocationsAgentsWebhooksCreateCall struct {
29676	s                                     *Service
29677	parent                                string
29678	googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook
29679	urlParams_                            gensupport.URLParams
29680	ctx_                                  context.Context
29681	header_                               http.Header
29682}
29683
29684// Create: Creates a webhook in the specified agent.
29685func (r *ProjectsLocationsAgentsWebhooksService) Create(parent string, googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook) *ProjectsLocationsAgentsWebhooksCreateCall {
29686	c := &ProjectsLocationsAgentsWebhooksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29687	c.parent = parent
29688	c.googleclouddialogflowcxv3beta1webhook = googleclouddialogflowcxv3beta1webhook
29689	return c
29690}
29691
29692// Fields allows partial responses to be retrieved. See
29693// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29694// for more information.
29695func (c *ProjectsLocationsAgentsWebhooksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksCreateCall {
29696	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29697	return c
29698}
29699
29700// Context sets the context to be used in this call's Do method. Any
29701// pending HTTP request will be aborted if the provided context is
29702// canceled.
29703func (c *ProjectsLocationsAgentsWebhooksCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksCreateCall {
29704	c.ctx_ = ctx
29705	return c
29706}
29707
29708// Header returns an http.Header that can be modified by the caller to
29709// add HTTP headers to the request.
29710func (c *ProjectsLocationsAgentsWebhooksCreateCall) Header() http.Header {
29711	if c.header_ == nil {
29712		c.header_ = make(http.Header)
29713	}
29714	return c.header_
29715}
29716
29717func (c *ProjectsLocationsAgentsWebhooksCreateCall) doRequest(alt string) (*http.Response, error) {
29718	reqHeaders := make(http.Header)
29719	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29720	for k, v := range c.header_ {
29721		reqHeaders[k] = v
29722	}
29723	reqHeaders.Set("User-Agent", c.s.userAgent())
29724	var body io.Reader = nil
29725	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1webhook)
29726	if err != nil {
29727		return nil, err
29728	}
29729	reqHeaders.Set("Content-Type", "application/json")
29730	c.urlParams_.Set("alt", alt)
29731	c.urlParams_.Set("prettyPrint", "false")
29732	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/webhooks")
29733	urls += "?" + c.urlParams_.Encode()
29734	req, err := http.NewRequest("POST", urls, body)
29735	if err != nil {
29736		return nil, err
29737	}
29738	req.Header = reqHeaders
29739	googleapi.Expand(req.URL, map[string]string{
29740		"parent": c.parent,
29741	})
29742	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29743}
29744
29745// Do executes the "dialogflow.projects.locations.agents.webhooks.create" call.
29746// Exactly one of *GoogleCloudDialogflowCxV3beta1Webhook or error will
29747// be non-nil. Any non-2xx status code is an error. Response headers are
29748// in either
29749// *GoogleCloudDialogflowCxV3beta1Webhook.ServerResponse.Header or (if a
29750// response was returned at all) in error.(*googleapi.Error).Header. Use
29751// googleapi.IsNotModified to check whether the returned error was
29752// because http.StatusNotModified was returned.
29753func (c *ProjectsLocationsAgentsWebhooksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
29754	gensupport.SetOptions(c.urlParams_, opts...)
29755	res, err := c.doRequest("json")
29756	if res != nil && res.StatusCode == http.StatusNotModified {
29757		if res.Body != nil {
29758			res.Body.Close()
29759		}
29760		return nil, &googleapi.Error{
29761			Code:   res.StatusCode,
29762			Header: res.Header,
29763		}
29764	}
29765	if err != nil {
29766		return nil, err
29767	}
29768	defer googleapi.CloseBody(res)
29769	if err := googleapi.CheckResponse(res); err != nil {
29770		return nil, err
29771	}
29772	ret := &GoogleCloudDialogflowCxV3beta1Webhook{
29773		ServerResponse: googleapi.ServerResponse{
29774			Header:         res.Header,
29775			HTTPStatusCode: res.StatusCode,
29776		},
29777	}
29778	target := &ret
29779	if err := gensupport.DecodeResponse(target, res); err != nil {
29780		return nil, err
29781	}
29782	return ret, nil
29783	// {
29784	//   "description": "Creates a webhook in the specified agent.",
29785	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/webhooks",
29786	//   "httpMethod": "POST",
29787	//   "id": "dialogflow.projects.locations.agents.webhooks.create",
29788	//   "parameterOrder": [
29789	//     "parent"
29790	//   ],
29791	//   "parameters": {
29792	//     "parent": {
29793	//       "description": "Required. The agent to create a webhook for. Format: `projects//locations//agents/`.",
29794	//       "location": "path",
29795	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
29796	//       "required": true,
29797	//       "type": "string"
29798	//     }
29799	//   },
29800	//   "path": "v3beta1/{+parent}/webhooks",
29801	//   "request": {
29802	//     "$ref": "GoogleCloudDialogflowCxV3beta1Webhook"
29803	//   },
29804	//   "response": {
29805	//     "$ref": "GoogleCloudDialogflowCxV3beta1Webhook"
29806	//   },
29807	//   "scopes": [
29808	//     "https://www.googleapis.com/auth/cloud-platform",
29809	//     "https://www.googleapis.com/auth/dialogflow"
29810	//   ]
29811	// }
29812
29813}
29814
29815// method id "dialogflow.projects.locations.agents.webhooks.delete":
29816
29817type ProjectsLocationsAgentsWebhooksDeleteCall struct {
29818	s          *Service
29819	name       string
29820	urlParams_ gensupport.URLParams
29821	ctx_       context.Context
29822	header_    http.Header
29823}
29824
29825// Delete: Deletes the specified webhook.
29826func (r *ProjectsLocationsAgentsWebhooksService) Delete(name string) *ProjectsLocationsAgentsWebhooksDeleteCall {
29827	c := &ProjectsLocationsAgentsWebhooksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29828	c.name = name
29829	return c
29830}
29831
29832// Force sets the optional parameter "force": This field has no effect
29833// for webhook not being used. For webhooks that are used by
29834// pages/flows/transition route groups: * If `force` is set to false, an
29835// error will be returned with message indicating the referenced
29836// resources. * If `force` is set to true, Dialogflow will remove the
29837// webhook, as well as any references to the webhook (i.e. Webhook and
29838// tagin fulfillments that point to this webhook will be removed).
29839func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Force(force bool) *ProjectsLocationsAgentsWebhooksDeleteCall {
29840	c.urlParams_.Set("force", fmt.Sprint(force))
29841	return c
29842}
29843
29844// Fields allows partial responses to be retrieved. See
29845// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29846// for more information.
29847func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksDeleteCall {
29848	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29849	return c
29850}
29851
29852// Context sets the context to be used in this call's Do method. Any
29853// pending HTTP request will be aborted if the provided context is
29854// canceled.
29855func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksDeleteCall {
29856	c.ctx_ = ctx
29857	return c
29858}
29859
29860// Header returns an http.Header that can be modified by the caller to
29861// add HTTP headers to the request.
29862func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Header() http.Header {
29863	if c.header_ == nil {
29864		c.header_ = make(http.Header)
29865	}
29866	return c.header_
29867}
29868
29869func (c *ProjectsLocationsAgentsWebhooksDeleteCall) doRequest(alt string) (*http.Response, error) {
29870	reqHeaders := make(http.Header)
29871	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
29872	for k, v := range c.header_ {
29873		reqHeaders[k] = v
29874	}
29875	reqHeaders.Set("User-Agent", c.s.userAgent())
29876	var body io.Reader = nil
29877	c.urlParams_.Set("alt", alt)
29878	c.urlParams_.Set("prettyPrint", "false")
29879	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
29880	urls += "?" + c.urlParams_.Encode()
29881	req, err := http.NewRequest("DELETE", urls, body)
29882	if err != nil {
29883		return nil, err
29884	}
29885	req.Header = reqHeaders
29886	googleapi.Expand(req.URL, map[string]string{
29887		"name": c.name,
29888	})
29889	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29890}
29891
29892// Do executes the "dialogflow.projects.locations.agents.webhooks.delete" call.
29893// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29894// non-2xx status code is an error. Response headers are in either
29895// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29896// returned at all) in error.(*googleapi.Error).Header. Use
29897// googleapi.IsNotModified to check whether the returned error was
29898// because http.StatusNotModified was returned.
29899func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29900	gensupport.SetOptions(c.urlParams_, opts...)
29901	res, err := c.doRequest("json")
29902	if res != nil && res.StatusCode == http.StatusNotModified {
29903		if res.Body != nil {
29904			res.Body.Close()
29905		}
29906		return nil, &googleapi.Error{
29907			Code:   res.StatusCode,
29908			Header: res.Header,
29909		}
29910	}
29911	if err != nil {
29912		return nil, err
29913	}
29914	defer googleapi.CloseBody(res)
29915	if err := googleapi.CheckResponse(res); err != nil {
29916		return nil, err
29917	}
29918	ret := &GoogleProtobufEmpty{
29919		ServerResponse: googleapi.ServerResponse{
29920			Header:         res.Header,
29921			HTTPStatusCode: res.StatusCode,
29922		},
29923	}
29924	target := &ret
29925	if err := gensupport.DecodeResponse(target, res); err != nil {
29926		return nil, err
29927	}
29928	return ret, nil
29929	// {
29930	//   "description": "Deletes the specified webhook.",
29931	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/webhooks/{webhooksId}",
29932	//   "httpMethod": "DELETE",
29933	//   "id": "dialogflow.projects.locations.agents.webhooks.delete",
29934	//   "parameterOrder": [
29935	//     "name"
29936	//   ],
29937	//   "parameters": {
29938	//     "force": {
29939	//       "description": "This field has no effect for webhook not being used. For webhooks that are used by pages/flows/transition route groups: * If `force` is set to false, an error will be returned with message indicating the referenced resources. * If `force` is set to true, Dialogflow will remove the webhook, as well as any references to the webhook (i.e. Webhook and tagin fulfillments that point to this webhook will be removed).",
29940	//       "location": "query",
29941	//       "type": "boolean"
29942	//     },
29943	//     "name": {
29944	//       "description": "Required. The name of the webhook to delete. Format: `projects//locations//agents//webhooks/`.",
29945	//       "location": "path",
29946	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/webhooks/[^/]+$",
29947	//       "required": true,
29948	//       "type": "string"
29949	//     }
29950	//   },
29951	//   "path": "v3beta1/{+name}",
29952	//   "response": {
29953	//     "$ref": "GoogleProtobufEmpty"
29954	//   },
29955	//   "scopes": [
29956	//     "https://www.googleapis.com/auth/cloud-platform",
29957	//     "https://www.googleapis.com/auth/dialogflow"
29958	//   ]
29959	// }
29960
29961}
29962
29963// method id "dialogflow.projects.locations.agents.webhooks.get":
29964
29965type ProjectsLocationsAgentsWebhooksGetCall struct {
29966	s            *Service
29967	name         string
29968	urlParams_   gensupport.URLParams
29969	ifNoneMatch_ string
29970	ctx_         context.Context
29971	header_      http.Header
29972}
29973
29974// Get: Retrieves the specified webhook.
29975func (r *ProjectsLocationsAgentsWebhooksService) Get(name string) *ProjectsLocationsAgentsWebhooksGetCall {
29976	c := &ProjectsLocationsAgentsWebhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29977	c.name = name
29978	return c
29979}
29980
29981// Fields allows partial responses to be retrieved. See
29982// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29983// for more information.
29984func (c *ProjectsLocationsAgentsWebhooksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksGetCall {
29985	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29986	return c
29987}
29988
29989// IfNoneMatch sets the optional parameter which makes the operation
29990// fail if the object's ETag matches the given value. This is useful for
29991// getting updates only after the object has changed since the last
29992// request. Use googleapi.IsNotModified to check whether the response
29993// error from Do is the result of In-None-Match.
29994func (c *ProjectsLocationsAgentsWebhooksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksGetCall {
29995	c.ifNoneMatch_ = entityTag
29996	return c
29997}
29998
29999// Context sets the context to be used in this call's Do method. Any
30000// pending HTTP request will be aborted if the provided context is
30001// canceled.
30002func (c *ProjectsLocationsAgentsWebhooksGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksGetCall {
30003	c.ctx_ = ctx
30004	return c
30005}
30006
30007// Header returns an http.Header that can be modified by the caller to
30008// add HTTP headers to the request.
30009func (c *ProjectsLocationsAgentsWebhooksGetCall) Header() http.Header {
30010	if c.header_ == nil {
30011		c.header_ = make(http.Header)
30012	}
30013	return c.header_
30014}
30015
30016func (c *ProjectsLocationsAgentsWebhooksGetCall) doRequest(alt string) (*http.Response, error) {
30017	reqHeaders := make(http.Header)
30018	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30019	for k, v := range c.header_ {
30020		reqHeaders[k] = v
30021	}
30022	reqHeaders.Set("User-Agent", c.s.userAgent())
30023	if c.ifNoneMatch_ != "" {
30024		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30025	}
30026	var body io.Reader = nil
30027	c.urlParams_.Set("alt", alt)
30028	c.urlParams_.Set("prettyPrint", "false")
30029	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
30030	urls += "?" + c.urlParams_.Encode()
30031	req, err := http.NewRequest("GET", urls, body)
30032	if err != nil {
30033		return nil, err
30034	}
30035	req.Header = reqHeaders
30036	googleapi.Expand(req.URL, map[string]string{
30037		"name": c.name,
30038	})
30039	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30040}
30041
30042// Do executes the "dialogflow.projects.locations.agents.webhooks.get" call.
30043// Exactly one of *GoogleCloudDialogflowCxV3beta1Webhook or error will
30044// be non-nil. Any non-2xx status code is an error. Response headers are
30045// in either
30046// *GoogleCloudDialogflowCxV3beta1Webhook.ServerResponse.Header or (if a
30047// response was returned at all) in error.(*googleapi.Error).Header. Use
30048// googleapi.IsNotModified to check whether the returned error was
30049// because http.StatusNotModified was returned.
30050func (c *ProjectsLocationsAgentsWebhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
30051	gensupport.SetOptions(c.urlParams_, opts...)
30052	res, err := c.doRequest("json")
30053	if res != nil && res.StatusCode == http.StatusNotModified {
30054		if res.Body != nil {
30055			res.Body.Close()
30056		}
30057		return nil, &googleapi.Error{
30058			Code:   res.StatusCode,
30059			Header: res.Header,
30060		}
30061	}
30062	if err != nil {
30063		return nil, err
30064	}
30065	defer googleapi.CloseBody(res)
30066	if err := googleapi.CheckResponse(res); err != nil {
30067		return nil, err
30068	}
30069	ret := &GoogleCloudDialogflowCxV3beta1Webhook{
30070		ServerResponse: googleapi.ServerResponse{
30071			Header:         res.Header,
30072			HTTPStatusCode: res.StatusCode,
30073		},
30074	}
30075	target := &ret
30076	if err := gensupport.DecodeResponse(target, res); err != nil {
30077		return nil, err
30078	}
30079	return ret, nil
30080	// {
30081	//   "description": "Retrieves the specified webhook.",
30082	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/webhooks/{webhooksId}",
30083	//   "httpMethod": "GET",
30084	//   "id": "dialogflow.projects.locations.agents.webhooks.get",
30085	//   "parameterOrder": [
30086	//     "name"
30087	//   ],
30088	//   "parameters": {
30089	//     "name": {
30090	//       "description": "Required. The name of the webhook. Format: `projects//locations//agents//webhooks/`.",
30091	//       "location": "path",
30092	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/webhooks/[^/]+$",
30093	//       "required": true,
30094	//       "type": "string"
30095	//     }
30096	//   },
30097	//   "path": "v3beta1/{+name}",
30098	//   "response": {
30099	//     "$ref": "GoogleCloudDialogflowCxV3beta1Webhook"
30100	//   },
30101	//   "scopes": [
30102	//     "https://www.googleapis.com/auth/cloud-platform",
30103	//     "https://www.googleapis.com/auth/dialogflow"
30104	//   ]
30105	// }
30106
30107}
30108
30109// method id "dialogflow.projects.locations.agents.webhooks.list":
30110
30111type ProjectsLocationsAgentsWebhooksListCall struct {
30112	s            *Service
30113	parent       string
30114	urlParams_   gensupport.URLParams
30115	ifNoneMatch_ string
30116	ctx_         context.Context
30117	header_      http.Header
30118}
30119
30120// List: Returns the list of all webhooks in the specified agent.
30121func (r *ProjectsLocationsAgentsWebhooksService) List(parent string) *ProjectsLocationsAgentsWebhooksListCall {
30122	c := &ProjectsLocationsAgentsWebhooksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30123	c.parent = parent
30124	return c
30125}
30126
30127// PageSize sets the optional parameter "pageSize": The maximum number
30128// of items to return in a single page. By default 100 and at most 1000.
30129func (c *ProjectsLocationsAgentsWebhooksListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsWebhooksListCall {
30130	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30131	return c
30132}
30133
30134// PageToken sets the optional parameter "pageToken": The
30135// next_page_token value returned from a previous list request.
30136func (c *ProjectsLocationsAgentsWebhooksListCall) PageToken(pageToken string) *ProjectsLocationsAgentsWebhooksListCall {
30137	c.urlParams_.Set("pageToken", pageToken)
30138	return c
30139}
30140
30141// Fields allows partial responses to be retrieved. See
30142// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30143// for more information.
30144func (c *ProjectsLocationsAgentsWebhooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksListCall {
30145	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30146	return c
30147}
30148
30149// IfNoneMatch sets the optional parameter which makes the operation
30150// fail if the object's ETag matches the given value. This is useful for
30151// getting updates only after the object has changed since the last
30152// request. Use googleapi.IsNotModified to check whether the response
30153// error from Do is the result of In-None-Match.
30154func (c *ProjectsLocationsAgentsWebhooksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksListCall {
30155	c.ifNoneMatch_ = entityTag
30156	return c
30157}
30158
30159// Context sets the context to be used in this call's Do method. Any
30160// pending HTTP request will be aborted if the provided context is
30161// canceled.
30162func (c *ProjectsLocationsAgentsWebhooksListCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksListCall {
30163	c.ctx_ = ctx
30164	return c
30165}
30166
30167// Header returns an http.Header that can be modified by the caller to
30168// add HTTP headers to the request.
30169func (c *ProjectsLocationsAgentsWebhooksListCall) Header() http.Header {
30170	if c.header_ == nil {
30171		c.header_ = make(http.Header)
30172	}
30173	return c.header_
30174}
30175
30176func (c *ProjectsLocationsAgentsWebhooksListCall) doRequest(alt string) (*http.Response, error) {
30177	reqHeaders := make(http.Header)
30178	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30179	for k, v := range c.header_ {
30180		reqHeaders[k] = v
30181	}
30182	reqHeaders.Set("User-Agent", c.s.userAgent())
30183	if c.ifNoneMatch_ != "" {
30184		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30185	}
30186	var body io.Reader = nil
30187	c.urlParams_.Set("alt", alt)
30188	c.urlParams_.Set("prettyPrint", "false")
30189	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/webhooks")
30190	urls += "?" + c.urlParams_.Encode()
30191	req, err := http.NewRequest("GET", urls, body)
30192	if err != nil {
30193		return nil, err
30194	}
30195	req.Header = reqHeaders
30196	googleapi.Expand(req.URL, map[string]string{
30197		"parent": c.parent,
30198	})
30199	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30200}
30201
30202// Do executes the "dialogflow.projects.locations.agents.webhooks.list" call.
30203// Exactly one of *GoogleCloudDialogflowCxV3beta1ListWebhooksResponse or
30204// error will be non-nil. Any non-2xx status code is an error. Response
30205// headers are in either
30206// *GoogleCloudDialogflowCxV3beta1ListWebhooksResponse.ServerResponse.Hea
30207// der or (if a response was returned at all) in
30208// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30209// whether the returned error was because http.StatusNotModified was
30210// returned.
30211func (c *ProjectsLocationsAgentsWebhooksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListWebhooksResponse, error) {
30212	gensupport.SetOptions(c.urlParams_, opts...)
30213	res, err := c.doRequest("json")
30214	if res != nil && res.StatusCode == http.StatusNotModified {
30215		if res.Body != nil {
30216			res.Body.Close()
30217		}
30218		return nil, &googleapi.Error{
30219			Code:   res.StatusCode,
30220			Header: res.Header,
30221		}
30222	}
30223	if err != nil {
30224		return nil, err
30225	}
30226	defer googleapi.CloseBody(res)
30227	if err := googleapi.CheckResponse(res); err != nil {
30228		return nil, err
30229	}
30230	ret := &GoogleCloudDialogflowCxV3beta1ListWebhooksResponse{
30231		ServerResponse: googleapi.ServerResponse{
30232			Header:         res.Header,
30233			HTTPStatusCode: res.StatusCode,
30234		},
30235	}
30236	target := &ret
30237	if err := gensupport.DecodeResponse(target, res); err != nil {
30238		return nil, err
30239	}
30240	return ret, nil
30241	// {
30242	//   "description": "Returns the list of all webhooks in the specified agent.",
30243	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/webhooks",
30244	//   "httpMethod": "GET",
30245	//   "id": "dialogflow.projects.locations.agents.webhooks.list",
30246	//   "parameterOrder": [
30247	//     "parent"
30248	//   ],
30249	//   "parameters": {
30250	//     "pageSize": {
30251	//       "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.",
30252	//       "format": "int32",
30253	//       "location": "query",
30254	//       "type": "integer"
30255	//     },
30256	//     "pageToken": {
30257	//       "description": "The next_page_token value returned from a previous list request.",
30258	//       "location": "query",
30259	//       "type": "string"
30260	//     },
30261	//     "parent": {
30262	//       "description": "Required. The agent to list all webhooks for. Format: `projects//locations//agents/`.",
30263	//       "location": "path",
30264	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$",
30265	//       "required": true,
30266	//       "type": "string"
30267	//     }
30268	//   },
30269	//   "path": "v3beta1/{+parent}/webhooks",
30270	//   "response": {
30271	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListWebhooksResponse"
30272	//   },
30273	//   "scopes": [
30274	//     "https://www.googleapis.com/auth/cloud-platform",
30275	//     "https://www.googleapis.com/auth/dialogflow"
30276	//   ]
30277	// }
30278
30279}
30280
30281// Pages invokes f for each page of results.
30282// A non-nil error returned from f will halt the iteration.
30283// The provided context supersedes any context provided to the Context method.
30284func (c *ProjectsLocationsAgentsWebhooksListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) error) error {
30285	c.ctx_ = ctx
30286	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30287	for {
30288		x, err := c.Do()
30289		if err != nil {
30290			return err
30291		}
30292		if err := f(x); err != nil {
30293			return err
30294		}
30295		if x.NextPageToken == "" {
30296			return nil
30297		}
30298		c.PageToken(x.NextPageToken)
30299	}
30300}
30301
30302// method id "dialogflow.projects.locations.agents.webhooks.patch":
30303
30304type ProjectsLocationsAgentsWebhooksPatchCall struct {
30305	s                                     *Service
30306	nameid                                string
30307	googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook
30308	urlParams_                            gensupport.URLParams
30309	ctx_                                  context.Context
30310	header_                               http.Header
30311}
30312
30313// Patch: Updates the specified webhook.
30314func (r *ProjectsLocationsAgentsWebhooksService) Patch(nameid string, googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook) *ProjectsLocationsAgentsWebhooksPatchCall {
30315	c := &ProjectsLocationsAgentsWebhooksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30316	c.nameid = nameid
30317	c.googleclouddialogflowcxv3beta1webhook = googleclouddialogflowcxv3beta1webhook
30318	return c
30319}
30320
30321// UpdateMask sets the optional parameter "updateMask": The mask to
30322// control which fields get updated. If the mask is not present, all
30323// fields will be updated.
30324func (c *ProjectsLocationsAgentsWebhooksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsWebhooksPatchCall {
30325	c.urlParams_.Set("updateMask", updateMask)
30326	return c
30327}
30328
30329// Fields allows partial responses to be retrieved. See
30330// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30331// for more information.
30332func (c *ProjectsLocationsAgentsWebhooksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksPatchCall {
30333	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30334	return c
30335}
30336
30337// Context sets the context to be used in this call's Do method. Any
30338// pending HTTP request will be aborted if the provided context is
30339// canceled.
30340func (c *ProjectsLocationsAgentsWebhooksPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksPatchCall {
30341	c.ctx_ = ctx
30342	return c
30343}
30344
30345// Header returns an http.Header that can be modified by the caller to
30346// add HTTP headers to the request.
30347func (c *ProjectsLocationsAgentsWebhooksPatchCall) Header() http.Header {
30348	if c.header_ == nil {
30349		c.header_ = make(http.Header)
30350	}
30351	return c.header_
30352}
30353
30354func (c *ProjectsLocationsAgentsWebhooksPatchCall) doRequest(alt string) (*http.Response, error) {
30355	reqHeaders := make(http.Header)
30356	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30357	for k, v := range c.header_ {
30358		reqHeaders[k] = v
30359	}
30360	reqHeaders.Set("User-Agent", c.s.userAgent())
30361	var body io.Reader = nil
30362	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1webhook)
30363	if err != nil {
30364		return nil, err
30365	}
30366	reqHeaders.Set("Content-Type", "application/json")
30367	c.urlParams_.Set("alt", alt)
30368	c.urlParams_.Set("prettyPrint", "false")
30369	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
30370	urls += "?" + c.urlParams_.Encode()
30371	req, err := http.NewRequest("PATCH", urls, body)
30372	if err != nil {
30373		return nil, err
30374	}
30375	req.Header = reqHeaders
30376	googleapi.Expand(req.URL, map[string]string{
30377		"name": c.nameid,
30378	})
30379	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30380}
30381
30382// Do executes the "dialogflow.projects.locations.agents.webhooks.patch" call.
30383// Exactly one of *GoogleCloudDialogflowCxV3beta1Webhook or error will
30384// be non-nil. Any non-2xx status code is an error. Response headers are
30385// in either
30386// *GoogleCloudDialogflowCxV3beta1Webhook.ServerResponse.Header or (if a
30387// response was returned at all) in error.(*googleapi.Error).Header. Use
30388// googleapi.IsNotModified to check whether the returned error was
30389// because http.StatusNotModified was returned.
30390func (c *ProjectsLocationsAgentsWebhooksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
30391	gensupport.SetOptions(c.urlParams_, opts...)
30392	res, err := c.doRequest("json")
30393	if res != nil && res.StatusCode == http.StatusNotModified {
30394		if res.Body != nil {
30395			res.Body.Close()
30396		}
30397		return nil, &googleapi.Error{
30398			Code:   res.StatusCode,
30399			Header: res.Header,
30400		}
30401	}
30402	if err != nil {
30403		return nil, err
30404	}
30405	defer googleapi.CloseBody(res)
30406	if err := googleapi.CheckResponse(res); err != nil {
30407		return nil, err
30408	}
30409	ret := &GoogleCloudDialogflowCxV3beta1Webhook{
30410		ServerResponse: googleapi.ServerResponse{
30411			Header:         res.Header,
30412			HTTPStatusCode: res.StatusCode,
30413		},
30414	}
30415	target := &ret
30416	if err := gensupport.DecodeResponse(target, res); err != nil {
30417		return nil, err
30418	}
30419	return ret, nil
30420	// {
30421	//   "description": "Updates the specified webhook.",
30422	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/webhooks/{webhooksId}",
30423	//   "httpMethod": "PATCH",
30424	//   "id": "dialogflow.projects.locations.agents.webhooks.patch",
30425	//   "parameterOrder": [
30426	//     "name"
30427	//   ],
30428	//   "parameters": {
30429	//     "name": {
30430	//       "description": "The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`.",
30431	//       "location": "path",
30432	//       "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/webhooks/[^/]+$",
30433	//       "required": true,
30434	//       "type": "string"
30435	//     },
30436	//     "updateMask": {
30437	//       "description": "The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
30438	//       "format": "google-fieldmask",
30439	//       "location": "query",
30440	//       "type": "string"
30441	//     }
30442	//   },
30443	//   "path": "v3beta1/{+name}",
30444	//   "request": {
30445	//     "$ref": "GoogleCloudDialogflowCxV3beta1Webhook"
30446	//   },
30447	//   "response": {
30448	//     "$ref": "GoogleCloudDialogflowCxV3beta1Webhook"
30449	//   },
30450	//   "scopes": [
30451	//     "https://www.googleapis.com/auth/cloud-platform",
30452	//     "https://www.googleapis.com/auth/dialogflow"
30453	//   ]
30454	// }
30455
30456}
30457
30458// method id "dialogflow.projects.locations.operations.cancel":
30459
30460type ProjectsLocationsOperationsCancelCall struct {
30461	s          *Service
30462	name       string
30463	urlParams_ gensupport.URLParams
30464	ctx_       context.Context
30465	header_    http.Header
30466}
30467
30468// Cancel: Starts asynchronous cancellation on a long-running operation.
30469// The server makes a best effort to cancel the operation, but success
30470// is not guaranteed. If the server doesn't support this method, it
30471// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
30472// Operations.GetOperation or other methods to check whether the
30473// cancellation succeeded or whether the operation completed despite
30474// cancellation. On successful cancellation, the operation is not
30475// deleted; instead, it becomes an operation with an Operation.error
30476// value with a google.rpc.Status.code of 1, corresponding to
30477// `Code.CANCELLED`.
30478func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
30479	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30480	c.name = name
30481	return c
30482}
30483
30484// Fields allows partial responses to be retrieved. See
30485// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30486// for more information.
30487func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
30488	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30489	return c
30490}
30491
30492// Context sets the context to be used in this call's Do method. Any
30493// pending HTTP request will be aborted if the provided context is
30494// canceled.
30495func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
30496	c.ctx_ = ctx
30497	return c
30498}
30499
30500// Header returns an http.Header that can be modified by the caller to
30501// add HTTP headers to the request.
30502func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
30503	if c.header_ == nil {
30504		c.header_ = make(http.Header)
30505	}
30506	return c.header_
30507}
30508
30509func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
30510	reqHeaders := make(http.Header)
30511	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30512	for k, v := range c.header_ {
30513		reqHeaders[k] = v
30514	}
30515	reqHeaders.Set("User-Agent", c.s.userAgent())
30516	var body io.Reader = nil
30517	c.urlParams_.Set("alt", alt)
30518	c.urlParams_.Set("prettyPrint", "false")
30519	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:cancel")
30520	urls += "?" + c.urlParams_.Encode()
30521	req, err := http.NewRequest("POST", urls, body)
30522	if err != nil {
30523		return nil, err
30524	}
30525	req.Header = reqHeaders
30526	googleapi.Expand(req.URL, map[string]string{
30527		"name": c.name,
30528	})
30529	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30530}
30531
30532// Do executes the "dialogflow.projects.locations.operations.cancel" call.
30533// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
30534// non-2xx status code is an error. Response headers are in either
30535// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
30536// returned at all) in error.(*googleapi.Error).Header. Use
30537// googleapi.IsNotModified to check whether the returned error was
30538// because http.StatusNotModified was returned.
30539func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30540	gensupport.SetOptions(c.urlParams_, opts...)
30541	res, err := c.doRequest("json")
30542	if res != nil && res.StatusCode == http.StatusNotModified {
30543		if res.Body != nil {
30544			res.Body.Close()
30545		}
30546		return nil, &googleapi.Error{
30547			Code:   res.StatusCode,
30548			Header: res.Header,
30549		}
30550	}
30551	if err != nil {
30552		return nil, err
30553	}
30554	defer googleapi.CloseBody(res)
30555	if err := googleapi.CheckResponse(res); err != nil {
30556		return nil, err
30557	}
30558	ret := &GoogleProtobufEmpty{
30559		ServerResponse: googleapi.ServerResponse{
30560			Header:         res.Header,
30561			HTTPStatusCode: res.StatusCode,
30562		},
30563	}
30564	target := &ret
30565	if err := gensupport.DecodeResponse(target, res); err != nil {
30566		return nil, err
30567	}
30568	return ret, nil
30569	// {
30570	//   "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`.",
30571	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
30572	//   "httpMethod": "POST",
30573	//   "id": "dialogflow.projects.locations.operations.cancel",
30574	//   "parameterOrder": [
30575	//     "name"
30576	//   ],
30577	//   "parameters": {
30578	//     "name": {
30579	//       "description": "The name of the operation resource to be cancelled.",
30580	//       "location": "path",
30581	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
30582	//       "required": true,
30583	//       "type": "string"
30584	//     }
30585	//   },
30586	//   "path": "v3beta1/{+name}:cancel",
30587	//   "response": {
30588	//     "$ref": "GoogleProtobufEmpty"
30589	//   },
30590	//   "scopes": [
30591	//     "https://www.googleapis.com/auth/cloud-platform",
30592	//     "https://www.googleapis.com/auth/dialogflow"
30593	//   ]
30594	// }
30595
30596}
30597
30598// method id "dialogflow.projects.locations.operations.get":
30599
30600type ProjectsLocationsOperationsGetCall struct {
30601	s            *Service
30602	name         string
30603	urlParams_   gensupport.URLParams
30604	ifNoneMatch_ string
30605	ctx_         context.Context
30606	header_      http.Header
30607}
30608
30609// Get: Gets the latest state of a long-running operation. Clients can
30610// use this method to poll the operation result at intervals as
30611// recommended by the API service.
30612func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
30613	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30614	c.name = name
30615	return c
30616}
30617
30618// Fields allows partial responses to be retrieved. See
30619// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30620// for more information.
30621func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
30622	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30623	return c
30624}
30625
30626// IfNoneMatch sets the optional parameter which makes the operation
30627// fail if the object's ETag matches the given value. This is useful for
30628// getting updates only after the object has changed since the last
30629// request. Use googleapi.IsNotModified to check whether the response
30630// error from Do is the result of In-None-Match.
30631func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
30632	c.ifNoneMatch_ = entityTag
30633	return c
30634}
30635
30636// Context sets the context to be used in this call's Do method. Any
30637// pending HTTP request will be aborted if the provided context is
30638// canceled.
30639func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
30640	c.ctx_ = ctx
30641	return c
30642}
30643
30644// Header returns an http.Header that can be modified by the caller to
30645// add HTTP headers to the request.
30646func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
30647	if c.header_ == nil {
30648		c.header_ = make(http.Header)
30649	}
30650	return c.header_
30651}
30652
30653func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
30654	reqHeaders := make(http.Header)
30655	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30656	for k, v := range c.header_ {
30657		reqHeaders[k] = v
30658	}
30659	reqHeaders.Set("User-Agent", c.s.userAgent())
30660	if c.ifNoneMatch_ != "" {
30661		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30662	}
30663	var body io.Reader = nil
30664	c.urlParams_.Set("alt", alt)
30665	c.urlParams_.Set("prettyPrint", "false")
30666	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
30667	urls += "?" + c.urlParams_.Encode()
30668	req, err := http.NewRequest("GET", urls, body)
30669	if err != nil {
30670		return nil, err
30671	}
30672	req.Header = reqHeaders
30673	googleapi.Expand(req.URL, map[string]string{
30674		"name": c.name,
30675	})
30676	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30677}
30678
30679// Do executes the "dialogflow.projects.locations.operations.get" call.
30680// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
30681// Any non-2xx status code is an error. Response headers are in either
30682// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
30683// was returned at all) in error.(*googleapi.Error).Header. Use
30684// googleapi.IsNotModified to check whether the returned error was
30685// because http.StatusNotModified was returned.
30686func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30687	gensupport.SetOptions(c.urlParams_, opts...)
30688	res, err := c.doRequest("json")
30689	if res != nil && res.StatusCode == http.StatusNotModified {
30690		if res.Body != nil {
30691			res.Body.Close()
30692		}
30693		return nil, &googleapi.Error{
30694			Code:   res.StatusCode,
30695			Header: res.Header,
30696		}
30697	}
30698	if err != nil {
30699		return nil, err
30700	}
30701	defer googleapi.CloseBody(res)
30702	if err := googleapi.CheckResponse(res); err != nil {
30703		return nil, err
30704	}
30705	ret := &GoogleLongrunningOperation{
30706		ServerResponse: googleapi.ServerResponse{
30707			Header:         res.Header,
30708			HTTPStatusCode: res.StatusCode,
30709		},
30710	}
30711	target := &ret
30712	if err := gensupport.DecodeResponse(target, res); err != nil {
30713		return nil, err
30714	}
30715	return ret, nil
30716	// {
30717	//   "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.",
30718	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
30719	//   "httpMethod": "GET",
30720	//   "id": "dialogflow.projects.locations.operations.get",
30721	//   "parameterOrder": [
30722	//     "name"
30723	//   ],
30724	//   "parameters": {
30725	//     "name": {
30726	//       "description": "The name of the operation resource.",
30727	//       "location": "path",
30728	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
30729	//       "required": true,
30730	//       "type": "string"
30731	//     }
30732	//   },
30733	//   "path": "v3beta1/{+name}",
30734	//   "response": {
30735	//     "$ref": "GoogleLongrunningOperation"
30736	//   },
30737	//   "scopes": [
30738	//     "https://www.googleapis.com/auth/cloud-platform",
30739	//     "https://www.googleapis.com/auth/dialogflow"
30740	//   ]
30741	// }
30742
30743}
30744
30745// method id "dialogflow.projects.locations.operations.list":
30746
30747type ProjectsLocationsOperationsListCall struct {
30748	s            *Service
30749	name         string
30750	urlParams_   gensupport.URLParams
30751	ifNoneMatch_ string
30752	ctx_         context.Context
30753	header_      http.Header
30754}
30755
30756// List: Lists operations that match the specified filter in the
30757// request. If the server doesn't support this method, it returns
30758// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
30759// override the binding to use different resource name schemes, such as
30760// `users/*/operations`. To override the binding, API services can add a
30761// binding such as "/v1/{name=users/*}/operations" to their service
30762// configuration. For backwards compatibility, the default name includes
30763// the operations collection id, however overriding users must ensure
30764// the name binding is the parent resource, without the operations
30765// collection id.
30766func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
30767	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30768	c.name = name
30769	return c
30770}
30771
30772// Filter sets the optional parameter "filter": The standard list
30773// filter.
30774func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
30775	c.urlParams_.Set("filter", filter)
30776	return c
30777}
30778
30779// PageSize sets the optional parameter "pageSize": The standard list
30780// page size.
30781func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
30782	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30783	return c
30784}
30785
30786// PageToken sets the optional parameter "pageToken": The standard list
30787// page token.
30788func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
30789	c.urlParams_.Set("pageToken", pageToken)
30790	return c
30791}
30792
30793// Fields allows partial responses to be retrieved. See
30794// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30795// for more information.
30796func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
30797	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30798	return c
30799}
30800
30801// IfNoneMatch sets the optional parameter which makes the operation
30802// fail if the object's ETag matches the given value. This is useful for
30803// getting updates only after the object has changed since the last
30804// request. Use googleapi.IsNotModified to check whether the response
30805// error from Do is the result of In-None-Match.
30806func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
30807	c.ifNoneMatch_ = entityTag
30808	return c
30809}
30810
30811// Context sets the context to be used in this call's Do method. Any
30812// pending HTTP request will be aborted if the provided context is
30813// canceled.
30814func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
30815	c.ctx_ = ctx
30816	return c
30817}
30818
30819// Header returns an http.Header that can be modified by the caller to
30820// add HTTP headers to the request.
30821func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
30822	if c.header_ == nil {
30823		c.header_ = make(http.Header)
30824	}
30825	return c.header_
30826}
30827
30828func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
30829	reqHeaders := make(http.Header)
30830	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
30831	for k, v := range c.header_ {
30832		reqHeaders[k] = v
30833	}
30834	reqHeaders.Set("User-Agent", c.s.userAgent())
30835	if c.ifNoneMatch_ != "" {
30836		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30837	}
30838	var body io.Reader = nil
30839	c.urlParams_.Set("alt", alt)
30840	c.urlParams_.Set("prettyPrint", "false")
30841	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/operations")
30842	urls += "?" + c.urlParams_.Encode()
30843	req, err := http.NewRequest("GET", urls, body)
30844	if err != nil {
30845		return nil, err
30846	}
30847	req.Header = reqHeaders
30848	googleapi.Expand(req.URL, map[string]string{
30849		"name": c.name,
30850	})
30851	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30852}
30853
30854// Do executes the "dialogflow.projects.locations.operations.list" call.
30855// Exactly one of *GoogleLongrunningListOperationsResponse or error will
30856// be non-nil. Any non-2xx status code is an error. Response headers are
30857// in either
30858// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
30859// a response was returned at all) in error.(*googleapi.Error).Header.
30860// Use googleapi.IsNotModified to check whether the returned error was
30861// because http.StatusNotModified was returned.
30862func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
30863	gensupport.SetOptions(c.urlParams_, opts...)
30864	res, err := c.doRequest("json")
30865	if res != nil && res.StatusCode == http.StatusNotModified {
30866		if res.Body != nil {
30867			res.Body.Close()
30868		}
30869		return nil, &googleapi.Error{
30870			Code:   res.StatusCode,
30871			Header: res.Header,
30872		}
30873	}
30874	if err != nil {
30875		return nil, err
30876	}
30877	defer googleapi.CloseBody(res)
30878	if err := googleapi.CheckResponse(res); err != nil {
30879		return nil, err
30880	}
30881	ret := &GoogleLongrunningListOperationsResponse{
30882		ServerResponse: googleapi.ServerResponse{
30883			Header:         res.Header,
30884			HTTPStatusCode: res.StatusCode,
30885		},
30886	}
30887	target := &ret
30888	if err := gensupport.DecodeResponse(target, res); err != nil {
30889		return nil, err
30890	}
30891	return ret, nil
30892	// {
30893	//   "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.",
30894	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations",
30895	//   "httpMethod": "GET",
30896	//   "id": "dialogflow.projects.locations.operations.list",
30897	//   "parameterOrder": [
30898	//     "name"
30899	//   ],
30900	//   "parameters": {
30901	//     "filter": {
30902	//       "description": "The standard list filter.",
30903	//       "location": "query",
30904	//       "type": "string"
30905	//     },
30906	//     "name": {
30907	//       "description": "The name of the operation's parent resource.",
30908	//       "location": "path",
30909	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
30910	//       "required": true,
30911	//       "type": "string"
30912	//     },
30913	//     "pageSize": {
30914	//       "description": "The standard list page size.",
30915	//       "format": "int32",
30916	//       "location": "query",
30917	//       "type": "integer"
30918	//     },
30919	//     "pageToken": {
30920	//       "description": "The standard list page token.",
30921	//       "location": "query",
30922	//       "type": "string"
30923	//     }
30924	//   },
30925	//   "path": "v3beta1/{+name}/operations",
30926	//   "response": {
30927	//     "$ref": "GoogleLongrunningListOperationsResponse"
30928	//   },
30929	//   "scopes": [
30930	//     "https://www.googleapis.com/auth/cloud-platform",
30931	//     "https://www.googleapis.com/auth/dialogflow"
30932	//   ]
30933	// }
30934
30935}
30936
30937// Pages invokes f for each page of results.
30938// A non-nil error returned from f will halt the iteration.
30939// The provided context supersedes any context provided to the Context method.
30940func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
30941	c.ctx_ = ctx
30942	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30943	for {
30944		x, err := c.Do()
30945		if err != nil {
30946			return err
30947		}
30948		if err := f(x); err != nil {
30949			return err
30950		}
30951		if x.NextPageToken == "" {
30952			return nil
30953		}
30954		c.PageToken(x.NextPageToken)
30955	}
30956}
30957
30958// method id "dialogflow.projects.locations.securitySettings.create":
30959
30960type ProjectsLocationsSecuritySettingsCreateCall struct {
30961	s                                              *Service
30962	parent                                         string
30963	googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings
30964	urlParams_                                     gensupport.URLParams
30965	ctx_                                           context.Context
30966	header_                                        http.Header
30967}
30968
30969// Create: Create security settings in the specified location.
30970func (r *ProjectsLocationsSecuritySettingsService) Create(parent string, googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings) *ProjectsLocationsSecuritySettingsCreateCall {
30971	c := &ProjectsLocationsSecuritySettingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30972	c.parent = parent
30973	c.googleclouddialogflowcxv3beta1securitysettings = googleclouddialogflowcxv3beta1securitysettings
30974	return c
30975}
30976
30977// Fields allows partial responses to be retrieved. See
30978// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30979// for more information.
30980func (c *ProjectsLocationsSecuritySettingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsCreateCall {
30981	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30982	return c
30983}
30984
30985// Context sets the context to be used in this call's Do method. Any
30986// pending HTTP request will be aborted if the provided context is
30987// canceled.
30988func (c *ProjectsLocationsSecuritySettingsCreateCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsCreateCall {
30989	c.ctx_ = ctx
30990	return c
30991}
30992
30993// Header returns an http.Header that can be modified by the caller to
30994// add HTTP headers to the request.
30995func (c *ProjectsLocationsSecuritySettingsCreateCall) Header() http.Header {
30996	if c.header_ == nil {
30997		c.header_ = make(http.Header)
30998	}
30999	return c.header_
31000}
31001
31002func (c *ProjectsLocationsSecuritySettingsCreateCall) doRequest(alt string) (*http.Response, error) {
31003	reqHeaders := make(http.Header)
31004	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31005	for k, v := range c.header_ {
31006		reqHeaders[k] = v
31007	}
31008	reqHeaders.Set("User-Agent", c.s.userAgent())
31009	var body io.Reader = nil
31010	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1securitysettings)
31011	if err != nil {
31012		return nil, err
31013	}
31014	reqHeaders.Set("Content-Type", "application/json")
31015	c.urlParams_.Set("alt", alt)
31016	c.urlParams_.Set("prettyPrint", "false")
31017	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/securitySettings")
31018	urls += "?" + c.urlParams_.Encode()
31019	req, err := http.NewRequest("POST", urls, body)
31020	if err != nil {
31021		return nil, err
31022	}
31023	req.Header = reqHeaders
31024	googleapi.Expand(req.URL, map[string]string{
31025		"parent": c.parent,
31026	})
31027	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31028}
31029
31030// Do executes the "dialogflow.projects.locations.securitySettings.create" call.
31031// Exactly one of *GoogleCloudDialogflowCxV3beta1SecuritySettings or
31032// error will be non-nil. Any non-2xx status code is an error. Response
31033// headers are in either
31034// *GoogleCloudDialogflowCxV3beta1SecuritySettings.ServerResponse.Header
31035// or (if a response was returned at all) in
31036// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31037// whether the returned error was because http.StatusNotModified was
31038// returned.
31039func (c *ProjectsLocationsSecuritySettingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
31040	gensupport.SetOptions(c.urlParams_, opts...)
31041	res, err := c.doRequest("json")
31042	if res != nil && res.StatusCode == http.StatusNotModified {
31043		if res.Body != nil {
31044			res.Body.Close()
31045		}
31046		return nil, &googleapi.Error{
31047			Code:   res.StatusCode,
31048			Header: res.Header,
31049		}
31050	}
31051	if err != nil {
31052		return nil, err
31053	}
31054	defer googleapi.CloseBody(res)
31055	if err := googleapi.CheckResponse(res); err != nil {
31056		return nil, err
31057	}
31058	ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
31059		ServerResponse: googleapi.ServerResponse{
31060			Header:         res.Header,
31061			HTTPStatusCode: res.StatusCode,
31062		},
31063	}
31064	target := &ret
31065	if err := gensupport.DecodeResponse(target, res); err != nil {
31066		return nil, err
31067	}
31068	return ret, nil
31069	// {
31070	//   "description": "Create security settings in the specified location.",
31071	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/securitySettings",
31072	//   "httpMethod": "POST",
31073	//   "id": "dialogflow.projects.locations.securitySettings.create",
31074	//   "parameterOrder": [
31075	//     "parent"
31076	//   ],
31077	//   "parameters": {
31078	//     "parent": {
31079	//       "description": "Required. The location to create an SecuritySettings for. Format: `projects//locations/`.",
31080	//       "location": "path",
31081	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
31082	//       "required": true,
31083	//       "type": "string"
31084	//     }
31085	//   },
31086	//   "path": "v3beta1/{+parent}/securitySettings",
31087	//   "request": {
31088	//     "$ref": "GoogleCloudDialogflowCxV3beta1SecuritySettings"
31089	//   },
31090	//   "response": {
31091	//     "$ref": "GoogleCloudDialogflowCxV3beta1SecuritySettings"
31092	//   },
31093	//   "scopes": [
31094	//     "https://www.googleapis.com/auth/cloud-platform",
31095	//     "https://www.googleapis.com/auth/dialogflow"
31096	//   ]
31097	// }
31098
31099}
31100
31101// method id "dialogflow.projects.locations.securitySettings.delete":
31102
31103type ProjectsLocationsSecuritySettingsDeleteCall struct {
31104	s          *Service
31105	name       string
31106	urlParams_ gensupport.URLParams
31107	ctx_       context.Context
31108	header_    http.Header
31109}
31110
31111// Delete: Deletes the specified SecuritySettings.
31112func (r *ProjectsLocationsSecuritySettingsService) Delete(name string) *ProjectsLocationsSecuritySettingsDeleteCall {
31113	c := &ProjectsLocationsSecuritySettingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31114	c.name = name
31115	return c
31116}
31117
31118// Fields allows partial responses to be retrieved. See
31119// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31120// for more information.
31121func (c *ProjectsLocationsSecuritySettingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsDeleteCall {
31122	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31123	return c
31124}
31125
31126// Context sets the context to be used in this call's Do method. Any
31127// pending HTTP request will be aborted if the provided context is
31128// canceled.
31129func (c *ProjectsLocationsSecuritySettingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsDeleteCall {
31130	c.ctx_ = ctx
31131	return c
31132}
31133
31134// Header returns an http.Header that can be modified by the caller to
31135// add HTTP headers to the request.
31136func (c *ProjectsLocationsSecuritySettingsDeleteCall) Header() http.Header {
31137	if c.header_ == nil {
31138		c.header_ = make(http.Header)
31139	}
31140	return c.header_
31141}
31142
31143func (c *ProjectsLocationsSecuritySettingsDeleteCall) doRequest(alt string) (*http.Response, error) {
31144	reqHeaders := make(http.Header)
31145	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31146	for k, v := range c.header_ {
31147		reqHeaders[k] = v
31148	}
31149	reqHeaders.Set("User-Agent", c.s.userAgent())
31150	var body io.Reader = nil
31151	c.urlParams_.Set("alt", alt)
31152	c.urlParams_.Set("prettyPrint", "false")
31153	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
31154	urls += "?" + c.urlParams_.Encode()
31155	req, err := http.NewRequest("DELETE", urls, body)
31156	if err != nil {
31157		return nil, err
31158	}
31159	req.Header = reqHeaders
31160	googleapi.Expand(req.URL, map[string]string{
31161		"name": c.name,
31162	})
31163	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31164}
31165
31166// Do executes the "dialogflow.projects.locations.securitySettings.delete" call.
31167// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
31168// non-2xx status code is an error. Response headers are in either
31169// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
31170// returned at all) in error.(*googleapi.Error).Header. Use
31171// googleapi.IsNotModified to check whether the returned error was
31172// because http.StatusNotModified was returned.
31173func (c *ProjectsLocationsSecuritySettingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31174	gensupport.SetOptions(c.urlParams_, opts...)
31175	res, err := c.doRequest("json")
31176	if res != nil && res.StatusCode == http.StatusNotModified {
31177		if res.Body != nil {
31178			res.Body.Close()
31179		}
31180		return nil, &googleapi.Error{
31181			Code:   res.StatusCode,
31182			Header: res.Header,
31183		}
31184	}
31185	if err != nil {
31186		return nil, err
31187	}
31188	defer googleapi.CloseBody(res)
31189	if err := googleapi.CheckResponse(res); err != nil {
31190		return nil, err
31191	}
31192	ret := &GoogleProtobufEmpty{
31193		ServerResponse: googleapi.ServerResponse{
31194			Header:         res.Header,
31195			HTTPStatusCode: res.StatusCode,
31196		},
31197	}
31198	target := &ret
31199	if err := gensupport.DecodeResponse(target, res); err != nil {
31200		return nil, err
31201	}
31202	return ret, nil
31203	// {
31204	//   "description": "Deletes the specified SecuritySettings.",
31205	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/securitySettings/{securitySettingsId}",
31206	//   "httpMethod": "DELETE",
31207	//   "id": "dialogflow.projects.locations.securitySettings.delete",
31208	//   "parameterOrder": [
31209	//     "name"
31210	//   ],
31211	//   "parameters": {
31212	//     "name": {
31213	//       "description": "Required. The name of the SecuritySettings to delete. Format: `projects//locations//securitySettings/`.",
31214	//       "location": "path",
31215	//       "pattern": "^projects/[^/]+/locations/[^/]+/securitySettings/[^/]+$",
31216	//       "required": true,
31217	//       "type": "string"
31218	//     }
31219	//   },
31220	//   "path": "v3beta1/{+name}",
31221	//   "response": {
31222	//     "$ref": "GoogleProtobufEmpty"
31223	//   },
31224	//   "scopes": [
31225	//     "https://www.googleapis.com/auth/cloud-platform",
31226	//     "https://www.googleapis.com/auth/dialogflow"
31227	//   ]
31228	// }
31229
31230}
31231
31232// method id "dialogflow.projects.locations.securitySettings.get":
31233
31234type ProjectsLocationsSecuritySettingsGetCall struct {
31235	s            *Service
31236	name         string
31237	urlParams_   gensupport.URLParams
31238	ifNoneMatch_ string
31239	ctx_         context.Context
31240	header_      http.Header
31241}
31242
31243// Get: Retrieves the specified SecuritySettings. The returned settings
31244// may be stale by up to 1 minute.
31245func (r *ProjectsLocationsSecuritySettingsService) Get(name string) *ProjectsLocationsSecuritySettingsGetCall {
31246	c := &ProjectsLocationsSecuritySettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31247	c.name = name
31248	return c
31249}
31250
31251// Fields allows partial responses to be retrieved. See
31252// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31253// for more information.
31254func (c *ProjectsLocationsSecuritySettingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsGetCall {
31255	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31256	return c
31257}
31258
31259// IfNoneMatch sets the optional parameter which makes the operation
31260// fail if the object's ETag matches the given value. This is useful for
31261// getting updates only after the object has changed since the last
31262// request. Use googleapi.IsNotModified to check whether the response
31263// error from Do is the result of In-None-Match.
31264func (c *ProjectsLocationsSecuritySettingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsGetCall {
31265	c.ifNoneMatch_ = entityTag
31266	return c
31267}
31268
31269// Context sets the context to be used in this call's Do method. Any
31270// pending HTTP request will be aborted if the provided context is
31271// canceled.
31272func (c *ProjectsLocationsSecuritySettingsGetCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsGetCall {
31273	c.ctx_ = ctx
31274	return c
31275}
31276
31277// Header returns an http.Header that can be modified by the caller to
31278// add HTTP headers to the request.
31279func (c *ProjectsLocationsSecuritySettingsGetCall) Header() http.Header {
31280	if c.header_ == nil {
31281		c.header_ = make(http.Header)
31282	}
31283	return c.header_
31284}
31285
31286func (c *ProjectsLocationsSecuritySettingsGetCall) doRequest(alt string) (*http.Response, error) {
31287	reqHeaders := make(http.Header)
31288	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31289	for k, v := range c.header_ {
31290		reqHeaders[k] = v
31291	}
31292	reqHeaders.Set("User-Agent", c.s.userAgent())
31293	if c.ifNoneMatch_ != "" {
31294		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31295	}
31296	var body io.Reader = nil
31297	c.urlParams_.Set("alt", alt)
31298	c.urlParams_.Set("prettyPrint", "false")
31299	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
31300	urls += "?" + c.urlParams_.Encode()
31301	req, err := http.NewRequest("GET", urls, body)
31302	if err != nil {
31303		return nil, err
31304	}
31305	req.Header = reqHeaders
31306	googleapi.Expand(req.URL, map[string]string{
31307		"name": c.name,
31308	})
31309	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31310}
31311
31312// Do executes the "dialogflow.projects.locations.securitySettings.get" call.
31313// Exactly one of *GoogleCloudDialogflowCxV3beta1SecuritySettings or
31314// error will be non-nil. Any non-2xx status code is an error. Response
31315// headers are in either
31316// *GoogleCloudDialogflowCxV3beta1SecuritySettings.ServerResponse.Header
31317// or (if a response was returned at all) in
31318// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31319// whether the returned error was because http.StatusNotModified was
31320// returned.
31321func (c *ProjectsLocationsSecuritySettingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
31322	gensupport.SetOptions(c.urlParams_, opts...)
31323	res, err := c.doRequest("json")
31324	if res != nil && res.StatusCode == http.StatusNotModified {
31325		if res.Body != nil {
31326			res.Body.Close()
31327		}
31328		return nil, &googleapi.Error{
31329			Code:   res.StatusCode,
31330			Header: res.Header,
31331		}
31332	}
31333	if err != nil {
31334		return nil, err
31335	}
31336	defer googleapi.CloseBody(res)
31337	if err := googleapi.CheckResponse(res); err != nil {
31338		return nil, err
31339	}
31340	ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
31341		ServerResponse: googleapi.ServerResponse{
31342			Header:         res.Header,
31343			HTTPStatusCode: res.StatusCode,
31344		},
31345	}
31346	target := &ret
31347	if err := gensupport.DecodeResponse(target, res); err != nil {
31348		return nil, err
31349	}
31350	return ret, nil
31351	// {
31352	//   "description": "Retrieves the specified SecuritySettings. The returned settings may be stale by up to 1 minute.",
31353	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/securitySettings/{securitySettingsId}",
31354	//   "httpMethod": "GET",
31355	//   "id": "dialogflow.projects.locations.securitySettings.get",
31356	//   "parameterOrder": [
31357	//     "name"
31358	//   ],
31359	//   "parameters": {
31360	//     "name": {
31361	//       "description": "Required. Resource name of the settings. Format: `projects//locations//securitySettings/`.",
31362	//       "location": "path",
31363	//       "pattern": "^projects/[^/]+/locations/[^/]+/securitySettings/[^/]+$",
31364	//       "required": true,
31365	//       "type": "string"
31366	//     }
31367	//   },
31368	//   "path": "v3beta1/{+name}",
31369	//   "response": {
31370	//     "$ref": "GoogleCloudDialogflowCxV3beta1SecuritySettings"
31371	//   },
31372	//   "scopes": [
31373	//     "https://www.googleapis.com/auth/cloud-platform",
31374	//     "https://www.googleapis.com/auth/dialogflow"
31375	//   ]
31376	// }
31377
31378}
31379
31380// method id "dialogflow.projects.locations.securitySettings.list":
31381
31382type ProjectsLocationsSecuritySettingsListCall struct {
31383	s            *Service
31384	parent       string
31385	urlParams_   gensupport.URLParams
31386	ifNoneMatch_ string
31387	ctx_         context.Context
31388	header_      http.Header
31389}
31390
31391// List: Returns the list of all security settings in the specified
31392// location.
31393func (r *ProjectsLocationsSecuritySettingsService) List(parent string) *ProjectsLocationsSecuritySettingsListCall {
31394	c := &ProjectsLocationsSecuritySettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31395	c.parent = parent
31396	return c
31397}
31398
31399// PageSize sets the optional parameter "pageSize": The maximum number
31400// of items to return in a single page. By default 20 and at most 100.
31401func (c *ProjectsLocationsSecuritySettingsListCall) PageSize(pageSize int64) *ProjectsLocationsSecuritySettingsListCall {
31402	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31403	return c
31404}
31405
31406// PageToken sets the optional parameter "pageToken": The
31407// next_page_token value returned from a previous list request.
31408func (c *ProjectsLocationsSecuritySettingsListCall) PageToken(pageToken string) *ProjectsLocationsSecuritySettingsListCall {
31409	c.urlParams_.Set("pageToken", pageToken)
31410	return c
31411}
31412
31413// Fields allows partial responses to be retrieved. See
31414// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31415// for more information.
31416func (c *ProjectsLocationsSecuritySettingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsListCall {
31417	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31418	return c
31419}
31420
31421// IfNoneMatch sets the optional parameter which makes the operation
31422// fail if the object's ETag matches the given value. This is useful for
31423// getting updates only after the object has changed since the last
31424// request. Use googleapi.IsNotModified to check whether the response
31425// error from Do is the result of In-None-Match.
31426func (c *ProjectsLocationsSecuritySettingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsListCall {
31427	c.ifNoneMatch_ = entityTag
31428	return c
31429}
31430
31431// Context sets the context to be used in this call's Do method. Any
31432// pending HTTP request will be aborted if the provided context is
31433// canceled.
31434func (c *ProjectsLocationsSecuritySettingsListCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsListCall {
31435	c.ctx_ = ctx
31436	return c
31437}
31438
31439// Header returns an http.Header that can be modified by the caller to
31440// add HTTP headers to the request.
31441func (c *ProjectsLocationsSecuritySettingsListCall) Header() http.Header {
31442	if c.header_ == nil {
31443		c.header_ = make(http.Header)
31444	}
31445	return c.header_
31446}
31447
31448func (c *ProjectsLocationsSecuritySettingsListCall) doRequest(alt string) (*http.Response, error) {
31449	reqHeaders := make(http.Header)
31450	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31451	for k, v := range c.header_ {
31452		reqHeaders[k] = v
31453	}
31454	reqHeaders.Set("User-Agent", c.s.userAgent())
31455	if c.ifNoneMatch_ != "" {
31456		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31457	}
31458	var body io.Reader = nil
31459	c.urlParams_.Set("alt", alt)
31460	c.urlParams_.Set("prettyPrint", "false")
31461	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/securitySettings")
31462	urls += "?" + c.urlParams_.Encode()
31463	req, err := http.NewRequest("GET", urls, body)
31464	if err != nil {
31465		return nil, err
31466	}
31467	req.Header = reqHeaders
31468	googleapi.Expand(req.URL, map[string]string{
31469		"parent": c.parent,
31470	})
31471	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31472}
31473
31474// Do executes the "dialogflow.projects.locations.securitySettings.list" call.
31475// Exactly one of
31476// *GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse or error
31477// will be non-nil. Any non-2xx status code is an error. Response
31478// headers are in either
31479// *GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse.ServerResp
31480// onse.Header or (if a response was returned at all) in
31481// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31482// whether the returned error was because http.StatusNotModified was
31483// returned.
31484func (c *ProjectsLocationsSecuritySettingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse, error) {
31485	gensupport.SetOptions(c.urlParams_, opts...)
31486	res, err := c.doRequest("json")
31487	if res != nil && res.StatusCode == http.StatusNotModified {
31488		if res.Body != nil {
31489			res.Body.Close()
31490		}
31491		return nil, &googleapi.Error{
31492			Code:   res.StatusCode,
31493			Header: res.Header,
31494		}
31495	}
31496	if err != nil {
31497		return nil, err
31498	}
31499	defer googleapi.CloseBody(res)
31500	if err := googleapi.CheckResponse(res); err != nil {
31501		return nil, err
31502	}
31503	ret := &GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse{
31504		ServerResponse: googleapi.ServerResponse{
31505			Header:         res.Header,
31506			HTTPStatusCode: res.StatusCode,
31507		},
31508	}
31509	target := &ret
31510	if err := gensupport.DecodeResponse(target, res); err != nil {
31511		return nil, err
31512	}
31513	return ret, nil
31514	// {
31515	//   "description": "Returns the list of all security settings in the specified location.",
31516	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/securitySettings",
31517	//   "httpMethod": "GET",
31518	//   "id": "dialogflow.projects.locations.securitySettings.list",
31519	//   "parameterOrder": [
31520	//     "parent"
31521	//   ],
31522	//   "parameters": {
31523	//     "pageSize": {
31524	//       "description": "The maximum number of items to return in a single page. By default 20 and at most 100.",
31525	//       "format": "int32",
31526	//       "location": "query",
31527	//       "type": "integer"
31528	//     },
31529	//     "pageToken": {
31530	//       "description": "The next_page_token value returned from a previous list request.",
31531	//       "location": "query",
31532	//       "type": "string"
31533	//     },
31534	//     "parent": {
31535	//       "description": "Required. The location to list all security settings for. Format: `projects//locations/`.",
31536	//       "location": "path",
31537	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
31538	//       "required": true,
31539	//       "type": "string"
31540	//     }
31541	//   },
31542	//   "path": "v3beta1/{+parent}/securitySettings",
31543	//   "response": {
31544	//     "$ref": "GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse"
31545	//   },
31546	//   "scopes": [
31547	//     "https://www.googleapis.com/auth/cloud-platform",
31548	//     "https://www.googleapis.com/auth/dialogflow"
31549	//   ]
31550	// }
31551
31552}
31553
31554// Pages invokes f for each page of results.
31555// A non-nil error returned from f will halt the iteration.
31556// The provided context supersedes any context provided to the Context method.
31557func (c *ProjectsLocationsSecuritySettingsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse) error) error {
31558	c.ctx_ = ctx
31559	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
31560	for {
31561		x, err := c.Do()
31562		if err != nil {
31563			return err
31564		}
31565		if err := f(x); err != nil {
31566			return err
31567		}
31568		if x.NextPageToken == "" {
31569			return nil
31570		}
31571		c.PageToken(x.NextPageToken)
31572	}
31573}
31574
31575// method id "dialogflow.projects.locations.securitySettings.patch":
31576
31577type ProjectsLocationsSecuritySettingsPatchCall struct {
31578	s                                              *Service
31579	name                                           string
31580	googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings
31581	urlParams_                                     gensupport.URLParams
31582	ctx_                                           context.Context
31583	header_                                        http.Header
31584}
31585
31586// Patch: Updates the specified SecuritySettings.
31587func (r *ProjectsLocationsSecuritySettingsService) Patch(name string, googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings) *ProjectsLocationsSecuritySettingsPatchCall {
31588	c := &ProjectsLocationsSecuritySettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31589	c.name = name
31590	c.googleclouddialogflowcxv3beta1securitysettings = googleclouddialogflowcxv3beta1securitysettings
31591	return c
31592}
31593
31594// UpdateMask sets the optional parameter "updateMask": Required. The
31595// mask to control which fields get updated. If the mask is not present,
31596// all fields will be updated.
31597func (c *ProjectsLocationsSecuritySettingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSecuritySettingsPatchCall {
31598	c.urlParams_.Set("updateMask", updateMask)
31599	return c
31600}
31601
31602// Fields allows partial responses to be retrieved. See
31603// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31604// for more information.
31605func (c *ProjectsLocationsSecuritySettingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsPatchCall {
31606	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31607	return c
31608}
31609
31610// Context sets the context to be used in this call's Do method. Any
31611// pending HTTP request will be aborted if the provided context is
31612// canceled.
31613func (c *ProjectsLocationsSecuritySettingsPatchCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsPatchCall {
31614	c.ctx_ = ctx
31615	return c
31616}
31617
31618// Header returns an http.Header that can be modified by the caller to
31619// add HTTP headers to the request.
31620func (c *ProjectsLocationsSecuritySettingsPatchCall) Header() http.Header {
31621	if c.header_ == nil {
31622		c.header_ = make(http.Header)
31623	}
31624	return c.header_
31625}
31626
31627func (c *ProjectsLocationsSecuritySettingsPatchCall) doRequest(alt string) (*http.Response, error) {
31628	reqHeaders := make(http.Header)
31629	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31630	for k, v := range c.header_ {
31631		reqHeaders[k] = v
31632	}
31633	reqHeaders.Set("User-Agent", c.s.userAgent())
31634	var body io.Reader = nil
31635	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1securitysettings)
31636	if err != nil {
31637		return nil, err
31638	}
31639	reqHeaders.Set("Content-Type", "application/json")
31640	c.urlParams_.Set("alt", alt)
31641	c.urlParams_.Set("prettyPrint", "false")
31642	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
31643	urls += "?" + c.urlParams_.Encode()
31644	req, err := http.NewRequest("PATCH", urls, body)
31645	if err != nil {
31646		return nil, err
31647	}
31648	req.Header = reqHeaders
31649	googleapi.Expand(req.URL, map[string]string{
31650		"name": c.name,
31651	})
31652	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31653}
31654
31655// Do executes the "dialogflow.projects.locations.securitySettings.patch" call.
31656// Exactly one of *GoogleCloudDialogflowCxV3beta1SecuritySettings or
31657// error will be non-nil. Any non-2xx status code is an error. Response
31658// headers are in either
31659// *GoogleCloudDialogflowCxV3beta1SecuritySettings.ServerResponse.Header
31660// or (if a response was returned at all) in
31661// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31662// whether the returned error was because http.StatusNotModified was
31663// returned.
31664func (c *ProjectsLocationsSecuritySettingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
31665	gensupport.SetOptions(c.urlParams_, opts...)
31666	res, err := c.doRequest("json")
31667	if res != nil && res.StatusCode == http.StatusNotModified {
31668		if res.Body != nil {
31669			res.Body.Close()
31670		}
31671		return nil, &googleapi.Error{
31672			Code:   res.StatusCode,
31673			Header: res.Header,
31674		}
31675	}
31676	if err != nil {
31677		return nil, err
31678	}
31679	defer googleapi.CloseBody(res)
31680	if err := googleapi.CheckResponse(res); err != nil {
31681		return nil, err
31682	}
31683	ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
31684		ServerResponse: googleapi.ServerResponse{
31685			Header:         res.Header,
31686			HTTPStatusCode: res.StatusCode,
31687		},
31688	}
31689	target := &ret
31690	if err := gensupport.DecodeResponse(target, res); err != nil {
31691		return nil, err
31692	}
31693	return ret, nil
31694	// {
31695	//   "description": "Updates the specified SecuritySettings.",
31696	//   "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/securitySettings/{securitySettingsId}",
31697	//   "httpMethod": "PATCH",
31698	//   "id": "dialogflow.projects.locations.securitySettings.patch",
31699	//   "parameterOrder": [
31700	//     "name"
31701	//   ],
31702	//   "parameters": {
31703	//     "name": {
31704	//       "description": "Required. Resource name of the settings. Format: `projects//locations//securitySettings/`.",
31705	//       "location": "path",
31706	//       "pattern": "^projects/[^/]+/locations/[^/]+/securitySettings/[^/]+$",
31707	//       "required": true,
31708	//       "type": "string"
31709	//     },
31710	//     "updateMask": {
31711	//       "description": "Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.",
31712	//       "format": "google-fieldmask",
31713	//       "location": "query",
31714	//       "type": "string"
31715	//     }
31716	//   },
31717	//   "path": "v3beta1/{+name}",
31718	//   "request": {
31719	//     "$ref": "GoogleCloudDialogflowCxV3beta1SecuritySettings"
31720	//   },
31721	//   "response": {
31722	//     "$ref": "GoogleCloudDialogflowCxV3beta1SecuritySettings"
31723	//   },
31724	//   "scopes": [
31725	//     "https://www.googleapis.com/auth/cloud-platform",
31726	//     "https://www.googleapis.com/auth/dialogflow"
31727	//   ]
31728	// }
31729
31730}
31731
31732// method id "dialogflow.projects.operations.cancel":
31733
31734type ProjectsOperationsCancelCall struct {
31735	s          *Service
31736	name       string
31737	urlParams_ gensupport.URLParams
31738	ctx_       context.Context
31739	header_    http.Header
31740}
31741
31742// Cancel: Starts asynchronous cancellation on a long-running operation.
31743// The server makes a best effort to cancel the operation, but success
31744// is not guaranteed. If the server doesn't support this method, it
31745// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
31746// Operations.GetOperation or other methods to check whether the
31747// cancellation succeeded or whether the operation completed despite
31748// cancellation. On successful cancellation, the operation is not
31749// deleted; instead, it becomes an operation with an Operation.error
31750// value with a google.rpc.Status.code of 1, corresponding to
31751// `Code.CANCELLED`.
31752func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
31753	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31754	c.name = name
31755	return c
31756}
31757
31758// Fields allows partial responses to be retrieved. See
31759// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31760// for more information.
31761func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
31762	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31763	return c
31764}
31765
31766// Context sets the context to be used in this call's Do method. Any
31767// pending HTTP request will be aborted if the provided context is
31768// canceled.
31769func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
31770	c.ctx_ = ctx
31771	return c
31772}
31773
31774// Header returns an http.Header that can be modified by the caller to
31775// add HTTP headers to the request.
31776func (c *ProjectsOperationsCancelCall) Header() http.Header {
31777	if c.header_ == nil {
31778		c.header_ = make(http.Header)
31779	}
31780	return c.header_
31781}
31782
31783func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
31784	reqHeaders := make(http.Header)
31785	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31786	for k, v := range c.header_ {
31787		reqHeaders[k] = v
31788	}
31789	reqHeaders.Set("User-Agent", c.s.userAgent())
31790	var body io.Reader = nil
31791	c.urlParams_.Set("alt", alt)
31792	c.urlParams_.Set("prettyPrint", "false")
31793	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:cancel")
31794	urls += "?" + c.urlParams_.Encode()
31795	req, err := http.NewRequest("POST", urls, body)
31796	if err != nil {
31797		return nil, err
31798	}
31799	req.Header = reqHeaders
31800	googleapi.Expand(req.URL, map[string]string{
31801		"name": c.name,
31802	})
31803	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31804}
31805
31806// Do executes the "dialogflow.projects.operations.cancel" call.
31807// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
31808// non-2xx status code is an error. Response headers are in either
31809// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
31810// returned at all) in error.(*googleapi.Error).Header. Use
31811// googleapi.IsNotModified to check whether the returned error was
31812// because http.StatusNotModified was returned.
31813func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31814	gensupport.SetOptions(c.urlParams_, opts...)
31815	res, err := c.doRequest("json")
31816	if res != nil && res.StatusCode == http.StatusNotModified {
31817		if res.Body != nil {
31818			res.Body.Close()
31819		}
31820		return nil, &googleapi.Error{
31821			Code:   res.StatusCode,
31822			Header: res.Header,
31823		}
31824	}
31825	if err != nil {
31826		return nil, err
31827	}
31828	defer googleapi.CloseBody(res)
31829	if err := googleapi.CheckResponse(res); err != nil {
31830		return nil, err
31831	}
31832	ret := &GoogleProtobufEmpty{
31833		ServerResponse: googleapi.ServerResponse{
31834			Header:         res.Header,
31835			HTTPStatusCode: res.StatusCode,
31836		},
31837	}
31838	target := &ret
31839	if err := gensupport.DecodeResponse(target, res); err != nil {
31840		return nil, err
31841	}
31842	return ret, nil
31843	// {
31844	//   "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`.",
31845	//   "flatPath": "v3beta1/projects/{projectsId}/operations/{operationsId}:cancel",
31846	//   "httpMethod": "POST",
31847	//   "id": "dialogflow.projects.operations.cancel",
31848	//   "parameterOrder": [
31849	//     "name"
31850	//   ],
31851	//   "parameters": {
31852	//     "name": {
31853	//       "description": "The name of the operation resource to be cancelled.",
31854	//       "location": "path",
31855	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
31856	//       "required": true,
31857	//       "type": "string"
31858	//     }
31859	//   },
31860	//   "path": "v3beta1/{+name}:cancel",
31861	//   "response": {
31862	//     "$ref": "GoogleProtobufEmpty"
31863	//   },
31864	//   "scopes": [
31865	//     "https://www.googleapis.com/auth/cloud-platform",
31866	//     "https://www.googleapis.com/auth/dialogflow"
31867	//   ]
31868	// }
31869
31870}
31871
31872// method id "dialogflow.projects.operations.get":
31873
31874type ProjectsOperationsGetCall struct {
31875	s            *Service
31876	name         string
31877	urlParams_   gensupport.URLParams
31878	ifNoneMatch_ string
31879	ctx_         context.Context
31880	header_      http.Header
31881}
31882
31883// Get: Gets the latest state of a long-running operation. Clients can
31884// use this method to poll the operation result at intervals as
31885// recommended by the API service.
31886func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
31887	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31888	c.name = name
31889	return c
31890}
31891
31892// Fields allows partial responses to be retrieved. See
31893// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31894// for more information.
31895func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
31896	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31897	return c
31898}
31899
31900// IfNoneMatch sets the optional parameter which makes the operation
31901// fail if the object's ETag matches the given value. This is useful for
31902// getting updates only after the object has changed since the last
31903// request. Use googleapi.IsNotModified to check whether the response
31904// error from Do is the result of In-None-Match.
31905func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
31906	c.ifNoneMatch_ = entityTag
31907	return c
31908}
31909
31910// Context sets the context to be used in this call's Do method. Any
31911// pending HTTP request will be aborted if the provided context is
31912// canceled.
31913func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
31914	c.ctx_ = ctx
31915	return c
31916}
31917
31918// Header returns an http.Header that can be modified by the caller to
31919// add HTTP headers to the request.
31920func (c *ProjectsOperationsGetCall) Header() http.Header {
31921	if c.header_ == nil {
31922		c.header_ = make(http.Header)
31923	}
31924	return c.header_
31925}
31926
31927func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
31928	reqHeaders := make(http.Header)
31929	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
31930	for k, v := range c.header_ {
31931		reqHeaders[k] = v
31932	}
31933	reqHeaders.Set("User-Agent", c.s.userAgent())
31934	if c.ifNoneMatch_ != "" {
31935		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31936	}
31937	var body io.Reader = nil
31938	c.urlParams_.Set("alt", alt)
31939	c.urlParams_.Set("prettyPrint", "false")
31940	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
31941	urls += "?" + c.urlParams_.Encode()
31942	req, err := http.NewRequest("GET", urls, body)
31943	if err != nil {
31944		return nil, err
31945	}
31946	req.Header = reqHeaders
31947	googleapi.Expand(req.URL, map[string]string{
31948		"name": c.name,
31949	})
31950	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31951}
31952
31953// Do executes the "dialogflow.projects.operations.get" call.
31954// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
31955// Any non-2xx status code is an error. Response headers are in either
31956// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
31957// was returned at all) in error.(*googleapi.Error).Header. Use
31958// googleapi.IsNotModified to check whether the returned error was
31959// because http.StatusNotModified was returned.
31960func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31961	gensupport.SetOptions(c.urlParams_, opts...)
31962	res, err := c.doRequest("json")
31963	if res != nil && res.StatusCode == http.StatusNotModified {
31964		if res.Body != nil {
31965			res.Body.Close()
31966		}
31967		return nil, &googleapi.Error{
31968			Code:   res.StatusCode,
31969			Header: res.Header,
31970		}
31971	}
31972	if err != nil {
31973		return nil, err
31974	}
31975	defer googleapi.CloseBody(res)
31976	if err := googleapi.CheckResponse(res); err != nil {
31977		return nil, err
31978	}
31979	ret := &GoogleLongrunningOperation{
31980		ServerResponse: googleapi.ServerResponse{
31981			Header:         res.Header,
31982			HTTPStatusCode: res.StatusCode,
31983		},
31984	}
31985	target := &ret
31986	if err := gensupport.DecodeResponse(target, res); err != nil {
31987		return nil, err
31988	}
31989	return ret, nil
31990	// {
31991	//   "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.",
31992	//   "flatPath": "v3beta1/projects/{projectsId}/operations/{operationsId}",
31993	//   "httpMethod": "GET",
31994	//   "id": "dialogflow.projects.operations.get",
31995	//   "parameterOrder": [
31996	//     "name"
31997	//   ],
31998	//   "parameters": {
31999	//     "name": {
32000	//       "description": "The name of the operation resource.",
32001	//       "location": "path",
32002	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
32003	//       "required": true,
32004	//       "type": "string"
32005	//     }
32006	//   },
32007	//   "path": "v3beta1/{+name}",
32008	//   "response": {
32009	//     "$ref": "GoogleLongrunningOperation"
32010	//   },
32011	//   "scopes": [
32012	//     "https://www.googleapis.com/auth/cloud-platform",
32013	//     "https://www.googleapis.com/auth/dialogflow"
32014	//   ]
32015	// }
32016
32017}
32018
32019// method id "dialogflow.projects.operations.list":
32020
32021type ProjectsOperationsListCall struct {
32022	s            *Service
32023	name         string
32024	urlParams_   gensupport.URLParams
32025	ifNoneMatch_ string
32026	ctx_         context.Context
32027	header_      http.Header
32028}
32029
32030// List: Lists operations that match the specified filter in the
32031// request. If the server doesn't support this method, it returns
32032// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
32033// override the binding to use different resource name schemes, such as
32034// `users/*/operations`. To override the binding, API services can add a
32035// binding such as "/v1/{name=users/*}/operations" to their service
32036// configuration. For backwards compatibility, the default name includes
32037// the operations collection id, however overriding users must ensure
32038// the name binding is the parent resource, without the operations
32039// collection id.
32040func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
32041	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32042	c.name = name
32043	return c
32044}
32045
32046// Filter sets the optional parameter "filter": The standard list
32047// filter.
32048func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
32049	c.urlParams_.Set("filter", filter)
32050	return c
32051}
32052
32053// PageSize sets the optional parameter "pageSize": The standard list
32054// page size.
32055func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
32056	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32057	return c
32058}
32059
32060// PageToken sets the optional parameter "pageToken": The standard list
32061// page token.
32062func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
32063	c.urlParams_.Set("pageToken", pageToken)
32064	return c
32065}
32066
32067// Fields allows partial responses to be retrieved. See
32068// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32069// for more information.
32070func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
32071	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32072	return c
32073}
32074
32075// IfNoneMatch sets the optional parameter which makes the operation
32076// fail if the object's ETag matches the given value. This is useful for
32077// getting updates only after the object has changed since the last
32078// request. Use googleapi.IsNotModified to check whether the response
32079// error from Do is the result of In-None-Match.
32080func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
32081	c.ifNoneMatch_ = entityTag
32082	return c
32083}
32084
32085// Context sets the context to be used in this call's Do method. Any
32086// pending HTTP request will be aborted if the provided context is
32087// canceled.
32088func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
32089	c.ctx_ = ctx
32090	return c
32091}
32092
32093// Header returns an http.Header that can be modified by the caller to
32094// add HTTP headers to the request.
32095func (c *ProjectsOperationsListCall) Header() http.Header {
32096	if c.header_ == nil {
32097		c.header_ = make(http.Header)
32098	}
32099	return c.header_
32100}
32101
32102func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
32103	reqHeaders := make(http.Header)
32104	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
32105	for k, v := range c.header_ {
32106		reqHeaders[k] = v
32107	}
32108	reqHeaders.Set("User-Agent", c.s.userAgent())
32109	if c.ifNoneMatch_ != "" {
32110		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32111	}
32112	var body io.Reader = nil
32113	c.urlParams_.Set("alt", alt)
32114	c.urlParams_.Set("prettyPrint", "false")
32115	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/operations")
32116	urls += "?" + c.urlParams_.Encode()
32117	req, err := http.NewRequest("GET", urls, body)
32118	if err != nil {
32119		return nil, err
32120	}
32121	req.Header = reqHeaders
32122	googleapi.Expand(req.URL, map[string]string{
32123		"name": c.name,
32124	})
32125	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32126}
32127
32128// Do executes the "dialogflow.projects.operations.list" call.
32129// Exactly one of *GoogleLongrunningListOperationsResponse or error will
32130// be non-nil. Any non-2xx status code is an error. Response headers are
32131// in either
32132// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
32133// a response was returned at all) in error.(*googleapi.Error).Header.
32134// Use googleapi.IsNotModified to check whether the returned error was
32135// because http.StatusNotModified was returned.
32136func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
32137	gensupport.SetOptions(c.urlParams_, opts...)
32138	res, err := c.doRequest("json")
32139	if res != nil && res.StatusCode == http.StatusNotModified {
32140		if res.Body != nil {
32141			res.Body.Close()
32142		}
32143		return nil, &googleapi.Error{
32144			Code:   res.StatusCode,
32145			Header: res.Header,
32146		}
32147	}
32148	if err != nil {
32149		return nil, err
32150	}
32151	defer googleapi.CloseBody(res)
32152	if err := googleapi.CheckResponse(res); err != nil {
32153		return nil, err
32154	}
32155	ret := &GoogleLongrunningListOperationsResponse{
32156		ServerResponse: googleapi.ServerResponse{
32157			Header:         res.Header,
32158			HTTPStatusCode: res.StatusCode,
32159		},
32160	}
32161	target := &ret
32162	if err := gensupport.DecodeResponse(target, res); err != nil {
32163		return nil, err
32164	}
32165	return ret, nil
32166	// {
32167	//   "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.",
32168	//   "flatPath": "v3beta1/projects/{projectsId}/operations",
32169	//   "httpMethod": "GET",
32170	//   "id": "dialogflow.projects.operations.list",
32171	//   "parameterOrder": [
32172	//     "name"
32173	//   ],
32174	//   "parameters": {
32175	//     "filter": {
32176	//       "description": "The standard list filter.",
32177	//       "location": "query",
32178	//       "type": "string"
32179	//     },
32180	//     "name": {
32181	//       "description": "The name of the operation's parent resource.",
32182	//       "location": "path",
32183	//       "pattern": "^projects/[^/]+$",
32184	//       "required": true,
32185	//       "type": "string"
32186	//     },
32187	//     "pageSize": {
32188	//       "description": "The standard list page size.",
32189	//       "format": "int32",
32190	//       "location": "query",
32191	//       "type": "integer"
32192	//     },
32193	//     "pageToken": {
32194	//       "description": "The standard list page token.",
32195	//       "location": "query",
32196	//       "type": "string"
32197	//     }
32198	//   },
32199	//   "path": "v3beta1/{+name}/operations",
32200	//   "response": {
32201	//     "$ref": "GoogleLongrunningListOperationsResponse"
32202	//   },
32203	//   "scopes": [
32204	//     "https://www.googleapis.com/auth/cloud-platform",
32205	//     "https://www.googleapis.com/auth/dialogflow"
32206	//   ]
32207	// }
32208
32209}
32210
32211// Pages invokes f for each page of results.
32212// A non-nil error returned from f will halt the iteration.
32213// The provided context supersedes any context provided to the Context method.
32214func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
32215	c.ctx_ = ctx
32216	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
32217	for {
32218		x, err := c.Do()
32219		if err != nil {
32220			return err
32221		}
32222		if err := f(x); err != nil {
32223			return err
32224		}
32225		if x.NextPageToken == "" {
32226			return nil
32227		}
32228		c.PageToken(x.NextPageToken)
32229	}
32230}
32231