...

Source file src/google.golang.org/api/dialogflow/v3beta1/dialogflow-gen.go

Documentation: google.golang.org/api/dialogflow/v3beta1

     1  // Copyright 2024 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  // # Library status
    14  //
    15  // These client libraries are officially supported by Google. However, this
    16  // library is considered complete and is in maintenance mode. This means
    17  // that we will address critical bugs and security issues but will not add
    18  // any new features.
    19  //
    20  // When possible, we recommend using our newer
    21  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    22  // that are still actively being worked and iterated on.
    23  //
    24  // # Creating a client
    25  //
    26  // Usage example:
    27  //
    28  //	import "google.golang.org/api/dialogflow/v3beta1"
    29  //	...
    30  //	ctx := context.Background()
    31  //	dialogflowService, err := dialogflow.NewService(ctx)
    32  //
    33  // In this example, Google Application Default Credentials are used for
    34  // authentication. For information on how to create and obtain Application
    35  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    36  //
    37  // # Other authentication options
    38  //
    39  // By default, all available scopes (see "Constants") are used to authenticate.
    40  // To restrict scopes, use [google.golang.org/api/option.WithScopes]:
    41  //
    42  //	dialogflowService, err := dialogflow.NewService(ctx, option.WithScopes(dialogflow.DialogflowScope))
    43  //
    44  // To use an API key for authentication (note: some APIs do not support API
    45  // keys), use [google.golang.org/api/option.WithAPIKey]:
    46  //
    47  //	dialogflowService, err := dialogflow.NewService(ctx, option.WithAPIKey("AIza..."))
    48  //
    49  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    50  // flow, use [google.golang.org/api/option.WithTokenSource]:
    51  //
    52  //	config := &oauth2.Config{...}
    53  //	// ...
    54  //	token, err := config.Exchange(ctx, ...)
    55  //	dialogflowService, err := dialogflow.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    56  //
    57  // See [google.golang.org/api/option.ClientOption] for details on options.
    58  package dialogflow // import "google.golang.org/api/dialogflow/v3beta1"
    59  
    60  import (
    61  	"bytes"
    62  	"context"
    63  	"encoding/json"
    64  	"errors"
    65  	"fmt"
    66  	"io"
    67  	"net/http"
    68  	"net/url"
    69  	"strconv"
    70  	"strings"
    71  
    72  	googleapi "google.golang.org/api/googleapi"
    73  	internal "google.golang.org/api/internal"
    74  	gensupport "google.golang.org/api/internal/gensupport"
    75  	option "google.golang.org/api/option"
    76  	internaloption "google.golang.org/api/option/internaloption"
    77  	htransport "google.golang.org/api/transport/http"
    78  )
    79  
    80  // Always reference these packages, just in case the auto-generated code
    81  // below doesn't.
    82  var _ = bytes.NewBuffer
    83  var _ = strconv.Itoa
    84  var _ = fmt.Sprintf
    85  var _ = json.NewDecoder
    86  var _ = io.Copy
    87  var _ = url.Parse
    88  var _ = gensupport.MarshalJSON
    89  var _ = googleapi.Version
    90  var _ = errors.New
    91  var _ = strings.Replace
    92  var _ = context.Canceled
    93  var _ = internaloption.WithDefaultEndpoint
    94  var _ = internal.Version
    95  
    96  const apiId = "dialogflow:v3beta1"
    97  const apiName = "dialogflow"
    98  const apiVersion = "v3beta1"
    99  const basePath = "https://dialogflow.googleapis.com/"
   100  const basePathTemplate = "https://dialogflow.UNIVERSE_DOMAIN/"
   101  const mtlsBasePath = "https://dialogflow.mtls.googleapis.com/"
   102  
   103  // OAuth2 scopes used by this API.
   104  const (
   105  	// See, edit, configure, and delete your Google Cloud data and see the email
   106  	// address for your Google Account.
   107  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   108  
   109  	// View, manage and query your Dialogflow agents
   110  	DialogflowScope = "https://www.googleapis.com/auth/dialogflow"
   111  )
   112  
   113  // NewService creates a new Service.
   114  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   115  	scopesOption := internaloption.WithDefaultScopes(
   116  		"https://www.googleapis.com/auth/cloud-platform",
   117  		"https://www.googleapis.com/auth/dialogflow",
   118  	)
   119  	// NOTE: prepend, so we don't override user-specified scopes.
   120  	opts = append([]option.ClientOption{scopesOption}, opts...)
   121  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   122  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   123  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   124  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   125  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   126  	if err != nil {
   127  		return nil, err
   128  	}
   129  	s, err := New(client)
   130  	if err != nil {
   131  		return nil, err
   132  	}
   133  	if endpoint != "" {
   134  		s.BasePath = endpoint
   135  	}
   136  	return s, nil
   137  }
   138  
   139  // New creates a new Service. It uses the provided http.Client for requests.
   140  //
   141  // Deprecated: please use NewService instead.
   142  // To provide a custom HTTP client, use option.WithHTTPClient.
   143  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   144  func New(client *http.Client) (*Service, error) {
   145  	if client == nil {
   146  		return nil, errors.New("client is nil")
   147  	}
   148  	s := &Service{client: client, BasePath: basePath}
   149  	s.Projects = NewProjectsService(s)
   150  	return s, nil
   151  }
   152  
   153  type Service struct {
   154  	client    *http.Client
   155  	BasePath  string // API endpoint base URL
   156  	UserAgent string // optional additional User-Agent fragment
   157  
   158  	Projects *ProjectsService
   159  }
   160  
   161  func (s *Service) userAgent() string {
   162  	if s.UserAgent == "" {
   163  		return googleapi.UserAgent
   164  	}
   165  	return googleapi.UserAgent + " " + s.UserAgent
   166  }
   167  
   168  func NewProjectsService(s *Service) *ProjectsService {
   169  	rs := &ProjectsService{s: s}
   170  	rs.Locations = NewProjectsLocationsService(s)
   171  	rs.Operations = NewProjectsOperationsService(s)
   172  	return rs
   173  }
   174  
   175  type ProjectsService struct {
   176  	s *Service
   177  
   178  	Locations *ProjectsLocationsService
   179  
   180  	Operations *ProjectsOperationsService
   181  }
   182  
   183  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   184  	rs := &ProjectsLocationsService{s: s}
   185  	rs.Agents = NewProjectsLocationsAgentsService(s)
   186  	rs.Operations = NewProjectsLocationsOperationsService(s)
   187  	rs.SecuritySettings = NewProjectsLocationsSecuritySettingsService(s)
   188  	return rs
   189  }
   190  
   191  type ProjectsLocationsService struct {
   192  	s *Service
   193  
   194  	Agents *ProjectsLocationsAgentsService
   195  
   196  	Operations *ProjectsLocationsOperationsService
   197  
   198  	SecuritySettings *ProjectsLocationsSecuritySettingsService
   199  }
   200  
   201  func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsService {
   202  	rs := &ProjectsLocationsAgentsService{s: s}
   203  	rs.Changelogs = NewProjectsLocationsAgentsChangelogsService(s)
   204  	rs.Conversations = NewProjectsLocationsAgentsConversationsService(s)
   205  	rs.EntityTypes = NewProjectsLocationsAgentsEntityTypesService(s)
   206  	rs.Environments = NewProjectsLocationsAgentsEnvironmentsService(s)
   207  	rs.Flows = NewProjectsLocationsAgentsFlowsService(s)
   208  	rs.Generators = NewProjectsLocationsAgentsGeneratorsService(s)
   209  	rs.Intents = NewProjectsLocationsAgentsIntentsService(s)
   210  	rs.Sessions = NewProjectsLocationsAgentsSessionsService(s)
   211  	rs.TestCases = NewProjectsLocationsAgentsTestCasesService(s)
   212  	rs.TransitionRouteGroups = NewProjectsLocationsAgentsTransitionRouteGroupsService(s)
   213  	rs.Webhooks = NewProjectsLocationsAgentsWebhooksService(s)
   214  	return rs
   215  }
   216  
   217  type ProjectsLocationsAgentsService struct {
   218  	s *Service
   219  
   220  	Changelogs *ProjectsLocationsAgentsChangelogsService
   221  
   222  	Conversations *ProjectsLocationsAgentsConversationsService
   223  
   224  	EntityTypes *ProjectsLocationsAgentsEntityTypesService
   225  
   226  	Environments *ProjectsLocationsAgentsEnvironmentsService
   227  
   228  	Flows *ProjectsLocationsAgentsFlowsService
   229  
   230  	Generators *ProjectsLocationsAgentsGeneratorsService
   231  
   232  	Intents *ProjectsLocationsAgentsIntentsService
   233  
   234  	Sessions *ProjectsLocationsAgentsSessionsService
   235  
   236  	TestCases *ProjectsLocationsAgentsTestCasesService
   237  
   238  	TransitionRouteGroups *ProjectsLocationsAgentsTransitionRouteGroupsService
   239  
   240  	Webhooks *ProjectsLocationsAgentsWebhooksService
   241  }
   242  
   243  func NewProjectsLocationsAgentsChangelogsService(s *Service) *ProjectsLocationsAgentsChangelogsService {
   244  	rs := &ProjectsLocationsAgentsChangelogsService{s: s}
   245  	return rs
   246  }
   247  
   248  type ProjectsLocationsAgentsChangelogsService struct {
   249  	s *Service
   250  }
   251  
   252  func NewProjectsLocationsAgentsConversationsService(s *Service) *ProjectsLocationsAgentsConversationsService {
   253  	rs := &ProjectsLocationsAgentsConversationsService{s: s}
   254  	return rs
   255  }
   256  
   257  type ProjectsLocationsAgentsConversationsService struct {
   258  	s *Service
   259  }
   260  
   261  func NewProjectsLocationsAgentsEntityTypesService(s *Service) *ProjectsLocationsAgentsEntityTypesService {
   262  	rs := &ProjectsLocationsAgentsEntityTypesService{s: s}
   263  	return rs
   264  }
   265  
   266  type ProjectsLocationsAgentsEntityTypesService struct {
   267  	s *Service
   268  }
   269  
   270  func NewProjectsLocationsAgentsEnvironmentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsService {
   271  	rs := &ProjectsLocationsAgentsEnvironmentsService{s: s}
   272  	rs.ContinuousTestResults = NewProjectsLocationsAgentsEnvironmentsContinuousTestResultsService(s)
   273  	rs.Deployments = NewProjectsLocationsAgentsEnvironmentsDeploymentsService(s)
   274  	rs.Experiments = NewProjectsLocationsAgentsEnvironmentsExperimentsService(s)
   275  	rs.Sessions = NewProjectsLocationsAgentsEnvironmentsSessionsService(s)
   276  	return rs
   277  }
   278  
   279  type ProjectsLocationsAgentsEnvironmentsService struct {
   280  	s *Service
   281  
   282  	ContinuousTestResults *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService
   283  
   284  	Deployments *ProjectsLocationsAgentsEnvironmentsDeploymentsService
   285  
   286  	Experiments *ProjectsLocationsAgentsEnvironmentsExperimentsService
   287  
   288  	Sessions *ProjectsLocationsAgentsEnvironmentsSessionsService
   289  }
   290  
   291  func NewProjectsLocationsAgentsEnvironmentsContinuousTestResultsService(s *Service) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService {
   292  	rs := &ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService{s: s}
   293  	return rs
   294  }
   295  
   296  type ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService struct {
   297  	s *Service
   298  }
   299  
   300  func NewProjectsLocationsAgentsEnvironmentsDeploymentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsDeploymentsService {
   301  	rs := &ProjectsLocationsAgentsEnvironmentsDeploymentsService{s: s}
   302  	return rs
   303  }
   304  
   305  type ProjectsLocationsAgentsEnvironmentsDeploymentsService struct {
   306  	s *Service
   307  }
   308  
   309  func NewProjectsLocationsAgentsEnvironmentsExperimentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsExperimentsService {
   310  	rs := &ProjectsLocationsAgentsEnvironmentsExperimentsService{s: s}
   311  	return rs
   312  }
   313  
   314  type ProjectsLocationsAgentsEnvironmentsExperimentsService struct {
   315  	s *Service
   316  }
   317  
   318  func NewProjectsLocationsAgentsEnvironmentsSessionsService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsService {
   319  	rs := &ProjectsLocationsAgentsEnvironmentsSessionsService{s: s}
   320  	rs.EntityTypes = NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s)
   321  	return rs
   322  }
   323  
   324  type ProjectsLocationsAgentsEnvironmentsSessionsService struct {
   325  	s *Service
   326  
   327  	EntityTypes *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService
   328  }
   329  
   330  func NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService {
   331  	rs := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService{s: s}
   332  	return rs
   333  }
   334  
   335  type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService struct {
   336  	s *Service
   337  }
   338  
   339  func NewProjectsLocationsAgentsFlowsService(s *Service) *ProjectsLocationsAgentsFlowsService {
   340  	rs := &ProjectsLocationsAgentsFlowsService{s: s}
   341  	rs.Pages = NewProjectsLocationsAgentsFlowsPagesService(s)
   342  	rs.TransitionRouteGroups = NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s)
   343  	rs.Versions = NewProjectsLocationsAgentsFlowsVersionsService(s)
   344  	return rs
   345  }
   346  
   347  type ProjectsLocationsAgentsFlowsService struct {
   348  	s *Service
   349  
   350  	Pages *ProjectsLocationsAgentsFlowsPagesService
   351  
   352  	TransitionRouteGroups *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService
   353  
   354  	Versions *ProjectsLocationsAgentsFlowsVersionsService
   355  }
   356  
   357  func NewProjectsLocationsAgentsFlowsPagesService(s *Service) *ProjectsLocationsAgentsFlowsPagesService {
   358  	rs := &ProjectsLocationsAgentsFlowsPagesService{s: s}
   359  	return rs
   360  }
   361  
   362  type ProjectsLocationsAgentsFlowsPagesService struct {
   363  	s *Service
   364  }
   365  
   366  func NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService {
   367  	rs := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsService{s: s}
   368  	return rs
   369  }
   370  
   371  type ProjectsLocationsAgentsFlowsTransitionRouteGroupsService struct {
   372  	s *Service
   373  }
   374  
   375  func NewProjectsLocationsAgentsFlowsVersionsService(s *Service) *ProjectsLocationsAgentsFlowsVersionsService {
   376  	rs := &ProjectsLocationsAgentsFlowsVersionsService{s: s}
   377  	return rs
   378  }
   379  
   380  type ProjectsLocationsAgentsFlowsVersionsService struct {
   381  	s *Service
   382  }
   383  
   384  func NewProjectsLocationsAgentsGeneratorsService(s *Service) *ProjectsLocationsAgentsGeneratorsService {
   385  	rs := &ProjectsLocationsAgentsGeneratorsService{s: s}
   386  	return rs
   387  }
   388  
   389  type ProjectsLocationsAgentsGeneratorsService struct {
   390  	s *Service
   391  }
   392  
   393  func NewProjectsLocationsAgentsIntentsService(s *Service) *ProjectsLocationsAgentsIntentsService {
   394  	rs := &ProjectsLocationsAgentsIntentsService{s: s}
   395  	return rs
   396  }
   397  
   398  type ProjectsLocationsAgentsIntentsService struct {
   399  	s *Service
   400  }
   401  
   402  func NewProjectsLocationsAgentsSessionsService(s *Service) *ProjectsLocationsAgentsSessionsService {
   403  	rs := &ProjectsLocationsAgentsSessionsService{s: s}
   404  	rs.EntityTypes = NewProjectsLocationsAgentsSessionsEntityTypesService(s)
   405  	return rs
   406  }
   407  
   408  type ProjectsLocationsAgentsSessionsService struct {
   409  	s *Service
   410  
   411  	EntityTypes *ProjectsLocationsAgentsSessionsEntityTypesService
   412  }
   413  
   414  func NewProjectsLocationsAgentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsSessionsEntityTypesService {
   415  	rs := &ProjectsLocationsAgentsSessionsEntityTypesService{s: s}
   416  	return rs
   417  }
   418  
   419  type ProjectsLocationsAgentsSessionsEntityTypesService struct {
   420  	s *Service
   421  }
   422  
   423  func NewProjectsLocationsAgentsTestCasesService(s *Service) *ProjectsLocationsAgentsTestCasesService {
   424  	rs := &ProjectsLocationsAgentsTestCasesService{s: s}
   425  	rs.Results = NewProjectsLocationsAgentsTestCasesResultsService(s)
   426  	return rs
   427  }
   428  
   429  type ProjectsLocationsAgentsTestCasesService struct {
   430  	s *Service
   431  
   432  	Results *ProjectsLocationsAgentsTestCasesResultsService
   433  }
   434  
   435  func NewProjectsLocationsAgentsTestCasesResultsService(s *Service) *ProjectsLocationsAgentsTestCasesResultsService {
   436  	rs := &ProjectsLocationsAgentsTestCasesResultsService{s: s}
   437  	return rs
   438  }
   439  
   440  type ProjectsLocationsAgentsTestCasesResultsService struct {
   441  	s *Service
   442  }
   443  
   444  func NewProjectsLocationsAgentsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsTransitionRouteGroupsService {
   445  	rs := &ProjectsLocationsAgentsTransitionRouteGroupsService{s: s}
   446  	return rs
   447  }
   448  
   449  type ProjectsLocationsAgentsTransitionRouteGroupsService struct {
   450  	s *Service
   451  }
   452  
   453  func NewProjectsLocationsAgentsWebhooksService(s *Service) *ProjectsLocationsAgentsWebhooksService {
   454  	rs := &ProjectsLocationsAgentsWebhooksService{s: s}
   455  	return rs
   456  }
   457  
   458  type ProjectsLocationsAgentsWebhooksService struct {
   459  	s *Service
   460  }
   461  
   462  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   463  	rs := &ProjectsLocationsOperationsService{s: s}
   464  	return rs
   465  }
   466  
   467  type ProjectsLocationsOperationsService struct {
   468  	s *Service
   469  }
   470  
   471  func NewProjectsLocationsSecuritySettingsService(s *Service) *ProjectsLocationsSecuritySettingsService {
   472  	rs := &ProjectsLocationsSecuritySettingsService{s: s}
   473  	return rs
   474  }
   475  
   476  type ProjectsLocationsSecuritySettingsService struct {
   477  	s *Service
   478  }
   479  
   480  func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
   481  	rs := &ProjectsOperationsService{s: s}
   482  	return rs
   483  }
   484  
   485  type ProjectsOperationsService struct {
   486  	s *Service
   487  }
   488  
   489  // GoogleCloudDialogflowCxV3AdvancedSettings: Hierarchical advanced settings
   490  // for agent/flow/page/fulfillment/parameter. Settings exposed at lower level
   491  // overrides the settings exposed at higher level. Overriding occurs at the
   492  // sub-setting level. For example, the playback_interruption_settings at
   493  // fulfillment level only overrides the playback_interruption_settings at the
   494  // agent level, leaving other settings at the agent level unchanged. DTMF
   495  // settings does not override each other. DTMF settings set at different levels
   496  // define DTMF detections running in parallel. Hierarchy:
   497  // Agent->Flow->Page->Fulfillment/Parameter.
   498  type GoogleCloudDialogflowCxV3AdvancedSettings struct {
   499  	// AudioExportGcsDestination: If present, incoming audio is exported by
   500  	// Dialogflow to the configured Google Cloud Storage destination. Exposed at
   501  	// the following levels: - Agent level - Flow level
   502  	AudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`
   503  	// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent
   504  	// level - Flow level - Page level - Parameter level.
   505  	DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
   506  	// LoggingSettings: Settings for logging. Settings for Dialogflow History,
   507  	// Contact Center messages, StackDriver logs, and speech logging. Exposed at
   508  	// the following levels: - Agent level.
   509  	LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
   510  	// SpeechSettings: Settings for speech to text detection. Exposed at the
   511  	// following levels: - Agent level - Flow level - Page level - Parameter level
   512  	SpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
   513  	// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")
   514  	// to unconditionally include in API requests. By default, fields with empty or
   515  	// default values are omitted from API requests. See
   516  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   517  	// details.
   518  	ForceSendFields []string `json:"-"`
   519  	// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to
   520  	// include in API requests with the JSON null value. By default, fields with
   521  	// empty values are omitted from API requests. See
   522  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   523  	NullFields []string `json:"-"`
   524  }
   525  
   526  func (s *GoogleCloudDialogflowCxV3AdvancedSettings) MarshalJSON() ([]byte, error) {
   527  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettings
   528  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   529  }
   530  
   531  // GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings: Define behaviors for
   532  // DTMF (dual tone multi frequency).
   533  type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {
   534  	// Enabled: If true, incoming audio is processed for DTMF (dual tone multi
   535  	// frequency) events. For example, if the caller presses a button on their
   536  	// telephone keypad and DTMF processing is enabled, Dialogflow will detect the
   537  	// event (e.g. a "3" was pressed) in the incoming audio and pass the event to
   538  	// the bot to drive business logic (e.g. when 3 is pressed, return the account
   539  	// balance).
   540  	Enabled bool `json:"enabled,omitempty"`
   541  	// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input
   542  	// to regex.
   543  	EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
   544  	// FinishDigit: The digit that terminates a DTMF digit sequence.
   545  	FinishDigit string `json:"finishDigit,omitempty"`
   546  	// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf
   547  	// input to regex.
   548  	InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
   549  	// MaxDigits: Max length of DTMF digits.
   550  	MaxDigits int64 `json:"maxDigits,omitempty"`
   551  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
   552  	// include in API requests. By default, fields with empty or default values are
   553  	// omitted from API requests. See
   554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   555  	// details.
   556  	ForceSendFields []string `json:"-"`
   557  	// NullFields is a list of field names (e.g. "Enabled") to include in API
   558  	// requests with the JSON null value. By default, fields with empty values are
   559  	// omitted from API requests. See
   560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   561  	NullFields []string `json:"-"`
   562  }
   563  
   564  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
   565  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
   566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   567  }
   568  
   569  // GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviors
   570  // on logging.
   571  type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {
   572  	// EnableInteractionLogging: If true, DF Interaction logging is currently
   573  	// enabled.
   574  	EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
   575  	// EnableStackdriverLogging: If true, StackDriver logging is currently enabled.
   576  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
   577  	// ForceSendFields is a list of field names (e.g. "EnableInteractionLogging")
   578  	// to unconditionally include in API requests. By default, fields with empty or
   579  	// default values are omitted from API requests. See
   580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   581  	// details.
   582  	ForceSendFields []string `json:"-"`
   583  	// NullFields is a list of field names (e.g. "EnableInteractionLogging") to
   584  	// include in API requests with the JSON null value. By default, fields with
   585  	// empty values are omitted from API requests. See
   586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   587  	NullFields []string `json:"-"`
   588  }
   589  
   590  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
   591  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
   592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   593  }
   594  
   595  // GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings: Define behaviors of
   596  // speech to text detection.
   597  type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {
   598  	// EndpointerSensitivity: Sensitivity of the speech model that detects the end
   599  	// of speech. Scale from 0 to 100.
   600  	EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
   601  	// Models: Mapping from language to Speech-to-Text model. The mapped
   602  	// Speech-to-Text model will be selected for requests from its corresponding
   603  	// language. For more information, see Speech models
   604  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
   605  	Models map[string]string `json:"models,omitempty"`
   606  	// NoSpeechTimeout: Timeout before detecting no speech.
   607  	NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
   608  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
   609  	// endpointer sensitivy as seconds of timeout value.
   610  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
   611  	// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to
   612  	// unconditionally include in API requests. By default, fields with empty or
   613  	// default values are omitted from API requests. See
   614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   615  	// details.
   616  	ForceSendFields []string `json:"-"`
   617  	// NullFields is a list of field names (e.g. "EndpointerSensitivity") to
   618  	// include in API requests with the JSON null value. By default, fields with
   619  	// empty values are omitted from API requests. See
   620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   621  	NullFields []string `json:"-"`
   622  }
   623  
   624  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
   625  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
   626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   627  }
   628  
   629  // GoogleCloudDialogflowCxV3AudioInput: Represents the natural speech audio to
   630  // be processed.
   631  type GoogleCloudDialogflowCxV3AudioInput struct {
   632  	// Audio: The natural language speech audio to be processed. A single request
   633  	// can contain up to 2 minutes of speech audio data. The transcribed text
   634  	// cannot contain more than 256 bytes. For non-streaming audio detect intent,
   635  	// both `config` and `audio` must be provided. For streaming audio detect
   636  	// intent, `config` must be provided in the first request and `audio` must be
   637  	// provided in all following requests.
   638  	Audio string `json:"audio,omitempty"`
   639  	// Config: Required. Instructs the speech recognizer how to process the speech
   640  	// audio.
   641  	Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
   642  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
   643  	// include in API requests. By default, fields with empty or default values are
   644  	// omitted from API requests. See
   645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   646  	// details.
   647  	ForceSendFields []string `json:"-"`
   648  	// NullFields is a list of field names (e.g. "Audio") to include in API
   649  	// requests with the JSON null value. By default, fields with empty values are
   650  	// omitted from API requests. See
   651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   652  	NullFields []string `json:"-"`
   653  }
   654  
   655  func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
   656  	type NoMethod GoogleCloudDialogflowCxV3AudioInput
   657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   658  }
   659  
   660  // GoogleCloudDialogflowCxV3BargeInConfig: Configuration of the barge-in
   661  // behavior. Barge-in instructs the API to return a detected utterance at a
   662  // proper time while the client is playing back the response audio from a
   663  // previous request. When the client sees the utterance, it should stop the
   664  // playback and immediately get ready for receiving the responses for the
   665  // current request. The barge-in handling requires the client to start
   666  // streaming audio input as soon as it starts playing back the audio from the
   667  // previous response. The playback is modeled into two phases: * No barge-in
   668  // phase: which goes first and during which speech detection should not be
   669  // carried out. * Barge-in phase: which follows the no barge-in phase and
   670  // during which the API starts speech detection and may inform the client that
   671  // an utterance has been detected. Note that no-speech event is not expected in
   672  // this phase. The client provides this configuration in terms of the durations
   673  // of those two phases. The durations are measured in terms of the audio length
   674  // from the the start of the input audio. No-speech event is a response with
   675  // END_OF_UTTERANCE without any transcript following up.
   676  type GoogleCloudDialogflowCxV3BargeInConfig struct {
   677  	// NoBargeInDuration: Duration that is not eligible for barge-in at the
   678  	// beginning of the input audio.
   679  	NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
   680  	// TotalDuration: Total duration for the playback at the beginning of the input
   681  	// audio.
   682  	TotalDuration string `json:"totalDuration,omitempty"`
   683  	// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to
   684  	// unconditionally include in API requests. By default, fields with empty or
   685  	// default values are omitted from API requests. See
   686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   687  	// details.
   688  	ForceSendFields []string `json:"-"`
   689  	// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in
   690  	// API requests with the JSON null value. By default, fields with empty values
   691  	// are omitted from API requests. See
   692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   693  	NullFields []string `json:"-"`
   694  }
   695  
   696  func (s *GoogleCloudDialogflowCxV3BargeInConfig) MarshalJSON() ([]byte, error) {
   697  	type NoMethod GoogleCloudDialogflowCxV3BargeInConfig
   698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   699  }
   700  
   701  // GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata: Metadata returned for
   702  // the TestCases.BatchRunTestCases long running operation.
   703  type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
   704  	// Errors: The test errors.
   705  	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
   706  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
   707  	// include in API requests. By default, fields with empty or default values are
   708  	// omitted from API requests. See
   709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   710  	// details.
   711  	ForceSendFields []string `json:"-"`
   712  	// NullFields is a list of field names (e.g. "Errors") to include in API
   713  	// requests with the JSON null value. By default, fields with empty values are
   714  	// omitted from API requests. See
   715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   716  	NullFields []string `json:"-"`
   717  }
   718  
   719  func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
   720  	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
   721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   722  }
   723  
   724  // GoogleCloudDialogflowCxV3BatchRunTestCasesResponse: The response message for
   725  // TestCases.BatchRunTestCases.
   726  type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
   727  	// Results: The test case results. The detailed conversation turns are empty in
   728  	// this response.
   729  	Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
   730  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
   731  	// include in API requests. By default, fields with empty or default values are
   732  	// omitted from API requests. See
   733  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   734  	// details.
   735  	ForceSendFields []string `json:"-"`
   736  	// NullFields is a list of field names (e.g. "Results") to include in API
   737  	// requests with the JSON null value. By default, fields with empty values are
   738  	// omitted from API requests. See
   739  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   740  	NullFields []string `json:"-"`
   741  }
   742  
   743  func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
   744  	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
   745  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   746  }
   747  
   748  // GoogleCloudDialogflowCxV3ContinuousTestResult: Represents a result from
   749  // running a test case in an agent environment.
   750  type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
   751  	// Name: The resource name for the continuous test result. Format:
   752  	// `projects//locations//agents//environments//continuousTestResults/`.
   753  	Name string `json:"name,omitempty"`
   754  	// Result: The result of this continuous test run, i.e. whether all the tests
   755  	// in this continuous test run pass or not.
   756  	//
   757  	// Possible values:
   758  	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be
   759  	// used.
   760  	//   "PASSED" - All the tests passed.
   761  	//   "FAILED" - At least one test did not pass.
   762  	Result string `json:"result,omitempty"`
   763  	// RunTime: Time when the continuous testing run starts.
   764  	RunTime string `json:"runTime,omitempty"`
   765  	// TestCaseResults: A list of individual test case results names in this
   766  	// continuous test run.
   767  	TestCaseResults []string `json:"testCaseResults,omitempty"`
   768  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   769  	// include in API requests. By default, fields with empty or default values are
   770  	// omitted from API requests. See
   771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   772  	// details.
   773  	ForceSendFields []string `json:"-"`
   774  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   775  	// with the JSON null value. By default, fields with empty values are omitted
   776  	// from API requests. See
   777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   778  	NullFields []string `json:"-"`
   779  }
   780  
   781  func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
   782  	type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
   783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   784  }
   785  
   786  // GoogleCloudDialogflowCxV3ConversationSignals: This message is used to hold
   787  // all the Conversation Signals data, which will be converted to JSON and
   788  // exported to BigQuery.
   789  type GoogleCloudDialogflowCxV3ConversationSignals struct {
   790  	// TurnSignals: Required. Turn signals for the current turn.
   791  	TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`
   792  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
   793  	// unconditionally include in API requests. By default, fields with empty or
   794  	// default values are omitted from API requests. See
   795  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   796  	// details.
   797  	ForceSendFields []string `json:"-"`
   798  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
   799  	// requests with the JSON null value. By default, fields with empty values are
   800  	// omitted from API requests. See
   801  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   802  	NullFields []string `json:"-"`
   803  }
   804  
   805  func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) {
   806  	type NoMethod GoogleCloudDialogflowCxV3ConversationSignals
   807  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   808  }
   809  
   810  // GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a human
   811  // and virtual agent. The human provides some input and the virtual agent
   812  // provides a response.
   813  type GoogleCloudDialogflowCxV3ConversationTurn struct {
   814  	// UserInput: The user input.
   815  	UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
   816  	// VirtualAgentOutput: The virtual agent output.
   817  	VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
   818  	// ForceSendFields is a list of field names (e.g. "UserInput") to
   819  	// unconditionally include in API requests. By default, fields with empty or
   820  	// default values are omitted from API requests. See
   821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   822  	// details.
   823  	ForceSendFields []string `json:"-"`
   824  	// NullFields is a list of field names (e.g. "UserInput") to include in API
   825  	// requests with the JSON null value. By default, fields with empty values are
   826  	// omitted from API requests. See
   827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   828  	NullFields []string `json:"-"`
   829  }
   830  
   831  func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
   832  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
   833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   834  }
   835  
   836  // GoogleCloudDialogflowCxV3ConversationTurnUserInput: The input from the human
   837  // user.
   838  type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
   839  	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
   840  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
   841  	// InjectedParameters: Parameters that need to be injected into the
   842  	// conversation during intent detection.
   843  	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
   844  	// Input: Supports text input, event input, dtmf input in the test case.
   845  	Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
   846  	// IsWebhookEnabled: If webhooks should be allowed to trigger in response to
   847  	// the user utterance. Often if parameters are injected, webhooks should not be
   848  	// enabled.
   849  	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
   850  	// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to
   851  	// unconditionally include in API requests. By default, fields with empty or
   852  	// default values are omitted from API requests. See
   853  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   854  	// details.
   855  	ForceSendFields []string `json:"-"`
   856  	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to
   857  	// include in API requests with the JSON null value. By default, fields with
   858  	// empty values are omitted from API requests. See
   859  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   860  	NullFields []string `json:"-"`
   861  }
   862  
   863  func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
   864  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
   865  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   866  }
   867  
   868  // GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput: The output from
   869  // the virtual agent.
   870  type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
   871  	// CurrentPage: The Page on which the utterance was spoken. Only name and
   872  	// displayName will be set.
   873  	CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
   874  	// DiagnosticInfo: Required. Input only. The diagnostic info output for the
   875  	// turn. Required to calculate the testing coverage.
   876  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
   877  	// Differences: Output only. If this is part of a result conversation turn, the
   878  	// list of differences between the original run and the replay for this output,
   879  	// if any.
   880  	Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
   881  	// SessionParameters: The session parameters available to the bot at this
   882  	// point.
   883  	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
   884  	// Status: Response error from the agent in the test result. If set, other
   885  	// output is empty.
   886  	Status *GoogleRpcStatus `json:"status,omitempty"`
   887  	// TextResponses: The text responses from the agent for the turn.
   888  	TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
   889  	// TriggeredIntent: The Intent that triggered the response. Only name and
   890  	// displayName will be set.
   891  	TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
   892  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
   893  	// unconditionally include in API requests. By default, fields with empty or
   894  	// default values are omitted from API requests. See
   895  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   896  	// details.
   897  	ForceSendFields []string `json:"-"`
   898  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
   899  	// requests with the JSON null value. By default, fields with empty values are
   900  	// omitted from API requests. See
   901  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   902  	NullFields []string `json:"-"`
   903  }
   904  
   905  func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
   906  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
   907  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   908  }
   909  
   910  // GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata: Metadata for
   911  // CreateDocument operation.
   912  type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
   913  	// GenericMetadata: The generic information of the operation.
   914  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
   915  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
   916  	// unconditionally include in API requests. By default, fields with empty or
   917  	// default values are omitted from API requests. See
   918  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   919  	// details.
   920  	ForceSendFields []string `json:"-"`
   921  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
   922  	// API requests with the JSON null value. By default, fields with empty values
   923  	// are omitted from API requests. See
   924  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   925  	NullFields []string `json:"-"`
   926  }
   927  
   928  func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
   929  	type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
   930  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   931  }
   932  
   933  // GoogleCloudDialogflowCxV3CreateVersionOperationMetadata: Metadata associated
   934  // with the long running operation for Versions.CreateVersion.
   935  type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
   936  	// Version: Name of the created version. Format:
   937  	// `projects//locations//agents//flows//versions/`.
   938  	Version string `json:"version,omitempty"`
   939  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
   940  	// include in API requests. By default, fields with empty or default values are
   941  	// omitted from API requests. See
   942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   943  	// details.
   944  	ForceSendFields []string `json:"-"`
   945  	// NullFields is a list of field names (e.g. "Version") to include in API
   946  	// requests with the JSON null value. By default, fields with empty values are
   947  	// omitted from API requests. See
   948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   949  	NullFields []string `json:"-"`
   950  }
   951  
   952  func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
   953  	type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
   954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   955  }
   956  
   957  // GoogleCloudDialogflowCxV3DataStoreConnection: A data store connection. It
   958  // represents a data store in Discovery Engine and the type of the contents it
   959  // contains.
   960  type GoogleCloudDialogflowCxV3DataStoreConnection struct {
   961  	// DataStore: The full name of the referenced data store. Formats:
   962  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
   963  	// {data_store}`
   964  	// `projects/{project}/locations/{location}/dataStores/{data_store}`
   965  	DataStore string `json:"dataStore,omitempty"`
   966  	// DataStoreType: The type of the connected data store.
   967  	//
   968  	// Possible values:
   969  	//   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that
   970  	// the data store type is not specified, so it will not be used during search.
   971  	//   "PUBLIC_WEB" - A data store that contains public web content.
   972  	//   "UNSTRUCTURED" - A data store that contains unstructured private data.
   973  	//   "STRUCTURED" - A data store that contains structured data (for example
   974  	// FAQ).
   975  	DataStoreType string `json:"dataStoreType,omitempty"`
   976  	// ForceSendFields is a list of field names (e.g. "DataStore") to
   977  	// unconditionally include in API requests. By default, fields with empty or
   978  	// default values are omitted from API requests. See
   979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   980  	// details.
   981  	ForceSendFields []string `json:"-"`
   982  	// NullFields is a list of field names (e.g. "DataStore") to include in API
   983  	// requests with the JSON null value. By default, fields with empty values are
   984  	// omitted from API requests. See
   985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   986  	NullFields []string `json:"-"`
   987  }
   988  
   989  func (s *GoogleCloudDialogflowCxV3DataStoreConnection) MarshalJSON() ([]byte, error) {
   990  	type NoMethod GoogleCloudDialogflowCxV3DataStoreConnection
   991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   992  }
   993  
   994  // GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata: Metadata for
   995  // DeleteDocument operation.
   996  type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
   997  	// GenericMetadata: The generic information of the operation.
   998  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
   999  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  1000  	// unconditionally include in API requests. By default, fields with empty or
  1001  	// default values are omitted from API requests. See
  1002  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1003  	// details.
  1004  	ForceSendFields []string `json:"-"`
  1005  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  1006  	// API requests with the JSON null value. By default, fields with empty values
  1007  	// are omitted from API requests. See
  1008  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1009  	NullFields []string `json:"-"`
  1010  }
  1011  
  1012  func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  1013  	type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
  1014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1015  }
  1016  
  1017  // GoogleCloudDialogflowCxV3DeployFlowMetadata: Metadata returned for the
  1018  // Environments.DeployFlow long running operation.
  1019  type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {
  1020  	// TestErrors: Errors of running deployment tests.
  1021  	TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`
  1022  	// ForceSendFields is a list of field names (e.g. "TestErrors") to
  1023  	// unconditionally include in API requests. By default, fields with empty or
  1024  	// default values are omitted from API requests. See
  1025  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1026  	// details.
  1027  	ForceSendFields []string `json:"-"`
  1028  	// NullFields is a list of field names (e.g. "TestErrors") to include in API
  1029  	// requests with the JSON null value. By default, fields with empty values are
  1030  	// omitted from API requests. See
  1031  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1032  	NullFields []string `json:"-"`
  1033  }
  1034  
  1035  func (s *GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, error) {
  1036  	type NoMethod GoogleCloudDialogflowCxV3DeployFlowMetadata
  1037  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1038  }
  1039  
  1040  // GoogleCloudDialogflowCxV3DeployFlowResponse: The response message for
  1041  // Environments.DeployFlow.
  1042  type GoogleCloudDialogflowCxV3DeployFlowResponse struct {
  1043  	// Deployment: The name of the flow version Deployment. Format:
  1044  	// `projects//locations//agents// environments//deployments/`.
  1045  	Deployment string `json:"deployment,omitempty"`
  1046  	// Environment: The updated environment where the flow is deployed.
  1047  	Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`
  1048  	// ForceSendFields is a list of field names (e.g. "Deployment") to
  1049  	// unconditionally include in API requests. By default, fields with empty or
  1050  	// default values are omitted from API requests. See
  1051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1052  	// details.
  1053  	ForceSendFields []string `json:"-"`
  1054  	// NullFields is a list of field names (e.g. "Deployment") to include in API
  1055  	// requests with the JSON null value. By default, fields with empty values are
  1056  	// omitted from API requests. See
  1057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1058  	NullFields []string `json:"-"`
  1059  }
  1060  
  1061  func (s *GoogleCloudDialogflowCxV3DeployFlowResponse) MarshalJSON() ([]byte, error) {
  1062  	type NoMethod GoogleCloudDialogflowCxV3DeployFlowResponse
  1063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1064  }
  1065  
  1066  // GoogleCloudDialogflowCxV3DtmfInput: Represents the input for dtmf event.
  1067  type GoogleCloudDialogflowCxV3DtmfInput struct {
  1068  	// Digits: The dtmf digits.
  1069  	Digits string `json:"digits,omitempty"`
  1070  	// FinishDigit: The finish digit (if any).
  1071  	FinishDigit string `json:"finishDigit,omitempty"`
  1072  	// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally
  1073  	// include in API requests. By default, fields with empty or default values are
  1074  	// omitted from API requests. See
  1075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1076  	// details.
  1077  	ForceSendFields []string `json:"-"`
  1078  	// NullFields is a list of field names (e.g. "Digits") to include in API
  1079  	// requests with the JSON null value. By default, fields with empty values are
  1080  	// omitted from API requests. See
  1081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1082  	NullFields []string `json:"-"`
  1083  }
  1084  
  1085  func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
  1086  	type NoMethod GoogleCloudDialogflowCxV3DtmfInput
  1087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1088  }
  1089  
  1090  // GoogleCloudDialogflowCxV3Environment: Represents an environment for an
  1091  // agent. You can create multiple versions of your agent and publish them to
  1092  // separate environments. When you edit an agent, you are editing the draft
  1093  // agent. At any point, you can save the draft agent as an agent version, which
  1094  // is an immutable snapshot of your agent. When you save the draft agent, it is
  1095  // published to the default environment. When you create agent versions, you
  1096  // can publish them to custom environments. You can create a variety of custom
  1097  // environments for testing, development, production, etc.
  1098  type GoogleCloudDialogflowCxV3Environment struct {
  1099  	// Description: The human-readable description of the environment. The maximum
  1100  	// length is 500 characters. If exceeded, the request is rejected.
  1101  	Description string `json:"description,omitempty"`
  1102  	// DisplayName: Required. The human-readable name of the environment (unique in
  1103  	// an agent). Limit of 64 characters.
  1104  	DisplayName string `json:"displayName,omitempty"`
  1105  	// Name: The name of the environment. Format:
  1106  	// `projects//locations//agents//environments/`.
  1107  	Name string `json:"name,omitempty"`
  1108  	// TestCasesConfig: The test cases config for continuous tests of this
  1109  	// environment.
  1110  	TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
  1111  	// UpdateTime: Output only. Update time of this environment.
  1112  	UpdateTime string `json:"updateTime,omitempty"`
  1113  	// VersionConfigs: A list of configurations for flow versions. You should
  1114  	// include version configs for all flows that are reachable from `Start Flow`
  1115  	// in the agent. Otherwise, an error will be returned.
  1116  	VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
  1117  	// WebhookConfig: The webhook configuration for this environment.
  1118  	WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
  1119  	// ForceSendFields is a list of field names (e.g. "Description") to
  1120  	// unconditionally include in API requests. By default, fields with empty or
  1121  	// default values are omitted from API requests. See
  1122  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1123  	// details.
  1124  	ForceSendFields []string `json:"-"`
  1125  	// NullFields is a list of field names (e.g. "Description") to include in API
  1126  	// requests with the JSON null value. By default, fields with empty values are
  1127  	// omitted from API requests. See
  1128  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1129  	NullFields []string `json:"-"`
  1130  }
  1131  
  1132  func (s *GoogleCloudDialogflowCxV3Environment) MarshalJSON() ([]byte, error) {
  1133  	type NoMethod GoogleCloudDialogflowCxV3Environment
  1134  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1135  }
  1136  
  1137  // GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig: The configuration for
  1138  // continuous tests.
  1139  type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {
  1140  	// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases
  1141  	// periodically. Default false. If set to true, run once a day.
  1142  	EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
  1143  	// EnablePredeploymentRun: Whether to run test cases in
  1144  	// TestCasesConfig.test_cases before deploying a flow version to the
  1145  	// environment. Default false.
  1146  	EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
  1147  	// TestCases: A list of test case names to run. They should be under the same
  1148  	// agent. Format of each test case name: `projects//locations/
  1149  	// /agents//testCases/`
  1150  	TestCases []string `json:"testCases,omitempty"`
  1151  	// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to
  1152  	// unconditionally include in API requests. By default, fields with empty or
  1153  	// default values are omitted from API requests. See
  1154  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1155  	// details.
  1156  	ForceSendFields []string `json:"-"`
  1157  	// NullFields is a list of field names (e.g. "EnableContinuousRun") to include
  1158  	// in API requests with the JSON null value. By default, fields with empty
  1159  	// values are omitted from API requests. See
  1160  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1161  	NullFields []string `json:"-"`
  1162  }
  1163  
  1164  func (s *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
  1165  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
  1166  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1167  }
  1168  
  1169  // GoogleCloudDialogflowCxV3EnvironmentVersionConfig: Configuration for the
  1170  // version.
  1171  type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {
  1172  	// Version: Required. Format: projects//locations//agents//flows//versions/.
  1173  	Version string `json:"version,omitempty"`
  1174  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  1175  	// include in API requests. By default, fields with empty or default values are
  1176  	// omitted from API requests. See
  1177  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1178  	// details.
  1179  	ForceSendFields []string `json:"-"`
  1180  	// NullFields is a list of field names (e.g. "Version") to include in API
  1181  	// requests with the JSON null value. By default, fields with empty values are
  1182  	// omitted from API requests. See
  1183  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1184  	NullFields []string `json:"-"`
  1185  }
  1186  
  1187  func (s *GoogleCloudDialogflowCxV3EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
  1188  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentVersionConfig
  1189  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1190  }
  1191  
  1192  // GoogleCloudDialogflowCxV3EnvironmentWebhookConfig: Configuration for
  1193  // webhooks.
  1194  type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {
  1195  	// WebhookOverrides: The list of webhooks to override for the agent
  1196  	// environment. The webhook must exist in the agent. You can override fields in
  1197  	// `generic_web_service` and `service_directory`.
  1198  	WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`
  1199  	// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to
  1200  	// unconditionally include in API requests. By default, fields with empty or
  1201  	// default values are omitted from API requests. See
  1202  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1203  	// details.
  1204  	ForceSendFields []string `json:"-"`
  1205  	// NullFields is a list of field names (e.g. "WebhookOverrides") to include in
  1206  	// API requests with the JSON null value. By default, fields with empty values
  1207  	// are omitted from API requests. See
  1208  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1209  	NullFields []string `json:"-"`
  1210  }
  1211  
  1212  func (s *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
  1213  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentWebhookConfig
  1214  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1215  }
  1216  
  1217  // GoogleCloudDialogflowCxV3EventHandler: An event handler specifies an event
  1218  // that can be handled during a session. When the specified event happens, the
  1219  // following actions are taken in order: * If there is a `trigger_fulfillment`
  1220  // associated with the event, it will be called. * If there is a `target_page`
  1221  // associated with the event, the session will transition into the specified
  1222  // page. * If there is a `target_flow` associated with the event, the session
  1223  // will transition into the specified flow.
  1224  type GoogleCloudDialogflowCxV3EventHandler struct {
  1225  	// Event: Required. The name of the event to handle.
  1226  	Event string `json:"event,omitempty"`
  1227  	// Name: Output only. The unique identifier of this event handler.
  1228  	Name string `json:"name,omitempty"`
  1229  	// TargetFlow: The target flow to transition to. Format:
  1230  	// `projects//locations//agents//flows/`.
  1231  	TargetFlow string `json:"targetFlow,omitempty"`
  1232  	// TargetPage: The target page to transition to. Format:
  1233  	// `projects//locations//agents//flows//pages/`.
  1234  	TargetPage string `json:"targetPage,omitempty"`
  1235  	// TriggerFulfillment: The fulfillment to call when the event occurs. Handling
  1236  	// webhook errors with a fulfillment enabled with webhook could cause infinite
  1237  	// loop. It is invalid to specify such fulfillment for a handler handling
  1238  	// webhooks.
  1239  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  1240  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  1241  	// include in API requests. By default, fields with empty or default values are
  1242  	// omitted from API requests. See
  1243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1244  	// details.
  1245  	ForceSendFields []string `json:"-"`
  1246  	// NullFields is a list of field names (e.g. "Event") to include in API
  1247  	// requests with the JSON null value. By default, fields with empty values are
  1248  	// omitted from API requests. See
  1249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1250  	NullFields []string `json:"-"`
  1251  }
  1252  
  1253  func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
  1254  	type NoMethod GoogleCloudDialogflowCxV3EventHandler
  1255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1256  }
  1257  
  1258  // GoogleCloudDialogflowCxV3EventInput: Represents the event to trigger.
  1259  type GoogleCloudDialogflowCxV3EventInput struct {
  1260  	// Event: Name of the event.
  1261  	Event string `json:"event,omitempty"`
  1262  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  1263  	// include in API requests. By default, fields with empty or default values are
  1264  	// omitted from API requests. See
  1265  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1266  	// details.
  1267  	ForceSendFields []string `json:"-"`
  1268  	// NullFields is a list of field names (e.g. "Event") to include in API
  1269  	// requests with the JSON null value. By default, fields with empty values are
  1270  	// omitted from API requests. See
  1271  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1272  	NullFields []string `json:"-"`
  1273  }
  1274  
  1275  func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
  1276  	type NoMethod GoogleCloudDialogflowCxV3EventInput
  1277  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1278  }
  1279  
  1280  // GoogleCloudDialogflowCxV3ExportAgentResponse: The response message for
  1281  // Agents.ExportAgent.
  1282  type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
  1283  	// AgentContent: Uncompressed raw byte content for agent. This field is
  1284  	// populated if none of `agent_uri` and `git_destination` are specified in
  1285  	// ExportAgentRequest.
  1286  	AgentContent string `json:"agentContent,omitempty"`
  1287  	// AgentUri: The URI to a file containing the exported agent. This field is
  1288  	// populated if `agent_uri` is specified in ExportAgentRequest.
  1289  	AgentUri string `json:"agentUri,omitempty"`
  1290  	// CommitSha: Commit SHA of the git push. This field is populated if
  1291  	// `git_destination` is specified in ExportAgentRequest.
  1292  	CommitSha string `json:"commitSha,omitempty"`
  1293  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
  1294  	// unconditionally include in API requests. By default, fields with empty or
  1295  	// default values are omitted from API requests. See
  1296  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1297  	// details.
  1298  	ForceSendFields []string `json:"-"`
  1299  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
  1300  	// requests with the JSON null value. By default, fields with empty values are
  1301  	// omitted from API requests. See
  1302  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1303  	NullFields []string `json:"-"`
  1304  }
  1305  
  1306  func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
  1307  	type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
  1308  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1309  }
  1310  
  1311  // GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned for
  1312  // the EntityTypes.ExportEntityTypes long running operation.
  1313  type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {
  1314  }
  1315  
  1316  // GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response message for
  1317  // EntityTypes.ExportEntityTypes.
  1318  type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {
  1319  	// EntityTypesContent: Uncompressed byte content for entity types. This field
  1320  	// is populated only if `entity_types_content_inline` is set to true in
  1321  	// ExportEntityTypesRequest.
  1322  	EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`
  1323  	// EntityTypesUri: The URI to a file containing the exported entity types. This
  1324  	// field is populated only if `entity_types_uri` is specified in
  1325  	// ExportEntityTypesRequest.
  1326  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  1327  	// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to
  1328  	// unconditionally include in API requests. By default, fields with empty or
  1329  	// default values are omitted from API requests. See
  1330  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1331  	// details.
  1332  	ForceSendFields []string `json:"-"`
  1333  	// NullFields is a list of field names (e.g. "EntityTypesContent") to include
  1334  	// in API requests with the JSON null value. By default, fields with empty
  1335  	// values are omitted from API requests. See
  1336  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1337  	NullFields []string `json:"-"`
  1338  }
  1339  
  1340  func (s *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  1341  	type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse
  1342  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1343  }
  1344  
  1345  // GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for
  1346  // Flows.ExportFlow.
  1347  type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
  1348  	// FlowContent: Uncompressed raw byte content for flow.
  1349  	FlowContent string `json:"flowContent,omitempty"`
  1350  	// FlowUri: The URI to a file containing the exported flow. This field is
  1351  	// populated only if `flow_uri` is specified in ExportFlowRequest.
  1352  	FlowUri string `json:"flowUri,omitempty"`
  1353  	// ForceSendFields is a list of field names (e.g. "FlowContent") to
  1354  	// unconditionally include in API requests. By default, fields with empty or
  1355  	// default values are omitted from API requests. See
  1356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1357  	// details.
  1358  	ForceSendFields []string `json:"-"`
  1359  	// NullFields is a list of field names (e.g. "FlowContent") to include in API
  1360  	// requests with the JSON null value. By default, fields with empty values are
  1361  	// omitted from API requests. See
  1362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1363  	NullFields []string `json:"-"`
  1364  }
  1365  
  1366  func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
  1367  	type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
  1368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1369  }
  1370  
  1371  // GoogleCloudDialogflowCxV3ExportIntentsMetadata: Metadata returned for the
  1372  // Intents.ExportIntents long running operation.
  1373  type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {
  1374  }
  1375  
  1376  // GoogleCloudDialogflowCxV3ExportIntentsResponse: The response message for
  1377  // Intents.ExportIntents.
  1378  type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {
  1379  	// IntentsContent: Uncompressed byte content for intents. This field is
  1380  	// populated only if `intents_content_inline` is set to true in
  1381  	// ExportIntentsRequest.
  1382  	IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`
  1383  	// IntentsUri: The URI to a file containing the exported intents. This field is
  1384  	// populated only if `intents_uri` is specified in ExportIntentsRequest.
  1385  	IntentsUri string `json:"intentsUri,omitempty"`
  1386  	// ForceSendFields is a list of field names (e.g. "IntentsContent") to
  1387  	// unconditionally include in API requests. By default, fields with empty or
  1388  	// default values are omitted from API requests. See
  1389  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1390  	// details.
  1391  	ForceSendFields []string `json:"-"`
  1392  	// NullFields is a list of field names (e.g. "IntentsContent") to include in
  1393  	// API requests with the JSON null value. By default, fields with empty values
  1394  	// are omitted from API requests. See
  1395  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1396  	NullFields []string `json:"-"`
  1397  }
  1398  
  1399  func (s *GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, error) {
  1400  	type NoMethod GoogleCloudDialogflowCxV3ExportIntentsResponse
  1401  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1402  }
  1403  
  1404  // GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned for the
  1405  // TestCases.ExportTestCases long running operation. This message currently has
  1406  // no fields.
  1407  type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
  1408  }
  1409  
  1410  // GoogleCloudDialogflowCxV3ExportTestCasesResponse: The response message for
  1411  // TestCases.ExportTestCases.
  1412  type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
  1413  	// Content: Uncompressed raw byte content for test cases.
  1414  	Content string `json:"content,omitempty"`
  1415  	// GcsUri: The URI to a file containing the exported test cases. This field is
  1416  	// populated only if `gcs_uri` is specified in ExportTestCasesRequest.
  1417  	GcsUri string `json:"gcsUri,omitempty"`
  1418  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  1419  	// include in API requests. By default, fields with empty or default values are
  1420  	// omitted from API requests. See
  1421  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1422  	// details.
  1423  	ForceSendFields []string `json:"-"`
  1424  	// NullFields is a list of field names (e.g. "Content") to include in API
  1425  	// requests with the JSON null value. By default, fields with empty values are
  1426  	// omitted from API requests. See
  1427  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1428  	NullFields []string `json:"-"`
  1429  }
  1430  
  1431  func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
  1432  	type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
  1433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1434  }
  1435  
  1436  // GoogleCloudDialogflowCxV3Form: A form is a data model that groups related
  1437  // parameters that can be collected from the user. The process in which the
  1438  // agent prompts the user and collects parameter values from the user is called
  1439  // form filling. A form can be added to a page. When form filling is done, the
  1440  // filled parameters will be written to the session.
  1441  type GoogleCloudDialogflowCxV3Form struct {
  1442  	// Parameters: Parameters to collect from the user.
  1443  	Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
  1444  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  1445  	// unconditionally include in API requests. By default, fields with empty or
  1446  	// default values are omitted from API requests. See
  1447  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1448  	// details.
  1449  	ForceSendFields []string `json:"-"`
  1450  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  1451  	// requests with the JSON null value. By default, fields with empty values are
  1452  	// omitted from API requests. See
  1453  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1454  	NullFields []string `json:"-"`
  1455  }
  1456  
  1457  func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
  1458  	type NoMethod GoogleCloudDialogflowCxV3Form
  1459  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1460  }
  1461  
  1462  // GoogleCloudDialogflowCxV3FormParameter: Represents a form parameter.
  1463  type GoogleCloudDialogflowCxV3FormParameter struct {
  1464  	// AdvancedSettings: Hierarchical advanced settings for this parameter. The
  1465  	// settings exposed at the lower level overrides the settings exposed at the
  1466  	// higher level.
  1467  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  1468  	// DefaultValue: The default value of an optional parameter. If the parameter
  1469  	// is required, the default value will be ignored.
  1470  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  1471  	// DisplayName: Required. The human-readable name of the parameter, unique
  1472  	// within the form.
  1473  	DisplayName string `json:"displayName,omitempty"`
  1474  	// EntityType: Required. The entity type of the parameter. Format:
  1475  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  1476  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  1477  	// `projects//locations//agents//entityTypes/` for developer entity types.
  1478  	EntityType string `json:"entityType,omitempty"`
  1479  	// FillBehavior: Required. Defines fill behavior for the parameter.
  1480  	FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
  1481  	// IsList: Indicates whether the parameter represents a list of values.
  1482  	IsList bool `json:"isList,omitempty"`
  1483  	// Redact: Indicates whether the parameter content should be redacted in log.
  1484  	// If redaction is enabled, the parameter content will be replaced by parameter
  1485  	// name during logging. Note: the parameter content is subject to redaction if
  1486  	// either parameter level redaction or entity type level redaction is enabled.
  1487  	Redact bool `json:"redact,omitempty"`
  1488  	// Required: Indicates whether the parameter is required. Optional parameters
  1489  	// will not trigger prompts; however, they are filled if the user specifies
  1490  	// them. Required parameters must be filled before form filling concludes.
  1491  	Required bool `json:"required,omitempty"`
  1492  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  1493  	// unconditionally include in API requests. By default, fields with empty or
  1494  	// default values are omitted from API requests. See
  1495  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1496  	// details.
  1497  	ForceSendFields []string `json:"-"`
  1498  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  1499  	// API requests with the JSON null value. By default, fields with empty values
  1500  	// are omitted from API requests. See
  1501  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1502  	NullFields []string `json:"-"`
  1503  }
  1504  
  1505  func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
  1506  	type NoMethod GoogleCloudDialogflowCxV3FormParameter
  1507  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1508  }
  1509  
  1510  // GoogleCloudDialogflowCxV3FormParameterFillBehavior: Configuration for how
  1511  // the filling of a parameter should be handled.
  1512  type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
  1513  	// InitialPromptFulfillment: Required. The fulfillment to provide the initial
  1514  	// prompt that the agent can present to the user in order to fill the
  1515  	// parameter.
  1516  	InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
  1517  	// RepromptEventHandlers: The handlers for parameter-level events, used to
  1518  	// provide reprompt for the parameter or transition to a different page/flow.
  1519  	// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *
  1520  	// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *
  1521  	// `sys.no-input-default` * `sys.invalid-parameter`
  1522  	// `initial_prompt_fulfillment` provides the first prompt for the parameter. If
  1523  	// the user's response does not fill the parameter, a no-match/no-input event
  1524  	// will be triggered, and the fulfillment associated with the
  1525  	// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to
  1526  	// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)
  1527  	// will respond to the next no-match/no-input event, and so on. A
  1528  	// `sys.no-match-default` or `sys.no-input-default` handler will be used to
  1529  	// handle all following no-match/no-input events after all numbered
  1530  	// no-match/no-input handlers for the parameter are consumed. A
  1531  	// `sys.invalid-parameter` handler can be defined to handle the case where the
  1532  	// parameter values have been `invalidated` by webhook. For example, if the
  1533  	// user's response fill the parameter, however the parameter was invalidated by
  1534  	// webhook, the fulfillment associated with the `sys.invalid-parameter` handler
  1535  	// (if defined) will be called to provide a prompt. If the event handler for
  1536  	// the corresponding event can't be found on the parameter,
  1537  	// `initial_prompt_fulfillment` will be re-prompted.
  1538  	RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
  1539  	// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")
  1540  	// to unconditionally include in API requests. By default, fields with empty or
  1541  	// default values are omitted from API requests. See
  1542  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1543  	// details.
  1544  	ForceSendFields []string `json:"-"`
  1545  	// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to
  1546  	// include in API requests with the JSON null value. By default, fields with
  1547  	// empty values are omitted from API requests. See
  1548  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1549  	NullFields []string `json:"-"`
  1550  }
  1551  
  1552  func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
  1553  	type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
  1554  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1555  }
  1556  
  1557  // GoogleCloudDialogflowCxV3Fulfillment: A fulfillment can do one or more of
  1558  // the following actions at the same time: * Generate rich message responses. *
  1559  // Set parameter values. * Call the webhook. Fulfillments can be called at
  1560  // various stages in the Page or Form lifecycle. For example, when a
  1561  // DetectIntentRequest drives a session to enter a new page, the page's entry
  1562  // fulfillment can add a static response to the QueryResult in the returning
  1563  // DetectIntentResponse, call the webhook (for example, to load user data from
  1564  // a database), or both.
  1565  type GoogleCloudDialogflowCxV3Fulfillment struct {
  1566  	// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The
  1567  	// settings exposed at the lower level overrides the settings exposed at the
  1568  	// higher level.
  1569  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  1570  	// ConditionalCases: Conditional cases for this fulfillment.
  1571  	ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
  1572  	// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to
  1573  	// generate a text response. If LLM generation fails, the defined responses in
  1574  	// the fulfillment will be respected. This flag is only useful for fulfillments
  1575  	// associated with no-match event handlers.
  1576  	EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
  1577  	// Messages: The list of rich message responses to present to the user.
  1578  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  1579  	// ReturnPartialResponses: Whether Dialogflow should return currently queued
  1580  	// fulfillment response messages in streaming APIs. If a webhook is specified,
  1581  	// it happens before Dialogflow invokes webhook. Warning: 1) This flag only
  1582  	// affects streaming API. Responses are still queued and returned once in
  1583  	// non-streaming API. 2) The flag can be enabled in any fulfillment but only
  1584  	// the first 3 partial responses will be returned. You may only want to apply
  1585  	// it to fulfillments that have slow webhooks.
  1586  	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
  1587  	// SetParameterActions: Set parameter values before executing the webhook.
  1588  	SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
  1589  	// Tag: The value of this field will be populated in the WebhookRequest
  1590  	// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
  1591  	// called. The tag is typically used by the webhook service to identify which
  1592  	// fulfillment is being called, but it could be used for other purposes. This
  1593  	// field is required if `webhook` is specified.
  1594  	Tag string `json:"tag,omitempty"`
  1595  	// Webhook: The webhook to call. Format:
  1596  	// `projects//locations//agents//webhooks/`.
  1597  	Webhook string `json:"webhook,omitempty"`
  1598  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  1599  	// unconditionally include in API requests. By default, fields with empty or
  1600  	// default values are omitted from API requests. See
  1601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1602  	// details.
  1603  	ForceSendFields []string `json:"-"`
  1604  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  1605  	// API requests with the JSON null value. By default, fields with empty values
  1606  	// are omitted from API requests. See
  1607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1608  	NullFields []string `json:"-"`
  1609  }
  1610  
  1611  func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
  1612  	type NoMethod GoogleCloudDialogflowCxV3Fulfillment
  1613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1614  }
  1615  
  1616  // GoogleCloudDialogflowCxV3FulfillmentConditionalCases: A list of cascading
  1617  // if-else conditions. Cases are mutually exclusive. The first one with a
  1618  // matching condition is selected, all the rest ignored.
  1619  type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
  1620  	// Cases: A list of cascading if-else conditions.
  1621  	Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
  1622  	// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally
  1623  	// include in API requests. By default, fields with empty or default values are
  1624  	// omitted from API requests. See
  1625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1626  	// details.
  1627  	ForceSendFields []string `json:"-"`
  1628  	// NullFields is a list of field names (e.g. "Cases") to include in API
  1629  	// requests with the JSON null value. By default, fields with empty values are
  1630  	// omitted from API requests. See
  1631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1632  	NullFields []string `json:"-"`
  1633  }
  1634  
  1635  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
  1636  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
  1637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1638  }
  1639  
  1640  // GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase: Each case has a
  1641  // Boolean condition. When it is evaluated to be True, the corresponding
  1642  // messages will be selected and evaluated recursively.
  1643  type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
  1644  	// CaseContent: A list of case content.
  1645  	CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
  1646  	// Condition: The condition to activate and select this case. Empty means the
  1647  	// condition is always true. The condition is evaluated against form parameters
  1648  	// or session parameters. See the conditions reference
  1649  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  1650  	Condition string `json:"condition,omitempty"`
  1651  	// ForceSendFields is a list of field names (e.g. "CaseContent") to
  1652  	// unconditionally include in API requests. By default, fields with empty or
  1653  	// default values are omitted from API requests. See
  1654  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1655  	// details.
  1656  	ForceSendFields []string `json:"-"`
  1657  	// NullFields is a list of field names (e.g. "CaseContent") to include in API
  1658  	// requests with the JSON null value. By default, fields with empty values are
  1659  	// omitted from API requests. See
  1660  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1661  	NullFields []string `json:"-"`
  1662  }
  1663  
  1664  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
  1665  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
  1666  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1667  }
  1668  
  1669  // GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent: The
  1670  // list of messages or conditional cases to activate for this case.
  1671  type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
  1672  	// AdditionalCases: Additional cases to be evaluated.
  1673  	AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
  1674  	// Message: Returned message.
  1675  	Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
  1676  	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
  1677  	// unconditionally include in API requests. By default, fields with empty or
  1678  	// default values are omitted from API requests. See
  1679  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1680  	// details.
  1681  	ForceSendFields []string `json:"-"`
  1682  	// NullFields is a list of field names (e.g. "AdditionalCases") to include in
  1683  	// API requests with the JSON null value. By default, fields with empty values
  1684  	// are omitted from API requests. See
  1685  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1686  	NullFields []string `json:"-"`
  1687  }
  1688  
  1689  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
  1690  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
  1691  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1692  }
  1693  
  1694  // GoogleCloudDialogflowCxV3FulfillmentSetParameterAction: Setting a parameter
  1695  // value.
  1696  type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
  1697  	// Parameter: Display name of the parameter.
  1698  	Parameter string `json:"parameter,omitempty"`
  1699  	// Value: The new value of the parameter. A null value clears the parameter.
  1700  	Value interface{} `json:"value,omitempty"`
  1701  	// ForceSendFields is a list of field names (e.g. "Parameter") to
  1702  	// unconditionally include in API requests. By default, fields with empty or
  1703  	// default values are omitted from API requests. See
  1704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1705  	// details.
  1706  	ForceSendFields []string `json:"-"`
  1707  	// NullFields is a list of field names (e.g. "Parameter") to include in API
  1708  	// requests with the JSON null value. By default, fields with empty values are
  1709  	// omitted from API requests. See
  1710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1711  	NullFields []string `json:"-"`
  1712  }
  1713  
  1714  func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
  1715  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
  1716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1717  }
  1718  
  1719  // GoogleCloudDialogflowCxV3GcsDestination: Google Cloud Storage location for a
  1720  // Dialogflow operation that writes or exports objects (e.g. exported agent or
  1721  // transcripts) outside of Dialogflow.
  1722  type GoogleCloudDialogflowCxV3GcsDestination struct {
  1723  	// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI
  1724  	// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object
  1725  	// name, or just a prefix, its usage depends on the Dialogflow operation.
  1726  	Uri string `json:"uri,omitempty"`
  1727  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  1728  	// include in API requests. By default, fields with empty or default values are
  1729  	// omitted from API requests. See
  1730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1731  	// details.
  1732  	ForceSendFields []string `json:"-"`
  1733  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  1734  	// with the JSON null value. By default, fields with empty values are omitted
  1735  	// from API requests. See
  1736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1737  	NullFields []string `json:"-"`
  1738  }
  1739  
  1740  func (s *GoogleCloudDialogflowCxV3GcsDestination) MarshalJSON() ([]byte, error) {
  1741  	type NoMethod GoogleCloudDialogflowCxV3GcsDestination
  1742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1743  }
  1744  
  1745  // GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata: Metadata in
  1746  // google::longrunning::Operation for Knowledge operations.
  1747  type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
  1748  	// State: Required. Output only. The current state of this operation.
  1749  	//
  1750  	// Possible values:
  1751  	//   "STATE_UNSPECIFIED" - State unspecified.
  1752  	//   "PENDING" - The operation has been created.
  1753  	//   "RUNNING" - The operation is currently running.
  1754  	//   "DONE" - The operation is done, either cancelled or completed.
  1755  	State string `json:"state,omitempty"`
  1756  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  1757  	// include in API requests. By default, fields with empty or default values are
  1758  	// omitted from API requests. See
  1759  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1760  	// details.
  1761  	ForceSendFields []string `json:"-"`
  1762  	// NullFields is a list of field names (e.g. "State") to include in API
  1763  	// requests with the JSON null value. By default, fields with empty values are
  1764  	// omitted from API requests. See
  1765  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1766  	NullFields []string `json:"-"`
  1767  }
  1768  
  1769  func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
  1770  	type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
  1771  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1772  }
  1773  
  1774  // GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata: Metadata for
  1775  // ImportDocuments operation.
  1776  type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
  1777  	// GenericMetadata: The generic information of the operation.
  1778  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  1779  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  1780  	// unconditionally include in API requests. By default, fields with empty or
  1781  	// default values are omitted from API requests. See
  1782  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1783  	// details.
  1784  	ForceSendFields []string `json:"-"`
  1785  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  1786  	// API requests with the JSON null value. By default, fields with empty values
  1787  	// are omitted from API requests. See
  1788  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1789  	NullFields []string `json:"-"`
  1790  }
  1791  
  1792  func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
  1793  	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
  1794  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1795  }
  1796  
  1797  // GoogleCloudDialogflowCxV3ImportDocumentsResponse: Response message for
  1798  // Documents.ImportDocuments.
  1799  type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
  1800  	// Warnings: Includes details about skipped documents or any other warnings.
  1801  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
  1802  	// ForceSendFields is a list of field names (e.g. "Warnings") to
  1803  	// unconditionally include in API requests. By default, fields with empty or
  1804  	// default values are omitted from API requests. See
  1805  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1806  	// details.
  1807  	ForceSendFields []string `json:"-"`
  1808  	// NullFields is a list of field names (e.g. "Warnings") to include in API
  1809  	// requests with the JSON null value. By default, fields with empty values are
  1810  	// omitted from API requests. See
  1811  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1812  	NullFields []string `json:"-"`
  1813  }
  1814  
  1815  func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  1816  	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
  1817  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1818  }
  1819  
  1820  // GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned for
  1821  // the EntityTypes.ImportEntityTypes long running operation.
  1822  type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {
  1823  }
  1824  
  1825  // GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response message for
  1826  // EntityTypes.ImportEntityTypes.
  1827  type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {
  1828  	// ConflictingResources: Info which resources have conflicts when
  1829  	// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.
  1830  	ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
  1831  	// EntityTypes: The unique identifier of the imported entity types. Format:
  1832  	// `projects//locations//agents//entity_types/`.
  1833  	EntityTypes []string `json:"entityTypes,omitempty"`
  1834  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  1835  	// unconditionally include in API requests. By default, fields with empty or
  1836  	// default values are omitted from API requests. See
  1837  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1838  	// details.
  1839  	ForceSendFields []string `json:"-"`
  1840  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  1841  	// in API requests with the JSON null value. By default, fields with empty
  1842  	// values are omitted from API requests. See
  1843  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1844  	NullFields []string `json:"-"`
  1845  }
  1846  
  1847  func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  1848  	type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse
  1849  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1850  }
  1851  
  1852  // GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources:
  1853  // Conflicting resources detected during the import process. Only filled when
  1854  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  1855  // names.
  1856  type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {
  1857  	// EntityDisplayNames: Display names of conflicting entities.
  1858  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  1859  	// EntityTypeDisplayNames: Display names of conflicting entity types.
  1860  	EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
  1861  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  1862  	// unconditionally include in API requests. By default, fields with empty or
  1863  	// default values are omitted from API requests. See
  1864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1865  	// details.
  1866  	ForceSendFields []string `json:"-"`
  1867  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  1868  	// in API requests with the JSON null value. By default, fields with empty
  1869  	// values are omitted from API requests. See
  1870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1871  	NullFields []string `json:"-"`
  1872  }
  1873  
  1874  func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
  1875  	type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources
  1876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1877  }
  1878  
  1879  // GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for
  1880  // Flows.ImportFlow.
  1881  type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
  1882  	// Flow: The unique identifier of the new flow. Format:
  1883  	// `projects//locations//agents//flows/`.
  1884  	Flow string `json:"flow,omitempty"`
  1885  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  1886  	// include in API requests. By default, fields with empty or default values are
  1887  	// omitted from API requests. See
  1888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1889  	// details.
  1890  	ForceSendFields []string `json:"-"`
  1891  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  1892  	// with the JSON null value. By default, fields with empty values are omitted
  1893  	// from API requests. See
  1894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1895  	NullFields []string `json:"-"`
  1896  }
  1897  
  1898  func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
  1899  	type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
  1900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1901  }
  1902  
  1903  // GoogleCloudDialogflowCxV3ImportIntentsMetadata: Metadata returned for the
  1904  // Intents.ImportIntents long running operation.
  1905  type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {
  1906  }
  1907  
  1908  // GoogleCloudDialogflowCxV3ImportIntentsResponse: The response message for
  1909  // Intents.ImportIntents.
  1910  type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {
  1911  	// ConflictingResources: Info which resources have conflicts when
  1912  	// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.
  1913  	ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
  1914  	// Intents: The unique identifier of the imported intents. Format:
  1915  	// `projects//locations//agents//intents/`.
  1916  	Intents []string `json:"intents,omitempty"`
  1917  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  1918  	// unconditionally include in API requests. By default, fields with empty or
  1919  	// default values are omitted from API requests. See
  1920  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1921  	// details.
  1922  	ForceSendFields []string `json:"-"`
  1923  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  1924  	// in API requests with the JSON null value. By default, fields with empty
  1925  	// values are omitted from API requests. See
  1926  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1927  	NullFields []string `json:"-"`
  1928  }
  1929  
  1930  func (s *GoogleCloudDialogflowCxV3ImportIntentsResponse) MarshalJSON() ([]byte, error) {
  1931  	type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponse
  1932  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1933  }
  1934  
  1935  // GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources:
  1936  // Conflicting resources detected during the import process. Only filled when
  1937  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  1938  // names.
  1939  type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {
  1940  	// EntityDisplayNames: Display names of conflicting entities.
  1941  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  1942  	// IntentDisplayNames: Display names of conflicting intents.
  1943  	IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
  1944  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  1945  	// unconditionally include in API requests. By default, fields with empty or
  1946  	// default values are omitted from API requests. See
  1947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1948  	// details.
  1949  	ForceSendFields []string `json:"-"`
  1950  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  1951  	// in API requests with the JSON null value. By default, fields with empty
  1952  	// values are omitted from API requests. See
  1953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1954  	NullFields []string `json:"-"`
  1955  }
  1956  
  1957  func (s *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
  1958  	type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
  1959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1960  }
  1961  
  1962  // GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned for the
  1963  // TestCases.ImportTestCases long running operation.
  1964  type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
  1965  	// Errors: Errors for failed test cases.
  1966  	Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
  1967  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  1968  	// include in API requests. By default, fields with empty or default values are
  1969  	// omitted from API requests. See
  1970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1971  	// details.
  1972  	ForceSendFields []string `json:"-"`
  1973  	// NullFields is a list of field names (e.g. "Errors") to include in API
  1974  	// requests with the JSON null value. By default, fields with empty values are
  1975  	// omitted from API requests. See
  1976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1977  	NullFields []string `json:"-"`
  1978  }
  1979  
  1980  func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
  1981  	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
  1982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1983  }
  1984  
  1985  // GoogleCloudDialogflowCxV3ImportTestCasesResponse: The response message for
  1986  // TestCases.ImportTestCases.
  1987  type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
  1988  	// Names: The unique identifiers of the new test cases. Format:
  1989  	// `projects//locations//agents//testCases/`.
  1990  	Names []string `json:"names,omitempty"`
  1991  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
  1992  	// include in API requests. By default, fields with empty or default values are
  1993  	// omitted from API requests. See
  1994  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1995  	// details.
  1996  	ForceSendFields []string `json:"-"`
  1997  	// NullFields is a list of field names (e.g. "Names") to include in API
  1998  	// requests with the JSON null value. By default, fields with empty values are
  1999  	// omitted from API requests. See
  2000  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2001  	NullFields []string `json:"-"`
  2002  }
  2003  
  2004  func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
  2005  	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
  2006  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2007  }
  2008  
  2009  // GoogleCloudDialogflowCxV3InlineDestination: Inline destination for a
  2010  // Dialogflow operation that writes or exports objects (e.g. intents) outside
  2011  // of Dialogflow.
  2012  type GoogleCloudDialogflowCxV3InlineDestination struct {
  2013  	// Content: Output only. The uncompressed byte content for the objects. Only
  2014  	// populated in responses.
  2015  	Content string `json:"content,omitempty"`
  2016  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  2017  	// include in API requests. By default, fields with empty or default values are
  2018  	// omitted from API requests. See
  2019  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2020  	// details.
  2021  	ForceSendFields []string `json:"-"`
  2022  	// NullFields is a list of field names (e.g. "Content") to include in API
  2023  	// requests with the JSON null value. By default, fields with empty values are
  2024  	// omitted from API requests. See
  2025  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2026  	NullFields []string `json:"-"`
  2027  }
  2028  
  2029  func (s *GoogleCloudDialogflowCxV3InlineDestination) MarshalJSON() ([]byte, error) {
  2030  	type NoMethod GoogleCloudDialogflowCxV3InlineDestination
  2031  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2032  }
  2033  
  2034  // GoogleCloudDialogflowCxV3InputAudioConfig: Instructs the speech recognizer
  2035  // on how to process the audio content.
  2036  type GoogleCloudDialogflowCxV3InputAudioConfig struct {
  2037  	// AudioEncoding: Required. Audio encoding of the audio content to process.
  2038  	//
  2039  	// Possible values:
  2040  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
  2041  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
  2042  	// samples (Linear PCM).
  2043  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
  2044  	// (Free Lossless Audio Codec) is the recommended encoding because it is
  2045  	// lossless (therefore recognition is not compromised) and requires only about
  2046  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
  2047  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
  2048  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
  2049  	// using G.711 PCMU/mu-law.
  2050  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
  2051  	// `sample_rate_hertz` must be 8000.
  2052  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
  2053  	// `sample_rate_hertz` must be 16000.
  2054  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
  2055  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
  2056  	// 16000.
  2057  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
  2058  	// encodings is not recommended, if a very low bitrate encoding is required,
  2059  	// `OGG_OPUS` is highly preferred over Speex encoding. The
  2060  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
  2061  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
  2062  	// It is a variant of the RTP Speex encoding defined in [RFC
  2063  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
  2064  	// blocks, one block per RTP packet. Each block starts with a byte containing
  2065  	// the length of the block, in bytes, followed by one or more frames of Speex
  2066  	// data, padded to an integral number of bytes (octets) as specified in RFC
  2067  	// 5574. In other words, each RTP header is replaced with a single byte
  2068  	// containing the block length. Only Speex wideband is supported.
  2069  	// `sample_rate_hertz` must be 16000.
  2070  	AudioEncoding string `json:"audioEncoding,omitempty"`
  2071  	// BargeInConfig: Configuration of barge-in behavior during the streaming of
  2072  	// input audio.
  2073  	BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`
  2074  	// EnableWordInfo: Optional. If `true`, Dialogflow returns SpeechWordInfo in
  2075  	// StreamingRecognitionResult with information about the recognized speech
  2076  	// words, e.g. start and end time offsets. If false or unspecified, Speech
  2077  	// doesn't return any word-level information.
  2078  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
  2079  	// Model: Optional. Which Speech model to select for the given request. For
  2080  	// more information, see Speech models
  2081  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  2082  	Model string `json:"model,omitempty"`
  2083  	// ModelVariant: Optional. Which variant of the Speech model to use.
  2084  	//
  2085  	// Possible values:
  2086  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
  2087  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
  2088  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
  2089  	// that the caller is eligible for.
  2090  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
  2091  	// available. See the [Cloud Speech
  2092  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  2093  	// for details about enhanced models.
  2094  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
  2095  	// does not exist for the given model and request language, Dialogflow falls
  2096  	// back to the standard variant. The [Cloud Speech
  2097  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  2098  	// describes which models have enhanced variants.
  2099  	ModelVariant string `json:"modelVariant,omitempty"`
  2100  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
  2101  	// conformer model migration. This field will be deprecated once force
  2102  	// migration takes place in June 2024. Please refer to Dialogflow CX Speech
  2103  	// model migration
  2104  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
  2105  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
  2106  	// PhraseHints: Optional. A list of strings containing words and phrases that
  2107  	// the speech recognizer should recognize with higher likelihood. See the Cloud
  2108  	// Speech documentation
  2109  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
  2110  	// details.
  2111  	PhraseHints []string `json:"phraseHints,omitempty"`
  2112  	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in the
  2113  	// query. Refer to Cloud Speech API documentation
  2114  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
  2115  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
  2116  	// SingleUtterance: Optional. If `false` (default), recognition does not cease
  2117  	// until the client closes the stream. If `true`, the recognizer will detect a
  2118  	// single spoken utterance in input audio. Recognition ceases when it detects
  2119  	// the audio's voice has stopped or paused. In this case, once a detected
  2120  	// intent is received, the client should close the stream and start a new
  2121  	// request with a new stream as needed. Note: This setting is relevant only for
  2122  	// streaming methods.
  2123  	SingleUtterance bool `json:"singleUtterance,omitempty"`
  2124  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
  2125  	// unconditionally include in API requests. By default, fields with empty or
  2126  	// default values are omitted from API requests. See
  2127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2128  	// details.
  2129  	ForceSendFields []string `json:"-"`
  2130  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
  2131  	// requests with the JSON null value. By default, fields with empty values are
  2132  	// omitted from API requests. See
  2133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2134  	NullFields []string `json:"-"`
  2135  }
  2136  
  2137  func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
  2138  	type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
  2139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2140  }
  2141  
  2142  // GoogleCloudDialogflowCxV3Intent: An intent represents a user's intent to
  2143  // interact with a conversational agent. You can provide information for the
  2144  // Dialogflow API to use to match user input to an intent by adding training
  2145  // phrases (i.e., examples of user input) to your intent.
  2146  type GoogleCloudDialogflowCxV3Intent struct {
  2147  	// Description: Human readable description for better understanding an intent
  2148  	// like its scope, content, result etc. Maximum character limit: 140
  2149  	// characters.
  2150  	Description string `json:"description,omitempty"`
  2151  	// DisplayName: Required. The human-readable name of the intent, unique within
  2152  	// the agent.
  2153  	DisplayName string `json:"displayName,omitempty"`
  2154  	// IsFallback: Indicates whether this is a fallback intent. Currently only
  2155  	// default fallback intent is allowed in the agent, which is added upon agent
  2156  	// creation. Adding training phrases to fallback intent is useful in the case
  2157  	// of requests that are mistakenly matched, since training phrases assigned to
  2158  	// fallback intents act as negative examples that triggers no-match event.
  2159  	IsFallback bool `json:"isFallback,omitempty"`
  2160  	// Labels: The key/value metadata to label an intent. Labels can contain
  2161  	// lowercase letters, digits and the symbols '-' and '_'. International
  2162  	// characters are allowed, including letters from unicase alphabets. Keys must
  2163  	// start with a letter. Keys and values can be no longer than 63 characters and
  2164  	// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
  2165  	// labels. Currently allowed Dialogflow defined labels include: * sys-head *
  2166  	// sys-contextual The above labels do not require value. "sys-head" means the
  2167  	// intent is a head intent. "sys.contextual" means the intent is a contextual
  2168  	// intent.
  2169  	Labels map[string]string `json:"labels,omitempty"`
  2170  	// Name: The unique identifier of the intent. Required for the
  2171  	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
  2172  	// automatically. Format: `projects//locations//agents//intents/`.
  2173  	Name string `json:"name,omitempty"`
  2174  	// Parameters: The collection of parameters associated with the intent.
  2175  	Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
  2176  	// Priority: The priority of this intent. Higher numbers represent higher
  2177  	// priorities. - If the supplied value is unspecified or 0, the service
  2178  	// translates the value to 500,000, which corresponds to the `Normal` priority
  2179  	// in the console. - If the supplied value is negative, the intent is ignored
  2180  	// in runtime detect intent requests.
  2181  	Priority int64 `json:"priority,omitempty"`
  2182  	// TrainingPhrases: The collection of training phrases the agent is trained on
  2183  	// to identify the intent.
  2184  	TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
  2185  	// ForceSendFields is a list of field names (e.g. "Description") to
  2186  	// unconditionally include in API requests. By default, fields with empty or
  2187  	// default values are omitted from API requests. See
  2188  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2189  	// details.
  2190  	ForceSendFields []string `json:"-"`
  2191  	// NullFields is a list of field names (e.g. "Description") to include in API
  2192  	// requests with the JSON null value. By default, fields with empty values are
  2193  	// omitted from API requests. See
  2194  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2195  	NullFields []string `json:"-"`
  2196  }
  2197  
  2198  func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
  2199  	type NoMethod GoogleCloudDialogflowCxV3Intent
  2200  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2201  }
  2202  
  2203  // GoogleCloudDialogflowCxV3IntentInput: Represents the intent to trigger
  2204  // programmatically rather than as a result of natural language processing.
  2205  type GoogleCloudDialogflowCxV3IntentInput struct {
  2206  	// Intent: Required. The unique identifier of the intent. Format:
  2207  	// `projects//locations//agents//intents/`.
  2208  	Intent string `json:"intent,omitempty"`
  2209  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
  2210  	// include in API requests. By default, fields with empty or default values are
  2211  	// omitted from API requests. See
  2212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2213  	// details.
  2214  	ForceSendFields []string `json:"-"`
  2215  	// NullFields is a list of field names (e.g. "Intent") to include in API
  2216  	// requests with the JSON null value. By default, fields with empty values are
  2217  	// omitted from API requests. See
  2218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2219  	NullFields []string `json:"-"`
  2220  }
  2221  
  2222  func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
  2223  	type NoMethod GoogleCloudDialogflowCxV3IntentInput
  2224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2225  }
  2226  
  2227  // GoogleCloudDialogflowCxV3IntentParameter: Represents an intent parameter.
  2228  type GoogleCloudDialogflowCxV3IntentParameter struct {
  2229  	// EntityType: Required. The entity type of the parameter. Format:
  2230  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  2231  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  2232  	// `projects//locations//agents//entityTypes/` for developer entity types.
  2233  	EntityType string `json:"entityType,omitempty"`
  2234  	// Id: Required. The unique identifier of the parameter. This field is used by
  2235  	// training phrases to annotate their parts.
  2236  	Id string `json:"id,omitempty"`
  2237  	// IsList: Indicates whether the parameter represents a list of values.
  2238  	IsList bool `json:"isList,omitempty"`
  2239  	// Redact: Indicates whether the parameter content should be redacted in log.
  2240  	// If redaction is enabled, the parameter content will be replaced by parameter
  2241  	// name during logging. Note: the parameter content is subject to redaction if
  2242  	// either parameter level redaction or entity type level redaction is enabled.
  2243  	Redact bool `json:"redact,omitempty"`
  2244  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  2245  	// unconditionally include in API requests. By default, fields with empty or
  2246  	// default values are omitted from API requests. See
  2247  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2248  	// details.
  2249  	ForceSendFields []string `json:"-"`
  2250  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  2251  	// requests with the JSON null value. By default, fields with empty values are
  2252  	// omitted from API requests. See
  2253  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2254  	NullFields []string `json:"-"`
  2255  }
  2256  
  2257  func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
  2258  	type NoMethod GoogleCloudDialogflowCxV3IntentParameter
  2259  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2260  }
  2261  
  2262  // GoogleCloudDialogflowCxV3IntentTrainingPhrase: Represents an example that
  2263  // the agent is trained on to identify the intent.
  2264  type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
  2265  	// Id: Output only. The unique identifier of the training phrase.
  2266  	Id string `json:"id,omitempty"`
  2267  	// Parts: Required. The ordered list of training phrase parts. The parts are
  2268  	// concatenated in order to form the training phrase. Note: The API does not
  2269  	// automatically annotate training phrases like the Dialogflow Console does.
  2270  	// Note: Do not forget to include whitespace at part boundaries, so the
  2271  	// training phrase is well formatted when the parts are concatenated. If the
  2272  	// training phrase does not need to be annotated with parameters, you just need
  2273  	// a single part with only the Part.text field set. If you want to annotate the
  2274  	// training phrase, you must create multiple parts, where the fields of each
  2275  	// part are populated in one of two ways: - `Part.text` is set to a part of the
  2276  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
  2277  	// that you want to annotate, and the `parameter_id` field is set.
  2278  	Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
  2279  	// RepeatCount: Indicates how many times this example was added to the intent.
  2280  	RepeatCount int64 `json:"repeatCount,omitempty"`
  2281  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  2282  	// include in API requests. By default, fields with empty or default values are
  2283  	// omitted from API requests. See
  2284  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2285  	// details.
  2286  	ForceSendFields []string `json:"-"`
  2287  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  2288  	// with the JSON null value. By default, fields with empty values are omitted
  2289  	// from API requests. See
  2290  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2291  	NullFields []string `json:"-"`
  2292  }
  2293  
  2294  func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
  2295  	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
  2296  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2297  }
  2298  
  2299  // GoogleCloudDialogflowCxV3IntentTrainingPhrasePart: Represents a part of a
  2300  // training phrase.
  2301  type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
  2302  	// ParameterId: The parameter used to annotate this part of the training
  2303  	// phrase. This field is required for annotated parts of the training phrase.
  2304  	ParameterId string `json:"parameterId,omitempty"`
  2305  	// Text: Required. The text for this part.
  2306  	Text string `json:"text,omitempty"`
  2307  	// ForceSendFields is a list of field names (e.g. "ParameterId") to
  2308  	// unconditionally include in API requests. By default, fields with empty or
  2309  	// default values are omitted from API requests. See
  2310  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2311  	// details.
  2312  	ForceSendFields []string `json:"-"`
  2313  	// NullFields is a list of field names (e.g. "ParameterId") to include in API
  2314  	// requests with the JSON null value. By default, fields with empty values are
  2315  	// omitted from API requests. See
  2316  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2317  	NullFields []string `json:"-"`
  2318  }
  2319  
  2320  func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
  2321  	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
  2322  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2323  }
  2324  
  2325  // GoogleCloudDialogflowCxV3KnowledgeConnectorSettings: The Knowledge Connector
  2326  // settings for this page or flow. This includes information such as the
  2327  // attached Knowledge Bases, and the way to execute fulfillment.
  2328  type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {
  2329  	// DataStoreConnections: Optional. List of related data store connections.
  2330  	DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`
  2331  	// Enabled: Whether Knowledge Connector is enabled or not.
  2332  	Enabled bool `json:"enabled,omitempty"`
  2333  	// TargetFlow: The target flow to transition to. Format:
  2334  	// `projects//locations//agents//flows/`.
  2335  	TargetFlow string `json:"targetFlow,omitempty"`
  2336  	// TargetPage: The target page to transition to. Format:
  2337  	// `projects//locations//agents//flows//pages/`.
  2338  	TargetPage string `json:"targetPage,omitempty"`
  2339  	// TriggerFulfillment: The fulfillment to be triggered. When the answers from
  2340  	// the Knowledge Connector are selected by Dialogflow, you can utitlize the
  2341  	// request scoped parameter `$request.knowledge.answers` (contains up to the 5
  2342  	// highest confidence answers) and `$request.knowledge.questions` (contains the
  2343  	// corresponding questions) to construct the fulfillment.
  2344  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  2345  	// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to
  2346  	// unconditionally include in API requests. By default, fields with empty or
  2347  	// default values are omitted from API requests. See
  2348  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2349  	// details.
  2350  	ForceSendFields []string `json:"-"`
  2351  	// NullFields is a list of field names (e.g. "DataStoreConnections") to include
  2352  	// in API requests with the JSON null value. By default, fields with empty
  2353  	// values are omitted from API requests. See
  2354  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2355  	NullFields []string `json:"-"`
  2356  }
  2357  
  2358  func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
  2359  	type NoMethod GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
  2360  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2361  }
  2362  
  2363  // GoogleCloudDialogflowCxV3LanguageInfo: Represents the language information
  2364  // of the request.
  2365  type GoogleCloudDialogflowCxV3LanguageInfo struct {
  2366  	// ConfidenceScore: The confidence score of the detected language between 0 and
  2367  	// 1.
  2368  	ConfidenceScore float64 `json:"confidenceScore,omitempty"`
  2369  	// InputLanguageCode: The language code specified in the original request.
  2370  	InputLanguageCode string `json:"inputLanguageCode,omitempty"`
  2371  	// ResolvedLanguageCode: The language code detected for this request based on
  2372  	// the user conversation.
  2373  	ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
  2374  	// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to
  2375  	// unconditionally include in API requests. By default, fields with empty or
  2376  	// default values are omitted from API requests. See
  2377  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2378  	// details.
  2379  	ForceSendFields []string `json:"-"`
  2380  	// NullFields is a list of field names (e.g. "ConfidenceScore") to include in
  2381  	// API requests with the JSON null value. By default, fields with empty values
  2382  	// are omitted from API requests. See
  2383  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2384  	NullFields []string `json:"-"`
  2385  }
  2386  
  2387  func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) {
  2388  	type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
  2389  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2390  }
  2391  
  2392  func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error {
  2393  	type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
  2394  	var s1 struct {
  2395  		ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
  2396  		*NoMethod
  2397  	}
  2398  	s1.NoMethod = (*NoMethod)(s)
  2399  	if err := json.Unmarshal(data, &s1); err != nil {
  2400  		return err
  2401  	}
  2402  	s.ConfidenceScore = float64(s1.ConfidenceScore)
  2403  	return nil
  2404  }
  2405  
  2406  // GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session) can be
  2407  // described and visualized as a state machine. The states of a CX session are
  2408  // represented by pages. For each flow, you define many pages, where your
  2409  // combined pages can handle a complete conversation on the topics the flow is
  2410  // designed for. At any given moment, exactly one page is the current page, the
  2411  // current page is considered active, and the flow associated with that page is
  2412  // considered active. Every flow has a special start page. When a flow
  2413  // initially becomes active, the start page page becomes the current page. For
  2414  // each conversational turn, the current page will either stay the same or
  2415  // transition to another page. You configure each page to collect information
  2416  // from the end-user that is relevant for the conversational state represented
  2417  // by the page. For more information, see the Page guide
  2418  // (https://cloud.google.com/dialogflow/cx/docs/concept/page).
  2419  type GoogleCloudDialogflowCxV3Page struct {
  2420  	// AdvancedSettings: Hierarchical advanced settings for this page. The settings
  2421  	// exposed at the lower level overrides the settings exposed at the higher
  2422  	// level.
  2423  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  2424  	// Description: The description of the page. The maximum length is 500
  2425  	// characters.
  2426  	Description string `json:"description,omitempty"`
  2427  	// DisplayName: Required. The human-readable name of the page, unique within
  2428  	// the flow.
  2429  	DisplayName string `json:"displayName,omitempty"`
  2430  	// EntryFulfillment: The fulfillment to call when the session is entering the
  2431  	// page.
  2432  	EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
  2433  	// EventHandlers: Handlers associated with the page to handle events such as
  2434  	// webhook errors, no match or no input.
  2435  	EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
  2436  	// Form: The form associated with the page, used for collecting parameters
  2437  	// relevant to the page.
  2438  	Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
  2439  	// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.
  2440  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  2441  	// Name: The unique identifier of the page. Required for the Pages.UpdatePage
  2442  	// method. Pages.CreatePage populates the name automatically. Format:
  2443  	// `projects//locations//agents//flows//pages/`.
  2444  	Name string `json:"name,omitempty"`
  2445  	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the
  2446  	// page. Transition route groups must be unique within a page. If the page
  2447  	// links both flow-level transition route groups and agent-level transition
  2448  	// route groups, the flow-level ones will have higher priority and will be put
  2449  	// before the agent-level ones. * If multiple transition routes within a page
  2450  	// scope refer to the same intent, then the precedence order is: page's
  2451  	// transition route -> page's transition route group -> flow's transition
  2452  	// routes. * If multiple transition route groups within a page contain the same
  2453  	// intent, then the first group in the ordered list takes precedence.
  2454  	// Format:`projects//locations//agents//flows//transitionRouteGroups/` or
  2455  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
  2456  	// groups.
  2457  	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
  2458  	// TransitionRoutes: A list of transitions for the transition rules of this
  2459  	// page. They route the conversation to another page in the same flow, or
  2460  	// another flow. When we are in a certain page, the TransitionRoutes are
  2461  	// evalauted in the following order: * TransitionRoutes defined in the page
  2462  	// with intent specified. * TransitionRoutes defined in the transition route
  2463  	// groups with intent specified. * TransitionRoutes defined in flow with intent
  2464  	// specified. * TransitionRoutes defined in the transition route groups with
  2465  	// intent specified. * TransitionRoutes defined in the page with only condition
  2466  	// specified. * TransitionRoutes defined in the transition route groups with
  2467  	// only condition specified.
  2468  	TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
  2469  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  2470  	// unconditionally include in API requests. By default, fields with empty or
  2471  	// default values are omitted from API requests. See
  2472  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2473  	// details.
  2474  	ForceSendFields []string `json:"-"`
  2475  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  2476  	// API requests with the JSON null value. By default, fields with empty values
  2477  	// are omitted from API requests. See
  2478  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2479  	NullFields []string `json:"-"`
  2480  }
  2481  
  2482  func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
  2483  	type NoMethod GoogleCloudDialogflowCxV3Page
  2484  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2485  }
  2486  
  2487  // GoogleCloudDialogflowCxV3PageInfo: Represents page information communicated
  2488  // to and from the webhook.
  2489  type GoogleCloudDialogflowCxV3PageInfo struct {
  2490  	// CurrentPage: Always present for WebhookRequest. Ignored for WebhookResponse.
  2491  	// The unique identifier of the current page. Format:
  2492  	// `projects//locations//agents//flows//pages/`.
  2493  	CurrentPage string `json:"currentPage,omitempty"`
  2494  	// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.
  2495  	// The display name of the current page.
  2496  	DisplayName string `json:"displayName,omitempty"`
  2497  	// FormInfo: Optional for both WebhookRequest and WebhookResponse. Information
  2498  	// about the form.
  2499  	FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
  2500  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  2501  	// unconditionally include in API requests. By default, fields with empty or
  2502  	// default values are omitted from API requests. See
  2503  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2504  	// details.
  2505  	ForceSendFields []string `json:"-"`
  2506  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  2507  	// requests with the JSON null value. By default, fields with empty values are
  2508  	// omitted from API requests. See
  2509  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2510  	NullFields []string `json:"-"`
  2511  }
  2512  
  2513  func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
  2514  	type NoMethod GoogleCloudDialogflowCxV3PageInfo
  2515  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2516  }
  2517  
  2518  // GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form information.
  2519  type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
  2520  	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse. The
  2521  	// parameters contained in the form. Note that the webhook cannot add or remove
  2522  	// any form parameter.
  2523  	ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
  2524  	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
  2525  	// unconditionally include in API requests. By default, fields with empty or
  2526  	// default values are omitted from API requests. See
  2527  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2528  	// details.
  2529  	ForceSendFields []string `json:"-"`
  2530  	// NullFields is a list of field names (e.g. "ParameterInfo") to include in API
  2531  	// requests with the JSON null value. By default, fields with empty values are
  2532  	// omitted from API requests. See
  2533  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2534  	NullFields []string `json:"-"`
  2535  }
  2536  
  2537  func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
  2538  	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
  2539  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2540  }
  2541  
  2542  // GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents parameter
  2543  // information.
  2544  type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
  2545  	// DisplayName: Always present for WebhookRequest. Required for
  2546  	// WebhookResponse. The human-readable name of the parameter, unique within the
  2547  	// form. This field cannot be modified by the webhook.
  2548  	DisplayName string `json:"displayName,omitempty"`
  2549  	// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.
  2550  	// Indicates if the parameter value was just collected on the last conversation
  2551  	// turn.
  2552  	JustCollected bool `json:"justCollected,omitempty"`
  2553  	// Required: Optional for both WebhookRequest and WebhookResponse. Indicates
  2554  	// whether the parameter is required. Optional parameters will not trigger
  2555  	// prompts; however, they are filled if the user specifies them. Required
  2556  	// parameters must be filled before form filling concludes.
  2557  	Required bool `json:"required,omitempty"`
  2558  	// State: Always present for WebhookRequest. Required for WebhookResponse. The
  2559  	// state of the parameter. This field can be set to INVALID by the webhook to
  2560  	// invalidate the parameter; other values set by the webhook will be ignored.
  2561  	//
  2562  	// Possible values:
  2563  	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be never
  2564  	// used.
  2565  	//   "EMPTY" - Indicates that the parameter does not have a value.
  2566  	//   "INVALID" - Indicates that the parameter value is invalid. This field can
  2567  	// be used by the webhook to invalidate the parameter and ask the server to
  2568  	// collect it from the user again.
  2569  	//   "FILLED" - Indicates that the parameter has a value.
  2570  	State string `json:"state,omitempty"`
  2571  	// Value: Optional for both WebhookRequest and WebhookResponse. The value of
  2572  	// the parameter. This field can be set by the webhook to change the parameter
  2573  	// value.
  2574  	Value interface{} `json:"value,omitempty"`
  2575  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  2576  	// unconditionally include in API requests. By default, fields with empty or
  2577  	// default values are omitted from API requests. See
  2578  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2579  	// details.
  2580  	ForceSendFields []string `json:"-"`
  2581  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  2582  	// requests with the JSON null value. By default, fields with empty values are
  2583  	// omitted from API requests. See
  2584  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2585  	NullFields []string `json:"-"`
  2586  }
  2587  
  2588  func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
  2589  	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
  2590  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2591  }
  2592  
  2593  // GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It can
  2594  // contain one of: 1. A conversational query in the form of text. 2. An intent
  2595  // query that specifies which intent to trigger. 3. Natural language speech
  2596  // audio to be processed. 4. An event to be triggered. 5. DTMF digits to invoke
  2597  // an intent and fill in parameter value. 6. The results of a tool executed by
  2598  // the client.
  2599  type GoogleCloudDialogflowCxV3QueryInput struct {
  2600  	// Audio: The natural language speech audio to be processed.
  2601  	Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
  2602  	// Dtmf: The DTMF event to be handled.
  2603  	Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
  2604  	// Event: The event to be triggered.
  2605  	Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
  2606  	// Intent: The intent to be triggered.
  2607  	Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
  2608  	// LanguageCode: Required. The language of the input. See Language Support
  2609  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  2610  	// of the currently supported language codes. Note that queries in the same
  2611  	// session do not necessarily need to specify the same language.
  2612  	LanguageCode string `json:"languageCode,omitempty"`
  2613  	// Text: The natural language text to be processed.
  2614  	Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
  2615  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  2616  	// include in API requests. By default, fields with empty or default values are
  2617  	// omitted from API requests. See
  2618  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2619  	// details.
  2620  	ForceSendFields []string `json:"-"`
  2621  	// NullFields is a list of field names (e.g. "Audio") to include in API
  2622  	// requests with the JSON null value. By default, fields with empty values are
  2623  	// omitted from API requests. See
  2624  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2625  	NullFields []string `json:"-"`
  2626  }
  2627  
  2628  func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
  2629  	type NoMethod GoogleCloudDialogflowCxV3QueryInput
  2630  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2631  }
  2632  
  2633  // GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata: Metadata for
  2634  // ReloadDocument operation.
  2635  type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
  2636  	// GenericMetadata: The generic information of the operation.
  2637  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  2638  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  2639  	// unconditionally include in API requests. By default, fields with empty or
  2640  	// default values are omitted from API requests. See
  2641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2642  	// details.
  2643  	ForceSendFields []string `json:"-"`
  2644  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  2645  	// API requests with the JSON null value. By default, fields with empty values
  2646  	// are omitted from API requests. See
  2647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2648  	NullFields []string `json:"-"`
  2649  }
  2650  
  2651  func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  2652  	type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
  2653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2654  }
  2655  
  2656  // GoogleCloudDialogflowCxV3ResponseMessage: Represents a response message that
  2657  // can be returned by a conversational agent. Response messages are also used
  2658  // for output audio synthesis. The approach is as follows: * If at least one
  2659  // OutputAudioText response is present, then all OutputAudioText responses are
  2660  // linearly concatenated, and the result is used for output audio synthesis. *
  2661  // If the OutputAudioText responses are a mixture of text and SSML, then the
  2662  // concatenated result is treated as SSML; otherwise, the result is treated as
  2663  // either text or SSML as appropriate. The agent designer should ideally use
  2664  // either text or SSML consistently throughout the bot design. * Otherwise, all
  2665  // Text responses are linearly concatenated, and the result is used for output
  2666  // audio synthesis. This approach allows for more sophisticated user experience
  2667  // scenarios, where the text displayed to the user may differ from what is
  2668  // heard.
  2669  type GoogleCloudDialogflowCxV3ResponseMessage struct {
  2670  	// Channel: The channel which the response is associated with. Clients can
  2671  	// specify the channel via QueryParameters.channel, and only associated channel
  2672  	// response will be returned.
  2673  	Channel string `json:"channel,omitempty"`
  2674  	// ConversationSuccess: Indicates that the conversation succeeded.
  2675  	ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
  2676  	// EndInteraction: Output only. A signal that indicates the interaction with
  2677  	// the Dialogflow agent has ended. This message is generated by Dialogflow only
  2678  	// when the conversation reaches `END_SESSION` page. It is not supposed to be
  2679  	// defined by the user. It's guaranteed that there is at most one such message
  2680  	// in each response.
  2681  	EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
  2682  	// KnowledgeInfoCard: Represents info card for knowledge answers, to be better
  2683  	// rendered in Dialogflow Messenger.
  2684  	KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
  2685  	// LiveAgentHandoff: Hands off conversation to a human agent.
  2686  	LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
  2687  	// MixedAudio: Output only. An audio response message composed of both the
  2688  	// synthesized Dialogflow agent responses and responses defined via play_audio.
  2689  	// This message is generated by Dialogflow only and not supposed to be defined
  2690  	// by the user.
  2691  	MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
  2692  	// OutputAudioText: A text or ssml response that is preferentially used for TTS
  2693  	// output audio synthesis, as described in the comment on the ResponseMessage
  2694  	// message.
  2695  	OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
  2696  	// Payload: Returns a response containing a custom, platform-specific payload.
  2697  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  2698  	// PlayAudio: Signal that the client should play an audio clip hosted at a
  2699  	// client-specific URI. Dialogflow uses this to construct mixed_audio. However,
  2700  	// Dialogflow itself does not try to read or process the URI in any way.
  2701  	PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
  2702  	// ResponseType: Response type.
  2703  	//
  2704  	// Possible values:
  2705  	//   "RESPONSE_TYPE_UNSPECIFIED" - Not specified.
  2706  	//   "ENTRY_PROMPT" - The response is from an entry prompt in the page.
  2707  	//   "PARAMETER_PROMPT" - The response is from form-filling prompt in the page.
  2708  	//   "HANDLER_PROMPT" - The response is from a transition route or an event
  2709  	// handler in the page or flow or transition route group.
  2710  	ResponseType string `json:"responseType,omitempty"`
  2711  	// TelephonyTransferCall: A signal that the client should transfer the phone
  2712  	// call connected to this agent to a third-party endpoint.
  2713  	TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
  2714  	// Text: Returns a text response.
  2715  	Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
  2716  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  2717  	// include in API requests. By default, fields with empty or default values are
  2718  	// omitted from API requests. See
  2719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2720  	// details.
  2721  	ForceSendFields []string `json:"-"`
  2722  	// NullFields is a list of field names (e.g. "Channel") to include in API
  2723  	// requests with the JSON null value. By default, fields with empty values are
  2724  	// omitted from API requests. See
  2725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2726  	NullFields []string `json:"-"`
  2727  }
  2728  
  2729  func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
  2730  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
  2731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2732  }
  2733  
  2734  // GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess: Indicates that
  2735  // the conversation succeeded, i.e., the bot handled the issue that the
  2736  // customer talked to it about. Dialogflow only uses this to determine which
  2737  // conversations should be counted as successful and doesn't process the
  2738  // metadata in this message in any way. Note that Dialogflow also considers
  2739  // conversations that get to the conversation end page as successful even if
  2740  // they don't return ConversationSuccess. You may set this, for example: * In
  2741  // the entry_fulfillment of a Page if entering the page indicates that the
  2742  // conversation succeeded. * In a webhook response when you determine that you
  2743  // handled the customer issue.
  2744  type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
  2745  	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.
  2746  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  2747  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  2748  	// unconditionally include in API requests. By default, fields with empty or
  2749  	// default values are omitted from API requests. See
  2750  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2751  	// details.
  2752  	ForceSendFields []string `json:"-"`
  2753  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  2754  	// requests with the JSON null value. By default, fields with empty values are
  2755  	// omitted from API requests. See
  2756  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2757  	NullFields []string `json:"-"`
  2758  }
  2759  
  2760  func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
  2761  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
  2762  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2763  }
  2764  
  2765  // GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates that
  2766  // interaction with the Dialogflow agent has ended. This message is generated
  2767  // by Dialogflow only and not supposed to be defined by the user.
  2768  type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
  2769  }
  2770  
  2771  // GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard: Represents info
  2772  // card response. If the response contains generative knowledge prediction,
  2773  // Dialogflow will return a payload with Infobot Messenger compatible info
  2774  // card. Otherwise, the info card response is skipped.
  2775  type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {
  2776  }
  2777  
  2778  // GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates that the
  2779  // conversation should be handed off to a live agent. Dialogflow only uses this
  2780  // to determine which conversations were handed off to a human agent for
  2781  // measurement purposes. What else to do with this signal is up to you and your
  2782  // handoff procedures. You may set this, for example: * In the
  2783  // entry_fulfillment of a Page if entering the page indicates something went
  2784  // extremely wrong in the conversation. * In a webhook response when you
  2785  // determine that the customer issue can only be handled by a human.
  2786  type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
  2787  	// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't
  2788  	// impose any structure on this.
  2789  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  2790  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  2791  	// unconditionally include in API requests. By default, fields with empty or
  2792  	// default values are omitted from API requests. See
  2793  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2794  	// details.
  2795  	ForceSendFields []string `json:"-"`
  2796  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  2797  	// requests with the JSON null value. By default, fields with empty values are
  2798  	// omitted from API requests. See
  2799  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2800  	NullFields []string `json:"-"`
  2801  }
  2802  
  2803  func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
  2804  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
  2805  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2806  }
  2807  
  2808  // GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an audio
  2809  // message that is composed of both segments synthesized from the Dialogflow
  2810  // agent prompts and ones hosted externally at the specified URIs. The external
  2811  // URIs are specified via play_audio. This message is generated by Dialogflow
  2812  // only and not supposed to be defined by the user.
  2813  type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
  2814  	// Segments: Segments this audio response is composed of.
  2815  	Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
  2816  	// ForceSendFields is a list of field names (e.g. "Segments") to
  2817  	// unconditionally include in API requests. By default, fields with empty or
  2818  	// default values are omitted from API requests. See
  2819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2820  	// details.
  2821  	ForceSendFields []string `json:"-"`
  2822  	// NullFields is a list of field names (e.g. "Segments") to include in API
  2823  	// requests with the JSON null value. By default, fields with empty values are
  2824  	// omitted from API requests. See
  2825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2826  	NullFields []string `json:"-"`
  2827  }
  2828  
  2829  func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
  2830  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
  2831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2832  }
  2833  
  2834  // GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents one
  2835  // segment of audio.
  2836  type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
  2837  	// AllowPlaybackInterruption: Output only. Whether the playback of this segment
  2838  	// can be interrupted by the end user's speech and the client should then start
  2839  	// the next Dialogflow request.
  2840  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  2841  	// Audio: Raw audio synthesized from the Dialogflow agent's response using the
  2842  	// output config specified in the request.
  2843  	Audio string `json:"audio,omitempty"`
  2844  	// Uri: Client-specific URI that points to an audio clip accessible to the
  2845  	// client. Dialogflow does not impose any validation on it.
  2846  	Uri string `json:"uri,omitempty"`
  2847  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  2848  	// to unconditionally include in API requests. By default, fields with empty or
  2849  	// default values are omitted from API requests. See
  2850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2851  	// details.
  2852  	ForceSendFields []string `json:"-"`
  2853  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  2854  	// include in API requests with the JSON null value. By default, fields with
  2855  	// empty values are omitted from API requests. See
  2856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2857  	NullFields []string `json:"-"`
  2858  }
  2859  
  2860  func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
  2861  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
  2862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2863  }
  2864  
  2865  // GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or ssml
  2866  // response that is preferentially used for TTS output audio synthesis, as
  2867  // described in the comment on the ResponseMessage message.
  2868  type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
  2869  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  2870  	// can be interrupted by the end user's speech and the client can then starts
  2871  	// the next Dialogflow request.
  2872  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  2873  	// Ssml: The SSML text to be synthesized. For more information, see SSML
  2874  	// (/speech/text-to-speech/docs/ssml).
  2875  	Ssml string `json:"ssml,omitempty"`
  2876  	// Text: The raw text to be synthesized.
  2877  	Text string `json:"text,omitempty"`
  2878  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  2879  	// to unconditionally include in API requests. By default, fields with empty or
  2880  	// default values are omitted from API requests. See
  2881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2882  	// details.
  2883  	ForceSendFields []string `json:"-"`
  2884  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  2885  	// include in API requests with the JSON null value. By default, fields with
  2886  	// empty values are omitted from API requests. See
  2887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2888  	NullFields []string `json:"-"`
  2889  }
  2890  
  2891  func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
  2892  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
  2893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2894  }
  2895  
  2896  // GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio clip
  2897  // to be played by the client as part of the response.
  2898  type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
  2899  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  2900  	// can be interrupted by the end user's speech and the client can then starts
  2901  	// the next Dialogflow request.
  2902  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  2903  	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose any
  2904  	// validation on this value. It is specific to the client that reads it.
  2905  	AudioUri string `json:"audioUri,omitempty"`
  2906  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  2907  	// to unconditionally include in API requests. By default, fields with empty or
  2908  	// default values are omitted from API requests. See
  2909  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2910  	// details.
  2911  	ForceSendFields []string `json:"-"`
  2912  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  2913  	// include in API requests with the JSON null value. By default, fields with
  2914  	// empty values are omitted from API requests. See
  2915  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2916  	NullFields []string `json:"-"`
  2917  }
  2918  
  2919  func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
  2920  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
  2921  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2922  }
  2923  
  2924  // GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall: Represents
  2925  // the signal that telles the client to transfer the phone call connected to
  2926  // the agent to a third-party endpoint.
  2927  type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {
  2928  	// PhoneNumber: Transfer the call to a phone number in E.164 format
  2929  	// (https://en.wikipedia.org/wiki/E.164).
  2930  	PhoneNumber string `json:"phoneNumber,omitempty"`
  2931  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  2932  	// unconditionally include in API requests. By default, fields with empty or
  2933  	// default values are omitted from API requests. See
  2934  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2935  	// details.
  2936  	ForceSendFields []string `json:"-"`
  2937  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  2938  	// requests with the JSON null value. By default, fields with empty values are
  2939  	// omitted from API requests. See
  2940  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2941  	NullFields []string `json:"-"`
  2942  }
  2943  
  2944  func (s *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
  2945  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
  2946  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2947  }
  2948  
  2949  // GoogleCloudDialogflowCxV3ResponseMessageText: The text response message.
  2950  type GoogleCloudDialogflowCxV3ResponseMessageText struct {
  2951  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  2952  	// can be interrupted by the end user's speech and the client can then starts
  2953  	// the next Dialogflow request.
  2954  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  2955  	// Text: Required. A collection of text responses.
  2956  	Text []string `json:"text,omitempty"`
  2957  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  2958  	// to unconditionally include in API requests. By default, fields with empty or
  2959  	// default values are omitted from API requests. See
  2960  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2961  	// details.
  2962  	ForceSendFields []string `json:"-"`
  2963  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  2964  	// include in API requests with the JSON null value. By default, fields with
  2965  	// empty values are omitted from API requests. See
  2966  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2967  	NullFields []string `json:"-"`
  2968  }
  2969  
  2970  func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
  2971  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
  2972  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2973  }
  2974  
  2975  // GoogleCloudDialogflowCxV3RunContinuousTestMetadata: Metadata returned for
  2976  // the Environments.RunContinuousTest long running operation.
  2977  type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
  2978  	// Errors: The test errors.
  2979  	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
  2980  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  2981  	// include in API requests. By default, fields with empty or default values are
  2982  	// omitted from API requests. See
  2983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2984  	// details.
  2985  	ForceSendFields []string `json:"-"`
  2986  	// NullFields is a list of field names (e.g. "Errors") to include in API
  2987  	// requests with the JSON null value. By default, fields with empty values are
  2988  	// omitted from API requests. See
  2989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2990  	NullFields []string `json:"-"`
  2991  }
  2992  
  2993  func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
  2994  	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
  2995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2996  }
  2997  
  2998  // GoogleCloudDialogflowCxV3RunContinuousTestResponse: The response message for
  2999  // Environments.RunContinuousTest.
  3000  type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
  3001  	// ContinuousTestResult: The result for a continuous test run.
  3002  	ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
  3003  	// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") to
  3004  	// unconditionally include in API requests. By default, fields with empty or
  3005  	// default values are omitted from API requests. See
  3006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3007  	// details.
  3008  	ForceSendFields []string `json:"-"`
  3009  	// NullFields is a list of field names (e.g. "ContinuousTestResult") to include
  3010  	// in API requests with the JSON null value. By default, fields with empty
  3011  	// values are omitted from API requests. See
  3012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3013  	NullFields []string `json:"-"`
  3014  }
  3015  
  3016  func (s *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
  3017  	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
  3018  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3019  }
  3020  
  3021  // GoogleCloudDialogflowCxV3RunTestCaseMetadata: Metadata returned for the
  3022  // TestCases.RunTestCase long running operation. This message currently has no
  3023  // fields.
  3024  type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
  3025  }
  3026  
  3027  // GoogleCloudDialogflowCxV3RunTestCaseResponse: The response message for
  3028  // TestCases.RunTestCase.
  3029  type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
  3030  	// Result: The result.
  3031  	Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
  3032  	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
  3033  	// include in API requests. By default, fields with empty or default values are
  3034  	// omitted from API requests. See
  3035  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3036  	// details.
  3037  	ForceSendFields []string `json:"-"`
  3038  	// NullFields is a list of field names (e.g. "Result") to include in API
  3039  	// requests with the JSON null value. By default, fields with empty values are
  3040  	// omitted from API requests. See
  3041  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3042  	NullFields []string `json:"-"`
  3043  }
  3044  
  3045  func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
  3046  	type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
  3047  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3048  }
  3049  
  3050  // GoogleCloudDialogflowCxV3SessionInfo: Represents session information
  3051  // communicated to and from the webhook.
  3052  type GoogleCloudDialogflowCxV3SessionInfo struct {
  3053  	// Parameters: Optional for WebhookRequest. Optional for WebhookResponse. All
  3054  	// parameters collected from forms and intents during the session. Parameters
  3055  	// can be created, updated, or removed by the webhook. To remove a parameter
  3056  	// from the session, the webhook should explicitly set the parameter value to
  3057  	// null in WebhookResponse. The map is keyed by parameters' display names.
  3058  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  3059  	// Session: Always present for WebhookRequest. Ignored for WebhookResponse. The
  3060  	// unique identifier of the session. This field can be used by the webhook to
  3061  	// identify a session. Format: `projects//locations//agents//sessions/` or
  3062  	// `projects//locations//agents//environments//sessions/` if environment is
  3063  	// specified.
  3064  	Session string `json:"session,omitempty"`
  3065  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  3066  	// unconditionally include in API requests. By default, fields with empty or
  3067  	// default values are omitted from API requests. See
  3068  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3069  	// details.
  3070  	ForceSendFields []string `json:"-"`
  3071  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  3072  	// requests with the JSON null value. By default, fields with empty values are
  3073  	// omitted from API requests. See
  3074  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3075  	NullFields []string `json:"-"`
  3076  }
  3077  
  3078  func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
  3079  	type NoMethod GoogleCloudDialogflowCxV3SessionInfo
  3080  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3081  }
  3082  
  3083  // GoogleCloudDialogflowCxV3TestCase: Represents a test case.
  3084  type GoogleCloudDialogflowCxV3TestCase struct {
  3085  	// CreationTime: Output only. When the test was created.
  3086  	CreationTime string `json:"creationTime,omitempty"`
  3087  	// DisplayName: Required. The human-readable name of the test case, unique
  3088  	// within the agent. Limit of 200 characters.
  3089  	DisplayName string `json:"displayName,omitempty"`
  3090  	// LastTestResult: The latest test result.
  3091  	LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
  3092  	// Name: The unique identifier of the test case. TestCases.CreateTestCase will
  3093  	// populate the name automatically. Otherwise use format:
  3094  	// `projects//locations//agents/ /testCases/`.
  3095  	Name string `json:"name,omitempty"`
  3096  	// Notes: Additional freeform notes about the test case. Limit of 400
  3097  	// characters.
  3098  	Notes string `json:"notes,omitempty"`
  3099  	// Tags: Tags are short descriptions that users may apply to test cases for
  3100  	// organizational and filtering purposes. Each tag should start with "#" and
  3101  	// has a limit of 30 characters.
  3102  	Tags []string `json:"tags,omitempty"`
  3103  	// TestCaseConversationTurns: The conversation turns uttered when the test case
  3104  	// was created, in chronological order. These include the canonical set of
  3105  	// agent utterances that should occur when the agent is working properly.
  3106  	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
  3107  	// TestConfig: Config for the test case.
  3108  	TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
  3109  	// ForceSendFields is a list of field names (e.g. "CreationTime") to
  3110  	// unconditionally include in API requests. By default, fields with empty or
  3111  	// default values are omitted from API requests. See
  3112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3113  	// details.
  3114  	ForceSendFields []string `json:"-"`
  3115  	// NullFields is a list of field names (e.g. "CreationTime") to include in API
  3116  	// requests with the JSON null value. By default, fields with empty values are
  3117  	// omitted from API requests. See
  3118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3119  	NullFields []string `json:"-"`
  3120  }
  3121  
  3122  func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
  3123  	type NoMethod GoogleCloudDialogflowCxV3TestCase
  3124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3125  }
  3126  
  3127  // GoogleCloudDialogflowCxV3TestCaseError: Error info for importing a test.
  3128  type GoogleCloudDialogflowCxV3TestCaseError struct {
  3129  	// Status: The status associated with the test case.
  3130  	Status *GoogleRpcStatus `json:"status,omitempty"`
  3131  	// TestCase: The test case.
  3132  	TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
  3133  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  3134  	// include in API requests. By default, fields with empty or default values are
  3135  	// omitted from API requests. See
  3136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3137  	// details.
  3138  	ForceSendFields []string `json:"-"`
  3139  	// NullFields is a list of field names (e.g. "Status") to include in API
  3140  	// requests with the JSON null value. By default, fields with empty values are
  3141  	// omitted from API requests. See
  3142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3143  	NullFields []string `json:"-"`
  3144  }
  3145  
  3146  func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
  3147  	type NoMethod GoogleCloudDialogflowCxV3TestCaseError
  3148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3149  }
  3150  
  3151  // GoogleCloudDialogflowCxV3TestCaseResult: Represents a result from running a
  3152  // test case in an agent environment.
  3153  type GoogleCloudDialogflowCxV3TestCaseResult struct {
  3154  	// ConversationTurns: The conversation turns uttered during the test case
  3155  	// replay in chronological order.
  3156  	ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
  3157  	// Environment: Environment where the test was run. If not set, it indicates
  3158  	// the draft environment.
  3159  	Environment string `json:"environment,omitempty"`
  3160  	// Name: The resource name for the test case result. Format:
  3161  	// `projects//locations//agents//testCases/ /results/`.
  3162  	Name string `json:"name,omitempty"`
  3163  	// TestResult: Whether the test case passed in the agent environment.
  3164  	//
  3165  	// Possible values:
  3166  	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
  3167  	//   "PASSED" - The test passed.
  3168  	//   "FAILED" - The test did not pass.
  3169  	TestResult string `json:"testResult,omitempty"`
  3170  	// TestTime: The time that the test was run.
  3171  	TestTime string `json:"testTime,omitempty"`
  3172  	// ForceSendFields is a list of field names (e.g. "ConversationTurns") to
  3173  	// unconditionally include in API requests. By default, fields with empty or
  3174  	// default values are omitted from API requests. See
  3175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3176  	// details.
  3177  	ForceSendFields []string `json:"-"`
  3178  	// NullFields is a list of field names (e.g. "ConversationTurns") to include in
  3179  	// API requests with the JSON null value. By default, fields with empty values
  3180  	// are omitted from API requests. See
  3181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3182  	NullFields []string `json:"-"`
  3183  }
  3184  
  3185  func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
  3186  	type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
  3187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3188  }
  3189  
  3190  // GoogleCloudDialogflowCxV3TestConfig: Represents configurations for a test
  3191  // case.
  3192  type GoogleCloudDialogflowCxV3TestConfig struct {
  3193  	// Flow: Flow name to start the test case with. Format:
  3194  	// `projects//locations//agents//flows/`. Only one of `flow` and `page` should
  3195  	// be set to indicate the starting point of the test case. If both are set,
  3196  	// `page` takes precedence over `flow`. If neither is set, the test case will
  3197  	// start with start page on the default start flow.
  3198  	Flow string `json:"flow,omitempty"`
  3199  	// Page: The page to start the test case with. Format:
  3200  	// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`
  3201  	// should be set to indicate the starting point of the test case. If both are
  3202  	// set, `page` takes precedence over `flow`. If neither is set, the test case
  3203  	// will start with start page on the default start flow.
  3204  	Page string `json:"page,omitempty"`
  3205  	// TrackingParameters: Session parameters to be compared when calculating
  3206  	// differences.
  3207  	TrackingParameters []string `json:"trackingParameters,omitempty"`
  3208  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  3209  	// include in API requests. By default, fields with empty or default values are
  3210  	// omitted from API requests. See
  3211  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3212  	// details.
  3213  	ForceSendFields []string `json:"-"`
  3214  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  3215  	// with the JSON null value. By default, fields with empty values are omitted
  3216  	// from API requests. See
  3217  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3218  	NullFields []string `json:"-"`
  3219  }
  3220  
  3221  func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
  3222  	type NoMethod GoogleCloudDialogflowCxV3TestConfig
  3223  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3224  }
  3225  
  3226  // GoogleCloudDialogflowCxV3TestError: Error info for running a test.
  3227  type GoogleCloudDialogflowCxV3TestError struct {
  3228  	// Status: The status associated with the test.
  3229  	Status *GoogleRpcStatus `json:"status,omitempty"`
  3230  	// TestCase: The test case resource name.
  3231  	TestCase string `json:"testCase,omitempty"`
  3232  	// TestTime: The timestamp when the test was completed.
  3233  	TestTime string `json:"testTime,omitempty"`
  3234  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  3235  	// include in API requests. By default, fields with empty or default values are
  3236  	// omitted from API requests. See
  3237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3238  	// details.
  3239  	ForceSendFields []string `json:"-"`
  3240  	// NullFields is a list of field names (e.g. "Status") to include in API
  3241  	// requests with the JSON null value. By default, fields with empty values are
  3242  	// omitted from API requests. See
  3243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3244  	NullFields []string `json:"-"`
  3245  }
  3246  
  3247  func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
  3248  	type NoMethod GoogleCloudDialogflowCxV3TestError
  3249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3250  }
  3251  
  3252  // GoogleCloudDialogflowCxV3TestRunDifference: The description of differences
  3253  // between original and replayed agent output.
  3254  type GoogleCloudDialogflowCxV3TestRunDifference struct {
  3255  	// Description: A human readable description of the diff, showing the actual
  3256  	// output vs expected output.
  3257  	Description string `json:"description,omitempty"`
  3258  	// Type: The type of diff.
  3259  	//
  3260  	// Possible values:
  3261  	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
  3262  	//   "INTENT" - The intent.
  3263  	//   "PAGE" - The page.
  3264  	//   "PARAMETERS" - The parameters.
  3265  	//   "UTTERANCE" - The message utterance.
  3266  	//   "FLOW" - The flow.
  3267  	Type string `json:"type,omitempty"`
  3268  	// ForceSendFields is a list of field names (e.g. "Description") to
  3269  	// unconditionally include in API requests. By default, fields with empty or
  3270  	// default values are omitted from API requests. See
  3271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3272  	// details.
  3273  	ForceSendFields []string `json:"-"`
  3274  	// NullFields is a list of field names (e.g. "Description") to include in API
  3275  	// requests with the JSON null value. By default, fields with empty values are
  3276  	// omitted from API requests. See
  3277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3278  	NullFields []string `json:"-"`
  3279  }
  3280  
  3281  func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
  3282  	type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
  3283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3284  }
  3285  
  3286  // GoogleCloudDialogflowCxV3TextInput: Represents the natural language text to
  3287  // be processed.
  3288  type GoogleCloudDialogflowCxV3TextInput struct {
  3289  	// Text: Required. The UTF-8 encoded natural language text to be processed.
  3290  	Text string `json:"text,omitempty"`
  3291  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  3292  	// include in API requests. By default, fields with empty or default values are
  3293  	// omitted from API requests. See
  3294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3295  	// details.
  3296  	ForceSendFields []string `json:"-"`
  3297  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  3298  	// with the JSON null value. By default, fields with empty values are omitted
  3299  	// from API requests. See
  3300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3301  	NullFields []string `json:"-"`
  3302  }
  3303  
  3304  func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
  3305  	type NoMethod GoogleCloudDialogflowCxV3TextInput
  3306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3307  }
  3308  
  3309  // GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a
  3310  // intent that can be matched and/or a data condition that can be evaluated
  3311  // during a session. When a specified transition is matched, the following
  3312  // actions are taken in order: * If there is a `trigger_fulfillment` associated
  3313  // with the transition, it will be called. * If there is a `target_page`
  3314  // associated with the transition, the session will transition into the
  3315  // specified page. * If there is a `target_flow` associated with the
  3316  // transition, the session will transition into the specified flow.
  3317  type GoogleCloudDialogflowCxV3TransitionRoute struct {
  3318  	// Condition: The condition to evaluate against form parameters or session
  3319  	// parameters. See the conditions reference
  3320  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least
  3321  	// one of `intent` or `condition` must be specified. When both `intent` and
  3322  	// `condition` are specified, the transition can only happen when both are
  3323  	// fulfilled.
  3324  	Condition string `json:"condition,omitempty"`
  3325  	// Description: Optional. The description of the transition route. The maximum
  3326  	// length is 500 characters.
  3327  	Description string `json:"description,omitempty"`
  3328  	// Intent: The unique identifier of an Intent. Format:
  3329  	// `projects//locations//agents//intents/`. Indicates that the transition can
  3330  	// only happen when the given intent is matched. At least one of `intent` or
  3331  	// `condition` must be specified. When both `intent` and `condition` are
  3332  	// specified, the transition can only happen when both are fulfilled.
  3333  	Intent string `json:"intent,omitempty"`
  3334  	// Name: Output only. The unique identifier of this transition route.
  3335  	Name string `json:"name,omitempty"`
  3336  	// TargetFlow: The target flow to transition to. Format:
  3337  	// `projects//locations//agents//flows/`.
  3338  	TargetFlow string `json:"targetFlow,omitempty"`
  3339  	// TargetPage: The target page to transition to. Format:
  3340  	// `projects//locations//agents//flows//pages/`.
  3341  	TargetPage string `json:"targetPage,omitempty"`
  3342  	// TriggerFulfillment: The fulfillment to call when the condition is satisfied.
  3343  	// At least one of `trigger_fulfillment` and `target` must be specified. When
  3344  	// both are defined, `trigger_fulfillment` is executed first.
  3345  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  3346  	// ForceSendFields is a list of field names (e.g. "Condition") to
  3347  	// unconditionally include in API requests. By default, fields with empty or
  3348  	// default values are omitted from API requests. See
  3349  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3350  	// details.
  3351  	ForceSendFields []string `json:"-"`
  3352  	// NullFields is a list of field names (e.g. "Condition") to include in API
  3353  	// requests with the JSON null value. By default, fields with empty values are
  3354  	// omitted from API requests. See
  3355  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3356  	NullFields []string `json:"-"`
  3357  }
  3358  
  3359  func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
  3360  	type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
  3361  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3362  }
  3363  
  3364  // GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that were
  3365  // extracted for a single turn of the conversation.
  3366  type GoogleCloudDialogflowCxV3TurnSignals struct {
  3367  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
  3368  	AgentEscalated bool `json:"agentEscalated,omitempty"`
  3369  	// DtmfUsed: Whether user was using DTMF input.
  3370  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
  3371  	// FailureReasons: Failure reasons of the turn.
  3372  	//
  3373  	// Possible values:
  3374  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
  3375  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
  3376  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
  3377  	FailureReasons []string `json:"failureReasons,omitempty"`
  3378  	// NoMatch: Whether NLU predicted NO_MATCH.
  3379  	NoMatch bool `json:"noMatch,omitempty"`
  3380  	// NoUserInput: Whether user provided no input.
  3381  	NoUserInput bool `json:"noUserInput,omitempty"`
  3382  	// ReachedEndPage: Whether turn resulted in End Session page.
  3383  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
  3384  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
  3385  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  3386  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
  3387  	// SentimentScore: Sentiment score of the user utterance if sentiment
  3388  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  3389  	SentimentScore float64 `json:"sentimentScore,omitempty"`
  3390  	// UserEscalated: Whether user was specifically asking for a live agent.
  3391  	UserEscalated bool `json:"userEscalated,omitempty"`
  3392  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
  3393  	// this turn.
  3394  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
  3395  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
  3396  	// unconditionally include in API requests. By default, fields with empty or
  3397  	// default values are omitted from API requests. See
  3398  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3399  	// details.
  3400  	ForceSendFields []string `json:"-"`
  3401  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
  3402  	// API requests with the JSON null value. By default, fields with empty values
  3403  	// are omitted from API requests. See
  3404  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3405  	NullFields []string `json:"-"`
  3406  }
  3407  
  3408  func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) {
  3409  	type NoMethod GoogleCloudDialogflowCxV3TurnSignals
  3410  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3411  }
  3412  
  3413  func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error {
  3414  	type NoMethod GoogleCloudDialogflowCxV3TurnSignals
  3415  	var s1 struct {
  3416  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
  3417  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
  3418  		*NoMethod
  3419  	}
  3420  	s1.NoMethod = (*NoMethod)(s)
  3421  	if err := json.Unmarshal(data, &s1); err != nil {
  3422  		return err
  3423  	}
  3424  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
  3425  	s.SentimentScore = float64(s1.SentimentScore)
  3426  	return nil
  3427  }
  3428  
  3429  // GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata for
  3430  // UpdateDocument operation.
  3431  type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
  3432  	// GenericMetadata: The generic information of the operation.
  3433  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  3434  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  3435  	// unconditionally include in API requests. By default, fields with empty or
  3436  	// default values are omitted from API requests. See
  3437  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3438  	// details.
  3439  	ForceSendFields []string `json:"-"`
  3440  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  3441  	// API requests with the JSON null value. By default, fields with empty values
  3442  	// are omitted from API requests. See
  3443  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3444  	NullFields []string `json:"-"`
  3445  }
  3446  
  3447  func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  3448  	type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
  3449  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3450  }
  3451  
  3452  // GoogleCloudDialogflowCxV3Webhook: Webhooks host the developer's business
  3453  // logic. During a session, webhooks allow the developer to use the data
  3454  // extracted by Dialogflow's natural language processing to generate dynamic
  3455  // responses, validate collected data, or trigger actions on the backend.
  3456  type GoogleCloudDialogflowCxV3Webhook struct {
  3457  	// Disabled: Indicates whether the webhook is disabled.
  3458  	Disabled bool `json:"disabled,omitempty"`
  3459  	// DisplayName: Required. The human-readable name of the webhook, unique within
  3460  	// the agent.
  3461  	DisplayName string `json:"displayName,omitempty"`
  3462  	// GenericWebService: Configuration for a generic web service.
  3463  	GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
  3464  	// Name: The unique identifier of the webhook. Required for the
  3465  	// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name
  3466  	// automatically. Format: `projects//locations//agents//webhooks/`.
  3467  	Name string `json:"name,omitempty"`
  3468  	// ServiceDirectory: Configuration for a Service Directory
  3469  	// (https://cloud.google.com/service-directory) service.
  3470  	ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
  3471  	// Timeout: Webhook execution timeout. Execution is considered failed if
  3472  	// Dialogflow doesn't receive a response from webhook at the end of the timeout
  3473  	// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
  3474  	Timeout string `json:"timeout,omitempty"`
  3475  	// ForceSendFields is a list of field names (e.g. "Disabled") to
  3476  	// unconditionally include in API requests. By default, fields with empty or
  3477  	// default values are omitted from API requests. See
  3478  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3479  	// details.
  3480  	ForceSendFields []string `json:"-"`
  3481  	// NullFields is a list of field names (e.g. "Disabled") to include in API
  3482  	// requests with the JSON null value. By default, fields with empty values are
  3483  	// omitted from API requests. See
  3484  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3485  	NullFields []string `json:"-"`
  3486  }
  3487  
  3488  func (s *GoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte, error) {
  3489  	type NoMethod GoogleCloudDialogflowCxV3Webhook
  3490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3491  }
  3492  
  3493  // GoogleCloudDialogflowCxV3WebhookGenericWebService: Represents configuration
  3494  // for a generic web service.
  3495  type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {
  3496  	// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates
  3497  	// (in DER format) for HTTPS verification. This overrides the default SSL trust
  3498  	// store. If this is empty or unspecified, Dialogflow will use Google's default
  3499  	// trust store to verify certificates. N.B. Make sure the HTTPS server
  3500  	// certificates are signed with "subject alt name". For instance a certificate
  3501  	// can be self-signed using the following command, ``` openssl x509 -req -days
  3502  	// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \
  3503  	// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") ```
  3504  	AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
  3505  	// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard
  3506  	// webhook always uses POST.
  3507  	//
  3508  	// Possible values:
  3509  	//   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.
  3510  	//   "POST" - HTTP POST Method.
  3511  	//   "GET" - HTTP GET Method.
  3512  	//   "HEAD" - HTTP HEAD Method.
  3513  	//   "PUT" - HTTP PUT Method.
  3514  	//   "DELETE" - HTTP DELETE Method.
  3515  	//   "PATCH" - HTTP PATCH Method.
  3516  	//   "OPTIONS" - HTTP OPTIONS Method.
  3517  	HttpMethod string `json:"httpMethod,omitempty"`
  3518  	// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,
  3519  	// Dialogflow will initiate the OAuth client credential flow to exchange an
  3520  	// access token from the 3rd party platform and put it in the auth header.
  3521  	OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
  3522  	// ParameterMapping: Optional. Maps the values extracted from specific fields
  3523  	// of the flexible webhook response into session parameters. - Key: session
  3524  	// parameter name - Value: field path in the webhook response
  3525  	ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
  3526  	// Password: The password for HTTP Basic authentication.
  3527  	Password string `json:"password,omitempty"`
  3528  	// RequestBody: Optional. Defines a custom JSON object as request body to send
  3529  	// to flexible webhook.
  3530  	RequestBody string `json:"requestBody,omitempty"`
  3531  	// RequestHeaders: The HTTP request headers to send together with webhook
  3532  	// requests.
  3533  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
  3534  	// ServiceAgentAuth: Optional. Indicate the auth token type generated from the
  3535  	// Diglogflow service agent
  3536  	// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
  3537  	// The generated token is sent in the Authorization header.
  3538  	//
  3539  	// Possible values:
  3540  	//   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.
  3541  	// Default to ID_TOKEN.
  3542  	//   "NONE" - No token used.
  3543  	//   "ID_TOKEN" - Use [ID
  3544  	// token](https://cloud.google.com/docs/authentication/token-types#id)
  3545  	// generated from service agent. This can be used to access Cloud Function and
  3546  	// Cloud Run after you grant Invoker role to
  3547  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  3548  	//   "ACCESS_TOKEN" - Use [access
  3549  	// token](https://cloud.google.com/docs/authentication/token-types#access)
  3550  	// generated from service agent. This can be used to access other Google Cloud
  3551  	// APIs after you grant required roles to
  3552  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  3553  	ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
  3554  	// Uri: Required. The webhook URI for receiving POST requests. It must use
  3555  	// https protocol.
  3556  	Uri string `json:"uri,omitempty"`
  3557  	// Username: The user name for HTTP Basic authentication.
  3558  	Username string `json:"username,omitempty"`
  3559  	// WebhookType: Optional. Type of the webhook.
  3560  	//
  3561  	// Possible values:
  3562  	//   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.
  3563  	//   "STANDARD" - Represents a standard webhook.
  3564  	//   "FLEXIBLE" - Represents a flexible webhook.
  3565  	WebhookType string `json:"webhookType,omitempty"`
  3566  	// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to
  3567  	// unconditionally include in API requests. By default, fields with empty or
  3568  	// default values are omitted from API requests. See
  3569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3570  	// details.
  3571  	ForceSendFields []string `json:"-"`
  3572  	// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in
  3573  	// API requests with the JSON null value. By default, fields with empty values
  3574  	// are omitted from API requests. See
  3575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3576  	NullFields []string `json:"-"`
  3577  }
  3578  
  3579  func (s *GoogleCloudDialogflowCxV3WebhookGenericWebService) MarshalJSON() ([]byte, error) {
  3580  	type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebService
  3581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3582  }
  3583  
  3584  // GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig: Represents
  3585  // configuration of OAuth client credential flow for 3rd party API
  3586  // authentication.
  3587  type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {
  3588  	// ClientId: Required. The client ID provided by the 3rd party platform.
  3589  	ClientId string `json:"clientId,omitempty"`
  3590  	// ClientSecret: Required. The client secret provided by the 3rd party
  3591  	// platform.
  3592  	ClientSecret string `json:"clientSecret,omitempty"`
  3593  	// Scopes: Optional. The OAuth scopes to grant.
  3594  	Scopes []string `json:"scopes,omitempty"`
  3595  	// TokenEndpoint: Required. The token endpoint provided by the 3rd party
  3596  	// platform to exchange an access token.
  3597  	TokenEndpoint string `json:"tokenEndpoint,omitempty"`
  3598  	// ForceSendFields is a list of field names (e.g. "ClientId") to
  3599  	// unconditionally include in API requests. By default, fields with empty or
  3600  	// default values are omitted from API requests. See
  3601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3602  	// details.
  3603  	ForceSendFields []string `json:"-"`
  3604  	// NullFields is a list of field names (e.g. "ClientId") to include in API
  3605  	// requests with the JSON null value. By default, fields with empty values are
  3606  	// omitted from API requests. See
  3607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3608  	NullFields []string `json:"-"`
  3609  }
  3610  
  3611  func (s *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
  3612  	type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
  3613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3614  }
  3615  
  3616  // GoogleCloudDialogflowCxV3WebhookRequest: The request message for a webhook
  3617  // call. The request is sent as a JSON object and the field names will be
  3618  // presented in camel cases. You may see undocumented fields in an actual
  3619  // request. These fields are used internally by Dialogflow and should be
  3620  // ignored.
  3621  type GoogleCloudDialogflowCxV3WebhookRequest struct {
  3622  	// DetectIntentResponseId: Always present. The unique identifier of the
  3623  	// DetectIntentResponse that will be returned to the API caller.
  3624  	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
  3625  	// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF
  3626  	// digits.
  3627  	DtmfDigits string `json:"dtmfDigits,omitempty"`
  3628  	// FulfillmentInfo: Always present. Information about the fulfillment that
  3629  	// triggered this webhook call.
  3630  	FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
  3631  	// IntentInfo: Information about the last matched intent.
  3632  	IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
  3633  	// LanguageCode: The language code specified in the original request.
  3634  	LanguageCode string `json:"languageCode,omitempty"`
  3635  	// LanguageInfo: Information about the language of the request.
  3636  	LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"`
  3637  	// Messages: The list of rich message responses to present to the user. Webhook
  3638  	// can choose to append or replace this list in
  3639  	// WebhookResponse.fulfillment_response;
  3640  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  3641  	// PageInfo: Information about page status.
  3642  	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
  3643  	// Payload: Custom data set in QueryParameters.payload.
  3644  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  3645  	// SentimentAnalysisResult: The sentiment analysis result of the current user
  3646  	// request. The field is filled when sentiment analysis is configured to be
  3647  	// enabled for the request.
  3648  	SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
  3649  	// SessionInfo: Information about session status.
  3650  	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
  3651  	// Text: If natural language text was provided as input, this field will
  3652  	// contain a copy of the text.
  3653  	Text string `json:"text,omitempty"`
  3654  	// Transcript: If natural language speech audio was provided as input, this
  3655  	// field will contain the transcript for the audio.
  3656  	Transcript string `json:"transcript,omitempty"`
  3657  	// TriggerEvent: If an event was provided as input, this field will contain the
  3658  	// name of the event.
  3659  	TriggerEvent string `json:"triggerEvent,omitempty"`
  3660  	// TriggerIntent: If an intent was provided as input, this field will contain a
  3661  	// copy of the intent identifier. Format:
  3662  	// `projects//locations//agents//intents/`.
  3663  	TriggerIntent string `json:"triggerIntent,omitempty"`
  3664  	// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to
  3665  	// unconditionally include in API requests. By default, fields with empty or
  3666  	// default values are omitted from API requests. See
  3667  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3668  	// details.
  3669  	ForceSendFields []string `json:"-"`
  3670  	// NullFields is a list of field names (e.g. "DetectIntentResponseId") to
  3671  	// include in API requests with the JSON null value. By default, fields with
  3672  	// empty values are omitted from API requests. See
  3673  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3674  	NullFields []string `json:"-"`
  3675  }
  3676  
  3677  func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
  3678  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
  3679  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3680  }
  3681  
  3682  // GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents
  3683  // fulfillment information communicated to the webhook.
  3684  type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
  3685  	// Tag: Always present. The value of the Fulfillment.tag field will be
  3686  	// populated in this field by Dialogflow when the associated webhook is called.
  3687  	// The tag is typically used by the webhook service to identify which
  3688  	// fulfillment is being called, but it could be used for other purposes.
  3689  	Tag string `json:"tag,omitempty"`
  3690  	// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally
  3691  	// include in API requests. By default, fields with empty or default values are
  3692  	// omitted from API requests. See
  3693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3694  	// details.
  3695  	ForceSendFields []string `json:"-"`
  3696  	// NullFields is a list of field names (e.g. "Tag") to include in API requests
  3697  	// with the JSON null value. By default, fields with empty values are omitted
  3698  	// from API requests. See
  3699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3700  	NullFields []string `json:"-"`
  3701  }
  3702  
  3703  func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
  3704  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
  3705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3706  }
  3707  
  3708  // GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent
  3709  // information communicated to the webhook.
  3710  type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
  3711  	// Confidence: The confidence of the matched intent. Values range from 0.0
  3712  	// (completely uncertain) to 1.0 (completely certain).
  3713  	Confidence float64 `json:"confidence,omitempty"`
  3714  	// DisplayName: Always present. The display name of the last matched intent.
  3715  	DisplayName string `json:"displayName,omitempty"`
  3716  	// LastMatchedIntent: Always present. The unique identifier of the last matched
  3717  	// intent. Format: `projects//locations//agents//intents/`.
  3718  	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
  3719  	// Parameters: Parameters identified as a result of intent matching. This is a
  3720  	// map of the name of the identified parameter to the value of the parameter
  3721  	// identified from the user's utterance. All parameters defined in the matched
  3722  	// intent that are identified will be surfaced here.
  3723  	Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
  3724  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  3725  	// unconditionally include in API requests. By default, fields with empty or
  3726  	// default values are omitted from API requests. See
  3727  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3728  	// details.
  3729  	ForceSendFields []string `json:"-"`
  3730  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  3731  	// requests with the JSON null value. By default, fields with empty values are
  3732  	// omitted from API requests. See
  3733  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3734  	NullFields []string `json:"-"`
  3735  }
  3736  
  3737  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
  3738  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
  3739  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3740  }
  3741  
  3742  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
  3743  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
  3744  	var s1 struct {
  3745  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  3746  		*NoMethod
  3747  	}
  3748  	s1.NoMethod = (*NoMethod)(s)
  3749  	if err := json.Unmarshal(data, &s1); err != nil {
  3750  		return err
  3751  	}
  3752  	s.Confidence = float64(s1.Confidence)
  3753  	return nil
  3754  }
  3755  
  3756  // GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
  3757  // Represents a value for an intent parameter.
  3758  type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
  3759  	// OriginalValue: Always present. Original text value extracted from user
  3760  	// utterance.
  3761  	OriginalValue string `json:"originalValue,omitempty"`
  3762  	// ResolvedValue: Always present. Structured value for the parameter extracted
  3763  	// from user utterance.
  3764  	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
  3765  	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
  3766  	// unconditionally include in API requests. By default, fields with empty or
  3767  	// default values are omitted from API requests. See
  3768  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3769  	// details.
  3770  	ForceSendFields []string `json:"-"`
  3771  	// NullFields is a list of field names (e.g. "OriginalValue") to include in API
  3772  	// requests with the JSON null value. By default, fields with empty values are
  3773  	// omitted from API requests. See
  3774  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3775  	NullFields []string `json:"-"`
  3776  }
  3777  
  3778  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
  3779  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
  3780  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3781  }
  3782  
  3783  // GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult: Represents
  3784  // the result of sentiment analysis.
  3785  type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
  3786  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
  3787  	// the absolute magnitude of sentiment, regardless of score (positive or
  3788  	// negative).
  3789  	Magnitude float64 `json:"magnitude,omitempty"`
  3790  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
  3791  	// sentiment).
  3792  	Score float64 `json:"score,omitempty"`
  3793  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
  3794  	// unconditionally include in API requests. By default, fields with empty or
  3795  	// default values are omitted from API requests. See
  3796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3797  	// details.
  3798  	ForceSendFields []string `json:"-"`
  3799  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
  3800  	// requests with the JSON null value. By default, fields with empty values are
  3801  	// omitted from API requests. See
  3802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3803  	NullFields []string `json:"-"`
  3804  }
  3805  
  3806  func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
  3807  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
  3808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3809  }
  3810  
  3811  func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
  3812  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
  3813  	var s1 struct {
  3814  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
  3815  		Score     gensupport.JSONFloat64 `json:"score"`
  3816  		*NoMethod
  3817  	}
  3818  	s1.NoMethod = (*NoMethod)(s)
  3819  	if err := json.Unmarshal(data, &s1); err != nil {
  3820  		return err
  3821  	}
  3822  	s.Magnitude = float64(s1.Magnitude)
  3823  	s.Score = float64(s1.Score)
  3824  	return nil
  3825  }
  3826  
  3827  // GoogleCloudDialogflowCxV3WebhookResponse: The response message for a webhook
  3828  // call.
  3829  type GoogleCloudDialogflowCxV3WebhookResponse struct {
  3830  	// FulfillmentResponse: The fulfillment response to send to the user. This
  3831  	// field can be omitted by the webhook if it does not intend to send any
  3832  	// response to the user.
  3833  	FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
  3834  	// PageInfo: Information about page status. This field can be omitted by the
  3835  	// webhook if it does not intend to modify page status.
  3836  	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
  3837  	// Payload: Value to append directly to QueryResult.webhook_payloads.
  3838  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  3839  	// SessionInfo: Information about session status. This field can be omitted by
  3840  	// the webhook if it does not intend to modify session status.
  3841  	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
  3842  	// TargetFlow: The target flow to transition to. Format:
  3843  	// `projects//locations//agents//flows/`.
  3844  	TargetFlow string `json:"targetFlow,omitempty"`
  3845  	// TargetPage: The target page to transition to. Format:
  3846  	// `projects//locations//agents//flows//pages/`.
  3847  	TargetPage string `json:"targetPage,omitempty"`
  3848  	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to
  3849  	// unconditionally include in API requests. By default, fields with empty or
  3850  	// default values are omitted from API requests. See
  3851  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3852  	// details.
  3853  	ForceSendFields []string `json:"-"`
  3854  	// NullFields is a list of field names (e.g. "FulfillmentResponse") to include
  3855  	// in API requests with the JSON null value. By default, fields with empty
  3856  	// values are omitted from API requests. See
  3857  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3858  	NullFields []string `json:"-"`
  3859  }
  3860  
  3861  func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
  3862  	type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
  3863  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3864  }
  3865  
  3866  // GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse: Represents a
  3867  // fulfillment response to the user.
  3868  type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
  3869  	// MergeBehavior: Merge behavior for `messages`.
  3870  	//
  3871  	// Possible values:
  3872  	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be used.
  3873  	//   "APPEND" - `messages` will be appended to the list of messages waiting to
  3874  	// be sent to the user.
  3875  	//   "REPLACE" - `messages` will replace the list of messages waiting to be
  3876  	// sent to the user.
  3877  	MergeBehavior string `json:"mergeBehavior,omitempty"`
  3878  	// Messages: The list of rich message responses to present to the user.
  3879  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  3880  	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
  3881  	// unconditionally include in API requests. By default, fields with empty or
  3882  	// default values are omitted from API requests. See
  3883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3884  	// details.
  3885  	ForceSendFields []string `json:"-"`
  3886  	// NullFields is a list of field names (e.g. "MergeBehavior") to include in API
  3887  	// requests with the JSON null value. By default, fields with empty values are
  3888  	// omitted from API requests. See
  3889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3890  	NullFields []string `json:"-"`
  3891  }
  3892  
  3893  func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
  3894  	type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
  3895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3896  }
  3897  
  3898  // GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig: Represents
  3899  // configuration for a Service Directory
  3900  // (https://cloud.google.com/service-directory) service.
  3901  type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {
  3902  	// GenericWebService: Generic Service configuration of this webhook.
  3903  	GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
  3904  	// Service: Required. The name of Service Directory
  3905  	// (https://cloud.google.com/service-directory) service. Format:
  3906  	// `projects//locations//namespaces//services/`. `Location ID` of the service
  3907  	// directory must be the same as the location of the agent.
  3908  	Service string `json:"service,omitempty"`
  3909  	// ForceSendFields is a list of field names (e.g. "GenericWebService") to
  3910  	// unconditionally include in API requests. By default, fields with empty or
  3911  	// default values are omitted from API requests. See
  3912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3913  	// details.
  3914  	ForceSendFields []string `json:"-"`
  3915  	// NullFields is a list of field names (e.g. "GenericWebService") to include in
  3916  	// API requests with the JSON null value. By default, fields with empty values
  3917  	// are omitted from API requests. See
  3918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3919  	NullFields []string `json:"-"`
  3920  }
  3921  
  3922  func (s *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
  3923  	type NoMethod GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
  3924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3925  }
  3926  
  3927  // GoogleCloudDialogflowCxV3beta1AdvancedSettings: Hierarchical advanced
  3928  // settings for agent/flow/page/fulfillment/parameter. Settings exposed at
  3929  // lower level overrides the settings exposed at higher level. Overriding
  3930  // occurs at the sub-setting level. For example, the
  3931  // playback_interruption_settings at fulfillment level only overrides the
  3932  // playback_interruption_settings at the agent level, leaving other settings at
  3933  // the agent level unchanged. DTMF settings does not override each other. DTMF
  3934  // settings set at different levels define DTMF detections running in parallel.
  3935  // Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
  3936  type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {
  3937  	// AudioExportGcsDestination: If present, incoming audio is exported by
  3938  	// Dialogflow to the configured Google Cloud Storage destination. Exposed at
  3939  	// the following levels: - Agent level - Flow level
  3940  	AudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`
  3941  	// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent
  3942  	// level - Flow level - Page level - Parameter level.
  3943  	DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
  3944  	// LoggingSettings: Settings for logging. Settings for Dialogflow History,
  3945  	// Contact Center messages, StackDriver logs, and speech logging. Exposed at
  3946  	// the following levels: - Agent level.
  3947  	LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
  3948  	// SpeechSettings: Settings for speech to text detection. Exposed at the
  3949  	// following levels: - Agent level - Flow level - Page level - Parameter level
  3950  	SpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
  3951  	// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")
  3952  	// to unconditionally include in API requests. By default, fields with empty or
  3953  	// default values are omitted from API requests. See
  3954  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3955  	// details.
  3956  	ForceSendFields []string `json:"-"`
  3957  	// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to
  3958  	// include in API requests with the JSON null value. By default, fields with
  3959  	// empty values are omitted from API requests. See
  3960  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3961  	NullFields []string `json:"-"`
  3962  }
  3963  
  3964  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettings) MarshalJSON() ([]byte, error) {
  3965  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettings
  3966  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3967  }
  3968  
  3969  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings: Define behaviors
  3970  // for DTMF (dual tone multi frequency).
  3971  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {
  3972  	// Enabled: If true, incoming audio is processed for DTMF (dual tone multi
  3973  	// frequency) events. For example, if the caller presses a button on their
  3974  	// telephone keypad and DTMF processing is enabled, Dialogflow will detect the
  3975  	// event (e.g. a "3" was pressed) in the incoming audio and pass the event to
  3976  	// the bot to drive business logic (e.g. when 3 is pressed, return the account
  3977  	// balance).
  3978  	Enabled bool `json:"enabled,omitempty"`
  3979  	// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input
  3980  	// to regex.
  3981  	EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
  3982  	// FinishDigit: The digit that terminates a DTMF digit sequence.
  3983  	FinishDigit string `json:"finishDigit,omitempty"`
  3984  	// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf
  3985  	// input to regex.
  3986  	InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
  3987  	// MaxDigits: Max length of DTMF digits.
  3988  	MaxDigits int64 `json:"maxDigits,omitempty"`
  3989  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  3990  	// include in API requests. By default, fields with empty or default values are
  3991  	// omitted from API requests. See
  3992  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3993  	// details.
  3994  	ForceSendFields []string `json:"-"`
  3995  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  3996  	// requests with the JSON null value. By default, fields with empty values are
  3997  	// omitted from API requests. See
  3998  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3999  	NullFields []string `json:"-"`
  4000  }
  4001  
  4002  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
  4003  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
  4004  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4005  }
  4006  
  4007  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Define
  4008  // behaviors on logging.
  4009  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {
  4010  	// EnableInteractionLogging: If true, DF Interaction logging is currently
  4011  	// enabled.
  4012  	EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
  4013  	// EnableStackdriverLogging: If true, StackDriver logging is currently enabled.
  4014  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
  4015  	// ForceSendFields is a list of field names (e.g. "EnableInteractionLogging")
  4016  	// to unconditionally include in API requests. By default, fields with empty or
  4017  	// default values are omitted from API requests. See
  4018  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4019  	// details.
  4020  	ForceSendFields []string `json:"-"`
  4021  	// NullFields is a list of field names (e.g. "EnableInteractionLogging") to
  4022  	// include in API requests with the JSON null value. By default, fields with
  4023  	// empty values are omitted from API requests. See
  4024  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4025  	NullFields []string `json:"-"`
  4026  }
  4027  
  4028  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
  4029  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
  4030  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4031  }
  4032  
  4033  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings: Define
  4034  // behaviors of speech to text detection.
  4035  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {
  4036  	// EndpointerSensitivity: Sensitivity of the speech model that detects the end
  4037  	// of speech. Scale from 0 to 100.
  4038  	EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
  4039  	// Models: Mapping from language to Speech-to-Text model. The mapped
  4040  	// Speech-to-Text model will be selected for requests from its corresponding
  4041  	// language. For more information, see Speech models
  4042  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  4043  	Models map[string]string `json:"models,omitempty"`
  4044  	// NoSpeechTimeout: Timeout before detecting no speech.
  4045  	NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
  4046  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
  4047  	// endpointer sensitivy as seconds of timeout value.
  4048  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
  4049  	// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to
  4050  	// unconditionally include in API requests. By default, fields with empty or
  4051  	// default values are omitted from API requests. See
  4052  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4053  	// details.
  4054  	ForceSendFields []string `json:"-"`
  4055  	// NullFields is a list of field names (e.g. "EndpointerSensitivity") to
  4056  	// include in API requests with the JSON null value. By default, fields with
  4057  	// empty values are omitted from API requests. See
  4058  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4059  	NullFields []string `json:"-"`
  4060  }
  4061  
  4062  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
  4063  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
  4064  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4065  }
  4066  
  4067  // GoogleCloudDialogflowCxV3beta1Agent: Agents are best described as Natural
  4068  // Language Understanding (NLU) modules that transform user requests into
  4069  // actionable data. You can include agents in your app, product, or service to
  4070  // determine user intent and respond to the user in a natural way. After you
  4071  // create an agent, you can add Intents, Entity Types, Flows, Fulfillments,
  4072  // Webhooks, TransitionRouteGroups and so on to manage the conversation flows.
  4073  type GoogleCloudDialogflowCxV3beta1Agent struct {
  4074  	// AdvancedSettings: Hierarchical advanced settings for this agent. The
  4075  	// settings exposed at the lower level overrides the settings exposed at the
  4076  	// higher level.
  4077  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  4078  	// AnswerFeedbackSettings: Optional. Answer feedback collection settings.
  4079  	AnswerFeedbackSettings *GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings `json:"answerFeedbackSettings,omitempty"`
  4080  	// AvatarUri: The URI of the agent's avatar. Avatars are used throughout the
  4081  	// Dialogflow console and in the self-hosted Web Demo
  4082  	// (https://cloud.google.com/dialogflow/docs/integrations/web-demo)
  4083  	// integration.
  4084  	AvatarUri string `json:"avatarUri,omitempty"`
  4085  	// DefaultLanguageCode: Required. Immutable. The default language of the agent
  4086  	// as a language tag. See Language Support
  4087  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  4088  	// of the currently supported language codes. This field cannot be set by the
  4089  	// Agents.UpdateAgent method.
  4090  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  4091  	// Description: The description of the agent. The maximum length is 500
  4092  	// characters. If exceeded, the request is rejected.
  4093  	Description string `json:"description,omitempty"`
  4094  	// DisplayName: Required. The human-readable name of the agent, unique within
  4095  	// the location.
  4096  	DisplayName string `json:"displayName,omitempty"`
  4097  	// EnableMultiLanguageTraining: Optional. Enable training multi-lingual models
  4098  	// for this agent. These models will be trained on all the languages supported
  4099  	// by the agent.
  4100  	EnableMultiLanguageTraining bool `json:"enableMultiLanguageTraining,omitempty"`
  4101  	// EnableSpellCorrection: Indicates if automatic spell correction is enabled in
  4102  	// detect intent requests.
  4103  	EnableSpellCorrection bool `json:"enableSpellCorrection,omitempty"`
  4104  	// EnableStackdriverLogging: Indicates if stackdriver logging is enabled for
  4105  	// the agent. Please use agent.advanced_settings instead.
  4106  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
  4107  	// GenAppBuilderSettings: Gen App Builder-related agent-level settings.
  4108  	GenAppBuilderSettings *GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings `json:"genAppBuilderSettings,omitempty"`
  4109  	// GitIntegrationSettings: Git integration settings for this agent.
  4110  	GitIntegrationSettings *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings `json:"gitIntegrationSettings,omitempty"`
  4111  	// Locked: Indicates whether the agent is locked for changes. If the agent is
  4112  	// locked, modifications to the agent will be rejected except for RestoreAgent.
  4113  	Locked bool `json:"locked,omitempty"`
  4114  	// Name: The unique identifier of the agent. Required for the
  4115  	// Agents.UpdateAgent method. Agents.CreateAgent populates the name
  4116  	// automatically. Format: `projects//locations//agents/`.
  4117  	Name string `json:"name,omitempty"`
  4118  	// PersonalizationSettings: Optional. Settings for end user personalization.
  4119  	PersonalizationSettings *GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings `json:"personalizationSettings,omitempty"`
  4120  	// SecuritySettings: Name of the SecuritySettings reference for the agent.
  4121  	// Format: `projects//locations//securitySettings/`.
  4122  	SecuritySettings string `json:"securitySettings,omitempty"`
  4123  	// SpeechToTextSettings: Speech recognition related settings.
  4124  	SpeechToTextSettings *GoogleCloudDialogflowCxV3beta1SpeechToTextSettings `json:"speechToTextSettings,omitempty"`
  4125  	// StartFlow: Immutable. Name of the start flow in this agent. A start flow
  4126  	// will be automatically created when the agent is created, and can only be
  4127  	// deleted by deleting the agent. Format:
  4128  	// `projects//locations//agents//flows/`.
  4129  	StartFlow string `json:"startFlow,omitempty"`
  4130  	// SupportedLanguageCodes: The list of all languages supported by the agent
  4131  	// (except for the `default_language_code`).
  4132  	SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
  4133  	// TextToSpeechSettings: Settings on instructing the speech synthesizer on how
  4134  	// to generate the output audio content.
  4135  	TextToSpeechSettings *GoogleCloudDialogflowCxV3beta1TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
  4136  	// TimeZone: Required. The time zone of the agent from the time zone database
  4137  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  4138  	TimeZone string `json:"timeZone,omitempty"`
  4139  
  4140  	// ServerResponse contains the HTTP response code and headers from the server.
  4141  	googleapi.ServerResponse `json:"-"`
  4142  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  4143  	// unconditionally include in API requests. By default, fields with empty or
  4144  	// default values are omitted from API requests. See
  4145  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4146  	// details.
  4147  	ForceSendFields []string `json:"-"`
  4148  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  4149  	// API requests with the JSON null value. By default, fields with empty values
  4150  	// are omitted from API requests. See
  4151  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4152  	NullFields []string `json:"-"`
  4153  }
  4154  
  4155  func (s *GoogleCloudDialogflowCxV3beta1Agent) MarshalJSON() ([]byte, error) {
  4156  	type NoMethod GoogleCloudDialogflowCxV3beta1Agent
  4157  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4158  }
  4159  
  4160  // GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings: Settings for
  4161  // answer feedback collection.
  4162  type GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings struct {
  4163  	// EnableAnswerFeedback: Optional. If enabled, end users will be able to
  4164  	// provide answer feedback to Dialogflow responses. Feature works only if
  4165  	// interaction logging is enabled in the Dialogflow agent.
  4166  	EnableAnswerFeedback bool `json:"enableAnswerFeedback,omitempty"`
  4167  	// ForceSendFields is a list of field names (e.g. "EnableAnswerFeedback") to
  4168  	// unconditionally include in API requests. By default, fields with empty or
  4169  	// default values are omitted from API requests. See
  4170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4171  	// details.
  4172  	ForceSendFields []string `json:"-"`
  4173  	// NullFields is a list of field names (e.g. "EnableAnswerFeedback") to include
  4174  	// in API requests with the JSON null value. By default, fields with empty
  4175  	// values are omitted from API requests. See
  4176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4177  	NullFields []string `json:"-"`
  4178  }
  4179  
  4180  func (s *GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings) MarshalJSON() ([]byte, error) {
  4181  	type NoMethod GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings
  4182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4183  }
  4184  
  4185  // GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings: Settings for Gen
  4186  // App Builder.
  4187  type GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings struct {
  4188  	// Engine: Required. The full name of the Gen App Builder engine related to
  4189  	// this agent if there is one. Format: `projects/{Project
  4190  	// ID}/locations/{Location ID}/collections/{Collection ID}/engines/{Engine ID}`
  4191  	Engine string `json:"engine,omitempty"`
  4192  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
  4193  	// include in API requests. By default, fields with empty or default values are
  4194  	// omitted from API requests. See
  4195  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4196  	// details.
  4197  	ForceSendFields []string `json:"-"`
  4198  	// NullFields is a list of field names (e.g. "Engine") to include in API
  4199  	// requests with the JSON null value. By default, fields with empty values are
  4200  	// omitted from API requests. See
  4201  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4202  	NullFields []string `json:"-"`
  4203  }
  4204  
  4205  func (s *GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings) MarshalJSON() ([]byte, error) {
  4206  	type NoMethod GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings
  4207  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4208  }
  4209  
  4210  // GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings: Settings for
  4211  // connecting to Git repository for an agent.
  4212  type GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings struct {
  4213  	// GithubSettings: GitHub settings.
  4214  	GithubSettings *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings `json:"githubSettings,omitempty"`
  4215  	// ForceSendFields is a list of field names (e.g. "GithubSettings") to
  4216  	// unconditionally include in API requests. By default, fields with empty or
  4217  	// default values are omitted from API requests. See
  4218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4219  	// details.
  4220  	ForceSendFields []string `json:"-"`
  4221  	// NullFields is a list of field names (e.g. "GithubSettings") to include in
  4222  	// API requests with the JSON null value. By default, fields with empty values
  4223  	// are omitted from API requests. See
  4224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4225  	NullFields []string `json:"-"`
  4226  }
  4227  
  4228  func (s *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings) MarshalJSON() ([]byte, error) {
  4229  	type NoMethod GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings
  4230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4231  }
  4232  
  4233  // GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings:
  4234  // Settings of integration with GitHub.
  4235  type GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings struct {
  4236  	// AccessToken: The access token used to authenticate the access to the GitHub
  4237  	// repository.
  4238  	AccessToken string `json:"accessToken,omitempty"`
  4239  	// Branches: A list of branches configured to be used from Dialogflow.
  4240  	Branches []string `json:"branches,omitempty"`
  4241  	// DisplayName: The unique repository display name for the GitHub repository.
  4242  	DisplayName string `json:"displayName,omitempty"`
  4243  	// RepositoryUri: The GitHub repository URI related to the agent.
  4244  	RepositoryUri string `json:"repositoryUri,omitempty"`
  4245  	// TrackingBranch: The branch of the GitHub repository tracked for this agent.
  4246  	TrackingBranch string `json:"trackingBranch,omitempty"`
  4247  	// ForceSendFields is a list of field names (e.g. "AccessToken") to
  4248  	// unconditionally include in API requests. By default, fields with empty or
  4249  	// default values are omitted from API requests. See
  4250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4251  	// details.
  4252  	ForceSendFields []string `json:"-"`
  4253  	// NullFields is a list of field names (e.g. "AccessToken") to include in API
  4254  	// requests with the JSON null value. By default, fields with empty values are
  4255  	// omitted from API requests. See
  4256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4257  	NullFields []string `json:"-"`
  4258  }
  4259  
  4260  func (s *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings) MarshalJSON() ([]byte, error) {
  4261  	type NoMethod GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings
  4262  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4263  }
  4264  
  4265  // GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings: Settings for end
  4266  // user personalization.
  4267  type GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings struct {
  4268  	// DefaultEndUserMetadata: Optional. Default end user metadata, used when
  4269  	// processing DetectIntent requests. Recommended to be filled as a template
  4270  	// instead of hard-coded value, for example { "age": "$session.params.age" }.
  4271  	// The data will be merged with the QueryParameters.end_user_metadata in
  4272  	// DetectIntentRequest.query_params during query processing.
  4273  	DefaultEndUserMetadata googleapi.RawMessage `json:"defaultEndUserMetadata,omitempty"`
  4274  	// ForceSendFields is a list of field names (e.g. "DefaultEndUserMetadata") to
  4275  	// unconditionally include in API requests. By default, fields with empty or
  4276  	// default values are omitted from API requests. See
  4277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4278  	// details.
  4279  	ForceSendFields []string `json:"-"`
  4280  	// NullFields is a list of field names (e.g. "DefaultEndUserMetadata") to
  4281  	// include in API requests with the JSON null value. By default, fields with
  4282  	// empty values are omitted from API requests. See
  4283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4284  	NullFields []string `json:"-"`
  4285  }
  4286  
  4287  func (s *GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings) MarshalJSON() ([]byte, error) {
  4288  	type NoMethod GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings
  4289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4290  }
  4291  
  4292  // GoogleCloudDialogflowCxV3beta1AgentValidationResult: The response message
  4293  // for Agents.GetAgentValidationResult.
  4294  type GoogleCloudDialogflowCxV3beta1AgentValidationResult struct {
  4295  	// FlowValidationResults: Contains all flow validation results.
  4296  	FlowValidationResults []*GoogleCloudDialogflowCxV3beta1FlowValidationResult `json:"flowValidationResults,omitempty"`
  4297  	// Name: The unique identifier of the agent validation result. Format:
  4298  	// `projects//locations//agents//validationResult`.
  4299  	Name string `json:"name,omitempty"`
  4300  
  4301  	// ServerResponse contains the HTTP response code and headers from the server.
  4302  	googleapi.ServerResponse `json:"-"`
  4303  	// ForceSendFields is a list of field names (e.g. "FlowValidationResults") to
  4304  	// unconditionally include in API requests. By default, fields with empty or
  4305  	// default values are omitted from API requests. See
  4306  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4307  	// details.
  4308  	ForceSendFields []string `json:"-"`
  4309  	// NullFields is a list of field names (e.g. "FlowValidationResults") to
  4310  	// include in API requests with the JSON null value. By default, fields with
  4311  	// empty values are omitted from API requests. See
  4312  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4313  	NullFields []string `json:"-"`
  4314  }
  4315  
  4316  func (s *GoogleCloudDialogflowCxV3beta1AgentValidationResult) MarshalJSON() ([]byte, error) {
  4317  	type NoMethod GoogleCloudDialogflowCxV3beta1AgentValidationResult
  4318  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4319  }
  4320  
  4321  // GoogleCloudDialogflowCxV3beta1AnswerFeedback: Stores information about
  4322  // feedback provided by users about a response.
  4323  type GoogleCloudDialogflowCxV3beta1AnswerFeedback struct {
  4324  	// CustomRating: Optional. Custom rating from the user about the provided
  4325  	// answer, with maximum length of 1024 characters. For example, client could
  4326  	// use a customized JSON object to indicate the rating.
  4327  	CustomRating string `json:"customRating,omitempty"`
  4328  	// Rating: Optional. Rating from user for the specific Dialogflow response.
  4329  	//
  4330  	// Possible values:
  4331  	//   "RATING_UNSPECIFIED" - Rating not specified.
  4332  	//   "THUMBS_UP" - Thumbs up feedback from user.
  4333  	//   "THUMBS_DOWN" - Thumbs down feedback from user.
  4334  	Rating string `json:"rating,omitempty"`
  4335  	// RatingReason: Optional. In case of thumbs down rating provided, users can
  4336  	// optionally provide context about the rating.
  4337  	RatingReason *GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason `json:"ratingReason,omitempty"`
  4338  
  4339  	// ServerResponse contains the HTTP response code and headers from the server.
  4340  	googleapi.ServerResponse `json:"-"`
  4341  	// ForceSendFields is a list of field names (e.g. "CustomRating") to
  4342  	// unconditionally include in API requests. By default, fields with empty or
  4343  	// default values are omitted from API requests. See
  4344  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4345  	// details.
  4346  	ForceSendFields []string `json:"-"`
  4347  	// NullFields is a list of field names (e.g. "CustomRating") to include in API
  4348  	// requests with the JSON null value. By default, fields with empty values are
  4349  	// omitted from API requests. See
  4350  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4351  	NullFields []string `json:"-"`
  4352  }
  4353  
  4354  func (s *GoogleCloudDialogflowCxV3beta1AnswerFeedback) MarshalJSON() ([]byte, error) {
  4355  	type NoMethod GoogleCloudDialogflowCxV3beta1AnswerFeedback
  4356  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4357  }
  4358  
  4359  // GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason: Stores extra
  4360  // information about why users provided thumbs down rating.
  4361  type GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason struct {
  4362  	// Feedback: Optional. Additional feedback about the rating. This field can be
  4363  	// populated without choosing a predefined `reason`.
  4364  	Feedback string `json:"feedback,omitempty"`
  4365  	// ReasonLabels: Optional. Custom reason labels for thumbs down rating provided
  4366  	// by the user. The maximum number of labels allowed is 10 and the maximum
  4367  	// length of a single label is 128 characters.
  4368  	ReasonLabels []string `json:"reasonLabels,omitempty"`
  4369  	// ForceSendFields is a list of field names (e.g. "Feedback") to
  4370  	// unconditionally include in API requests. By default, fields with empty or
  4371  	// default values are omitted from API requests. See
  4372  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4373  	// details.
  4374  	ForceSendFields []string `json:"-"`
  4375  	// NullFields is a list of field names (e.g. "Feedback") to include in API
  4376  	// requests with the JSON null value. By default, fields with empty values are
  4377  	// omitted from API requests. See
  4378  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4379  	NullFields []string `json:"-"`
  4380  }
  4381  
  4382  func (s *GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason) MarshalJSON() ([]byte, error) {
  4383  	type NoMethod GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason
  4384  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4385  }
  4386  
  4387  // GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural speech
  4388  // audio to be processed.
  4389  type GoogleCloudDialogflowCxV3beta1AudioInput struct {
  4390  	// Audio: The natural language speech audio to be processed. A single request
  4391  	// can contain up to 2 minutes of speech audio data. The transcribed text
  4392  	// cannot contain more than 256 bytes. For non-streaming audio detect intent,
  4393  	// both `config` and `audio` must be provided. For streaming audio detect
  4394  	// intent, `config` must be provided in the first request and `audio` must be
  4395  	// provided in all following requests.
  4396  	Audio string `json:"audio,omitempty"`
  4397  	// Config: Required. Instructs the speech recognizer how to process the speech
  4398  	// audio.
  4399  	Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
  4400  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  4401  	// include in API requests. By default, fields with empty or default values are
  4402  	// omitted from API requests. See
  4403  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4404  	// details.
  4405  	ForceSendFields []string `json:"-"`
  4406  	// NullFields is a list of field names (e.g. "Audio") to include in API
  4407  	// requests with the JSON null value. By default, fields with empty values are
  4408  	// omitted from API requests. See
  4409  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4410  	NullFields []string `json:"-"`
  4411  }
  4412  
  4413  func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
  4414  	type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
  4415  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4416  }
  4417  
  4418  // GoogleCloudDialogflowCxV3beta1BargeInConfig: Configuration of the barge-in
  4419  // behavior. Barge-in instructs the API to return a detected utterance at a
  4420  // proper time while the client is playing back the response audio from a
  4421  // previous request. When the client sees the utterance, it should stop the
  4422  // playback and immediately get ready for receiving the responses for the
  4423  // current request. The barge-in handling requires the client to start
  4424  // streaming audio input as soon as it starts playing back the audio from the
  4425  // previous response. The playback is modeled into two phases: * No barge-in
  4426  // phase: which goes first and during which speech detection should not be
  4427  // carried out. * Barge-in phase: which follows the no barge-in phase and
  4428  // during which the API starts speech detection and may inform the client that
  4429  // an utterance has been detected. Note that no-speech event is not expected in
  4430  // this phase. The client provides this configuration in terms of the durations
  4431  // of those two phases. The durations are measured in terms of the audio length
  4432  // from the the start of the input audio. No-speech event is a response with
  4433  // END_OF_UTTERANCE without any transcript following up.
  4434  type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {
  4435  	// NoBargeInDuration: Duration that is not eligible for barge-in at the
  4436  	// beginning of the input audio.
  4437  	NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
  4438  	// TotalDuration: Total duration for the playback at the beginning of the input
  4439  	// audio.
  4440  	TotalDuration string `json:"totalDuration,omitempty"`
  4441  	// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to
  4442  	// unconditionally include in API requests. By default, fields with empty or
  4443  	// default values are omitted from API requests. See
  4444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4445  	// details.
  4446  	ForceSendFields []string `json:"-"`
  4447  	// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in
  4448  	// API requests with the JSON null value. By default, fields with empty values
  4449  	// are omitted from API requests. See
  4450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4451  	NullFields []string `json:"-"`
  4452  }
  4453  
  4454  func (s *GoogleCloudDialogflowCxV3beta1BargeInConfig) MarshalJSON() ([]byte, error) {
  4455  	type NoMethod GoogleCloudDialogflowCxV3beta1BargeInConfig
  4456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4457  }
  4458  
  4459  // GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest: The request
  4460  // message for TestCases.BatchDeleteTestCases.
  4461  type GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest struct {
  4462  	// Names: Required. Format of test case names: `projects//locations/
  4463  	// /agents//testCases/`.
  4464  	Names []string `json:"names,omitempty"`
  4465  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
  4466  	// include in API requests. By default, fields with empty or default values are
  4467  	// omitted from API requests. See
  4468  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4469  	// details.
  4470  	ForceSendFields []string `json:"-"`
  4471  	// NullFields is a list of field names (e.g. "Names") to include in API
  4472  	// requests with the JSON null value. By default, fields with empty values are
  4473  	// omitted from API requests. See
  4474  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4475  	NullFields []string `json:"-"`
  4476  }
  4477  
  4478  func (s *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest) MarshalJSON() ([]byte, error) {
  4479  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest
  4480  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4481  }
  4482  
  4483  // GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata: Metadata returned
  4484  // for the TestCases.BatchRunTestCases long running operation.
  4485  type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
  4486  	// Errors: The test errors.
  4487  	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
  4488  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  4489  	// include in API requests. By default, fields with empty or default values are
  4490  	// omitted from API requests. See
  4491  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4492  	// details.
  4493  	ForceSendFields []string `json:"-"`
  4494  	// NullFields is a list of field names (e.g. "Errors") to include in API
  4495  	// requests with the JSON null value. By default, fields with empty values are
  4496  	// omitted from API requests. See
  4497  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4498  	NullFields []string `json:"-"`
  4499  }
  4500  
  4501  func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
  4502  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
  4503  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4504  }
  4505  
  4506  // GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest: The request message
  4507  // for TestCases.BatchRunTestCases.
  4508  type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest struct {
  4509  	// Environment: Optional. If not set, draft environment is assumed. Format:
  4510  	// `projects//locations//agents//environments/`.
  4511  	Environment string `json:"environment,omitempty"`
  4512  	// TestCases: Required. Format: `projects//locations//agents//testCases/`.
  4513  	TestCases []string `json:"testCases,omitempty"`
  4514  	// ForceSendFields is a list of field names (e.g. "Environment") to
  4515  	// unconditionally include in API requests. By default, fields with empty or
  4516  	// default values are omitted from API requests. See
  4517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4518  	// details.
  4519  	ForceSendFields []string `json:"-"`
  4520  	// NullFields is a list of field names (e.g. "Environment") to include in API
  4521  	// requests with the JSON null value. By default, fields with empty values are
  4522  	// omitted from API requests. See
  4523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4524  	NullFields []string `json:"-"`
  4525  }
  4526  
  4527  func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest) MarshalJSON() ([]byte, error) {
  4528  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest
  4529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4530  }
  4531  
  4532  // GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse: The response
  4533  // message for TestCases.BatchRunTestCases.
  4534  type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
  4535  	// Results: The test case results. The detailed conversation turns are empty in
  4536  	// this response.
  4537  	Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
  4538  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
  4539  	// include in API requests. By default, fields with empty or default values are
  4540  	// omitted from API requests. See
  4541  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4542  	// details.
  4543  	ForceSendFields []string `json:"-"`
  4544  	// NullFields is a list of field names (e.g. "Results") to include in API
  4545  	// requests with the JSON null value. By default, fields with empty values are
  4546  	// omitted from API requests. See
  4547  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4548  	NullFields []string `json:"-"`
  4549  }
  4550  
  4551  func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
  4552  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
  4553  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4554  }
  4555  
  4556  // GoogleCloudDialogflowCxV3beta1BoostSpec: Boost specification to boost
  4557  // certain documents. A copy of google.cloud.discoveryengine.v1main.BoostSpec,
  4558  // field documentation is available at
  4559  // https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/BoostSpec
  4560  type GoogleCloudDialogflowCxV3beta1BoostSpec struct {
  4561  	// ConditionBoostSpecs: Optional. Condition boost specifications. If a document
  4562  	// matches multiple conditions in the specifictions, boost scores from these
  4563  	// specifications are all applied and combined in a non-linear way. Maximum
  4564  	// number of specifications is 20.
  4565  	ConditionBoostSpecs []*GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
  4566  	// ForceSendFields is a list of field names (e.g. "ConditionBoostSpecs") to
  4567  	// unconditionally include in API requests. By default, fields with empty or
  4568  	// default values are omitted from API requests. See
  4569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4570  	// details.
  4571  	ForceSendFields []string `json:"-"`
  4572  	// NullFields is a list of field names (e.g. "ConditionBoostSpecs") to include
  4573  	// in API requests with the JSON null value. By default, fields with empty
  4574  	// values are omitted from API requests. See
  4575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4576  	NullFields []string `json:"-"`
  4577  }
  4578  
  4579  func (s *GoogleCloudDialogflowCxV3beta1BoostSpec) MarshalJSON() ([]byte, error) {
  4580  	type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpec
  4581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4582  }
  4583  
  4584  // GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec: Boost applies to
  4585  // documents which match a condition.
  4586  type GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec struct {
  4587  	// Boost: Optional. Strength of the condition boost, which should be in [-1,
  4588  	// 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the
  4589  	// document a big promotion. However, it does not necessarily mean that the
  4590  	// boosted document will be the top result at all times, nor that other
  4591  	// documents will be excluded. Results could still be shown even when none of
  4592  	// them matches the condition. And results that are significantly more relevant
  4593  	// to the search query can still trump your heavily favored but irrelevant
  4594  	// documents. Setting to -1.0 gives the document a big demotion. However,
  4595  	// results that are deeply relevant might still be shown. The document will
  4596  	// have an upstream battle to get a fairly high ranking, but it is not blocked
  4597  	// out completely. Setting to 0.0 means no boost applied. The boosting
  4598  	// condition is ignored.
  4599  	Boost float64 `json:"boost,omitempty"`
  4600  	// Condition: Optional. An expression which specifies a boost condition. The
  4601  	// syntax and supported fields are the same as a filter expression. Examples: *
  4602  	// To boost documents with document ID "doc_1" or "doc_2", and color "Red" or
  4603  	// "Blue": * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
  4604  	Condition string `json:"condition,omitempty"`
  4605  	// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally
  4606  	// include in API requests. By default, fields with empty or default values are
  4607  	// omitted from API requests. See
  4608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4609  	// details.
  4610  	ForceSendFields []string `json:"-"`
  4611  	// NullFields is a list of field names (e.g. "Boost") to include in API
  4612  	// requests with the JSON null value. By default, fields with empty values are
  4613  	// omitted from API requests. See
  4614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4615  	NullFields []string `json:"-"`
  4616  }
  4617  
  4618  func (s *GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
  4619  	type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec
  4620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4621  }
  4622  
  4623  func (s *GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
  4624  	type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec
  4625  	var s1 struct {
  4626  		Boost gensupport.JSONFloat64 `json:"boost"`
  4627  		*NoMethod
  4628  	}
  4629  	s1.NoMethod = (*NoMethod)(s)
  4630  	if err := json.Unmarshal(data, &s1); err != nil {
  4631  		return err
  4632  	}
  4633  	s.Boost = float64(s1.Boost)
  4634  	return nil
  4635  }
  4636  
  4637  // GoogleCloudDialogflowCxV3beta1BoostSpecs: Boost specifications for data
  4638  // stores.
  4639  type GoogleCloudDialogflowCxV3beta1BoostSpecs struct {
  4640  	// DataStores: Optional. Data Stores where the boosting configuration is
  4641  	// applied. The full names of the referenced data stores. Formats:
  4642  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4643  	// {data_store}`
  4644  	// `projects/{project}/locations/{location}/dataStores/{data_store}
  4645  	DataStores []string `json:"dataStores,omitempty"`
  4646  	// Spec: Optional. A list of boosting specifications.
  4647  	Spec []*GoogleCloudDialogflowCxV3beta1BoostSpec `json:"spec,omitempty"`
  4648  	// ForceSendFields is a list of field names (e.g. "DataStores") to
  4649  	// unconditionally include in API requests. By default, fields with empty or
  4650  	// default values are omitted from API requests. See
  4651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4652  	// details.
  4653  	ForceSendFields []string `json:"-"`
  4654  	// NullFields is a list of field names (e.g. "DataStores") to include in API
  4655  	// requests with the JSON null value. By default, fields with empty values are
  4656  	// omitted from API requests. See
  4657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4658  	NullFields []string `json:"-"`
  4659  }
  4660  
  4661  func (s *GoogleCloudDialogflowCxV3beta1BoostSpecs) MarshalJSON() ([]byte, error) {
  4662  	type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpecs
  4663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4664  }
  4665  
  4666  // GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse: The response
  4667  // message for TestCases.CalculateCoverage.
  4668  type GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse struct {
  4669  	// Agent: The agent to calculate coverage for. Format:
  4670  	// `projects//locations//agents/`.
  4671  	Agent string `json:"agent,omitempty"`
  4672  	// IntentCoverage: Intent coverage.
  4673  	IntentCoverage *GoogleCloudDialogflowCxV3beta1IntentCoverage `json:"intentCoverage,omitempty"`
  4674  	// RouteGroupCoverage: Transition route group coverage.
  4675  	RouteGroupCoverage *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage `json:"routeGroupCoverage,omitempty"`
  4676  	// TransitionCoverage: Transition (excluding transition route groups) coverage.
  4677  	TransitionCoverage *GoogleCloudDialogflowCxV3beta1TransitionCoverage `json:"transitionCoverage,omitempty"`
  4678  
  4679  	// ServerResponse contains the HTTP response code and headers from the server.
  4680  	googleapi.ServerResponse `json:"-"`
  4681  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
  4682  	// include in API requests. By default, fields with empty or default values are
  4683  	// omitted from API requests. See
  4684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4685  	// details.
  4686  	ForceSendFields []string `json:"-"`
  4687  	// NullFields is a list of field names (e.g. "Agent") to include in API
  4688  	// requests with the JSON null value. By default, fields with empty values are
  4689  	// omitted from API requests. See
  4690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4691  	NullFields []string `json:"-"`
  4692  }
  4693  
  4694  func (s *GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse) MarshalJSON() ([]byte, error) {
  4695  	type NoMethod GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse
  4696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4697  }
  4698  
  4699  // GoogleCloudDialogflowCxV3beta1Changelog: Changelogs represents a change made
  4700  // to a given agent.
  4701  type GoogleCloudDialogflowCxV3beta1Changelog struct {
  4702  	// Action: The action of the change.
  4703  	Action string `json:"action,omitempty"`
  4704  	// CreateTime: The timestamp of the change.
  4705  	CreateTime string `json:"createTime,omitempty"`
  4706  	// DisplayName: The affected resource display name of the change.
  4707  	DisplayName string `json:"displayName,omitempty"`
  4708  	// LanguageCode: The affected language code of the change.
  4709  	LanguageCode string `json:"languageCode,omitempty"`
  4710  	// Name: The unique identifier of the changelog. Format:
  4711  	// `projects//locations//agents//changelogs/`.
  4712  	Name string `json:"name,omitempty"`
  4713  	// Resource: The affected resource name of the change.
  4714  	Resource string `json:"resource,omitempty"`
  4715  	// Type: The affected resource type.
  4716  	Type string `json:"type,omitempty"`
  4717  	// UserEmail: Email address of the authenticated user.
  4718  	UserEmail string `json:"userEmail,omitempty"`
  4719  
  4720  	// ServerResponse contains the HTTP response code and headers from the server.
  4721  	googleapi.ServerResponse `json:"-"`
  4722  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  4723  	// include in API requests. By default, fields with empty or default values are
  4724  	// omitted from API requests. See
  4725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4726  	// details.
  4727  	ForceSendFields []string `json:"-"`
  4728  	// NullFields is a list of field names (e.g. "Action") to include in API
  4729  	// requests with the JSON null value. By default, fields with empty values are
  4730  	// omitted from API requests. See
  4731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4732  	NullFields []string `json:"-"`
  4733  }
  4734  
  4735  func (s *GoogleCloudDialogflowCxV3beta1Changelog) MarshalJSON() ([]byte, error) {
  4736  	type NoMethod GoogleCloudDialogflowCxV3beta1Changelog
  4737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4738  }
  4739  
  4740  // GoogleCloudDialogflowCxV3beta1CompareVersionsRequest: The request message
  4741  // for Versions.CompareVersions.
  4742  type GoogleCloudDialogflowCxV3beta1CompareVersionsRequest struct {
  4743  	// LanguageCode: The language to compare the flow versions for. If not
  4744  	// specified, the agent's default language is used. Many languages
  4745  	// (https://cloud.google.com/dialogflow/docs/reference/language) are supported.
  4746  	// Note: languages must be enabled in the agent before they can be used.
  4747  	LanguageCode string `json:"languageCode,omitempty"`
  4748  	// TargetVersion: Required. Name of the target flow version to compare with the
  4749  	// base version. Use version ID `0` to indicate the draft version of the
  4750  	// specified flow. Format: `projects//locations//agents//flows//versions/`.
  4751  	TargetVersion string `json:"targetVersion,omitempty"`
  4752  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
  4753  	// unconditionally include in API requests. By default, fields with empty or
  4754  	// default values are omitted from API requests. See
  4755  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4756  	// details.
  4757  	ForceSendFields []string `json:"-"`
  4758  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
  4759  	// requests with the JSON null value. By default, fields with empty values are
  4760  	// omitted from API requests. See
  4761  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4762  	NullFields []string `json:"-"`
  4763  }
  4764  
  4765  func (s *GoogleCloudDialogflowCxV3beta1CompareVersionsRequest) MarshalJSON() ([]byte, error) {
  4766  	type NoMethod GoogleCloudDialogflowCxV3beta1CompareVersionsRequest
  4767  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4768  }
  4769  
  4770  // GoogleCloudDialogflowCxV3beta1CompareVersionsResponse: The response message
  4771  // for Versions.CompareVersions.
  4772  type GoogleCloudDialogflowCxV3beta1CompareVersionsResponse struct {
  4773  	// BaseVersionContentJson: JSON representation of the base version content.
  4774  	BaseVersionContentJson string `json:"baseVersionContentJson,omitempty"`
  4775  	// CompareTime: The timestamp when the two version compares.
  4776  	CompareTime string `json:"compareTime,omitempty"`
  4777  	// TargetVersionContentJson: JSON representation of the target version content.
  4778  	TargetVersionContentJson string `json:"targetVersionContentJson,omitempty"`
  4779  
  4780  	// ServerResponse contains the HTTP response code and headers from the server.
  4781  	googleapi.ServerResponse `json:"-"`
  4782  	// ForceSendFields is a list of field names (e.g. "BaseVersionContentJson") to
  4783  	// unconditionally include in API requests. By default, fields with empty or
  4784  	// default values are omitted from API requests. See
  4785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4786  	// details.
  4787  	ForceSendFields []string `json:"-"`
  4788  	// NullFields is a list of field names (e.g. "BaseVersionContentJson") to
  4789  	// include in API requests with the JSON null value. By default, fields with
  4790  	// empty values are omitted from API requests. See
  4791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4792  	NullFields []string `json:"-"`
  4793  }
  4794  
  4795  func (s *GoogleCloudDialogflowCxV3beta1CompareVersionsResponse) MarshalJSON() ([]byte, error) {
  4796  	type NoMethod GoogleCloudDialogflowCxV3beta1CompareVersionsResponse
  4797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4798  }
  4799  
  4800  // GoogleCloudDialogflowCxV3beta1ContinuousTestResult: Represents a result from
  4801  // running a test case in an agent environment.
  4802  type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
  4803  	// Name: The resource name for the continuous test result. Format:
  4804  	// `projects//locations//agents//environments//continuousTestResults/`.
  4805  	Name string `json:"name,omitempty"`
  4806  	// Result: The result of this continuous test run, i.e. whether all the tests
  4807  	// in this continuous test run pass or not.
  4808  	//
  4809  	// Possible values:
  4810  	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be
  4811  	// used.
  4812  	//   "PASSED" - All the tests passed.
  4813  	//   "FAILED" - At least one test did not pass.
  4814  	Result string `json:"result,omitempty"`
  4815  	// RunTime: Time when the continuous testing run starts.
  4816  	RunTime string `json:"runTime,omitempty"`
  4817  	// TestCaseResults: A list of individual test case results names in this
  4818  	// continuous test run.
  4819  	TestCaseResults []string `json:"testCaseResults,omitempty"`
  4820  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4821  	// include in API requests. By default, fields with empty or default values are
  4822  	// omitted from API requests. See
  4823  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4824  	// details.
  4825  	ForceSendFields []string `json:"-"`
  4826  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4827  	// with the JSON null value. By default, fields with empty values are omitted
  4828  	// from API requests. See
  4829  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4830  	NullFields []string `json:"-"`
  4831  }
  4832  
  4833  func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
  4834  	type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
  4835  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4836  }
  4837  
  4838  // GoogleCloudDialogflowCxV3beta1Conversation: Represents a conversation.
  4839  type GoogleCloudDialogflowCxV3beta1Conversation struct {
  4840  	// Duration: Duration of the conversation.
  4841  	Duration string `json:"duration,omitempty"`
  4842  	// Environment: Environment of the conversation. Only `name` and `display_name`
  4843  	// are filled in this message.
  4844  	Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
  4845  	// FlowVersions: Flow versions used in the conversation.
  4846  	FlowVersions map[string]string `json:"flowVersions,omitempty"`
  4847  	// Flows: All the Flow the conversation has went through. Only `name` and
  4848  	// `display_name` are filled in this message.
  4849  	Flows []*GoogleCloudDialogflowCxV3beta1Flow `json:"flows,omitempty"`
  4850  	// Intents: All the matched Intent in the conversation. Only `name` and
  4851  	// `display_name` are filled in this message.
  4852  	Intents []*GoogleCloudDialogflowCxV3beta1Intent `json:"intents,omitempty"`
  4853  	// Interactions: Interactions of the conversation. Only populated for
  4854  	// `GetConversation` and empty for `ListConversations`.
  4855  	Interactions []*GoogleCloudDialogflowCxV3beta1ConversationInteraction `json:"interactions,omitempty"`
  4856  	// LanguageCode: The language of the conversation, which is the language of the
  4857  	// first request in the conversation.
  4858  	LanguageCode string `json:"languageCode,omitempty"`
  4859  	// Metrics: Conversation metrics.
  4860  	Metrics *GoogleCloudDialogflowCxV3beta1ConversationMetrics `json:"metrics,omitempty"`
  4861  	// Name: Identifier. The identifier of the conversation. If conversation ID is
  4862  	// reused, interactions happened later than 48 hours of the conversation's
  4863  	// create time will be ignored. Format:
  4864  	// `projects//locations//agents//conversations/`
  4865  	Name string `json:"name,omitempty"`
  4866  	// Pages: All the Page the conversation has went through. Only `name` and
  4867  	// `display_name` are filled in this message.
  4868  	Pages []*GoogleCloudDialogflowCxV3beta1Page `json:"pages,omitempty"`
  4869  	// StartTime: Start time of the conversation, which is the time of the first
  4870  	// request of the conversation.
  4871  	StartTime string `json:"startTime,omitempty"`
  4872  	// Type: The type of the conversation.
  4873  	//
  4874  	// Possible values:
  4875  	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be used.
  4876  	//   "AUDIO" - Audio conversation. A conversation is classified as an audio
  4877  	// conversation if any request has STT input audio or any response has TTS
  4878  	// output audio.
  4879  	//   "TEXT" - Text conversation. A conversation is classified as a text
  4880  	// conversation if any request has text input and no request has STT input
  4881  	// audio and no response has TTS output audio.
  4882  	//   "UNDETERMINED" - Default conversation type for a conversation. A
  4883  	// conversation is classified as undetermined if none of the requests contain
  4884  	// text or audio input (eg. event or intent input).
  4885  	Type string `json:"type,omitempty"`
  4886  
  4887  	// ServerResponse contains the HTTP response code and headers from the server.
  4888  	googleapi.ServerResponse `json:"-"`
  4889  	// ForceSendFields is a list of field names (e.g. "Duration") to
  4890  	// unconditionally include in API requests. By default, fields with empty or
  4891  	// default values are omitted from API requests. See
  4892  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4893  	// details.
  4894  	ForceSendFields []string `json:"-"`
  4895  	// NullFields is a list of field names (e.g. "Duration") to include in API
  4896  	// requests with the JSON null value. By default, fields with empty values are
  4897  	// omitted from API requests. See
  4898  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4899  	NullFields []string `json:"-"`
  4900  }
  4901  
  4902  func (s *GoogleCloudDialogflowCxV3beta1Conversation) MarshalJSON() ([]byte, error) {
  4903  	type NoMethod GoogleCloudDialogflowCxV3beta1Conversation
  4904  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4905  }
  4906  
  4907  // GoogleCloudDialogflowCxV3beta1ConversationInteraction: Represents an
  4908  // interaction between an end user and a Dialogflow CX agent using V3
  4909  // (Streaming)DetectIntent API, or an interaction between an end user and a
  4910  // Dialogflow CX agent using V2 (Streaming)AnalyzeContent API.
  4911  type GoogleCloudDialogflowCxV3beta1ConversationInteraction struct {
  4912  	// CreateTime: The time that the interaction was created.
  4913  	CreateTime string `json:"createTime,omitempty"`
  4914  	// MissingTransition: Missing transition predicted for the interaction. This
  4915  	// field is set only if the interaction match type was no-match.
  4916  	MissingTransition *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition `json:"missingTransition,omitempty"`
  4917  	// PartialResponses: The partial responses of the interaction. Empty if there
  4918  	// is no partial response in the interaction. See the partial response
  4919  	// documentation.
  4920  	PartialResponses []*GoogleCloudDialogflowCxV3beta1DetectIntentResponse `json:"partialResponses,omitempty"`
  4921  	// Request: The request of the interaction.
  4922  	Request *GoogleCloudDialogflowCxV3beta1DetectIntentRequest `json:"request,omitempty"`
  4923  	// RequestUtterances: The input text or the transcript of the input audio in
  4924  	// the request.
  4925  	RequestUtterances string `json:"requestUtterances,omitempty"`
  4926  	// Response: The final response of the interaction.
  4927  	Response *GoogleCloudDialogflowCxV3beta1DetectIntentResponse `json:"response,omitempty"`
  4928  	// ResponseUtterances: The output text or the transcript of the output audio in
  4929  	// the responses. If multiple output messages are returned, they will be
  4930  	// concatenated into one.
  4931  	ResponseUtterances string `json:"responseUtterances,omitempty"`
  4932  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4933  	// unconditionally include in API requests. By default, fields with empty or
  4934  	// default values are omitted from API requests. See
  4935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4936  	// details.
  4937  	ForceSendFields []string `json:"-"`
  4938  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4939  	// requests with the JSON null value. By default, fields with empty values are
  4940  	// omitted from API requests. See
  4941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4942  	NullFields []string `json:"-"`
  4943  }
  4944  
  4945  func (s *GoogleCloudDialogflowCxV3beta1ConversationInteraction) MarshalJSON() ([]byte, error) {
  4946  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteraction
  4947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4948  }
  4949  
  4950  // GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition:
  4951  // Information collected for DF CX agents in case NLU predicted an intent that
  4952  // was filtered out as being inactive which may indicate a missing transition
  4953  // and/or absent functionality.
  4954  type GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition struct {
  4955  	// IntentDisplayName: Name of the intent that could have triggered.
  4956  	IntentDisplayName string `json:"intentDisplayName,omitempty"`
  4957  	// Score: Score of the above intent. The higher it is the more likely a
  4958  	// transition was missed on a given page.
  4959  	Score float64 `json:"score,omitempty"`
  4960  	// ForceSendFields is a list of field names (e.g. "IntentDisplayName") to
  4961  	// unconditionally include in API requests. By default, fields with empty or
  4962  	// default values are omitted from API requests. See
  4963  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4964  	// details.
  4965  	ForceSendFields []string `json:"-"`
  4966  	// NullFields is a list of field names (e.g. "IntentDisplayName") to include in
  4967  	// API requests with the JSON null value. By default, fields with empty values
  4968  	// are omitted from API requests. See
  4969  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4970  	NullFields []string `json:"-"`
  4971  }
  4972  
  4973  func (s *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition) MarshalJSON() ([]byte, error) {
  4974  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition
  4975  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4976  }
  4977  
  4978  func (s *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition) UnmarshalJSON(data []byte) error {
  4979  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition
  4980  	var s1 struct {
  4981  		Score gensupport.JSONFloat64 `json:"score"`
  4982  		*NoMethod
  4983  	}
  4984  	s1.NoMethod = (*NoMethod)(s)
  4985  	if err := json.Unmarshal(data, &s1); err != nil {
  4986  		return err
  4987  	}
  4988  	s.Score = float64(s1.Score)
  4989  	return nil
  4990  }
  4991  
  4992  // GoogleCloudDialogflowCxV3beta1ConversationMetrics: Represents metrics for
  4993  // the conversation.
  4994  type GoogleCloudDialogflowCxV3beta1ConversationMetrics struct {
  4995  	// AverageMatchConfidence: The average confidence all of the Match in the
  4996  	// conversation. Values range from 0.0 (completely uncertain) to 1.0
  4997  	// (completely certain).
  4998  	AverageMatchConfidence float64 `json:"averageMatchConfidence,omitempty"`
  4999  	// HasEndInteraction: A signal that indicates the interaction with the
  5000  	// Dialogflow agent has ended. If any response has the
  5001  	// ResponseMessage.end_interaction signal, this is set to true.
  5002  	HasEndInteraction bool `json:"hasEndInteraction,omitempty"`
  5003  	// HasLiveAgentHandoff: Hands off conversation to a human agent. If any
  5004  	// response has the ResponseMessage.live_agent_handoffsignal, this is set to
  5005  	// true.
  5006  	HasLiveAgentHandoff bool `json:"hasLiveAgentHandoff,omitempty"`
  5007  	// InputAudioDuration: Duration of all the input's audio in the conversation.
  5008  	InputAudioDuration string `json:"inputAudioDuration,omitempty"`
  5009  	// InteractionCount: The number of interactions in the conversation.
  5010  	InteractionCount int64 `json:"interactionCount,omitempty"`
  5011  	// MatchTypeCount: Match type counts.
  5012  	MatchTypeCount *GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount `json:"matchTypeCount,omitempty"`
  5013  	// MaxWebhookLatency: Maximum latency of the Webhook calls in the conversation.
  5014  	MaxWebhookLatency string `json:"maxWebhookLatency,omitempty"`
  5015  	// OutputAudioDuration: Duration of all the output's audio in the conversation.
  5016  	OutputAudioDuration string `json:"outputAudioDuration,omitempty"`
  5017  	// QueryInputCount: Query input counts.
  5018  	QueryInputCount *GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount `json:"queryInputCount,omitempty"`
  5019  	// ForceSendFields is a list of field names (e.g. "AverageMatchConfidence") to
  5020  	// unconditionally include in API requests. By default, fields with empty or
  5021  	// default values are omitted from API requests. See
  5022  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5023  	// details.
  5024  	ForceSendFields []string `json:"-"`
  5025  	// NullFields is a list of field names (e.g. "AverageMatchConfidence") to
  5026  	// include in API requests with the JSON null value. By default, fields with
  5027  	// empty values are omitted from API requests. See
  5028  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5029  	NullFields []string `json:"-"`
  5030  }
  5031  
  5032  func (s *GoogleCloudDialogflowCxV3beta1ConversationMetrics) MarshalJSON() ([]byte, error) {
  5033  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetrics
  5034  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5035  }
  5036  
  5037  func (s *GoogleCloudDialogflowCxV3beta1ConversationMetrics) UnmarshalJSON(data []byte) error {
  5038  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetrics
  5039  	var s1 struct {
  5040  		AverageMatchConfidence gensupport.JSONFloat64 `json:"averageMatchConfidence"`
  5041  		*NoMethod
  5042  	}
  5043  	s1.NoMethod = (*NoMethod)(s)
  5044  	if err := json.Unmarshal(data, &s1); err != nil {
  5045  		return err
  5046  	}
  5047  	s.AverageMatchConfidence = float64(s1.AverageMatchConfidence)
  5048  	return nil
  5049  }
  5050  
  5051  // GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount: Count by
  5052  // Match.MatchType of the matches in the conversation.
  5053  type GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount struct {
  5054  	// DirectIntentCount: The number of matches with type
  5055  	// Match.MatchType.DIRECT_INTENT.
  5056  	DirectIntentCount int64 `json:"directIntentCount,omitempty"`
  5057  	// EventCount: The number of matches with type Match.MatchType.EVENT.
  5058  	EventCount int64 `json:"eventCount,omitempty"`
  5059  	// IntentCount: The number of matches with type Match.MatchType.INTENT.
  5060  	IntentCount int64 `json:"intentCount,omitempty"`
  5061  	// NoInputCount: The number of matches with type Match.MatchType.NO_INPUT.
  5062  	NoInputCount int64 `json:"noInputCount,omitempty"`
  5063  	// NoMatchCount: The number of matches with type Match.MatchType.NO_MATCH.
  5064  	NoMatchCount int64 `json:"noMatchCount,omitempty"`
  5065  	// ParameterFillingCount: The number of matches with type
  5066  	// Match.MatchType.PARAMETER_FILLING.
  5067  	ParameterFillingCount int64 `json:"parameterFillingCount,omitempty"`
  5068  	// UnspecifiedCount: The number of matches with type
  5069  	// Match.MatchType.MATCH_TYPE_UNSPECIFIED.
  5070  	UnspecifiedCount int64 `json:"unspecifiedCount,omitempty"`
  5071  	// ForceSendFields is a list of field names (e.g. "DirectIntentCount") to
  5072  	// unconditionally include in API requests. By default, fields with empty or
  5073  	// default values are omitted from API requests. See
  5074  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5075  	// details.
  5076  	ForceSendFields []string `json:"-"`
  5077  	// NullFields is a list of field names (e.g. "DirectIntentCount") to include in
  5078  	// API requests with the JSON null value. By default, fields with empty values
  5079  	// are omitted from API requests. See
  5080  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5081  	NullFields []string `json:"-"`
  5082  }
  5083  
  5084  func (s *GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount) MarshalJSON() ([]byte, error) {
  5085  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount
  5086  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5087  }
  5088  
  5089  // GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount: Count by
  5090  // types of QueryInput of the requests in the conversation.
  5091  type GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount struct {
  5092  	// AudioCount: The number of AudioInput in the conversation.
  5093  	AudioCount int64 `json:"audioCount,omitempty"`
  5094  	// DtmfCount: The number of DtmfInput in the conversation.
  5095  	DtmfCount int64 `json:"dtmfCount,omitempty"`
  5096  	// EventCount: The number of EventInput in the conversation.
  5097  	EventCount int64 `json:"eventCount,omitempty"`
  5098  	// IntentCount: The number of IntentInput in the conversation.
  5099  	IntentCount int64 `json:"intentCount,omitempty"`
  5100  	// TextCount: The number of TextInput in the conversation.
  5101  	TextCount int64 `json:"textCount,omitempty"`
  5102  	// ForceSendFields is a list of field names (e.g. "AudioCount") to
  5103  	// unconditionally include in API requests. By default, fields with empty or
  5104  	// default values are omitted from API requests. See
  5105  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5106  	// details.
  5107  	ForceSendFields []string `json:"-"`
  5108  	// NullFields is a list of field names (e.g. "AudioCount") to include in API
  5109  	// requests with the JSON null value. By default, fields with empty values are
  5110  	// omitted from API requests. See
  5111  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5112  	NullFields []string `json:"-"`
  5113  }
  5114  
  5115  func (s *GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount) MarshalJSON() ([]byte, error) {
  5116  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount
  5117  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5118  }
  5119  
  5120  // GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is used to
  5121  // hold all the Conversation Signals data, which will be converted to JSON and
  5122  // exported to BigQuery.
  5123  type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {
  5124  	// TurnSignals: Required. Turn signals for the current turn.
  5125  	TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`
  5126  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
  5127  	// unconditionally include in API requests. By default, fields with empty or
  5128  	// default values are omitted from API requests. See
  5129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5130  	// details.
  5131  	ForceSendFields []string `json:"-"`
  5132  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
  5133  	// requests with the JSON null value. By default, fields with empty values are
  5134  	// omitted from API requests. See
  5135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5136  	NullFields []string `json:"-"`
  5137  }
  5138  
  5139  func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) {
  5140  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals
  5141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5142  }
  5143  
  5144  // GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction between a
  5145  // human and virtual agent. The human provides some input and the virtual agent
  5146  // provides a response.
  5147  type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
  5148  	// UserInput: The user input.
  5149  	UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
  5150  	// VirtualAgentOutput: The virtual agent output.
  5151  	VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
  5152  	// ForceSendFields is a list of field names (e.g. "UserInput") to
  5153  	// unconditionally include in API requests. By default, fields with empty or
  5154  	// default values are omitted from API requests. See
  5155  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5156  	// details.
  5157  	ForceSendFields []string `json:"-"`
  5158  	// NullFields is a list of field names (e.g. "UserInput") to include in API
  5159  	// requests with the JSON null value. By default, fields with empty values are
  5160  	// omitted from API requests. See
  5161  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5162  	NullFields []string `json:"-"`
  5163  }
  5164  
  5165  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
  5166  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
  5167  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5168  }
  5169  
  5170  // GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput: The input from the
  5171  // human user.
  5172  type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
  5173  	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
  5174  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
  5175  	// InjectedParameters: Parameters that need to be injected into the
  5176  	// conversation during intent detection.
  5177  	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
  5178  	// Input: Supports text input, event input, dtmf input in the test case.
  5179  	Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
  5180  	// IsWebhookEnabled: If webhooks should be allowed to trigger in response to
  5181  	// the user utterance. Often if parameters are injected, webhooks should not be
  5182  	// enabled.
  5183  	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
  5184  	// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  5185  	// unconditionally include in API requests. By default, fields with empty or
  5186  	// default values are omitted from API requests. See
  5187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5188  	// details.
  5189  	ForceSendFields []string `json:"-"`
  5190  	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  5191  	// include in API requests with the JSON null value. By default, fields with
  5192  	// empty values are omitted from API requests. See
  5193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5194  	NullFields []string `json:"-"`
  5195  }
  5196  
  5197  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
  5198  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
  5199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5200  }
  5201  
  5202  // GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput: The output
  5203  // from the virtual agent.
  5204  type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
  5205  	// CurrentPage: The Page on which the utterance was spoken. Only name and
  5206  	// displayName will be set.
  5207  	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
  5208  	// DiagnosticInfo: Required. Input only. The diagnostic info output for the
  5209  	// turn. Required to calculate the testing coverage.
  5210  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
  5211  	// Differences: Output only. If this is part of a result conversation turn, the
  5212  	// list of differences between the original run and the replay for this output,
  5213  	// if any.
  5214  	Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
  5215  	// SessionParameters: The session parameters available to the bot at this
  5216  	// point.
  5217  	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
  5218  	// Status: Response error from the agent in the test result. If set, other
  5219  	// output is empty.
  5220  	Status *GoogleRpcStatus `json:"status,omitempty"`
  5221  	// TextResponses: The text responses from the agent for the turn.
  5222  	TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
  5223  	// TriggeredIntent: The Intent that triggered the response. Only name and
  5224  	// displayName will be set.
  5225  	TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
  5226  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  5227  	// unconditionally include in API requests. By default, fields with empty or
  5228  	// default values are omitted from API requests. See
  5229  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5230  	// details.
  5231  	ForceSendFields []string `json:"-"`
  5232  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  5233  	// requests with the JSON null value. By default, fields with empty values are
  5234  	// omitted from API requests. See
  5235  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5236  	NullFields []string `json:"-"`
  5237  }
  5238  
  5239  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
  5240  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
  5241  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5242  }
  5243  
  5244  // GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata: Metadata for
  5245  // CreateDocument operation.
  5246  type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
  5247  	// GenericMetadata: The generic information of the operation.
  5248  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  5249  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  5250  	// unconditionally include in API requests. By default, fields with empty or
  5251  	// default values are omitted from API requests. See
  5252  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5253  	// details.
  5254  	ForceSendFields []string `json:"-"`
  5255  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  5256  	// API requests with the JSON null value. By default, fields with empty values
  5257  	// are omitted from API requests. See
  5258  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5259  	NullFields []string `json:"-"`
  5260  }
  5261  
  5262  func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  5263  	type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
  5264  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5265  }
  5266  
  5267  // GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata: Metadata
  5268  // associated with the long running operation for Versions.CreateVersion.
  5269  type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
  5270  	// Version: Name of the created version. Format:
  5271  	// `projects//locations//agents//flows//versions/`.
  5272  	Version string `json:"version,omitempty"`
  5273  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  5274  	// include in API requests. By default, fields with empty or default values are
  5275  	// omitted from API requests. See
  5276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5277  	// details.
  5278  	ForceSendFields []string `json:"-"`
  5279  	// NullFields is a list of field names (e.g. "Version") to include in API
  5280  	// requests with the JSON null value. By default, fields with empty values are
  5281  	// omitted from API requests. See
  5282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5283  	NullFields []string `json:"-"`
  5284  }
  5285  
  5286  func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
  5287  	type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
  5288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5289  }
  5290  
  5291  // GoogleCloudDialogflowCxV3beta1DataStoreConnection: A data store connection.
  5292  // It represents a data store in Discovery Engine and the type of the contents
  5293  // it contains.
  5294  type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {
  5295  	// DataStore: The full name of the referenced data store. Formats:
  5296  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  5297  	// {data_store}`
  5298  	// `projects/{project}/locations/{location}/dataStores/{data_store}`
  5299  	DataStore string `json:"dataStore,omitempty"`
  5300  	// DataStoreType: The type of the connected data store.
  5301  	//
  5302  	// Possible values:
  5303  	//   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that
  5304  	// the data store type is not specified, so it will not be used during search.
  5305  	//   "PUBLIC_WEB" - A data store that contains public web content.
  5306  	//   "UNSTRUCTURED" - A data store that contains unstructured private data.
  5307  	//   "STRUCTURED" - A data store that contains structured data (for example
  5308  	// FAQ).
  5309  	DataStoreType string `json:"dataStoreType,omitempty"`
  5310  	// ForceSendFields is a list of field names (e.g. "DataStore") to
  5311  	// unconditionally include in API requests. By default, fields with empty or
  5312  	// default values are omitted from API requests. See
  5313  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5314  	// details.
  5315  	ForceSendFields []string `json:"-"`
  5316  	// NullFields is a list of field names (e.g. "DataStore") to include in API
  5317  	// requests with the JSON null value. By default, fields with empty values are
  5318  	// omitted from API requests. See
  5319  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5320  	NullFields []string `json:"-"`
  5321  }
  5322  
  5323  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnection) MarshalJSON() ([]byte, error) {
  5324  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnection
  5325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5326  }
  5327  
  5328  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals: Data store
  5329  // connection feature output signals. Might be only partially field if
  5330  // processing stop before the final answer. Reasons for this can be, but are
  5331  // not limited to: empty UCS search results, positive RAI check outcome,
  5332  // grounding failure, ...
  5333  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals struct {
  5334  	// Answer: Optional. The final compiled answer.
  5335  	Answer string `json:"answer,omitempty"`
  5336  	// AnswerGenerationModelCallSignals: Optional. Diagnostic info related to the
  5337  	// answer generation model call.
  5338  	AnswerGenerationModelCallSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals `json:"answerGenerationModelCallSignals,omitempty"`
  5339  	// AnswerParts: Optional. Answer parts with relevant citations. Concatenation
  5340  	// of texts should add up the `answer` (not counting whitespaces).
  5341  	AnswerParts []*GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart `json:"answerParts,omitempty"`
  5342  	// CitedSnippets: Optional. Snippets cited by the answer generation model from
  5343  	// the most to least relevant.
  5344  	CitedSnippets []*GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet `json:"citedSnippets,omitempty"`
  5345  	// GroundingSignals: Optional. Grounding signals.
  5346  	GroundingSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals `json:"groundingSignals,omitempty"`
  5347  	// RewriterModelCallSignals: Optional. Diagnostic info related to the rewriter
  5348  	// model call.
  5349  	RewriterModelCallSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals `json:"rewriterModelCallSignals,omitempty"`
  5350  	// RewrittenQuery: Optional. Rewritten string query used for search.
  5351  	RewrittenQuery string `json:"rewrittenQuery,omitempty"`
  5352  	// SafetySignals: Optional. Safety check result.
  5353  	SafetySignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals `json:"safetySignals,omitempty"`
  5354  	// SearchSnippets: Optional. Search snippets included in the answer generation
  5355  	// prompt.
  5356  	SearchSnippets []*GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet `json:"searchSnippets,omitempty"`
  5357  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  5358  	// include in API requests. By default, fields with empty or default values are
  5359  	// omitted from API requests. See
  5360  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5361  	// details.
  5362  	ForceSendFields []string `json:"-"`
  5363  	// NullFields is a list of field names (e.g. "Answer") to include in API
  5364  	// requests with the JSON null value. By default, fields with empty values are
  5365  	// omitted from API requests. See
  5366  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5367  	NullFields []string `json:"-"`
  5368  }
  5369  
  5370  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals) MarshalJSON() ([]byte, error) {
  5371  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals
  5372  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5373  }
  5374  
  5375  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModel
  5376  // CallSignals: Diagnostic info related to the answer generation model call.
  5377  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals struct {
  5378  	// ModelOutput: Output of the generative model.
  5379  	ModelOutput string `json:"modelOutput,omitempty"`
  5380  	// RenderedPrompt: Prompt as sent to the model.
  5381  	RenderedPrompt string `json:"renderedPrompt,omitempty"`
  5382  	// ForceSendFields is a list of field names (e.g. "ModelOutput") to
  5383  	// unconditionally include in API requests. By default, fields with empty or
  5384  	// default values are omitted from API requests. See
  5385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5386  	// details.
  5387  	ForceSendFields []string `json:"-"`
  5388  	// NullFields is a list of field names (e.g. "ModelOutput") to include in API
  5389  	// requests with the JSON null value. By default, fields with empty values are
  5390  	// omitted from API requests. See
  5391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5392  	NullFields []string `json:"-"`
  5393  }
  5394  
  5395  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals) MarshalJSON() ([]byte, error) {
  5396  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals
  5397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5398  }
  5399  
  5400  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart: Answer
  5401  // part with citation.
  5402  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart struct {
  5403  	// SupportingIndices: Citations for this answer part. Indices of
  5404  	// `search_snippets`.
  5405  	SupportingIndices []int64 `json:"supportingIndices,omitempty"`
  5406  	// Text: Substring of the answer.
  5407  	Text string `json:"text,omitempty"`
  5408  	// ForceSendFields is a list of field names (e.g. "SupportingIndices") to
  5409  	// unconditionally include in API requests. By default, fields with empty or
  5410  	// default values are omitted from API requests. See
  5411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5412  	// details.
  5413  	ForceSendFields []string `json:"-"`
  5414  	// NullFields is a list of field names (e.g. "SupportingIndices") to include in
  5415  	// API requests with the JSON null value. By default, fields with empty values
  5416  	// are omitted from API requests. See
  5417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5418  	NullFields []string `json:"-"`
  5419  }
  5420  
  5421  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart) MarshalJSON() ([]byte, error) {
  5422  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart
  5423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5424  }
  5425  
  5426  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet:
  5427  // Snippet cited by the answer generation model.
  5428  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet struct {
  5429  	// SearchSnippet: Details of the snippet.
  5430  	SearchSnippet *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet `json:"searchSnippet,omitempty"`
  5431  	// SnippetIndex: Index of the snippet in `search_snippets` field.
  5432  	SnippetIndex int64 `json:"snippetIndex,omitempty"`
  5433  	// ForceSendFields is a list of field names (e.g. "SearchSnippet") to
  5434  	// unconditionally include in API requests. By default, fields with empty or
  5435  	// default values are omitted from API requests. See
  5436  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5437  	// details.
  5438  	ForceSendFields []string `json:"-"`
  5439  	// NullFields is a list of field names (e.g. "SearchSnippet") to include in API
  5440  	// requests with the JSON null value. By default, fields with empty values are
  5441  	// omitted from API requests. See
  5442  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5443  	NullFields []string `json:"-"`
  5444  }
  5445  
  5446  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet) MarshalJSON() ([]byte, error) {
  5447  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet
  5448  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5449  }
  5450  
  5451  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals:
  5452  // Grounding signals.
  5453  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals struct {
  5454  	// Decision: Represents the decision of the grounding check.
  5455  	//
  5456  	// Possible values:
  5457  	//   "GROUNDING_DECISION_UNSPECIFIED" - Decision not specified.
  5458  	//   "ACCEPTED_BY_GROUNDING" - Grounding have accepted the answer.
  5459  	//   "REJECTED_BY_GROUNDING" - Grounding have rejected the answer.
  5460  	Decision string `json:"decision,omitempty"`
  5461  	// Score: Grounding score bucket setting.
  5462  	//
  5463  	// Possible values:
  5464  	//   "GROUNDING_SCORE_BUCKET_UNSPECIFIED" - Score not specified.
  5465  	//   "VERY_LOW" - We have very low confidence that the answer is grounded.
  5466  	//   "LOW" - We have low confidence that the answer is grounded.
  5467  	//   "MEDIUM" - We have medium confidence that the answer is grounded.
  5468  	//   "HIGH" - We have high confidence that the answer is grounded.
  5469  	//   "VERY_HIGH" - We have very high confidence that the answer is grounded.
  5470  	Score string `json:"score,omitempty"`
  5471  	// ForceSendFields is a list of field names (e.g. "Decision") to
  5472  	// unconditionally include in API requests. By default, fields with empty or
  5473  	// default values are omitted from API requests. See
  5474  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5475  	// details.
  5476  	ForceSendFields []string `json:"-"`
  5477  	// NullFields is a list of field names (e.g. "Decision") to include in API
  5478  	// requests with the JSON null value. By default, fields with empty values are
  5479  	// omitted from API requests. See
  5480  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5481  	NullFields []string `json:"-"`
  5482  }
  5483  
  5484  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals) MarshalJSON() ([]byte, error) {
  5485  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals
  5486  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5487  }
  5488  
  5489  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSign
  5490  // als: Diagnostic info related to the rewriter model call.
  5491  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals struct {
  5492  	// ModelOutput: Output of the generative model.
  5493  	ModelOutput string `json:"modelOutput,omitempty"`
  5494  	// RenderedPrompt: Prompt as sent to the model.
  5495  	RenderedPrompt string `json:"renderedPrompt,omitempty"`
  5496  	// ForceSendFields is a list of field names (e.g. "ModelOutput") to
  5497  	// unconditionally include in API requests. By default, fields with empty or
  5498  	// default values are omitted from API requests. See
  5499  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5500  	// details.
  5501  	ForceSendFields []string `json:"-"`
  5502  	// NullFields is a list of field names (e.g. "ModelOutput") to include in API
  5503  	// requests with the JSON null value. By default, fields with empty values are
  5504  	// omitted from API requests. See
  5505  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5506  	NullFields []string `json:"-"`
  5507  }
  5508  
  5509  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals) MarshalJSON() ([]byte, error) {
  5510  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals
  5511  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5512  }
  5513  
  5514  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals:
  5515  // Safety check results.
  5516  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals struct {
  5517  	// BannedPhraseMatch: Specifies banned phrase match subject.
  5518  	//
  5519  	// Possible values:
  5520  	//   "BANNED_PHRASE_MATCH_UNSPECIFIED" - No banned phrase check was executed.
  5521  	//   "BANNED_PHRASE_MATCH_NONE" - All banned phrase checks led to no match.
  5522  	//   "BANNED_PHRASE_MATCH_QUERY" - A banned phrase matched the query.
  5523  	//   "BANNED_PHRASE_MATCH_RESPONSE" - A banned phrase matched the response.
  5524  	BannedPhraseMatch string `json:"bannedPhraseMatch,omitempty"`
  5525  	// Decision: Safety decision.
  5526  	//
  5527  	// Possible values:
  5528  	//   "SAFETY_DECISION_UNSPECIFIED" - Decision not specified.
  5529  	//   "ACCEPTED_BY_SAFETY_CHECK" - No manual or automatic safety check fired.
  5530  	//   "REJECTED_BY_SAFETY_CHECK" - One ore more safety checks fired.
  5531  	Decision string `json:"decision,omitempty"`
  5532  	// MatchedBannedPhrase: The matched banned phrase if there was a match.
  5533  	MatchedBannedPhrase string `json:"matchedBannedPhrase,omitempty"`
  5534  	// ForceSendFields is a list of field names (e.g. "BannedPhraseMatch") to
  5535  	// unconditionally include in API requests. By default, fields with empty or
  5536  	// default values are omitted from API requests. See
  5537  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5538  	// details.
  5539  	ForceSendFields []string `json:"-"`
  5540  	// NullFields is a list of field names (e.g. "BannedPhraseMatch") to include in
  5541  	// API requests with the JSON null value. By default, fields with empty values
  5542  	// are omitted from API requests. See
  5543  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5544  	NullFields []string `json:"-"`
  5545  }
  5546  
  5547  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals) MarshalJSON() ([]byte, error) {
  5548  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals
  5549  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5550  }
  5551  
  5552  // GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet:
  5553  // Search snippet details.
  5554  type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet struct {
  5555  	// DocumentTitle: Title of the enclosing document.
  5556  	DocumentTitle string `json:"documentTitle,omitempty"`
  5557  	// DocumentUri: Uri for the document. Present if specified for the document.
  5558  	DocumentUri string `json:"documentUri,omitempty"`
  5559  	// Text: Text included in the prompt.
  5560  	Text string `json:"text,omitempty"`
  5561  	// ForceSendFields is a list of field names (e.g. "DocumentTitle") to
  5562  	// unconditionally include in API requests. By default, fields with empty or
  5563  	// default values are omitted from API requests. See
  5564  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5565  	// details.
  5566  	ForceSendFields []string `json:"-"`
  5567  	// NullFields is a list of field names (e.g. "DocumentTitle") to include in API
  5568  	// requests with the JSON null value. By default, fields with empty values are
  5569  	// omitted from API requests. See
  5570  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5571  	NullFields []string `json:"-"`
  5572  }
  5573  
  5574  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet) MarshalJSON() ([]byte, error) {
  5575  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet
  5576  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5577  }
  5578  
  5579  // GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata: Metadata for
  5580  // DeleteDocument operation.
  5581  type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
  5582  	// GenericMetadata: The generic information of the operation.
  5583  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  5584  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  5585  	// unconditionally include in API requests. By default, fields with empty or
  5586  	// default values are omitted from API requests. See
  5587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5588  	// details.
  5589  	ForceSendFields []string `json:"-"`
  5590  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  5591  	// API requests with the JSON null value. By default, fields with empty values
  5592  	// are omitted from API requests. See
  5593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5594  	NullFields []string `json:"-"`
  5595  }
  5596  
  5597  func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  5598  	type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
  5599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5600  }
  5601  
  5602  // GoogleCloudDialogflowCxV3beta1DeployFlowMetadata: Metadata returned for the
  5603  // Environments.DeployFlow long running operation.
  5604  type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {
  5605  	// TestErrors: Errors of running deployment tests.
  5606  	TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`
  5607  	// ForceSendFields is a list of field names (e.g. "TestErrors") to
  5608  	// unconditionally include in API requests. By default, fields with empty or
  5609  	// default values are omitted from API requests. See
  5610  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5611  	// details.
  5612  	ForceSendFields []string `json:"-"`
  5613  	// NullFields is a list of field names (e.g. "TestErrors") to include in API
  5614  	// requests with the JSON null value. By default, fields with empty values are
  5615  	// omitted from API requests. See
  5616  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5617  	NullFields []string `json:"-"`
  5618  }
  5619  
  5620  func (s *GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, error) {
  5621  	type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
  5622  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5623  }
  5624  
  5625  // GoogleCloudDialogflowCxV3beta1DeployFlowRequest: The request message for
  5626  // Environments.DeployFlow.
  5627  type GoogleCloudDialogflowCxV3beta1DeployFlowRequest struct {
  5628  	// FlowVersion: Required. The flow version to deploy. Format:
  5629  	// `projects//locations//agents// flows//versions/`.
  5630  	FlowVersion string `json:"flowVersion,omitempty"`
  5631  	// ForceSendFields is a list of field names (e.g. "FlowVersion") to
  5632  	// unconditionally include in API requests. By default, fields with empty or
  5633  	// default values are omitted from API requests. See
  5634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5635  	// details.
  5636  	ForceSendFields []string `json:"-"`
  5637  	// NullFields is a list of field names (e.g. "FlowVersion") to include in API
  5638  	// requests with the JSON null value. By default, fields with empty values are
  5639  	// omitted from API requests. See
  5640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5641  	NullFields []string `json:"-"`
  5642  }
  5643  
  5644  func (s *GoogleCloudDialogflowCxV3beta1DeployFlowRequest) MarshalJSON() ([]byte, error) {
  5645  	type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowRequest
  5646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5647  }
  5648  
  5649  // GoogleCloudDialogflowCxV3beta1DeployFlowResponse: The response message for
  5650  // Environments.DeployFlow.
  5651  type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {
  5652  	// Deployment: The name of the flow version deployment. Format:
  5653  	// `projects//locations//agents// environments//deployments/`.
  5654  	Deployment string `json:"deployment,omitempty"`
  5655  	// Environment: The updated environment where the flow is deployed.
  5656  	Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
  5657  	// ForceSendFields is a list of field names (e.g. "Deployment") to
  5658  	// unconditionally include in API requests. By default, fields with empty or
  5659  	// default values are omitted from API requests. See
  5660  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5661  	// details.
  5662  	ForceSendFields []string `json:"-"`
  5663  	// NullFields is a list of field names (e.g. "Deployment") to include in API
  5664  	// requests with the JSON null value. By default, fields with empty values are
  5665  	// omitted from API requests. See
  5666  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5667  	NullFields []string `json:"-"`
  5668  }
  5669  
  5670  func (s *GoogleCloudDialogflowCxV3beta1DeployFlowResponse) MarshalJSON() ([]byte, error) {
  5671  	type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowResponse
  5672  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5673  }
  5674  
  5675  // GoogleCloudDialogflowCxV3beta1Deployment: Represents a deployment in an
  5676  // environment. A deployment happens when a flow version configured to be
  5677  // active in the environment. You can configure running pre-deployment steps,
  5678  // e.g. running validation test cases, experiment auto-rollout, etc.
  5679  type GoogleCloudDialogflowCxV3beta1Deployment struct {
  5680  	// EndTime: End time of this deployment.
  5681  	EndTime string `json:"endTime,omitempty"`
  5682  	// FlowVersion: The name of the flow version for this deployment. Format:
  5683  	// projects//locations//agents//flows//versions/.
  5684  	FlowVersion string `json:"flowVersion,omitempty"`
  5685  	// Name: The name of the deployment. Format:
  5686  	// projects//locations//agents//environments//deployments/.
  5687  	Name string `json:"name,omitempty"`
  5688  	// Result: Result of the deployment.
  5689  	Result *GoogleCloudDialogflowCxV3beta1DeploymentResult `json:"result,omitempty"`
  5690  	// StartTime: Start time of this deployment.
  5691  	StartTime string `json:"startTime,omitempty"`
  5692  	// State: The current state of the deployment.
  5693  	//
  5694  	// Possible values:
  5695  	//   "STATE_UNSPECIFIED" - State unspecified.
  5696  	//   "RUNNING" - The deployment is running.
  5697  	//   "SUCCEEDED" - The deployment succeeded.
  5698  	//   "FAILED" - The deployment failed.
  5699  	State string `json:"state,omitempty"`
  5700  
  5701  	// ServerResponse contains the HTTP response code and headers from the server.
  5702  	googleapi.ServerResponse `json:"-"`
  5703  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  5704  	// include in API requests. By default, fields with empty or default values are
  5705  	// omitted from API requests. See
  5706  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5707  	// details.
  5708  	ForceSendFields []string `json:"-"`
  5709  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  5710  	// requests with the JSON null value. By default, fields with empty values are
  5711  	// omitted from API requests. See
  5712  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5713  	NullFields []string `json:"-"`
  5714  }
  5715  
  5716  func (s *GoogleCloudDialogflowCxV3beta1Deployment) MarshalJSON() ([]byte, error) {
  5717  	type NoMethod GoogleCloudDialogflowCxV3beta1Deployment
  5718  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5719  }
  5720  
  5721  // GoogleCloudDialogflowCxV3beta1DeploymentResult: Result of the deployment.
  5722  type GoogleCloudDialogflowCxV3beta1DeploymentResult struct {
  5723  	// DeploymentTestResults: Results of test cases running before the deployment.
  5724  	// Format: `projects//locations//agents//testCases//results/`.
  5725  	DeploymentTestResults []string `json:"deploymentTestResults,omitempty"`
  5726  	// Experiment: The name of the experiment triggered by this deployment. Format:
  5727  	// projects//locations//agents//environments//experiments/.
  5728  	Experiment string `json:"experiment,omitempty"`
  5729  	// ForceSendFields is a list of field names (e.g. "DeploymentTestResults") to
  5730  	// unconditionally include in API requests. By default, fields with empty or
  5731  	// default values are omitted from API requests. See
  5732  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5733  	// details.
  5734  	ForceSendFields []string `json:"-"`
  5735  	// NullFields is a list of field names (e.g. "DeploymentTestResults") to
  5736  	// include in API requests with the JSON null value. By default, fields with
  5737  	// empty values are omitted from API requests. See
  5738  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5739  	NullFields []string `json:"-"`
  5740  }
  5741  
  5742  func (s *GoogleCloudDialogflowCxV3beta1DeploymentResult) MarshalJSON() ([]byte, error) {
  5743  	type NoMethod GoogleCloudDialogflowCxV3beta1DeploymentResult
  5744  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5745  }
  5746  
  5747  // GoogleCloudDialogflowCxV3beta1DetectIntentRequest: The request to detect
  5748  // user's intent.
  5749  type GoogleCloudDialogflowCxV3beta1DetectIntentRequest struct {
  5750  	// OutputAudioConfig: Instructs the speech synthesizer how to generate the
  5751  	// output audio.
  5752  	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
  5753  	// QueryInput: Required. The input specification.
  5754  	QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
  5755  	// QueryParams: The parameters of this query.
  5756  	QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
  5757  	// Session: Required. The name of the session this query is sent to. Format:
  5758  	// `projects//locations//agents//sessions/` or
  5759  	// `projects//locations//agents//environments//sessions/`. If `Environment ID`
  5760  	// is not specified, we assume default 'draft' environment. It's up to the API
  5761  	// caller to choose an appropriate `Session ID`. It can be a random number or
  5762  	// some type of session identifiers (preferably hashed). The length of the
  5763  	// `Session ID` must not exceed 36 characters. For more information, see the
  5764  	// sessions guide
  5765  	// (https://cloud.google.com/dialogflow/cx/docs/concept/session). Note: Always
  5766  	// use agent versions for production traffic. See Versions and environments
  5767  	// (https://cloud.google.com/dialogflow/cx/docs/concept/version).
  5768  	Session string `json:"session,omitempty"`
  5769  	// ForceSendFields is a list of field names (e.g. "OutputAudioConfig") to
  5770  	// unconditionally include in API requests. By default, fields with empty or
  5771  	// default values are omitted from API requests. See
  5772  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5773  	// details.
  5774  	ForceSendFields []string `json:"-"`
  5775  	// NullFields is a list of field names (e.g. "OutputAudioConfig") to include in
  5776  	// API requests with the JSON null value. By default, fields with empty values
  5777  	// are omitted from API requests. See
  5778  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5779  	NullFields []string `json:"-"`
  5780  }
  5781  
  5782  func (s *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
  5783  	type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentRequest
  5784  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5785  }
  5786  
  5787  // GoogleCloudDialogflowCxV3beta1DetectIntentResponse: The message returned
  5788  // from the DetectIntent method.
  5789  type GoogleCloudDialogflowCxV3beta1DetectIntentResponse struct {
  5790  	// AllowCancellation: Indicates whether the partial response can be cancelled
  5791  	// when a later response arrives. e.g. if the agent specified some music as
  5792  	// partial response, it can be cancelled.
  5793  	AllowCancellation bool `json:"allowCancellation,omitempty"`
  5794  	// OutputAudio: The audio data bytes encoded as specified in the request. Note:
  5795  	// The output audio is generated based on the values of default platform text
  5796  	// responses found in the `query_result.response_messages` field. If multiple
  5797  	// default text responses exist, they will be concatenated when generating
  5798  	// audio. If no default platform text responses exist, the generated audio
  5799  	// content will be empty. In some scenarios, multiple output audio fields may
  5800  	// be present in the response structure. In these cases, only the
  5801  	// top-most-level audio output has content.
  5802  	OutputAudio string `json:"outputAudio,omitempty"`
  5803  	// OutputAudioConfig: The config used by the speech synthesizer to generate the
  5804  	// output audio.
  5805  	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
  5806  	// QueryResult: The result of the conversational query.
  5807  	QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
  5808  	// ResponseId: Output only. The unique identifier of the response. It can be
  5809  	// used to locate a response in the training example set or for reporting
  5810  	// issues.
  5811  	ResponseId string `json:"responseId,omitempty"`
  5812  	// ResponseType: Response type.
  5813  	//
  5814  	// Possible values:
  5815  	//   "RESPONSE_TYPE_UNSPECIFIED" - Not specified. This should never happen.
  5816  	//   "PARTIAL" - Partial response. e.g. Aggregated responses in a Fulfillment
  5817  	// that enables `return_partial_response` can be returned as partial response.
  5818  	// WARNING: partial response is not eligible for barge-in.
  5819  	//   "FINAL" - Final response.
  5820  	ResponseType string `json:"responseType,omitempty"`
  5821  
  5822  	// ServerResponse contains the HTTP response code and headers from the server.
  5823  	googleapi.ServerResponse `json:"-"`
  5824  	// ForceSendFields is a list of field names (e.g. "AllowCancellation") to
  5825  	// unconditionally include in API requests. By default, fields with empty or
  5826  	// default values are omitted from API requests. See
  5827  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5828  	// details.
  5829  	ForceSendFields []string `json:"-"`
  5830  	// NullFields is a list of field names (e.g. "AllowCancellation") to include in
  5831  	// API requests with the JSON null value. By default, fields with empty values
  5832  	// are omitted from API requests. See
  5833  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5834  	NullFields []string `json:"-"`
  5835  }
  5836  
  5837  func (s *GoogleCloudDialogflowCxV3beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
  5838  	type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentResponse
  5839  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5840  }
  5841  
  5842  // GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for dtmf
  5843  // event.
  5844  type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
  5845  	// Digits: The dtmf digits.
  5846  	Digits string `json:"digits,omitempty"`
  5847  	// FinishDigit: The finish digit (if any).
  5848  	FinishDigit string `json:"finishDigit,omitempty"`
  5849  	// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally
  5850  	// include in API requests. By default, fields with empty or default values are
  5851  	// omitted from API requests. See
  5852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5853  	// details.
  5854  	ForceSendFields []string `json:"-"`
  5855  	// NullFields is a list of field names (e.g. "Digits") to include in API
  5856  	// requests with the JSON null value. By default, fields with empty values are
  5857  	// omitted from API requests. See
  5858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5859  	NullFields []string `json:"-"`
  5860  }
  5861  
  5862  func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
  5863  	type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
  5864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5865  }
  5866  
  5867  // GoogleCloudDialogflowCxV3beta1EntityType: Entities are extracted from user
  5868  // input and represent parameters that are meaningful to your application. For
  5869  // example, a date range, a proper name such as a geographic location or
  5870  // landmark, and so on. Entities represent actionable data for your
  5871  // application. When you define an entity, you can also include synonyms that
  5872  // all map to that entity. For example, "soft drink", "soda", "pop", and so on.
  5873  // There are three types of entities: * **System** - entities that are defined
  5874  // by the Dialogflow API for common data types such as date, time, currency,
  5875  // and so on. A system entity is represented by the `EntityType` type. *
  5876  // **Custom** - entities that are defined by you that represent actionable data
  5877  // that is meaningful to your application. For example, you could define a
  5878  // `pizza.sauce` entity for red or white pizza sauce, a `pizza.cheese` entity
  5879  // for the different types of cheese on a pizza, a `pizza.topping` entity for
  5880  // different toppings, and so on. A custom entity is represented by the
  5881  // `EntityType` type. * **User** - entities that are built for an individual
  5882  // user such as favorites, preferences, playlists, and so on. A user entity is
  5883  // represented by the SessionEntityType type. For more information about entity
  5884  // types, see the Dialogflow documentation
  5885  // (https://cloud.google.com/dialogflow/docs/entities-overview).
  5886  type GoogleCloudDialogflowCxV3beta1EntityType struct {
  5887  	// AutoExpansionMode: Indicates whether the entity type can be automatically
  5888  	// expanded.
  5889  	//
  5890  	// Possible values:
  5891  	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
  5892  	// entity.
  5893  	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that
  5894  	// have not been explicitly listed in the entity.
  5895  	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
  5896  	// DisplayName: Required. The human-readable name of the entity type, unique
  5897  	// within the agent.
  5898  	DisplayName string `json:"displayName,omitempty"`
  5899  	// EnableFuzzyExtraction: Enables fuzzy entity extraction during
  5900  	// classification.
  5901  	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
  5902  	// Entities: The collection of entity entries associated with the entity type.
  5903  	Entities []*GoogleCloudDialogflowCxV3beta1EntityTypeEntity `json:"entities,omitempty"`
  5904  	// ExcludedPhrases: Collection of exceptional words and phrases that shouldn't
  5905  	// be matched. For example, if you have a size entity type with entry
  5906  	// `giant`(an adjective), you might consider adding `giants`(a noun) as an
  5907  	// exclusion. If the kind of entity type is `KIND_MAP`, then the phrases
  5908  	// specified by entities and excluded phrases should be mutually exclusive.
  5909  	ExcludedPhrases []*GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase `json:"excludedPhrases,omitempty"`
  5910  	// Kind: Required. Indicates the kind of entity type.
  5911  	//
  5912  	// Possible values:
  5913  	//   "KIND_UNSPECIFIED" - Not specified. This value should be never used.
  5914  	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a
  5915  	// canonical value.
  5916  	//   "KIND_LIST" - List entity types contain a set of entries that do not map
  5917  	// to canonical values. However, list entity types can contain references to
  5918  	// other entity types (with or without aliases).
  5919  	//   "KIND_REGEXP" - Regexp entity types allow to specify regular expressions
  5920  	// in entries values.
  5921  	Kind string `json:"kind,omitempty"`
  5922  	// Name: The unique identifier of the entity type. Required for
  5923  	// EntityTypes.UpdateEntityType. Format:
  5924  	// `projects//locations//agents//entityTypes/`.
  5925  	Name string `json:"name,omitempty"`
  5926  	// Redact: Indicates whether parameters of the entity type should be redacted
  5927  	// in log. If redaction is enabled, page parameters and intent parameters
  5928  	// referring to the entity type will be replaced by parameter name during
  5929  	// logging.
  5930  	Redact bool `json:"redact,omitempty"`
  5931  
  5932  	// ServerResponse contains the HTTP response code and headers from the server.
  5933  	googleapi.ServerResponse `json:"-"`
  5934  	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to
  5935  	// unconditionally include in API requests. By default, fields with empty or
  5936  	// default values are omitted from API requests. See
  5937  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5938  	// details.
  5939  	ForceSendFields []string `json:"-"`
  5940  	// NullFields is a list of field names (e.g. "AutoExpansionMode") to include in
  5941  	// API requests with the JSON null value. By default, fields with empty values
  5942  	// are omitted from API requests. See
  5943  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5944  	NullFields []string `json:"-"`
  5945  }
  5946  
  5947  func (s *GoogleCloudDialogflowCxV3beta1EntityType) MarshalJSON() ([]byte, error) {
  5948  	type NoMethod GoogleCloudDialogflowCxV3beta1EntityType
  5949  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5950  }
  5951  
  5952  // GoogleCloudDialogflowCxV3beta1EntityTypeEntity: An **entity entry** for an
  5953  // associated entity type.
  5954  type GoogleCloudDialogflowCxV3beta1EntityTypeEntity struct {
  5955  	// Synonyms: Required. A collection of value synonyms. For example, if the
  5956  	// entity type is *vegetable*, and `value` is *scallions*, a synonym could be
  5957  	// *green onions*. For `KIND_LIST` entity types: * This collection must contain
  5958  	// exactly one synonym equal to `value`.
  5959  	Synonyms []string `json:"synonyms,omitempty"`
  5960  	// Value: Required. The primary value associated with this entity entry. For
  5961  	// example, if the entity type is *vegetable*, the value could be *scallions*.
  5962  	// For `KIND_MAP` entity types: * A canonical value to be used in place of
  5963  	// synonyms. For `KIND_LIST` entity types: * A string that can contain
  5964  	// references to other entity types (with or without aliases).
  5965  	Value string `json:"value,omitempty"`
  5966  	// ForceSendFields is a list of field names (e.g. "Synonyms") to
  5967  	// unconditionally include in API requests. By default, fields with empty or
  5968  	// default values are omitted from API requests. See
  5969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5970  	// details.
  5971  	ForceSendFields []string `json:"-"`
  5972  	// NullFields is a list of field names (e.g. "Synonyms") to include in API
  5973  	// requests with the JSON null value. By default, fields with empty values are
  5974  	// omitted from API requests. See
  5975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5976  	NullFields []string `json:"-"`
  5977  }
  5978  
  5979  func (s *GoogleCloudDialogflowCxV3beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
  5980  	type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeEntity
  5981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5982  }
  5983  
  5984  // GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase: An excluded entity
  5985  // phrase that should not be matched.
  5986  type GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase struct {
  5987  	// Value: Required. The word or phrase to be excluded.
  5988  	Value string `json:"value,omitempty"`
  5989  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
  5990  	// include in API requests. By default, fields with empty or default values are
  5991  	// omitted from API requests. See
  5992  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5993  	// details.
  5994  	ForceSendFields []string `json:"-"`
  5995  	// NullFields is a list of field names (e.g. "Value") to include in API
  5996  	// requests with the JSON null value. By default, fields with empty values are
  5997  	// omitted from API requests. See
  5998  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5999  	NullFields []string `json:"-"`
  6000  }
  6001  
  6002  func (s *GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase) MarshalJSON() ([]byte, error) {
  6003  	type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase
  6004  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6005  }
  6006  
  6007  // GoogleCloudDialogflowCxV3beta1Environment: Represents an environment for an
  6008  // agent. You can create multiple versions of your agent and publish them to
  6009  // separate environments. When you edit an agent, you are editing the draft
  6010  // agent. At any point, you can save the draft agent as an agent version, which
  6011  // is an immutable snapshot of your agent. When you save the draft agent, it is
  6012  // published to the default environment. When you create agent versions, you
  6013  // can publish them to custom environments. You can create a variety of custom
  6014  // environments for testing, development, production, etc.
  6015  type GoogleCloudDialogflowCxV3beta1Environment struct {
  6016  	// Description: The human-readable description of the environment. The maximum
  6017  	// length is 500 characters. If exceeded, the request is rejected.
  6018  	Description string `json:"description,omitempty"`
  6019  	// DisplayName: Required. The human-readable name of the environment (unique in
  6020  	// an agent). Limit of 64 characters.
  6021  	DisplayName string `json:"displayName,omitempty"`
  6022  	// Name: The name of the environment. Format:
  6023  	// `projects//locations//agents//environments/`.
  6024  	Name string `json:"name,omitempty"`
  6025  	// TestCasesConfig: The test cases config for continuous tests of this
  6026  	// environment.
  6027  	TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
  6028  	// UpdateTime: Output only. Update time of this environment.
  6029  	UpdateTime string `json:"updateTime,omitempty"`
  6030  	// VersionConfigs: A list of configurations for flow versions. You should
  6031  	// include version configs for all flows that are reachable from `Start Flow`
  6032  	// in the agent. Otherwise, an error will be returned.
  6033  	VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
  6034  	// WebhookConfig: The webhook configuration for this environment.
  6035  	WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
  6036  
  6037  	// ServerResponse contains the HTTP response code and headers from the server.
  6038  	googleapi.ServerResponse `json:"-"`
  6039  	// ForceSendFields is a list of field names (e.g. "Description") to
  6040  	// unconditionally include in API requests. By default, fields with empty or
  6041  	// default values are omitted from API requests. See
  6042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6043  	// details.
  6044  	ForceSendFields []string `json:"-"`
  6045  	// NullFields is a list of field names (e.g. "Description") to include in API
  6046  	// requests with the JSON null value. By default, fields with empty values are
  6047  	// omitted from API requests. See
  6048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6049  	NullFields []string `json:"-"`
  6050  }
  6051  
  6052  func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
  6053  	type NoMethod GoogleCloudDialogflowCxV3beta1Environment
  6054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6055  }
  6056  
  6057  // GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig: The configuration
  6058  // for continuous tests.
  6059  type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {
  6060  	// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases
  6061  	// periodically. Default false. If set to true, run once a day.
  6062  	EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
  6063  	// EnablePredeploymentRun: Whether to run test cases in
  6064  	// TestCasesConfig.test_cases before deploying a flow version to the
  6065  	// environment. Default false.
  6066  	EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
  6067  	// TestCases: A list of test case names to run. They should be under the same
  6068  	// agent. Format of each test case name: `projects//locations/
  6069  	// /agents//testCases/`
  6070  	TestCases []string `json:"testCases,omitempty"`
  6071  	// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to
  6072  	// unconditionally include in API requests. By default, fields with empty or
  6073  	// default values are omitted from API requests. See
  6074  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6075  	// details.
  6076  	ForceSendFields []string `json:"-"`
  6077  	// NullFields is a list of field names (e.g. "EnableContinuousRun") to include
  6078  	// in API requests with the JSON null value. By default, fields with empty
  6079  	// values are omitted from API requests. See
  6080  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6081  	NullFields []string `json:"-"`
  6082  }
  6083  
  6084  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
  6085  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
  6086  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6087  }
  6088  
  6089  // GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig: Configuration for
  6090  // the version.
  6091  type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
  6092  	// Version: Required. Format: projects//locations//agents//flows//versions/.
  6093  	Version string `json:"version,omitempty"`
  6094  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  6095  	// include in API requests. By default, fields with empty or default values are
  6096  	// omitted from API requests. See
  6097  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6098  	// details.
  6099  	ForceSendFields []string `json:"-"`
  6100  	// NullFields is a list of field names (e.g. "Version") to include in API
  6101  	// requests with the JSON null value. By default, fields with empty values are
  6102  	// omitted from API requests. See
  6103  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6104  	NullFields []string `json:"-"`
  6105  }
  6106  
  6107  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
  6108  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
  6109  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6110  }
  6111  
  6112  // GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig: Configuration for
  6113  // webhooks.
  6114  type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {
  6115  	// WebhookOverrides: The list of webhooks to override for the agent
  6116  	// environment. The webhook must exist in the agent. You can override fields in
  6117  	// `generic_web_service` and `service_directory`.
  6118  	WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`
  6119  	// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to
  6120  	// unconditionally include in API requests. By default, fields with empty or
  6121  	// default values are omitted from API requests. See
  6122  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6123  	// details.
  6124  	ForceSendFields []string `json:"-"`
  6125  	// NullFields is a list of field names (e.g. "WebhookOverrides") to include in
  6126  	// API requests with the JSON null value. By default, fields with empty values
  6127  	// are omitted from API requests. See
  6128  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6129  	NullFields []string `json:"-"`
  6130  }
  6131  
  6132  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
  6133  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig
  6134  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6135  }
  6136  
  6137  // GoogleCloudDialogflowCxV3beta1EventHandler: An event handler specifies an
  6138  // event that can be handled during a session. When the specified event
  6139  // happens, the following actions are taken in order: * If there is a
  6140  // `trigger_fulfillment` associated with the event, it will be called. * If
  6141  // there is a `target_page` associated with the event, the session will
  6142  // transition into the specified page. * If there is a `target_flow` associated
  6143  // with the event, the session will transition into the specified flow.
  6144  type GoogleCloudDialogflowCxV3beta1EventHandler struct {
  6145  	// Event: Required. The name of the event to handle.
  6146  	Event string `json:"event,omitempty"`
  6147  	// Name: Output only. The unique identifier of this event handler.
  6148  	Name string `json:"name,omitempty"`
  6149  	// TargetFlow: The target flow to transition to. Format:
  6150  	// `projects//locations//agents//flows/`.
  6151  	TargetFlow string `json:"targetFlow,omitempty"`
  6152  	// TargetPage: The target page to transition to. Format:
  6153  	// `projects//locations//agents//flows//pages/`.
  6154  	TargetPage string `json:"targetPage,omitempty"`
  6155  	// TriggerFulfillment: The fulfillment to call when the event occurs. Handling
  6156  	// webhook errors with a fulfillment enabled with webhook could cause infinite
  6157  	// loop. It is invalid to specify such fulfillment for a handler handling
  6158  	// webhooks.
  6159  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  6160  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  6161  	// include in API requests. By default, fields with empty or default values are
  6162  	// omitted from API requests. See
  6163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6164  	// details.
  6165  	ForceSendFields []string `json:"-"`
  6166  	// NullFields is a list of field names (e.g. "Event") to include in API
  6167  	// requests with the JSON null value. By default, fields with empty values are
  6168  	// omitted from API requests. See
  6169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6170  	NullFields []string `json:"-"`
  6171  }
  6172  
  6173  func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
  6174  	type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
  6175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6176  }
  6177  
  6178  // GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to trigger.
  6179  type GoogleCloudDialogflowCxV3beta1EventInput struct {
  6180  	// Event: Name of the event.
  6181  	Event string `json:"event,omitempty"`
  6182  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  6183  	// include in API requests. By default, fields with empty or default values are
  6184  	// omitted from API requests. See
  6185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6186  	// details.
  6187  	ForceSendFields []string `json:"-"`
  6188  	// NullFields is a list of field names (e.g. "Event") to include in API
  6189  	// requests with the JSON null value. By default, fields with empty values are
  6190  	// omitted from API requests. See
  6191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6192  	NullFields []string `json:"-"`
  6193  }
  6194  
  6195  func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
  6196  	type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
  6197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6198  }
  6199  
  6200  // GoogleCloudDialogflowCxV3beta1Experiment: Represents an experiment in an
  6201  // environment.
  6202  type GoogleCloudDialogflowCxV3beta1Experiment struct {
  6203  	// CreateTime: Creation time of this experiment.
  6204  	CreateTime string `json:"createTime,omitempty"`
  6205  	// Definition: The definition of the experiment.
  6206  	Definition *GoogleCloudDialogflowCxV3beta1ExperimentDefinition `json:"definition,omitempty"`
  6207  	// Description: The human-readable description of the experiment.
  6208  	Description string `json:"description,omitempty"`
  6209  	// DisplayName: Required. The human-readable name of the experiment (unique in
  6210  	// an environment). Limit of 64 characters.
  6211  	DisplayName string `json:"displayName,omitempty"`
  6212  	// EndTime: End time of this experiment.
  6213  	EndTime string `json:"endTime,omitempty"`
  6214  	// ExperimentLength: Maximum number of days to run the experiment. If
  6215  	// auto-rollout is not enabled, default value and maximum will be 30 days. If
  6216  	// auto-rollout is enabled, default value and maximum will be 6 days.
  6217  	ExperimentLength string `json:"experimentLength,omitempty"`
  6218  	// LastUpdateTime: Last update time of this experiment.
  6219  	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
  6220  	// Name: The name of the experiment. Format:
  6221  	// projects//locations//agents//environments//experiments/..
  6222  	Name string `json:"name,omitempty"`
  6223  	// Result: Inference result of the experiment.
  6224  	Result *GoogleCloudDialogflowCxV3beta1ExperimentResult `json:"result,omitempty"`
  6225  	// RolloutConfig: The configuration for auto rollout. If set, there should be
  6226  	// exactly two variants in the experiment (control variant being the default
  6227  	// version of the flow), the traffic allocation for the non-control variant
  6228  	// will gradually increase to 100% when conditions are met, and eventually
  6229  	// replace the control variant to become the default version of the flow.
  6230  	RolloutConfig *GoogleCloudDialogflowCxV3beta1RolloutConfig `json:"rolloutConfig,omitempty"`
  6231  	// RolloutFailureReason: The reason why rollout has failed. Should only be set
  6232  	// when state is ROLLOUT_FAILED.
  6233  	RolloutFailureReason string `json:"rolloutFailureReason,omitempty"`
  6234  	// RolloutState: State of the auto rollout process.
  6235  	RolloutState *GoogleCloudDialogflowCxV3beta1RolloutState `json:"rolloutState,omitempty"`
  6236  	// StartTime: Start time of this experiment.
  6237  	StartTime string `json:"startTime,omitempty"`
  6238  	// State: The current state of the experiment. Transition triggered by
  6239  	// Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by
  6240  	// Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.
  6241  	//
  6242  	// Possible values:
  6243  	//   "STATE_UNSPECIFIED" - State unspecified.
  6244  	//   "DRAFT" - The experiment is created but not started yet.
  6245  	//   "RUNNING" - The experiment is running.
  6246  	//   "DONE" - The experiment is done.
  6247  	//   "ROLLOUT_FAILED" - The experiment with auto-rollout enabled has failed.
  6248  	State string `json:"state,omitempty"`
  6249  	// VariantsHistory: The history of updates to the experiment variants.
  6250  	VariantsHistory []*GoogleCloudDialogflowCxV3beta1VariantsHistory `json:"variantsHistory,omitempty"`
  6251  
  6252  	// ServerResponse contains the HTTP response code and headers from the server.
  6253  	googleapi.ServerResponse `json:"-"`
  6254  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6255  	// unconditionally include in API requests. By default, fields with empty or
  6256  	// default values are omitted from API requests. See
  6257  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6258  	// details.
  6259  	ForceSendFields []string `json:"-"`
  6260  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6261  	// requests with the JSON null value. By default, fields with empty values are
  6262  	// omitted from API requests. See
  6263  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6264  	NullFields []string `json:"-"`
  6265  }
  6266  
  6267  func (s *GoogleCloudDialogflowCxV3beta1Experiment) MarshalJSON() ([]byte, error) {
  6268  	type NoMethod GoogleCloudDialogflowCxV3beta1Experiment
  6269  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6270  }
  6271  
  6272  // GoogleCloudDialogflowCxV3beta1ExperimentDefinition: Definition of the
  6273  // experiment.
  6274  type GoogleCloudDialogflowCxV3beta1ExperimentDefinition struct {
  6275  	// Condition: The condition defines which subset of sessions are selected for
  6276  	// this experiment. If not specified, all sessions are eligible. E.g.
  6277  	// "query_input.language_code=en" See the conditions reference
  6278  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  6279  	Condition string `json:"condition,omitempty"`
  6280  	// VersionVariants: The flow versions as the variants of this experiment.
  6281  	VersionVariants *GoogleCloudDialogflowCxV3beta1VersionVariants `json:"versionVariants,omitempty"`
  6282  	// ForceSendFields is a list of field names (e.g. "Condition") to
  6283  	// unconditionally include in API requests. By default, fields with empty or
  6284  	// default values are omitted from API requests. See
  6285  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6286  	// details.
  6287  	ForceSendFields []string `json:"-"`
  6288  	// NullFields is a list of field names (e.g. "Condition") to include in API
  6289  	// requests with the JSON null value. By default, fields with empty values are
  6290  	// omitted from API requests. See
  6291  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6292  	NullFields []string `json:"-"`
  6293  }
  6294  
  6295  func (s *GoogleCloudDialogflowCxV3beta1ExperimentDefinition) MarshalJSON() ([]byte, error) {
  6296  	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentDefinition
  6297  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6298  }
  6299  
  6300  // GoogleCloudDialogflowCxV3beta1ExperimentResult: The inference result which
  6301  // includes an objective metric to optimize and the confidence interval.
  6302  type GoogleCloudDialogflowCxV3beta1ExperimentResult struct {
  6303  	// LastUpdateTime: The last time the experiment's stats data was updated. Will
  6304  	// have default value if stats have never been computed for this experiment.
  6305  	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
  6306  	// VersionMetrics: Version variants and metrics.
  6307  	VersionMetrics []*GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics `json:"versionMetrics,omitempty"`
  6308  	// ForceSendFields is a list of field names (e.g. "LastUpdateTime") to
  6309  	// unconditionally include in API requests. By default, fields with empty or
  6310  	// default values are omitted from API requests. See
  6311  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6312  	// details.
  6313  	ForceSendFields []string `json:"-"`
  6314  	// NullFields is a list of field names (e.g. "LastUpdateTime") to include in
  6315  	// API requests with the JSON null value. By default, fields with empty values
  6316  	// are omitted from API requests. See
  6317  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6318  	NullFields []string `json:"-"`
  6319  }
  6320  
  6321  func (s *GoogleCloudDialogflowCxV3beta1ExperimentResult) MarshalJSON() ([]byte, error) {
  6322  	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResult
  6323  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6324  }
  6325  
  6326  // GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval: A
  6327  // confidence interval is a range of possible values for the experiment
  6328  // objective you are trying to measure.
  6329  type GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval struct {
  6330  	// ConfidenceLevel: The confidence level used to construct the interval, i.e.
  6331  	// there is X% chance that the true value is within this interval.
  6332  	ConfidenceLevel float64 `json:"confidenceLevel,omitempty"`
  6333  	// LowerBound: Lower bound of the interval.
  6334  	LowerBound float64 `json:"lowerBound,omitempty"`
  6335  	// Ratio: The percent change between an experiment metric's value and the value
  6336  	// for its control.
  6337  	Ratio float64 `json:"ratio,omitempty"`
  6338  	// UpperBound: Upper bound of the interval.
  6339  	UpperBound float64 `json:"upperBound,omitempty"`
  6340  	// ForceSendFields is a list of field names (e.g. "ConfidenceLevel") to
  6341  	// unconditionally include in API requests. By default, fields with empty or
  6342  	// default values are omitted from API requests. See
  6343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6344  	// details.
  6345  	ForceSendFields []string `json:"-"`
  6346  	// NullFields is a list of field names (e.g. "ConfidenceLevel") to include in
  6347  	// API requests with the JSON null value. By default, fields with empty values
  6348  	// are omitted from API requests. See
  6349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6350  	NullFields []string `json:"-"`
  6351  }
  6352  
  6353  func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval) MarshalJSON() ([]byte, error) {
  6354  	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
  6355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6356  }
  6357  
  6358  func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval) UnmarshalJSON(data []byte) error {
  6359  	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
  6360  	var s1 struct {
  6361  		ConfidenceLevel gensupport.JSONFloat64 `json:"confidenceLevel"`
  6362  		LowerBound      gensupport.JSONFloat64 `json:"lowerBound"`
  6363  		Ratio           gensupport.JSONFloat64 `json:"ratio"`
  6364  		UpperBound      gensupport.JSONFloat64 `json:"upperBound"`
  6365  		*NoMethod
  6366  	}
  6367  	s1.NoMethod = (*NoMethod)(s)
  6368  	if err := json.Unmarshal(data, &s1); err != nil {
  6369  		return err
  6370  	}
  6371  	s.ConfidenceLevel = float64(s1.ConfidenceLevel)
  6372  	s.LowerBound = float64(s1.LowerBound)
  6373  	s.Ratio = float64(s1.Ratio)
  6374  	s.UpperBound = float64(s1.UpperBound)
  6375  	return nil
  6376  }
  6377  
  6378  // GoogleCloudDialogflowCxV3beta1ExperimentResultMetric: Metric and
  6379  // corresponding confidence intervals.
  6380  type GoogleCloudDialogflowCxV3beta1ExperimentResultMetric struct {
  6381  	// ConfidenceInterval: The probability that the treatment is better than all
  6382  	// other treatments in the experiment
  6383  	ConfidenceInterval *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval `json:"confidenceInterval,omitempty"`
  6384  	// Count: Count value of a metric.
  6385  	Count float64 `json:"count,omitempty"`
  6386  	// CountType: Count-based metric type. Only one of type or count_type is
  6387  	// specified in each Metric.
  6388  	//
  6389  	// Possible values:
  6390  	//   "COUNT_TYPE_UNSPECIFIED" - Count type unspecified.
  6391  	//   "TOTAL_NO_MATCH_COUNT" - Total number of occurrences of a 'NO_MATCH'.
  6392  	//   "TOTAL_TURN_COUNT" - Total number of turn counts.
  6393  	//   "AVERAGE_TURN_COUNT" - Average turn count in a session.
  6394  	CountType string `json:"countType,omitempty"`
  6395  	// Ratio: Ratio value of a metric.
  6396  	Ratio float64 `json:"ratio,omitempty"`
  6397  	// Type: Ratio-based metric type. Only one of type or count_type is specified
  6398  	// in each Metric.
  6399  	//
  6400  	// Possible values:
  6401  	//   "METRIC_UNSPECIFIED" - Metric unspecified.
  6402  	//   "CONTAINED_SESSION_NO_CALLBACK_RATE" - Percentage of contained sessions
  6403  	// without user calling back in 24 hours.
  6404  	//   "LIVE_AGENT_HANDOFF_RATE" - Percentage of sessions that were handed to a
  6405  	// human agent.
  6406  	//   "CALLBACK_SESSION_RATE" - Percentage of sessions with the same user
  6407  	// calling back.
  6408  	//   "ABANDONED_SESSION_RATE" - Percentage of sessions where user hung up.
  6409  	//   "SESSION_END_RATE" - Percentage of sessions reached Dialogflow 'END_PAGE'
  6410  	// or 'END_SESSION'.
  6411  	Type string `json:"type,omitempty"`
  6412  	// ForceSendFields is a list of field names (e.g. "ConfidenceInterval") to
  6413  	// unconditionally include in API requests. By default, fields with empty or
  6414  	// default values are omitted from API requests. See
  6415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6416  	// details.
  6417  	ForceSendFields []string `json:"-"`
  6418  	// NullFields is a list of field names (e.g. "ConfidenceInterval") to include
  6419  	// in API requests with the JSON null value. By default, fields with empty
  6420  	// values are omitted from API requests. See
  6421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6422  	NullFields []string `json:"-"`
  6423  }
  6424  
  6425  func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultMetric) MarshalJSON() ([]byte, error) {
  6426  	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
  6427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6428  }
  6429  
  6430  func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultMetric) UnmarshalJSON(data []byte) error {
  6431  	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
  6432  	var s1 struct {
  6433  		Count gensupport.JSONFloat64 `json:"count"`
  6434  		Ratio gensupport.JSONFloat64 `json:"ratio"`
  6435  		*NoMethod
  6436  	}
  6437  	s1.NoMethod = (*NoMethod)(s)
  6438  	if err := json.Unmarshal(data, &s1); err != nil {
  6439  		return err
  6440  	}
  6441  	s.Count = float64(s1.Count)
  6442  	s.Ratio = float64(s1.Ratio)
  6443  	return nil
  6444  }
  6445  
  6446  // GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics: Version
  6447  // variant and associated metrics.
  6448  type GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics struct {
  6449  	// Metrics: The metrics and corresponding confidence intervals in the inference
  6450  	// result.
  6451  	Metrics []*GoogleCloudDialogflowCxV3beta1ExperimentResultMetric `json:"metrics,omitempty"`
  6452  	// SessionCount: Number of sessions that were allocated to this version.
  6453  	SessionCount int64 `json:"sessionCount,omitempty"`
  6454  	// Version: The name of the flow Version. Format:
  6455  	// `projects//locations//agents//flows//versions/`.
  6456  	Version string `json:"version,omitempty"`
  6457  	// ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally
  6458  	// include in API requests. By default, fields with empty or default values are
  6459  	// omitted from API requests. See
  6460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6461  	// details.
  6462  	ForceSendFields []string `json:"-"`
  6463  	// NullFields is a list of field names (e.g. "Metrics") to include in API
  6464  	// requests with the JSON null value. By default, fields with empty values are
  6465  	// omitted from API requests. See
  6466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6467  	NullFields []string `json:"-"`
  6468  }
  6469  
  6470  func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics) MarshalJSON() ([]byte, error) {
  6471  	type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics
  6472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6473  }
  6474  
  6475  // GoogleCloudDialogflowCxV3beta1ExportAgentRequest: The request message for
  6476  // Agents.ExportAgent.
  6477  type GoogleCloudDialogflowCxV3beta1ExportAgentRequest struct {
  6478  	// AgentUri: Optional. The Google Cloud Storage
  6479  	// (https://cloud.google.com/storage/docs/) URI to export the agent to. The
  6480  	// format of this URI must be `gs:///`. If left unspecified, the serialized
  6481  	// agent is returned inline. Dialogflow performs a write operation for the
  6482  	// Cloud Storage object on the caller's behalf, so your request authentication
  6483  	// must have write permissions for the object. For more information, see
  6484  	// Dialogflow access control
  6485  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  6486  	AgentUri string `json:"agentUri,omitempty"`
  6487  	// DataFormat: Optional. The data format of the exported agent. If not
  6488  	// specified, `BLOB` is assumed.
  6489  	//
  6490  	// Possible values:
  6491  	//   "DATA_FORMAT_UNSPECIFIED" - Unspecified format.
  6492  	//   "BLOB" - Agent content will be exported as raw bytes.
  6493  	//   "JSON_PACKAGE" - Agent content will be exported in JSON Package format.
  6494  	DataFormat string `json:"dataFormat,omitempty"`
  6495  	// Environment: Optional. Environment name. If not set, draft environment is
  6496  	// assumed. Format: `projects//locations//agents//environments/`.
  6497  	Environment string `json:"environment,omitempty"`
  6498  	// GitDestination: Optional. The Git branch to export the agent to.
  6499  	GitDestination *GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination `json:"gitDestination,omitempty"`
  6500  	// IncludeBigqueryExportSettings: Optional. Whether to include BigQuery Export
  6501  	// setting.
  6502  	IncludeBigqueryExportSettings bool `json:"includeBigqueryExportSettings,omitempty"`
  6503  	// ForceSendFields is a list of field names (e.g. "AgentUri") to
  6504  	// unconditionally include in API requests. By default, fields with empty or
  6505  	// default values are omitted from API requests. See
  6506  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6507  	// details.
  6508  	ForceSendFields []string `json:"-"`
  6509  	// NullFields is a list of field names (e.g. "AgentUri") to include in API
  6510  	// requests with the JSON null value. By default, fields with empty values are
  6511  	// omitted from API requests. See
  6512  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6513  	NullFields []string `json:"-"`
  6514  }
  6515  
  6516  func (s *GoogleCloudDialogflowCxV3beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
  6517  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentRequest
  6518  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6519  }
  6520  
  6521  // GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination: Settings for
  6522  // exporting to a git branch.
  6523  type GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination struct {
  6524  	// CommitMessage: Commit message for the git push.
  6525  	CommitMessage string `json:"commitMessage,omitempty"`
  6526  	// TrackingBranch: Tracking branch for the git push.
  6527  	TrackingBranch string `json:"trackingBranch,omitempty"`
  6528  	// ForceSendFields is a list of field names (e.g. "CommitMessage") to
  6529  	// unconditionally include in API requests. By default, fields with empty or
  6530  	// default values are omitted from API requests. See
  6531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6532  	// details.
  6533  	ForceSendFields []string `json:"-"`
  6534  	// NullFields is a list of field names (e.g. "CommitMessage") to include in API
  6535  	// requests with the JSON null value. By default, fields with empty values are
  6536  	// omitted from API requests. See
  6537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6538  	NullFields []string `json:"-"`
  6539  }
  6540  
  6541  func (s *GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination) MarshalJSON() ([]byte, error) {
  6542  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination
  6543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6544  }
  6545  
  6546  // GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response message for
  6547  // Agents.ExportAgent.
  6548  type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
  6549  	// AgentContent: Uncompressed raw byte content for agent. This field is
  6550  	// populated if none of `agent_uri` and `git_destination` are specified in
  6551  	// ExportAgentRequest.
  6552  	AgentContent string `json:"agentContent,omitempty"`
  6553  	// AgentUri: The URI to a file containing the exported agent. This field is
  6554  	// populated if `agent_uri` is specified in ExportAgentRequest.
  6555  	AgentUri string `json:"agentUri,omitempty"`
  6556  	// CommitSha: Commit SHA of the git push. This field is populated if
  6557  	// `git_destination` is specified in ExportAgentRequest.
  6558  	CommitSha string `json:"commitSha,omitempty"`
  6559  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
  6560  	// unconditionally include in API requests. By default, fields with empty or
  6561  	// default values are omitted from API requests. See
  6562  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6563  	// details.
  6564  	ForceSendFields []string `json:"-"`
  6565  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
  6566  	// requests with the JSON null value. By default, fields with empty values are
  6567  	// omitted from API requests. See
  6568  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6569  	NullFields []string `json:"-"`
  6570  }
  6571  
  6572  func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
  6573  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
  6574  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6575  }
  6576  
  6577  // GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata returned
  6578  // for the EntityTypes.ExportEntityTypes long running operation.
  6579  type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {
  6580  }
  6581  
  6582  // GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest: The request message
  6583  // for EntityTypes.ExportEntityTypes.
  6584  type GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest struct {
  6585  	// DataFormat: Optional. The data format of the exported entity types. If not
  6586  	// specified, `BLOB` is assumed.
  6587  	//
  6588  	// Possible values:
  6589  	//   "DATA_FORMAT_UNSPECIFIED" - Unspecified format. Treated as `BLOB`.
  6590  	//   "BLOB" - EntityTypes will be exported as raw bytes.
  6591  	//   "JSON_PACKAGE" - EntityTypes will be exported in JSON Package format.
  6592  	DataFormat string `json:"dataFormat,omitempty"`
  6593  	// EntityTypes: Required. The name of the entity types to export. Format:
  6594  	// `projects//locations//agents//entityTypes/`.
  6595  	EntityTypes []string `json:"entityTypes,omitempty"`
  6596  	// EntityTypesContentInline: Optional. The option to return the serialized
  6597  	// entity types inline.
  6598  	EntityTypesContentInline bool `json:"entityTypesContentInline,omitempty"`
  6599  	// EntityTypesUri: Optional. The Google Cloud Storage
  6600  	// (https://cloud.google.com/storage/docs/) URI to export the entity types to.
  6601  	// The format of this URI must be `gs:///`. Dialogflow performs a write
  6602  	// operation for the Cloud Storage object on the caller's behalf, so your
  6603  	// request authentication must have write permissions for the object. For more
  6604  	// information, see Dialogflow access control
  6605  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  6606  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  6607  	// LanguageCode: Optional. The language to retrieve the entity type for. The
  6608  	// following fields are language dependent: * `EntityType.entities.value` *
  6609  	// `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not
  6610  	// specified, all language dependent fields will be retrieved. Many languages
  6611  	// (https://cloud.google.com/dialogflow/docs/reference/language) are supported.
  6612  	// Note: languages must be enabled in the agent before they can be used.
  6613  	LanguageCode string `json:"languageCode,omitempty"`
  6614  	// ForceSendFields is a list of field names (e.g. "DataFormat") to
  6615  	// unconditionally include in API requests. By default, fields with empty or
  6616  	// default values are omitted from API requests. See
  6617  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6618  	// details.
  6619  	ForceSendFields []string `json:"-"`
  6620  	// NullFields is a list of field names (e.g. "DataFormat") to include in API
  6621  	// requests with the JSON null value. By default, fields with empty values are
  6622  	// omitted from API requests. See
  6623  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6624  	NullFields []string `json:"-"`
  6625  }
  6626  
  6627  func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest) MarshalJSON() ([]byte, error) {
  6628  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest
  6629  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6630  }
  6631  
  6632  // GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The response
  6633  // message for EntityTypes.ExportEntityTypes.
  6634  type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {
  6635  	// EntityTypesContent: Uncompressed byte content for entity types. This field
  6636  	// is populated only if `entity_types_content_inline` is set to true in
  6637  	// ExportEntityTypesRequest.
  6638  	EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`
  6639  	// EntityTypesUri: The URI to a file containing the exported entity types. This
  6640  	// field is populated only if `entity_types_uri` is specified in
  6641  	// ExportEntityTypesRequest.
  6642  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  6643  	// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to
  6644  	// unconditionally include in API requests. By default, fields with empty or
  6645  	// default values are omitted from API requests. See
  6646  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6647  	// details.
  6648  	ForceSendFields []string `json:"-"`
  6649  	// NullFields is a list of field names (e.g. "EntityTypesContent") to include
  6650  	// in API requests with the JSON null value. By default, fields with empty
  6651  	// values are omitted from API requests. See
  6652  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6653  	NullFields []string `json:"-"`
  6654  }
  6655  
  6656  func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  6657  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse
  6658  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6659  }
  6660  
  6661  // GoogleCloudDialogflowCxV3beta1ExportFlowRequest: The request message for
  6662  // Flows.ExportFlow.
  6663  type GoogleCloudDialogflowCxV3beta1ExportFlowRequest struct {
  6664  	// FlowUri: Optional. The Google Cloud Storage
  6665  	// (https://cloud.google.com/storage/docs/) URI to export the flow to. The
  6666  	// format of this URI must be `gs:///`. If left unspecified, the serialized
  6667  	// flow is returned inline. Dialogflow performs a write operation for the Cloud
  6668  	// Storage object on the caller's behalf, so your request authentication must
  6669  	// have write permissions for the object. For more information, see Dialogflow
  6670  	// access control
  6671  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  6672  	FlowUri string `json:"flowUri,omitempty"`
  6673  	// IncludeReferencedFlows: Optional. Whether to export flows referenced by the
  6674  	// specified flow.
  6675  	IncludeReferencedFlows bool `json:"includeReferencedFlows,omitempty"`
  6676  	// ForceSendFields is a list of field names (e.g. "FlowUri") to unconditionally
  6677  	// include in API requests. By default, fields with empty or default values are
  6678  	// omitted from API requests. See
  6679  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6680  	// details.
  6681  	ForceSendFields []string `json:"-"`
  6682  	// NullFields is a list of field names (e.g. "FlowUri") to include in API
  6683  	// requests with the JSON null value. By default, fields with empty values are
  6684  	// omitted from API requests. See
  6685  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6686  	NullFields []string `json:"-"`
  6687  }
  6688  
  6689  func (s *GoogleCloudDialogflowCxV3beta1ExportFlowRequest) MarshalJSON() ([]byte, error) {
  6690  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowRequest
  6691  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6692  }
  6693  
  6694  // GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response message for
  6695  // Flows.ExportFlow.
  6696  type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
  6697  	// FlowContent: Uncompressed raw byte content for flow.
  6698  	FlowContent string `json:"flowContent,omitempty"`
  6699  	// FlowUri: The URI to a file containing the exported flow. This field is
  6700  	// populated only if `flow_uri` is specified in ExportFlowRequest.
  6701  	FlowUri string `json:"flowUri,omitempty"`
  6702  	// ForceSendFields is a list of field names (e.g. "FlowContent") to
  6703  	// unconditionally include in API requests. By default, fields with empty or
  6704  	// default values are omitted from API requests. See
  6705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6706  	// details.
  6707  	ForceSendFields []string `json:"-"`
  6708  	// NullFields is a list of field names (e.g. "FlowContent") to include in API
  6709  	// requests with the JSON null value. By default, fields with empty values are
  6710  	// omitted from API requests. See
  6711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6712  	NullFields []string `json:"-"`
  6713  }
  6714  
  6715  func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
  6716  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
  6717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6718  }
  6719  
  6720  // GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata: Metadata returned for
  6721  // the Intents.ExportIntents long running operation.
  6722  type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {
  6723  }
  6724  
  6725  // GoogleCloudDialogflowCxV3beta1ExportIntentsRequest: The request message for
  6726  // Intents.ExportIntents.
  6727  type GoogleCloudDialogflowCxV3beta1ExportIntentsRequest struct {
  6728  	// DataFormat: Optional. The data format of the exported intents. If not
  6729  	// specified, `BLOB` is assumed.
  6730  	//
  6731  	// Possible values:
  6732  	//   "DATA_FORMAT_UNSPECIFIED" - Unspecified format. Treated as `BLOB`.
  6733  	//   "BLOB" - Intents will be exported as raw bytes.
  6734  	//   "JSON" - Intents will be exported in JSON format.
  6735  	//   "CSV" - Intents will be exported in CSV format.
  6736  	DataFormat string `json:"dataFormat,omitempty"`
  6737  	// Intents: Required. The name of the intents to export. Format:
  6738  	// `projects//locations//agents//intents/`.
  6739  	Intents []string `json:"intents,omitempty"`
  6740  	// IntentsContentInline: Optional. The option to return the serialized intents
  6741  	// inline.
  6742  	IntentsContentInline bool `json:"intentsContentInline,omitempty"`
  6743  	// IntentsUri: Optional. The Google Cloud Storage
  6744  	// (https://cloud.google.com/storage/docs/) URI to export the intents to. The
  6745  	// format of this URI must be `gs:///`. Dialogflow performs a write operation
  6746  	// for the Cloud Storage object on the caller's behalf, so your request
  6747  	// authentication must have write permissions for the object. For more
  6748  	// information, see Dialogflow access control
  6749  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  6750  	IntentsUri string `json:"intentsUri,omitempty"`
  6751  	// ForceSendFields is a list of field names (e.g. "DataFormat") to
  6752  	// unconditionally include in API requests. By default, fields with empty or
  6753  	// default values are omitted from API requests. See
  6754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6755  	// details.
  6756  	ForceSendFields []string `json:"-"`
  6757  	// NullFields is a list of field names (e.g. "DataFormat") to include in API
  6758  	// requests with the JSON null value. By default, fields with empty values are
  6759  	// omitted from API requests. See
  6760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6761  	NullFields []string `json:"-"`
  6762  }
  6763  
  6764  func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsRequest) MarshalJSON() ([]byte, error) {
  6765  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsRequest
  6766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6767  }
  6768  
  6769  // GoogleCloudDialogflowCxV3beta1ExportIntentsResponse: The response message
  6770  // for Intents.ExportIntents.
  6771  type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {
  6772  	// IntentsContent: Uncompressed byte content for intents. This field is
  6773  	// populated only if `intents_content_inline` is set to true in
  6774  	// ExportIntentsRequest.
  6775  	IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`
  6776  	// IntentsUri: The URI to a file containing the exported intents. This field is
  6777  	// populated only if `intents_uri` is specified in ExportIntentsRequest.
  6778  	IntentsUri string `json:"intentsUri,omitempty"`
  6779  	// ForceSendFields is a list of field names (e.g. "IntentsContent") to
  6780  	// unconditionally include in API requests. By default, fields with empty or
  6781  	// default values are omitted from API requests. See
  6782  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6783  	// details.
  6784  	ForceSendFields []string `json:"-"`
  6785  	// NullFields is a list of field names (e.g. "IntentsContent") to include in
  6786  	// API requests with the JSON null value. By default, fields with empty values
  6787  	// are omitted from API requests. See
  6788  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6789  	NullFields []string `json:"-"`
  6790  }
  6791  
  6792  func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]byte, error) {
  6793  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
  6794  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6795  }
  6796  
  6797  // GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata returned for
  6798  // the TestCases.ExportTestCases long running operation. This message currently
  6799  // has no fields.
  6800  type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
  6801  }
  6802  
  6803  // GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest: The request message
  6804  // for TestCases.ExportTestCases.
  6805  type GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest struct {
  6806  	// DataFormat: The data format of the exported test cases. If not specified,
  6807  	// `BLOB` is assumed.
  6808  	//
  6809  	// Possible values:
  6810  	//   "DATA_FORMAT_UNSPECIFIED" - Unspecified format.
  6811  	//   "BLOB" - Raw bytes.
  6812  	//   "JSON" - JSON format.
  6813  	DataFormat string `json:"dataFormat,omitempty"`
  6814  	// Filter: The filter expression used to filter exported test cases, see API
  6815  	// Filtering (https://aip.dev/160). The expression is case insensitive and
  6816  	// supports the following syntax: name = [OR name = ] ... For example: * "name
  6817  	// = t1 OR name = t2" matches the test case with the exact resource name "t1"
  6818  	// or "t2".
  6819  	Filter string `json:"filter,omitempty"`
  6820  	// GcsUri: The Google Cloud Storage (https://cloud.google.com/storage/docs/)
  6821  	// URI to export the test cases to. The format of this URI must be `gs:///`. If
  6822  	// unspecified, the serialized test cases is returned inline. Dialogflow
  6823  	// performs a write operation for the Cloud Storage object on the caller's
  6824  	// behalf, so your request authentication must have write permissions for the
  6825  	// object. For more information, see Dialogflow access control
  6826  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  6827  	GcsUri string `json:"gcsUri,omitempty"`
  6828  	// ForceSendFields is a list of field names (e.g. "DataFormat") to
  6829  	// unconditionally include in API requests. By default, fields with empty or
  6830  	// default values are omitted from API requests. See
  6831  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6832  	// details.
  6833  	ForceSendFields []string `json:"-"`
  6834  	// NullFields is a list of field names (e.g. "DataFormat") to include in API
  6835  	// requests with the JSON null value. By default, fields with empty values are
  6836  	// omitted from API requests. See
  6837  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6838  	NullFields []string `json:"-"`
  6839  }
  6840  
  6841  func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest) MarshalJSON() ([]byte, error) {
  6842  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest
  6843  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6844  }
  6845  
  6846  // GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse: The response message
  6847  // for TestCases.ExportTestCases.
  6848  type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
  6849  	// Content: Uncompressed raw byte content for test cases.
  6850  	Content string `json:"content,omitempty"`
  6851  	// GcsUri: The URI to a file containing the exported test cases. This field is
  6852  	// populated only if `gcs_uri` is specified in ExportTestCasesRequest.
  6853  	GcsUri string `json:"gcsUri,omitempty"`
  6854  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  6855  	// include in API requests. By default, fields with empty or default values are
  6856  	// omitted from API requests. See
  6857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6858  	// details.
  6859  	ForceSendFields []string `json:"-"`
  6860  	// NullFields is a list of field names (e.g. "Content") to include in API
  6861  	// requests with the JSON null value. By default, fields with empty values are
  6862  	// omitted from API requests. See
  6863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6864  	NullFields []string `json:"-"`
  6865  }
  6866  
  6867  func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
  6868  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
  6869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6870  }
  6871  
  6872  // GoogleCloudDialogflowCxV3beta1FilterSpecs: Filter specifications for data
  6873  // stores.
  6874  type GoogleCloudDialogflowCxV3beta1FilterSpecs struct {
  6875  	// DataStores: Optional. Data Stores where the boosting configuration is
  6876  	// applied. The full names of the referenced data stores. Formats:
  6877  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  6878  	// {data_store}`
  6879  	// `projects/{project}/locations/{location}/dataStores/{data_store}
  6880  	DataStores []string `json:"dataStores,omitempty"`
  6881  	// Filter: Optional. The filter expression to be applied. Expression syntax is
  6882  	// documented at
  6883  	// https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
  6884  	Filter string `json:"filter,omitempty"`
  6885  	// ForceSendFields is a list of field names (e.g. "DataStores") to
  6886  	// unconditionally include in API requests. By default, fields with empty or
  6887  	// default values are omitted from API requests. See
  6888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6889  	// details.
  6890  	ForceSendFields []string `json:"-"`
  6891  	// NullFields is a list of field names (e.g. "DataStores") to include in API
  6892  	// requests with the JSON null value. By default, fields with empty values are
  6893  	// omitted from API requests. See
  6894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6895  	NullFields []string `json:"-"`
  6896  }
  6897  
  6898  func (s *GoogleCloudDialogflowCxV3beta1FilterSpecs) MarshalJSON() ([]byte, error) {
  6899  	type NoMethod GoogleCloudDialogflowCxV3beta1FilterSpecs
  6900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6901  }
  6902  
  6903  // GoogleCloudDialogflowCxV3beta1Flow: Flows represents the conversation flows
  6904  // when you build your chatbot agent. A flow consists of many pages connected
  6905  // by the transition routes. Conversations always start with the built-in Start
  6906  // Flow (with an all-0 ID). Transition routes can direct the conversation
  6907  // session from the current flow (parent flow) to another flow (sub flow). When
  6908  // the sub flow is finished, Dialogflow will bring the session back to the
  6909  // parent flow, where the sub flow is started. Usually, when a transition route
  6910  // is followed by a matched intent, the intent will be "consumed". This means
  6911  // the intent won't activate more transition routes. However, when the followed
  6912  // transition route moves the conversation session into a different flow, the
  6913  // matched intent can be carried over and to be consumed in the target flow.
  6914  type GoogleCloudDialogflowCxV3beta1Flow struct {
  6915  	// AdvancedSettings: Hierarchical advanced settings for this flow. The settings
  6916  	// exposed at the lower level overrides the settings exposed at the higher
  6917  	// level.
  6918  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  6919  	// Description: The description of the flow. The maximum length is 500
  6920  	// characters. If exceeded, the request is rejected.
  6921  	Description string `json:"description,omitempty"`
  6922  	// DisplayName: Required. The human-readable name of the flow.
  6923  	DisplayName string `json:"displayName,omitempty"`
  6924  	// EventHandlers: A flow's event handlers serve two purposes: * They are
  6925  	// responsible for handling events (e.g. no match, webhook errors) in the flow.
  6926  	// * They are inherited by every page's event handlers, which can be used to
  6927  	// handle common events regardless of the current page. Event handlers defined
  6928  	// in the page have higher priority than those defined in the flow. Unlike
  6929  	// transition_routes, these handlers are evaluated on a first-match basis. The
  6930  	// first one that matches the event get executed, with the rest being ignored.
  6931  	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
  6932  	// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.
  6933  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  6934  	// MultiLanguageSettings: Optional. Multi-lingual agent settings for this flow.
  6935  	MultiLanguageSettings *GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings `json:"multiLanguageSettings,omitempty"`
  6936  	// Name: The unique identifier of the flow. Format:
  6937  	// `projects//locations//agents//flows/`.
  6938  	Name string `json:"name,omitempty"`
  6939  	// NluSettings: NLU related settings of the flow.
  6940  	NluSettings *GoogleCloudDialogflowCxV3beta1NluSettings `json:"nluSettings,omitempty"`
  6941  	// TransitionRouteGroups: A flow's transition route group serve two purposes: *
  6942  	// They are responsible for matching the user's first utterances in the flow. *
  6943  	// They are inherited by every page's transition route groups. Transition route
  6944  	// groups defined in the page have higher priority than those defined in the
  6945  	// flow. Format:`projects//locations//agents//flows//transitionRouteGroups/` or
  6946  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
  6947  	// groups.
  6948  	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
  6949  	// TransitionRoutes: A flow's transition routes serve two purposes: * They are
  6950  	// responsible for matching the user's first utterances in the flow. * They are
  6951  	// inherited by every page's transition routes and can support use cases such
  6952  	// as the user saying "help" or "can I talk to a human?", which can be handled
  6953  	// in a common way regardless of the current page. Transition routes defined in
  6954  	// the page have higher priority than those defined in the flow.
  6955  	// TransitionRoutes are evalauted in the following order: * TransitionRoutes
  6956  	// with intent specified. * TransitionRoutes with only condition specified.
  6957  	// TransitionRoutes with intent specified are inherited by pages in the flow.
  6958  	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
  6959  
  6960  	// ServerResponse contains the HTTP response code and headers from the server.
  6961  	googleapi.ServerResponse `json:"-"`
  6962  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  6963  	// unconditionally include in API requests. By default, fields with empty or
  6964  	// default values are omitted from API requests. See
  6965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6966  	// details.
  6967  	ForceSendFields []string `json:"-"`
  6968  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  6969  	// API requests with the JSON null value. By default, fields with empty values
  6970  	// are omitted from API requests. See
  6971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6972  	NullFields []string `json:"-"`
  6973  }
  6974  
  6975  func (s *GoogleCloudDialogflowCxV3beta1Flow) MarshalJSON() ([]byte, error) {
  6976  	type NoMethod GoogleCloudDialogflowCxV3beta1Flow
  6977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6978  }
  6979  
  6980  // GoogleCloudDialogflowCxV3beta1FlowImportStrategy: The flow import strategy
  6981  // used for resource conflict resolution associated with an ImportFlowRequest.
  6982  type GoogleCloudDialogflowCxV3beta1FlowImportStrategy struct {
  6983  	// GlobalImportStrategy: Optional. Global flow import strategy for resource
  6984  	// conflict resolution. The import Import strategy for resource conflict
  6985  	// resolution, applied globally throughout the flow. It will be applied for all
  6986  	// display name conflicts in the imported content. If not specified,
  6987  	// 'CREATE_NEW' is assumed.
  6988  	//
  6989  	// Possible values:
  6990  	//   "IMPORT_STRATEGY_UNSPECIFIED" - Unspecified. Treated as 'CREATE_NEW'.
  6991  	//   "IMPORT_STRATEGY_CREATE_NEW" - Create a new resource with a numeric suffix
  6992  	// appended to the end of the existing display name.
  6993  	//   "IMPORT_STRATEGY_REPLACE" - Replace existing resource with incoming
  6994  	// resource in the content to be imported.
  6995  	//   "IMPORT_STRATEGY_KEEP" - Keep existing resource and discard incoming
  6996  	// resource in the content to be imported.
  6997  	//   "IMPORT_STRATEGY_MERGE" - Combine existing and incoming resources when a
  6998  	// conflict is encountered.
  6999  	//   "IMPORT_STRATEGY_THROW_ERROR" - Throw error if a conflict is encountered.
  7000  	GlobalImportStrategy string `json:"globalImportStrategy,omitempty"`
  7001  	// ForceSendFields is a list of field names (e.g. "GlobalImportStrategy") to
  7002  	// unconditionally include in API requests. By default, fields with empty or
  7003  	// default values are omitted from API requests. See
  7004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7005  	// details.
  7006  	ForceSendFields []string `json:"-"`
  7007  	// NullFields is a list of field names (e.g. "GlobalImportStrategy") to include
  7008  	// in API requests with the JSON null value. By default, fields with empty
  7009  	// values are omitted from API requests. See
  7010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7011  	NullFields []string `json:"-"`
  7012  }
  7013  
  7014  func (s *GoogleCloudDialogflowCxV3beta1FlowImportStrategy) MarshalJSON() ([]byte, error) {
  7015  	type NoMethod GoogleCloudDialogflowCxV3beta1FlowImportStrategy
  7016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7017  }
  7018  
  7019  // GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings: Settings for
  7020  // multi-lingual agents.
  7021  type GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings struct {
  7022  	// EnableMultiLanguageDetection: Optional. Enable multi-language detection for
  7023  	// this flow. This can be set only if agent level multi language setting is
  7024  	// enabled.
  7025  	EnableMultiLanguageDetection bool `json:"enableMultiLanguageDetection,omitempty"`
  7026  	// SupportedResponseLanguageCodes: Optional. Agent will respond in the detected
  7027  	// language if the detected language code is in the supported resolved
  7028  	// languages for this flow. This will be used only if multi-language training
  7029  	// is enabled in the agent and multi-language detection is enabled in the flow.
  7030  	// The supported languages must be a subset of the languages supported by the
  7031  	// agent.
  7032  	SupportedResponseLanguageCodes []string `json:"supportedResponseLanguageCodes,omitempty"`
  7033  	// ForceSendFields is a list of field names (e.g.
  7034  	// "EnableMultiLanguageDetection") to unconditionally include in API requests.
  7035  	// By default, fields with empty or default values are omitted from API
  7036  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  7037  	// for more details.
  7038  	ForceSendFields []string `json:"-"`
  7039  	// NullFields is a list of field names (e.g. "EnableMultiLanguageDetection") to
  7040  	// include in API requests with the JSON null value. By default, fields with
  7041  	// empty values are omitted from API requests. See
  7042  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7043  	NullFields []string `json:"-"`
  7044  }
  7045  
  7046  func (s *GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings) MarshalJSON() ([]byte, error) {
  7047  	type NoMethod GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings
  7048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7049  }
  7050  
  7051  // GoogleCloudDialogflowCxV3beta1FlowValidationResult: The response message for
  7052  // Flows.GetFlowValidationResult.
  7053  type GoogleCloudDialogflowCxV3beta1FlowValidationResult struct {
  7054  	// Name: The unique identifier of the flow validation result. Format:
  7055  	// `projects//locations//agents//flows//validationResult`.
  7056  	Name string `json:"name,omitempty"`
  7057  	// UpdateTime: Last time the flow was validated.
  7058  	UpdateTime string `json:"updateTime,omitempty"`
  7059  	// ValidationMessages: Contains all validation messages.
  7060  	ValidationMessages []*GoogleCloudDialogflowCxV3beta1ValidationMessage `json:"validationMessages,omitempty"`
  7061  
  7062  	// ServerResponse contains the HTTP response code and headers from the server.
  7063  	googleapi.ServerResponse `json:"-"`
  7064  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  7065  	// include in API requests. By default, fields with empty or default values are
  7066  	// omitted from API requests. See
  7067  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7068  	// details.
  7069  	ForceSendFields []string `json:"-"`
  7070  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  7071  	// with the JSON null value. By default, fields with empty values are omitted
  7072  	// from API requests. See
  7073  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7074  	NullFields []string `json:"-"`
  7075  }
  7076  
  7077  func (s *GoogleCloudDialogflowCxV3beta1FlowValidationResult) MarshalJSON() ([]byte, error) {
  7078  	type NoMethod GoogleCloudDialogflowCxV3beta1FlowValidationResult
  7079  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7080  }
  7081  
  7082  // GoogleCloudDialogflowCxV3beta1Form: A form is a data model that groups
  7083  // related parameters that can be collected from the user. The process in which
  7084  // the agent prompts the user and collects parameter values from the user is
  7085  // called form filling. A form can be added to a page. When form filling is
  7086  // done, the filled parameters will be written to the session.
  7087  type GoogleCloudDialogflowCxV3beta1Form struct {
  7088  	// Parameters: Parameters to collect from the user.
  7089  	Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
  7090  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  7091  	// unconditionally include in API requests. By default, fields with empty or
  7092  	// default values are omitted from API requests. See
  7093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7094  	// details.
  7095  	ForceSendFields []string `json:"-"`
  7096  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  7097  	// requests with the JSON null value. By default, fields with empty values are
  7098  	// omitted from API requests. See
  7099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7100  	NullFields []string `json:"-"`
  7101  }
  7102  
  7103  func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
  7104  	type NoMethod GoogleCloudDialogflowCxV3beta1Form
  7105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7106  }
  7107  
  7108  // GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form parameter.
  7109  type GoogleCloudDialogflowCxV3beta1FormParameter struct {
  7110  	// AdvancedSettings: Hierarchical advanced settings for this parameter. The
  7111  	// settings exposed at the lower level overrides the settings exposed at the
  7112  	// higher level.
  7113  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  7114  	// DefaultValue: The default value of an optional parameter. If the parameter
  7115  	// is required, the default value will be ignored.
  7116  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  7117  	// DisplayName: Required. The human-readable name of the parameter, unique
  7118  	// within the form.
  7119  	DisplayName string `json:"displayName,omitempty"`
  7120  	// EntityType: Required. The entity type of the parameter. Format:
  7121  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  7122  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  7123  	// `projects//locations//agents//entityTypes/` for developer entity types.
  7124  	EntityType string `json:"entityType,omitempty"`
  7125  	// FillBehavior: Required. Defines fill behavior for the parameter.
  7126  	FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
  7127  	// IsList: Indicates whether the parameter represents a list of values.
  7128  	IsList bool `json:"isList,omitempty"`
  7129  	// Redact: Indicates whether the parameter content should be redacted in log.
  7130  	// If redaction is enabled, the parameter content will be replaced by parameter
  7131  	// name during logging. Note: the parameter content is subject to redaction if
  7132  	// either parameter level redaction or entity type level redaction is enabled.
  7133  	Redact bool `json:"redact,omitempty"`
  7134  	// Required: Indicates whether the parameter is required. Optional parameters
  7135  	// will not trigger prompts; however, they are filled if the user specifies
  7136  	// them. Required parameters must be filled before form filling concludes.
  7137  	Required bool `json:"required,omitempty"`
  7138  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  7139  	// unconditionally include in API requests. By default, fields with empty or
  7140  	// default values are omitted from API requests. See
  7141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7142  	// details.
  7143  	ForceSendFields []string `json:"-"`
  7144  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  7145  	// API requests with the JSON null value. By default, fields with empty values
  7146  	// are omitted from API requests. See
  7147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7148  	NullFields []string `json:"-"`
  7149  }
  7150  
  7151  func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
  7152  	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
  7153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7154  }
  7155  
  7156  // GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior: Configuration for
  7157  // how the filling of a parameter should be handled.
  7158  type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
  7159  	// InitialPromptFulfillment: Required. The fulfillment to provide the initial
  7160  	// prompt that the agent can present to the user in order to fill the
  7161  	// parameter.
  7162  	InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
  7163  	// RepromptEventHandlers: The handlers for parameter-level events, used to
  7164  	// provide reprompt for the parameter or transition to a different page/flow.
  7165  	// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *
  7166  	// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *
  7167  	// `sys.no-input-default` * `sys.invalid-parameter`
  7168  	// `initial_prompt_fulfillment` provides the first prompt for the parameter. If
  7169  	// the user's response does not fill the parameter, a no-match/no-input event
  7170  	// will be triggered, and the fulfillment associated with the
  7171  	// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to
  7172  	// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)
  7173  	// will respond to the next no-match/no-input event, and so on. A
  7174  	// `sys.no-match-default` or `sys.no-input-default` handler will be used to
  7175  	// handle all following no-match/no-input events after all numbered
  7176  	// no-match/no-input handlers for the parameter are consumed. A
  7177  	// `sys.invalid-parameter` handler can be defined to handle the case where the
  7178  	// parameter values have been `invalidated` by webhook. For example, if the
  7179  	// user's response fill the parameter, however the parameter was invalidated by
  7180  	// webhook, the fulfillment associated with the `sys.invalid-parameter` handler
  7181  	// (if defined) will be called to provide a prompt. If the event handler for
  7182  	// the corresponding event can't be found on the parameter,
  7183  	// `initial_prompt_fulfillment` will be re-prompted.
  7184  	RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
  7185  	// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")
  7186  	// to unconditionally include in API requests. By default, fields with empty or
  7187  	// default values are omitted from API requests. See
  7188  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7189  	// details.
  7190  	ForceSendFields []string `json:"-"`
  7191  	// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to
  7192  	// include in API requests with the JSON null value. By default, fields with
  7193  	// empty values are omitted from API requests. See
  7194  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7195  	NullFields []string `json:"-"`
  7196  }
  7197  
  7198  func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
  7199  	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
  7200  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7201  }
  7202  
  7203  // GoogleCloudDialogflowCxV3beta1FulfillIntentRequest: Request of FulfillIntent
  7204  type GoogleCloudDialogflowCxV3beta1FulfillIntentRequest struct {
  7205  	// Match: The matched intent/event to fulfill.
  7206  	Match *GoogleCloudDialogflowCxV3beta1Match `json:"match,omitempty"`
  7207  	// MatchIntentRequest: Must be same as the corresponding MatchIntent request,
  7208  	// otherwise the behavior is undefined.
  7209  	MatchIntentRequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest `json:"matchIntentRequest,omitempty"`
  7210  	// OutputAudioConfig: Instructs the speech synthesizer how to generate output
  7211  	// audio.
  7212  	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
  7213  	// ForceSendFields is a list of field names (e.g. "Match") to unconditionally
  7214  	// include in API requests. By default, fields with empty or default values are
  7215  	// omitted from API requests. See
  7216  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7217  	// details.
  7218  	ForceSendFields []string `json:"-"`
  7219  	// NullFields is a list of field names (e.g. "Match") to include in API
  7220  	// requests with the JSON null value. By default, fields with empty values are
  7221  	// omitted from API requests. See
  7222  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7223  	NullFields []string `json:"-"`
  7224  }
  7225  
  7226  func (s *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) MarshalJSON() ([]byte, error) {
  7227  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
  7228  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7229  }
  7230  
  7231  // GoogleCloudDialogflowCxV3beta1FulfillIntentResponse: Response of
  7232  // FulfillIntent
  7233  type GoogleCloudDialogflowCxV3beta1FulfillIntentResponse struct {
  7234  	// OutputAudio: The audio data bytes encoded as specified in the request. Note:
  7235  	// The output audio is generated based on the values of default platform text
  7236  	// responses found in the `query_result.response_messages` field. If multiple
  7237  	// default text responses exist, they will be concatenated when generating
  7238  	// audio. If no default platform text responses exist, the generated audio
  7239  	// content will be empty. In some scenarios, multiple output audio fields may
  7240  	// be present in the response structure. In these cases, only the
  7241  	// top-most-level audio output has content.
  7242  	OutputAudio string `json:"outputAudio,omitempty"`
  7243  	// OutputAudioConfig: The config used by the speech synthesizer to generate the
  7244  	// output audio.
  7245  	OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
  7246  	// QueryResult: The result of the conversational query.
  7247  	QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
  7248  	// ResponseId: Output only. The unique identifier of the response. It can be
  7249  	// used to locate a response in the training example set or for reporting
  7250  	// issues.
  7251  	ResponseId string `json:"responseId,omitempty"`
  7252  
  7253  	// ServerResponse contains the HTTP response code and headers from the server.
  7254  	googleapi.ServerResponse `json:"-"`
  7255  	// ForceSendFields is a list of field names (e.g. "OutputAudio") to
  7256  	// unconditionally include in API requests. By default, fields with empty or
  7257  	// default values are omitted from API requests. See
  7258  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7259  	// details.
  7260  	ForceSendFields []string `json:"-"`
  7261  	// NullFields is a list of field names (e.g. "OutputAudio") to include in API
  7262  	// requests with the JSON null value. By default, fields with empty values are
  7263  	// omitted from API requests. See
  7264  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7265  	NullFields []string `json:"-"`
  7266  }
  7267  
  7268  func (s *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse) MarshalJSON() ([]byte, error) {
  7269  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
  7270  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7271  }
  7272  
  7273  // GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one or more
  7274  // of the following actions at the same time: * Generate rich message
  7275  // responses. * Set parameter values. * Call the webhook. Fulfillments can be
  7276  // called at various stages in the Page or Form lifecycle. For example, when a
  7277  // DetectIntentRequest drives a session to enter a new page, the page's entry
  7278  // fulfillment can add a static response to the QueryResult in the returning
  7279  // DetectIntentResponse, call the webhook (for example, to load user data from
  7280  // a database), or both.
  7281  type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
  7282  	// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The
  7283  	// settings exposed at the lower level overrides the settings exposed at the
  7284  	// higher level.
  7285  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  7286  	// ConditionalCases: Conditional cases for this fulfillment.
  7287  	ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
  7288  	// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to
  7289  	// generate a text response. If LLM generation fails, the defined responses in
  7290  	// the fulfillment will be respected. This flag is only useful for fulfillments
  7291  	// associated with no-match event handlers.
  7292  	EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
  7293  	// Messages: The list of rich message responses to present to the user.
  7294  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
  7295  	// ReturnPartialResponses: Whether Dialogflow should return currently queued
  7296  	// fulfillment response messages in streaming APIs. If a webhook is specified,
  7297  	// it happens before Dialogflow invokes webhook. Warning: 1) This flag only
  7298  	// affects streaming API. Responses are still queued and returned once in
  7299  	// non-streaming API. 2) The flag can be enabled in any fulfillment but only
  7300  	// the first 3 partial responses will be returned. You may only want to apply
  7301  	// it to fulfillments that have slow webhooks.
  7302  	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
  7303  	// SetParameterActions: Set parameter values before executing the webhook.
  7304  	SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
  7305  	// Tag: The value of this field will be populated in the WebhookRequest
  7306  	// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
  7307  	// called. The tag is typically used by the webhook service to identify which
  7308  	// fulfillment is being called, but it could be used for other purposes. This
  7309  	// field is required if `webhook` is specified.
  7310  	Tag string `json:"tag,omitempty"`
  7311  	// Webhook: The webhook to call. Format:
  7312  	// `projects//locations//agents//webhooks/`.
  7313  	Webhook string `json:"webhook,omitempty"`
  7314  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  7315  	// unconditionally include in API requests. By default, fields with empty or
  7316  	// default values are omitted from API requests. See
  7317  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7318  	// details.
  7319  	ForceSendFields []string `json:"-"`
  7320  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  7321  	// API requests with the JSON null value. By default, fields with empty values
  7322  	// are omitted from API requests. See
  7323  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7324  	NullFields []string `json:"-"`
  7325  }
  7326  
  7327  func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
  7328  	type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
  7329  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7330  }
  7331  
  7332  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list of
  7333  // cascading if-else conditions. Cases are mutually exclusive. The first one
  7334  // with a matching condition is selected, all the rest ignored.
  7335  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
  7336  	// Cases: A list of cascading if-else conditions.
  7337  	Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
  7338  	// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally
  7339  	// include in API requests. By default, fields with empty or default values are
  7340  	// omitted from API requests. See
  7341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7342  	// details.
  7343  	ForceSendFields []string `json:"-"`
  7344  	// NullFields is a list of field names (e.g. "Cases") to include in API
  7345  	// requests with the JSON null value. By default, fields with empty values are
  7346  	// omitted from API requests. See
  7347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7348  	NullFields []string `json:"-"`
  7349  }
  7350  
  7351  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
  7352  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
  7353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7354  }
  7355  
  7356  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each case has
  7357  // a Boolean condition. When it is evaluated to be True, the corresponding
  7358  // messages will be selected and evaluated recursively.
  7359  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
  7360  	// CaseContent: A list of case content.
  7361  	CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
  7362  	// Condition: The condition to activate and select this case. Empty means the
  7363  	// condition is always true. The condition is evaluated against form parameters
  7364  	// or session parameters. See the conditions reference
  7365  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  7366  	Condition string `json:"condition,omitempty"`
  7367  	// ForceSendFields is a list of field names (e.g. "CaseContent") to
  7368  	// unconditionally include in API requests. By default, fields with empty or
  7369  	// default values are omitted from API requests. See
  7370  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7371  	// details.
  7372  	ForceSendFields []string `json:"-"`
  7373  	// NullFields is a list of field names (e.g. "CaseContent") to include in API
  7374  	// requests with the JSON null value. By default, fields with empty values are
  7375  	// omitted from API requests. See
  7376  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7377  	NullFields []string `json:"-"`
  7378  }
  7379  
  7380  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
  7381  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
  7382  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7383  }
  7384  
  7385  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent:
  7386  // The list of messages or conditional cases to activate for this case.
  7387  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
  7388  	// AdditionalCases: Additional cases to be evaluated.
  7389  	AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
  7390  	// Message: Returned message.
  7391  	Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
  7392  	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
  7393  	// unconditionally include in API requests. By default, fields with empty or
  7394  	// default values are omitted from API requests. See
  7395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7396  	// details.
  7397  	ForceSendFields []string `json:"-"`
  7398  	// NullFields is a list of field names (e.g. "AdditionalCases") to include in
  7399  	// API requests with the JSON null value. By default, fields with empty values
  7400  	// are omitted from API requests. See
  7401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7402  	NullFields []string `json:"-"`
  7403  }
  7404  
  7405  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
  7406  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
  7407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7408  }
  7409  
  7410  // GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting a
  7411  // parameter value.
  7412  type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
  7413  	// Parameter: Display name of the parameter.
  7414  	Parameter string `json:"parameter,omitempty"`
  7415  	// Value: The new value of the parameter. A null value clears the parameter.
  7416  	Value interface{} `json:"value,omitempty"`
  7417  	// ForceSendFields is a list of field names (e.g. "Parameter") to
  7418  	// unconditionally include in API requests. By default, fields with empty or
  7419  	// default values are omitted from API requests. See
  7420  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7421  	// details.
  7422  	ForceSendFields []string `json:"-"`
  7423  	// NullFields is a list of field names (e.g. "Parameter") to include in API
  7424  	// requests with the JSON null value. By default, fields with empty values are
  7425  	// omitted from API requests. See
  7426  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7427  	NullFields []string `json:"-"`
  7428  }
  7429  
  7430  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
  7431  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
  7432  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7433  }
  7434  
  7435  // GoogleCloudDialogflowCxV3beta1GcsDestination: Google Cloud Storage location
  7436  // for a Dialogflow operation that writes or exports objects (e.g. exported
  7437  // agent or transcripts) outside of Dialogflow.
  7438  type GoogleCloudDialogflowCxV3beta1GcsDestination struct {
  7439  	// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI
  7440  	// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object
  7441  	// name, or just a prefix, its usage depends on the Dialogflow operation.
  7442  	Uri string `json:"uri,omitempty"`
  7443  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  7444  	// include in API requests. By default, fields with empty or default values are
  7445  	// omitted from API requests. See
  7446  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7447  	// details.
  7448  	ForceSendFields []string `json:"-"`
  7449  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  7450  	// with the JSON null value. By default, fields with empty values are omitted
  7451  	// from API requests. See
  7452  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7453  	NullFields []string `json:"-"`
  7454  }
  7455  
  7456  func (s *GoogleCloudDialogflowCxV3beta1GcsDestination) MarshalJSON() ([]byte, error) {
  7457  	type NoMethod GoogleCloudDialogflowCxV3beta1GcsDestination
  7458  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7459  }
  7460  
  7461  // GoogleCloudDialogflowCxV3beta1GenerativeSettings: Settings for Generative
  7462  // AI.
  7463  type GoogleCloudDialogflowCxV3beta1GenerativeSettings struct {
  7464  	// FallbackSettings: Settings for Generative Fallback.
  7465  	FallbackSettings *GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings `json:"fallbackSettings,omitempty"`
  7466  	// GenerativeSafetySettings: Settings for Generative Safety.
  7467  	GenerativeSafetySettings *GoogleCloudDialogflowCxV3beta1SafetySettings `json:"generativeSafetySettings,omitempty"`
  7468  	// KnowledgeConnectorSettings: Settings for knowledge connector.
  7469  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  7470  	// LanguageCode: Language for this settings.
  7471  	LanguageCode string `json:"languageCode,omitempty"`
  7472  	// Name: Format: `projects//locations//agents//generativeSettings`.
  7473  	Name string `json:"name,omitempty"`
  7474  
  7475  	// ServerResponse contains the HTTP response code and headers from the server.
  7476  	googleapi.ServerResponse `json:"-"`
  7477  	// ForceSendFields is a list of field names (e.g. "FallbackSettings") to
  7478  	// unconditionally include in API requests. By default, fields with empty or
  7479  	// default values are omitted from API requests. See
  7480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7481  	// details.
  7482  	ForceSendFields []string `json:"-"`
  7483  	// NullFields is a list of field names (e.g. "FallbackSettings") to include in
  7484  	// API requests with the JSON null value. By default, fields with empty values
  7485  	// are omitted from API requests. See
  7486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7487  	NullFields []string `json:"-"`
  7488  }
  7489  
  7490  func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettings) MarshalJSON() ([]byte, error) {
  7491  	type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettings
  7492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7493  }
  7494  
  7495  // GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings: Settings
  7496  // for Generative Fallback.
  7497  type GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings struct {
  7498  	// PromptTemplates: Stored prompts that can be selected, for example default
  7499  	// templates like "conservative" or "chatty", or user defined ones.
  7500  	PromptTemplates []*GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate `json:"promptTemplates,omitempty"`
  7501  	// SelectedPrompt: Display name of the selected prompt.
  7502  	SelectedPrompt string `json:"selectedPrompt,omitempty"`
  7503  	// ForceSendFields is a list of field names (e.g. "PromptTemplates") to
  7504  	// unconditionally include in API requests. By default, fields with empty or
  7505  	// default values are omitted from API requests. See
  7506  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7507  	// details.
  7508  	ForceSendFields []string `json:"-"`
  7509  	// NullFields is a list of field names (e.g. "PromptTemplates") to include in
  7510  	// API requests with the JSON null value. By default, fields with empty values
  7511  	// are omitted from API requests. See
  7512  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7513  	NullFields []string `json:"-"`
  7514  }
  7515  
  7516  func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings) MarshalJSON() ([]byte, error) {
  7517  	type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
  7518  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7519  }
  7520  
  7521  // GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplat
  7522  // e: Prompt template.
  7523  type GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate struct {
  7524  	// DisplayName: Prompt name.
  7525  	DisplayName string `json:"displayName,omitempty"`
  7526  	// Frozen: If the flag is true, the prompt is frozen and cannot be modified by
  7527  	// users.
  7528  	Frozen bool `json:"frozen,omitempty"`
  7529  	// PromptText: Prompt text that is sent to a LLM on no-match default,
  7530  	// placeholders are filled downstream. For example: "Here is a conversation
  7531  	// $conversation, a response is: "
  7532  	PromptText string `json:"promptText,omitempty"`
  7533  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  7534  	// unconditionally include in API requests. By default, fields with empty or
  7535  	// default values are omitted from API requests. See
  7536  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7537  	// details.
  7538  	ForceSendFields []string `json:"-"`
  7539  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  7540  	// requests with the JSON null value. By default, fields with empty values are
  7541  	// omitted from API requests. See
  7542  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7543  	NullFields []string `json:"-"`
  7544  }
  7545  
  7546  func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate) MarshalJSON() ([]byte, error) {
  7547  	type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate
  7548  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7549  }
  7550  
  7551  // GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings:
  7552  // Settings for knowledge connector. These parameters are used for LLM prompt
  7553  // like "You are . You are a helpful and verbose at , . Your task is to help
  7554  // humans on ".
  7555  type GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings struct {
  7556  	// Agent: Name of the virtual agent. Used for LLM prompt. Can be left empty.
  7557  	Agent string `json:"agent,omitempty"`
  7558  	// AgentIdentity: Identity of the agent, e.g. "virtual agent", "AI assistant".
  7559  	AgentIdentity string `json:"agentIdentity,omitempty"`
  7560  	// AgentScope: Agent scope, e.g. "Example company website", "internal Example
  7561  	// company website for employees", "manual of car owner".
  7562  	AgentScope string `json:"agentScope,omitempty"`
  7563  	// Business: Name of the company, organization or other entity that the agent
  7564  	// represents. Used for knowledge connector LLM prompt and for knowledge
  7565  	// search.
  7566  	Business string `json:"business,omitempty"`
  7567  	// BusinessDescription: Company description, used for LLM prompt, e.g. "a
  7568  	// family company selling freshly roasted coffee beans".
  7569  	BusinessDescription string `json:"businessDescription,omitempty"`
  7570  	// DisableDataStoreFallback: Whether to disable fallback to Data Store search
  7571  	// results (in case the LLM couldn't pick a proper answer). Per default the
  7572  	// feature is enabled.
  7573  	DisableDataStoreFallback bool `json:"disableDataStoreFallback,omitempty"`
  7574  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
  7575  	// include in API requests. By default, fields with empty or default values are
  7576  	// omitted from API requests. See
  7577  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7578  	// details.
  7579  	ForceSendFields []string `json:"-"`
  7580  	// NullFields is a list of field names (e.g. "Agent") to include in API
  7581  	// requests with the JSON null value. By default, fields with empty values are
  7582  	// omitted from API requests. See
  7583  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7584  	NullFields []string `json:"-"`
  7585  }
  7586  
  7587  func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
  7588  	type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings
  7589  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7590  }
  7591  
  7592  // GoogleCloudDialogflowCxV3beta1Generator: Generators contain prompt to be
  7593  // sent to the LLM model to generate text. The prompt can contain parameters
  7594  // which will be resolved before calling the model. It can optionally contain
  7595  // banned phrases to ensure the model responses are safe.
  7596  type GoogleCloudDialogflowCxV3beta1Generator struct {
  7597  	// DisplayName: Required. The human-readable name of the generator, unique
  7598  	// within the agent. The prompt contains pre-defined parameters such as
  7599  	// $conversation, $last-user-utterance, etc. populated by Dialogflow. It can
  7600  	// also contain custom placeholders which will be resolved during fulfillment.
  7601  	DisplayName string `json:"displayName,omitempty"`
  7602  	// Name: The unique identifier of the generator. Must be set for the
  7603  	// Generators.UpdateGenerator method. Generators.CreateGenerate populates the
  7604  	// name automatically. Format: `projects//locations//agents//generators/`.
  7605  	Name string `json:"name,omitempty"`
  7606  	// Placeholders: Optional. List of custom placeholders in the prompt text.
  7607  	Placeholders []*GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder `json:"placeholders,omitempty"`
  7608  	// PromptText: Required. Prompt for the LLM model.
  7609  	PromptText *GoogleCloudDialogflowCxV3beta1Phrase `json:"promptText,omitempty"`
  7610  
  7611  	// ServerResponse contains the HTTP response code and headers from the server.
  7612  	googleapi.ServerResponse `json:"-"`
  7613  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  7614  	// unconditionally include in API requests. By default, fields with empty or
  7615  	// default values are omitted from API requests. See
  7616  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7617  	// details.
  7618  	ForceSendFields []string `json:"-"`
  7619  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  7620  	// requests with the JSON null value. By default, fields with empty values are
  7621  	// omitted from API requests. See
  7622  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7623  	NullFields []string `json:"-"`
  7624  }
  7625  
  7626  func (s *GoogleCloudDialogflowCxV3beta1Generator) MarshalJSON() ([]byte, error) {
  7627  	type NoMethod GoogleCloudDialogflowCxV3beta1Generator
  7628  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7629  }
  7630  
  7631  // GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder: Represents a custom
  7632  // placeholder in the prompt text.
  7633  type GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder struct {
  7634  	// Id: Unique ID used to map custom placeholder to parameters in fulfillment.
  7635  	Id string `json:"id,omitempty"`
  7636  	// Name: Custom placeholder value in the prompt text.
  7637  	Name string `json:"name,omitempty"`
  7638  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  7639  	// include in API requests. By default, fields with empty or default values are
  7640  	// omitted from API requests. See
  7641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7642  	// details.
  7643  	ForceSendFields []string `json:"-"`
  7644  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  7645  	// with the JSON null value. By default, fields with empty values are omitted
  7646  	// from API requests. See
  7647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7648  	NullFields []string `json:"-"`
  7649  }
  7650  
  7651  func (s *GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder) MarshalJSON() ([]byte, error) {
  7652  	type NoMethod GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder
  7653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7654  }
  7655  
  7656  // GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata: Metadata in
  7657  // google::longrunning::Operation for Knowledge operations.
  7658  type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
  7659  	// State: Required. Output only. The current state of this operation.
  7660  	//
  7661  	// Possible values:
  7662  	//   "STATE_UNSPECIFIED" - State unspecified.
  7663  	//   "PENDING" - The operation has been created.
  7664  	//   "RUNNING" - The operation is currently running.
  7665  	//   "DONE" - The operation is done, either cancelled or completed.
  7666  	State string `json:"state,omitempty"`
  7667  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  7668  	// include in API requests. By default, fields with empty or default values are
  7669  	// omitted from API requests. See
  7670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7671  	// details.
  7672  	ForceSendFields []string `json:"-"`
  7673  	// NullFields is a list of field names (e.g. "State") to include in API
  7674  	// requests with the JSON null value. By default, fields with empty values are
  7675  	// omitted from API requests. See
  7676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7677  	NullFields []string `json:"-"`
  7678  }
  7679  
  7680  func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
  7681  	type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
  7682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7683  }
  7684  
  7685  // GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata: Metadata for
  7686  // ImportDocuments operation.
  7687  type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
  7688  	// GenericMetadata: The generic information of the operation.
  7689  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  7690  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  7691  	// unconditionally include in API requests. By default, fields with empty or
  7692  	// default values are omitted from API requests. See
  7693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7694  	// details.
  7695  	ForceSendFields []string `json:"-"`
  7696  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  7697  	// API requests with the JSON null value. By default, fields with empty values
  7698  	// are omitted from API requests. See
  7699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7700  	NullFields []string `json:"-"`
  7701  }
  7702  
  7703  func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
  7704  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
  7705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7706  }
  7707  
  7708  // GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse: Response message for
  7709  // Documents.ImportDocuments.
  7710  type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
  7711  	// Warnings: Includes details about skipped documents or any other warnings.
  7712  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
  7713  	// ForceSendFields is a list of field names (e.g. "Warnings") to
  7714  	// unconditionally include in API requests. By default, fields with empty or
  7715  	// default values are omitted from API requests. See
  7716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7717  	// details.
  7718  	ForceSendFields []string `json:"-"`
  7719  	// NullFields is a list of field names (e.g. "Warnings") to include in API
  7720  	// requests with the JSON null value. By default, fields with empty values are
  7721  	// omitted from API requests. See
  7722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7723  	NullFields []string `json:"-"`
  7724  }
  7725  
  7726  func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  7727  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
  7728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7729  }
  7730  
  7731  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata returned
  7732  // for the EntityTypes.ImportEntityTypes long running operation.
  7733  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {
  7734  }
  7735  
  7736  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest: The request message
  7737  // for EntityTypes.ImportEntityTypes.
  7738  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest struct {
  7739  	// EntityTypesContent: Uncompressed byte content of entity types.
  7740  	EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineSource `json:"entityTypesContent,omitempty"`
  7741  	// EntityTypesUri: The Google Cloud Storage
  7742  	// (https://cloud.google.com/storage/docs/) URI to import entity types from.
  7743  	// The format of this URI must be `gs:///`. Dialogflow performs a read
  7744  	// operation for the Cloud Storage object on the caller's behalf, so your
  7745  	// request authentication must have read permissions for the object. For more
  7746  	// information, see Dialogflow access control
  7747  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  7748  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  7749  	// MergeOption: Required. Merge option for importing entity types.
  7750  	//
  7751  	// Possible values:
  7752  	//   "MERGE_OPTION_UNSPECIFIED" - Unspecified. If used, system uses
  7753  	// REPORT_CONFLICT as default.
  7754  	//   "REPLACE" - Replace the original entity type in the agent with the new
  7755  	// entity type when display name conflicts exist.
  7756  	//   "MERGE" - Merge the original entity type with the new entity type when
  7757  	// display name conflicts exist.
  7758  	//   "RENAME" - Create new entity types with new display names to differentiate
  7759  	// them from the existing entity types when display name conflicts exist.
  7760  	//   "REPORT_CONFLICT" - Report conflict information if display names conflict
  7761  	// is detected. Otherwise, import entity types.
  7762  	//   "KEEP" - Keep the original entity type and discard the conflicting new
  7763  	// entity type when display name conflicts exist.
  7764  	MergeOption string `json:"mergeOption,omitempty"`
  7765  	// TargetEntityType: Optional. The target entity type to import into. Format:
  7766  	// `projects//locations//agents//entity_types/`. If set, there should be only
  7767  	// one entity type included in entity_types, of which the type should match the
  7768  	// type of the target entity type. All entities in the imported entity type
  7769  	// will be added to the target entity type.
  7770  	TargetEntityType string `json:"targetEntityType,omitempty"`
  7771  	// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to
  7772  	// unconditionally include in API requests. By default, fields with empty or
  7773  	// default values are omitted from API requests. See
  7774  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7775  	// details.
  7776  	ForceSendFields []string `json:"-"`
  7777  	// NullFields is a list of field names (e.g. "EntityTypesContent") to include
  7778  	// in API requests with the JSON null value. By default, fields with empty
  7779  	// values are omitted from API requests. See
  7780  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7781  	NullFields []string `json:"-"`
  7782  }
  7783  
  7784  func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest) MarshalJSON() ([]byte, error) {
  7785  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest
  7786  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7787  }
  7788  
  7789  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The response
  7790  // message for EntityTypes.ImportEntityTypes.
  7791  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {
  7792  	// ConflictingResources: Info which resources have conflicts when
  7793  	// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.
  7794  	ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
  7795  	// EntityTypes: The unique identifier of the imported entity types. Format:
  7796  	// `projects//locations//agents//entity_types/`.
  7797  	EntityTypes []string `json:"entityTypes,omitempty"`
  7798  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  7799  	// unconditionally include in API requests. By default, fields with empty or
  7800  	// default values are omitted from API requests. See
  7801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7802  	// details.
  7803  	ForceSendFields []string `json:"-"`
  7804  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  7805  	// in API requests with the JSON null value. By default, fields with empty
  7806  	// values are omitted from API requests. See
  7807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7808  	NullFields []string `json:"-"`
  7809  }
  7810  
  7811  func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  7812  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse
  7813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7814  }
  7815  
  7816  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources:
  7817  // Conflicting resources detected during the import process. Only filled when
  7818  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  7819  // names.
  7820  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {
  7821  	// EntityDisplayNames: Display names of conflicting entities.
  7822  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  7823  	// EntityTypeDisplayNames: Display names of conflicting entity types.
  7824  	EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
  7825  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  7826  	// unconditionally include in API requests. By default, fields with empty or
  7827  	// default values are omitted from API requests. See
  7828  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7829  	// details.
  7830  	ForceSendFields []string `json:"-"`
  7831  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  7832  	// in API requests with the JSON null value. By default, fields with empty
  7833  	// values are omitted from API requests. See
  7834  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7835  	NullFields []string `json:"-"`
  7836  }
  7837  
  7838  func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
  7839  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources
  7840  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7841  }
  7842  
  7843  // GoogleCloudDialogflowCxV3beta1ImportFlowRequest: The request message for
  7844  // Flows.ImportFlow.
  7845  type GoogleCloudDialogflowCxV3beta1ImportFlowRequest struct {
  7846  	// FlowContent: Uncompressed raw byte content for flow.
  7847  	FlowContent string `json:"flowContent,omitempty"`
  7848  	// FlowImportStrategy: Optional. Specifies the import strategy used when
  7849  	// resolving resource conflicts.
  7850  	FlowImportStrategy *GoogleCloudDialogflowCxV3beta1FlowImportStrategy `json:"flowImportStrategy,omitempty"`
  7851  	// FlowUri: The Google Cloud Storage (https://cloud.google.com/storage/docs/)
  7852  	// URI to import flow from. The format of this URI must be `gs:///`. Dialogflow
  7853  	// performs a read operation for the Cloud Storage object on the caller's
  7854  	// behalf, so your request authentication must have read permissions for the
  7855  	// object. For more information, see Dialogflow access control
  7856  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  7857  	FlowUri string `json:"flowUri,omitempty"`
  7858  	// ImportOption: Flow import mode. If not specified, `KEEP` is assumed.
  7859  	//
  7860  	// Possible values:
  7861  	//   "IMPORT_OPTION_UNSPECIFIED" - Unspecified. Treated as `KEEP`.
  7862  	//   "KEEP" - Always respect settings in exported flow content. It may cause a
  7863  	// import failure if some settings (e.g. custom NLU) are not supported in the
  7864  	// agent to import into.
  7865  	//   "FALLBACK" - Fallback to default settings if some settings are not
  7866  	// supported in the agent to import into. E.g. Standard NLU will be used if
  7867  	// custom NLU is not available.
  7868  	ImportOption string `json:"importOption,omitempty"`
  7869  	// ForceSendFields is a list of field names (e.g. "FlowContent") to
  7870  	// unconditionally include in API requests. By default, fields with empty or
  7871  	// default values are omitted from API requests. See
  7872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7873  	// details.
  7874  	ForceSendFields []string `json:"-"`
  7875  	// NullFields is a list of field names (e.g. "FlowContent") to include in API
  7876  	// requests with the JSON null value. By default, fields with empty values are
  7877  	// omitted from API requests. See
  7878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7879  	NullFields []string `json:"-"`
  7880  }
  7881  
  7882  func (s *GoogleCloudDialogflowCxV3beta1ImportFlowRequest) MarshalJSON() ([]byte, error) {
  7883  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowRequest
  7884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7885  }
  7886  
  7887  // GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response message for
  7888  // Flows.ImportFlow.
  7889  type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
  7890  	// Flow: The unique identifier of the new flow. Format:
  7891  	// `projects//locations//agents//flows/`.
  7892  	Flow string `json:"flow,omitempty"`
  7893  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  7894  	// include in API requests. By default, fields with empty or default values are
  7895  	// omitted from API requests. See
  7896  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7897  	// details.
  7898  	ForceSendFields []string `json:"-"`
  7899  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  7900  	// with the JSON null value. By default, fields with empty values are omitted
  7901  	// from API requests. See
  7902  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7903  	NullFields []string `json:"-"`
  7904  }
  7905  
  7906  func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
  7907  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
  7908  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7909  }
  7910  
  7911  // GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata: Metadata returned for
  7912  // the Intents.ImportIntents long running operation.
  7913  type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {
  7914  }
  7915  
  7916  // GoogleCloudDialogflowCxV3beta1ImportIntentsRequest: The request message for
  7917  // Intents.ImportIntents.
  7918  type GoogleCloudDialogflowCxV3beta1ImportIntentsRequest struct {
  7919  	// IntentsContent: Uncompressed byte content of intents.
  7920  	IntentsContent *GoogleCloudDialogflowCxV3beta1InlineSource `json:"intentsContent,omitempty"`
  7921  	// IntentsUri: The Google Cloud Storage
  7922  	// (https://cloud.google.com/storage/docs/) URI to import intents from. The
  7923  	// format of this URI must be `gs:///`. Dialogflow performs a read operation
  7924  	// for the Cloud Storage object on the caller's behalf, so your request
  7925  	// authentication must have read permissions for the object. For more
  7926  	// information, see Dialogflow access control
  7927  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  7928  	IntentsUri string `json:"intentsUri,omitempty"`
  7929  	// MergeOption: Merge option for importing intents. If not specified, `REJECT`
  7930  	// is assumed.
  7931  	//
  7932  	// Possible values:
  7933  	//   "MERGE_OPTION_UNSPECIFIED" - Unspecified. Should not be used.
  7934  	//   "REJECT" - DEPRECATED: Please use REPORT_CONFLICT instead. Fail the
  7935  	// request if there are intents whose display names conflict with the display
  7936  	// names of intents in the agent.
  7937  	//   "REPLACE" - Replace the original intent in the agent with the new intent
  7938  	// when display name conflicts exist.
  7939  	//   "MERGE" - Merge the original intent with the new intent when display name
  7940  	// conflicts exist.
  7941  	//   "RENAME" - Create new intents with new display names to differentiate them
  7942  	// from the existing intents when display name conflicts exist.
  7943  	//   "REPORT_CONFLICT" - Report conflict information if display names conflict
  7944  	// is detected. Otherwise, import intents.
  7945  	//   "KEEP" - Keep the original intent and discard the conflicting new intent
  7946  	// when display name conflicts exist.
  7947  	MergeOption string `json:"mergeOption,omitempty"`
  7948  	// ForceSendFields is a list of field names (e.g. "IntentsContent") to
  7949  	// unconditionally include in API requests. By default, fields with empty or
  7950  	// default values are omitted from API requests. See
  7951  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7952  	// details.
  7953  	ForceSendFields []string `json:"-"`
  7954  	// NullFields is a list of field names (e.g. "IntentsContent") to include in
  7955  	// API requests with the JSON null value. By default, fields with empty values
  7956  	// are omitted from API requests. See
  7957  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7958  	NullFields []string `json:"-"`
  7959  }
  7960  
  7961  func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsRequest) MarshalJSON() ([]byte, error) {
  7962  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsRequest
  7963  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7964  }
  7965  
  7966  // GoogleCloudDialogflowCxV3beta1ImportIntentsResponse: The response message
  7967  // for Intents.ImportIntents.
  7968  type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {
  7969  	// ConflictingResources: Info which resources have conflicts when
  7970  	// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.
  7971  	ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
  7972  	// Intents: The unique identifier of the imported intents. Format:
  7973  	// `projects//locations//agents//intents/`.
  7974  	Intents []string `json:"intents,omitempty"`
  7975  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  7976  	// unconditionally include in API requests. By default, fields with empty or
  7977  	// default values are omitted from API requests. See
  7978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7979  	// details.
  7980  	ForceSendFields []string `json:"-"`
  7981  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  7982  	// in API requests with the JSON null value. By default, fields with empty
  7983  	// values are omitted from API requests. See
  7984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7985  	NullFields []string `json:"-"`
  7986  }
  7987  
  7988  func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponse) MarshalJSON() ([]byte, error) {
  7989  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
  7990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7991  }
  7992  
  7993  // GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources:
  7994  // Conflicting resources detected during the import process. Only filled when
  7995  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  7996  // names.
  7997  type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {
  7998  	// EntityDisplayNames: Display names of conflicting entities.
  7999  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  8000  	// IntentDisplayNames: Display names of conflicting intents.
  8001  	IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
  8002  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  8003  	// unconditionally include in API requests. By default, fields with empty or
  8004  	// default values are omitted from API requests. See
  8005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8006  	// details.
  8007  	ForceSendFields []string `json:"-"`
  8008  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  8009  	// in API requests with the JSON null value. By default, fields with empty
  8010  	// values are omitted from API requests. See
  8011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8012  	NullFields []string `json:"-"`
  8013  }
  8014  
  8015  func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
  8016  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
  8017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8018  }
  8019  
  8020  // GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata returned for
  8021  // the TestCases.ImportTestCases long running operation.
  8022  type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
  8023  	// Errors: Errors for failed test cases.
  8024  	Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
  8025  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  8026  	// include in API requests. By default, fields with empty or default values are
  8027  	// omitted from API requests. See
  8028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8029  	// details.
  8030  	ForceSendFields []string `json:"-"`
  8031  	// NullFields is a list of field names (e.g. "Errors") to include in API
  8032  	// requests with the JSON null value. By default, fields with empty values are
  8033  	// omitted from API requests. See
  8034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8035  	NullFields []string `json:"-"`
  8036  }
  8037  
  8038  func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
  8039  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
  8040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8041  }
  8042  
  8043  // GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest: The request message
  8044  // for TestCases.ImportTestCases.
  8045  type GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest struct {
  8046  	// Content: Uncompressed raw byte content for test cases.
  8047  	Content string `json:"content,omitempty"`
  8048  	// GcsUri: The Google Cloud Storage (https://cloud.google.com/storage/docs/)
  8049  	// URI to import test cases from. The format of this URI must be `gs:///`.
  8050  	// Dialogflow performs a read operation for the Cloud Storage object on the
  8051  	// caller's behalf, so your request authentication must have read permissions
  8052  	// for the object. For more information, see Dialogflow access control
  8053  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
  8054  	GcsUri string `json:"gcsUri,omitempty"`
  8055  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  8056  	// include in API requests. By default, fields with empty or default values are
  8057  	// omitted from API requests. See
  8058  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8059  	// details.
  8060  	ForceSendFields []string `json:"-"`
  8061  	// NullFields is a list of field names (e.g. "Content") to include in API
  8062  	// requests with the JSON null value. By default, fields with empty values are
  8063  	// omitted from API requests. See
  8064  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8065  	NullFields []string `json:"-"`
  8066  }
  8067  
  8068  func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest) MarshalJSON() ([]byte, error) {
  8069  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest
  8070  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8071  }
  8072  
  8073  // GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse: The response message
  8074  // for TestCases.ImportTestCases.
  8075  type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
  8076  	// Names: The unique identifiers of the new test cases. Format:
  8077  	// `projects//locations//agents//testCases/`.
  8078  	Names []string `json:"names,omitempty"`
  8079  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
  8080  	// include in API requests. By default, fields with empty or default values are
  8081  	// omitted from API requests. See
  8082  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8083  	// details.
  8084  	ForceSendFields []string `json:"-"`
  8085  	// NullFields is a list of field names (e.g. "Names") to include in API
  8086  	// requests with the JSON null value. By default, fields with empty values are
  8087  	// omitted from API requests. See
  8088  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8089  	NullFields []string `json:"-"`
  8090  }
  8091  
  8092  func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
  8093  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
  8094  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8095  }
  8096  
  8097  // GoogleCloudDialogflowCxV3beta1InlineDestination: Inline destination for a
  8098  // Dialogflow operation that writes or exports objects (e.g. intents) outside
  8099  // of Dialogflow.
  8100  type GoogleCloudDialogflowCxV3beta1InlineDestination struct {
  8101  	// Content: Output only. The uncompressed byte content for the objects. Only
  8102  	// populated in responses.
  8103  	Content string `json:"content,omitempty"`
  8104  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  8105  	// include in API requests. By default, fields with empty or default values are
  8106  	// omitted from API requests. See
  8107  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8108  	// details.
  8109  	ForceSendFields []string `json:"-"`
  8110  	// NullFields is a list of field names (e.g. "Content") to include in API
  8111  	// requests with the JSON null value. By default, fields with empty values are
  8112  	// omitted from API requests. See
  8113  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8114  	NullFields []string `json:"-"`
  8115  }
  8116  
  8117  func (s *GoogleCloudDialogflowCxV3beta1InlineDestination) MarshalJSON() ([]byte, error) {
  8118  	type NoMethod GoogleCloudDialogflowCxV3beta1InlineDestination
  8119  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8120  }
  8121  
  8122  // GoogleCloudDialogflowCxV3beta1InlineSource: Inline source for a Dialogflow
  8123  // operation that reads or imports objects (e.g. intents) into Dialogflow.
  8124  type GoogleCloudDialogflowCxV3beta1InlineSource struct {
  8125  	// Content: The uncompressed byte content for the objects.
  8126  	Content string `json:"content,omitempty"`
  8127  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  8128  	// include in API requests. By default, fields with empty or default values are
  8129  	// omitted from API requests. See
  8130  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8131  	// details.
  8132  	ForceSendFields []string `json:"-"`
  8133  	// NullFields is a list of field names (e.g. "Content") to include in API
  8134  	// requests with the JSON null value. By default, fields with empty values are
  8135  	// omitted from API requests. See
  8136  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8137  	NullFields []string `json:"-"`
  8138  }
  8139  
  8140  func (s *GoogleCloudDialogflowCxV3beta1InlineSource) MarshalJSON() ([]byte, error) {
  8141  	type NoMethod GoogleCloudDialogflowCxV3beta1InlineSource
  8142  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8143  }
  8144  
  8145  // GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speech
  8146  // recognizer on how to process the audio content.
  8147  type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
  8148  	// AudioEncoding: Required. Audio encoding of the audio content to process.
  8149  	//
  8150  	// Possible values:
  8151  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
  8152  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
  8153  	// samples (Linear PCM).
  8154  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
  8155  	// (Free Lossless Audio Codec) is the recommended encoding because it is
  8156  	// lossless (therefore recognition is not compromised) and requires only about
  8157  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
  8158  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
  8159  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
  8160  	// using G.711 PCMU/mu-law.
  8161  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
  8162  	// `sample_rate_hertz` must be 8000.
  8163  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
  8164  	// `sample_rate_hertz` must be 16000.
  8165  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
  8166  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
  8167  	// 16000.
  8168  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
  8169  	// encodings is not recommended, if a very low bitrate encoding is required,
  8170  	// `OGG_OPUS` is highly preferred over Speex encoding. The
  8171  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
  8172  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
  8173  	// It is a variant of the RTP Speex encoding defined in [RFC
  8174  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
  8175  	// blocks, one block per RTP packet. Each block starts with a byte containing
  8176  	// the length of the block, in bytes, followed by one or more frames of Speex
  8177  	// data, padded to an integral number of bytes (octets) as specified in RFC
  8178  	// 5574. In other words, each RTP header is replaced with a single byte
  8179  	// containing the block length. Only Speex wideband is supported.
  8180  	// `sample_rate_hertz` must be 16000.
  8181  	AudioEncoding string `json:"audioEncoding,omitempty"`
  8182  	// BargeInConfig: Configuration of barge-in behavior during the streaming of
  8183  	// input audio.
  8184  	BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`
  8185  	// EnableWordInfo: Optional. If `true`, Dialogflow returns SpeechWordInfo in
  8186  	// StreamingRecognitionResult with information about the recognized speech
  8187  	// words, e.g. start and end time offsets. If false or unspecified, Speech
  8188  	// doesn't return any word-level information.
  8189  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
  8190  	// Model: Optional. Which Speech model to select for the given request. For
  8191  	// more information, see Speech models
  8192  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  8193  	Model string `json:"model,omitempty"`
  8194  	// ModelVariant: Optional. Which variant of the Speech model to use.
  8195  	//
  8196  	// Possible values:
  8197  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
  8198  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
  8199  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
  8200  	// that the caller is eligible for.
  8201  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
  8202  	// available. See the [Cloud Speech
  8203  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  8204  	// for details about enhanced models.
  8205  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
  8206  	// does not exist for the given model and request language, Dialogflow falls
  8207  	// back to the standard variant. The [Cloud Speech
  8208  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  8209  	// describes which models have enhanced variants.
  8210  	ModelVariant string `json:"modelVariant,omitempty"`
  8211  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
  8212  	// conformer model migration. This field will be deprecated once force
  8213  	// migration takes place in June 2024. Please refer to Dialogflow CX Speech
  8214  	// model migration
  8215  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
  8216  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
  8217  	// PhraseHints: Optional. A list of strings containing words and phrases that
  8218  	// the speech recognizer should recognize with higher likelihood. See the Cloud
  8219  	// Speech documentation
  8220  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
  8221  	// details.
  8222  	PhraseHints []string `json:"phraseHints,omitempty"`
  8223  	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in the
  8224  	// query. Refer to Cloud Speech API documentation
  8225  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
  8226  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
  8227  	// SingleUtterance: Optional. If `false` (default), recognition does not cease
  8228  	// until the client closes the stream. If `true`, the recognizer will detect a
  8229  	// single spoken utterance in input audio. Recognition ceases when it detects
  8230  	// the audio's voice has stopped or paused. In this case, once a detected
  8231  	// intent is received, the client should close the stream and start a new
  8232  	// request with a new stream as needed. Note: This setting is relevant only for
  8233  	// streaming methods.
  8234  	SingleUtterance bool `json:"singleUtterance,omitempty"`
  8235  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
  8236  	// unconditionally include in API requests. By default, fields with empty or
  8237  	// default values are omitted from API requests. See
  8238  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8239  	// details.
  8240  	ForceSendFields []string `json:"-"`
  8241  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
  8242  	// requests with the JSON null value. By default, fields with empty values are
  8243  	// omitted from API requests. See
  8244  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8245  	NullFields []string `json:"-"`
  8246  }
  8247  
  8248  func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
  8249  	type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
  8250  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8251  }
  8252  
  8253  // GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's intent
  8254  // to interact with a conversational agent. You can provide information for the
  8255  // Dialogflow API to use to match user input to an intent by adding training
  8256  // phrases (i.e., examples of user input) to your intent.
  8257  type GoogleCloudDialogflowCxV3beta1Intent struct {
  8258  	// Description: Human readable description for better understanding an intent
  8259  	// like its scope, content, result etc. Maximum character limit: 140
  8260  	// characters.
  8261  	Description string `json:"description,omitempty"`
  8262  	// DisplayName: Required. The human-readable name of the intent, unique within
  8263  	// the agent.
  8264  	DisplayName string `json:"displayName,omitempty"`
  8265  	// IsFallback: Indicates whether this is a fallback intent. Currently only
  8266  	// default fallback intent is allowed in the agent, which is added upon agent
  8267  	// creation. Adding training phrases to fallback intent is useful in the case
  8268  	// of requests that are mistakenly matched, since training phrases assigned to
  8269  	// fallback intents act as negative examples that triggers no-match event.
  8270  	IsFallback bool `json:"isFallback,omitempty"`
  8271  	// Labels: The key/value metadata to label an intent. Labels can contain
  8272  	// lowercase letters, digits and the symbols '-' and '_'. International
  8273  	// characters are allowed, including letters from unicase alphabets. Keys must
  8274  	// start with a letter. Keys and values can be no longer than 63 characters and
  8275  	// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
  8276  	// labels. Currently allowed Dialogflow defined labels include: * sys-head *
  8277  	// sys-contextual The above labels do not require value. "sys-head" means the
  8278  	// intent is a head intent. "sys-contextual" means the intent is a contextual
  8279  	// intent.
  8280  	Labels map[string]string `json:"labels,omitempty"`
  8281  	// Name: The unique identifier of the intent. Required for the
  8282  	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
  8283  	// automatically. Format: `projects//locations//agents//intents/`.
  8284  	Name string `json:"name,omitempty"`
  8285  	// Parameters: The collection of parameters associated with the intent.
  8286  	Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
  8287  	// Priority: The priority of this intent. Higher numbers represent higher
  8288  	// priorities. - If the supplied value is unspecified or 0, the service
  8289  	// translates the value to 500,000, which corresponds to the `Normal` priority
  8290  	// in the console. - If the supplied value is negative, the intent is ignored
  8291  	// in runtime detect intent requests.
  8292  	Priority int64 `json:"priority,omitempty"`
  8293  	// TrainingPhrases: The collection of training phrases the agent is trained on
  8294  	// to identify the intent.
  8295  	TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
  8296  
  8297  	// ServerResponse contains the HTTP response code and headers from the server.
  8298  	googleapi.ServerResponse `json:"-"`
  8299  	// ForceSendFields is a list of field names (e.g. "Description") to
  8300  	// unconditionally include in API requests. By default, fields with empty or
  8301  	// default values are omitted from API requests. See
  8302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8303  	// details.
  8304  	ForceSendFields []string `json:"-"`
  8305  	// NullFields is a list of field names (e.g. "Description") to include in API
  8306  	// requests with the JSON null value. By default, fields with empty values are
  8307  	// omitted from API requests. See
  8308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8309  	NullFields []string `json:"-"`
  8310  }
  8311  
  8312  func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
  8313  	type NoMethod GoogleCloudDialogflowCxV3beta1Intent
  8314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8315  }
  8316  
  8317  // GoogleCloudDialogflowCxV3beta1IntentCoverage: Intent coverage represents the
  8318  // percentage of all possible intents in the agent that are triggered in any of
  8319  // a parent's test cases.
  8320  type GoogleCloudDialogflowCxV3beta1IntentCoverage struct {
  8321  	// CoverageScore: The percent of intents in the agent that are covered.
  8322  	CoverageScore float64 `json:"coverageScore,omitempty"`
  8323  	// Intents: The list of Intents present in the agent
  8324  	Intents []*GoogleCloudDialogflowCxV3beta1IntentCoverageIntent `json:"intents,omitempty"`
  8325  	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
  8326  	// unconditionally include in API requests. By default, fields with empty or
  8327  	// default values are omitted from API requests. See
  8328  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8329  	// details.
  8330  	ForceSendFields []string `json:"-"`
  8331  	// NullFields is a list of field names (e.g. "CoverageScore") to include in API
  8332  	// requests with the JSON null value. By default, fields with empty values are
  8333  	// omitted from API requests. See
  8334  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8335  	NullFields []string `json:"-"`
  8336  }
  8337  
  8338  func (s *GoogleCloudDialogflowCxV3beta1IntentCoverage) MarshalJSON() ([]byte, error) {
  8339  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverage
  8340  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8341  }
  8342  
  8343  func (s *GoogleCloudDialogflowCxV3beta1IntentCoverage) UnmarshalJSON(data []byte) error {
  8344  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverage
  8345  	var s1 struct {
  8346  		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
  8347  		*NoMethod
  8348  	}
  8349  	s1.NoMethod = (*NoMethod)(s)
  8350  	if err := json.Unmarshal(data, &s1); err != nil {
  8351  		return err
  8352  	}
  8353  	s.CoverageScore = float64(s1.CoverageScore)
  8354  	return nil
  8355  }
  8356  
  8357  // GoogleCloudDialogflowCxV3beta1IntentCoverageIntent: The agent's intent.
  8358  type GoogleCloudDialogflowCxV3beta1IntentCoverageIntent struct {
  8359  	// Covered: Whether the intent is covered by at least one of the agent's test
  8360  	// cases.
  8361  	Covered bool `json:"covered,omitempty"`
  8362  	// Intent: The intent full resource name
  8363  	Intent string `json:"intent,omitempty"`
  8364  	// ForceSendFields is a list of field names (e.g. "Covered") to unconditionally
  8365  	// include in API requests. By default, fields with empty or default values are
  8366  	// omitted from API requests. See
  8367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8368  	// details.
  8369  	ForceSendFields []string `json:"-"`
  8370  	// NullFields is a list of field names (e.g. "Covered") to include in API
  8371  	// requests with the JSON null value. By default, fields with empty values are
  8372  	// omitted from API requests. See
  8373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8374  	NullFields []string `json:"-"`
  8375  }
  8376  
  8377  func (s *GoogleCloudDialogflowCxV3beta1IntentCoverageIntent) MarshalJSON() ([]byte, error) {
  8378  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverageIntent
  8379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8380  }
  8381  
  8382  // GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to trigger
  8383  // programmatically rather than as a result of natural language processing.
  8384  type GoogleCloudDialogflowCxV3beta1IntentInput struct {
  8385  	// Intent: Required. The unique identifier of the intent. Format:
  8386  	// `projects//locations//agents//intents/`.
  8387  	Intent string `json:"intent,omitempty"`
  8388  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
  8389  	// include in API requests. By default, fields with empty or default values are
  8390  	// omitted from API requests. See
  8391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8392  	// details.
  8393  	ForceSendFields []string `json:"-"`
  8394  	// NullFields is a list of field names (e.g. "Intent") to include in API
  8395  	// requests with the JSON null value. By default, fields with empty values are
  8396  	// omitted from API requests. See
  8397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8398  	NullFields []string `json:"-"`
  8399  }
  8400  
  8401  func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
  8402  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
  8403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8404  }
  8405  
  8406  // GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intent
  8407  // parameter.
  8408  type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
  8409  	// EntityType: Required. The entity type of the parameter. Format:
  8410  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  8411  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  8412  	// `projects//locations//agents//entityTypes/` for developer entity types.
  8413  	EntityType string `json:"entityType,omitempty"`
  8414  	// Id: Required. The unique identifier of the parameter. This field is used by
  8415  	// training phrases to annotate their parts.
  8416  	Id string `json:"id,omitempty"`
  8417  	// IsList: Indicates whether the parameter represents a list of values.
  8418  	IsList bool `json:"isList,omitempty"`
  8419  	// Redact: Indicates whether the parameter content should be redacted in log.
  8420  	// If redaction is enabled, the parameter content will be replaced by parameter
  8421  	// name during logging. Note: the parameter content is subject to redaction if
  8422  	// either parameter level redaction or entity type level redaction is enabled.
  8423  	Redact bool `json:"redact,omitempty"`
  8424  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  8425  	// unconditionally include in API requests. By default, fields with empty or
  8426  	// default values are omitted from API requests. See
  8427  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8428  	// details.
  8429  	ForceSendFields []string `json:"-"`
  8430  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  8431  	// requests with the JSON null value. By default, fields with empty values are
  8432  	// omitted from API requests. See
  8433  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8434  	NullFields []string `json:"-"`
  8435  }
  8436  
  8437  func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
  8438  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
  8439  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8440  }
  8441  
  8442  // GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an example
  8443  // that the agent is trained on to identify the intent.
  8444  type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
  8445  	// Id: Output only. The unique identifier of the training phrase.
  8446  	Id string `json:"id,omitempty"`
  8447  	// Parts: Required. The ordered list of training phrase parts. The parts are
  8448  	// concatenated in order to form the training phrase. Note: The API does not
  8449  	// automatically annotate training phrases like the Dialogflow Console does.
  8450  	// Note: Do not forget to include whitespace at part boundaries, so the
  8451  	// training phrase is well formatted when the parts are concatenated. If the
  8452  	// training phrase does not need to be annotated with parameters, you just need
  8453  	// a single part with only the Part.text field set. If you want to annotate the
  8454  	// training phrase, you must create multiple parts, where the fields of each
  8455  	// part are populated in one of two ways: - `Part.text` is set to a part of the
  8456  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
  8457  	// that you want to annotate, and the `parameter_id` field is set.
  8458  	Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
  8459  	// RepeatCount: Indicates how many times this example was added to the intent.
  8460  	RepeatCount int64 `json:"repeatCount,omitempty"`
  8461  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  8462  	// include in API requests. By default, fields with empty or default values are
  8463  	// omitted from API requests. See
  8464  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8465  	// details.
  8466  	ForceSendFields []string `json:"-"`
  8467  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  8468  	// with the JSON null value. By default, fields with empty values are omitted
  8469  	// from API requests. See
  8470  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8471  	NullFields []string `json:"-"`
  8472  }
  8473  
  8474  func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
  8475  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
  8476  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8477  }
  8478  
  8479  // GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a part of
  8480  // a training phrase.
  8481  type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
  8482  	// ParameterId: The parameter used to annotate this part of the training
  8483  	// phrase. This field is required for annotated parts of the training phrase.
  8484  	ParameterId string `json:"parameterId,omitempty"`
  8485  	// Text: Required. The text for this part.
  8486  	Text string `json:"text,omitempty"`
  8487  	// ForceSendFields is a list of field names (e.g. "ParameterId") to
  8488  	// unconditionally include in API requests. By default, fields with empty or
  8489  	// default values are omitted from API requests. See
  8490  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8491  	// details.
  8492  	ForceSendFields []string `json:"-"`
  8493  	// NullFields is a list of field names (e.g. "ParameterId") to include in API
  8494  	// requests with the JSON null value. By default, fields with empty values are
  8495  	// omitted from API requests. See
  8496  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8497  	NullFields []string `json:"-"`
  8498  }
  8499  
  8500  func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
  8501  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
  8502  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8503  }
  8504  
  8505  // GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings: The Knowledge
  8506  // Connector settings for this page or flow. This includes information such as
  8507  // the attached Knowledge Bases, and the way to execute fulfillment.
  8508  type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {
  8509  	// DataStoreConnections: Optional. List of related data store connections.
  8510  	DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`
  8511  	// Enabled: Whether Knowledge Connector is enabled or not.
  8512  	Enabled bool `json:"enabled,omitempty"`
  8513  	// TargetFlow: The target flow to transition to. Format:
  8514  	// `projects//locations//agents//flows/`.
  8515  	TargetFlow string `json:"targetFlow,omitempty"`
  8516  	// TargetPage: The target page to transition to. Format:
  8517  	// `projects//locations//agents//flows//pages/`.
  8518  	TargetPage string `json:"targetPage,omitempty"`
  8519  	// TriggerFulfillment: The fulfillment to be triggered. When the answers from
  8520  	// the Knowledge Connector are selected by Dialogflow, you can utitlize the
  8521  	// request scoped parameter `$request.knowledge.answers` (contains up to the 5
  8522  	// highest confidence answers) and `$request.knowledge.questions` (contains the
  8523  	// corresponding questions) to construct the fulfillment.
  8524  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  8525  	// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to
  8526  	// unconditionally include in API requests. By default, fields with empty or
  8527  	// default values are omitted from API requests. See
  8528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8529  	// details.
  8530  	ForceSendFields []string `json:"-"`
  8531  	// NullFields is a list of field names (e.g. "DataStoreConnections") to include
  8532  	// in API requests with the JSON null value. By default, fields with empty
  8533  	// values are omitted from API requests. See
  8534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8535  	NullFields []string `json:"-"`
  8536  }
  8537  
  8538  func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
  8539  	type NoMethod GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings
  8540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8541  }
  8542  
  8543  // GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the language
  8544  // information of the request.
  8545  type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {
  8546  	// ConfidenceScore: The confidence score of the detected language between 0 and
  8547  	// 1.
  8548  	ConfidenceScore float64 `json:"confidenceScore,omitempty"`
  8549  	// InputLanguageCode: The language code specified in the original request.
  8550  	InputLanguageCode string `json:"inputLanguageCode,omitempty"`
  8551  	// ResolvedLanguageCode: The language code detected for this request based on
  8552  	// the user conversation.
  8553  	ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
  8554  	// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to
  8555  	// unconditionally include in API requests. By default, fields with empty or
  8556  	// default values are omitted from API requests. See
  8557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8558  	// details.
  8559  	ForceSendFields []string `json:"-"`
  8560  	// NullFields is a list of field names (e.g. "ConfidenceScore") to include in
  8561  	// API requests with the JSON null value. By default, fields with empty values
  8562  	// are omitted from API requests. See
  8563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8564  	NullFields []string `json:"-"`
  8565  }
  8566  
  8567  func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) {
  8568  	type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
  8569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8570  }
  8571  
  8572  func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error {
  8573  	type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
  8574  	var s1 struct {
  8575  		ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
  8576  		*NoMethod
  8577  	}
  8578  	s1.NoMethod = (*NoMethod)(s)
  8579  	if err := json.Unmarshal(data, &s1); err != nil {
  8580  		return err
  8581  	}
  8582  	s.ConfidenceScore = float64(s1.ConfidenceScore)
  8583  	return nil
  8584  }
  8585  
  8586  // GoogleCloudDialogflowCxV3beta1ListAgentsResponse: The response message for
  8587  // Agents.ListAgents.
  8588  type GoogleCloudDialogflowCxV3beta1ListAgentsResponse struct {
  8589  	// Agents: The list of agents. There will be a maximum number of items returned
  8590  	// based on the page_size field in the request.
  8591  	Agents []*GoogleCloudDialogflowCxV3beta1Agent `json:"agents,omitempty"`
  8592  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8593  	// are no more results in the list.
  8594  	NextPageToken string `json:"nextPageToken,omitempty"`
  8595  
  8596  	// ServerResponse contains the HTTP response code and headers from the server.
  8597  	googleapi.ServerResponse `json:"-"`
  8598  	// ForceSendFields is a list of field names (e.g. "Agents") to unconditionally
  8599  	// include in API requests. By default, fields with empty or default values are
  8600  	// omitted from API requests. See
  8601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8602  	// details.
  8603  	ForceSendFields []string `json:"-"`
  8604  	// NullFields is a list of field names (e.g. "Agents") to include in API
  8605  	// requests with the JSON null value. By default, fields with empty values are
  8606  	// omitted from API requests. See
  8607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8608  	NullFields []string `json:"-"`
  8609  }
  8610  
  8611  func (s *GoogleCloudDialogflowCxV3beta1ListAgentsResponse) MarshalJSON() ([]byte, error) {
  8612  	type NoMethod GoogleCloudDialogflowCxV3beta1ListAgentsResponse
  8613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8614  }
  8615  
  8616  // GoogleCloudDialogflowCxV3beta1ListChangelogsResponse: The response message
  8617  // for Changelogs.ListChangelogs.
  8618  type GoogleCloudDialogflowCxV3beta1ListChangelogsResponse struct {
  8619  	// Changelogs: The list of changelogs. There will be a maximum number of items
  8620  	// returned based on the page_size field in the request. The changelogs will be
  8621  	// ordered by timestamp.
  8622  	Changelogs []*GoogleCloudDialogflowCxV3beta1Changelog `json:"changelogs,omitempty"`
  8623  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8624  	// are no more results in the list.
  8625  	NextPageToken string `json:"nextPageToken,omitempty"`
  8626  
  8627  	// ServerResponse contains the HTTP response code and headers from the server.
  8628  	googleapi.ServerResponse `json:"-"`
  8629  	// ForceSendFields is a list of field names (e.g. "Changelogs") to
  8630  	// unconditionally include in API requests. By default, fields with empty or
  8631  	// default values are omitted from API requests. See
  8632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8633  	// details.
  8634  	ForceSendFields []string `json:"-"`
  8635  	// NullFields is a list of field names (e.g. "Changelogs") to include in API
  8636  	// requests with the JSON null value. By default, fields with empty values are
  8637  	// omitted from API requests. See
  8638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8639  	NullFields []string `json:"-"`
  8640  }
  8641  
  8642  func (s *GoogleCloudDialogflowCxV3beta1ListChangelogsResponse) MarshalJSON() ([]byte, error) {
  8643  	type NoMethod GoogleCloudDialogflowCxV3beta1ListChangelogsResponse
  8644  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8645  }
  8646  
  8647  // GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse: The
  8648  // response message for Environments.ListTestCaseResults.
  8649  type GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse struct {
  8650  	// ContinuousTestResults: The list of continuous test results.
  8651  	ContinuousTestResults []*GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResults,omitempty"`
  8652  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8653  	// are no more results in the list.
  8654  	NextPageToken string `json:"nextPageToken,omitempty"`
  8655  
  8656  	// ServerResponse contains the HTTP response code and headers from the server.
  8657  	googleapi.ServerResponse `json:"-"`
  8658  	// ForceSendFields is a list of field names (e.g. "ContinuousTestResults") to
  8659  	// unconditionally include in API requests. By default, fields with empty or
  8660  	// default values are omitted from API requests. See
  8661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8662  	// details.
  8663  	ForceSendFields []string `json:"-"`
  8664  	// NullFields is a list of field names (e.g. "ContinuousTestResults") to
  8665  	// include in API requests with the JSON null value. By default, fields with
  8666  	// empty values are omitted from API requests. See
  8667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8668  	NullFields []string `json:"-"`
  8669  }
  8670  
  8671  func (s *GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse) MarshalJSON() ([]byte, error) {
  8672  	type NoMethod GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse
  8673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8674  }
  8675  
  8676  // GoogleCloudDialogflowCxV3beta1ListConversationsResponse: The response
  8677  // message for Conversations.ListConversations.
  8678  type GoogleCloudDialogflowCxV3beta1ListConversationsResponse struct {
  8679  	// Conversations: The list of conversations. There will be a maximum number of
  8680  	// items returned based on the page_size field. The returned conversations will
  8681  	// be sorted by start_time in descending order (newest conversation first).
  8682  	Conversations []*GoogleCloudDialogflowCxV3beta1Conversation `json:"conversations,omitempty"`
  8683  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8684  	// are no more results in the list.
  8685  	NextPageToken string `json:"nextPageToken,omitempty"`
  8686  
  8687  	// ServerResponse contains the HTTP response code and headers from the server.
  8688  	googleapi.ServerResponse `json:"-"`
  8689  	// ForceSendFields is a list of field names (e.g. "Conversations") to
  8690  	// unconditionally include in API requests. By default, fields with empty or
  8691  	// default values are omitted from API requests. See
  8692  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8693  	// details.
  8694  	ForceSendFields []string `json:"-"`
  8695  	// NullFields is a list of field names (e.g. "Conversations") to include in API
  8696  	// requests with the JSON null value. By default, fields with empty values are
  8697  	// omitted from API requests. See
  8698  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8699  	NullFields []string `json:"-"`
  8700  }
  8701  
  8702  func (s *GoogleCloudDialogflowCxV3beta1ListConversationsResponse) MarshalJSON() ([]byte, error) {
  8703  	type NoMethod GoogleCloudDialogflowCxV3beta1ListConversationsResponse
  8704  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8705  }
  8706  
  8707  // GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse: The response message
  8708  // for Deployments.ListDeployments.
  8709  type GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse struct {
  8710  	// Deployments: The list of deployments. There will be a maximum number of
  8711  	// items returned based on the page_size field in the request. The list may in
  8712  	// some cases be empty or contain fewer entries than page_size even if this
  8713  	// isn't the last page.
  8714  	Deployments []*GoogleCloudDialogflowCxV3beta1Deployment `json:"deployments,omitempty"`
  8715  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8716  	// are no more results in the list.
  8717  	NextPageToken string `json:"nextPageToken,omitempty"`
  8718  
  8719  	// ServerResponse contains the HTTP response code and headers from the server.
  8720  	googleapi.ServerResponse `json:"-"`
  8721  	// ForceSendFields is a list of field names (e.g. "Deployments") to
  8722  	// unconditionally include in API requests. By default, fields with empty or
  8723  	// default values are omitted from API requests. See
  8724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8725  	// details.
  8726  	ForceSendFields []string `json:"-"`
  8727  	// NullFields is a list of field names (e.g. "Deployments") to include in API
  8728  	// requests with the JSON null value. By default, fields with empty values are
  8729  	// omitted from API requests. See
  8730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8731  	NullFields []string `json:"-"`
  8732  }
  8733  
  8734  func (s *GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
  8735  	type NoMethod GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse
  8736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8737  }
  8738  
  8739  // GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse: The response message
  8740  // for EntityTypes.ListEntityTypes.
  8741  type GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse struct {
  8742  	// EntityTypes: The list of entity types. There will be a maximum number of
  8743  	// items returned based on the page_size field in the request.
  8744  	EntityTypes []*GoogleCloudDialogflowCxV3beta1EntityType `json:"entityTypes,omitempty"`
  8745  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8746  	// are no more results in the list.
  8747  	NextPageToken string `json:"nextPageToken,omitempty"`
  8748  
  8749  	// ServerResponse contains the HTTP response code and headers from the server.
  8750  	googleapi.ServerResponse `json:"-"`
  8751  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
  8752  	// unconditionally include in API requests. By default, fields with empty or
  8753  	// default values are omitted from API requests. See
  8754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8755  	// details.
  8756  	ForceSendFields []string `json:"-"`
  8757  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
  8758  	// requests with the JSON null value. By default, fields with empty values are
  8759  	// omitted from API requests. See
  8760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8761  	NullFields []string `json:"-"`
  8762  }
  8763  
  8764  func (s *GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
  8765  	type NoMethod GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse
  8766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8767  }
  8768  
  8769  // GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse: The response message
  8770  // for Environments.ListEnvironments.
  8771  type GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse struct {
  8772  	// Environments: The list of environments. There will be a maximum number of
  8773  	// items returned based on the page_size field in the request. The list may in
  8774  	// some cases be empty or contain fewer entries than page_size even if this
  8775  	// isn't the last page.
  8776  	Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
  8777  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8778  	// are no more results in the list.
  8779  	NextPageToken string `json:"nextPageToken,omitempty"`
  8780  
  8781  	// ServerResponse contains the HTTP response code and headers from the server.
  8782  	googleapi.ServerResponse `json:"-"`
  8783  	// ForceSendFields is a list of field names (e.g. "Environments") to
  8784  	// unconditionally include in API requests. By default, fields with empty or
  8785  	// default values are omitted from API requests. See
  8786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8787  	// details.
  8788  	ForceSendFields []string `json:"-"`
  8789  	// NullFields is a list of field names (e.g. "Environments") to include in API
  8790  	// requests with the JSON null value. By default, fields with empty values are
  8791  	// omitted from API requests. See
  8792  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8793  	NullFields []string `json:"-"`
  8794  }
  8795  
  8796  func (s *GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
  8797  	type NoMethod GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse
  8798  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8799  }
  8800  
  8801  // GoogleCloudDialogflowCxV3beta1ListExperimentsResponse: The response message
  8802  // for Experiments.ListExperiments.
  8803  type GoogleCloudDialogflowCxV3beta1ListExperimentsResponse struct {
  8804  	// Experiments: The list of experiments. There will be a maximum number of
  8805  	// items returned based on the page_size field in the request. The list may in
  8806  	// some cases be empty or contain fewer entries than page_size even if this
  8807  	// isn't the last page.
  8808  	Experiments []*GoogleCloudDialogflowCxV3beta1Experiment `json:"experiments,omitempty"`
  8809  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8810  	// are no more results in the list.
  8811  	NextPageToken string `json:"nextPageToken,omitempty"`
  8812  
  8813  	// ServerResponse contains the HTTP response code and headers from the server.
  8814  	googleapi.ServerResponse `json:"-"`
  8815  	// ForceSendFields is a list of field names (e.g. "Experiments") to
  8816  	// unconditionally include in API requests. By default, fields with empty or
  8817  	// default values are omitted from API requests. See
  8818  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8819  	// details.
  8820  	ForceSendFields []string `json:"-"`
  8821  	// NullFields is a list of field names (e.g. "Experiments") to include in API
  8822  	// requests with the JSON null value. By default, fields with empty values are
  8823  	// omitted from API requests. See
  8824  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8825  	NullFields []string `json:"-"`
  8826  }
  8827  
  8828  func (s *GoogleCloudDialogflowCxV3beta1ListExperimentsResponse) MarshalJSON() ([]byte, error) {
  8829  	type NoMethod GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
  8830  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8831  }
  8832  
  8833  // GoogleCloudDialogflowCxV3beta1ListFlowsResponse: The response message for
  8834  // Flows.ListFlows.
  8835  type GoogleCloudDialogflowCxV3beta1ListFlowsResponse struct {
  8836  	// Flows: The list of flows. There will be a maximum number of items returned
  8837  	// based on the page_size field in the request.
  8838  	Flows []*GoogleCloudDialogflowCxV3beta1Flow `json:"flows,omitempty"`
  8839  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8840  	// are no more results in the list.
  8841  	NextPageToken string `json:"nextPageToken,omitempty"`
  8842  
  8843  	// ServerResponse contains the HTTP response code and headers from the server.
  8844  	googleapi.ServerResponse `json:"-"`
  8845  	// ForceSendFields is a list of field names (e.g. "Flows") to unconditionally
  8846  	// include in API requests. By default, fields with empty or default values are
  8847  	// omitted from API requests. See
  8848  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8849  	// details.
  8850  	ForceSendFields []string `json:"-"`
  8851  	// NullFields is a list of field names (e.g. "Flows") to include in API
  8852  	// requests with the JSON null value. By default, fields with empty values are
  8853  	// omitted from API requests. See
  8854  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8855  	NullFields []string `json:"-"`
  8856  }
  8857  
  8858  func (s *GoogleCloudDialogflowCxV3beta1ListFlowsResponse) MarshalJSON() ([]byte, error) {
  8859  	type NoMethod GoogleCloudDialogflowCxV3beta1ListFlowsResponse
  8860  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8861  }
  8862  
  8863  // GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse: The response message
  8864  // for Generators.ListGenerators.
  8865  type GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse struct {
  8866  	// Generators: The list of generators. There will be a maximum number of items
  8867  	// returned based on the page_size field in the request.
  8868  	Generators []*GoogleCloudDialogflowCxV3beta1Generator `json:"generators,omitempty"`
  8869  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8870  	// are no more results in the list.
  8871  	NextPageToken string `json:"nextPageToken,omitempty"`
  8872  
  8873  	// ServerResponse contains the HTTP response code and headers from the server.
  8874  	googleapi.ServerResponse `json:"-"`
  8875  	// ForceSendFields is a list of field names (e.g. "Generators") to
  8876  	// unconditionally include in API requests. By default, fields with empty or
  8877  	// default values are omitted from API requests. See
  8878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8879  	// details.
  8880  	ForceSendFields []string `json:"-"`
  8881  	// NullFields is a list of field names (e.g. "Generators") to include in API
  8882  	// requests with the JSON null value. By default, fields with empty values are
  8883  	// omitted from API requests. See
  8884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8885  	NullFields []string `json:"-"`
  8886  }
  8887  
  8888  func (s *GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse) MarshalJSON() ([]byte, error) {
  8889  	type NoMethod GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
  8890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8891  }
  8892  
  8893  // GoogleCloudDialogflowCxV3beta1ListIntentsResponse: The response message for
  8894  // Intents.ListIntents.
  8895  type GoogleCloudDialogflowCxV3beta1ListIntentsResponse struct {
  8896  	// Intents: The list of intents. There will be a maximum number of items
  8897  	// returned based on the page_size field in the request.
  8898  	Intents []*GoogleCloudDialogflowCxV3beta1Intent `json:"intents,omitempty"`
  8899  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8900  	// are no more results in the list.
  8901  	NextPageToken string `json:"nextPageToken,omitempty"`
  8902  
  8903  	// ServerResponse contains the HTTP response code and headers from the server.
  8904  	googleapi.ServerResponse `json:"-"`
  8905  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
  8906  	// include in API requests. By default, fields with empty or default values are
  8907  	// omitted from API requests. See
  8908  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8909  	// details.
  8910  	ForceSendFields []string `json:"-"`
  8911  	// NullFields is a list of field names (e.g. "Intents") to include in API
  8912  	// requests with the JSON null value. By default, fields with empty values are
  8913  	// omitted from API requests. See
  8914  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8915  	NullFields []string `json:"-"`
  8916  }
  8917  
  8918  func (s *GoogleCloudDialogflowCxV3beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
  8919  	type NoMethod GoogleCloudDialogflowCxV3beta1ListIntentsResponse
  8920  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8921  }
  8922  
  8923  // GoogleCloudDialogflowCxV3beta1ListPagesResponse: The response message for
  8924  // Pages.ListPages.
  8925  type GoogleCloudDialogflowCxV3beta1ListPagesResponse struct {
  8926  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8927  	// are no more results in the list.
  8928  	NextPageToken string `json:"nextPageToken,omitempty"`
  8929  	// Pages: The list of pages. There will be a maximum number of items returned
  8930  	// based on the page_size field in the request.
  8931  	Pages []*GoogleCloudDialogflowCxV3beta1Page `json:"pages,omitempty"`
  8932  
  8933  	// ServerResponse contains the HTTP response code and headers from the server.
  8934  	googleapi.ServerResponse `json:"-"`
  8935  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  8936  	// unconditionally include in API requests. By default, fields with empty or
  8937  	// default values are omitted from API requests. See
  8938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8939  	// details.
  8940  	ForceSendFields []string `json:"-"`
  8941  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  8942  	// requests with the JSON null value. By default, fields with empty values are
  8943  	// omitted from API requests. See
  8944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8945  	NullFields []string `json:"-"`
  8946  }
  8947  
  8948  func (s *GoogleCloudDialogflowCxV3beta1ListPagesResponse) MarshalJSON() ([]byte, error) {
  8949  	type NoMethod GoogleCloudDialogflowCxV3beta1ListPagesResponse
  8950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8951  }
  8952  
  8953  // GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse: The response
  8954  // message for SecuritySettings.ListSecuritySettings.
  8955  type GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse struct {
  8956  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8957  	// are no more results in the list.
  8958  	NextPageToken string `json:"nextPageToken,omitempty"`
  8959  	// SecuritySettings: The list of security settings.
  8960  	SecuritySettings []*GoogleCloudDialogflowCxV3beta1SecuritySettings `json:"securitySettings,omitempty"`
  8961  
  8962  	// ServerResponse contains the HTTP response code and headers from the server.
  8963  	googleapi.ServerResponse `json:"-"`
  8964  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  8965  	// unconditionally include in API requests. By default, fields with empty or
  8966  	// default values are omitted from API requests. See
  8967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8968  	// details.
  8969  	ForceSendFields []string `json:"-"`
  8970  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  8971  	// requests with the JSON null value. By default, fields with empty values are
  8972  	// omitted from API requests. See
  8973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8974  	NullFields []string `json:"-"`
  8975  }
  8976  
  8977  func (s *GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse) MarshalJSON() ([]byte, error) {
  8978  	type NoMethod GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse
  8979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8980  }
  8981  
  8982  // GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse: The response
  8983  // message for SessionEntityTypes.ListSessionEntityTypes.
  8984  type GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse struct {
  8985  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  8986  	// are no more results in the list.
  8987  	NextPageToken string `json:"nextPageToken,omitempty"`
  8988  	// SessionEntityTypes: The list of session entity types. There will be a
  8989  	// maximum number of items returned based on the page_size field in the
  8990  	// request.
  8991  	SessionEntityTypes []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
  8992  
  8993  	// ServerResponse contains the HTTP response code and headers from the server.
  8994  	googleapi.ServerResponse `json:"-"`
  8995  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  8996  	// unconditionally include in API requests. By default, fields with empty or
  8997  	// default values are omitted from API requests. See
  8998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8999  	// details.
  9000  	ForceSendFields []string `json:"-"`
  9001  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9002  	// requests with the JSON null value. By default, fields with empty values are
  9003  	// omitted from API requests. See
  9004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9005  	NullFields []string `json:"-"`
  9006  }
  9007  
  9008  func (s *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
  9009  	type NoMethod GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse
  9010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9011  }
  9012  
  9013  // GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse: The response
  9014  // message for TestCases.ListTestCaseResults.
  9015  type GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse struct {
  9016  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  9017  	// are no more results in the list.
  9018  	NextPageToken string `json:"nextPageToken,omitempty"`
  9019  	// TestCaseResults: The list of test case results.
  9020  	TestCaseResults []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"testCaseResults,omitempty"`
  9021  
  9022  	// ServerResponse contains the HTTP response code and headers from the server.
  9023  	googleapi.ServerResponse `json:"-"`
  9024  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9025  	// unconditionally include in API requests. By default, fields with empty or
  9026  	// default values are omitted from API requests. See
  9027  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9028  	// details.
  9029  	ForceSendFields []string `json:"-"`
  9030  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9031  	// requests with the JSON null value. By default, fields with empty values are
  9032  	// omitted from API requests. See
  9033  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9034  	NullFields []string `json:"-"`
  9035  }
  9036  
  9037  func (s *GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse) MarshalJSON() ([]byte, error) {
  9038  	type NoMethod GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse
  9039  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9040  }
  9041  
  9042  // GoogleCloudDialogflowCxV3beta1ListTestCasesResponse: The response message
  9043  // for TestCases.ListTestCases.
  9044  type GoogleCloudDialogflowCxV3beta1ListTestCasesResponse struct {
  9045  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  9046  	// are no more results in the list.
  9047  	NextPageToken string `json:"nextPageToken,omitempty"`
  9048  	// TestCases: The list of test cases. There will be a maximum number of items
  9049  	// returned based on the page_size field in the request.
  9050  	TestCases []*GoogleCloudDialogflowCxV3beta1TestCase `json:"testCases,omitempty"`
  9051  
  9052  	// ServerResponse contains the HTTP response code and headers from the server.
  9053  	googleapi.ServerResponse `json:"-"`
  9054  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9055  	// unconditionally include in API requests. By default, fields with empty or
  9056  	// default values are omitted from API requests. See
  9057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9058  	// details.
  9059  	ForceSendFields []string `json:"-"`
  9060  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9061  	// requests with the JSON null value. By default, fields with empty values are
  9062  	// omitted from API requests. See
  9063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9064  	NullFields []string `json:"-"`
  9065  }
  9066  
  9067  func (s *GoogleCloudDialogflowCxV3beta1ListTestCasesResponse) MarshalJSON() ([]byte, error) {
  9068  	type NoMethod GoogleCloudDialogflowCxV3beta1ListTestCasesResponse
  9069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9070  }
  9071  
  9072  // GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse: The
  9073  // response message for TransitionRouteGroups.ListTransitionRouteGroups.
  9074  type GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse struct {
  9075  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  9076  	// are no more results in the list.
  9077  	NextPageToken string `json:"nextPageToken,omitempty"`
  9078  	// TransitionRouteGroups: The list of transition route groups. There will be a
  9079  	// maximum number of items returned based on the page_size field in the
  9080  	// request. The list may in some cases be empty or contain fewer entries than
  9081  	// page_size even if this isn't the last page.
  9082  	TransitionRouteGroups []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup `json:"transitionRouteGroups,omitempty"`
  9083  
  9084  	// ServerResponse contains the HTTP response code and headers from the server.
  9085  	googleapi.ServerResponse `json:"-"`
  9086  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9087  	// unconditionally include in API requests. By default, fields with empty or
  9088  	// default values are omitted from API requests. See
  9089  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9090  	// details.
  9091  	ForceSendFields []string `json:"-"`
  9092  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9093  	// requests with the JSON null value. By default, fields with empty values are
  9094  	// omitted from API requests. See
  9095  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9096  	NullFields []string `json:"-"`
  9097  }
  9098  
  9099  func (s *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) MarshalJSON() ([]byte, error) {
  9100  	type NoMethod GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse
  9101  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9102  }
  9103  
  9104  // GoogleCloudDialogflowCxV3beta1ListVersionsResponse: The response message for
  9105  // Versions.ListVersions.
  9106  type GoogleCloudDialogflowCxV3beta1ListVersionsResponse struct {
  9107  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  9108  	// are no more results in the list.
  9109  	NextPageToken string `json:"nextPageToken,omitempty"`
  9110  	// Versions: A list of versions. There will be a maximum number of items
  9111  	// returned based on the page_size field in the request. The list may in some
  9112  	// cases be empty or contain fewer entries than page_size even if this isn't
  9113  	// the last page.
  9114  	Versions []*GoogleCloudDialogflowCxV3beta1Version `json:"versions,omitempty"`
  9115  
  9116  	// ServerResponse contains the HTTP response code and headers from the server.
  9117  	googleapi.ServerResponse `json:"-"`
  9118  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9119  	// unconditionally include in API requests. By default, fields with empty or
  9120  	// default values are omitted from API requests. See
  9121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9122  	// details.
  9123  	ForceSendFields []string `json:"-"`
  9124  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9125  	// requests with the JSON null value. By default, fields with empty values are
  9126  	// omitted from API requests. See
  9127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9128  	NullFields []string `json:"-"`
  9129  }
  9130  
  9131  func (s *GoogleCloudDialogflowCxV3beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
  9132  	type NoMethod GoogleCloudDialogflowCxV3beta1ListVersionsResponse
  9133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9134  }
  9135  
  9136  // GoogleCloudDialogflowCxV3beta1ListWebhooksResponse: The response message for
  9137  // Webhooks.ListWebhooks.
  9138  type GoogleCloudDialogflowCxV3beta1ListWebhooksResponse struct {
  9139  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  9140  	// are no more results in the list.
  9141  	NextPageToken string `json:"nextPageToken,omitempty"`
  9142  	// Webhooks: The list of webhooks. There will be a maximum number of items
  9143  	// returned based on the page_size field in the request.
  9144  	Webhooks []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhooks,omitempty"`
  9145  
  9146  	// ServerResponse contains the HTTP response code and headers from the server.
  9147  	googleapi.ServerResponse `json:"-"`
  9148  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9149  	// unconditionally include in API requests. By default, fields with empty or
  9150  	// default values are omitted from API requests. See
  9151  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9152  	// details.
  9153  	ForceSendFields []string `json:"-"`
  9154  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9155  	// requests with the JSON null value. By default, fields with empty values are
  9156  	// omitted from API requests. See
  9157  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9158  	NullFields []string `json:"-"`
  9159  }
  9160  
  9161  func (s *GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) MarshalJSON() ([]byte, error) {
  9162  	type NoMethod GoogleCloudDialogflowCxV3beta1ListWebhooksResponse
  9163  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9164  }
  9165  
  9166  // GoogleCloudDialogflowCxV3beta1LoadVersionRequest: The request message for
  9167  // Versions.LoadVersion.
  9168  type GoogleCloudDialogflowCxV3beta1LoadVersionRequest struct {
  9169  	// AllowOverrideAgentResources: This field is used to prevent accidental
  9170  	// overwrite of other agent resources, which can potentially impact other
  9171  	// flow's behavior. If `allow_override_agent_resources` is false, conflicted
  9172  	// agent-level resources will not be overridden (i.e. intents, entities,
  9173  	// webhooks).
  9174  	AllowOverrideAgentResources bool `json:"allowOverrideAgentResources,omitempty"`
  9175  	// ForceSendFields is a list of field names (e.g.
  9176  	// "AllowOverrideAgentResources") to unconditionally include in API requests.
  9177  	// By default, fields with empty or default values are omitted from API
  9178  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  9179  	// for more details.
  9180  	ForceSendFields []string `json:"-"`
  9181  	// NullFields is a list of field names (e.g. "AllowOverrideAgentResources") to
  9182  	// include in API requests with the JSON null value. By default, fields with
  9183  	// empty values are omitted from API requests. See
  9184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9185  	NullFields []string `json:"-"`
  9186  }
  9187  
  9188  func (s *GoogleCloudDialogflowCxV3beta1LoadVersionRequest) MarshalJSON() ([]byte, error) {
  9189  	type NoMethod GoogleCloudDialogflowCxV3beta1LoadVersionRequest
  9190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9191  }
  9192  
  9193  // GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse: The response
  9194  // message for Environments.LookupEnvironmentHistory.
  9195  type GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse struct {
  9196  	// Environments: Represents a list of snapshots for an environment. Time of the
  9197  	// snapshots is stored in `update_time`.
  9198  	Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
  9199  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  9200  	// are no more results in the list.
  9201  	NextPageToken string `json:"nextPageToken,omitempty"`
  9202  
  9203  	// ServerResponse contains the HTTP response code and headers from the server.
  9204  	googleapi.ServerResponse `json:"-"`
  9205  	// ForceSendFields is a list of field names (e.g. "Environments") to
  9206  	// unconditionally include in API requests. By default, fields with empty or
  9207  	// default values are omitted from API requests. See
  9208  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9209  	// details.
  9210  	ForceSendFields []string `json:"-"`
  9211  	// NullFields is a list of field names (e.g. "Environments") to include in API
  9212  	// requests with the JSON null value. By default, fields with empty values are
  9213  	// omitted from API requests. See
  9214  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9215  	NullFields []string `json:"-"`
  9216  }
  9217  
  9218  func (s *GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse) MarshalJSON() ([]byte, error) {
  9219  	type NoMethod GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse
  9220  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9221  }
  9222  
  9223  // GoogleCloudDialogflowCxV3beta1Match: Represents one match result of
  9224  // MatchIntent.
  9225  type GoogleCloudDialogflowCxV3beta1Match struct {
  9226  	// Confidence: The confidence of this match. Values range from 0.0 (completely
  9227  	// uncertain) to 1.0 (completely certain). This value is for informational
  9228  	// purpose only and is only used to help match the best intent within the
  9229  	// classification threshold. This value may change for the same end-user
  9230  	// expression at any time due to a model retraining or change in
  9231  	// implementation.
  9232  	Confidence float64 `json:"confidence,omitempty"`
  9233  	// Event: The event that matched the query. Filled for `EVENT`, `NO_MATCH` and
  9234  	// `NO_INPUT` match types.
  9235  	Event string `json:"event,omitempty"`
  9236  	// Intent: The Intent that matched the query. Some, not all fields are filled
  9237  	// in this message, including but not limited to: `name` and `display_name`.
  9238  	// Only filled for `INTENT` match type.
  9239  	Intent *GoogleCloudDialogflowCxV3beta1Intent `json:"intent,omitempty"`
  9240  	// MatchType: Type of this Match.
  9241  	//
  9242  	// Possible values:
  9243  	//   "MATCH_TYPE_UNSPECIFIED" - Not specified. Should never be used.
  9244  	//   "INTENT" - The query was matched to an intent.
  9245  	//   "DIRECT_INTENT" - The query directly triggered an intent.
  9246  	//   "PARAMETER_FILLING" - The query was used for parameter filling.
  9247  	//   "NO_MATCH" - No match was found for the query.
  9248  	//   "NO_INPUT" - Indicates an empty query.
  9249  	//   "EVENT" - The query directly triggered an event.
  9250  	//   "PLAYBOOK" - The query was handled by a `Playbook`.
  9251  	MatchType string `json:"matchType,omitempty"`
  9252  	// Parameters: The collection of parameters extracted from the query. Depending
  9253  	// on your protocol or client library language, this is a map, associative
  9254  	// array, symbol table, dictionary, or JSON object composed of a collection of
  9255  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
  9256  	// name * MapValue type: If parameter's entity type is a composite entity then
  9257  	// use map, otherwise, depending on the parameter value type, it could be one
  9258  	// of string, number, boolean, null, list or map. * MapValue value: If
  9259  	// parameter's entity type is a composite entity then use map from composite
  9260  	// entity property names to property values, otherwise, use parameter value.
  9261  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  9262  	// ResolvedInput: Final text input which was matched during MatchIntent. This
  9263  	// value can be different from original input sent in request because of
  9264  	// spelling correction or other processing.
  9265  	ResolvedInput string `json:"resolvedInput,omitempty"`
  9266  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  9267  	// unconditionally include in API requests. By default, fields with empty or
  9268  	// default values are omitted from API requests. See
  9269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9270  	// details.
  9271  	ForceSendFields []string `json:"-"`
  9272  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  9273  	// requests with the JSON null value. By default, fields with empty values are
  9274  	// omitted from API requests. See
  9275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9276  	NullFields []string `json:"-"`
  9277  }
  9278  
  9279  func (s *GoogleCloudDialogflowCxV3beta1Match) MarshalJSON() ([]byte, error) {
  9280  	type NoMethod GoogleCloudDialogflowCxV3beta1Match
  9281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9282  }
  9283  
  9284  func (s *GoogleCloudDialogflowCxV3beta1Match) UnmarshalJSON(data []byte) error {
  9285  	type NoMethod GoogleCloudDialogflowCxV3beta1Match
  9286  	var s1 struct {
  9287  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  9288  		*NoMethod
  9289  	}
  9290  	s1.NoMethod = (*NoMethod)(s)
  9291  	if err := json.Unmarshal(data, &s1); err != nil {
  9292  		return err
  9293  	}
  9294  	s.Confidence = float64(s1.Confidence)
  9295  	return nil
  9296  }
  9297  
  9298  // GoogleCloudDialogflowCxV3beta1MatchIntentRequest: Request of MatchIntent.
  9299  type GoogleCloudDialogflowCxV3beta1MatchIntentRequest struct {
  9300  	// PersistParameterChanges: Persist session parameter changes from
  9301  	// `query_params`.
  9302  	PersistParameterChanges bool `json:"persistParameterChanges,omitempty"`
  9303  	// QueryInput: Required. The input specification.
  9304  	QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
  9305  	// QueryParams: The parameters of this query.
  9306  	QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
  9307  	// ForceSendFields is a list of field names (e.g. "PersistParameterChanges") to
  9308  	// unconditionally include in API requests. By default, fields with empty or
  9309  	// default values are omitted from API requests. See
  9310  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9311  	// details.
  9312  	ForceSendFields []string `json:"-"`
  9313  	// NullFields is a list of field names (e.g. "PersistParameterChanges") to
  9314  	// include in API requests with the JSON null value. By default, fields with
  9315  	// empty values are omitted from API requests. See
  9316  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9317  	NullFields []string `json:"-"`
  9318  }
  9319  
  9320  func (s *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) MarshalJSON() ([]byte, error) {
  9321  	type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentRequest
  9322  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9323  }
  9324  
  9325  // GoogleCloudDialogflowCxV3beta1MatchIntentResponse: Response of MatchIntent.
  9326  type GoogleCloudDialogflowCxV3beta1MatchIntentResponse struct {
  9327  	// CurrentPage: The current Page. Some, not all fields are filled in this
  9328  	// message, including but not limited to `name` and `display_name`.
  9329  	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
  9330  	// Matches: Match results, if more than one, ordered descendingly by the
  9331  	// confidence we have that the particular intent matches the query.
  9332  	Matches []*GoogleCloudDialogflowCxV3beta1Match `json:"matches,omitempty"`
  9333  	// Text: If natural language text was provided as input, this field will
  9334  	// contain a copy of the text.
  9335  	Text string `json:"text,omitempty"`
  9336  	// Transcript: If natural language speech audio was provided as input, this
  9337  	// field will contain the transcript for the audio.
  9338  	Transcript string `json:"transcript,omitempty"`
  9339  	// TriggerEvent: If an event was provided as input, this field will contain a
  9340  	// copy of the event name.
  9341  	TriggerEvent string `json:"triggerEvent,omitempty"`
  9342  	// TriggerIntent: If an intent was provided as input, this field will contain a
  9343  	// copy of the intent identifier. Format:
  9344  	// `projects//locations//agents//intents/`.
  9345  	TriggerIntent string `json:"triggerIntent,omitempty"`
  9346  
  9347  	// ServerResponse contains the HTTP response code and headers from the server.
  9348  	googleapi.ServerResponse `json:"-"`
  9349  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  9350  	// unconditionally include in API requests. By default, fields with empty or
  9351  	// default values are omitted from API requests. See
  9352  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9353  	// details.
  9354  	ForceSendFields []string `json:"-"`
  9355  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  9356  	// requests with the JSON null value. By default, fields with empty values are
  9357  	// omitted from API requests. See
  9358  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9359  	NullFields []string `json:"-"`
  9360  }
  9361  
  9362  func (s *GoogleCloudDialogflowCxV3beta1MatchIntentResponse) MarshalJSON() ([]byte, error) {
  9363  	type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentResponse
  9364  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9365  }
  9366  
  9367  // GoogleCloudDialogflowCxV3beta1NluSettings: Settings related to NLU.
  9368  type GoogleCloudDialogflowCxV3beta1NluSettings struct {
  9369  	// ClassificationThreshold: To filter out false positive results and still get
  9370  	// variety in matched natural language inputs for your agent, you can tune the
  9371  	// machine learning classification threshold. If the returned score value is
  9372  	// less than the threshold value, then a no-match event will be triggered. The
  9373  	// score values range from 0.0 (completely uncertain) to 1.0 (completely
  9374  	// certain). If set to 0.0, the default of 0.3 is used.
  9375  	ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
  9376  	// ModelTrainingMode: Indicates NLU model training mode.
  9377  	//
  9378  	// Possible values:
  9379  	//   "MODEL_TRAINING_MODE_UNSPECIFIED" - Not specified.
  9380  	// `MODEL_TRAINING_MODE_AUTOMATIC` will be used.
  9381  	//   "MODEL_TRAINING_MODE_AUTOMATIC" - NLU model training is automatically
  9382  	// triggered when a flow gets modified. User can also manually trigger model
  9383  	// training in this mode.
  9384  	//   "MODEL_TRAINING_MODE_MANUAL" - User needs to manually trigger NLU model
  9385  	// training. Best for large flows whose models take long time to train.
  9386  	ModelTrainingMode string `json:"modelTrainingMode,omitempty"`
  9387  	// ModelType: Indicates the type of NLU model.
  9388  	//
  9389  	// Possible values:
  9390  	//   "MODEL_TYPE_UNSPECIFIED" - Not specified. `MODEL_TYPE_STANDARD` will be
  9391  	// used.
  9392  	//   "MODEL_TYPE_STANDARD" - Use standard NLU model.
  9393  	//   "MODEL_TYPE_ADVANCED" - Use advanced NLU model.
  9394  	ModelType string `json:"modelType,omitempty"`
  9395  	// ForceSendFields is a list of field names (e.g. "ClassificationThreshold") to
  9396  	// unconditionally include in API requests. By default, fields with empty or
  9397  	// default values are omitted from API requests. See
  9398  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9399  	// details.
  9400  	ForceSendFields []string `json:"-"`
  9401  	// NullFields is a list of field names (e.g. "ClassificationThreshold") to
  9402  	// include in API requests with the JSON null value. By default, fields with
  9403  	// empty values are omitted from API requests. See
  9404  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9405  	NullFields []string `json:"-"`
  9406  }
  9407  
  9408  func (s *GoogleCloudDialogflowCxV3beta1NluSettings) MarshalJSON() ([]byte, error) {
  9409  	type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
  9410  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9411  }
  9412  
  9413  func (s *GoogleCloudDialogflowCxV3beta1NluSettings) UnmarshalJSON(data []byte) error {
  9414  	type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
  9415  	var s1 struct {
  9416  		ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
  9417  		*NoMethod
  9418  	}
  9419  	s1.NoMethod = (*NoMethod)(s)
  9420  	if err := json.Unmarshal(data, &s1); err != nil {
  9421  		return err
  9422  	}
  9423  	s.ClassificationThreshold = float64(s1.ClassificationThreshold)
  9424  	return nil
  9425  }
  9426  
  9427  // GoogleCloudDialogflowCxV3beta1OutputAudioConfig: Instructs the speech
  9428  // synthesizer how to generate the output audio content.
  9429  type GoogleCloudDialogflowCxV3beta1OutputAudioConfig struct {
  9430  	// AudioEncoding: Required. Audio encoding of the synthesized audio content.
  9431  	//
  9432  	// Possible values:
  9433  	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
  9434  	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
  9435  	// little-endian samples (Linear PCM). Audio content returned as LINEAR16 also
  9436  	// contains a WAV header.
  9437  	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
  9438  	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
  9439  	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an ogg
  9440  	// container. The result will be a file which can be played natively on
  9441  	// Android, and in browsers (at least Chrome and Firefox). The quality of the
  9442  	// encoding is considerably higher than MP3 while using approximately the same
  9443  	// bitrate.
  9444  	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
  9445  	// samples using G.711 PCMU/mu-law.
  9446  	AudioEncoding string `json:"audioEncoding,omitempty"`
  9447  	// SampleRateHertz: Optional. The synthesis sample rate (in hertz) for this
  9448  	// audio. If not provided, then the synthesizer will use the default sample
  9449  	// rate based on the audio encoding. If this is different from the voice's
  9450  	// natural sample rate, then the synthesizer will honor this request by
  9451  	// converting to the desired sample rate (which might result in worse audio
  9452  	// quality).
  9453  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
  9454  	// SynthesizeSpeechConfig: Optional. Configuration of how speech should be
  9455  	// synthesized. If not specified, Agent.text_to_speech_settings is applied.
  9456  	SynthesizeSpeechConfig *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
  9457  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
  9458  	// unconditionally include in API requests. By default, fields with empty or
  9459  	// default values are omitted from API requests. See
  9460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9461  	// details.
  9462  	ForceSendFields []string `json:"-"`
  9463  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
  9464  	// requests with the JSON null value. By default, fields with empty values are
  9465  	// omitted from API requests. See
  9466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9467  	NullFields []string `json:"-"`
  9468  }
  9469  
  9470  func (s *GoogleCloudDialogflowCxV3beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
  9471  	type NoMethod GoogleCloudDialogflowCxV3beta1OutputAudioConfig
  9472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9473  }
  9474  
  9475  // GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation (session)
  9476  // can be described and visualized as a state machine. The states of a CX
  9477  // session are represented by pages. For each flow, you define many pages,
  9478  // where your combined pages can handle a complete conversation on the topics
  9479  // the flow is designed for. At any given moment, exactly one page is the
  9480  // current page, the current page is considered active, and the flow associated
  9481  // with that page is considered active. Every flow has a special start page.
  9482  // When a flow initially becomes active, the start page page becomes the
  9483  // current page. For each conversational turn, the current page will either
  9484  // stay the same or transition to another page. You configure each page to
  9485  // collect information from the end-user that is relevant for the
  9486  // conversational state represented by the page. For more information, see the
  9487  // Page guide (https://cloud.google.com/dialogflow/cx/docs/concept/page).
  9488  type GoogleCloudDialogflowCxV3beta1Page struct {
  9489  	// AdvancedSettings: Hierarchical advanced settings for this page. The settings
  9490  	// exposed at the lower level overrides the settings exposed at the higher
  9491  	// level.
  9492  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  9493  	// Description: The description of the page. The maximum length is 500
  9494  	// characters.
  9495  	Description string `json:"description,omitempty"`
  9496  	// DisplayName: Required. The human-readable name of the page, unique within
  9497  	// the flow.
  9498  	DisplayName string `json:"displayName,omitempty"`
  9499  	// EntryFulfillment: The fulfillment to call when the session is entering the
  9500  	// page.
  9501  	EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
  9502  	// EventHandlers: Handlers associated with the page to handle events such as
  9503  	// webhook errors, no match or no input.
  9504  	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
  9505  	// Form: The form associated with the page, used for collecting parameters
  9506  	// relevant to the page.
  9507  	Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
  9508  	// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.
  9509  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  9510  	// Name: The unique identifier of the page. Required for the Pages.UpdatePage
  9511  	// method. Pages.CreatePage populates the name automatically. Format:
  9512  	// `projects//locations//agents//flows//pages/`.
  9513  	Name string `json:"name,omitempty"`
  9514  	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the
  9515  	// page. Transition route groups must be unique within a page. If the page
  9516  	// links both flow-level transition route groups and agent-level transition
  9517  	// route groups, the flow-level ones will have higher priority and will be put
  9518  	// before the agent-level ones. * If multiple transition routes within a page
  9519  	// scope refer to the same intent, then the precedence order is: page's
  9520  	// transition route -> page's transition route group -> flow's transition
  9521  	// routes. * If multiple transition route groups within a page contain the same
  9522  	// intent, then the first group in the ordered list takes precedence.
  9523  	// Format:`projects//locations//agents//flows//transitionRouteGroups/` or
  9524  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
  9525  	// groups.
  9526  	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
  9527  	// TransitionRoutes: A list of transitions for the transition rules of this
  9528  	// page. They route the conversation to another page in the same flow, or
  9529  	// another flow. When we are in a certain page, the TransitionRoutes are
  9530  	// evalauted in the following order: * TransitionRoutes defined in the page
  9531  	// with intent specified. * TransitionRoutes defined in the transition route
  9532  	// groups with intent specified. * TransitionRoutes defined in flow with intent
  9533  	// specified. * TransitionRoutes defined in the transition route groups with
  9534  	// intent specified. * TransitionRoutes defined in the page with only condition
  9535  	// specified. * TransitionRoutes defined in the transition route groups with
  9536  	// only condition specified.
  9537  	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
  9538  
  9539  	// ServerResponse contains the HTTP response code and headers from the server.
  9540  	googleapi.ServerResponse `json:"-"`
  9541  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  9542  	// unconditionally include in API requests. By default, fields with empty or
  9543  	// default values are omitted from API requests. See
  9544  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9545  	// details.
  9546  	ForceSendFields []string `json:"-"`
  9547  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  9548  	// API requests with the JSON null value. By default, fields with empty values
  9549  	// are omitted from API requests. See
  9550  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9551  	NullFields []string `json:"-"`
  9552  }
  9553  
  9554  func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
  9555  	type NoMethod GoogleCloudDialogflowCxV3beta1Page
  9556  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9557  }
  9558  
  9559  // GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information
  9560  // communicated to and from the webhook.
  9561  type GoogleCloudDialogflowCxV3beta1PageInfo struct {
  9562  	// CurrentPage: Always present for WebhookRequest. Ignored for WebhookResponse.
  9563  	// The unique identifier of the current page. Format:
  9564  	// `projects//locations//agents//flows//pages/`.
  9565  	CurrentPage string `json:"currentPage,omitempty"`
  9566  	// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.
  9567  	// The display name of the current page.
  9568  	DisplayName string `json:"displayName,omitempty"`
  9569  	// FormInfo: Optional for both WebhookRequest and WebhookResponse. Information
  9570  	// about the form.
  9571  	FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
  9572  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  9573  	// unconditionally include in API requests. By default, fields with empty or
  9574  	// default values are omitted from API requests. See
  9575  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9576  	// details.
  9577  	ForceSendFields []string `json:"-"`
  9578  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  9579  	// requests with the JSON null value. By default, fields with empty values are
  9580  	// omitted from API requests. See
  9581  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9582  	NullFields []string `json:"-"`
  9583  }
  9584  
  9585  func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
  9586  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
  9587  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9588  }
  9589  
  9590  // GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form information.
  9591  type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
  9592  	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse. The
  9593  	// parameters contained in the form. Note that the webhook cannot add or remove
  9594  	// any form parameter.
  9595  	ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
  9596  	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
  9597  	// unconditionally include in API requests. By default, fields with empty or
  9598  	// default values are omitted from API requests. See
  9599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9600  	// details.
  9601  	ForceSendFields []string `json:"-"`
  9602  	// NullFields is a list of field names (e.g. "ParameterInfo") to include in API
  9603  	// requests with the JSON null value. By default, fields with empty values are
  9604  	// omitted from API requests. See
  9605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9606  	NullFields []string `json:"-"`
  9607  }
  9608  
  9609  func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
  9610  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
  9611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9612  }
  9613  
  9614  // GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: Represents
  9615  // parameter information.
  9616  type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
  9617  	// DisplayName: Always present for WebhookRequest. Required for
  9618  	// WebhookResponse. The human-readable name of the parameter, unique within the
  9619  	// form. This field cannot be modified by the webhook.
  9620  	DisplayName string `json:"displayName,omitempty"`
  9621  	// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.
  9622  	// Indicates if the parameter value was just collected on the last conversation
  9623  	// turn.
  9624  	JustCollected bool `json:"justCollected,omitempty"`
  9625  	// Required: Optional for both WebhookRequest and WebhookResponse. Indicates
  9626  	// whether the parameter is required. Optional parameters will not trigger
  9627  	// prompts; however, they are filled if the user specifies them. Required
  9628  	// parameters must be filled before form filling concludes.
  9629  	Required bool `json:"required,omitempty"`
  9630  	// State: Always present for WebhookRequest. Required for WebhookResponse. The
  9631  	// state of the parameter. This field can be set to INVALID by the webhook to
  9632  	// invalidate the parameter; other values set by the webhook will be ignored.
  9633  	//
  9634  	// Possible values:
  9635  	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be never
  9636  	// used.
  9637  	//   "EMPTY" - Indicates that the parameter does not have a value.
  9638  	//   "INVALID" - Indicates that the parameter value is invalid. This field can
  9639  	// be used by the webhook to invalidate the parameter and ask the server to
  9640  	// collect it from the user again.
  9641  	//   "FILLED" - Indicates that the parameter has a value.
  9642  	State string `json:"state,omitempty"`
  9643  	// Value: Optional for both WebhookRequest and WebhookResponse. The value of
  9644  	// the parameter. This field can be set by the webhook to change the parameter
  9645  	// value.
  9646  	Value interface{} `json:"value,omitempty"`
  9647  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  9648  	// unconditionally include in API requests. By default, fields with empty or
  9649  	// default values are omitted from API requests. See
  9650  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9651  	// details.
  9652  	ForceSendFields []string `json:"-"`
  9653  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  9654  	// requests with the JSON null value. By default, fields with empty values are
  9655  	// omitted from API requests. See
  9656  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9657  	NullFields []string `json:"-"`
  9658  }
  9659  
  9660  func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
  9661  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
  9662  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9663  }
  9664  
  9665  // GoogleCloudDialogflowCxV3beta1Phrase: Text input which can be used for
  9666  // prompt or banned phrases.
  9667  type GoogleCloudDialogflowCxV3beta1Phrase struct {
  9668  	// Text: Required. Text input which can be used for prompt or banned phrases.
  9669  	Text string `json:"text,omitempty"`
  9670  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  9671  	// include in API requests. By default, fields with empty or default values are
  9672  	// omitted from API requests. See
  9673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9674  	// details.
  9675  	ForceSendFields []string `json:"-"`
  9676  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  9677  	// with the JSON null value. By default, fields with empty values are omitted
  9678  	// from API requests. See
  9679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9680  	NullFields []string `json:"-"`
  9681  }
  9682  
  9683  func (s *GoogleCloudDialogflowCxV3beta1Phrase) MarshalJSON() ([]byte, error) {
  9684  	type NoMethod GoogleCloudDialogflowCxV3beta1Phrase
  9685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9686  }
  9687  
  9688  // GoogleCloudDialogflowCxV3beta1QueryInput: Represents the query input. It can
  9689  // contain one of: 1. A conversational query in the form of text. 2. An intent
  9690  // query that specifies which intent to trigger. 3. Natural language speech
  9691  // audio to be processed. 4. An event to be triggered. 5. DTMF digits to invoke
  9692  // an intent and fill in parameter value. 6. The results of a tool executed by
  9693  // the client.
  9694  type GoogleCloudDialogflowCxV3beta1QueryInput struct {
  9695  	// Audio: The natural language speech audio to be processed.
  9696  	Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
  9697  	// Dtmf: The DTMF event to be handled.
  9698  	Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
  9699  	// Event: The event to be triggered.
  9700  	Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
  9701  	// Intent: The intent to be triggered.
  9702  	Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
  9703  	// LanguageCode: Required. The language of the input. See Language Support
  9704  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  9705  	// of the currently supported language codes. Note that queries in the same
  9706  	// session do not necessarily need to specify the same language.
  9707  	LanguageCode string `json:"languageCode,omitempty"`
  9708  	// Text: The natural language text to be processed.
  9709  	Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
  9710  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  9711  	// include in API requests. By default, fields with empty or default values are
  9712  	// omitted from API requests. See
  9713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9714  	// details.
  9715  	ForceSendFields []string `json:"-"`
  9716  	// NullFields is a list of field names (e.g. "Audio") to include in API
  9717  	// requests with the JSON null value. By default, fields with empty values are
  9718  	// omitted from API requests. See
  9719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9720  	NullFields []string `json:"-"`
  9721  }
  9722  
  9723  func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
  9724  	type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
  9725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9726  }
  9727  
  9728  // GoogleCloudDialogflowCxV3beta1QueryParameters: Represents the parameters of
  9729  // a conversational query.
  9730  type GoogleCloudDialogflowCxV3beta1QueryParameters struct {
  9731  	// AnalyzeQueryTextSentiment: Configures whether sentiment analysis should be
  9732  	// performed. If not provided, sentiment analysis is not performed.
  9733  	AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
  9734  	// Channel: The channel which this query is for. If specified, only the
  9735  	// ResponseMessage associated with the channel will be returned. If no
  9736  	// ResponseMessage is associated with the channel, it falls back to the
  9737  	// ResponseMessage with unspecified channel. If unspecified, the
  9738  	// ResponseMessage with unspecified channel will be returned.
  9739  	Channel string `json:"channel,omitempty"`
  9740  	// CurrentPage: The unique identifier of the page to override the current page
  9741  	// in the session. Format: `projects//locations//agents//flows//pages/`. If
  9742  	// `current_page` is specified, the previous state of the session will be
  9743  	// ignored by Dialogflow, including the previous page and the previous session
  9744  	// parameters. In most cases, current_page and parameters should be configured
  9745  	// together to direct a session to a specific state.
  9746  	CurrentPage string `json:"currentPage,omitempty"`
  9747  	// DisableWebhook: Whether to disable webhook calls for this request.
  9748  	DisableWebhook bool `json:"disableWebhook,omitempty"`
  9749  	// EndUserMetadata: Optional. Information about the end-user to improve the
  9750  	// relevance and accuracy of generative answers. This will be interpreted and
  9751  	// used by a language model, so, for good results, the data should be
  9752  	// self-descriptive, and in a simple structure. Example: ```json {
  9753  	// "subscription plan": "Business Premium Plus", "devices owned": [ {"model":
  9754  	// "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } ```
  9755  	EndUserMetadata googleapi.RawMessage `json:"endUserMetadata,omitempty"`
  9756  	// FlowVersions: A list of flow versions to override for the request. Format:
  9757  	// `projects//locations//agents//flows//versions/`. If version 1 of flow X is
  9758  	// included in this list, the traffic of flow X will go through version 1
  9759  	// regardless of the version configuration in the environment. Each flow can
  9760  	// have at most one version specified in this list.
  9761  	FlowVersions []string `json:"flowVersions,omitempty"`
  9762  	// GeoLocation: The geo location of this conversational query.
  9763  	GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
  9764  	// Parameters: Additional parameters to be put into session parameters. To
  9765  	// remove a parameter from the session, clients should explicitly set the
  9766  	// parameter value to null. You can reference the session parameters in the
  9767  	// agent with the following format: $session.params.parameter-id. Depending on
  9768  	// your protocol or client library language, this is a map, associative array,
  9769  	// symbol table, dictionary, or JSON object composed of a collection of
  9770  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
  9771  	// name * MapValue type: If parameter's entity type is a composite entity then
  9772  	// use map, otherwise, depending on the parameter value type, it could be one
  9773  	// of string, number, boolean, null, list or map. * MapValue value: If
  9774  	// parameter's entity type is a composite entity then use map from composite
  9775  	// entity property names to property values, otherwise, use parameter value.
  9776  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  9777  	// Payload: This field can be used to pass custom data into the webhook
  9778  	// associated with the agent. Arbitrary JSON objects are supported. Some
  9779  	// integrations that query a Dialogflow agent may provide additional
  9780  	// information in the payload. In particular, for the Dialogflow Phone Gateway
  9781  	// integration, this field has the form: ``` { "telephony": { "caller_id":
  9782  	// "+18558363987" } } ```
  9783  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  9784  	// PopulateDataStoreConnectionSignals: Optional. If set to true and data stores
  9785  	// are involved in serving the request then
  9786  	// DetectIntentResponse.query_result.data_store_connection_signals will be
  9787  	// filled with data that can help evaluations.
  9788  	PopulateDataStoreConnectionSignals bool `json:"populateDataStoreConnectionSignals,omitempty"`
  9789  	// SearchConfig: Optional. Search configuration for UCS search queries.
  9790  	SearchConfig *GoogleCloudDialogflowCxV3beta1SearchConfig `json:"searchConfig,omitempty"`
  9791  	// SessionEntityTypes: Additional session entity types to replace or extend
  9792  	// developer entity types with. The entity synonyms apply to all languages and
  9793  	// persist for the session of this query.
  9794  	SessionEntityTypes []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
  9795  	// SessionTtl: Optional. Configure lifetime of the Dialogflow session. By
  9796  	// default, a Dialogflow session remains active and its data is stored for 30
  9797  	// minutes after the last request is sent for the session. This value should be
  9798  	// no longer than 1 day.
  9799  	SessionTtl string `json:"sessionTtl,omitempty"`
  9800  	// TimeZone: The time zone of this conversational query from the time zone
  9801  	// database (https://www.iana.org/time-zones), e.g., America/New_York,
  9802  	// Europe/Paris. If not provided, the time zone specified in the agent is used.
  9803  	TimeZone string `json:"timeZone,omitempty"`
  9804  	// WebhookHeaders: This field can be used to pass HTTP headers for a webhook
  9805  	// call. These headers will be sent to webhook along with the headers that have
  9806  	// been configured through Dialogflow web console. The headers defined within
  9807  	// this field will overwrite the headers configured through Dialogflow console
  9808  	// if there is a conflict. Header names are case-insensitive. Google's
  9809  	// specified headers are not allowed. Including: "Host", "Content-Length",
  9810  	// "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since",
  9811  	// "If-None-Match", "X-Forwarded-For", etc.
  9812  	WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
  9813  	// ForceSendFields is a list of field names (e.g. "AnalyzeQueryTextSentiment")
  9814  	// to unconditionally include in API requests. By default, fields with empty or
  9815  	// default values are omitted from API requests. See
  9816  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9817  	// details.
  9818  	ForceSendFields []string `json:"-"`
  9819  	// NullFields is a list of field names (e.g. "AnalyzeQueryTextSentiment") to
  9820  	// include in API requests with the JSON null value. By default, fields with
  9821  	// empty values are omitted from API requests. See
  9822  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9823  	NullFields []string `json:"-"`
  9824  }
  9825  
  9826  func (s *GoogleCloudDialogflowCxV3beta1QueryParameters) MarshalJSON() ([]byte, error) {
  9827  	type NoMethod GoogleCloudDialogflowCxV3beta1QueryParameters
  9828  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9829  }
  9830  
  9831  // GoogleCloudDialogflowCxV3beta1QueryResult: Represents the result of a
  9832  // conversational query.
  9833  type GoogleCloudDialogflowCxV3beta1QueryResult struct {
  9834  	// AdvancedSettings: Returns the current advanced settings including IVR
  9835  	// settings. Even though the operations configured by these settings are
  9836  	// performed by Dialogflow, the client may need to perform special logic at the
  9837  	// moment. For example, if Dialogflow exports audio to Google Cloud Storage,
  9838  	// then the client may need to wait for the resulting object to appear in the
  9839  	// bucket before proceeding.
  9840  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  9841  	// AllowAnswerFeedback: Indicates whether the Thumbs up/Thumbs down rating
  9842  	// controls are need to be shown for the response in the Dialogflow Messenger
  9843  	// widget.
  9844  	AllowAnswerFeedback bool `json:"allowAnswerFeedback,omitempty"`
  9845  	// CurrentPage: The current Page. Some, not all fields are filled in this
  9846  	// message, including but not limited to `name` and `display_name`.
  9847  	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
  9848  	// DataStoreConnectionSignals: Optional. Data store connection feature output
  9849  	// signals. Filled only when data stores are involved in serving the query and
  9850  	// DetectIntentRequest.populate data_store_connection_quality_signals is set to
  9851  	// true in the request.
  9852  	DataStoreConnectionSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals `json:"dataStoreConnectionSignals,omitempty"`
  9853  	// DiagnosticInfo: The free-form diagnostic info. For example, this field could
  9854  	// contain webhook call latency. The fields of this data can change without
  9855  	// notice, so you should not write code that depends on its structure. One of
  9856  	// the fields is called "Alternative Matched Intents", which may aid with
  9857  	// debugging. The following describes these intent results: - The list is empty
  9858  	// if no intent was matched to end-user input. - Only intents that are
  9859  	// referenced in the currently active flow are included. - The matched intent
  9860  	// is included. - Other intents that could have matched end-user input, but did
  9861  	// not match because they are referenced by intent routes that are out of scope
  9862  	// (https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), are
  9863  	// included. - Other intents referenced by intent routes in scope that matched
  9864  	// end-user input, but had a lower confidence score.
  9865  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
  9866  	// Dtmf: If a DTMF was provided as input, this field will contain a copy of the
  9867  	// DtmfInput.
  9868  	Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
  9869  	// Intent: The Intent that matched the conversational query. Some, not all
  9870  	// fields are filled in this message, including but not limited to: `name` and
  9871  	// `display_name`. This field is deprecated, please use QueryResult.match
  9872  	// instead.
  9873  	Intent *GoogleCloudDialogflowCxV3beta1Intent `json:"intent,omitempty"`
  9874  	// IntentDetectionConfidence: The intent detection confidence. Values range
  9875  	// from 0.0 (completely uncertain) to 1.0 (completely certain). This value is
  9876  	// for informational purpose only and is only used to help match the best
  9877  	// intent within the classification threshold. This value may change for the
  9878  	// same end-user expression at any time due to a model retraining or change in
  9879  	// implementation. This field is deprecated, please use QueryResult.match
  9880  	// instead.
  9881  	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
  9882  	// LanguageCode: The language that was triggered during intent detection. See
  9883  	// Language Support
  9884  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  9885  	// of the currently supported language codes.
  9886  	LanguageCode string `json:"languageCode,omitempty"`
  9887  	// Match: Intent match result, could be an intent or an event.
  9888  	Match *GoogleCloudDialogflowCxV3beta1Match `json:"match,omitempty"`
  9889  	// Parameters: The collected session parameters. Depending on your protocol or
  9890  	// client library language, this is a map, associative array, symbol table,
  9891  	// dictionary, or JSON object composed of a collection of (MapKey, MapValue)
  9892  	// pairs: * MapKey type: string * MapKey value: parameter name * MapValue type:
  9893  	// If parameter's entity type is a composite entity then use map, otherwise,
  9894  	// depending on the parameter value type, it could be one of string, number,
  9895  	// boolean, null, list or map. * MapValue value: If parameter's entity type is
  9896  	// a composite entity then use map from composite entity property names to
  9897  	// property values, otherwise, use parameter value.
  9898  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  9899  	// ResponseMessages: The list of rich messages returned to the client.
  9900  	// Responses vary from simple text messages to more sophisticated, structured
  9901  	// payloads used to drive complex logic.
  9902  	ResponseMessages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"responseMessages,omitempty"`
  9903  	// SentimentAnalysisResult: The sentiment analyss result, which depends on
  9904  	// `analyze_query_text_sentiment`, specified in the request.
  9905  	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
  9906  	// Text: If natural language text was provided as input, this field will
  9907  	// contain a copy of the text.
  9908  	Text string `json:"text,omitempty"`
  9909  	// Transcript: If natural language speech audio was provided as input, this
  9910  	// field will contain the transcript for the audio.
  9911  	Transcript string `json:"transcript,omitempty"`
  9912  	// TriggerEvent: If an event was provided as input, this field will contain the
  9913  	// name of the event.
  9914  	TriggerEvent string `json:"triggerEvent,omitempty"`
  9915  	// TriggerIntent: If an intent was provided as input, this field will contain a
  9916  	// copy of the intent identifier. Format:
  9917  	// `projects//locations//agents//intents/`.
  9918  	TriggerIntent string `json:"triggerIntent,omitempty"`
  9919  	// WebhookDisplayNames: The list of webhook display names in the order of call
  9920  	// sequence.
  9921  	WebhookDisplayNames []string `json:"webhookDisplayNames,omitempty"`
  9922  	// WebhookIds: The list of webhook ids in the order of call sequence.
  9923  	WebhookIds []string `json:"webhookIds,omitempty"`
  9924  	// WebhookLatencies: The list of webhook latencies in the order of call
  9925  	// sequence.
  9926  	WebhookLatencies []string `json:"webhookLatencies,omitempty"`
  9927  	// WebhookPayloads: The list of webhook payload in WebhookResponse.payload, in
  9928  	// the order of call sequence. If some webhook call fails or doesn't return any
  9929  	// payload, an empty `Struct` would be used instead.
  9930  	WebhookPayloads []googleapi.RawMessage `json:"webhookPayloads,omitempty"`
  9931  	// WebhookStatuses: The list of webhook call status in the order of call
  9932  	// sequence.
  9933  	WebhookStatuses []*GoogleRpcStatus `json:"webhookStatuses,omitempty"`
  9934  	// WebhookTags: The list of webhook tags in the order of call sequence.
  9935  	WebhookTags []string `json:"webhookTags,omitempty"`
  9936  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  9937  	// unconditionally include in API requests. By default, fields with empty or
  9938  	// default values are omitted from API requests. See
  9939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9940  	// details.
  9941  	ForceSendFields []string `json:"-"`
  9942  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  9943  	// API requests with the JSON null value. By default, fields with empty values
  9944  	// are omitted from API requests. See
  9945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9946  	NullFields []string `json:"-"`
  9947  }
  9948  
  9949  func (s *GoogleCloudDialogflowCxV3beta1QueryResult) MarshalJSON() ([]byte, error) {
  9950  	type NoMethod GoogleCloudDialogflowCxV3beta1QueryResult
  9951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9952  }
  9953  
  9954  func (s *GoogleCloudDialogflowCxV3beta1QueryResult) UnmarshalJSON(data []byte) error {
  9955  	type NoMethod GoogleCloudDialogflowCxV3beta1QueryResult
  9956  	var s1 struct {
  9957  		IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
  9958  		*NoMethod
  9959  	}
  9960  	s1.NoMethod = (*NoMethod)(s)
  9961  	if err := json.Unmarshal(data, &s1); err != nil {
  9962  		return err
  9963  	}
  9964  	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
  9965  	return nil
  9966  }
  9967  
  9968  // GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata: Metadata for
  9969  // ReloadDocument operation.
  9970  type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
  9971  	// GenericMetadata: The generic information of the operation.
  9972  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  9973  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  9974  	// unconditionally include in API requests. By default, fields with empty or
  9975  	// default values are omitted from API requests. See
  9976  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9977  	// details.
  9978  	ForceSendFields []string `json:"-"`
  9979  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  9980  	// API requests with the JSON null value. By default, fields with empty values
  9981  	// are omitted from API requests. See
  9982  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9983  	NullFields []string `json:"-"`
  9984  }
  9985  
  9986  func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  9987  	type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
  9988  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9989  }
  9990  
  9991  // GoogleCloudDialogflowCxV3beta1ResourceName: Resource name and display name.
  9992  type GoogleCloudDialogflowCxV3beta1ResourceName struct {
  9993  	// DisplayName: Display name.
  9994  	DisplayName string `json:"displayName,omitempty"`
  9995  	// Name: Name.
  9996  	Name string `json:"name,omitempty"`
  9997  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  9998  	// unconditionally include in API requests. By default, fields with empty or
  9999  	// default values are omitted from API requests. See
 10000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10001  	// details.
 10002  	ForceSendFields []string `json:"-"`
 10003  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 10004  	// requests with the JSON null value. By default, fields with empty values are
 10005  	// omitted from API requests. See
 10006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10007  	NullFields []string `json:"-"`
 10008  }
 10009  
 10010  func (s *GoogleCloudDialogflowCxV3beta1ResourceName) MarshalJSON() ([]byte, error) {
 10011  	type NoMethod GoogleCloudDialogflowCxV3beta1ResourceName
 10012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10013  }
 10014  
 10015  // GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response message
 10016  // that can be returned by a conversational agent. Response messages are also
 10017  // used for output audio synthesis. The approach is as follows: * If at least
 10018  // one OutputAudioText response is present, then all OutputAudioText responses
 10019  // are linearly concatenated, and the result is used for output audio
 10020  // synthesis. * If the OutputAudioText responses are a mixture of text and
 10021  // SSML, then the concatenated result is treated as SSML; otherwise, the result
 10022  // is treated as either text or SSML as appropriate. The agent designer should
 10023  // ideally use either text or SSML consistently throughout the bot design. *
 10024  // Otherwise, all Text responses are linearly concatenated, and the result is
 10025  // used for output audio synthesis. This approach allows for more sophisticated
 10026  // user experience scenarios, where the text displayed to the user may differ
 10027  // from what is heard.
 10028  type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
 10029  	// Channel: The channel which the response is associated with. Clients can
 10030  	// specify the channel via QueryParameters.channel, and only associated channel
 10031  	// response will be returned.
 10032  	Channel string `json:"channel,omitempty"`
 10033  	// ConversationSuccess: Indicates that the conversation succeeded.
 10034  	ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
 10035  	// EndInteraction: Output only. A signal that indicates the interaction with
 10036  	// the Dialogflow agent has ended. This message is generated by Dialogflow only
 10037  	// when the conversation reaches `END_SESSION` page. It is not supposed to be
 10038  	// defined by the user. It's guaranteed that there is at most one such message
 10039  	// in each response.
 10040  	EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
 10041  	// KnowledgeInfoCard: Represents info card for knowledge answers, to be better
 10042  	// rendered in Dialogflow Messenger.
 10043  	KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
 10044  	// LiveAgentHandoff: Hands off conversation to a human agent.
 10045  	LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
 10046  	// MixedAudio: Output only. An audio response message composed of both the
 10047  	// synthesized Dialogflow agent responses and responses defined via play_audio.
 10048  	// This message is generated by Dialogflow only and not supposed to be defined
 10049  	// by the user.
 10050  	MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
 10051  	// OutputAudioText: A text or ssml response that is preferentially used for TTS
 10052  	// output audio synthesis, as described in the comment on the ResponseMessage
 10053  	// message.
 10054  	OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
 10055  	// Payload: Returns a response containing a custom, platform-specific payload.
 10056  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 10057  	// PlayAudio: Signal that the client should play an audio clip hosted at a
 10058  	// client-specific URI. Dialogflow uses this to construct mixed_audio. However,
 10059  	// Dialogflow itself does not try to read or process the URI in any way.
 10060  	PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
 10061  	// TelephonyTransferCall: A signal that the client should transfer the phone
 10062  	// call connected to this agent to a third-party endpoint.
 10063  	TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
 10064  	// Text: Returns a text response.
 10065  	Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
 10066  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
 10067  	// include in API requests. By default, fields with empty or default values are
 10068  	// omitted from API requests. See
 10069  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10070  	// details.
 10071  	ForceSendFields []string `json:"-"`
 10072  	// NullFields is a list of field names (e.g. "Channel") to include in API
 10073  	// requests with the JSON null value. By default, fields with empty values are
 10074  	// omitted from API requests. See
 10075  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10076  	NullFields []string `json:"-"`
 10077  }
 10078  
 10079  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
 10080  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
 10081  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10082  }
 10083  
 10084  // GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: Indicates
 10085  // that the conversation succeeded, i.e., the bot handled the issue that the
 10086  // customer talked to it about. Dialogflow only uses this to determine which
 10087  // conversations should be counted as successful and doesn't process the
 10088  // metadata in this message in any way. Note that Dialogflow also considers
 10089  // conversations that get to the conversation end page as successful even if
 10090  // they don't return ConversationSuccess. You may set this, for example: * In
 10091  // the entry_fulfillment of a Page if entering the page indicates that the
 10092  // conversation succeeded. * In a webhook response when you determine that you
 10093  // handled the customer issue.
 10094  type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
 10095  	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.
 10096  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 10097  	// ForceSendFields is a list of field names (e.g. "Metadata") to
 10098  	// unconditionally include in API requests. By default, fields with empty or
 10099  	// default values are omitted from API requests. See
 10100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10101  	// details.
 10102  	ForceSendFields []string `json:"-"`
 10103  	// NullFields is a list of field names (e.g. "Metadata") to include in API
 10104  	// requests with the JSON null value. By default, fields with empty values are
 10105  	// omitted from API requests. See
 10106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10107  	NullFields []string `json:"-"`
 10108  }
 10109  
 10110  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
 10111  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
 10112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10113  }
 10114  
 10115  // GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction: Indicates that
 10116  // interaction with the Dialogflow agent has ended. This message is generated
 10117  // by Dialogflow only and not supposed to be defined by the user.
 10118  type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
 10119  }
 10120  
 10121  // GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard: Represents
 10122  // info card response. If the response contains generative knowledge
 10123  // prediction, Dialogflow will return a payload with Infobot Messenger
 10124  // compatible info card. Otherwise, the info card response is skipped.
 10125  type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {
 10126  }
 10127  
 10128  // GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff: Indicates
 10129  // that the conversation should be handed off to a live agent. Dialogflow only
 10130  // uses this to determine which conversations were handed off to a human agent
 10131  // for measurement purposes. What else to do with this signal is up to you and
 10132  // your handoff procedures. You may set this, for example: * In the
 10133  // entry_fulfillment of a Page if entering the page indicates something went
 10134  // extremely wrong in the conversation. * In a webhook response when you
 10135  // determine that the customer issue can only be handled by a human.
 10136  type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
 10137  	// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't
 10138  	// impose any structure on this.
 10139  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 10140  	// ForceSendFields is a list of field names (e.g. "Metadata") to
 10141  	// unconditionally include in API requests. By default, fields with empty or
 10142  	// default values are omitted from API requests. See
 10143  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10144  	// details.
 10145  	ForceSendFields []string `json:"-"`
 10146  	// NullFields is a list of field names (e.g. "Metadata") to include in API
 10147  	// requests with the JSON null value. By default, fields with empty values are
 10148  	// omitted from API requests. See
 10149  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10150  	NullFields []string `json:"-"`
 10151  }
 10152  
 10153  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
 10154  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
 10155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10156  }
 10157  
 10158  // GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents an audio
 10159  // message that is composed of both segments synthesized from the Dialogflow
 10160  // agent prompts and ones hosted externally at the specified URIs. The external
 10161  // URIs are specified via play_audio. This message is generated by Dialogflow
 10162  // only and not supposed to be defined by the user.
 10163  type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
 10164  	// Segments: Segments this audio response is composed of.
 10165  	Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
 10166  	// ForceSendFields is a list of field names (e.g. "Segments") to
 10167  	// unconditionally include in API requests. By default, fields with empty or
 10168  	// default values are omitted from API requests. See
 10169  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10170  	// details.
 10171  	ForceSendFields []string `json:"-"`
 10172  	// NullFields is a list of field names (e.g. "Segments") to include in API
 10173  	// requests with the JSON null value. By default, fields with empty values are
 10174  	// omitted from API requests. See
 10175  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10176  	NullFields []string `json:"-"`
 10177  }
 10178  
 10179  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
 10180  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
 10181  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10182  }
 10183  
 10184  // GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment: Represents
 10185  // one segment of audio.
 10186  type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
 10187  	// AllowPlaybackInterruption: Output only. Whether the playback of this segment
 10188  	// can be interrupted by the end user's speech and the client should then start
 10189  	// the next Dialogflow request.
 10190  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
 10191  	// Audio: Raw audio synthesized from the Dialogflow agent's response using the
 10192  	// output config specified in the request.
 10193  	Audio string `json:"audio,omitempty"`
 10194  	// Uri: Client-specific URI that points to an audio clip accessible to the
 10195  	// client. Dialogflow does not impose any validation on it.
 10196  	Uri string `json:"uri,omitempty"`
 10197  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
 10198  	// to unconditionally include in API requests. By default, fields with empty or
 10199  	// default values are omitted from API requests. See
 10200  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10201  	// details.
 10202  	ForceSendFields []string `json:"-"`
 10203  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
 10204  	// include in API requests with the JSON null value. By default, fields with
 10205  	// empty values are omitted from API requests. See
 10206  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10207  	NullFields []string `json:"-"`
 10208  }
 10209  
 10210  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
 10211  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
 10212  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10213  }
 10214  
 10215  // GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text or ssml
 10216  // response that is preferentially used for TTS output audio synthesis, as
 10217  // described in the comment on the ResponseMessage message.
 10218  type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
 10219  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
 10220  	// can be interrupted by the end user's speech and the client can then starts
 10221  	// the next Dialogflow request.
 10222  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
 10223  	// Ssml: The SSML text to be synthesized. For more information, see SSML
 10224  	// (/speech/text-to-speech/docs/ssml).
 10225  	Ssml string `json:"ssml,omitempty"`
 10226  	// Text: The raw text to be synthesized.
 10227  	Text string `json:"text,omitempty"`
 10228  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
 10229  	// to unconditionally include in API requests. By default, fields with empty or
 10230  	// default values are omitted from API requests. See
 10231  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10232  	// details.
 10233  	ForceSendFields []string `json:"-"`
 10234  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
 10235  	// include in API requests with the JSON null value. By default, fields with
 10236  	// empty values are omitted from API requests. See
 10237  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10238  	NullFields []string `json:"-"`
 10239  }
 10240  
 10241  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
 10242  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
 10243  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10244  }
 10245  
 10246  // GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an audio
 10247  // clip to be played by the client as part of the response.
 10248  type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
 10249  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
 10250  	// can be interrupted by the end user's speech and the client can then starts
 10251  	// the next Dialogflow request.
 10252  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
 10253  	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose any
 10254  	// validation on this value. It is specific to the client that reads it.
 10255  	AudioUri string `json:"audioUri,omitempty"`
 10256  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
 10257  	// to unconditionally include in API requests. By default, fields with empty or
 10258  	// default values are omitted from API requests. See
 10259  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10260  	// details.
 10261  	ForceSendFields []string `json:"-"`
 10262  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
 10263  	// include in API requests with the JSON null value. By default, fields with
 10264  	// empty values are omitted from API requests. See
 10265  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10266  	NullFields []string `json:"-"`
 10267  }
 10268  
 10269  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
 10270  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
 10271  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10272  }
 10273  
 10274  // GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall:
 10275  // Represents the signal that telles the client to transfer the phone call
 10276  // connected to the agent to a third-party endpoint.
 10277  type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {
 10278  	// PhoneNumber: Transfer the call to a phone number in E.164 format
 10279  	// (https://en.wikipedia.org/wiki/E.164).
 10280  	PhoneNumber string `json:"phoneNumber,omitempty"`
 10281  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 10282  	// unconditionally include in API requests. By default, fields with empty or
 10283  	// default values are omitted from API requests. See
 10284  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10285  	// details.
 10286  	ForceSendFields []string `json:"-"`
 10287  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 10288  	// requests with the JSON null value. By default, fields with empty values are
 10289  	// omitted from API requests. See
 10290  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10291  	NullFields []string `json:"-"`
 10292  }
 10293  
 10294  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
 10295  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
 10296  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10297  }
 10298  
 10299  // GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response
 10300  // message.
 10301  type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
 10302  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
 10303  	// can be interrupted by the end user's speech and the client can then starts
 10304  	// the next Dialogflow request.
 10305  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
 10306  	// Text: Required. A collection of text responses.
 10307  	Text []string `json:"text,omitempty"`
 10308  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
 10309  	// to unconditionally include in API requests. By default, fields with empty or
 10310  	// default values are omitted from API requests. See
 10311  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10312  	// details.
 10313  	ForceSendFields []string `json:"-"`
 10314  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
 10315  	// include in API requests with the JSON null value. By default, fields with
 10316  	// empty values are omitted from API requests. See
 10317  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10318  	NullFields []string `json:"-"`
 10319  }
 10320  
 10321  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
 10322  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
 10323  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10324  }
 10325  
 10326  // GoogleCloudDialogflowCxV3beta1RestoreAgentRequest: The request message for
 10327  // Agents.RestoreAgent.
 10328  type GoogleCloudDialogflowCxV3beta1RestoreAgentRequest struct {
 10329  	// AgentContent: Uncompressed raw byte content for agent.
 10330  	AgentContent string `json:"agentContent,omitempty"`
 10331  	// AgentUri: The Google Cloud Storage (https://cloud.google.com/storage/docs/)
 10332  	// URI to restore agent from. The format of this URI must be `gs:///`.
 10333  	// Dialogflow performs a read operation for the Cloud Storage object on the
 10334  	// caller's behalf, so your request authentication must have read permissions
 10335  	// for the object. For more information, see Dialogflow access control
 10336  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
 10337  	AgentUri string `json:"agentUri,omitempty"`
 10338  	// GitSource: Setting for restoring from a git branch
 10339  	GitSource *GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource `json:"gitSource,omitempty"`
 10340  	// RestoreOption: Agent restore mode. If not specified, `KEEP` is assumed.
 10341  	//
 10342  	// Possible values:
 10343  	//   "RESTORE_OPTION_UNSPECIFIED" - Unspecified. Treated as KEEP.
 10344  	//   "KEEP" - Always respect the settings from the exported agent file. It may
 10345  	// cause a restoration failure if some settings (e.g. model type) are not
 10346  	// supported in the target agent.
 10347  	//   "FALLBACK" - Fallback to default settings if some settings are not
 10348  	// supported in the target agent.
 10349  	RestoreOption string `json:"restoreOption,omitempty"`
 10350  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 10351  	// unconditionally include in API requests. By default, fields with empty or
 10352  	// default values are omitted from API requests. See
 10353  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10354  	// details.
 10355  	ForceSendFields []string `json:"-"`
 10356  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 10357  	// requests with the JSON null value. By default, fields with empty values are
 10358  	// omitted from API requests. See
 10359  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10360  	NullFields []string `json:"-"`
 10361  }
 10362  
 10363  func (s *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest) MarshalJSON() ([]byte, error) {
 10364  	type NoMethod GoogleCloudDialogflowCxV3beta1RestoreAgentRequest
 10365  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10366  }
 10367  
 10368  // GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource: Settings for
 10369  // restoring from a git branch
 10370  type GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource struct {
 10371  	// TrackingBranch: tracking branch for the git pull
 10372  	TrackingBranch string `json:"trackingBranch,omitempty"`
 10373  	// ForceSendFields is a list of field names (e.g. "TrackingBranch") to
 10374  	// unconditionally include in API requests. By default, fields with empty or
 10375  	// default values are omitted from API requests. See
 10376  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10377  	// details.
 10378  	ForceSendFields []string `json:"-"`
 10379  	// NullFields is a list of field names (e.g. "TrackingBranch") to include in
 10380  	// API requests with the JSON null value. By default, fields with empty values
 10381  	// are omitted from API requests. See
 10382  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10383  	NullFields []string `json:"-"`
 10384  }
 10385  
 10386  func (s *GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource) MarshalJSON() ([]byte, error) {
 10387  	type NoMethod GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource
 10388  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10389  }
 10390  
 10391  // GoogleCloudDialogflowCxV3beta1RolloutConfig: The configuration for auto
 10392  // rollout.
 10393  type GoogleCloudDialogflowCxV3beta1RolloutConfig struct {
 10394  	// FailureCondition: The conditions that are used to evaluate the failure of a
 10395  	// rollout step. If not specified, no rollout steps will fail. E.g.
 10396  	// "containment_rate < 10% OR average_turn_count < 3". See the conditions
 10397  	// reference (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
 10398  	FailureCondition string `json:"failureCondition,omitempty"`
 10399  	// RolloutCondition: The conditions that are used to evaluate the success of a
 10400  	// rollout step. If not specified, all rollout steps will proceed to the next
 10401  	// one unless failure conditions are met. E.g. "containment_rate > 60% AND
 10402  	// callback_rate < 20%". See the conditions reference
 10403  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
 10404  	RolloutCondition string `json:"rolloutCondition,omitempty"`
 10405  	// RolloutSteps: Steps to roll out a flow version. Steps should be sorted by
 10406  	// percentage in ascending order.
 10407  	RolloutSteps []*GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep `json:"rolloutSteps,omitempty"`
 10408  	// ForceSendFields is a list of field names (e.g. "FailureCondition") to
 10409  	// unconditionally include in API requests. By default, fields with empty or
 10410  	// default values are omitted from API requests. See
 10411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10412  	// details.
 10413  	ForceSendFields []string `json:"-"`
 10414  	// NullFields is a list of field names (e.g. "FailureCondition") to include in
 10415  	// API requests with the JSON null value. By default, fields with empty values
 10416  	// are omitted from API requests. See
 10417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10418  	NullFields []string `json:"-"`
 10419  }
 10420  
 10421  func (s *GoogleCloudDialogflowCxV3beta1RolloutConfig) MarshalJSON() ([]byte, error) {
 10422  	type NoMethod GoogleCloudDialogflowCxV3beta1RolloutConfig
 10423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10424  }
 10425  
 10426  // GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep: A single rollout
 10427  // step with specified traffic allocation.
 10428  type GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep struct {
 10429  	// DisplayName: The name of the rollout step;
 10430  	DisplayName string `json:"displayName,omitempty"`
 10431  	// MinDuration: The minimum time that this step should last. Should be longer
 10432  	// than 1 hour. If not set, the default minimum duration for each step will be
 10433  	// 1 hour.
 10434  	MinDuration string `json:"minDuration,omitempty"`
 10435  	// TrafficPercent: The percentage of traffic allocated to the flow version of
 10436  	// this rollout step. (0%, 100%].
 10437  	TrafficPercent int64 `json:"trafficPercent,omitempty"`
 10438  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 10439  	// unconditionally include in API requests. By default, fields with empty or
 10440  	// default values are omitted from API requests. See
 10441  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10442  	// details.
 10443  	ForceSendFields []string `json:"-"`
 10444  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 10445  	// requests with the JSON null value. By default, fields with empty values are
 10446  	// omitted from API requests. See
 10447  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10448  	NullFields []string `json:"-"`
 10449  }
 10450  
 10451  func (s *GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep) MarshalJSON() ([]byte, error) {
 10452  	type NoMethod GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep
 10453  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10454  }
 10455  
 10456  // GoogleCloudDialogflowCxV3beta1RolloutState: State of the auto-rollout
 10457  // process.
 10458  type GoogleCloudDialogflowCxV3beta1RolloutState struct {
 10459  	// StartTime: Start time of the current step.
 10460  	StartTime string `json:"startTime,omitempty"`
 10461  	// Step: Display name of the current auto rollout step.
 10462  	Step string `json:"step,omitempty"`
 10463  	// StepIndex: Index of the current step in the auto rollout steps list.
 10464  	StepIndex int64 `json:"stepIndex,omitempty"`
 10465  	// ForceSendFields is a list of field names (e.g. "StartTime") to
 10466  	// unconditionally include in API requests. By default, fields with empty or
 10467  	// default values are omitted from API requests. See
 10468  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10469  	// details.
 10470  	ForceSendFields []string `json:"-"`
 10471  	// NullFields is a list of field names (e.g. "StartTime") to include in API
 10472  	// requests with the JSON null value. By default, fields with empty values are
 10473  	// omitted from API requests. See
 10474  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10475  	NullFields []string `json:"-"`
 10476  }
 10477  
 10478  func (s *GoogleCloudDialogflowCxV3beta1RolloutState) MarshalJSON() ([]byte, error) {
 10479  	type NoMethod GoogleCloudDialogflowCxV3beta1RolloutState
 10480  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10481  }
 10482  
 10483  // GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata: Metadata returned
 10484  // for the Environments.RunContinuousTest long running operation.
 10485  type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
 10486  	// Errors: The test errors.
 10487  	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
 10488  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
 10489  	// include in API requests. By default, fields with empty or default values are
 10490  	// omitted from API requests. See
 10491  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10492  	// details.
 10493  	ForceSendFields []string `json:"-"`
 10494  	// NullFields is a list of field names (e.g. "Errors") to include in API
 10495  	// requests with the JSON null value. By default, fields with empty values are
 10496  	// omitted from API requests. See
 10497  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10498  	NullFields []string `json:"-"`
 10499  }
 10500  
 10501  func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
 10502  	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
 10503  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10504  }
 10505  
 10506  // GoogleCloudDialogflowCxV3beta1RunContinuousTestRequest: The request message
 10507  // for Environments.RunContinuousTest.
 10508  type GoogleCloudDialogflowCxV3beta1RunContinuousTestRequest struct {
 10509  }
 10510  
 10511  // GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse: The response
 10512  // message for Environments.RunContinuousTest.
 10513  type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
 10514  	// ContinuousTestResult: The result for a continuous test run.
 10515  	ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
 10516  	// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") to
 10517  	// unconditionally include in API requests. By default, fields with empty or
 10518  	// default values are omitted from API requests. See
 10519  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10520  	// details.
 10521  	ForceSendFields []string `json:"-"`
 10522  	// NullFields is a list of field names (e.g. "ContinuousTestResult") to include
 10523  	// in API requests with the JSON null value. By default, fields with empty
 10524  	// values are omitted from API requests. See
 10525  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10526  	NullFields []string `json:"-"`
 10527  }
 10528  
 10529  func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
 10530  	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
 10531  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10532  }
 10533  
 10534  // GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata: Metadata returned for the
 10535  // TestCases.RunTestCase long running operation. This message currently has no
 10536  // fields.
 10537  type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
 10538  }
 10539  
 10540  // GoogleCloudDialogflowCxV3beta1RunTestCaseRequest: The request message for
 10541  // TestCases.RunTestCase.
 10542  type GoogleCloudDialogflowCxV3beta1RunTestCaseRequest struct {
 10543  	// Environment: Optional. Environment name. If not set, draft environment is
 10544  	// assumed. Format: `projects//locations//agents//environments/`.
 10545  	Environment string `json:"environment,omitempty"`
 10546  	// ForceSendFields is a list of field names (e.g. "Environment") to
 10547  	// unconditionally include in API requests. By default, fields with empty or
 10548  	// default values are omitted from API requests. See
 10549  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10550  	// details.
 10551  	ForceSendFields []string `json:"-"`
 10552  	// NullFields is a list of field names (e.g. "Environment") to include in API
 10553  	// requests with the JSON null value. By default, fields with empty values are
 10554  	// omitted from API requests. See
 10555  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10556  	NullFields []string `json:"-"`
 10557  }
 10558  
 10559  func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest) MarshalJSON() ([]byte, error) {
 10560  	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseRequest
 10561  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10562  }
 10563  
 10564  // GoogleCloudDialogflowCxV3beta1RunTestCaseResponse: The response message for
 10565  // TestCases.RunTestCase.
 10566  type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
 10567  	// Result: The result.
 10568  	Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
 10569  	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
 10570  	// include in API requests. By default, fields with empty or default values are
 10571  	// omitted from API requests. See
 10572  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10573  	// details.
 10574  	ForceSendFields []string `json:"-"`
 10575  	// NullFields is a list of field names (e.g. "Result") to include in API
 10576  	// requests with the JSON null value. By default, fields with empty values are
 10577  	// omitted from API requests. See
 10578  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10579  	NullFields []string `json:"-"`
 10580  }
 10581  
 10582  func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
 10583  	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
 10584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10585  }
 10586  
 10587  // GoogleCloudDialogflowCxV3beta1SafetySettings: Settings for Generative
 10588  // Safety.
 10589  type GoogleCloudDialogflowCxV3beta1SafetySettings struct {
 10590  	// BannedPhrases: Banned phrases for generated text.
 10591  	BannedPhrases []*GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase `json:"bannedPhrases,omitempty"`
 10592  	// ForceSendFields is a list of field names (e.g. "BannedPhrases") to
 10593  	// unconditionally include in API requests. By default, fields with empty or
 10594  	// default values are omitted from API requests. See
 10595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10596  	// details.
 10597  	ForceSendFields []string `json:"-"`
 10598  	// NullFields is a list of field names (e.g. "BannedPhrases") to include in API
 10599  	// requests with the JSON null value. By default, fields with empty values are
 10600  	// omitted from API requests. See
 10601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10602  	NullFields []string `json:"-"`
 10603  }
 10604  
 10605  func (s *GoogleCloudDialogflowCxV3beta1SafetySettings) MarshalJSON() ([]byte, error) {
 10606  	type NoMethod GoogleCloudDialogflowCxV3beta1SafetySettings
 10607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10608  }
 10609  
 10610  // GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase: Text input which can be
 10611  // used for prompt or banned phrases.
 10612  type GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase struct {
 10613  	// LanguageCode: Required. Language code of the phrase.
 10614  	LanguageCode string `json:"languageCode,omitempty"`
 10615  	// Text: Required. Text input which can be used for prompt or banned phrases.
 10616  	Text string `json:"text,omitempty"`
 10617  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 10618  	// unconditionally include in API requests. By default, fields with empty or
 10619  	// default values are omitted from API requests. See
 10620  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10621  	// details.
 10622  	ForceSendFields []string `json:"-"`
 10623  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 10624  	// requests with the JSON null value. By default, fields with empty values are
 10625  	// omitted from API requests. See
 10626  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10627  	NullFields []string `json:"-"`
 10628  }
 10629  
 10630  func (s *GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase) MarshalJSON() ([]byte, error) {
 10631  	type NoMethod GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase
 10632  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10633  }
 10634  
 10635  // GoogleCloudDialogflowCxV3beta1SearchConfig: Search configuration for UCS
 10636  // search queries.
 10637  type GoogleCloudDialogflowCxV3beta1SearchConfig struct {
 10638  	// BoostSpecs: Optional. Boosting configuration for the datastores.
 10639  	BoostSpecs []*GoogleCloudDialogflowCxV3beta1BoostSpecs `json:"boostSpecs,omitempty"`
 10640  	// FilterSpecs: Optional. Filter configuration for the datastores.
 10641  	FilterSpecs []*GoogleCloudDialogflowCxV3beta1FilterSpecs `json:"filterSpecs,omitempty"`
 10642  	// ForceSendFields is a list of field names (e.g. "BoostSpecs") to
 10643  	// unconditionally include in API requests. By default, fields with empty or
 10644  	// default values are omitted from API requests. See
 10645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10646  	// details.
 10647  	ForceSendFields []string `json:"-"`
 10648  	// NullFields is a list of field names (e.g. "BoostSpecs") to include in API
 10649  	// requests with the JSON null value. By default, fields with empty values are
 10650  	// omitted from API requests. See
 10651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10652  	NullFields []string `json:"-"`
 10653  }
 10654  
 10655  func (s *GoogleCloudDialogflowCxV3beta1SearchConfig) MarshalJSON() ([]byte, error) {
 10656  	type NoMethod GoogleCloudDialogflowCxV3beta1SearchConfig
 10657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10658  }
 10659  
 10660  // GoogleCloudDialogflowCxV3beta1SecuritySettings: Represents the settings
 10661  // related to security issues, such as data redaction and data retention. It
 10662  // may take hours for updates on the settings to propagate to all the related
 10663  // components and take effect.
 10664  type GoogleCloudDialogflowCxV3beta1SecuritySettings struct {
 10665  	// AudioExportSettings: Controls audio export settings for post-conversation
 10666  	// analytics when ingesting audio to conversations via
 10667  	// Participants.AnalyzeContent or Participants.StreamingAnalyzeContent. If
 10668  	// retention_strategy is set to REMOVE_AFTER_CONVERSATION or
 10669  	// audio_export_settings.gcs_bucket is empty, audio export is disabled. If
 10670  	// audio export is enabled, audio is recorded and saved to
 10671  	// audio_export_settings.gcs_bucket, subject to retention policy of
 10672  	// audio_export_settings.gcs_bucket. This setting won't effect audio input for
 10673  	// implicit sessions via Sessions.DetectIntent or
 10674  	// Sessions.StreamingDetectIntent.
 10675  	AudioExportSettings *GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings `json:"audioExportSettings,omitempty"`
 10676  	// DeidentifyTemplate: DLP (https://cloud.google.com/dlp/docs) deidentify
 10677  	// template name. Use this template to define de-identification configuration
 10678  	// for the content. The `DLP De-identify Templates Reader` role is needed on
 10679  	// the Dialogflow service identity service account (has the form
 10680  	// `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`) for your
 10681  	// agent's project. If empty, Dialogflow replaces sensitive info with
 10682  	// `[redacted]` text. The template name will have one of the following formats:
 10683  	// `projects//locations//deidentifyTemplates/` OR
 10684  	// `organizations//locations//deidentifyTemplates/` Note: `deidentify_template`
 10685  	// must be located in the same region as the `SecuritySettings`.
 10686  	DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
 10687  	// DisplayName: Required. The human-readable name of the security settings,
 10688  	// unique within the location.
 10689  	DisplayName string `json:"displayName,omitempty"`
 10690  	// InsightsExportSettings: Controls conversation exporting settings to Insights
 10691  	// after conversation is completed. If retention_strategy is set to
 10692  	// REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter what you
 10693  	// configure here.
 10694  	InsightsExportSettings *GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings `json:"insightsExportSettings,omitempty"`
 10695  	// InspectTemplate: DLP (https://cloud.google.com/dlp/docs) inspect template
 10696  	// name. Use this template to define inspect base settings. The `DLP Inspect
 10697  	// Templates Reader` role is needed on the Dialogflow service identity service
 10698  	// account (has the form
 10699  	// `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`) for your
 10700  	// agent's project. If empty, we use the default DLP inspect config. The
 10701  	// template name will have one of the following formats:
 10702  	// `projects//locations//inspectTemplates/` OR
 10703  	// `organizations//locations//inspectTemplates/` Note: `inspect_template` must
 10704  	// be located in the same region as the `SecuritySettings`.
 10705  	InspectTemplate string `json:"inspectTemplate,omitempty"`
 10706  	// Name: Resource name of the settings. Required for the
 10707  	// SecuritySettingsService.UpdateSecuritySettings method.
 10708  	// SecuritySettingsService.CreateSecuritySettings populates the name
 10709  	// automatically. Format: `projects//locations//securitySettings/`.
 10710  	Name string `json:"name,omitempty"`
 10711  	// PurgeDataTypes: List of types of data to remove when retention settings
 10712  	// triggers purge.
 10713  	//
 10714  	// Possible values:
 10715  	//   "PURGE_DATA_TYPE_UNSPECIFIED" - Unspecified. Do not use.
 10716  	//   "DIALOGFLOW_HISTORY" - Dialogflow history. This does not include Cloud
 10717  	// logging, which is owned by the user - not Dialogflow.
 10718  	PurgeDataTypes []string `json:"purgeDataTypes,omitempty"`
 10719  	// RedactionScope: Defines the data for which Dialogflow applies redaction.
 10720  	// Dialogflow does not redact data that it does not have access to – for
 10721  	// example, Cloud logging.
 10722  	//
 10723  	// Possible values:
 10724  	//   "REDACTION_SCOPE_UNSPECIFIED" - Don't redact any kind of data.
 10725  	//   "REDACT_DISK_STORAGE" - On data to be written to disk or similar devices
 10726  	// that are capable of holding data even if power is disconnected. This
 10727  	// includes data that are temporarily saved on disk.
 10728  	RedactionScope string `json:"redactionScope,omitempty"`
 10729  	// RedactionStrategy: Strategy that defines how we do redaction.
 10730  	//
 10731  	// Possible values:
 10732  	//   "REDACTION_STRATEGY_UNSPECIFIED" - Do not redact.
 10733  	//   "REDACT_WITH_SERVICE" - Call redaction service to clean up the data to be
 10734  	// persisted.
 10735  	RedactionStrategy string `json:"redactionStrategy,omitempty"`
 10736  	// RetentionStrategy: Specifies the retention behavior defined by
 10737  	// SecuritySettings.RetentionStrategy.
 10738  	//
 10739  	// Possible values:
 10740  	//   "RETENTION_STRATEGY_UNSPECIFIED" - Retains the persisted data with
 10741  	// Dialogflow's internal default 365d TTLs.
 10742  	//   "REMOVE_AFTER_CONVERSATION" - Removes data when the conversation ends. If
 10743  	// there is no Conversation explicitly established, a default conversation ends
 10744  	// when the corresponding Dialogflow session ends.
 10745  	RetentionStrategy string `json:"retentionStrategy,omitempty"`
 10746  	// RetentionWindowDays: Retains data in interaction logging for the specified
 10747  	// number of days. This does not apply to Cloud logging, which is owned by the
 10748  	// user - not Dialogflow. User must set a value lower than Dialogflow's default
 10749  	// 365d TTL (30 days for Agent Assist traffic), higher value will be ignored
 10750  	// and use default. Setting a value higher than that has no effect. A missing
 10751  	// value or setting to 0 also means we use default TTL. When data retention
 10752  	// configuration is changed, it only applies to the data created after the
 10753  	// change; the TTL of existing data created before the change stays intact.
 10754  	RetentionWindowDays int64 `json:"retentionWindowDays,omitempty"`
 10755  
 10756  	// ServerResponse contains the HTTP response code and headers from the server.
 10757  	googleapi.ServerResponse `json:"-"`
 10758  	// ForceSendFields is a list of field names (e.g. "AudioExportSettings") to
 10759  	// unconditionally include in API requests. By default, fields with empty or
 10760  	// default values are omitted from API requests. See
 10761  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10762  	// details.
 10763  	ForceSendFields []string `json:"-"`
 10764  	// NullFields is a list of field names (e.g. "AudioExportSettings") to include
 10765  	// in API requests with the JSON null value. By default, fields with empty
 10766  	// values are omitted from API requests. See
 10767  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10768  	NullFields []string `json:"-"`
 10769  }
 10770  
 10771  func (s *GoogleCloudDialogflowCxV3beta1SecuritySettings) MarshalJSON() ([]byte, error) {
 10772  	type NoMethod GoogleCloudDialogflowCxV3beta1SecuritySettings
 10773  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10774  }
 10775  
 10776  // GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings: Settings
 10777  // for exporting audio.
 10778  type GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings struct {
 10779  	// AudioExportPattern: Filename pattern for exported audio.
 10780  	AudioExportPattern string `json:"audioExportPattern,omitempty"`
 10781  	// AudioFormat: File format for exported audio file. Currently only in
 10782  	// telephony recordings.
 10783  	//
 10784  	// Possible values:
 10785  	//   "AUDIO_FORMAT_UNSPECIFIED" - Unspecified. Do not use.
 10786  	//   "MULAW" - G.711 mu-law PCM with 8kHz sample rate.
 10787  	//   "MP3" - MP3 file format.
 10788  	//   "OGG" - OGG Vorbis.
 10789  	AudioFormat string `json:"audioFormat,omitempty"`
 10790  	// EnableAudioRedaction: Enable audio redaction if it is true. Note that this
 10791  	// only redacts end-user audio data; Synthesised audio from the virtual agent
 10792  	// is not redacted.
 10793  	EnableAudioRedaction bool `json:"enableAudioRedaction,omitempty"`
 10794  	// GcsBucket: Cloud Storage bucket to export audio record to. Setting this
 10795  	// field would grant the Storage Object Creator role to the Dialogflow Service
 10796  	// Agent. API caller that tries to modify this field should have the permission
 10797  	// of storage.buckets.setIamPolicy.
 10798  	GcsBucket string `json:"gcsBucket,omitempty"`
 10799  	// StoreTtsAudio: Whether to store TTS audio. By default, TTS audio from the
 10800  	// virtual agent is not exported.
 10801  	StoreTtsAudio bool `json:"storeTtsAudio,omitempty"`
 10802  	// ForceSendFields is a list of field names (e.g. "AudioExportPattern") to
 10803  	// unconditionally include in API requests. By default, fields with empty or
 10804  	// default values are omitted from API requests. See
 10805  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10806  	// details.
 10807  	ForceSendFields []string `json:"-"`
 10808  	// NullFields is a list of field names (e.g. "AudioExportPattern") to include
 10809  	// in API requests with the JSON null value. By default, fields with empty
 10810  	// values are omitted from API requests. See
 10811  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10812  	NullFields []string `json:"-"`
 10813  }
 10814  
 10815  func (s *GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings) MarshalJSON() ([]byte, error) {
 10816  	type NoMethod GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings
 10817  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10818  }
 10819  
 10820  // GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings:
 10821  // Settings for exporting conversations to Insights
 10822  // (https://cloud.google.com/contact-center/insights/docs).
 10823  type GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings struct {
 10824  	// EnableInsightsExport: If enabled, we will automatically exports
 10825  	// conversations to Insights and Insights runs its analyzers.
 10826  	EnableInsightsExport bool `json:"enableInsightsExport,omitempty"`
 10827  	// ForceSendFields is a list of field names (e.g. "EnableInsightsExport") to
 10828  	// unconditionally include in API requests. By default, fields with empty or
 10829  	// default values are omitted from API requests. See
 10830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10831  	// details.
 10832  	ForceSendFields []string `json:"-"`
 10833  	// NullFields is a list of field names (e.g. "EnableInsightsExport") to include
 10834  	// in API requests with the JSON null value. By default, fields with empty
 10835  	// values are omitted from API requests. See
 10836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10837  	NullFields []string `json:"-"`
 10838  }
 10839  
 10840  func (s *GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings) MarshalJSON() ([]byte, error) {
 10841  	type NoMethod GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings
 10842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10843  }
 10844  
 10845  // GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult: The result of
 10846  // sentiment analysis. Sentiment analysis inspects user input and identifies
 10847  // the prevailing subjective opinion, especially to determine a user's attitude
 10848  // as positive, negative, or neutral.
 10849  type GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult struct {
 10850  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 10851  	// the absolute magnitude of sentiment, regardless of score (positive or
 10852  	// negative).
 10853  	Magnitude float64 `json:"magnitude,omitempty"`
 10854  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 10855  	// sentiment).
 10856  	Score float64 `json:"score,omitempty"`
 10857  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 10858  	// unconditionally include in API requests. By default, fields with empty or
 10859  	// default values are omitted from API requests. See
 10860  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10861  	// details.
 10862  	ForceSendFields []string `json:"-"`
 10863  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 10864  	// requests with the JSON null value. By default, fields with empty values are
 10865  	// omitted from API requests. See
 10866  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10867  	NullFields []string `json:"-"`
 10868  }
 10869  
 10870  func (s *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 10871  	type NoMethod GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
 10872  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10873  }
 10874  
 10875  func (s *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult) UnmarshalJSON(data []byte) error {
 10876  	type NoMethod GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
 10877  	var s1 struct {
 10878  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 10879  		Score     gensupport.JSONFloat64 `json:"score"`
 10880  		*NoMethod
 10881  	}
 10882  	s1.NoMethod = (*NoMethod)(s)
 10883  	if err := json.Unmarshal(data, &s1); err != nil {
 10884  		return err
 10885  	}
 10886  	s.Magnitude = float64(s1.Magnitude)
 10887  	s.Score = float64(s1.Score)
 10888  	return nil
 10889  }
 10890  
 10891  // GoogleCloudDialogflowCxV3beta1SessionEntityType: Session entity types are
 10892  // referred to as **User** entity types and are entities that are built for an
 10893  // individual user such as favorites, preferences, playlists, and so on. You
 10894  // can redefine a session entity type at the session level to extend or replace
 10895  // a custom entity type at the user session level (we refer to the entity types
 10896  // defined at the agent level as "custom entity types"). Note: session entity
 10897  // types apply to all queries, regardless of the language. For more information
 10898  // about entity types, see the Dialogflow documentation
 10899  // (https://cloud.google.com/dialogflow/docs/entities-overview).
 10900  type GoogleCloudDialogflowCxV3beta1SessionEntityType struct {
 10901  	// Entities: Required. The collection of entities to override or supplement the
 10902  	// custom entity type.
 10903  	Entities []*GoogleCloudDialogflowCxV3beta1EntityTypeEntity `json:"entities,omitempty"`
 10904  	// EntityOverrideMode: Required. Indicates whether the additional data should
 10905  	// override or supplement the custom entity type definition.
 10906  	//
 10907  	// Possible values:
 10908  	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be
 10909  	// never used.
 10910  	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities
 10911  	// overrides the collection of entities in the corresponding custom entity
 10912  	// type.
 10913  	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities
 10914  	// extends the collection of entities in the corresponding custom entity type.
 10915  	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
 10916  	// `GetSessionEntityType`, `CreateSessionEntityType` and
 10917  	// `UpdateSessionEntityType` only return the additional entities added in this
 10918  	// session entity type. If you want to get the supplemented list, please call
 10919  	// EntityTypes.GetEntityType on the custom entity type and merge.
 10920  	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
 10921  	// Name: Required. The unique identifier of the session entity type. Format:
 10922  	// `projects//locations//agents//sessions//entityTypes/` or
 10923  	// `projects//locations//agents//environments//sessions//entityTypes/`. If
 10924  	// `Environment ID` is not specified, we assume default 'draft' environment.
 10925  	Name string `json:"name,omitempty"`
 10926  
 10927  	// ServerResponse contains the HTTP response code and headers from the server.
 10928  	googleapi.ServerResponse `json:"-"`
 10929  	// ForceSendFields is a list of field names (e.g. "Entities") to
 10930  	// unconditionally include in API requests. By default, fields with empty or
 10931  	// default values are omitted from API requests. See
 10932  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10933  	// details.
 10934  	ForceSendFields []string `json:"-"`
 10935  	// NullFields is a list of field names (e.g. "Entities") to include in API
 10936  	// requests with the JSON null value. By default, fields with empty values are
 10937  	// omitted from API requests. See
 10938  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10939  	NullFields []string `json:"-"`
 10940  }
 10941  
 10942  func (s *GoogleCloudDialogflowCxV3beta1SessionEntityType) MarshalJSON() ([]byte, error) {
 10943  	type NoMethod GoogleCloudDialogflowCxV3beta1SessionEntityType
 10944  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10945  }
 10946  
 10947  // GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session information
 10948  // communicated to and from the webhook.
 10949  type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
 10950  	// Parameters: Optional for WebhookRequest. Optional for WebhookResponse. All
 10951  	// parameters collected from forms and intents during the session. Parameters
 10952  	// can be created, updated, or removed by the webhook. To remove a parameter
 10953  	// from the session, the webhook should explicitly set the parameter value to
 10954  	// null in WebhookResponse. The map is keyed by parameters' display names.
 10955  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 10956  	// Session: Always present for WebhookRequest. Ignored for WebhookResponse. The
 10957  	// unique identifier of the session. This field can be used by the webhook to
 10958  	// identify a session. Format: `projects//locations//agents//sessions/` or
 10959  	// `projects//locations//agents//environments//sessions/` if environment is
 10960  	// specified.
 10961  	Session string `json:"session,omitempty"`
 10962  	// ForceSendFields is a list of field names (e.g. "Parameters") to
 10963  	// unconditionally include in API requests. By default, fields with empty or
 10964  	// default values are omitted from API requests. See
 10965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10966  	// details.
 10967  	ForceSendFields []string `json:"-"`
 10968  	// NullFields is a list of field names (e.g. "Parameters") to include in API
 10969  	// requests with the JSON null value. By default, fields with empty values are
 10970  	// omitted from API requests. See
 10971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10972  	NullFields []string `json:"-"`
 10973  }
 10974  
 10975  func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
 10976  	type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
 10977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10978  }
 10979  
 10980  // GoogleCloudDialogflowCxV3beta1SpeechToTextSettings: Settings related to
 10981  // speech recognition.
 10982  type GoogleCloudDialogflowCxV3beta1SpeechToTextSettings struct {
 10983  	// EnableSpeechAdaptation: Whether to use speech adaptation for speech
 10984  	// recognition.
 10985  	EnableSpeechAdaptation bool `json:"enableSpeechAdaptation,omitempty"`
 10986  	// ForceSendFields is a list of field names (e.g. "EnableSpeechAdaptation") to
 10987  	// unconditionally include in API requests. By default, fields with empty or
 10988  	// default values are omitted from API requests. See
 10989  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10990  	// details.
 10991  	ForceSendFields []string `json:"-"`
 10992  	// NullFields is a list of field names (e.g. "EnableSpeechAdaptation") to
 10993  	// include in API requests with the JSON null value. By default, fields with
 10994  	// empty values are omitted from API requests. See
 10995  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10996  	NullFields []string `json:"-"`
 10997  }
 10998  
 10999  func (s *GoogleCloudDialogflowCxV3beta1SpeechToTextSettings) MarshalJSON() ([]byte, error) {
 11000  	type NoMethod GoogleCloudDialogflowCxV3beta1SpeechToTextSettings
 11001  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11002  }
 11003  
 11004  // GoogleCloudDialogflowCxV3beta1StartExperimentRequest: The request message
 11005  // for Experiments.StartExperiment.
 11006  type GoogleCloudDialogflowCxV3beta1StartExperimentRequest struct {
 11007  }
 11008  
 11009  // GoogleCloudDialogflowCxV3beta1StopExperimentRequest: The request message for
 11010  // Experiments.StopExperiment.
 11011  type GoogleCloudDialogflowCxV3beta1StopExperimentRequest struct {
 11012  }
 11013  
 11014  // GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest: The request to
 11015  // set the feedback for a bot answer.
 11016  type GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest struct {
 11017  	// AnswerFeedback: Required. Feedback provided for a bot answer.
 11018  	AnswerFeedback *GoogleCloudDialogflowCxV3beta1AnswerFeedback `json:"answerFeedback,omitempty"`
 11019  	// ResponseId: Required. ID of the response to update its feedback. This is the
 11020  	// same as DetectIntentResponse.response_id.
 11021  	ResponseId string `json:"responseId,omitempty"`
 11022  	// UpdateMask: Optional. The mask to control which fields to update. If the
 11023  	// mask is not present, all fields will be updated.
 11024  	UpdateMask string `json:"updateMask,omitempty"`
 11025  	// ForceSendFields is a list of field names (e.g. "AnswerFeedback") to
 11026  	// unconditionally include in API requests. By default, fields with empty or
 11027  	// default values are omitted from API requests. See
 11028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11029  	// details.
 11030  	ForceSendFields []string `json:"-"`
 11031  	// NullFields is a list of field names (e.g. "AnswerFeedback") to include in
 11032  	// API requests with the JSON null value. By default, fields with empty values
 11033  	// are omitted from API requests. See
 11034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11035  	NullFields []string `json:"-"`
 11036  }
 11037  
 11038  func (s *GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest) MarshalJSON() ([]byte, error) {
 11039  	type NoMethod GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest
 11040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11041  }
 11042  
 11043  // GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig: Configuration of how
 11044  // speech should be synthesized.
 11045  type GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig struct {
 11046  	// EffectsProfileId: Optional. An identifier which selects 'audio effects'
 11047  	// profiles that are applied on (post synthesized) text to speech. Effects are
 11048  	// applied on top of each other in the order they are given.
 11049  	EffectsProfileId []string `json:"effectsProfileId,omitempty"`
 11050  	// Pitch: Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means
 11051  	// increase 20 semitones from the original pitch. -20 means decrease 20
 11052  	// semitones from the original pitch.
 11053  	Pitch float64 `json:"pitch,omitempty"`
 11054  	// SpeakingRate: Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0
 11055  	// is the normal native speed supported by the specific voice. 2.0 is twice as
 11056  	// fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
 11057  	// speed. Any other values < 0.25 or > 4.0 will return an error.
 11058  	SpeakingRate float64 `json:"speakingRate,omitempty"`
 11059  	// Voice: Optional. The desired voice of the synthesized audio.
 11060  	Voice *GoogleCloudDialogflowCxV3beta1VoiceSelectionParams `json:"voice,omitempty"`
 11061  	// VolumeGainDb: Optional. Volume gain (in dB) of the normal native volume
 11062  	// supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
 11063  	// set to a value of 0.0 (dB), will play at normal native signal amplitude. A
 11064  	// value of -6.0 (dB) will play at approximately half the amplitude of the
 11065  	// normal native signal amplitude. A value of +6.0 (dB) will play at
 11066  	// approximately twice the amplitude of the normal native signal amplitude. We
 11067  	// strongly recommend not to exceed +10 (dB) as there's usually no effective
 11068  	// increase in loudness for any value greater than that.
 11069  	VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
 11070  	// ForceSendFields is a list of field names (e.g. "EffectsProfileId") to
 11071  	// unconditionally include in API requests. By default, fields with empty or
 11072  	// default values are omitted from API requests. See
 11073  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11074  	// details.
 11075  	ForceSendFields []string `json:"-"`
 11076  	// NullFields is a list of field names (e.g. "EffectsProfileId") to include in
 11077  	// API requests with the JSON null value. By default, fields with empty values
 11078  	// are omitted from API requests. See
 11079  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11080  	NullFields []string `json:"-"`
 11081  }
 11082  
 11083  func (s *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
 11084  	type NoMethod GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
 11085  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11086  }
 11087  
 11088  func (s *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
 11089  	type NoMethod GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
 11090  	var s1 struct {
 11091  		Pitch        gensupport.JSONFloat64 `json:"pitch"`
 11092  		SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
 11093  		VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
 11094  		*NoMethod
 11095  	}
 11096  	s1.NoMethod = (*NoMethod)(s)
 11097  	if err := json.Unmarshal(data, &s1); err != nil {
 11098  		return err
 11099  	}
 11100  	s.Pitch = float64(s1.Pitch)
 11101  	s.SpeakingRate = float64(s1.SpeakingRate)
 11102  	s.VolumeGainDb = float64(s1.VolumeGainDb)
 11103  	return nil
 11104  }
 11105  
 11106  // GoogleCloudDialogflowCxV3beta1TestCase: Represents a test case.
 11107  type GoogleCloudDialogflowCxV3beta1TestCase struct {
 11108  	// CreationTime: Output only. When the test was created.
 11109  	CreationTime string `json:"creationTime,omitempty"`
 11110  	// DisplayName: Required. The human-readable name of the test case, unique
 11111  	// within the agent. Limit of 200 characters.
 11112  	DisplayName string `json:"displayName,omitempty"`
 11113  	// LastTestResult: The latest test result.
 11114  	LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
 11115  	// Name: The unique identifier of the test case. TestCases.CreateTestCase will
 11116  	// populate the name automatically. Otherwise use format:
 11117  	// `projects//locations//agents/ /testCases/`.
 11118  	Name string `json:"name,omitempty"`
 11119  	// Notes: Additional freeform notes about the test case. Limit of 400
 11120  	// characters.
 11121  	Notes string `json:"notes,omitempty"`
 11122  	// Tags: Tags are short descriptions that users may apply to test cases for
 11123  	// organizational and filtering purposes. Each tag should start with "#" and
 11124  	// has a limit of 30 characters.
 11125  	Tags []string `json:"tags,omitempty"`
 11126  	// TestCaseConversationTurns: The conversation turns uttered when the test case
 11127  	// was created, in chronological order. These include the canonical set of
 11128  	// agent utterances that should occur when the agent is working properly.
 11129  	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
 11130  	// TestConfig: Config for the test case.
 11131  	TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
 11132  
 11133  	// ServerResponse contains the HTTP response code and headers from the server.
 11134  	googleapi.ServerResponse `json:"-"`
 11135  	// ForceSendFields is a list of field names (e.g. "CreationTime") to
 11136  	// unconditionally include in API requests. By default, fields with empty or
 11137  	// default values are omitted from API requests. See
 11138  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11139  	// details.
 11140  	ForceSendFields []string `json:"-"`
 11141  	// NullFields is a list of field names (e.g. "CreationTime") to include in API
 11142  	// requests with the JSON null value. By default, fields with empty values are
 11143  	// omitted from API requests. See
 11144  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11145  	NullFields []string `json:"-"`
 11146  }
 11147  
 11148  func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
 11149  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
 11150  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11151  }
 11152  
 11153  // GoogleCloudDialogflowCxV3beta1TestCaseError: Error info for importing a
 11154  // test.
 11155  type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
 11156  	// Status: The status associated with the test case.
 11157  	Status *GoogleRpcStatus `json:"status,omitempty"`
 11158  	// TestCase: The test case.
 11159  	TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
 11160  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
 11161  	// include in API requests. By default, fields with empty or default values are
 11162  	// omitted from API requests. See
 11163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11164  	// details.
 11165  	ForceSendFields []string `json:"-"`
 11166  	// NullFields is a list of field names (e.g. "Status") to include in API
 11167  	// requests with the JSON null value. By default, fields with empty values are
 11168  	// omitted from API requests. See
 11169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11170  	NullFields []string `json:"-"`
 11171  }
 11172  
 11173  func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
 11174  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
 11175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11176  }
 11177  
 11178  // GoogleCloudDialogflowCxV3beta1TestCaseResult: Represents a result from
 11179  // running a test case in an agent environment.
 11180  type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
 11181  	// ConversationTurns: The conversation turns uttered during the test case
 11182  	// replay in chronological order.
 11183  	ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
 11184  	// Environment: Environment where the test was run. If not set, it indicates
 11185  	// the draft environment.
 11186  	Environment string `json:"environment,omitempty"`
 11187  	// Name: The resource name for the test case result. Format:
 11188  	// `projects//locations//agents//testCases/ /results/`.
 11189  	Name string `json:"name,omitempty"`
 11190  	// TestResult: Whether the test case passed in the agent environment.
 11191  	//
 11192  	// Possible values:
 11193  	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
 11194  	//   "PASSED" - The test passed.
 11195  	//   "FAILED" - The test did not pass.
 11196  	TestResult string `json:"testResult,omitempty"`
 11197  	// TestTime: The time that the test was run.
 11198  	TestTime string `json:"testTime,omitempty"`
 11199  
 11200  	// ServerResponse contains the HTTP response code and headers from the server.
 11201  	googleapi.ServerResponse `json:"-"`
 11202  	// ForceSendFields is a list of field names (e.g. "ConversationTurns") to
 11203  	// unconditionally include in API requests. By default, fields with empty or
 11204  	// default values are omitted from API requests. See
 11205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11206  	// details.
 11207  	ForceSendFields []string `json:"-"`
 11208  	// NullFields is a list of field names (e.g. "ConversationTurns") to include in
 11209  	// API requests with the JSON null value. By default, fields with empty values
 11210  	// are omitted from API requests. See
 11211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11212  	NullFields []string `json:"-"`
 11213  }
 11214  
 11215  func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
 11216  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
 11217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11218  }
 11219  
 11220  // GoogleCloudDialogflowCxV3beta1TestConfig: Represents configurations for a
 11221  // test case.
 11222  type GoogleCloudDialogflowCxV3beta1TestConfig struct {
 11223  	// Flow: Flow name to start the test case with. Format:
 11224  	// `projects//locations//agents//flows/`. Only one of `flow` and `page` should
 11225  	// be set to indicate the starting point of the test case. If both are set,
 11226  	// `page` takes precedence over `flow`. If neither is set, the test case will
 11227  	// start with start page on the default start flow.
 11228  	Flow string `json:"flow,omitempty"`
 11229  	// Page: The page to start the test case with. Format:
 11230  	// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`
 11231  	// should be set to indicate the starting point of the test case. If both are
 11232  	// set, `page` takes precedence over `flow`. If neither is set, the test case
 11233  	// will start with start page on the default start flow.
 11234  	Page string `json:"page,omitempty"`
 11235  	// TrackingParameters: Session parameters to be compared when calculating
 11236  	// differences.
 11237  	TrackingParameters []string `json:"trackingParameters,omitempty"`
 11238  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
 11239  	// include in API requests. By default, fields with empty or default values are
 11240  	// omitted from API requests. See
 11241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11242  	// details.
 11243  	ForceSendFields []string `json:"-"`
 11244  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
 11245  	// with the JSON null value. By default, fields with empty values are omitted
 11246  	// from API requests. See
 11247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11248  	NullFields []string `json:"-"`
 11249  }
 11250  
 11251  func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
 11252  	type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
 11253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11254  }
 11255  
 11256  // GoogleCloudDialogflowCxV3beta1TestError: Error info for running a test.
 11257  type GoogleCloudDialogflowCxV3beta1TestError struct {
 11258  	// Status: The status associated with the test.
 11259  	Status *GoogleRpcStatus `json:"status,omitempty"`
 11260  	// TestCase: The test case resource name.
 11261  	TestCase string `json:"testCase,omitempty"`
 11262  	// TestTime: The timestamp when the test was completed.
 11263  	TestTime string `json:"testTime,omitempty"`
 11264  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
 11265  	// include in API requests. By default, fields with empty or default values are
 11266  	// omitted from API requests. See
 11267  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11268  	// details.
 11269  	ForceSendFields []string `json:"-"`
 11270  	// NullFields is a list of field names (e.g. "Status") to include in API
 11271  	// requests with the JSON null value. By default, fields with empty values are
 11272  	// omitted from API requests. See
 11273  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11274  	NullFields []string `json:"-"`
 11275  }
 11276  
 11277  func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
 11278  	type NoMethod GoogleCloudDialogflowCxV3beta1TestError
 11279  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11280  }
 11281  
 11282  // GoogleCloudDialogflowCxV3beta1TestRunDifference: The description of
 11283  // differences between original and replayed agent output.
 11284  type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
 11285  	// Description: A human readable description of the diff, showing the actual
 11286  	// output vs expected output.
 11287  	Description string `json:"description,omitempty"`
 11288  	// Type: The type of diff.
 11289  	//
 11290  	// Possible values:
 11291  	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
 11292  	//   "INTENT" - The intent.
 11293  	//   "PAGE" - The page.
 11294  	//   "PARAMETERS" - The parameters.
 11295  	//   "UTTERANCE" - The message utterance.
 11296  	//   "FLOW" - The flow.
 11297  	Type string `json:"type,omitempty"`
 11298  	// ForceSendFields is a list of field names (e.g. "Description") to
 11299  	// unconditionally include in API requests. By default, fields with empty or
 11300  	// default values are omitted from API requests. See
 11301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11302  	// details.
 11303  	ForceSendFields []string `json:"-"`
 11304  	// NullFields is a list of field names (e.g. "Description") to include in API
 11305  	// requests with the JSON null value. By default, fields with empty values are
 11306  	// omitted from API requests. See
 11307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11308  	NullFields []string `json:"-"`
 11309  }
 11310  
 11311  func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
 11312  	type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
 11313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11314  }
 11315  
 11316  // GoogleCloudDialogflowCxV3beta1TextInput: Represents the natural language
 11317  // text to be processed.
 11318  type GoogleCloudDialogflowCxV3beta1TextInput struct {
 11319  	// Text: Required. The UTF-8 encoded natural language text to be processed.
 11320  	Text string `json:"text,omitempty"`
 11321  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 11322  	// include in API requests. By default, fields with empty or default values are
 11323  	// omitted from API requests. See
 11324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11325  	// details.
 11326  	ForceSendFields []string `json:"-"`
 11327  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 11328  	// with the JSON null value. By default, fields with empty values are omitted
 11329  	// from API requests. See
 11330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11331  	NullFields []string `json:"-"`
 11332  }
 11333  
 11334  func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
 11335  	type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
 11336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11337  }
 11338  
 11339  // GoogleCloudDialogflowCxV3beta1TextToSpeechSettings: Settings related to
 11340  // speech synthesizing.
 11341  type GoogleCloudDialogflowCxV3beta1TextToSpeechSettings struct {
 11342  	// SynthesizeSpeechConfigs: Configuration of how speech should be synthesized,
 11343  	// mapping from language
 11344  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) to
 11345  	// SynthesizeSpeechConfig. These settings affect: - The phone gateway
 11346  	// (https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway)
 11347  	// synthesize configuration set via Agent.text_to_speech_settings. - How speech
 11348  	// is synthesized when invoking session APIs. Agent.text_to_speech_settings
 11349  	// only applies if OutputAudioConfig.synthesize_speech_config is not specified.
 11350  	SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
 11351  	// ForceSendFields is a list of field names (e.g. "SynthesizeSpeechConfigs") to
 11352  	// unconditionally include in API requests. By default, fields with empty or
 11353  	// default values are omitted from API requests. See
 11354  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11355  	// details.
 11356  	ForceSendFields []string `json:"-"`
 11357  	// NullFields is a list of field names (e.g. "SynthesizeSpeechConfigs") to
 11358  	// include in API requests with the JSON null value. By default, fields with
 11359  	// empty values are omitted from API requests. See
 11360  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11361  	NullFields []string `json:"-"`
 11362  }
 11363  
 11364  func (s *GoogleCloudDialogflowCxV3beta1TextToSpeechSettings) MarshalJSON() ([]byte, error) {
 11365  	type NoMethod GoogleCloudDialogflowCxV3beta1TextToSpeechSettings
 11366  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11367  }
 11368  
 11369  // GoogleCloudDialogflowCxV3beta1TrainFlowRequest: The request message for
 11370  // Flows.TrainFlow.
 11371  type GoogleCloudDialogflowCxV3beta1TrainFlowRequest struct {
 11372  }
 11373  
 11374  // GoogleCloudDialogflowCxV3beta1TransitionCoverage: Transition coverage
 11375  // represents the percentage of all possible page transitions (page-level
 11376  // transition routes and event handlers, excluding transition route groups)
 11377  // present within any of a parent's test cases.
 11378  type GoogleCloudDialogflowCxV3beta1TransitionCoverage struct {
 11379  	// CoverageScore: The percent of transitions in the agent that are covered.
 11380  	CoverageScore float64 `json:"coverageScore,omitempty"`
 11381  	// Transitions: The list of Transitions present in the agent.
 11382  	Transitions []*GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition `json:"transitions,omitempty"`
 11383  	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
 11384  	// unconditionally include in API requests. By default, fields with empty or
 11385  	// default values are omitted from API requests. See
 11386  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11387  	// details.
 11388  	ForceSendFields []string `json:"-"`
 11389  	// NullFields is a list of field names (e.g. "CoverageScore") to include in API
 11390  	// requests with the JSON null value. By default, fields with empty values are
 11391  	// omitted from API requests. See
 11392  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11393  	NullFields []string `json:"-"`
 11394  }
 11395  
 11396  func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverage) MarshalJSON() ([]byte, error) {
 11397  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverage
 11398  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11399  }
 11400  
 11401  func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverage) UnmarshalJSON(data []byte) error {
 11402  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverage
 11403  	var s1 struct {
 11404  		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
 11405  		*NoMethod
 11406  	}
 11407  	s1.NoMethod = (*NoMethod)(s)
 11408  	if err := json.Unmarshal(data, &s1); err != nil {
 11409  		return err
 11410  	}
 11411  	s.CoverageScore = float64(s1.CoverageScore)
 11412  	return nil
 11413  }
 11414  
 11415  // GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition: A transition in
 11416  // a page.
 11417  type GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition struct {
 11418  	// Covered: Whether the transition is covered by at least one of the agent's
 11419  	// test cases.
 11420  	Covered bool `json:"covered,omitempty"`
 11421  	// EventHandler: Event handler.
 11422  	EventHandler *GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandler,omitempty"`
 11423  	// Index: The index of a transition in the transition list. Starting from 0.
 11424  	Index int64 `json:"index,omitempty"`
 11425  	// Source: The start node of a transition.
 11426  	Source *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode `json:"source,omitempty"`
 11427  	// Target: The end node of a transition.
 11428  	Target *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode `json:"target,omitempty"`
 11429  	// TransitionRoute: Intent route or condition route.
 11430  	TransitionRoute *GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoute,omitempty"`
 11431  	// ForceSendFields is a list of field names (e.g. "Covered") to unconditionally
 11432  	// include in API requests. By default, fields with empty or default values are
 11433  	// omitted from API requests. See
 11434  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11435  	// details.
 11436  	ForceSendFields []string `json:"-"`
 11437  	// NullFields is a list of field names (e.g. "Covered") to include in API
 11438  	// requests with the JSON null value. By default, fields with empty values are
 11439  	// omitted from API requests. See
 11440  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11441  	NullFields []string `json:"-"`
 11442  }
 11443  
 11444  func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition) MarshalJSON() ([]byte, error) {
 11445  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition
 11446  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11447  }
 11448  
 11449  // GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode: The source
 11450  // or target of a transition.
 11451  type GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode struct {
 11452  	// Flow: Indicates a transition to a Flow. Only some fields such as name and
 11453  	// displayname will be set.
 11454  	Flow *GoogleCloudDialogflowCxV3beta1Flow `json:"flow,omitempty"`
 11455  	// Page: Indicates a transition to a Page. Only some fields such as name and
 11456  	// displayname will be set.
 11457  	Page *GoogleCloudDialogflowCxV3beta1Page `json:"page,omitempty"`
 11458  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
 11459  	// include in API requests. By default, fields with empty or default values are
 11460  	// omitted from API requests. See
 11461  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11462  	// details.
 11463  	ForceSendFields []string `json:"-"`
 11464  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
 11465  	// with the JSON null value. By default, fields with empty values are omitted
 11466  	// from API requests. See
 11467  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11468  	NullFields []string `json:"-"`
 11469  }
 11470  
 11471  func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode) MarshalJSON() ([]byte, error) {
 11472  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode
 11473  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11474  }
 11475  
 11476  // GoogleCloudDialogflowCxV3beta1TransitionRoute: A transition route specifies
 11477  // a intent that can be matched and/or a data condition that can be evaluated
 11478  // during a session. When a specified transition is matched, the following
 11479  // actions are taken in order: * If there is a `trigger_fulfillment` associated
 11480  // with the transition, it will be called. * If there is a `target_page`
 11481  // associated with the transition, the session will transition into the
 11482  // specified page. * If there is a `target_flow` associated with the
 11483  // transition, the session will transition into the specified flow.
 11484  type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
 11485  	// Condition: The condition to evaluate against form parameters or session
 11486  	// parameters. See the conditions reference
 11487  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least
 11488  	// one of `intent` or `condition` must be specified. When both `intent` and
 11489  	// `condition` are specified, the transition can only happen when both are
 11490  	// fulfilled.
 11491  	Condition string `json:"condition,omitempty"`
 11492  	// Description: Optional. The description of the transition route. The maximum
 11493  	// length is 500 characters.
 11494  	Description string `json:"description,omitempty"`
 11495  	// Intent: The unique identifier of an Intent. Format:
 11496  	// `projects//locations//agents//intents/`. Indicates that the transition can
 11497  	// only happen when the given intent is matched. At least one of `intent` or
 11498  	// `condition` must be specified. When both `intent` and `condition` are
 11499  	// specified, the transition can only happen when both are fulfilled.
 11500  	Intent string `json:"intent,omitempty"`
 11501  	// Name: Output only. The unique identifier of this transition route.
 11502  	Name string `json:"name,omitempty"`
 11503  	// TargetFlow: The target flow to transition to. Format:
 11504  	// `projects//locations//agents//flows/`.
 11505  	TargetFlow string `json:"targetFlow,omitempty"`
 11506  	// TargetPage: The target page to transition to. Format:
 11507  	// `projects//locations//agents//flows//pages/`.
 11508  	TargetPage string `json:"targetPage,omitempty"`
 11509  	// TriggerFulfillment: The fulfillment to call when the condition is satisfied.
 11510  	// At least one of `trigger_fulfillment` and `target` must be specified. When
 11511  	// both are defined, `trigger_fulfillment` is executed first.
 11512  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
 11513  	// ForceSendFields is a list of field names (e.g. "Condition") to
 11514  	// unconditionally include in API requests. By default, fields with empty or
 11515  	// default values are omitted from API requests. See
 11516  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11517  	// details.
 11518  	ForceSendFields []string `json:"-"`
 11519  	// NullFields is a list of field names (e.g. "Condition") to include in API
 11520  	// requests with the JSON null value. By default, fields with empty values are
 11521  	// omitted from API requests. See
 11522  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11523  	NullFields []string `json:"-"`
 11524  }
 11525  
 11526  func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
 11527  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
 11528  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11529  }
 11530  
 11531  // GoogleCloudDialogflowCxV3beta1TransitionRouteGroup: A TransitionRouteGroup
 11532  // represents a group of `TransitionRoutes` to be used by a Page.
 11533  type GoogleCloudDialogflowCxV3beta1TransitionRouteGroup struct {
 11534  	// DisplayName: Required. The human-readable name of the transition route
 11535  	// group, unique within the flow. The display name can be no longer than 30
 11536  	// characters.
 11537  	DisplayName string `json:"displayName,omitempty"`
 11538  	// Name: The unique identifier of the transition route group.
 11539  	// TransitionRouteGroups.CreateTransitionRouteGroup populates the name
 11540  	// automatically. Format:
 11541  	// `projects//locations//agents//flows//transitionRouteGroups/` or
 11542  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
 11543  	// groups.
 11544  	Name string `json:"name,omitempty"`
 11545  	// TransitionRoutes: Transition routes associated with the
 11546  	// TransitionRouteGroup.
 11547  	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
 11548  
 11549  	// ServerResponse contains the HTTP response code and headers from the server.
 11550  	googleapi.ServerResponse `json:"-"`
 11551  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 11552  	// unconditionally include in API requests. By default, fields with empty or
 11553  	// default values are omitted from API requests. See
 11554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11555  	// details.
 11556  	ForceSendFields []string `json:"-"`
 11557  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 11558  	// requests with the JSON null value. By default, fields with empty values are
 11559  	// omitted from API requests. See
 11560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11561  	NullFields []string `json:"-"`
 11562  }
 11563  
 11564  func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) MarshalJSON() ([]byte, error) {
 11565  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
 11566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11567  }
 11568  
 11569  // GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage: Transition route
 11570  // group coverage represents the percentage of all possible transition routes
 11571  // present within any of a parent's test cases. The results are grouped by the
 11572  // transition route group.
 11573  type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage struct {
 11574  	// CoverageScore: The percent of transition routes in all the transition route
 11575  	// groups that are covered.
 11576  	CoverageScore float64 `json:"coverageScore,omitempty"`
 11577  	// Coverages: Transition route group coverages.
 11578  	Coverages []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage `json:"coverages,omitempty"`
 11579  	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
 11580  	// unconditionally include in API requests. By default, fields with empty or
 11581  	// default values are omitted from API requests. See
 11582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11583  	// details.
 11584  	ForceSendFields []string `json:"-"`
 11585  	// NullFields is a list of field names (e.g. "CoverageScore") to include in API
 11586  	// requests with the JSON null value. By default, fields with empty values are
 11587  	// omitted from API requests. See
 11588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11589  	NullFields []string `json:"-"`
 11590  }
 11591  
 11592  func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage) MarshalJSON() ([]byte, error) {
 11593  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage
 11594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11595  }
 11596  
 11597  func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage) UnmarshalJSON(data []byte) error {
 11598  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage
 11599  	var s1 struct {
 11600  		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
 11601  		*NoMethod
 11602  	}
 11603  	s1.NoMethod = (*NoMethod)(s)
 11604  	if err := json.Unmarshal(data, &s1); err != nil {
 11605  		return err
 11606  	}
 11607  	s.CoverageScore = float64(s1.CoverageScore)
 11608  	return nil
 11609  }
 11610  
 11611  // GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage: Coverage
 11612  // result message for one transition route group.
 11613  type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage struct {
 11614  	// CoverageScore: The percent of transition routes in the transition route
 11615  	// group that are covered.
 11616  	CoverageScore float64 `json:"coverageScore,omitempty"`
 11617  	// RouteGroup: Transition route group metadata. Only name and displayName will
 11618  	// be set.
 11619  	RouteGroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup `json:"routeGroup,omitempty"`
 11620  	// Transitions: The list of transition routes and coverage in the transition
 11621  	// route group.
 11622  	Transitions []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition `json:"transitions,omitempty"`
 11623  	// ForceSendFields is a list of field names (e.g. "CoverageScore") to
 11624  	// unconditionally include in API requests. By default, fields with empty or
 11625  	// default values are omitted from API requests. See
 11626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11627  	// details.
 11628  	ForceSendFields []string `json:"-"`
 11629  	// NullFields is a list of field names (e.g. "CoverageScore") to include in API
 11630  	// requests with the JSON null value. By default, fields with empty values are
 11631  	// omitted from API requests. See
 11632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11633  	NullFields []string `json:"-"`
 11634  }
 11635  
 11636  func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage) MarshalJSON() ([]byte, error) {
 11637  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage
 11638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11639  }
 11640  
 11641  func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage) UnmarshalJSON(data []byte) error {
 11642  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage
 11643  	var s1 struct {
 11644  		CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
 11645  		*NoMethod
 11646  	}
 11647  	s1.NoMethod = (*NoMethod)(s)
 11648  	if err := json.Unmarshal(data, &s1); err != nil {
 11649  		return err
 11650  	}
 11651  	s.CoverageScore = float64(s1.CoverageScore)
 11652  	return nil
 11653  }
 11654  
 11655  // GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition:
 11656  //
 11657  //	A transition coverage in a transition route group.
 11658  type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition struct {
 11659  	// Covered: Whether the transition route is covered by at least one of the
 11660  	// agent's test cases.
 11661  	Covered bool `json:"covered,omitempty"`
 11662  	// TransitionRoute: Intent route or condition route.
 11663  	TransitionRoute *GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoute,omitempty"`
 11664  	// ForceSendFields is a list of field names (e.g. "Covered") to unconditionally
 11665  	// include in API requests. By default, fields with empty or default values are
 11666  	// omitted from API requests. See
 11667  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11668  	// details.
 11669  	ForceSendFields []string `json:"-"`
 11670  	// NullFields is a list of field names (e.g. "Covered") to include in API
 11671  	// requests with the JSON null value. By default, fields with empty values are
 11672  	// omitted from API requests. See
 11673  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11674  	NullFields []string `json:"-"`
 11675  }
 11676  
 11677  func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition) MarshalJSON() ([]byte, error) {
 11678  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition
 11679  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11680  }
 11681  
 11682  // GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals that
 11683  // were extracted for a single turn of the conversation.
 11684  type GoogleCloudDialogflowCxV3beta1TurnSignals struct {
 11685  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
 11686  	AgentEscalated bool `json:"agentEscalated,omitempty"`
 11687  	// DtmfUsed: Whether user was using DTMF input.
 11688  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
 11689  	// FailureReasons: Failure reasons of the turn.
 11690  	//
 11691  	// Possible values:
 11692  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
 11693  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
 11694  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
 11695  	FailureReasons []string `json:"failureReasons,omitempty"`
 11696  	// NoMatch: Whether NLU predicted NO_MATCH.
 11697  	NoMatch bool `json:"noMatch,omitempty"`
 11698  	// NoUserInput: Whether user provided no input.
 11699  	NoUserInput bool `json:"noUserInput,omitempty"`
 11700  	// ReachedEndPage: Whether turn resulted in End Session page.
 11701  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
 11702  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
 11703  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 11704  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
 11705  	// SentimentScore: Sentiment score of the user utterance if sentiment
 11706  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 11707  	SentimentScore float64 `json:"sentimentScore,omitempty"`
 11708  	// UserEscalated: Whether user was specifically asking for a live agent.
 11709  	UserEscalated bool `json:"userEscalated,omitempty"`
 11710  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
 11711  	// this turn.
 11712  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
 11713  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
 11714  	// unconditionally include in API requests. By default, fields with empty or
 11715  	// default values are omitted from API requests. See
 11716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11717  	// details.
 11718  	ForceSendFields []string `json:"-"`
 11719  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
 11720  	// API requests with the JSON null value. By default, fields with empty values
 11721  	// are omitted from API requests. See
 11722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11723  	NullFields []string `json:"-"`
 11724  }
 11725  
 11726  func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) {
 11727  	type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
 11728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11729  }
 11730  
 11731  func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) UnmarshalJSON(data []byte) error {
 11732  	type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
 11733  	var s1 struct {
 11734  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
 11735  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
 11736  		*NoMethod
 11737  	}
 11738  	s1.NoMethod = (*NoMethod)(s)
 11739  	if err := json.Unmarshal(data, &s1); err != nil {
 11740  		return err
 11741  	}
 11742  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
 11743  	s.SentimentScore = float64(s1.SentimentScore)
 11744  	return nil
 11745  }
 11746  
 11747  // GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata: Metadata for
 11748  // UpdateDocument operation.
 11749  type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
 11750  	// GenericMetadata: The generic information of the operation.
 11751  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 11752  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 11753  	// unconditionally include in API requests. By default, fields with empty or
 11754  	// default values are omitted from API requests. See
 11755  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11756  	// details.
 11757  	ForceSendFields []string `json:"-"`
 11758  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 11759  	// API requests with the JSON null value. By default, fields with empty values
 11760  	// are omitted from API requests. See
 11761  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11762  	NullFields []string `json:"-"`
 11763  }
 11764  
 11765  func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 11766  	type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
 11767  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11768  }
 11769  
 11770  // GoogleCloudDialogflowCxV3beta1ValidateAgentRequest: The request message for
 11771  // Agents.ValidateAgent.
 11772  type GoogleCloudDialogflowCxV3beta1ValidateAgentRequest struct {
 11773  	// LanguageCode: If not specified, the agent's default language is used.
 11774  	LanguageCode string `json:"languageCode,omitempty"`
 11775  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 11776  	// unconditionally include in API requests. By default, fields with empty or
 11777  	// default values are omitted from API requests. See
 11778  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11779  	// details.
 11780  	ForceSendFields []string `json:"-"`
 11781  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 11782  	// requests with the JSON null value. By default, fields with empty values are
 11783  	// omitted from API requests. See
 11784  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11785  	NullFields []string `json:"-"`
 11786  }
 11787  
 11788  func (s *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest) MarshalJSON() ([]byte, error) {
 11789  	type NoMethod GoogleCloudDialogflowCxV3beta1ValidateAgentRequest
 11790  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11791  }
 11792  
 11793  // GoogleCloudDialogflowCxV3beta1ValidateFlowRequest: The request message for
 11794  // Flows.ValidateFlow.
 11795  type GoogleCloudDialogflowCxV3beta1ValidateFlowRequest struct {
 11796  	// LanguageCode: If not specified, the agent's default language is used.
 11797  	LanguageCode string `json:"languageCode,omitempty"`
 11798  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 11799  	// unconditionally include in API requests. By default, fields with empty or
 11800  	// default values are omitted from API requests. See
 11801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11802  	// details.
 11803  	ForceSendFields []string `json:"-"`
 11804  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 11805  	// requests with the JSON null value. By default, fields with empty values are
 11806  	// omitted from API requests. See
 11807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11808  	NullFields []string `json:"-"`
 11809  }
 11810  
 11811  func (s *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest) MarshalJSON() ([]byte, error) {
 11812  	type NoMethod GoogleCloudDialogflowCxV3beta1ValidateFlowRequest
 11813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11814  }
 11815  
 11816  // GoogleCloudDialogflowCxV3beta1ValidationMessage: Agent/flow validation
 11817  // message.
 11818  type GoogleCloudDialogflowCxV3beta1ValidationMessage struct {
 11819  	// Detail: The message detail.
 11820  	Detail string `json:"detail,omitempty"`
 11821  	// ResourceNames: The resource names of the resources where the message is
 11822  	// found.
 11823  	ResourceNames []*GoogleCloudDialogflowCxV3beta1ResourceName `json:"resourceNames,omitempty"`
 11824  	// ResourceType: The type of the resources where the message is found.
 11825  	//
 11826  	// Possible values:
 11827  	//   "RESOURCE_TYPE_UNSPECIFIED" - Unspecified.
 11828  	//   "AGENT" - Agent.
 11829  	//   "INTENT" - Intent.
 11830  	//   "INTENT_TRAINING_PHRASE" - Intent training phrase.
 11831  	//   "INTENT_PARAMETER" - Intent parameter.
 11832  	//   "INTENTS" - Multiple intents.
 11833  	//   "INTENT_TRAINING_PHRASES" - Multiple training phrases.
 11834  	//   "ENTITY_TYPE" - Entity type.
 11835  	//   "ENTITY_TYPES" - Multiple entity types.
 11836  	//   "WEBHOOK" - Webhook.
 11837  	//   "FLOW" - Flow.
 11838  	//   "PAGE" - Page.
 11839  	//   "PAGES" - Multiple pages.
 11840  	//   "TRANSITION_ROUTE_GROUP" - Transition route group.
 11841  	//   "AGENT_TRANSITION_ROUTE_GROUP" - Agent transition route group.
 11842  	ResourceType string `json:"resourceType,omitempty"`
 11843  	// Resources: The names of the resources where the message is found.
 11844  	Resources []string `json:"resources,omitempty"`
 11845  	// Severity: Indicates the severity of the message.
 11846  	//
 11847  	// Possible values:
 11848  	//   "SEVERITY_UNSPECIFIED" - Unspecified.
 11849  	//   "INFO" - The agent doesn't follow Dialogflow best practices.
 11850  	//   "WARNING" - The agent may not behave as expected.
 11851  	//   "ERROR" - The agent may experience failures.
 11852  	Severity string `json:"severity,omitempty"`
 11853  	// ForceSendFields is a list of field names (e.g. "Detail") to unconditionally
 11854  	// include in API requests. By default, fields with empty or default values are
 11855  	// omitted from API requests. See
 11856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11857  	// details.
 11858  	ForceSendFields []string `json:"-"`
 11859  	// NullFields is a list of field names (e.g. "Detail") to include in API
 11860  	// requests with the JSON null value. By default, fields with empty values are
 11861  	// omitted from API requests. See
 11862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11863  	NullFields []string `json:"-"`
 11864  }
 11865  
 11866  func (s *GoogleCloudDialogflowCxV3beta1ValidationMessage) MarshalJSON() ([]byte, error) {
 11867  	type NoMethod GoogleCloudDialogflowCxV3beta1ValidationMessage
 11868  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11869  }
 11870  
 11871  // GoogleCloudDialogflowCxV3beta1VariantsHistory: The history of variants
 11872  // update.
 11873  type GoogleCloudDialogflowCxV3beta1VariantsHistory struct {
 11874  	// UpdateTime: Update time of the variants.
 11875  	UpdateTime string `json:"updateTime,omitempty"`
 11876  	// VersionVariants: The flow versions as the variants.
 11877  	VersionVariants *GoogleCloudDialogflowCxV3beta1VersionVariants `json:"versionVariants,omitempty"`
 11878  	// ForceSendFields is a list of field names (e.g. "UpdateTime") to
 11879  	// unconditionally include in API requests. By default, fields with empty or
 11880  	// default values are omitted from API requests. See
 11881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11882  	// details.
 11883  	ForceSendFields []string `json:"-"`
 11884  	// NullFields is a list of field names (e.g. "UpdateTime") to include in API
 11885  	// requests with the JSON null value. By default, fields with empty values are
 11886  	// omitted from API requests. See
 11887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11888  	NullFields []string `json:"-"`
 11889  }
 11890  
 11891  func (s *GoogleCloudDialogflowCxV3beta1VariantsHistory) MarshalJSON() ([]byte, error) {
 11892  	type NoMethod GoogleCloudDialogflowCxV3beta1VariantsHistory
 11893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11894  }
 11895  
 11896  // GoogleCloudDialogflowCxV3beta1Version: Represents a version of a flow.
 11897  type GoogleCloudDialogflowCxV3beta1Version struct {
 11898  	// CreateTime: Output only. Create time of the version.
 11899  	CreateTime string `json:"createTime,omitempty"`
 11900  	// Description: The description of the version. The maximum length is 500
 11901  	// characters. If exceeded, the request is rejected.
 11902  	Description string `json:"description,omitempty"`
 11903  	// DisplayName: Required. The human-readable name of the version. Limit of 64
 11904  	// characters.
 11905  	DisplayName string `json:"displayName,omitempty"`
 11906  	// Name: Format: projects//locations//agents//flows//versions/. Version ID is a
 11907  	// self-increasing number generated by Dialogflow upon version creation.
 11908  	Name string `json:"name,omitempty"`
 11909  	// NluSettings: Output only. The NLU settings of the flow at version creation.
 11910  	NluSettings *GoogleCloudDialogflowCxV3beta1NluSettings `json:"nluSettings,omitempty"`
 11911  	// State: Output only. The state of this version. This field is read-only and
 11912  	// cannot be set by create and update methods.
 11913  	//
 11914  	// Possible values:
 11915  	//   "STATE_UNSPECIFIED" - Not specified. This value is not used.
 11916  	//   "RUNNING" - Version is not ready to serve (e.g. training is running).
 11917  	//   "SUCCEEDED" - Training has succeeded and this version is ready to serve.
 11918  	//   "FAILED" - Version training failed.
 11919  	State string `json:"state,omitempty"`
 11920  
 11921  	// ServerResponse contains the HTTP response code and headers from the server.
 11922  	googleapi.ServerResponse `json:"-"`
 11923  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11924  	// unconditionally include in API requests. By default, fields with empty or
 11925  	// default values are omitted from API requests. See
 11926  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11927  	// details.
 11928  	ForceSendFields []string `json:"-"`
 11929  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11930  	// requests with the JSON null value. By default, fields with empty values are
 11931  	// omitted from API requests. See
 11932  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11933  	NullFields []string `json:"-"`
 11934  }
 11935  
 11936  func (s *GoogleCloudDialogflowCxV3beta1Version) MarshalJSON() ([]byte, error) {
 11937  	type NoMethod GoogleCloudDialogflowCxV3beta1Version
 11938  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11939  }
 11940  
 11941  // GoogleCloudDialogflowCxV3beta1VersionVariants: A list of flow version
 11942  // variants.
 11943  type GoogleCloudDialogflowCxV3beta1VersionVariants struct {
 11944  	// Variants: A list of flow version variants.
 11945  	Variants []*GoogleCloudDialogflowCxV3beta1VersionVariantsVariant `json:"variants,omitempty"`
 11946  	// ForceSendFields is a list of field names (e.g. "Variants") to
 11947  	// unconditionally include in API requests. By default, fields with empty or
 11948  	// default values are omitted from API requests. See
 11949  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11950  	// details.
 11951  	ForceSendFields []string `json:"-"`
 11952  	// NullFields is a list of field names (e.g. "Variants") to include in API
 11953  	// requests with the JSON null value. By default, fields with empty values are
 11954  	// omitted from API requests. See
 11955  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11956  	NullFields []string `json:"-"`
 11957  }
 11958  
 11959  func (s *GoogleCloudDialogflowCxV3beta1VersionVariants) MarshalJSON() ([]byte, error) {
 11960  	type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariants
 11961  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11962  }
 11963  
 11964  // GoogleCloudDialogflowCxV3beta1VersionVariantsVariant: A single flow version
 11965  // with specified traffic allocation.
 11966  type GoogleCloudDialogflowCxV3beta1VersionVariantsVariant struct {
 11967  	// IsControlGroup: Whether the variant is for the control group.
 11968  	IsControlGroup bool `json:"isControlGroup,omitempty"`
 11969  	// TrafficAllocation: Percentage of the traffic which should be routed to this
 11970  	// version of flow. Traffic allocation for a single flow must sum up to 1.0.
 11971  	TrafficAllocation float64 `json:"trafficAllocation,omitempty"`
 11972  	// Version: The name of the flow version. Format:
 11973  	// `projects//locations//agents//flows//versions/`.
 11974  	Version string `json:"version,omitempty"`
 11975  	// ForceSendFields is a list of field names (e.g. "IsControlGroup") to
 11976  	// unconditionally include in API requests. By default, fields with empty or
 11977  	// default values are omitted from API requests. See
 11978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11979  	// details.
 11980  	ForceSendFields []string `json:"-"`
 11981  	// NullFields is a list of field names (e.g. "IsControlGroup") to include in
 11982  	// API requests with the JSON null value. By default, fields with empty values
 11983  	// are omitted from API requests. See
 11984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11985  	NullFields []string `json:"-"`
 11986  }
 11987  
 11988  func (s *GoogleCloudDialogflowCxV3beta1VersionVariantsVariant) MarshalJSON() ([]byte, error) {
 11989  	type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
 11990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11991  }
 11992  
 11993  func (s *GoogleCloudDialogflowCxV3beta1VersionVariantsVariant) UnmarshalJSON(data []byte) error {
 11994  	type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
 11995  	var s1 struct {
 11996  		TrafficAllocation gensupport.JSONFloat64 `json:"trafficAllocation"`
 11997  		*NoMethod
 11998  	}
 11999  	s1.NoMethod = (*NoMethod)(s)
 12000  	if err := json.Unmarshal(data, &s1); err != nil {
 12001  		return err
 12002  	}
 12003  	s.TrafficAllocation = float64(s1.TrafficAllocation)
 12004  	return nil
 12005  }
 12006  
 12007  // GoogleCloudDialogflowCxV3beta1VoiceSelectionParams: Description of which
 12008  // voice to use for speech synthesis.
 12009  type GoogleCloudDialogflowCxV3beta1VoiceSelectionParams struct {
 12010  	// Name: Optional. The name of the voice. If not set, the service will choose a
 12011  	// voice based on the other parameters such as language_code and ssml_gender.
 12012  	// For the list of available voices, please refer to Supported voices and
 12013  	// languages (https://cloud.google.com/text-to-speech/docs/voices).
 12014  	Name string `json:"name,omitempty"`
 12015  	// SsmlGender: Optional. The preferred gender of the voice. If not set, the
 12016  	// service will choose a voice based on the other parameters such as
 12017  	// language_code and name. Note that this is only a preference, not
 12018  	// requirement. If a voice of the appropriate gender is not available, the
 12019  	// synthesizer should substitute a voice with a different gender rather than
 12020  	// failing the request.
 12021  	//
 12022  	// Possible values:
 12023  	//   "SSML_VOICE_GENDER_UNSPECIFIED" - An unspecified gender, which means that
 12024  	// the client doesn't care which gender the selected voice will have.
 12025  	//   "SSML_VOICE_GENDER_MALE" - A male voice.
 12026  	//   "SSML_VOICE_GENDER_FEMALE" - A female voice.
 12027  	//   "SSML_VOICE_GENDER_NEUTRAL" - A gender-neutral voice.
 12028  	SsmlGender string `json:"ssmlGender,omitempty"`
 12029  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 12030  	// include in API requests. By default, fields with empty or default values are
 12031  	// omitted from API requests. See
 12032  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12033  	// details.
 12034  	ForceSendFields []string `json:"-"`
 12035  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 12036  	// with the JSON null value. By default, fields with empty values are omitted
 12037  	// from API requests. See
 12038  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12039  	NullFields []string `json:"-"`
 12040  }
 12041  
 12042  func (s *GoogleCloudDialogflowCxV3beta1VoiceSelectionParams) MarshalJSON() ([]byte, error) {
 12043  	type NoMethod GoogleCloudDialogflowCxV3beta1VoiceSelectionParams
 12044  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12045  }
 12046  
 12047  // GoogleCloudDialogflowCxV3beta1Webhook: Webhooks host the developer's
 12048  // business logic. During a session, webhooks allow the developer to use the
 12049  // data extracted by Dialogflow's natural language processing to generate
 12050  // dynamic responses, validate collected data, or trigger actions on the
 12051  // backend.
 12052  type GoogleCloudDialogflowCxV3beta1Webhook struct {
 12053  	// Disabled: Indicates whether the webhook is disabled.
 12054  	Disabled bool `json:"disabled,omitempty"`
 12055  	// DisplayName: Required. The human-readable name of the webhook, unique within
 12056  	// the agent.
 12057  	DisplayName string `json:"displayName,omitempty"`
 12058  	// GenericWebService: Configuration for a generic web service.
 12059  	GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
 12060  	// Name: The unique identifier of the webhook. Required for the
 12061  	// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name
 12062  	// automatically. Format: `projects//locations//agents//webhooks/`.
 12063  	Name string `json:"name,omitempty"`
 12064  	// ServiceDirectory: Configuration for a Service Directory
 12065  	// (https://cloud.google.com/service-directory) service.
 12066  	ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
 12067  	// Timeout: Webhook execution timeout. Execution is considered failed if
 12068  	// Dialogflow doesn't receive a response from webhook at the end of the timeout
 12069  	// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
 12070  	Timeout string `json:"timeout,omitempty"`
 12071  
 12072  	// ServerResponse contains the HTTP response code and headers from the server.
 12073  	googleapi.ServerResponse `json:"-"`
 12074  	// ForceSendFields is a list of field names (e.g. "Disabled") to
 12075  	// unconditionally include in API requests. By default, fields with empty or
 12076  	// default values are omitted from API requests. See
 12077  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12078  	// details.
 12079  	ForceSendFields []string `json:"-"`
 12080  	// NullFields is a list of field names (e.g. "Disabled") to include in API
 12081  	// requests with the JSON null value. By default, fields with empty values are
 12082  	// omitted from API requests. See
 12083  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12084  	NullFields []string `json:"-"`
 12085  }
 12086  
 12087  func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
 12088  	type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
 12089  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12090  }
 12091  
 12092  // GoogleCloudDialogflowCxV3beta1WebhookGenericWebService: Represents
 12093  // configuration for a generic web service.
 12094  type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
 12095  	// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates
 12096  	// (in DER format) for HTTPS verification. This overrides the default SSL trust
 12097  	// store. If this is empty or unspecified, Dialogflow will use Google's default
 12098  	// trust store to verify certificates. N.B. Make sure the HTTPS server
 12099  	// certificates are signed with "subject alt name". For instance a certificate
 12100  	// can be self-signed using the following command, ``` openssl x509 -req -days
 12101  	// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \
 12102  	// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") ```
 12103  	AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
 12104  	// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard
 12105  	// webhook always uses POST.
 12106  	//
 12107  	// Possible values:
 12108  	//   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.
 12109  	//   "POST" - HTTP POST Method.
 12110  	//   "GET" - HTTP GET Method.
 12111  	//   "HEAD" - HTTP HEAD Method.
 12112  	//   "PUT" - HTTP PUT Method.
 12113  	//   "DELETE" - HTTP DELETE Method.
 12114  	//   "PATCH" - HTTP PATCH Method.
 12115  	//   "OPTIONS" - HTTP OPTIONS Method.
 12116  	HttpMethod string `json:"httpMethod,omitempty"`
 12117  	// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,
 12118  	// Dialogflow will initiate the OAuth client credential flow to exchange an
 12119  	// access token from the 3rd party platform and put it in the auth header.
 12120  	OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
 12121  	// ParameterMapping: Optional. Maps the values extracted from specific fields
 12122  	// of the flexible webhook response into session parameters. - Key: session
 12123  	// parameter name - Value: field path in the webhook response
 12124  	ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
 12125  	// Password: The password for HTTP Basic authentication.
 12126  	Password string `json:"password,omitempty"`
 12127  	// RequestBody: Optional. Defines a custom JSON object as request body to send
 12128  	// to flexible webhook.
 12129  	RequestBody string `json:"requestBody,omitempty"`
 12130  	// RequestHeaders: The HTTP request headers to send together with webhook
 12131  	// requests.
 12132  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
 12133  	// ServiceAgentAuth: Optional. Indicate the auth token type generated from the
 12134  	// Diglogflow service agent
 12135  	// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
 12136  	// The generated token is sent in the Authorization header.
 12137  	//
 12138  	// Possible values:
 12139  	//   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.
 12140  	// Default to ID_TOKEN.
 12141  	//   "NONE" - No token used.
 12142  	//   "ID_TOKEN" - Use [ID
 12143  	// token](https://cloud.google.com/docs/authentication/token-types#id)
 12144  	// generated from service agent. This can be used to access Cloud Function and
 12145  	// Cloud Run after you grant Invoker role to
 12146  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
 12147  	//   "ACCESS_TOKEN" - Use [access
 12148  	// token](https://cloud.google.com/docs/authentication/token-types#access)
 12149  	// generated from service agent. This can be used to access other Google Cloud
 12150  	// APIs after you grant required roles to
 12151  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
 12152  	ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
 12153  	// Uri: Required. The webhook URI for receiving POST requests. It must use
 12154  	// https protocol.
 12155  	Uri string `json:"uri,omitempty"`
 12156  	// Username: The user name for HTTP Basic authentication.
 12157  	Username string `json:"username,omitempty"`
 12158  	// WebhookType: Optional. Type of the webhook.
 12159  	//
 12160  	// Possible values:
 12161  	//   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.
 12162  	//   "STANDARD" - Represents a standard webhook.
 12163  	//   "FLEXIBLE" - Represents a flexible webhook.
 12164  	WebhookType string `json:"webhookType,omitempty"`
 12165  	// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to
 12166  	// unconditionally include in API requests. By default, fields with empty or
 12167  	// default values are omitted from API requests. See
 12168  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12169  	// details.
 12170  	ForceSendFields []string `json:"-"`
 12171  	// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in
 12172  	// API requests with the JSON null value. By default, fields with empty values
 12173  	// are omitted from API requests. See
 12174  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12175  	NullFields []string `json:"-"`
 12176  }
 12177  
 12178  func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
 12179  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
 12180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12181  }
 12182  
 12183  // GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig:
 12184  // Represents configuration of OAuth client credential flow for 3rd party API
 12185  // authentication.
 12186  type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {
 12187  	// ClientId: Required. The client ID provided by the 3rd party platform.
 12188  	ClientId string `json:"clientId,omitempty"`
 12189  	// ClientSecret: Required. The client secret provided by the 3rd party
 12190  	// platform.
 12191  	ClientSecret string `json:"clientSecret,omitempty"`
 12192  	// Scopes: Optional. The OAuth scopes to grant.
 12193  	Scopes []string `json:"scopes,omitempty"`
 12194  	// TokenEndpoint: Required. The token endpoint provided by the 3rd party
 12195  	// platform to exchange an access token.
 12196  	TokenEndpoint string `json:"tokenEndpoint,omitempty"`
 12197  	// ForceSendFields is a list of field names (e.g. "ClientId") to
 12198  	// unconditionally include in API requests. By default, fields with empty or
 12199  	// default values are omitted from API requests. See
 12200  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12201  	// details.
 12202  	ForceSendFields []string `json:"-"`
 12203  	// NullFields is a list of field names (e.g. "ClientId") to include in API
 12204  	// requests with the JSON null value. By default, fields with empty values are
 12205  	// omitted from API requests. See
 12206  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12207  	NullFields []string `json:"-"`
 12208  }
 12209  
 12210  func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
 12211  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig
 12212  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12213  }
 12214  
 12215  // GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for a
 12216  // webhook call. The request is sent as a JSON object and the field names will
 12217  // be presented in camel cases. You may see undocumented fields in an actual
 12218  // request. These fields are used internally by Dialogflow and should be
 12219  // ignored.
 12220  type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
 12221  	// DetectIntentResponseId: Always present. The unique identifier of the
 12222  	// DetectIntentResponse that will be returned to the API caller.
 12223  	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
 12224  	// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF
 12225  	// digits.
 12226  	DtmfDigits string `json:"dtmfDigits,omitempty"`
 12227  	// FulfillmentInfo: Always present. Information about the fulfillment that
 12228  	// triggered this webhook call.
 12229  	FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
 12230  	// IntentInfo: Information about the last matched intent.
 12231  	IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
 12232  	// LanguageCode: The language code specified in the original request.
 12233  	LanguageCode string `json:"languageCode,omitempty"`
 12234  	// LanguageInfo: Information about the language of the request.
 12235  	LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"`
 12236  	// Messages: The list of rich message responses to present to the user. Webhook
 12237  	// can choose to append or replace this list in
 12238  	// WebhookResponse.fulfillment_response;
 12239  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
 12240  	// PageInfo: Information about page status.
 12241  	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
 12242  	// Payload: Custom data set in QueryParameters.payload.
 12243  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 12244  	// SentimentAnalysisResult: The sentiment analysis result of the current user
 12245  	// request. The field is filled when sentiment analysis is configured to be
 12246  	// enabled for the request.
 12247  	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
 12248  	// SessionInfo: Information about session status.
 12249  	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
 12250  	// Text: If natural language text was provided as input, this field will
 12251  	// contain a copy of the text.
 12252  	Text string `json:"text,omitempty"`
 12253  	// Transcript: If natural language speech audio was provided as input, this
 12254  	// field will contain the transcript for the audio.
 12255  	Transcript string `json:"transcript,omitempty"`
 12256  	// TriggerEvent: If an event was provided as input, this field will contain the
 12257  	// name of the event.
 12258  	TriggerEvent string `json:"triggerEvent,omitempty"`
 12259  	// TriggerIntent: If an intent was provided as input, this field will contain a
 12260  	// copy of the intent identifier. Format:
 12261  	// `projects//locations//agents//intents/`.
 12262  	TriggerIntent string `json:"triggerIntent,omitempty"`
 12263  	// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to
 12264  	// unconditionally include in API requests. By default, fields with empty or
 12265  	// default values are omitted from API requests. See
 12266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12267  	// details.
 12268  	ForceSendFields []string `json:"-"`
 12269  	// NullFields is a list of field names (e.g. "DetectIntentResponseId") to
 12270  	// include in API requests with the JSON null value. By default, fields with
 12271  	// empty values are omitted from API requests. See
 12272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12273  	NullFields []string `json:"-"`
 12274  }
 12275  
 12276  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
 12277  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
 12278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12279  }
 12280  
 12281  // GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: Represents
 12282  // fulfillment information communicated to the webhook.
 12283  type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
 12284  	// Tag: Always present. The value of the Fulfillment.tag field will be
 12285  	// populated in this field by Dialogflow when the associated webhook is called.
 12286  	// The tag is typically used by the webhook service to identify which
 12287  	// fulfillment is being called, but it could be used for other purposes.
 12288  	Tag string `json:"tag,omitempty"`
 12289  	// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally
 12290  	// include in API requests. By default, fields with empty or default values are
 12291  	// omitted from API requests. See
 12292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12293  	// details.
 12294  	ForceSendFields []string `json:"-"`
 12295  	// NullFields is a list of field names (e.g. "Tag") to include in API requests
 12296  	// with the JSON null value. By default, fields with empty values are omitted
 12297  	// from API requests. See
 12298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12299  	NullFields []string `json:"-"`
 12300  }
 12301  
 12302  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
 12303  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
 12304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12305  }
 12306  
 12307  // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents intent
 12308  // information communicated to the webhook.
 12309  type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
 12310  	// Confidence: The confidence of the matched intent. Values range from 0.0
 12311  	// (completely uncertain) to 1.0 (completely certain).
 12312  	Confidence float64 `json:"confidence,omitempty"`
 12313  	// DisplayName: Always present. The display name of the last matched intent.
 12314  	DisplayName string `json:"displayName,omitempty"`
 12315  	// LastMatchedIntent: Always present. The unique identifier of the last matched
 12316  	// intent. Format: `projects//locations//agents//intents/`.
 12317  	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
 12318  	// Parameters: Parameters identified as a result of intent matching. This is a
 12319  	// map of the name of the identified parameter to the value of the parameter
 12320  	// identified from the user's utterance. All parameters defined in the matched
 12321  	// intent that are identified will be surfaced here.
 12322  	Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
 12323  	// ForceSendFields is a list of field names (e.g. "Confidence") to
 12324  	// unconditionally include in API requests. By default, fields with empty or
 12325  	// default values are omitted from API requests. See
 12326  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12327  	// details.
 12328  	ForceSendFields []string `json:"-"`
 12329  	// NullFields is a list of field names (e.g. "Confidence") to include in API
 12330  	// requests with the JSON null value. By default, fields with empty values are
 12331  	// omitted from API requests. See
 12332  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12333  	NullFields []string `json:"-"`
 12334  }
 12335  
 12336  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
 12337  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
 12338  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12339  }
 12340  
 12341  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
 12342  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
 12343  	var s1 struct {
 12344  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 12345  		*NoMethod
 12346  	}
 12347  	s1.NoMethod = (*NoMethod)(s)
 12348  	if err := json.Unmarshal(data, &s1); err != nil {
 12349  		return err
 12350  	}
 12351  	s.Confidence = float64(s1.Confidence)
 12352  	return nil
 12353  }
 12354  
 12355  // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue:
 12356  // Represents a value for an intent parameter.
 12357  type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
 12358  	// OriginalValue: Always present. Original text value extracted from user
 12359  	// utterance.
 12360  	OriginalValue string `json:"originalValue,omitempty"`
 12361  	// ResolvedValue: Always present. Structured value for the parameter extracted
 12362  	// from user utterance.
 12363  	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
 12364  	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
 12365  	// unconditionally include in API requests. By default, fields with empty or
 12366  	// default values are omitted from API requests. See
 12367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12368  	// details.
 12369  	ForceSendFields []string `json:"-"`
 12370  	// NullFields is a list of field names (e.g. "OriginalValue") to include in API
 12371  	// requests with the JSON null value. By default, fields with empty values are
 12372  	// omitted from API requests. See
 12373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12374  	NullFields []string `json:"-"`
 12375  }
 12376  
 12377  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
 12378  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
 12379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12380  }
 12381  
 12382  // GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult:
 12383  // Represents the result of sentiment analysis.
 12384  type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
 12385  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 12386  	// the absolute magnitude of sentiment, regardless of score (positive or
 12387  	// negative).
 12388  	Magnitude float64 `json:"magnitude,omitempty"`
 12389  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 12390  	// sentiment).
 12391  	Score float64 `json:"score,omitempty"`
 12392  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 12393  	// unconditionally include in API requests. By default, fields with empty or
 12394  	// default values are omitted from API requests. See
 12395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12396  	// details.
 12397  	ForceSendFields []string `json:"-"`
 12398  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 12399  	// requests with the JSON null value. By default, fields with empty values are
 12400  	// omitted from API requests. See
 12401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12402  	NullFields []string `json:"-"`
 12403  }
 12404  
 12405  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 12406  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
 12407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12408  }
 12409  
 12410  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
 12411  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
 12412  	var s1 struct {
 12413  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 12414  		Score     gensupport.JSONFloat64 `json:"score"`
 12415  		*NoMethod
 12416  	}
 12417  	s1.NoMethod = (*NoMethod)(s)
 12418  	if err := json.Unmarshal(data, &s1); err != nil {
 12419  		return err
 12420  	}
 12421  	s.Magnitude = float64(s1.Magnitude)
 12422  	s.Score = float64(s1.Score)
 12423  	return nil
 12424  }
 12425  
 12426  // GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message for a
 12427  // webhook call.
 12428  type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
 12429  	// FulfillmentResponse: The fulfillment response to send to the user. This
 12430  	// field can be omitted by the webhook if it does not intend to send any
 12431  	// response to the user.
 12432  	FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
 12433  	// PageInfo: Information about page status. This field can be omitted by the
 12434  	// webhook if it does not intend to modify page status.
 12435  	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
 12436  	// Payload: Value to append directly to QueryResult.webhook_payloads.
 12437  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 12438  	// SessionInfo: Information about session status. This field can be omitted by
 12439  	// the webhook if it does not intend to modify session status.
 12440  	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
 12441  	// TargetFlow: The target flow to transition to. Format:
 12442  	// `projects//locations//agents//flows/`.
 12443  	TargetFlow string `json:"targetFlow,omitempty"`
 12444  	// TargetPage: The target page to transition to. Format:
 12445  	// `projects//locations//agents//flows//pages/`.
 12446  	TargetPage string `json:"targetPage,omitempty"`
 12447  	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to
 12448  	// unconditionally include in API requests. By default, fields with empty or
 12449  	// default values are omitted from API requests. See
 12450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12451  	// details.
 12452  	ForceSendFields []string `json:"-"`
 12453  	// NullFields is a list of field names (e.g. "FulfillmentResponse") to include
 12454  	// in API requests with the JSON null value. By default, fields with empty
 12455  	// values are omitted from API requests. See
 12456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12457  	NullFields []string `json:"-"`
 12458  }
 12459  
 12460  func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
 12461  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
 12462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12463  }
 12464  
 12465  // GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: Represents
 12466  // a fulfillment response to the user.
 12467  type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
 12468  	// MergeBehavior: Merge behavior for `messages`.
 12469  	//
 12470  	// Possible values:
 12471  	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be used.
 12472  	//   "APPEND" - `messages` will be appended to the list of messages waiting to
 12473  	// be sent to the user.
 12474  	//   "REPLACE" - `messages` will replace the list of messages waiting to be
 12475  	// sent to the user.
 12476  	MergeBehavior string `json:"mergeBehavior,omitempty"`
 12477  	// Messages: The list of rich message responses to present to the user.
 12478  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
 12479  	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
 12480  	// unconditionally include in API requests. By default, fields with empty or
 12481  	// default values are omitted from API requests. See
 12482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12483  	// details.
 12484  	ForceSendFields []string `json:"-"`
 12485  	// NullFields is a list of field names (e.g. "MergeBehavior") to include in API
 12486  	// requests with the JSON null value. By default, fields with empty values are
 12487  	// omitted from API requests. See
 12488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12489  	NullFields []string `json:"-"`
 12490  }
 12491  
 12492  func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
 12493  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
 12494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12495  }
 12496  
 12497  // GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig: Represents
 12498  // configuration for a Service Directory
 12499  // (https://cloud.google.com/service-directory) service.
 12500  type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {
 12501  	// GenericWebService: Generic Service configuration of this webhook.
 12502  	GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
 12503  	// Service: Required. The name of Service Directory
 12504  	// (https://cloud.google.com/service-directory) service. Format:
 12505  	// `projects//locations//namespaces//services/`. `Location ID` of the service
 12506  	// directory must be the same as the location of the agent.
 12507  	Service string `json:"service,omitempty"`
 12508  	// ForceSendFields is a list of field names (e.g. "GenericWebService") to
 12509  	// unconditionally include in API requests. By default, fields with empty or
 12510  	// default values are omitted from API requests. See
 12511  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12512  	// details.
 12513  	ForceSendFields []string `json:"-"`
 12514  	// NullFields is a list of field names (e.g. "GenericWebService") to include in
 12515  	// API requests with the JSON null value. By default, fields with empty values
 12516  	// are omitted from API requests. See
 12517  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12518  	NullFields []string `json:"-"`
 12519  }
 12520  
 12521  func (s *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
 12522  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
 12523  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12524  }
 12525  
 12526  // GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a message
 12527  // possibly annotated with an entity. The part can be an entity or purely a
 12528  // part of the message between two entities or message start/end.
 12529  type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
 12530  	// EntityType: The Dialogflow system entity type
 12531  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 12532  	// message part. If this is empty, Dialogflow could not annotate the phrase
 12533  	// part with a system entity.
 12534  	EntityType string `json:"entityType,omitempty"`
 12535  	// FormattedValue: The Dialogflow system entity formatted value
 12536  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 12537  	// message part. For example for a system entity of type `@sys.unit-currency`,
 12538  	// this may contain: { "amount": 5, "currency": "USD" }
 12539  	FormattedValue interface{} `json:"formattedValue,omitempty"`
 12540  	// Text: A part of a message possibly annotated with an entity.
 12541  	Text string `json:"text,omitempty"`
 12542  	// ForceSendFields is a list of field names (e.g. "EntityType") to
 12543  	// unconditionally include in API requests. By default, fields with empty or
 12544  	// default values are omitted from API requests. See
 12545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12546  	// details.
 12547  	ForceSendFields []string `json:"-"`
 12548  	// NullFields is a list of field names (e.g. "EntityType") to include in API
 12549  	// requests with the JSON null value. By default, fields with empty values are
 12550  	// omitted from API requests. See
 12551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12552  	NullFields []string `json:"-"`
 12553  }
 12554  
 12555  func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
 12556  	type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
 12557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12558  }
 12559  
 12560  // GoogleCloudDialogflowV2ArticleAnswer: Represents article answer.
 12561  type GoogleCloudDialogflowV2ArticleAnswer struct {
 12562  	// AnswerRecord: The name of answer record, in the format of
 12563  	// "projects//locations//answerRecords/"
 12564  	AnswerRecord string `json:"answerRecord,omitempty"`
 12565  	// Confidence: Article match confidence. The system's confidence score that
 12566  	// this article is a good match for this conversation, as a value from 0.0
 12567  	// (completely uncertain) to 1.0 (completely certain).
 12568  	Confidence float64 `json:"confidence,omitempty"`
 12569  	// Metadata: A map that contains metadata about the answer and the document
 12570  	// from which it originates.
 12571  	Metadata map[string]string `json:"metadata,omitempty"`
 12572  	// Snippets: Article snippets.
 12573  	Snippets []string `json:"snippets,omitempty"`
 12574  	// Title: The article title.
 12575  	Title string `json:"title,omitempty"`
 12576  	// Uri: The article URI.
 12577  	Uri string `json:"uri,omitempty"`
 12578  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 12579  	// unconditionally include in API requests. By default, fields with empty or
 12580  	// default values are omitted from API requests. See
 12581  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12582  	// details.
 12583  	ForceSendFields []string `json:"-"`
 12584  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 12585  	// requests with the JSON null value. By default, fields with empty values are
 12586  	// omitted from API requests. See
 12587  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12588  	NullFields []string `json:"-"`
 12589  }
 12590  
 12591  func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
 12592  	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
 12593  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12594  }
 12595  
 12596  func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
 12597  	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
 12598  	var s1 struct {
 12599  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 12600  		*NoMethod
 12601  	}
 12602  	s1.NoMethod = (*NoMethod)(s)
 12603  	if err := json.Unmarshal(data, &s1); err != nil {
 12604  		return err
 12605  	}
 12606  	s.Confidence = float64(s1.Confidence)
 12607  	return nil
 12608  }
 12609  
 12610  // GoogleCloudDialogflowV2ArticleSuggestionModelMetadata: Metadata for article
 12611  // suggestion models.
 12612  type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {
 12613  	// TrainingModelType: Optional. Type of the article suggestion model. If not
 12614  	// provided, model_type is used.
 12615  	//
 12616  	// Possible values:
 12617  	//   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.
 12618  	//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder
 12619  	// model.
 12620  	//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.
 12621  	TrainingModelType string `json:"trainingModelType,omitempty"`
 12622  	// ForceSendFields is a list of field names (e.g. "TrainingModelType") to
 12623  	// unconditionally include in API requests. By default, fields with empty or
 12624  	// default values are omitted from API requests. See
 12625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12626  	// details.
 12627  	ForceSendFields []string `json:"-"`
 12628  	// NullFields is a list of field names (e.g. "TrainingModelType") to include in
 12629  	// API requests with the JSON null value. By default, fields with empty values
 12630  	// are omitted from API requests. See
 12631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12632  	NullFields []string `json:"-"`
 12633  }
 12634  
 12635  func (s *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata) MarshalJSON() ([]byte, error) {
 12636  	type NoMethod GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
 12637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12638  }
 12639  
 12640  // GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response message
 12641  // for EntityTypes.BatchUpdateEntityTypes.
 12642  type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
 12643  	// EntityTypes: The collection of updated or created entity types.
 12644  	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
 12645  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
 12646  	// unconditionally include in API requests. By default, fields with empty or
 12647  	// default values are omitted from API requests. See
 12648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12649  	// details.
 12650  	ForceSendFields []string `json:"-"`
 12651  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
 12652  	// requests with the JSON null value. By default, fields with empty values are
 12653  	// omitted from API requests. See
 12654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12655  	NullFields []string `json:"-"`
 12656  }
 12657  
 12658  func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
 12659  	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
 12660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12661  }
 12662  
 12663  // GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response message for
 12664  // Intents.BatchUpdateIntents.
 12665  type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
 12666  	// Intents: The collection of updated or created intents.
 12667  	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
 12668  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 12669  	// include in API requests. By default, fields with empty or default values are
 12670  	// omitted from API requests. See
 12671  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12672  	// details.
 12673  	ForceSendFields []string `json:"-"`
 12674  	// NullFields is a list of field names (e.g. "Intents") to include in API
 12675  	// requests with the JSON null value. By default, fields with empty values are
 12676  	// omitted from API requests. See
 12677  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12678  	NullFields []string `json:"-"`
 12679  }
 12680  
 12681  func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
 12682  	type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
 12683  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12684  }
 12685  
 12686  // GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata:
 12687  // Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
 12688  type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {
 12689  	// ConversationProfile: The resource name of the conversation profile. Format:
 12690  	// `projects//locations//conversationProfiles/`
 12691  	ConversationProfile string `json:"conversationProfile,omitempty"`
 12692  	// CreateTime: Timestamp whe the request was created. The time is measured on
 12693  	// server side.
 12694  	CreateTime string `json:"createTime,omitempty"`
 12695  	// ParticipantRole: Required. The participant role to remove the suggestion
 12696  	// feature config. Only HUMAN_AGENT or END_USER can be used.
 12697  	//
 12698  	// Possible values:
 12699  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 12700  	//   "HUMAN_AGENT" - Participant is a human agent.
 12701  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 12702  	// Dialogflow agent.
 12703  	//   "END_USER" - Participant is an end user that has called or chatted with
 12704  	// Dialogflow services.
 12705  	ParticipantRole string `json:"participantRole,omitempty"`
 12706  	// SuggestionFeatureType: Required. The type of the suggestion feature to
 12707  	// remove.
 12708  	//
 12709  	// Possible values:
 12710  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 12711  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 12712  	//   "FAQ" - Run FAQ model for chat.
 12713  	//   "SMART_REPLY" - Run smart reply model for chat.
 12714  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 12715  	// text generated query.
 12716  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 12717  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 12718  	// unconditionally include in API requests. By default, fields with empty or
 12719  	// default values are omitted from API requests. See
 12720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12721  	// details.
 12722  	ForceSendFields []string `json:"-"`
 12723  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 12724  	// in API requests with the JSON null value. By default, fields with empty
 12725  	// values are omitted from API requests. See
 12726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12727  	NullFields []string `json:"-"`
 12728  }
 12729  
 12730  func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 12731  	type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
 12732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12733  }
 12734  
 12735  // GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to natural
 12736  // language context. If a person says to you "they are orange", you need
 12737  // context in order to understand what "they" is referring to. Similarly, for
 12738  // Dialogflow to handle an end-user expression like that, it needs to be
 12739  // provided with context in order to correctly match an intent. Using contexts,
 12740  // you can control the flow of a conversation. You can configure contexts for
 12741  // an intent by setting input and output contexts, which are identified by
 12742  // string names. When an intent is matched, any configured output contexts for
 12743  // that intent become active. While any contexts are active, Dialogflow is more
 12744  // likely to match intents that are configured with input contexts that
 12745  // correspond to the currently active contexts. For more information about
 12746  // context, see the Contexts guide
 12747  // (https://cloud.google.com/dialogflow/docs/contexts-overview).
 12748  type GoogleCloudDialogflowV2Context struct {
 12749  	// LifespanCount: Optional. The number of conversational query requests after
 12750  	// which the context expires. The default is `0`. If set to `0`, the context
 12751  	// expires immediately. Contexts expire automatically after 20 minutes if there
 12752  	// are no matching queries.
 12753  	LifespanCount int64 `json:"lifespanCount,omitempty"`
 12754  	// Name: Required. The unique identifier of the context. Format:
 12755  	// `projects//agent/sessions//contexts/`, or
 12756  	// `projects//agent/environments//users//sessions//contexts/`. The `Context ID`
 12757  	// is always converted to lowercase, may only contain characters in
 12758  	// `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is not
 12759  	// specified, we assume default 'draft' environment. If `User ID` is not
 12760  	// specified, we assume default '-' user. The following context names are
 12761  	// reserved for internal use by Dialogflow. You should not use these contexts
 12762  	// or create contexts with these names: * `__system_counters__` *
 12763  	// `*_id_dialog_context` * `*_dialog_params_size`
 12764  	Name string `json:"name,omitempty"`
 12765  	// Parameters: Optional. The collection of parameters associated with this
 12766  	// context. Depending on your protocol or client library language, this is a
 12767  	// map, associative array, symbol table, dictionary, or JSON object composed of
 12768  	// a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 12769  	// value: parameter name * MapValue type: If parameter's entity type is a
 12770  	// composite entity then use map, otherwise, depending on the parameter value
 12771  	// type, it could be one of string, number, boolean, null, list or map. *
 12772  	// MapValue value: If parameter's entity type is a composite entity then use
 12773  	// map from composite entity property names to property values, otherwise, use
 12774  	// parameter value.
 12775  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 12776  	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
 12777  	// unconditionally include in API requests. By default, fields with empty or
 12778  	// default values are omitted from API requests. See
 12779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12780  	// details.
 12781  	ForceSendFields []string `json:"-"`
 12782  	// NullFields is a list of field names (e.g. "LifespanCount") to include in API
 12783  	// requests with the JSON null value. By default, fields with empty values are
 12784  	// omitted from API requests. See
 12785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12786  	NullFields []string `json:"-"`
 12787  }
 12788  
 12789  func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
 12790  	type NoMethod GoogleCloudDialogflowV2Context
 12791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12792  }
 12793  
 12794  // GoogleCloudDialogflowV2ConversationEvent: Represents a notification sent to
 12795  // Pub/Sub subscribers for conversation lifecycle events.
 12796  type GoogleCloudDialogflowV2ConversationEvent struct {
 12797  	// Conversation: The unique identifier of the conversation this notification
 12798  	// refers to. Format: `projects//conversations/`.
 12799  	Conversation string `json:"conversation,omitempty"`
 12800  	// ErrorStatus: More detailed information about an error. Only set for type
 12801  	// UNRECOVERABLE_ERROR_IN_PHONE_CALL.
 12802  	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
 12803  	// NewMessagePayload: Payload of NEW_MESSAGE event.
 12804  	NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
 12805  	// Type: The type of the event that this notification refers to.
 12806  	//
 12807  	// Possible values:
 12808  	//   "TYPE_UNSPECIFIED" - Type not set.
 12809  	//   "CONVERSATION_STARTED" - A new conversation has been opened. This is fired
 12810  	// when a telephone call is answered, or a conversation is created via the API.
 12811  	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This is
 12812  	// fired when a telephone call is terminated, or a conversation is closed via
 12813  	// the API.
 12814  	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
 12815  	// notification from Dialogflow that human intervention is required.
 12816  	//   "NEW_MESSAGE" - An existing conversation has received a new message,
 12817  	// either from API or telephony. It is configured in
 12818  	// ConversationProfile.new_message_event_notification_config
 12819  	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone call. In
 12820  	// general non-recoverable errors only occur if something was misconfigured in
 12821  	// the ConversationProfile corresponding to the call. After a non-recoverable
 12822  	// error, Dialogflow may stop responding. We don't fire this event: * in an API
 12823  	// call because we can directly return the error, or, * when we can recover
 12824  	// from an error.
 12825  	Type string `json:"type,omitempty"`
 12826  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 12827  	// unconditionally include in API requests. By default, fields with empty or
 12828  	// default values are omitted from API requests. See
 12829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12830  	// details.
 12831  	ForceSendFields []string `json:"-"`
 12832  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 12833  	// requests with the JSON null value. By default, fields with empty values are
 12834  	// omitted from API requests. See
 12835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12836  	NullFields []string `json:"-"`
 12837  }
 12838  
 12839  func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
 12840  	type NoMethod GoogleCloudDialogflowV2ConversationEvent
 12841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12842  }
 12843  
 12844  // GoogleCloudDialogflowV2ConversationModel: Represents a conversation model.
 12845  type GoogleCloudDialogflowV2ConversationModel struct {
 12846  	// ArticleSuggestionModelMetadata: Metadata for article suggestion models.
 12847  	ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`
 12848  	// CreateTime: Output only. Creation time of this model.
 12849  	CreateTime string `json:"createTime,omitempty"`
 12850  	// Datasets: Required. Datasets used to create model.
 12851  	Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
 12852  	// DisplayName: Required. The display name of the model. At most 64 bytes long.
 12853  	DisplayName string `json:"displayName,omitempty"`
 12854  	// LanguageCode: Language code for the conversation model. If not specified,
 12855  	// the language is en-US. Language at ConversationModel should be set for all
 12856  	// non en-us languages. This should be a BCP-47
 12857  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
 12858  	// "en-US".
 12859  	LanguageCode string `json:"languageCode,omitempty"`
 12860  	// Name: ConversationModel resource name. Format:
 12861  	// `projects//conversationModels/`
 12862  	Name string `json:"name,omitempty"`
 12863  	// SmartReplyModelMetadata: Metadata for smart reply models.
 12864  	SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`
 12865  	// State: Output only. State of the model. A model can only serve prediction
 12866  	// requests after it gets deployed.
 12867  	//
 12868  	// Possible values:
 12869  	//   "STATE_UNSPECIFIED" - Should not be used, an un-set enum has this value by
 12870  	// default.
 12871  	//   "CREATING" - Model being created.
 12872  	//   "UNDEPLOYED" - Model is not deployed but ready to deploy.
 12873  	//   "DEPLOYING" - Model is deploying.
 12874  	//   "DEPLOYED" - Model is deployed and ready to use.
 12875  	//   "UNDEPLOYING" - Model is undeploying.
 12876  	//   "DELETING" - Model is deleting.
 12877  	//   "FAILED" - Model is in error state. Not ready to deploy and use.
 12878  	//   "PENDING" - Model is being created but the training has not started, The
 12879  	// model may remain in this state until there is enough capacity to start
 12880  	// training.
 12881  	State string `json:"state,omitempty"`
 12882  	// ForceSendFields is a list of field names (e.g.
 12883  	// "ArticleSuggestionModelMetadata") to unconditionally include in API
 12884  	// requests. By default, fields with empty or default values are omitted from
 12885  	// API requests. See
 12886  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12887  	// details.
 12888  	ForceSendFields []string `json:"-"`
 12889  	// NullFields is a list of field names (e.g. "ArticleSuggestionModelMetadata")
 12890  	// to include in API requests with the JSON null value. By default, fields with
 12891  	// empty values are omitted from API requests. See
 12892  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12893  	NullFields []string `json:"-"`
 12894  }
 12895  
 12896  func (s *GoogleCloudDialogflowV2ConversationModel) MarshalJSON() ([]byte, error) {
 12897  	type NoMethod GoogleCloudDialogflowV2ConversationModel
 12898  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12899  }
 12900  
 12901  // GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata: Metadata
 12902  // for ConversationDatasets.
 12903  type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {
 12904  	// ConversationDataset: The resource name of the conversation dataset that will
 12905  	// be created. Format: `projects//locations//conversationDatasets/`
 12906  	ConversationDataset string `json:"conversationDataset,omitempty"`
 12907  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
 12908  	// unconditionally include in API requests. By default, fields with empty or
 12909  	// default values are omitted from API requests. See
 12910  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12911  	// details.
 12912  	ForceSendFields []string `json:"-"`
 12913  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
 12914  	// in API requests with the JSON null value. By default, fields with empty
 12915  	// values are omitted from API requests. See
 12916  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12917  	NullFields []string `json:"-"`
 12918  }
 12919  
 12920  func (s *GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
 12921  	type NoMethod GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
 12922  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12923  }
 12924  
 12925  // GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata:
 12926  // Metadata for a ConversationModels.CreateConversationModelEvaluation
 12927  // operation.
 12928  type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {
 12929  	// ConversationModel: The resource name of the conversation model. Format:
 12930  	// `projects//locations//conversationModels/`
 12931  	ConversationModel string `json:"conversationModel,omitempty"`
 12932  	// ConversationModelEvaluation: The resource name of the conversation model.
 12933  	// Format: `projects//locations//conversationModels//evaluations/`
 12934  	ConversationModelEvaluation string `json:"conversationModelEvaluation,omitempty"`
 12935  	// CreateTime: Timestamp when the request to create conversation model was
 12936  	// submitted. The time is measured on server side.
 12937  	CreateTime string `json:"createTime,omitempty"`
 12938  	// State: State of CreateConversationModel operation.
 12939  	//
 12940  	// Possible values:
 12941  	//   "STATE_UNSPECIFIED" - Operation status not specified.
 12942  	//   "INITIALIZING" - The operation is being prepared.
 12943  	//   "RUNNING" - The operation is running.
 12944  	//   "CANCELLED" - The operation is cancelled.
 12945  	//   "SUCCEEDED" - The operation has succeeded.
 12946  	//   "FAILED" - The operation has failed.
 12947  	State string `json:"state,omitempty"`
 12948  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
 12949  	// unconditionally include in API requests. By default, fields with empty or
 12950  	// default values are omitted from API requests. See
 12951  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12952  	// details.
 12953  	ForceSendFields []string `json:"-"`
 12954  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
 12955  	// API requests with the JSON null value. By default, fields with empty values
 12956  	// are omitted from API requests. See
 12957  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12958  	NullFields []string `json:"-"`
 12959  }
 12960  
 12961  func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata) MarshalJSON() ([]byte, error) {
 12962  	type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
 12963  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12964  }
 12965  
 12966  // GoogleCloudDialogflowV2CreateConversationModelOperationMetadata: Metadata
 12967  // for a ConversationModels.CreateConversationModel operation.
 12968  type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {
 12969  	// ConversationModel: The resource name of the conversation model. Format:
 12970  	// `projects//conversationModels/`
 12971  	ConversationModel string `json:"conversationModel,omitempty"`
 12972  	// CreateTime: Timestamp when the request to create conversation model is
 12973  	// submitted. The time is measured on server side.
 12974  	CreateTime string `json:"createTime,omitempty"`
 12975  	// State: State of CreateConversationModel operation.
 12976  	//
 12977  	// Possible values:
 12978  	//   "STATE_UNSPECIFIED" - Invalid.
 12979  	//   "PENDING" - Request is submitted, but training has not started yet. The
 12980  	// model may remain in this state until there is enough capacity to start
 12981  	// training.
 12982  	//   "SUCCEEDED" - The training has succeeded.
 12983  	//   "FAILED" - The training has succeeded.
 12984  	//   "CANCELLED" - The training has been cancelled.
 12985  	//   "CANCELLING" - The training is in cancelling state.
 12986  	//   "TRAINING" - Custom model is training.
 12987  	State string `json:"state,omitempty"`
 12988  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
 12989  	// unconditionally include in API requests. By default, fields with empty or
 12990  	// default values are omitted from API requests. See
 12991  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12992  	// details.
 12993  	ForceSendFields []string `json:"-"`
 12994  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
 12995  	// API requests with the JSON null value. By default, fields with empty values
 12996  	// are omitted from API requests. See
 12997  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12998  	NullFields []string `json:"-"`
 12999  }
 13000  
 13001  func (s *GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
 13002  	type NoMethod GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
 13003  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13004  }
 13005  
 13006  // GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata: Metadata
 13007  // for ConversationDatasets.
 13008  type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {
 13009  }
 13010  
 13011  // GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata: Metadata
 13012  // for a ConversationModels.DeleteConversationModel operation.
 13013  type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {
 13014  	// ConversationModel: The resource name of the conversation model. Format:
 13015  	// `projects//conversationModels/`
 13016  	ConversationModel string `json:"conversationModel,omitempty"`
 13017  	// CreateTime: Timestamp when delete conversation model request was created.
 13018  	// The time is measured on server side.
 13019  	CreateTime string `json:"createTime,omitempty"`
 13020  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
 13021  	// unconditionally include in API requests. By default, fields with empty or
 13022  	// default values are omitted from API requests. See
 13023  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13024  	// details.
 13025  	ForceSendFields []string `json:"-"`
 13026  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
 13027  	// API requests with the JSON null value. By default, fields with empty values
 13028  	// are omitted from API requests. See
 13029  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13030  	NullFields []string `json:"-"`
 13031  }
 13032  
 13033  func (s *GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
 13034  	type NoMethod GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
 13035  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13036  }
 13037  
 13038  // GoogleCloudDialogflowV2DeployConversationModelOperationMetadata: Metadata
 13039  // for a ConversationModels.DeployConversationModel operation.
 13040  type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {
 13041  	// ConversationModel: The resource name of the conversation model. Format:
 13042  	// `projects//conversationModels/`
 13043  	ConversationModel string `json:"conversationModel,omitempty"`
 13044  	// CreateTime: Timestamp when request to deploy conversation model was
 13045  	// submitted. The time is measured on server side.
 13046  	CreateTime string `json:"createTime,omitempty"`
 13047  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
 13048  	// unconditionally include in API requests. By default, fields with empty or
 13049  	// default values are omitted from API requests. See
 13050  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13051  	// details.
 13052  	ForceSendFields []string `json:"-"`
 13053  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
 13054  	// API requests with the JSON null value. By default, fields with empty values
 13055  	// are omitted from API requests. See
 13056  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13057  	NullFields []string `json:"-"`
 13058  }
 13059  
 13060  func (s *GoogleCloudDialogflowV2DeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
 13061  	type NoMethod GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
 13062  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13063  }
 13064  
 13065  // GoogleCloudDialogflowV2EntityType: Each intent parameter has a type, called
 13066  // the entity type, which dictates exactly how data from an end-user expression
 13067  // is extracted. Dialogflow provides predefined system entities that can match
 13068  // many common types of data. For example, there are system entities for
 13069  // matching dates, times, colors, email addresses, and so on. You can also
 13070  // create your own custom entities for matching custom data. For example, you
 13071  // could define a vegetable entity that can match the types of vegetables
 13072  // available for purchase with a grocery store agent. For more information, see
 13073  // the Entity guide
 13074  // (https://cloud.google.com/dialogflow/docs/entities-overview).
 13075  type GoogleCloudDialogflowV2EntityType struct {
 13076  	// AutoExpansionMode: Optional. Indicates whether the entity type can be
 13077  	// automatically expanded.
 13078  	//
 13079  	// Possible values:
 13080  	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
 13081  	// entity.
 13082  	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that
 13083  	// have not been explicitly listed in the entity.
 13084  	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
 13085  	// DisplayName: Required. The name of the entity type.
 13086  	DisplayName string `json:"displayName,omitempty"`
 13087  	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during
 13088  	// classification.
 13089  	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
 13090  	// Entities: Optional. The collection of entity entries associated with the
 13091  	// entity type.
 13092  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
 13093  	// Kind: Required. Indicates the kind of entity type.
 13094  	//
 13095  	// Possible values:
 13096  	//   "KIND_UNSPECIFIED" - Not specified. This value should be never used.
 13097  	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a
 13098  	// reference value.
 13099  	//   "KIND_LIST" - List entity types contain a set of entries that do not map
 13100  	// to reference values. However, list entity types can contain references to
 13101  	// other entity types (with or without aliases).
 13102  	//   "KIND_REGEXP" - Regexp entity types allow to specify regular expressions
 13103  	// in entries values.
 13104  	Kind string `json:"kind,omitempty"`
 13105  	// Name: The unique identifier of the entity type. Required for
 13106  	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods.
 13107  	// Format: `projects//agent/entityTypes/`.
 13108  	Name string `json:"name,omitempty"`
 13109  	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to
 13110  	// unconditionally include in API requests. By default, fields with empty or
 13111  	// default values are omitted from API requests. See
 13112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13113  	// details.
 13114  	ForceSendFields []string `json:"-"`
 13115  	// NullFields is a list of field names (e.g. "AutoExpansionMode") to include in
 13116  	// API requests with the JSON null value. By default, fields with empty values
 13117  	// are omitted from API requests. See
 13118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13119  	NullFields []string `json:"-"`
 13120  }
 13121  
 13122  func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
 13123  	type NoMethod GoogleCloudDialogflowV2EntityType
 13124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13125  }
 13126  
 13127  // GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an
 13128  // associated entity type.
 13129  type GoogleCloudDialogflowV2EntityTypeEntity struct {
 13130  	// Synonyms: Required. A collection of value synonyms. For example, if the
 13131  	// entity type is *vegetable*, and `value` is *scallions*, a synonym could be
 13132  	// *green onions*. For `KIND_LIST` entity types: * This collection must contain
 13133  	// exactly one synonym equal to `value`.
 13134  	Synonyms []string `json:"synonyms,omitempty"`
 13135  	// Value: Required. The primary value associated with this entity entry. For
 13136  	// example, if the entity type is *vegetable*, the value could be *scallions*.
 13137  	// For `KIND_MAP` entity types: * A reference value to be used in place of
 13138  	// synonyms. For `KIND_LIST` entity types: * A string that can contain
 13139  	// references to other entity types (with or without aliases).
 13140  	Value string `json:"value,omitempty"`
 13141  	// ForceSendFields is a list of field names (e.g. "Synonyms") to
 13142  	// unconditionally include in API requests. By default, fields with empty or
 13143  	// default values are omitted from API requests. See
 13144  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13145  	// details.
 13146  	ForceSendFields []string `json:"-"`
 13147  	// NullFields is a list of field names (e.g. "Synonyms") to include in API
 13148  	// requests with the JSON null value. By default, fields with empty values are
 13149  	// omitted from API requests. See
 13150  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13151  	NullFields []string `json:"-"`
 13152  }
 13153  
 13154  func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
 13155  	type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
 13156  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13157  }
 13158  
 13159  // GoogleCloudDialogflowV2EventInput: Events allow for matching intents by
 13160  // event name instead of the natural language input. For instance, input “ can
 13161  // trigger a personalized welcome response. The parameter `name` may be used by
 13162  // the agent in the response: "Hello #welcome_event.name! What can I do for
 13163  // you today?".
 13164  type GoogleCloudDialogflowV2EventInput struct {
 13165  	// LanguageCode: Required. The language of this query. See Language Support
 13166  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 13167  	// the currently supported language codes. Note that queries in the same
 13168  	// session do not necessarily need to specify the same language. This field is
 13169  	// ignored when used in the context of a WebhookResponse.followup_event_input
 13170  	// field, because the language was already defined in the originating detect
 13171  	// intent request.
 13172  	LanguageCode string `json:"languageCode,omitempty"`
 13173  	// Name: Required. The unique identifier of the event.
 13174  	Name string `json:"name,omitempty"`
 13175  	// Parameters: The collection of parameters associated with the event.
 13176  	// Depending on your protocol or client library language, this is a map,
 13177  	// associative array, symbol table, dictionary, or JSON object composed of a
 13178  	// collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 13179  	// value: parameter name * MapValue type: If parameter's entity type is a
 13180  	// composite entity then use map, otherwise, depending on the parameter value
 13181  	// type, it could be one of string, number, boolean, null, list or map. *
 13182  	// MapValue value: If parameter's entity type is a composite entity then use
 13183  	// map from composite entity property names to property values, otherwise, use
 13184  	// parameter value.
 13185  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 13186  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 13187  	// unconditionally include in API requests. By default, fields with empty or
 13188  	// default values are omitted from API requests. See
 13189  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13190  	// details.
 13191  	ForceSendFields []string `json:"-"`
 13192  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 13193  	// requests with the JSON null value. By default, fields with empty values are
 13194  	// omitted from API requests. See
 13195  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13196  	NullFields []string `json:"-"`
 13197  }
 13198  
 13199  func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
 13200  	type NoMethod GoogleCloudDialogflowV2EventInput
 13201  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13202  }
 13203  
 13204  // GoogleCloudDialogflowV2ExportAgentResponse: The response message for
 13205  // Agents.ExportAgent.
 13206  type GoogleCloudDialogflowV2ExportAgentResponse struct {
 13207  	// AgentContent: Zip compressed raw byte content for agent.
 13208  	AgentContent string `json:"agentContent,omitempty"`
 13209  	// AgentUri: The URI to a file containing the exported agent. This field is
 13210  	// populated only if `agent_uri` is specified in `ExportAgentRequest`.
 13211  	AgentUri string `json:"agentUri,omitempty"`
 13212  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 13213  	// unconditionally include in API requests. By default, fields with empty or
 13214  	// default values are omitted from API requests. See
 13215  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13216  	// details.
 13217  	ForceSendFields []string `json:"-"`
 13218  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 13219  	// requests with the JSON null value. By default, fields with empty values are
 13220  	// omitted from API requests. See
 13221  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13222  	NullFields []string `json:"-"`
 13223  }
 13224  
 13225  func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
 13226  	type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
 13227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13228  }
 13229  
 13230  // GoogleCloudDialogflowV2ExportOperationMetadata: Metadata related to the
 13231  // Export Data Operations (e.g. ExportDocument).
 13232  type GoogleCloudDialogflowV2ExportOperationMetadata struct {
 13233  	// ExportedGcsDestination: Cloud Storage file path of the exported data.
 13234  	ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`
 13235  	// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to
 13236  	// unconditionally include in API requests. By default, fields with empty or
 13237  	// default values are omitted from API requests. See
 13238  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13239  	// details.
 13240  	ForceSendFields []string `json:"-"`
 13241  	// NullFields is a list of field names (e.g. "ExportedGcsDestination") to
 13242  	// include in API requests with the JSON null value. By default, fields with
 13243  	// empty values are omitted from API requests. See
 13244  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13245  	NullFields []string `json:"-"`
 13246  }
 13247  
 13248  func (s *GoogleCloudDialogflowV2ExportOperationMetadata) MarshalJSON() ([]byte, error) {
 13249  	type NoMethod GoogleCloudDialogflowV2ExportOperationMetadata
 13250  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13251  }
 13252  
 13253  // GoogleCloudDialogflowV2FaqAnswer: Represents answer from "frequently asked
 13254  // questions".
 13255  type GoogleCloudDialogflowV2FaqAnswer struct {
 13256  	// Answer: The piece of text from the `source` knowledge base document.
 13257  	Answer string `json:"answer,omitempty"`
 13258  	// AnswerRecord: The name of answer record, in the format of
 13259  	// "projects//locations//answerRecords/"
 13260  	AnswerRecord string `json:"answerRecord,omitempty"`
 13261  	// Confidence: The system's confidence score that this Knowledge answer is a
 13262  	// good match for this conversational query, range from 0.0 (completely
 13263  	// uncertain) to 1.0 (completely certain).
 13264  	Confidence float64 `json:"confidence,omitempty"`
 13265  	// Metadata: A map that contains metadata about the answer and the document
 13266  	// from which it originates.
 13267  	Metadata map[string]string `json:"metadata,omitempty"`
 13268  	// Question: The corresponding FAQ question.
 13269  	Question string `json:"question,omitempty"`
 13270  	// Source: Indicates which Knowledge Document this answer was extracted from.
 13271  	// Format: `projects//locations//agent/knowledgeBases//documents/`.
 13272  	Source string `json:"source,omitempty"`
 13273  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 13274  	// include in API requests. By default, fields with empty or default values are
 13275  	// omitted from API requests. See
 13276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13277  	// details.
 13278  	ForceSendFields []string `json:"-"`
 13279  	// NullFields is a list of field names (e.g. "Answer") to include in API
 13280  	// requests with the JSON null value. By default, fields with empty values are
 13281  	// omitted from API requests. See
 13282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13283  	NullFields []string `json:"-"`
 13284  }
 13285  
 13286  func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
 13287  	type NoMethod GoogleCloudDialogflowV2FaqAnswer
 13288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13289  }
 13290  
 13291  func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
 13292  	type NoMethod GoogleCloudDialogflowV2FaqAnswer
 13293  	var s1 struct {
 13294  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 13295  		*NoMethod
 13296  	}
 13297  	s1.NoMethod = (*NoMethod)(s)
 13298  	if err := json.Unmarshal(data, &s1); err != nil {
 13299  		return err
 13300  	}
 13301  	s.Confidence = float64(s1.Confidence)
 13302  	return nil
 13303  }
 13304  
 13305  // GoogleCloudDialogflowV2GcsDestination: Google Cloud Storage location for the
 13306  // output.
 13307  type GoogleCloudDialogflowV2GcsDestination struct {
 13308  	// Uri: The Google Cloud Storage URIs for the output. A URI is of the form:
 13309  	// `gs://bucket/object-prefix-or-name` Whether a prefix or name is used depends
 13310  	// on the use case. The requesting user must have "write-permission" to the
 13311  	// bucket.
 13312  	Uri string `json:"uri,omitempty"`
 13313  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 13314  	// include in API requests. By default, fields with empty or default values are
 13315  	// omitted from API requests. See
 13316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13317  	// details.
 13318  	ForceSendFields []string `json:"-"`
 13319  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 13320  	// with the JSON null value. By default, fields with empty values are omitted
 13321  	// from API requests. See
 13322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13323  	NullFields []string `json:"-"`
 13324  }
 13325  
 13326  func (s *GoogleCloudDialogflowV2GcsDestination) MarshalJSON() ([]byte, error) {
 13327  	type NoMethod GoogleCloudDialogflowV2GcsDestination
 13328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13329  }
 13330  
 13331  // GoogleCloudDialogflowV2HumanAgentAssistantEvent: Represents a notification
 13332  // sent to Cloud Pub/Sub subscribers for human agent assistant events in a
 13333  // specific conversation.
 13334  type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
 13335  	// Conversation: The conversation this notification refers to. Format:
 13336  	// `projects//conversations/`.
 13337  	Conversation string `json:"conversation,omitempty"`
 13338  	// Participant: The participant that the suggestion is compiled for. Format:
 13339  	// `projects//conversations//participants/`. It will not be set in legacy
 13340  	// workflow.
 13341  	Participant string `json:"participant,omitempty"`
 13342  	// SuggestionResults: The suggestion results payload that this notification
 13343  	// refers to.
 13344  	SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
 13345  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 13346  	// unconditionally include in API requests. By default, fields with empty or
 13347  	// default values are omitted from API requests. See
 13348  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13349  	// details.
 13350  	ForceSendFields []string `json:"-"`
 13351  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 13352  	// requests with the JSON null value. By default, fields with empty values are
 13353  	// omitted from API requests. See
 13354  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13355  	NullFields []string `json:"-"`
 13356  }
 13357  
 13358  func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
 13359  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
 13360  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13361  }
 13362  
 13363  // GoogleCloudDialogflowV2ImportConversationDataOperationMetadata: Metadata for
 13364  // a ConversationDatasets.ImportConversationData operation.
 13365  type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {
 13366  	// ConversationDataset: The resource name of the imported conversation dataset.
 13367  	// Format: `projects//locations//conversationDatasets/`
 13368  	ConversationDataset string `json:"conversationDataset,omitempty"`
 13369  	// CreateTime: Timestamp when import conversation data request was created. The
 13370  	// time is measured on server side.
 13371  	CreateTime string `json:"createTime,omitempty"`
 13372  	// PartialFailures: Partial failures are failures that don't fail the whole
 13373  	// long running operation, e.g. single files that couldn't be read.
 13374  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
 13375  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
 13376  	// unconditionally include in API requests. By default, fields with empty or
 13377  	// default values are omitted from API requests. See
 13378  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13379  	// details.
 13380  	ForceSendFields []string `json:"-"`
 13381  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
 13382  	// in API requests with the JSON null value. By default, fields with empty
 13383  	// values are omitted from API requests. See
 13384  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13385  	NullFields []string `json:"-"`
 13386  }
 13387  
 13388  func (s *GoogleCloudDialogflowV2ImportConversationDataOperationMetadata) MarshalJSON() ([]byte, error) {
 13389  	type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
 13390  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13391  }
 13392  
 13393  // GoogleCloudDialogflowV2ImportConversationDataOperationResponse: Response
 13394  // used for ConversationDatasets.ImportConversationData long running operation.
 13395  type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {
 13396  	// ConversationDataset: The resource name of the imported conversation dataset.
 13397  	// Format: `projects//locations//conversationDatasets/`
 13398  	ConversationDataset string `json:"conversationDataset,omitempty"`
 13399  	// ImportCount: Number of conversations imported successfully.
 13400  	ImportCount int64 `json:"importCount,omitempty"`
 13401  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
 13402  	// unconditionally include in API requests. By default, fields with empty or
 13403  	// default values are omitted from API requests. See
 13404  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13405  	// details.
 13406  	ForceSendFields []string `json:"-"`
 13407  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
 13408  	// in API requests with the JSON null value. By default, fields with empty
 13409  	// values are omitted from API requests. See
 13410  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13411  	NullFields []string `json:"-"`
 13412  }
 13413  
 13414  func (s *GoogleCloudDialogflowV2ImportConversationDataOperationResponse) MarshalJSON() ([]byte, error) {
 13415  	type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationResponse
 13416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13417  }
 13418  
 13419  // GoogleCloudDialogflowV2ImportDocumentsResponse: Response message for
 13420  // Documents.ImportDocuments.
 13421  type GoogleCloudDialogflowV2ImportDocumentsResponse struct {
 13422  	// Warnings: Includes details about skipped documents or any other warnings.
 13423  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 13424  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 13425  	// unconditionally include in API requests. By default, fields with empty or
 13426  	// default values are omitted from API requests. See
 13427  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13428  	// details.
 13429  	ForceSendFields []string `json:"-"`
 13430  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 13431  	// requests with the JSON null value. By default, fields with empty values are
 13432  	// omitted from API requests. See
 13433  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13434  	NullFields []string `json:"-"`
 13435  }
 13436  
 13437  func (s *GoogleCloudDialogflowV2ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 13438  	type NoMethod GoogleCloudDialogflowV2ImportDocumentsResponse
 13439  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13440  }
 13441  
 13442  // GoogleCloudDialogflowV2InputDataset: InputDataset used to create model or do
 13443  // evaluation. NextID:5
 13444  type GoogleCloudDialogflowV2InputDataset struct {
 13445  	// Dataset: Required. ConversationDataset resource name. Format:
 13446  	// `projects//locations//conversationDatasets/`
 13447  	Dataset string `json:"dataset,omitempty"`
 13448  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
 13449  	// include in API requests. By default, fields with empty or default values are
 13450  	// omitted from API requests. See
 13451  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13452  	// details.
 13453  	ForceSendFields []string `json:"-"`
 13454  	// NullFields is a list of field names (e.g. "Dataset") to include in API
 13455  	// requests with the JSON null value. By default, fields with empty values are
 13456  	// omitted from API requests. See
 13457  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13458  	NullFields []string `json:"-"`
 13459  }
 13460  
 13461  func (s *GoogleCloudDialogflowV2InputDataset) MarshalJSON() ([]byte, error) {
 13462  	type NoMethod GoogleCloudDialogflowV2InputDataset
 13463  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13464  }
 13465  
 13466  // GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's intention
 13467  // for one conversation turn. For each agent, you define many intents, where
 13468  // your combined intents can handle a complete conversation. When an end-user
 13469  // writes or says something, referred to as an end-user expression or end-user
 13470  // input, Dialogflow matches the end-user input to the best intent in your
 13471  // agent. Matching an intent is also known as intent classification. For more
 13472  // information, see the intent guide
 13473  // (https://cloud.google.com/dialogflow/docs/intents-overview).
 13474  type GoogleCloudDialogflowV2Intent struct {
 13475  	// Action: Optional. The name of the action associated with the intent. Note:
 13476  	// The action name must not contain whitespaces.
 13477  	Action string `json:"action,omitempty"`
 13478  	// DefaultResponsePlatforms: Optional. The list of platforms for which the
 13479  	// first responses will be copied from the messages in PLATFORM_UNSPECIFIED
 13480  	// (i.e. default platform).
 13481  	//
 13482  	// Possible values:
 13483  	//   "PLATFORM_UNSPECIFIED" - Default platform.
 13484  	//   "FACEBOOK" - Facebook.
 13485  	//   "SLACK" - Slack.
 13486  	//   "TELEGRAM" - Telegram.
 13487  	//   "KIK" - Kik.
 13488  	//   "SKYPE" - Skype.
 13489  	//   "LINE" - Line.
 13490  	//   "VIBER" - Viber.
 13491  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 13492  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 13493  	// -webhook-json)
 13494  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 13495  	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
 13496  	// DisplayName: Required. The name of this intent.
 13497  	DisplayName string `json:"displayName,omitempty"`
 13498  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 13499  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 13500  	// this information to close interaction with an end user. Default is false.
 13501  	EndInteraction bool `json:"endInteraction,omitempty"`
 13502  	// Events: Optional. The collection of event names that trigger the intent. If
 13503  	// the collection of input contexts is not empty, all of the contexts must be
 13504  	// present in the active user session for an event to trigger this intent.
 13505  	// Event names are limited to 150 characters.
 13506  	Events []string `json:"events,omitempty"`
 13507  	// FollowupIntentInfo: Output only. Read-only. Information about all followup
 13508  	// intents that have this intent as a direct or indirect parent. We populate
 13509  	// this field only in the output.
 13510  	FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
 13511  	// InputContextNames: Optional. The list of context names required for this
 13512  	// intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
 13513  	InputContextNames []string `json:"inputContextNames,omitempty"`
 13514  	// IsFallback: Optional. Indicates whether this is a fallback intent.
 13515  	IsFallback bool `json:"isFallback,omitempty"`
 13516  	// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in
 13517  	// to handle the interaction with the user. In most cases, when you set this
 13518  	// flag to true, you would also want to set end_interaction to true as well.
 13519  	// Default is false.
 13520  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 13521  	// Messages: Optional. The collection of rich messages corresponding to the
 13522  	// `Response` field in the Dialogflow console.
 13523  	Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
 13524  	// MlDisabled: Optional. Indicates whether Machine Learning is disabled for the
 13525  	// intent. Note: If `ml_disabled` setting is set to true, then this intent is
 13526  	// not taken into account during inference in `ML ONLY` match mode. Also,
 13527  	// auto-markup in the UI is turned off.
 13528  	MlDisabled bool `json:"mlDisabled,omitempty"`
 13529  	// Name: Optional. The unique identifier of this intent. Required for
 13530  	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
 13531  	// `projects//agent/intents/`.
 13532  	Name string `json:"name,omitempty"`
 13533  	// OutputContexts: Optional. The collection of contexts that are activated when
 13534  	// the intent is matched. Context messages in this collection should not set
 13535  	// the parameters field. Setting the `lifespan_count` to 0 will reset the
 13536  	// context when the intent is matched. Format:
 13537  	// `projects//agent/sessions/-/contexts/`.
 13538  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
 13539  	// Parameters: Optional. The collection of parameters associated with the
 13540  	// intent.
 13541  	Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
 13542  	// ParentFollowupIntentName: Read-only after creation. The unique identifier of
 13543  	// the parent intent in the chain of followup intents. You can set this field
 13544  	// when creating an intent, for example with CreateIntent or
 13545  	// BatchUpdateIntents, in order to make this intent a followup intent. It
 13546  	// identifies the parent followup intent. Format: `projects//agent/intents/`.
 13547  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 13548  	// Priority: Optional. The priority of this intent. Higher numbers represent
 13549  	// higher priorities. - If the supplied value is unspecified or 0, the service
 13550  	// translates the value to 500,000, which corresponds to the `Normal` priority
 13551  	// in the console. - If the supplied value is negative, the intent is ignored
 13552  	// in runtime detect intent requests.
 13553  	Priority int64 `json:"priority,omitempty"`
 13554  	// ResetContexts: Optional. Indicates whether to delete all contexts in the
 13555  	// current session when this intent is matched.
 13556  	ResetContexts bool `json:"resetContexts,omitempty"`
 13557  	// RootFollowupIntentName: Output only. Read-only. The unique identifier of the
 13558  	// root intent in the chain of followup intents. It identifies the correct
 13559  	// followup intents chain for this intent. We populate this field only in the
 13560  	// output. Format: `projects//agent/intents/`.
 13561  	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
 13562  	// TrainingPhrases: Optional. The collection of examples that the agent is
 13563  	// trained on.
 13564  	TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
 13565  	// WebhookState: Optional. Indicates whether webhooks are enabled for the
 13566  	// intent.
 13567  	//
 13568  	// Possible values:
 13569  	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the
 13570  	// intent.
 13571  	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the
 13572  	// intent.
 13573  	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent
 13574  	// and in the intent. Also, each slot filling prompt is forwarded to the
 13575  	// webhook.
 13576  	WebhookState string `json:"webhookState,omitempty"`
 13577  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 13578  	// include in API requests. By default, fields with empty or default values are
 13579  	// omitted from API requests. See
 13580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13581  	// details.
 13582  	ForceSendFields []string `json:"-"`
 13583  	// NullFields is a list of field names (e.g. "Action") to include in API
 13584  	// requests with the JSON null value. By default, fields with empty values are
 13585  	// omitted from API requests. See
 13586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13587  	NullFields []string `json:"-"`
 13588  }
 13589  
 13590  func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
 13591  	type NoMethod GoogleCloudDialogflowV2Intent
 13592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13593  }
 13594  
 13595  // GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single
 13596  // followup intent in the chain.
 13597  type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
 13598  	// FollowupIntentName: The unique identifier of the followup intent. Format:
 13599  	// `projects//agent/intents/`.
 13600  	FollowupIntentName string `json:"followupIntentName,omitempty"`
 13601  	// ParentFollowupIntentName: The unique identifier of the followup intent's
 13602  	// parent. Format: `projects//agent/intents/`.
 13603  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 13604  	// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to
 13605  	// unconditionally include in API requests. By default, fields with empty or
 13606  	// default values are omitted from API requests. See
 13607  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13608  	// details.
 13609  	ForceSendFields []string `json:"-"`
 13610  	// NullFields is a list of field names (e.g. "FollowupIntentName") to include
 13611  	// in API requests with the JSON null value. By default, fields with empty
 13612  	// values are omitted from API requests. See
 13613  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13614  	NullFields []string `json:"-"`
 13615  }
 13616  
 13617  func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
 13618  	type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
 13619  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13620  }
 13621  
 13622  // GoogleCloudDialogflowV2IntentMessage: A rich response message. Corresponds
 13623  // to the intent `Response` field in the Dialogflow console. For more
 13624  // information, see Rich response messages
 13625  // (https://cloud.google.com/dialogflow/docs/intents-rich-messages).
 13626  type GoogleCloudDialogflowV2IntentMessage struct {
 13627  	// BasicCard: The basic card response for Actions on Google.
 13628  	BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
 13629  	// BrowseCarouselCard: Browse carousel card for Actions on Google.
 13630  	BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
 13631  	// Card: The card response.
 13632  	Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
 13633  	// CarouselSelect: The carousel card response for Actions on Google.
 13634  	CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
 13635  	// Image: The image response.
 13636  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 13637  	// LinkOutSuggestion: The link out suggestion chip for Actions on Google.
 13638  	LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
 13639  	// ListSelect: The list card response for Actions on Google.
 13640  	ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
 13641  	// MediaContent: The media content card for Actions on Google.
 13642  	MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
 13643  	// Payload: A custom platform-specific response.
 13644  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 13645  	// Platform: Optional. The platform that this message is intended for.
 13646  	//
 13647  	// Possible values:
 13648  	//   "PLATFORM_UNSPECIFIED" - Default platform.
 13649  	//   "FACEBOOK" - Facebook.
 13650  	//   "SLACK" - Slack.
 13651  	//   "TELEGRAM" - Telegram.
 13652  	//   "KIK" - Kik.
 13653  	//   "SKYPE" - Skype.
 13654  	//   "LINE" - Line.
 13655  	//   "VIBER" - Viber.
 13656  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 13657  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 13658  	// -webhook-json)
 13659  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 13660  	Platform string `json:"platform,omitempty"`
 13661  	// QuickReplies: The quick replies response.
 13662  	QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
 13663  	// SimpleResponses: The voice and text-only responses for Actions on Google.
 13664  	SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
 13665  	// Suggestions: The suggestion chips for Actions on Google.
 13666  	Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
 13667  	// TableCard: Table card for Actions on Google.
 13668  	TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
 13669  	// Text: The text response.
 13670  	Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
 13671  	// ForceSendFields is a list of field names (e.g. "BasicCard") to
 13672  	// unconditionally include in API requests. By default, fields with empty or
 13673  	// default values are omitted from API requests. See
 13674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13675  	// details.
 13676  	ForceSendFields []string `json:"-"`
 13677  	// NullFields is a list of field names (e.g. "BasicCard") to include in API
 13678  	// requests with the JSON null value. By default, fields with empty values are
 13679  	// omitted from API requests. See
 13680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13681  	NullFields []string `json:"-"`
 13682  }
 13683  
 13684  func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
 13685  	type NoMethod GoogleCloudDialogflowV2IntentMessage
 13686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13687  }
 13688  
 13689  // GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card message.
 13690  // Useful for displaying information.
 13691  type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
 13692  	// Buttons: Optional. The collection of card buttons.
 13693  	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
 13694  	// FormattedText: Required, unless image is present. The body text of the card.
 13695  	FormattedText string `json:"formattedText,omitempty"`
 13696  	// Image: Optional. The image for the card.
 13697  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 13698  	// Subtitle: Optional. The subtitle of the card.
 13699  	Subtitle string `json:"subtitle,omitempty"`
 13700  	// Title: Optional. The title of the card.
 13701  	Title string `json:"title,omitempty"`
 13702  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 13703  	// include in API requests. By default, fields with empty or default values are
 13704  	// omitted from API requests. See
 13705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13706  	// details.
 13707  	ForceSendFields []string `json:"-"`
 13708  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 13709  	// requests with the JSON null value. By default, fields with empty values are
 13710  	// omitted from API requests. See
 13711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13712  	NullFields []string `json:"-"`
 13713  }
 13714  
 13715  func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
 13716  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
 13717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13718  }
 13719  
 13720  // GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button object that
 13721  // appears at the bottom of a card.
 13722  type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
 13723  	// OpenUriAction: Required. Action to take when a user taps on the button.
 13724  	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
 13725  	// Title: Required. The title of the button.
 13726  	Title string `json:"title,omitempty"`
 13727  	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
 13728  	// unconditionally include in API requests. By default, fields with empty or
 13729  	// default values are omitted from API requests. See
 13730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13731  	// details.
 13732  	ForceSendFields []string `json:"-"`
 13733  	// NullFields is a list of field names (e.g. "OpenUriAction") to include in API
 13734  	// requests with the JSON null value. By default, fields with empty values are
 13735  	// omitted from API requests. See
 13736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13737  	NullFields []string `json:"-"`
 13738  }
 13739  
 13740  func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
 13741  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
 13742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13743  }
 13744  
 13745  // GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: Opens the
 13746  // given URI.
 13747  type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
 13748  	// Uri: Required. The HTTP or HTTPS scheme URI.
 13749  	Uri string `json:"uri,omitempty"`
 13750  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 13751  	// include in API requests. By default, fields with empty or default values are
 13752  	// omitted from API requests. See
 13753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13754  	// details.
 13755  	ForceSendFields []string `json:"-"`
 13756  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 13757  	// with the JSON null value. By default, fields with empty values are omitted
 13758  	// from API requests. See
 13759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13760  	NullFields []string `json:"-"`
 13761  }
 13762  
 13763  func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
 13764  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
 13765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13766  }
 13767  
 13768  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse Carousel Card
 13769  // for Actions on Google.
 13770  // https://developers.google.com/actions/assistant/responses#browsing_carousel
 13771  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
 13772  	// ImageDisplayOptions: Optional. Settings for displaying the image. Applies to
 13773  	// every image in items.
 13774  	//
 13775  	// Possible values:
 13776  	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and
 13777  	// the image container with gray bars.
 13778  	//   "GRAY" - Fill the gaps between the image and the image container with gray
 13779  	// bars.
 13780  	//   "WHITE" - Fill the gaps between the image and the image container with
 13781  	// white bars.
 13782  	//   "CROPPED" - Image is scaled such that the image width and height match or
 13783  	// exceed the container dimensions. This may crop the top and bottom of the
 13784  	// image if the scaled image height is greater than the container height, or
 13785  	// crop the left and right of the image if the scaled image width is greater
 13786  	// than the container width. This is similar to "Zoom Mode" on a widescreen TV
 13787  	// when playing a 4:3 video.
 13788  	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a
 13789  	// blurred copy of the same image.
 13790  	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
 13791  	// Items: Required. List of items in the Browse Carousel Card. Minimum of two
 13792  	// items, maximum of ten.
 13793  	Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
 13794  	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to
 13795  	// unconditionally include in API requests. By default, fields with empty or
 13796  	// default values are omitted from API requests. See
 13797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13798  	// details.
 13799  	ForceSendFields []string `json:"-"`
 13800  	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to include
 13801  	// in API requests with the JSON null value. By default, fields with empty
 13802  	// values are omitted from API requests. See
 13803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13804  	NullFields []string `json:"-"`
 13805  }
 13806  
 13807  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
 13808  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
 13809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13810  }
 13811  
 13812  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem:
 13813  //
 13814  //	Browsing carousel tile
 13815  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
 13816  	// Description: Optional. Description of the carousel item. Maximum of four
 13817  	// lines of text.
 13818  	Description string `json:"description,omitempty"`
 13819  	// Footer: Optional. Text that appears at the bottom of the Browse Carousel
 13820  	// Card. Maximum of one line of text.
 13821  	Footer string `json:"footer,omitempty"`
 13822  	// Image: Optional. Hero image for the carousel item.
 13823  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 13824  	// OpenUriAction: Required. Action to present to the user.
 13825  	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
 13826  	// Title: Required. Title of the carousel item. Maximum of two lines of text.
 13827  	Title string `json:"title,omitempty"`
 13828  	// ForceSendFields is a list of field names (e.g. "Description") to
 13829  	// unconditionally include in API requests. By default, fields with empty or
 13830  	// default values are omitted from API requests. See
 13831  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13832  	// details.
 13833  	ForceSendFields []string `json:"-"`
 13834  	// NullFields is a list of field names (e.g. "Description") to include in API
 13835  	// requests with the JSON null value. By default, fields with empty values are
 13836  	// omitted from API requests. See
 13837  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13838  	NullFields []string `json:"-"`
 13839  }
 13840  
 13841  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
 13842  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
 13843  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13844  }
 13845  
 13846  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemO
 13847  // penUrlAction: Actions on Google action to open a given url.
 13848  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
 13849  	// Url: Required. URL
 13850  	Url string `json:"url,omitempty"`
 13851  	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
 13852  	// opening the URL. Defaults to opening via web browser.
 13853  	//
 13854  	// Possible values:
 13855  	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
 13856  	//   "AMP_ACTION" - Url would be an amp action
 13857  	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical
 13858  	// URL which refers to AMP content via .
 13859  	UrlTypeHint string `json:"urlTypeHint,omitempty"`
 13860  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
 13861  	// include in API requests. By default, fields with empty or default values are
 13862  	// omitted from API requests. See
 13863  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13864  	// details.
 13865  	ForceSendFields []string `json:"-"`
 13866  	// NullFields is a list of field names (e.g. "Url") to include in API requests
 13867  	// with the JSON null value. By default, fields with empty values are omitted
 13868  	// from API requests. See
 13869  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13870  	NullFields []string `json:"-"`
 13871  }
 13872  
 13873  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
 13874  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
 13875  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13876  }
 13877  
 13878  // GoogleCloudDialogflowV2IntentMessageCard: The card response message.
 13879  type GoogleCloudDialogflowV2IntentMessageCard struct {
 13880  	// Buttons: Optional. The collection of card buttons.
 13881  	Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
 13882  	// ImageUri: Optional. The public URI to an image file for the card.
 13883  	ImageUri string `json:"imageUri,omitempty"`
 13884  	// Subtitle: Optional. The subtitle of the card.
 13885  	Subtitle string `json:"subtitle,omitempty"`
 13886  	// Title: Optional. The title of the card.
 13887  	Title string `json:"title,omitempty"`
 13888  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 13889  	// include in API requests. By default, fields with empty or default values are
 13890  	// omitted from API requests. See
 13891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13892  	// details.
 13893  	ForceSendFields []string `json:"-"`
 13894  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 13895  	// requests with the JSON null value. By default, fields with empty values are
 13896  	// omitted from API requests. See
 13897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13898  	NullFields []string `json:"-"`
 13899  }
 13900  
 13901  func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
 13902  	type NoMethod GoogleCloudDialogflowV2IntentMessageCard
 13903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13904  }
 13905  
 13906  // GoogleCloudDialogflowV2IntentMessageCardButton: Contains information about a
 13907  // button.
 13908  type GoogleCloudDialogflowV2IntentMessageCardButton struct {
 13909  	// Postback: Optional. The text to send back to the Dialogflow API or a URI to
 13910  	// open.
 13911  	Postback string `json:"postback,omitempty"`
 13912  	// Text: Optional. The text to show on the button.
 13913  	Text string `json:"text,omitempty"`
 13914  	// ForceSendFields is a list of field names (e.g. "Postback") to
 13915  	// unconditionally include in API requests. By default, fields with empty or
 13916  	// default values are omitted from API requests. See
 13917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13918  	// details.
 13919  	ForceSendFields []string `json:"-"`
 13920  	// NullFields is a list of field names (e.g. "Postback") to include in API
 13921  	// requests with the JSON null value. By default, fields with empty values are
 13922  	// omitted from API requests. See
 13923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13924  	NullFields []string `json:"-"`
 13925  }
 13926  
 13927  func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
 13928  	type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
 13929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13930  }
 13931  
 13932  // GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for presenting
 13933  // a carousel of options to select from.
 13934  type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
 13935  	// Items: Required. Carousel items.
 13936  	Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
 13937  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 13938  	// include in API requests. By default, fields with empty or default values are
 13939  	// omitted from API requests. See
 13940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13941  	// details.
 13942  	ForceSendFields []string `json:"-"`
 13943  	// NullFields is a list of field names (e.g. "Items") to include in API
 13944  	// requests with the JSON null value. By default, fields with empty values are
 13945  	// omitted from API requests. See
 13946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13947  	NullFields []string `json:"-"`
 13948  }
 13949  
 13950  func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
 13951  	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
 13952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13953  }
 13954  
 13955  // GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in the
 13956  // carousel.
 13957  type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
 13958  	// Description: Optional. The body text of the card.
 13959  	Description string `json:"description,omitempty"`
 13960  	// Image: Optional. The image to display.
 13961  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 13962  	// Info: Required. Additional info about the option item.
 13963  	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
 13964  	// Title: Required. Title of the carousel item.
 13965  	Title string `json:"title,omitempty"`
 13966  	// ForceSendFields is a list of field names (e.g. "Description") to
 13967  	// unconditionally include in API requests. By default, fields with empty or
 13968  	// default values are omitted from API requests. See
 13969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13970  	// details.
 13971  	ForceSendFields []string `json:"-"`
 13972  	// NullFields is a list of field names (e.g. "Description") to include in API
 13973  	// requests with the JSON null value. By default, fields with empty values are
 13974  	// omitted from API requests. See
 13975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13976  	NullFields []string `json:"-"`
 13977  }
 13978  
 13979  func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
 13980  	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
 13981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13982  }
 13983  
 13984  // GoogleCloudDialogflowV2IntentMessageColumnProperties: Column properties for
 13985  // TableCard.
 13986  type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
 13987  	// Header: Required. Column heading.
 13988  	Header string `json:"header,omitempty"`
 13989  	// HorizontalAlignment: Optional. Defines text alignment for all cells in this
 13990  	// column.
 13991  	//
 13992  	// Possible values:
 13993  	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge
 13994  	// of the column.
 13995  	//   "LEADING" - Text is aligned to the leading edge of the column.
 13996  	//   "CENTER" - Text is centered in the column.
 13997  	//   "TRAILING" - Text is aligned to the trailing edge of the column.
 13998  	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
 13999  	// ForceSendFields is a list of field names (e.g. "Header") to unconditionally
 14000  	// include in API requests. By default, fields with empty or default values are
 14001  	// omitted from API requests. See
 14002  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14003  	// details.
 14004  	ForceSendFields []string `json:"-"`
 14005  	// NullFields is a list of field names (e.g. "Header") to include in API
 14006  	// requests with the JSON null value. By default, fields with empty values are
 14007  	// omitted from API requests. See
 14008  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14009  	NullFields []string `json:"-"`
 14010  }
 14011  
 14012  func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
 14013  	type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
 14014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14015  }
 14016  
 14017  // GoogleCloudDialogflowV2IntentMessageImage: The image response message.
 14018  type GoogleCloudDialogflowV2IntentMessageImage struct {
 14019  	// AccessibilityText: Optional. A text description of the image to be used for
 14020  	// accessibility, e.g., screen readers.
 14021  	AccessibilityText string `json:"accessibilityText,omitempty"`
 14022  	// ImageUri: Optional. The public URI to an image file.
 14023  	ImageUri string `json:"imageUri,omitempty"`
 14024  	// ForceSendFields is a list of field names (e.g. "AccessibilityText") to
 14025  	// unconditionally include in API requests. By default, fields with empty or
 14026  	// default values are omitted from API requests. See
 14027  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14028  	// details.
 14029  	ForceSendFields []string `json:"-"`
 14030  	// NullFields is a list of field names (e.g. "AccessibilityText") to include in
 14031  	// API requests with the JSON null value. By default, fields with empty values
 14032  	// are omitted from API requests. See
 14033  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14034  	NullFields []string `json:"-"`
 14035  }
 14036  
 14037  func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
 14038  	type NoMethod GoogleCloudDialogflowV2IntentMessageImage
 14039  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14040  }
 14041  
 14042  // GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion chip
 14043  // message that allows the user to jump out to the app or website associated
 14044  // with this agent.
 14045  type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
 14046  	// DestinationName: Required. The name of the app or site this chip is linking
 14047  	// to.
 14048  	DestinationName string `json:"destinationName,omitempty"`
 14049  	// Uri: Required. The URI of the app or site to open when the user taps the
 14050  	// suggestion chip.
 14051  	Uri string `json:"uri,omitempty"`
 14052  	// ForceSendFields is a list of field names (e.g. "DestinationName") to
 14053  	// unconditionally include in API requests. By default, fields with empty or
 14054  	// default values are omitted from API requests. See
 14055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14056  	// details.
 14057  	ForceSendFields []string `json:"-"`
 14058  	// NullFields is a list of field names (e.g. "DestinationName") to include in
 14059  	// API requests with the JSON null value. By default, fields with empty values
 14060  	// are omitted from API requests. See
 14061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14062  	NullFields []string `json:"-"`
 14063  }
 14064  
 14065  func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
 14066  	type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
 14067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14068  }
 14069  
 14070  // GoogleCloudDialogflowV2IntentMessageListSelect: The card for presenting a
 14071  // list of options to select from.
 14072  type GoogleCloudDialogflowV2IntentMessageListSelect struct {
 14073  	// Items: Required. List items.
 14074  	Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
 14075  	// Subtitle: Optional. Subtitle of the list.
 14076  	Subtitle string `json:"subtitle,omitempty"`
 14077  	// Title: Optional. The overall title of the list.
 14078  	Title string `json:"title,omitempty"`
 14079  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 14080  	// include in API requests. By default, fields with empty or default values are
 14081  	// omitted from API requests. See
 14082  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14083  	// details.
 14084  	ForceSendFields []string `json:"-"`
 14085  	// NullFields is a list of field names (e.g. "Items") to include in API
 14086  	// requests with the JSON null value. By default, fields with empty values are
 14087  	// omitted from API requests. See
 14088  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14089  	NullFields []string `json:"-"`
 14090  }
 14091  
 14092  func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
 14093  	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
 14094  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14095  }
 14096  
 14097  // GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the list.
 14098  type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
 14099  	// Description: Optional. The main text describing the item.
 14100  	Description string `json:"description,omitempty"`
 14101  	// Image: Optional. The image to display.
 14102  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 14103  	// Info: Required. Additional information about this option.
 14104  	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
 14105  	// Title: Required. The title of the list item.
 14106  	Title string `json:"title,omitempty"`
 14107  	// ForceSendFields is a list of field names (e.g. "Description") to
 14108  	// unconditionally include in API requests. By default, fields with empty or
 14109  	// default values are omitted from API requests. See
 14110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14111  	// details.
 14112  	ForceSendFields []string `json:"-"`
 14113  	// NullFields is a list of field names (e.g. "Description") to include in API
 14114  	// requests with the JSON null value. By default, fields with empty values are
 14115  	// omitted from API requests. See
 14116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14117  	NullFields []string `json:"-"`
 14118  }
 14119  
 14120  func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
 14121  	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
 14122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14123  }
 14124  
 14125  // GoogleCloudDialogflowV2IntentMessageMediaContent: The media content card for
 14126  // Actions on Google.
 14127  type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
 14128  	// MediaObjects: Required. List of media objects.
 14129  	MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
 14130  	// MediaType: Optional. What type of media is the content (ie "audio").
 14131  	//
 14132  	// Possible values:
 14133  	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
 14134  	//   "AUDIO" - Response media type is audio.
 14135  	MediaType string `json:"mediaType,omitempty"`
 14136  	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
 14137  	// unconditionally include in API requests. By default, fields with empty or
 14138  	// default values are omitted from API requests. See
 14139  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14140  	// details.
 14141  	ForceSendFields []string `json:"-"`
 14142  	// NullFields is a list of field names (e.g. "MediaObjects") to include in API
 14143  	// requests with the JSON null value. By default, fields with empty values are
 14144  	// omitted from API requests. See
 14145  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14146  	NullFields []string `json:"-"`
 14147  }
 14148  
 14149  func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
 14150  	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
 14151  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14152  }
 14153  
 14154  // GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject:
 14155  // Response media object for media content card.
 14156  type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
 14157  	// ContentUrl: Required. Url where the media is stored.
 14158  	ContentUrl string `json:"contentUrl,omitempty"`
 14159  	// Description: Optional. Description of media card.
 14160  	Description string `json:"description,omitempty"`
 14161  	// Icon: Optional. Icon to display above media content.
 14162  	Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
 14163  	// LargeImage: Optional. Image to display above media content.
 14164  	LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
 14165  	// Name: Required. Name of media card.
 14166  	Name string `json:"name,omitempty"`
 14167  	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
 14168  	// unconditionally include in API requests. By default, fields with empty or
 14169  	// default values are omitted from API requests. See
 14170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14171  	// details.
 14172  	ForceSendFields []string `json:"-"`
 14173  	// NullFields is a list of field names (e.g. "ContentUrl") to include in API
 14174  	// requests with the JSON null value. By default, fields with empty values are
 14175  	// omitted from API requests. See
 14176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14177  	NullFields []string `json:"-"`
 14178  }
 14179  
 14180  func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
 14181  	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
 14182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14183  }
 14184  
 14185  // GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies response
 14186  // message.
 14187  type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
 14188  	// QuickReplies: Optional. The collection of quick replies.
 14189  	QuickReplies []string `json:"quickReplies,omitempty"`
 14190  	// Title: Optional. The title of the collection of quick replies.
 14191  	Title string `json:"title,omitempty"`
 14192  	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
 14193  	// unconditionally include in API requests. By default, fields with empty or
 14194  	// default values are omitted from API requests. See
 14195  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14196  	// details.
 14197  	ForceSendFields []string `json:"-"`
 14198  	// NullFields is a list of field names (e.g. "QuickReplies") to include in API
 14199  	// requests with the JSON null value. By default, fields with empty values are
 14200  	// omitted from API requests. See
 14201  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14202  	NullFields []string `json:"-"`
 14203  }
 14204  
 14205  func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
 14206  	type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
 14207  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14208  }
 14209  
 14210  // GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info about
 14211  // the select item for when it is triggered in a dialog.
 14212  type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
 14213  	// Key: Required. A unique key that will be sent back to the agent if this
 14214  	// response is given.
 14215  	Key string `json:"key,omitempty"`
 14216  	// Synonyms: Optional. A list of synonyms that can also be used to trigger this
 14217  	// item in dialog.
 14218  	Synonyms []string `json:"synonyms,omitempty"`
 14219  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
 14220  	// include in API requests. By default, fields with empty or default values are
 14221  	// omitted from API requests. See
 14222  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14223  	// details.
 14224  	ForceSendFields []string `json:"-"`
 14225  	// NullFields is a list of field names (e.g. "Key") to include in API requests
 14226  	// with the JSON null value. By default, fields with empty values are omitted
 14227  	// from API requests. See
 14228  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14229  	NullFields []string `json:"-"`
 14230  }
 14231  
 14232  func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
 14233  	type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
 14234  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14235  }
 14236  
 14237  // GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple response
 14238  // message containing speech or text.
 14239  type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
 14240  	// DisplayText: Optional. The text to display.
 14241  	DisplayText string `json:"displayText,omitempty"`
 14242  	// Ssml: One of text_to_speech or ssml must be provided. Structured spoken
 14243  	// response to the user in the SSML format. Mutually exclusive with
 14244  	// text_to_speech.
 14245  	Ssml string `json:"ssml,omitempty"`
 14246  	// TextToSpeech: One of text_to_speech or ssml must be provided. The plain text
 14247  	// of the speech output. Mutually exclusive with ssml.
 14248  	TextToSpeech string `json:"textToSpeech,omitempty"`
 14249  	// ForceSendFields is a list of field names (e.g. "DisplayText") to
 14250  	// unconditionally include in API requests. By default, fields with empty or
 14251  	// default values are omitted from API requests. See
 14252  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14253  	// details.
 14254  	ForceSendFields []string `json:"-"`
 14255  	// NullFields is a list of field names (e.g. "DisplayText") to include in API
 14256  	// requests with the JSON null value. By default, fields with empty values are
 14257  	// omitted from API requests. See
 14258  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14259  	NullFields []string `json:"-"`
 14260  }
 14261  
 14262  func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
 14263  	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
 14264  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14265  }
 14266  
 14267  // GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection of
 14268  // simple response candidates. This message in
 14269  // `QueryResult.fulfillment_messages` and
 14270  // `WebhookResponse.fulfillment_messages` should contain only one
 14271  // `SimpleResponse`.
 14272  type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
 14273  	// SimpleResponses: Required. The list of simple responses.
 14274  	SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
 14275  	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
 14276  	// unconditionally include in API requests. By default, fields with empty or
 14277  	// default values are omitted from API requests. See
 14278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14279  	// details.
 14280  	ForceSendFields []string `json:"-"`
 14281  	// NullFields is a list of field names (e.g. "SimpleResponses") to include in
 14282  	// API requests with the JSON null value. By default, fields with empty values
 14283  	// are omitted from API requests. See
 14284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14285  	NullFields []string `json:"-"`
 14286  }
 14287  
 14288  func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
 14289  	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
 14290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14291  }
 14292  
 14293  // GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip message
 14294  // that the user can tap to quickly post a reply to the conversation.
 14295  type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
 14296  	// Title: Required. The text shown the in the suggestion chip.
 14297  	Title string `json:"title,omitempty"`
 14298  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
 14299  	// include in API requests. By default, fields with empty or default values are
 14300  	// omitted from API requests. See
 14301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14302  	// details.
 14303  	ForceSendFields []string `json:"-"`
 14304  	// NullFields is a list of field names (e.g. "Title") to include in API
 14305  	// requests with the JSON null value. By default, fields with empty values are
 14306  	// omitted from API requests. See
 14307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14308  	NullFields []string `json:"-"`
 14309  }
 14310  
 14311  func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
 14312  	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
 14313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14314  }
 14315  
 14316  // GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of
 14317  // suggestions.
 14318  type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
 14319  	// Suggestions: Required. The list of suggested replies.
 14320  	Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
 14321  	// ForceSendFields is a list of field names (e.g. "Suggestions") to
 14322  	// unconditionally include in API requests. By default, fields with empty or
 14323  	// default values are omitted from API requests. See
 14324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14325  	// details.
 14326  	ForceSendFields []string `json:"-"`
 14327  	// NullFields is a list of field names (e.g. "Suggestions") to include in API
 14328  	// requests with the JSON null value. By default, fields with empty values are
 14329  	// omitted from API requests. See
 14330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14331  	NullFields []string `json:"-"`
 14332  }
 14333  
 14334  func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
 14335  	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
 14336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14337  }
 14338  
 14339  // GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions on
 14340  // Google.
 14341  type GoogleCloudDialogflowV2IntentMessageTableCard struct {
 14342  	// Buttons: Optional. List of buttons for the card.
 14343  	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
 14344  	// ColumnProperties: Optional. Display properties for the columns in this
 14345  	// table.
 14346  	ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
 14347  	// Image: Optional. Image which should be displayed on the card.
 14348  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 14349  	// Rows: Optional. Rows in this table of data.
 14350  	Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
 14351  	// Subtitle: Optional. Subtitle to the title.
 14352  	Subtitle string `json:"subtitle,omitempty"`
 14353  	// Title: Required. Title of the card.
 14354  	Title string `json:"title,omitempty"`
 14355  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 14356  	// include in API requests. By default, fields with empty or default values are
 14357  	// omitted from API requests. See
 14358  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14359  	// details.
 14360  	ForceSendFields []string `json:"-"`
 14361  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 14362  	// requests with the JSON null value. By default, fields with empty values are
 14363  	// omitted from API requests. See
 14364  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14365  	NullFields []string `json:"-"`
 14366  }
 14367  
 14368  func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
 14369  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
 14370  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14371  }
 14372  
 14373  // GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of TableCardRow.
 14374  type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
 14375  	// Text: Required. Text in this cell.
 14376  	Text string `json:"text,omitempty"`
 14377  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 14378  	// include in API requests. By default, fields with empty or default values are
 14379  	// omitted from API requests. See
 14380  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14381  	// details.
 14382  	ForceSendFields []string `json:"-"`
 14383  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 14384  	// with the JSON null value. By default, fields with empty values are omitted
 14385  	// from API requests. See
 14386  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14387  	NullFields []string `json:"-"`
 14388  }
 14389  
 14390  func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
 14391  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
 14392  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14393  }
 14394  
 14395  // GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.
 14396  type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
 14397  	// Cells: Optional. List of cells that make up this row.
 14398  	Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
 14399  	// DividerAfter: Optional. Whether to add a visual divider after this row.
 14400  	DividerAfter bool `json:"dividerAfter,omitempty"`
 14401  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
 14402  	// include in API requests. By default, fields with empty or default values are
 14403  	// omitted from API requests. See
 14404  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14405  	// details.
 14406  	ForceSendFields []string `json:"-"`
 14407  	// NullFields is a list of field names (e.g. "Cells") to include in API
 14408  	// requests with the JSON null value. By default, fields with empty values are
 14409  	// omitted from API requests. See
 14410  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14411  	NullFields []string `json:"-"`
 14412  }
 14413  
 14414  func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
 14415  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
 14416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14417  }
 14418  
 14419  // GoogleCloudDialogflowV2IntentMessageText: The text response message.
 14420  type GoogleCloudDialogflowV2IntentMessageText struct {
 14421  	// Text: Optional. The collection of the agent's responses.
 14422  	Text []string `json:"text,omitempty"`
 14423  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 14424  	// include in API requests. By default, fields with empty or default values are
 14425  	// omitted from API requests. See
 14426  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14427  	// details.
 14428  	ForceSendFields []string `json:"-"`
 14429  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 14430  	// with the JSON null value. By default, fields with empty values are omitted
 14431  	// from API requests. See
 14432  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14433  	NullFields []string `json:"-"`
 14434  }
 14435  
 14436  func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
 14437  	type NoMethod GoogleCloudDialogflowV2IntentMessageText
 14438  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14439  }
 14440  
 14441  // GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.
 14442  type GoogleCloudDialogflowV2IntentParameter struct {
 14443  	// DefaultValue: Optional. The default value to use when the `value` yields an
 14444  	// empty result. Default values can be extracted from contexts by using the
 14445  	// following syntax: `#context_name.parameter_name`.
 14446  	DefaultValue string `json:"defaultValue,omitempty"`
 14447  	// DisplayName: Required. The name of the parameter.
 14448  	DisplayName string `json:"displayName,omitempty"`
 14449  	// EntityTypeDisplayName: Optional. The name of the entity type, prefixed with
 14450  	// `@`, that describes values of the parameter. If the parameter is required,
 14451  	// this must be provided.
 14452  	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
 14453  	// IsList: Optional. Indicates whether the parameter represents a list of
 14454  	// values.
 14455  	IsList bool `json:"isList,omitempty"`
 14456  	// Mandatory: Optional. Indicates whether the parameter is required. That is,
 14457  	// whether the intent cannot be completed without collecting the parameter
 14458  	// value.
 14459  	Mandatory bool `json:"mandatory,omitempty"`
 14460  	// Name: The unique identifier of this parameter.
 14461  	Name string `json:"name,omitempty"`
 14462  	// Prompts: Optional. The collection of prompts that the agent can present to
 14463  	// the user in order to collect a value for the parameter.
 14464  	Prompts []string `json:"prompts,omitempty"`
 14465  	// Value: Optional. The definition of the parameter value. It can be: - a
 14466  	// constant string, - a parameter value defined as `$parameter_name`, - an
 14467  	// original parameter value defined as `$parameter_name.original`, - a
 14468  	// parameter value from some context defined as `#context_name.parameter_name`.
 14469  	Value string `json:"value,omitempty"`
 14470  	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
 14471  	// unconditionally include in API requests. By default, fields with empty or
 14472  	// default values are omitted from API requests. See
 14473  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14474  	// details.
 14475  	ForceSendFields []string `json:"-"`
 14476  	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
 14477  	// requests with the JSON null value. By default, fields with empty values are
 14478  	// omitted from API requests. See
 14479  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14480  	NullFields []string `json:"-"`
 14481  }
 14482  
 14483  func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
 14484  	type NoMethod GoogleCloudDialogflowV2IntentParameter
 14485  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14486  }
 14487  
 14488  // GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example that the
 14489  // agent is trained on.
 14490  type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
 14491  	// Name: Output only. The unique identifier of this training phrase.
 14492  	Name string `json:"name,omitempty"`
 14493  	// Parts: Required. The ordered list of training phrase parts. The parts are
 14494  	// concatenated in order to form the training phrase. Note: The API does not
 14495  	// automatically annotate training phrases like the Dialogflow Console does.
 14496  	// Note: Do not forget to include whitespace at part boundaries, so the
 14497  	// training phrase is well formatted when the parts are concatenated. If the
 14498  	// training phrase does not need to be annotated with parameters, you just need
 14499  	// a single part with only the Part.text field set. If you want to annotate the
 14500  	// training phrase, you must create multiple parts, where the fields of each
 14501  	// part are populated in one of two ways: - `Part.text` is set to a part of the
 14502  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
 14503  	// that you want to annotate, and the `entity_type`, `alias`, and
 14504  	// `user_defined` fields are all set.
 14505  	Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
 14506  	// TimesAddedCount: Optional. Indicates how many times this example was added
 14507  	// to the intent. Each time a developer adds an existing sample by editing an
 14508  	// intent or training, this counter is increased.
 14509  	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
 14510  	// Type: Required. The type of the training phrase.
 14511  	//
 14512  	// Possible values:
 14513  	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be used.
 14514  	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names, but
 14515  	// example parts can be annotated with entity types.
 14516  	//   "TEMPLATE" - Templates are not annotated with entity types, but they can
 14517  	// contain @-prefixed entity type names as substrings. Template mode has been
 14518  	// deprecated. Example mode is the only supported way to create new training
 14519  	// phrases. If you have existing training phrases that you've created in
 14520  	// template mode, those will continue to work.
 14521  	Type string `json:"type,omitempty"`
 14522  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 14523  	// include in API requests. By default, fields with empty or default values are
 14524  	// omitted from API requests. See
 14525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14526  	// details.
 14527  	ForceSendFields []string `json:"-"`
 14528  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 14529  	// with the JSON null value. By default, fields with empty values are omitted
 14530  	// from API requests. See
 14531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14532  	NullFields []string `json:"-"`
 14533  }
 14534  
 14535  func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
 14536  	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
 14537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14538  }
 14539  
 14540  // GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of a
 14541  // training phrase.
 14542  type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
 14543  	// Alias: Optional. The parameter name for the value extracted from the
 14544  	// annotated part of the example. This field is required for annotated parts of
 14545  	// the training phrase.
 14546  	Alias string `json:"alias,omitempty"`
 14547  	// EntityType: Optional. The entity type name prefixed with `@`. This field is
 14548  	// required for annotated parts of the training phrase.
 14549  	EntityType string `json:"entityType,omitempty"`
 14550  	// Text: Required. The text for this part.
 14551  	Text string `json:"text,omitempty"`
 14552  	// UserDefined: Optional. Indicates whether the text was manually annotated.
 14553  	// This field is set to true when the Dialogflow Console is used to manually
 14554  	// annotate the part. When creating an annotated part with the API, you must
 14555  	// set this to true.
 14556  	UserDefined bool `json:"userDefined,omitempty"`
 14557  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
 14558  	// include in API requests. By default, fields with empty or default values are
 14559  	// omitted from API requests. See
 14560  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14561  	// details.
 14562  	ForceSendFields []string `json:"-"`
 14563  	// NullFields is a list of field names (e.g. "Alias") to include in API
 14564  	// requests with the JSON null value. By default, fields with empty values are
 14565  	// omitted from API requests. See
 14566  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14567  	NullFields []string `json:"-"`
 14568  }
 14569  
 14570  func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
 14571  	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
 14572  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14573  }
 14574  
 14575  // GoogleCloudDialogflowV2KnowledgeOperationMetadata: Metadata in
 14576  // google::longrunning::Operation for Knowledge operations.
 14577  type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
 14578  	// ExportOperationMetadata: Metadata for the Export Data Operation such as the
 14579  	// destination of export.
 14580  	ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
 14581  	// KnowledgeBase: The name of the knowledge base interacted with during the
 14582  	// operation.
 14583  	KnowledgeBase string `json:"knowledgeBase,omitempty"`
 14584  	// State: Output only. The current state of this operation.
 14585  	//
 14586  	// Possible values:
 14587  	//   "STATE_UNSPECIFIED" - State unspecified.
 14588  	//   "PENDING" - The operation has been created.
 14589  	//   "RUNNING" - The operation is currently running.
 14590  	//   "DONE" - The operation is done, either cancelled or completed.
 14591  	State string `json:"state,omitempty"`
 14592  	// ForceSendFields is a list of field names (e.g. "ExportOperationMetadata") to
 14593  	// unconditionally include in API requests. By default, fields with empty or
 14594  	// default values are omitted from API requests. See
 14595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14596  	// details.
 14597  	ForceSendFields []string `json:"-"`
 14598  	// NullFields is a list of field names (e.g. "ExportOperationMetadata") to
 14599  	// include in API requests with the JSON null value. By default, fields with
 14600  	// empty values are omitted from API requests. See
 14601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14602  	NullFields []string `json:"-"`
 14603  }
 14604  
 14605  func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 14606  	type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
 14607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14608  }
 14609  
 14610  // GoogleCloudDialogflowV2Message: Represents a message posted into a
 14611  // conversation.
 14612  type GoogleCloudDialogflowV2Message struct {
 14613  	// Content: Required. The message content.
 14614  	Content string `json:"content,omitempty"`
 14615  	// CreateTime: Output only. The time when the message was created in Contact
 14616  	// Center AI.
 14617  	CreateTime string `json:"createTime,omitempty"`
 14618  	// LanguageCode: Optional. The message language. This should be a BCP-47
 14619  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
 14620  	// "en-US".
 14621  	LanguageCode string `json:"languageCode,omitempty"`
 14622  	// MessageAnnotation: Output only. The annotation for the message.
 14623  	MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
 14624  	// Name: Optional. The unique identifier of the message. Format:
 14625  	// `projects//locations//conversations//messages/`.
 14626  	Name string `json:"name,omitempty"`
 14627  	// Participant: Output only. The participant that sends this message.
 14628  	Participant string `json:"participant,omitempty"`
 14629  	// ParticipantRole: Output only. The role of the participant.
 14630  	//
 14631  	// Possible values:
 14632  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 14633  	//   "HUMAN_AGENT" - Participant is a human agent.
 14634  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 14635  	// Dialogflow agent.
 14636  	//   "END_USER" - Participant is an end user that has called or chatted with
 14637  	// Dialogflow services.
 14638  	ParticipantRole string `json:"participantRole,omitempty"`
 14639  	// SendTime: Optional. The time when the message was sent.
 14640  	SendTime string `json:"sendTime,omitempty"`
 14641  	// SentimentAnalysis: Output only. The sentiment analysis result for the
 14642  	// message.
 14643  	SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
 14644  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 14645  	// include in API requests. By default, fields with empty or default values are
 14646  	// omitted from API requests. See
 14647  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14648  	// details.
 14649  	ForceSendFields []string `json:"-"`
 14650  	// NullFields is a list of field names (e.g. "Content") to include in API
 14651  	// requests with the JSON null value. By default, fields with empty values are
 14652  	// omitted from API requests. See
 14653  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14654  	NullFields []string `json:"-"`
 14655  }
 14656  
 14657  func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
 14658  	type NoMethod GoogleCloudDialogflowV2Message
 14659  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14660  }
 14661  
 14662  // GoogleCloudDialogflowV2MessageAnnotation: Represents the result of
 14663  // annotation for the message.
 14664  type GoogleCloudDialogflowV2MessageAnnotation struct {
 14665  	// ContainEntities: Indicates whether the text message contains entities.
 14666  	ContainEntities bool `json:"containEntities,omitempty"`
 14667  	// Parts: The collection of annotated message parts ordered by their position
 14668  	// in the message. You can recover the annotated message by concatenating
 14669  	// [AnnotatedMessagePart.text].
 14670  	Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
 14671  	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
 14672  	// unconditionally include in API requests. By default, fields with empty or
 14673  	// default values are omitted from API requests. See
 14674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14675  	// details.
 14676  	ForceSendFields []string `json:"-"`
 14677  	// NullFields is a list of field names (e.g. "ContainEntities") to include in
 14678  	// API requests with the JSON null value. By default, fields with empty values
 14679  	// are omitted from API requests. See
 14680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14681  	NullFields []string `json:"-"`
 14682  }
 14683  
 14684  func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
 14685  	type NoMethod GoogleCloudDialogflowV2MessageAnnotation
 14686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14687  }
 14688  
 14689  // GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the contents
 14690  // of the original request that was passed to the `[Streaming]DetectIntent`
 14691  // call.
 14692  type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
 14693  	// Payload: Optional. This field is set to the value of the
 14694  	// `QueryParameters.payload` field passed in the request. Some integrations
 14695  	// that query a Dialogflow agent may provide additional information in the
 14696  	// payload. In particular, for the Dialogflow Phone Gateway integration, this
 14697  	// field has the form: { "telephony": { "caller_id": "+18558363987" } } Note:
 14698  	// The caller ID field (`caller_id`) will be redacted for Trial Edition agents
 14699  	// and populated with the caller ID in E.164 format
 14700  	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
 14701  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 14702  	// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It
 14703  	// is set by Dialogflow-owned servers.
 14704  	Source string `json:"source,omitempty"`
 14705  	// Version: Optional. The version of the protocol used for this request. This
 14706  	// field is AoG-specific.
 14707  	Version string `json:"version,omitempty"`
 14708  	// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally
 14709  	// include in API requests. By default, fields with empty or default values are
 14710  	// omitted from API requests. See
 14711  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14712  	// details.
 14713  	ForceSendFields []string `json:"-"`
 14714  	// NullFields is a list of field names (e.g. "Payload") to include in API
 14715  	// requests with the JSON null value. By default, fields with empty values are
 14716  	// omitted from API requests. See
 14717  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14718  	NullFields []string `json:"-"`
 14719  }
 14720  
 14721  func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
 14722  	type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
 14723  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14724  }
 14725  
 14726  // GoogleCloudDialogflowV2QueryResult: Represents the result of conversational
 14727  // query or event processing.
 14728  type GoogleCloudDialogflowV2QueryResult struct {
 14729  	// Action: The action name from the matched intent.
 14730  	Action string `json:"action,omitempty"`
 14731  	// AllRequiredParamsPresent: This field is set to: - `false` if the matched
 14732  	// intent has required parameters and not all of the required parameter values
 14733  	// have been collected. - `true` if all required parameter values have been
 14734  	// collected, or if the matched intent doesn't contain any required parameters.
 14735  	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
 14736  	// CancelsSlotFilling: Indicates whether the conversational query triggers a
 14737  	// cancellation for slot filling. For more information, see the cancel slot
 14738  	// filling documentation
 14739  	// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
 14740  	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
 14741  	// DiagnosticInfo: Free-form diagnostic information for the associated detect
 14742  	// intent request. The fields of this data can change without notice, so you
 14743  	// should not write code that depends on its structure. The data may contain: -
 14744  	// webhook call latency - webhook errors
 14745  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
 14746  	// FulfillmentMessages: The collection of rich messages to present to the user.
 14747  	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
 14748  	// FulfillmentText: The text to be pronounced to the user or shown on the
 14749  	// screen. Note: This is a legacy field, `fulfillment_messages` should be
 14750  	// preferred.
 14751  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 14752  	// Intent: The intent that matched the conversational query. Some, not all
 14753  	// fields are filled in this message, including but not limited to: `name`,
 14754  	// `display_name`, `end_interaction` and `is_fallback`.
 14755  	Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
 14756  	// IntentDetectionConfidence: The intent detection confidence. Values range
 14757  	// from 0.0 (completely uncertain) to 1.0 (completely certain). This value is
 14758  	// for informational purpose only and is only used to help match the best
 14759  	// intent within the classification threshold. This value may change for the
 14760  	// same end-user expression at any time due to a model retraining or change in
 14761  	// implementation. If there are `multiple knowledge_answers` messages, this
 14762  	// value is set to the greatest `knowledgeAnswers.match_confidence` value in
 14763  	// the list.
 14764  	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
 14765  	// LanguageCode: The language that was triggered during intent detection. See
 14766  	// Language Support
 14767  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 14768  	// the currently supported language codes.
 14769  	LanguageCode string `json:"languageCode,omitempty"`
 14770  	// OutputContexts: The collection of output contexts. If applicable,
 14771  	// `output_contexts.parameters` contains entries with name `.original`
 14772  	// containing the original parameter values before the query.
 14773  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
 14774  	// Parameters: The collection of extracted parameters. Depending on your
 14775  	// protocol or client library language, this is a map, associative array,
 14776  	// symbol table, dictionary, or JSON object composed of a collection of
 14777  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
 14778  	// name * MapValue type: If parameter's entity type is a composite entity then
 14779  	// use map, otherwise, depending on the parameter value type, it could be one
 14780  	// of string, number, boolean, null, list or map. * MapValue value: If
 14781  	// parameter's entity type is a composite entity then use map from composite
 14782  	// entity property names to property values, otherwise, use parameter value.
 14783  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 14784  	// QueryText: The original conversational query text: - If natural language
 14785  	// text was provided as input, `query_text` contains a copy of the input. - If
 14786  	// natural language speech audio was provided as input, `query_text` contains
 14787  	// the speech recognition result. If speech recognizer produced multiple
 14788  	// alternatives, a particular one is picked. - If automatic spell correction is
 14789  	// enabled, `query_text` will contain the corrected user input.
 14790  	QueryText string `json:"queryText,omitempty"`
 14791  	// SentimentAnalysisResult: The sentiment analysis result, which depends on the
 14792  	// `sentiment_analysis_request_config` specified in the request.
 14793  	SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
 14794  	// SpeechRecognitionConfidence: The Speech recognition confidence between 0.0
 14795  	// and 1.0. A higher number indicates an estimated greater likelihood that the
 14796  	// recognized words are correct. The default of 0.0 is a sentinel value
 14797  	// indicating that confidence was not set. This field is not guaranteed to be
 14798  	// accurate or set. In particular this field isn't set for
 14799  	// StreamingDetectIntent since the streaming endpoint has separate confidence
 14800  	// estimates per portion of the audio in StreamingRecognitionResult.
 14801  	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
 14802  	// WebhookPayload: If the query was fulfilled by a webhook call, this field is
 14803  	// set to the value of the `payload` field returned in the webhook response.
 14804  	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
 14805  	// WebhookSource: If the query was fulfilled by a webhook call, this field is
 14806  	// set to the value of the `source` field returned in the webhook response.
 14807  	WebhookSource string `json:"webhookSource,omitempty"`
 14808  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 14809  	// include in API requests. By default, fields with empty or default values are
 14810  	// omitted from API requests. See
 14811  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14812  	// details.
 14813  	ForceSendFields []string `json:"-"`
 14814  	// NullFields is a list of field names (e.g. "Action") to include in API
 14815  	// requests with the JSON null value. By default, fields with empty values are
 14816  	// omitted from API requests. See
 14817  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14818  	NullFields []string `json:"-"`
 14819  }
 14820  
 14821  func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
 14822  	type NoMethod GoogleCloudDialogflowV2QueryResult
 14823  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14824  }
 14825  
 14826  func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
 14827  	type NoMethod GoogleCloudDialogflowV2QueryResult
 14828  	var s1 struct {
 14829  		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
 14830  		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
 14831  		*NoMethod
 14832  	}
 14833  	s1.NoMethod = (*NoMethod)(s)
 14834  	if err := json.Unmarshal(data, &s1); err != nil {
 14835  		return err
 14836  	}
 14837  	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
 14838  	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
 14839  	return nil
 14840  }
 14841  
 14842  // GoogleCloudDialogflowV2Sentiment: The sentiment, such as positive/negative
 14843  // feeling or association, for a unit of analysis, such as the query text. See:
 14844  // https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
 14845  // for how to interpret the result.
 14846  type GoogleCloudDialogflowV2Sentiment struct {
 14847  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 14848  	// the absolute magnitude of sentiment, regardless of score (positive or
 14849  	// negative).
 14850  	Magnitude float64 `json:"magnitude,omitempty"`
 14851  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 14852  	// sentiment).
 14853  	Score float64 `json:"score,omitempty"`
 14854  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 14855  	// unconditionally include in API requests. By default, fields with empty or
 14856  	// default values are omitted from API requests. See
 14857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14858  	// details.
 14859  	ForceSendFields []string `json:"-"`
 14860  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 14861  	// requests with the JSON null value. By default, fields with empty values are
 14862  	// omitted from API requests. See
 14863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14864  	NullFields []string `json:"-"`
 14865  }
 14866  
 14867  func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
 14868  	type NoMethod GoogleCloudDialogflowV2Sentiment
 14869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14870  }
 14871  
 14872  func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
 14873  	type NoMethod GoogleCloudDialogflowV2Sentiment
 14874  	var s1 struct {
 14875  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 14876  		Score     gensupport.JSONFloat64 `json:"score"`
 14877  		*NoMethod
 14878  	}
 14879  	s1.NoMethod = (*NoMethod)(s)
 14880  	if err := json.Unmarshal(data, &s1); err != nil {
 14881  		return err
 14882  	}
 14883  	s.Magnitude = float64(s1.Magnitude)
 14884  	s.Score = float64(s1.Score)
 14885  	return nil
 14886  }
 14887  
 14888  // GoogleCloudDialogflowV2SentimentAnalysisResult: The result of sentiment
 14889  // analysis. Sentiment analysis inspects user input and identifies the
 14890  // prevailing subjective opinion, especially to determine a user's attitude as
 14891  // positive, negative, or neutral. For Participants.DetectIntent, it needs to
 14892  // be configured in DetectIntentRequest.query_params. For
 14893  // Participants.StreamingDetectIntent, it needs to be configured in
 14894  // StreamingDetectIntentRequest.query_params. And for
 14895  // Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it
 14896  // needs to be configured in ConversationProfile.human_agent_assistant_config
 14897  type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
 14898  	// QueryTextSentiment: The sentiment analysis result for `query_text`.
 14899  	QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
 14900  	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to
 14901  	// unconditionally include in API requests. By default, fields with empty or
 14902  	// default values are omitted from API requests. See
 14903  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14904  	// details.
 14905  	ForceSendFields []string `json:"-"`
 14906  	// NullFields is a list of field names (e.g. "QueryTextSentiment") to include
 14907  	// in API requests with the JSON null value. By default, fields with empty
 14908  	// values are omitted from API requests. See
 14909  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14910  	NullFields []string `json:"-"`
 14911  }
 14912  
 14913  func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 14914  	type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
 14915  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14916  }
 14917  
 14918  // GoogleCloudDialogflowV2SessionEntityType: A session represents a
 14919  // conversation between a Dialogflow agent and an end-user. You can create
 14920  // special entities, called session entities, during a session. Session
 14921  // entities can extend or replace custom entity types and only exist during the
 14922  // session that they were created for. All session data, including session
 14923  // entities, is stored by Dialogflow for 20 minutes. For more information, see
 14924  // the session entity guide
 14925  // (https://cloud.google.com/dialogflow/docs/entities-session).
 14926  type GoogleCloudDialogflowV2SessionEntityType struct {
 14927  	// Entities: Required. The collection of entities associated with this session
 14928  	// entity type.
 14929  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
 14930  	// EntityOverrideMode: Required. Indicates whether the additional data should
 14931  	// override or supplement the custom entity type definition.
 14932  	//
 14933  	// Possible values:
 14934  	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be
 14935  	// never used.
 14936  	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities
 14937  	// overrides the collection of entities in the corresponding custom entity
 14938  	// type.
 14939  	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities
 14940  	// extends the collection of entities in the corresponding custom entity type.
 14941  	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
 14942  	// `GetSessionEntityType`, `CreateSessionEntityType` and
 14943  	// `UpdateSessionEntityType` only return the additional entities added in this
 14944  	// session entity type. If you want to get the supplemented list, please call
 14945  	// EntityTypes.GetEntityType on the custom entity type and merge.
 14946  	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
 14947  	// Name: Required. The unique identifier of this session entity type. Format:
 14948  	// `projects//agent/sessions//entityTypes/`, or
 14949  	// `projects//agent/environments//users//sessions//entityTypes/`. If
 14950  	// `Environment ID` is not specified, we assume default 'draft' environment. If
 14951  	// `User ID` is not specified, we assume default '-' user. `` must be the
 14952  	// display name of an existing entity type in the same agent that will be
 14953  	// overridden or supplemented.
 14954  	Name string `json:"name,omitempty"`
 14955  	// ForceSendFields is a list of field names (e.g. "Entities") to
 14956  	// unconditionally include in API requests. By default, fields with empty or
 14957  	// default values are omitted from API requests. See
 14958  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14959  	// details.
 14960  	ForceSendFields []string `json:"-"`
 14961  	// NullFields is a list of field names (e.g. "Entities") to include in API
 14962  	// requests with the JSON null value. By default, fields with empty values are
 14963  	// omitted from API requests. See
 14964  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14965  	NullFields []string `json:"-"`
 14966  }
 14967  
 14968  func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
 14969  	type NoMethod GoogleCloudDialogflowV2SessionEntityType
 14970  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14971  }
 14972  
 14973  // GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata: Metadata
 14974  // for a ConversationProfile.SetSuggestionFeatureConfig operation.
 14975  type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {
 14976  	// ConversationProfile: The resource name of the conversation profile. Format:
 14977  	// `projects//locations//conversationProfiles/`
 14978  	ConversationProfile string `json:"conversationProfile,omitempty"`
 14979  	// CreateTime: Timestamp whe the request was created. The time is measured on
 14980  	// server side.
 14981  	CreateTime string `json:"createTime,omitempty"`
 14982  	// ParticipantRole: Required. The participant role to add or update the
 14983  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 14984  	//
 14985  	// Possible values:
 14986  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 14987  	//   "HUMAN_AGENT" - Participant is a human agent.
 14988  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 14989  	// Dialogflow agent.
 14990  	//   "END_USER" - Participant is an end user that has called or chatted with
 14991  	// Dialogflow services.
 14992  	ParticipantRole string `json:"participantRole,omitempty"`
 14993  	// SuggestionFeatureType: Required. The type of the suggestion feature to add
 14994  	// or update.
 14995  	//
 14996  	// Possible values:
 14997  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 14998  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 14999  	//   "FAQ" - Run FAQ model for chat.
 15000  	//   "SMART_REPLY" - Run smart reply model for chat.
 15001  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 15002  	// text generated query.
 15003  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 15004  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 15005  	// unconditionally include in API requests. By default, fields with empty or
 15006  	// default values are omitted from API requests. See
 15007  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15008  	// details.
 15009  	ForceSendFields []string `json:"-"`
 15010  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 15011  	// in API requests with the JSON null value. By default, fields with empty
 15012  	// values are omitted from API requests. See
 15013  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15014  	NullFields []string `json:"-"`
 15015  }
 15016  
 15017  func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 15018  	type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
 15019  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15020  }
 15021  
 15022  // GoogleCloudDialogflowV2SmartReplyAnswer: Represents a smart reply answer.
 15023  type GoogleCloudDialogflowV2SmartReplyAnswer struct {
 15024  	// AnswerRecord: The name of answer record, in the format of
 15025  	// "projects//locations//answerRecords/"
 15026  	AnswerRecord string `json:"answerRecord,omitempty"`
 15027  	// Confidence: Smart reply confidence. The system's confidence score that this
 15028  	// reply is a good match for this conversation, as a value from 0.0 (completely
 15029  	// uncertain) to 1.0 (completely certain).
 15030  	Confidence float64 `json:"confidence,omitempty"`
 15031  	// Reply: The content of the reply.
 15032  	Reply string `json:"reply,omitempty"`
 15033  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 15034  	// unconditionally include in API requests. By default, fields with empty or
 15035  	// default values are omitted from API requests. See
 15036  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15037  	// details.
 15038  	ForceSendFields []string `json:"-"`
 15039  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 15040  	// requests with the JSON null value. By default, fields with empty values are
 15041  	// omitted from API requests. See
 15042  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15043  	NullFields []string `json:"-"`
 15044  }
 15045  
 15046  func (s *GoogleCloudDialogflowV2SmartReplyAnswer) MarshalJSON() ([]byte, error) {
 15047  	type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
 15048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15049  }
 15050  
 15051  func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte) error {
 15052  	type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
 15053  	var s1 struct {
 15054  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 15055  		*NoMethod
 15056  	}
 15057  	s1.NoMethod = (*NoMethod)(s)
 15058  	if err := json.Unmarshal(data, &s1); err != nil {
 15059  		return err
 15060  	}
 15061  	s.Confidence = float64(s1.Confidence)
 15062  	return nil
 15063  }
 15064  
 15065  // GoogleCloudDialogflowV2SmartReplyModelMetadata: Metadata for smart reply
 15066  // models.
 15067  type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {
 15068  	// TrainingModelType: Optional. Type of the smart reply model. If not provided,
 15069  	// model_type is used.
 15070  	//
 15071  	// Possible values:
 15072  	//   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.
 15073  	//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder
 15074  	// model.
 15075  	//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.
 15076  	TrainingModelType string `json:"trainingModelType,omitempty"`
 15077  	// ForceSendFields is a list of field names (e.g. "TrainingModelType") to
 15078  	// unconditionally include in API requests. By default, fields with empty or
 15079  	// default values are omitted from API requests. See
 15080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15081  	// details.
 15082  	ForceSendFields []string `json:"-"`
 15083  	// NullFields is a list of field names (e.g. "TrainingModelType") to include in
 15084  	// API requests with the JSON null value. By default, fields with empty values
 15085  	// are omitted from API requests. See
 15086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15087  	NullFields []string `json:"-"`
 15088  }
 15089  
 15090  func (s *GoogleCloudDialogflowV2SmartReplyModelMetadata) MarshalJSON() ([]byte, error) {
 15091  	type NoMethod GoogleCloudDialogflowV2SmartReplyModelMetadata
 15092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15093  }
 15094  
 15095  // GoogleCloudDialogflowV2SuggestArticlesResponse: The response message for
 15096  // Participants.SuggestArticles.
 15097  type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
 15098  	// ArticleAnswers: Articles ordered by score in descending order.
 15099  	ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
 15100  	// ContextSize: Number of messages prior to and including latest_message to
 15101  	// compile the suggestion. It may be smaller than the
 15102  	// SuggestArticlesRequest.context_size field in the request if there aren't
 15103  	// that many messages in the conversation.
 15104  	ContextSize int64 `json:"contextSize,omitempty"`
 15105  	// LatestMessage: The name of the latest conversation message used to compile
 15106  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 15107  	LatestMessage string `json:"latestMessage,omitempty"`
 15108  	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
 15109  	// unconditionally include in API requests. By default, fields with empty or
 15110  	// default values are omitted from API requests. See
 15111  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15112  	// details.
 15113  	ForceSendFields []string `json:"-"`
 15114  	// NullFields is a list of field names (e.g. "ArticleAnswers") to include in
 15115  	// API requests with the JSON null value. By default, fields with empty values
 15116  	// are omitted from API requests. See
 15117  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15118  	NullFields []string `json:"-"`
 15119  }
 15120  
 15121  func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
 15122  	type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
 15123  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15124  }
 15125  
 15126  // GoogleCloudDialogflowV2SuggestFaqAnswersResponse: The request message for
 15127  // Participants.SuggestFaqAnswers.
 15128  type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
 15129  	// ContextSize: Number of messages prior to and including latest_message to
 15130  	// compile the suggestion. It may be smaller than the
 15131  	// SuggestFaqAnswersRequest.context_size field in the request if there aren't
 15132  	// that many messages in the conversation.
 15133  	ContextSize int64 `json:"contextSize,omitempty"`
 15134  	// FaqAnswers: Answers extracted from FAQ documents.
 15135  	FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
 15136  	// LatestMessage: The name of the latest conversation message used to compile
 15137  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 15138  	LatestMessage string `json:"latestMessage,omitempty"`
 15139  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 15140  	// unconditionally include in API requests. By default, fields with empty or
 15141  	// default values are omitted from API requests. See
 15142  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15143  	// details.
 15144  	ForceSendFields []string `json:"-"`
 15145  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 15146  	// requests with the JSON null value. By default, fields with empty values are
 15147  	// omitted from API requests. See
 15148  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15149  	NullFields []string `json:"-"`
 15150  }
 15151  
 15152  func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
 15153  	type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
 15154  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15155  }
 15156  
 15157  // GoogleCloudDialogflowV2SuggestSmartRepliesResponse: The response message for
 15158  // Participants.SuggestSmartReplies.
 15159  type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {
 15160  	// ContextSize: Number of messages prior to and including latest_message to
 15161  	// compile the suggestion. It may be smaller than the
 15162  	// SuggestSmartRepliesRequest.context_size field in the request if there aren't
 15163  	// that many messages in the conversation.
 15164  	ContextSize int64 `json:"contextSize,omitempty"`
 15165  	// LatestMessage: The name of the latest conversation message used to compile
 15166  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 15167  	LatestMessage string `json:"latestMessage,omitempty"`
 15168  	// SmartReplyAnswers: Output only. Multiple reply options provided by smart
 15169  	// reply service. The order is based on the rank of the model prediction. The
 15170  	// maximum number of the returned replies is set in SmartReplyConfig.
 15171  	SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
 15172  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 15173  	// unconditionally include in API requests. By default, fields with empty or
 15174  	// default values are omitted from API requests. See
 15175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15176  	// details.
 15177  	ForceSendFields []string `json:"-"`
 15178  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 15179  	// requests with the JSON null value. By default, fields with empty values are
 15180  	// omitted from API requests. See
 15181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15182  	NullFields []string `json:"-"`
 15183  }
 15184  
 15185  func (s *GoogleCloudDialogflowV2SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
 15186  	type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesResponse
 15187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15188  }
 15189  
 15190  // GoogleCloudDialogflowV2SuggestionResult: One response of different type of
 15191  // suggestion response which is used in the response of
 15192  // Participants.AnalyzeContent and Participants.AnalyzeContent, as well as
 15193  // HumanAgentAssistantEvent.
 15194  type GoogleCloudDialogflowV2SuggestionResult struct {
 15195  	// Error: Error status if the request failed.
 15196  	Error *GoogleRpcStatus `json:"error,omitempty"`
 15197  	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
 15198  	// ARTICLE_SUGGESTION.
 15199  	SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
 15200  	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for
 15201  	// FAQ_ANSWER.
 15202  	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
 15203  	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for
 15204  	// SMART_REPLY.
 15205  	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
 15206  	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
 15207  	// include in API requests. By default, fields with empty or default values are
 15208  	// omitted from API requests. See
 15209  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15210  	// details.
 15211  	ForceSendFields []string `json:"-"`
 15212  	// NullFields is a list of field names (e.g. "Error") to include in API
 15213  	// requests with the JSON null value. By default, fields with empty values are
 15214  	// omitted from API requests. See
 15215  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15216  	NullFields []string `json:"-"`
 15217  }
 15218  
 15219  func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
 15220  	type NoMethod GoogleCloudDialogflowV2SuggestionResult
 15221  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15222  }
 15223  
 15224  // GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata: Metadata
 15225  // for a ConversationModels.UndeployConversationModel operation.
 15226  type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {
 15227  	// ConversationModel: The resource name of the conversation model. Format:
 15228  	// `projects//conversationModels/`
 15229  	ConversationModel string `json:"conversationModel,omitempty"`
 15230  	// CreateTime: Timestamp when the request to undeploy conversation model was
 15231  	// submitted. The time is measured on server side.
 15232  	CreateTime string `json:"createTime,omitempty"`
 15233  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
 15234  	// unconditionally include in API requests. By default, fields with empty or
 15235  	// default values are omitted from API requests. See
 15236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15237  	// details.
 15238  	ForceSendFields []string `json:"-"`
 15239  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
 15240  	// API requests with the JSON null value. By default, fields with empty values
 15241  	// are omitted from API requests. See
 15242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15243  	NullFields []string `json:"-"`
 15244  }
 15245  
 15246  func (s *GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
 15247  	type NoMethod GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
 15248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15249  }
 15250  
 15251  // GoogleCloudDialogflowV2WebhookRequest: The request message for a webhook
 15252  // call.
 15253  type GoogleCloudDialogflowV2WebhookRequest struct {
 15254  	// OriginalDetectIntentRequest: Optional. The contents of the original request
 15255  	// that was passed to `[Streaming]DetectIntent` call.
 15256  	OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
 15257  	// QueryResult: The result of the conversational query or event processing.
 15258  	// Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
 15259  	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
 15260  	// ResponseId: The unique identifier of the response. Contains the same value
 15261  	// as `[Streaming]DetectIntentResponse.response_id`.
 15262  	ResponseId string `json:"responseId,omitempty"`
 15263  	// Session: The unique identifier of detectIntent request session. Can be used
 15264  	// to identify end-user inside webhook implementation. Format:
 15265  	// `projects//agent/sessions/`, or
 15266  	// `projects//agent/environments//users//sessions/`.
 15267  	Session string `json:"session,omitempty"`
 15268  	// ForceSendFields is a list of field names (e.g.
 15269  	// "OriginalDetectIntentRequest") to unconditionally include in API requests.
 15270  	// By default, fields with empty or default values are omitted from API
 15271  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
 15272  	// for more details.
 15273  	ForceSendFields []string `json:"-"`
 15274  	// NullFields is a list of field names (e.g. "OriginalDetectIntentRequest") to
 15275  	// include in API requests with the JSON null value. By default, fields with
 15276  	// empty values are omitted from API requests. See
 15277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15278  	NullFields []string `json:"-"`
 15279  }
 15280  
 15281  func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
 15282  	type NoMethod GoogleCloudDialogflowV2WebhookRequest
 15283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15284  }
 15285  
 15286  // GoogleCloudDialogflowV2WebhookResponse: The response message for a webhook
 15287  // call. This response is validated by the Dialogflow server. If validation
 15288  // fails, an error will be returned in the QueryResult.diagnostic_info field.
 15289  // Setting JSON fields to an empty value with the wrong type is a common error.
 15290  // To avoid this error: - Use "" for empty strings - Use `{}` or `null` for
 15291  // empty objects - Use `[]` or `null` for empty arrays For more information,
 15292  // see the Protocol Buffers Language Guide
 15293  // (https://developers.google.com/protocol-buffers/docs/proto3#json).
 15294  type GoogleCloudDialogflowV2WebhookResponse struct {
 15295  	// FollowupEventInput: Optional. Invokes the supplied events. When this field
 15296  	// is set, Dialogflow ignores the `fulfillment_text`, `fulfillment_messages`,
 15297  	// and `payload` fields.
 15298  	FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
 15299  	// FulfillmentMessages: Optional. The rich response messages intended for the
 15300  	// end-user. When provided, Dialogflow uses this field to populate
 15301  	// QueryResult.fulfillment_messages sent to the integration or API caller.
 15302  	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
 15303  	// FulfillmentText: Optional. The text response message intended for the
 15304  	// end-user. It is recommended to use `fulfillment_messages.text.text[0]`
 15305  	// instead. When provided, Dialogflow uses this field to populate
 15306  	// QueryResult.fulfillment_text sent to the integration or API caller.
 15307  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 15308  	// OutputContexts: Optional. The collection of output contexts that will
 15309  	// overwrite currently active contexts for the session and reset their
 15310  	// lifespans. When provided, Dialogflow uses this field to populate
 15311  	// QueryResult.output_contexts sent to the integration or API caller.
 15312  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
 15313  	// Payload: Optional. This field can be used to pass custom data from your
 15314  	// webhook to the integration or API caller. Arbitrary JSON objects are
 15315  	// supported. When provided, Dialogflow uses this field to populate
 15316  	// QueryResult.webhook_payload sent to the integration or API caller. This
 15317  	// field is also used by the Google Assistant integration
 15318  	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
 15319  	// response messages. See the format definition at Google Assistant Dialogflow
 15320  	// webhook format
 15321  	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
 15322  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 15323  	// SessionEntityTypes: Optional. Additional session entity types to replace or
 15324  	// extend developer entity types with. The entity synonyms apply to all
 15325  	// languages and persist for the session. Setting this data from a webhook
 15326  	// overwrites the session entity types that have been set using `detectIntent`,
 15327  	// `streamingDetectIntent` or SessionEntityType management methods.
 15328  	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
 15329  	// Source: Optional. A custom field used to identify the webhook source.
 15330  	// Arbitrary strings are supported. When provided, Dialogflow uses this field
 15331  	// to populate QueryResult.webhook_source sent to the integration or API
 15332  	// caller.
 15333  	Source string `json:"source,omitempty"`
 15334  	// ForceSendFields is a list of field names (e.g. "FollowupEventInput") to
 15335  	// unconditionally include in API requests. By default, fields with empty or
 15336  	// default values are omitted from API requests. See
 15337  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15338  	// details.
 15339  	ForceSendFields []string `json:"-"`
 15340  	// NullFields is a list of field names (e.g. "FollowupEventInput") to include
 15341  	// in API requests with the JSON null value. By default, fields with empty
 15342  	// values are omitted from API requests. See
 15343  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15344  	NullFields []string `json:"-"`
 15345  }
 15346  
 15347  func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
 15348  	type NoMethod GoogleCloudDialogflowV2WebhookResponse
 15349  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15350  }
 15351  
 15352  // GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part of a
 15353  // message possibly annotated with an entity. The part can be an entity or
 15354  // purely a part of the message between two entities or message start/end.
 15355  type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
 15356  	// EntityType: Optional. The Dialogflow system entity type
 15357  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 15358  	// message part. If this is empty, Dialogflow could not annotate the phrase
 15359  	// part with a system entity.
 15360  	EntityType string `json:"entityType,omitempty"`
 15361  	// FormattedValue: Optional. The Dialogflow system entity formatted value
 15362  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 15363  	// message part. For example for a system entity of type `@sys.unit-currency`,
 15364  	// this may contain: { "amount": 5, "currency": "USD" }
 15365  	FormattedValue interface{} `json:"formattedValue,omitempty"`
 15366  	// Text: Required. A part of a message possibly annotated with an entity.
 15367  	Text string `json:"text,omitempty"`
 15368  	// ForceSendFields is a list of field names (e.g. "EntityType") to
 15369  	// unconditionally include in API requests. By default, fields with empty or
 15370  	// default values are omitted from API requests. See
 15371  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15372  	// details.
 15373  	ForceSendFields []string `json:"-"`
 15374  	// NullFields is a list of field names (e.g. "EntityType") to include in API
 15375  	// requests with the JSON null value. By default, fields with empty values are
 15376  	// omitted from API requests. See
 15377  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15378  	NullFields []string `json:"-"`
 15379  }
 15380  
 15381  func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
 15382  	type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
 15383  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15384  }
 15385  
 15386  // GoogleCloudDialogflowV2beta1ArticleAnswer: Represents article answer.
 15387  type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
 15388  	// AnswerRecord: The name of answer record, in the format of
 15389  	// "projects//locations//answerRecords/"
 15390  	AnswerRecord string `json:"answerRecord,omitempty"`
 15391  	// Metadata: A map that contains metadata about the answer and the document
 15392  	// from which it originates.
 15393  	Metadata map[string]string `json:"metadata,omitempty"`
 15394  	// Snippets: Output only. Article snippets.
 15395  	Snippets []string `json:"snippets,omitempty"`
 15396  	// Title: The article title.
 15397  	Title string `json:"title,omitempty"`
 15398  	// Uri: The article URI.
 15399  	Uri string `json:"uri,omitempty"`
 15400  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 15401  	// unconditionally include in API requests. By default, fields with empty or
 15402  	// default values are omitted from API requests. See
 15403  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15404  	// details.
 15405  	ForceSendFields []string `json:"-"`
 15406  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 15407  	// requests with the JSON null value. By default, fields with empty values are
 15408  	// omitted from API requests. See
 15409  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15410  	NullFields []string `json:"-"`
 15411  }
 15412  
 15413  func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
 15414  	type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
 15415  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15416  }
 15417  
 15418  // GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The response
 15419  // message for EntityTypes.BatchUpdateEntityTypes.
 15420  type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
 15421  	// EntityTypes: The collection of updated or created entity types.
 15422  	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
 15423  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
 15424  	// unconditionally include in API requests. By default, fields with empty or
 15425  	// default values are omitted from API requests. See
 15426  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15427  	// details.
 15428  	ForceSendFields []string `json:"-"`
 15429  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
 15430  	// requests with the JSON null value. By default, fields with empty values are
 15431  	// omitted from API requests. See
 15432  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15433  	NullFields []string `json:"-"`
 15434  }
 15435  
 15436  func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
 15437  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
 15438  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15439  }
 15440  
 15441  // GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response message
 15442  // for Intents.BatchUpdateIntents.
 15443  type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
 15444  	// Intents: The collection of updated or created intents.
 15445  	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
 15446  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 15447  	// include in API requests. By default, fields with empty or default values are
 15448  	// omitted from API requests. See
 15449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15450  	// details.
 15451  	ForceSendFields []string `json:"-"`
 15452  	// NullFields is a list of field names (e.g. "Intents") to include in API
 15453  	// requests with the JSON null value. By default, fields with empty values are
 15454  	// omitted from API requests. See
 15455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15456  	NullFields []string `json:"-"`
 15457  }
 15458  
 15459  func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
 15460  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
 15461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15462  }
 15463  
 15464  // GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata:
 15465  // Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
 15466  type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {
 15467  	// ConversationProfile: The resource name of the conversation profile. Format:
 15468  	// `projects//locations//conversationProfiles/`
 15469  	ConversationProfile string `json:"conversationProfile,omitempty"`
 15470  	// CreateTime: Timestamp whe the request was created. The time is measured on
 15471  	// server side.
 15472  	CreateTime string `json:"createTime,omitempty"`
 15473  	// ParticipantRole: Required. The participant role to remove the suggestion
 15474  	// feature config. Only HUMAN_AGENT or END_USER can be used.
 15475  	//
 15476  	// Possible values:
 15477  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 15478  	//   "HUMAN_AGENT" - Participant is a human agent.
 15479  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 15480  	// Dialogflow agent.
 15481  	//   "END_USER" - Participant is an end user that has called or chatted with
 15482  	// Dialogflow services.
 15483  	ParticipantRole string `json:"participantRole,omitempty"`
 15484  	// SuggestionFeatureType: Required. The type of the suggestion feature to
 15485  	// remove.
 15486  	//
 15487  	// Possible values:
 15488  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 15489  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 15490  	//   "FAQ" - Run FAQ model.
 15491  	//   "SMART_REPLY" - Run smart reply model for chat.
 15492  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 15493  	// return automated agent response as suggestion.
 15494  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 15495  	// chat.
 15496  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 15497  	// text generated query.
 15498  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 15499  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 15500  	// unconditionally include in API requests. By default, fields with empty or
 15501  	// default values are omitted from API requests. See
 15502  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15503  	// details.
 15504  	ForceSendFields []string `json:"-"`
 15505  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 15506  	// in API requests with the JSON null value. By default, fields with empty
 15507  	// values are omitted from API requests. See
 15508  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15509  	NullFields []string `json:"-"`
 15510  }
 15511  
 15512  func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 15513  	type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
 15514  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15515  }
 15516  
 15517  // GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar to
 15518  // natural language context. If a person says to you "they are orange", you
 15519  // need context in order to understand what "they" is referring to. Similarly,
 15520  // for Dialogflow to handle an end-user expression like that, it needs to be
 15521  // provided with context in order to correctly match an intent. Using contexts,
 15522  // you can control the flow of a conversation. You can configure contexts for
 15523  // an intent by setting input and output contexts, which are identified by
 15524  // string names. When an intent is matched, any configured output contexts for
 15525  // that intent become active. While any contexts are active, Dialogflow is more
 15526  // likely to match intents that are configured with input contexts that
 15527  // correspond to the currently active contexts. For more information about
 15528  // context, see the Contexts guide
 15529  // (https://cloud.google.com/dialogflow/docs/contexts-overview).
 15530  type GoogleCloudDialogflowV2beta1Context struct {
 15531  	// LifespanCount: Optional. The number of conversational query requests after
 15532  	// which the context expires. The default is `0`. If set to `0`, the context
 15533  	// expires immediately. Contexts expire automatically after 20 minutes if there
 15534  	// are no matching queries.
 15535  	LifespanCount int64 `json:"lifespanCount,omitempty"`
 15536  	// Name: Required. The unique identifier of the context. Supported formats: -
 15537  	// `projects//agent/sessions//contexts/`, -
 15538  	// `projects//locations//agent/sessions//contexts/`, -
 15539  	// `projects//agent/environments//users//sessions//contexts/`, -
 15540  	// `projects//locations//agent/environments//users//sessions//contexts/`, The
 15541  	// `Context ID` is always converted to lowercase, may only contain characters
 15542  	// in `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is
 15543  	// not specified, we assume default 'draft' environment. If `User ID` is not
 15544  	// specified, we assume default '-' user. The following context names are
 15545  	// reserved for internal use by Dialogflow. You should not use these contexts
 15546  	// or create contexts with these names: * `__system_counters__` *
 15547  	// `*_id_dialog_context` * `*_dialog_params_size`
 15548  	Name string `json:"name,omitempty"`
 15549  	// Parameters: Optional. The collection of parameters associated with this
 15550  	// context. Depending on your protocol or client library language, this is a
 15551  	// map, associative array, symbol table, dictionary, or JSON object composed of
 15552  	// a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 15553  	// value: parameter name * MapValue type: If parameter's entity type is a
 15554  	// composite entity then use map, otherwise, depending on the parameter value
 15555  	// type, it could be one of string, number, boolean, null, list or map. *
 15556  	// MapValue value: If parameter's entity type is a composite entity then use
 15557  	// map from composite entity property names to property values, otherwise, use
 15558  	// parameter value.
 15559  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 15560  	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
 15561  	// unconditionally include in API requests. By default, fields with empty or
 15562  	// default values are omitted from API requests. See
 15563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15564  	// details.
 15565  	ForceSendFields []string `json:"-"`
 15566  	// NullFields is a list of field names (e.g. "LifespanCount") to include in API
 15567  	// requests with the JSON null value. By default, fields with empty values are
 15568  	// omitted from API requests. See
 15569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15570  	NullFields []string `json:"-"`
 15571  }
 15572  
 15573  func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
 15574  	type NoMethod GoogleCloudDialogflowV2beta1Context
 15575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15576  }
 15577  
 15578  // GoogleCloudDialogflowV2beta1ConversationEvent: Represents a notification
 15579  // sent to Pub/Sub subscribers for conversation lifecycle events.
 15580  type GoogleCloudDialogflowV2beta1ConversationEvent struct {
 15581  	// Conversation: Required. The unique identifier of the conversation this
 15582  	// notification refers to. Format: `projects//conversations/`.
 15583  	Conversation string `json:"conversation,omitempty"`
 15584  	// ErrorStatus: Optional. More detailed information about an error. Only set
 15585  	// for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
 15586  	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
 15587  	// NewMessagePayload: Payload of NEW_MESSAGE event.
 15588  	NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
 15589  	// Type: Required. The type of the event that this notification refers to.
 15590  	//
 15591  	// Possible values:
 15592  	//   "TYPE_UNSPECIFIED" - Type not set.
 15593  	//   "CONVERSATION_STARTED" - A new conversation has been opened. This is fired
 15594  	// when a telephone call is answered, or a conversation is created via the API.
 15595  	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This is
 15596  	// fired when a telephone call is terminated, or a conversation is closed via
 15597  	// the API.
 15598  	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
 15599  	// notification from Dialogflow that human intervention is required.
 15600  	//   "NEW_MESSAGE" - An existing conversation has received a new message,
 15601  	// either from API or telephony. It is configured in
 15602  	// ConversationProfile.new_message_event_notification_config
 15603  	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone call. In
 15604  	// general non-recoverable errors only occur if something was misconfigured in
 15605  	// the ConversationProfile corresponding to the call. After a non-recoverable
 15606  	// error, Dialogflow may stop responding. We don't fire this event: * in an API
 15607  	// call because we can directly return the error, or, * when we can recover
 15608  	// from an error.
 15609  	Type string `json:"type,omitempty"`
 15610  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 15611  	// unconditionally include in API requests. By default, fields with empty or
 15612  	// default values are omitted from API requests. See
 15613  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15614  	// details.
 15615  	ForceSendFields []string `json:"-"`
 15616  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 15617  	// requests with the JSON null value. By default, fields with empty values are
 15618  	// omitted from API requests. See
 15619  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15620  	NullFields []string `json:"-"`
 15621  }
 15622  
 15623  func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
 15624  	type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
 15625  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15626  }
 15627  
 15628  // GoogleCloudDialogflowV2beta1DialogflowAssistAnswer: Represents a Dialogflow
 15629  // assist answer.
 15630  type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {
 15631  	// AnswerRecord: The name of answer record, in the format of
 15632  	// "projects//locations//answerRecords/"
 15633  	AnswerRecord string `json:"answerRecord,omitempty"`
 15634  	// IntentSuggestion: An intent suggestion generated from conversation.
 15635  	IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`
 15636  	// QueryResult: Result from v2 agent.
 15637  	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
 15638  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 15639  	// unconditionally include in API requests. By default, fields with empty or
 15640  	// default values are omitted from API requests. See
 15641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15642  	// details.
 15643  	ForceSendFields []string `json:"-"`
 15644  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 15645  	// requests with the JSON null value. By default, fields with empty values are
 15646  	// omitted from API requests. See
 15647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15648  	NullFields []string `json:"-"`
 15649  }
 15650  
 15651  func (s *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
 15652  	type NoMethod GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
 15653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15654  }
 15655  
 15656  // GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a type,
 15657  // called the entity type, which dictates exactly how data from an end-user
 15658  // expression is extracted. Dialogflow provides predefined system entities that
 15659  // can match many common types of data. For example, there are system entities
 15660  // for matching dates, times, colors, email addresses, and so on. You can also
 15661  // create your own custom entities for matching custom data. For example, you
 15662  // could define a vegetable entity that can match the types of vegetables
 15663  // available for purchase with a grocery store agent. For more information, see
 15664  // the Entity guide
 15665  // (https://cloud.google.com/dialogflow/docs/entities-overview).
 15666  type GoogleCloudDialogflowV2beta1EntityType struct {
 15667  	// AutoExpansionMode: Optional. Indicates whether the entity type can be
 15668  	// automatically expanded.
 15669  	//
 15670  	// Possible values:
 15671  	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
 15672  	// entity.
 15673  	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that
 15674  	// have not been explicitly listed in the entity.
 15675  	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
 15676  	// DisplayName: Required. The name of the entity type.
 15677  	DisplayName string `json:"displayName,omitempty"`
 15678  	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during
 15679  	// classification.
 15680  	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
 15681  	// Entities: Optional. The collection of entity entries associated with the
 15682  	// entity type.
 15683  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 15684  	// Kind: Required. Indicates the kind of entity type.
 15685  	//
 15686  	// Possible values:
 15687  	//   "KIND_UNSPECIFIED" - Not specified. This value should be never used.
 15688  	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a
 15689  	// reference value.
 15690  	//   "KIND_LIST" - List entity types contain a set of entries that do not map
 15691  	// to reference values. However, list entity types can contain references to
 15692  	// other entity types (with or without aliases).
 15693  	//   "KIND_REGEXP" - Regexp entity types allow to specify regular expressions
 15694  	// in entries values.
 15695  	Kind string `json:"kind,omitempty"`
 15696  	// Name: The unique identifier of the entity type. Required for
 15697  	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods.
 15698  	// Supported formats: - `projects//agent/entityTypes/` -
 15699  	// `projects//locations//agent/entityTypes/`
 15700  	Name string `json:"name,omitempty"`
 15701  	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to
 15702  	// unconditionally include in API requests. By default, fields with empty or
 15703  	// default values are omitted from API requests. See
 15704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15705  	// details.
 15706  	ForceSendFields []string `json:"-"`
 15707  	// NullFields is a list of field names (e.g. "AutoExpansionMode") to include in
 15708  	// API requests with the JSON null value. By default, fields with empty values
 15709  	// are omitted from API requests. See
 15710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15711  	NullFields []string `json:"-"`
 15712  }
 15713  
 15714  func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
 15715  	type NoMethod GoogleCloudDialogflowV2beta1EntityType
 15716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15717  }
 15718  
 15719  // GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for an
 15720  // associated entity type.
 15721  type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
 15722  	// Synonyms: Required. A collection of value synonyms. For example, if the
 15723  	// entity type is *vegetable*, and `value` is *scallions*, a synonym could be
 15724  	// *green onions*. For `KIND_LIST` entity types: * This collection must contain
 15725  	// exactly one synonym equal to `value`.
 15726  	Synonyms []string `json:"synonyms,omitempty"`
 15727  	// Value: Required. The primary value associated with this entity entry. For
 15728  	// example, if the entity type is *vegetable*, the value could be *scallions*.
 15729  	// For `KIND_MAP` entity types: * A reference value to be used in place of
 15730  	// synonyms. For `KIND_LIST` entity types: * A string that can contain
 15731  	// references to other entity types (with or without aliases).
 15732  	Value string `json:"value,omitempty"`
 15733  	// ForceSendFields is a list of field names (e.g. "Synonyms") to
 15734  	// unconditionally include in API requests. By default, fields with empty or
 15735  	// default values are omitted from API requests. See
 15736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15737  	// details.
 15738  	ForceSendFields []string `json:"-"`
 15739  	// NullFields is a list of field names (e.g. "Synonyms") to include in API
 15740  	// requests with the JSON null value. By default, fields with empty values are
 15741  	// omitted from API requests. See
 15742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15743  	NullFields []string `json:"-"`
 15744  }
 15745  
 15746  func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
 15747  	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
 15748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15749  }
 15750  
 15751  // GoogleCloudDialogflowV2beta1EventInput: Events allow for matching intents by
 15752  // event name instead of the natural language input. For instance, input “ can
 15753  // trigger a personalized welcome response. The parameter `name` may be used by
 15754  // the agent in the response: "Hello #welcome_event.name! What can I do for
 15755  // you today?".
 15756  type GoogleCloudDialogflowV2beta1EventInput struct {
 15757  	// LanguageCode: Required. The language of this query. See Language Support
 15758  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 15759  	// the currently supported language codes. Note that queries in the same
 15760  	// session do not necessarily need to specify the same language. This field is
 15761  	// ignored when used in the context of a WebhookResponse.followup_event_input
 15762  	// field, because the language was already defined in the originating detect
 15763  	// intent request.
 15764  	LanguageCode string `json:"languageCode,omitempty"`
 15765  	// Name: Required. The unique identifier of the event.
 15766  	Name string `json:"name,omitempty"`
 15767  	// Parameters: The collection of parameters associated with the event.
 15768  	// Depending on your protocol or client library language, this is a map,
 15769  	// associative array, symbol table, dictionary, or JSON object composed of a
 15770  	// collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 15771  	// value: parameter name * MapValue type: If parameter's entity type is a
 15772  	// composite entity then use map, otherwise, depending on the parameter value
 15773  	// type, it could be one of string, number, boolean, null, list or map. *
 15774  	// MapValue value: If parameter's entity type is a composite entity then use
 15775  	// map from composite entity property names to property values, otherwise, use
 15776  	// parameter value.
 15777  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 15778  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 15779  	// unconditionally include in API requests. By default, fields with empty or
 15780  	// default values are omitted from API requests. See
 15781  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15782  	// details.
 15783  	ForceSendFields []string `json:"-"`
 15784  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 15785  	// requests with the JSON null value. By default, fields with empty values are
 15786  	// omitted from API requests. See
 15787  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15788  	NullFields []string `json:"-"`
 15789  }
 15790  
 15791  func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
 15792  	type NoMethod GoogleCloudDialogflowV2beta1EventInput
 15793  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15794  }
 15795  
 15796  // GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message for
 15797  // Agents.ExportAgent.
 15798  type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
 15799  	// AgentContent: Zip compressed raw byte content for agent.
 15800  	AgentContent string `json:"agentContent,omitempty"`
 15801  	// AgentUri: The URI to a file containing the exported agent. This field is
 15802  	// populated only if `agent_uri` is specified in `ExportAgentRequest`.
 15803  	AgentUri string `json:"agentUri,omitempty"`
 15804  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 15805  	// unconditionally include in API requests. By default, fields with empty or
 15806  	// default values are omitted from API requests. See
 15807  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15808  	// details.
 15809  	ForceSendFields []string `json:"-"`
 15810  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 15811  	// requests with the JSON null value. By default, fields with empty values are
 15812  	// omitted from API requests. See
 15813  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15814  	NullFields []string `json:"-"`
 15815  }
 15816  
 15817  func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
 15818  	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
 15819  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15820  }
 15821  
 15822  // GoogleCloudDialogflowV2beta1ExportOperationMetadata: Metadata related to the
 15823  // Export Data Operations (e.g. ExportDocument).
 15824  type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {
 15825  	// ExportedGcsDestination: Cloud Storage file path of the exported data.
 15826  	ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`
 15827  	// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to
 15828  	// unconditionally include in API requests. By default, fields with empty or
 15829  	// default values are omitted from API requests. See
 15830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15831  	// details.
 15832  	ForceSendFields []string `json:"-"`
 15833  	// NullFields is a list of field names (e.g. "ExportedGcsDestination") to
 15834  	// include in API requests with the JSON null value. By default, fields with
 15835  	// empty values are omitted from API requests. See
 15836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15837  	NullFields []string `json:"-"`
 15838  }
 15839  
 15840  func (s *GoogleCloudDialogflowV2beta1ExportOperationMetadata) MarshalJSON() ([]byte, error) {
 15841  	type NoMethod GoogleCloudDialogflowV2beta1ExportOperationMetadata
 15842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15843  }
 15844  
 15845  // GoogleCloudDialogflowV2beta1FaqAnswer: Represents answer from "frequently
 15846  // asked questions".
 15847  type GoogleCloudDialogflowV2beta1FaqAnswer struct {
 15848  	// Answer: The piece of text from the `source` knowledge base document.
 15849  	Answer string `json:"answer,omitempty"`
 15850  	// AnswerRecord: The name of answer record, in the format of
 15851  	// "projects//locations//answerRecords/"
 15852  	AnswerRecord string `json:"answerRecord,omitempty"`
 15853  	// Confidence: The system's confidence score that this Knowledge answer is a
 15854  	// good match for this conversational query, range from 0.0 (completely
 15855  	// uncertain) to 1.0 (completely certain).
 15856  	Confidence float64 `json:"confidence,omitempty"`
 15857  	// Metadata: A map that contains metadata about the answer and the document
 15858  	// from which it originates.
 15859  	Metadata map[string]string `json:"metadata,omitempty"`
 15860  	// Question: The corresponding FAQ question.
 15861  	Question string `json:"question,omitempty"`
 15862  	// Source: Indicates which Knowledge Document this answer was extracted from.
 15863  	// Format: `projects//locations//agent/knowledgeBases//documents/`.
 15864  	Source string `json:"source,omitempty"`
 15865  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 15866  	// include in API requests. By default, fields with empty or default values are
 15867  	// omitted from API requests. See
 15868  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15869  	// details.
 15870  	ForceSendFields []string `json:"-"`
 15871  	// NullFields is a list of field names (e.g. "Answer") to include in API
 15872  	// requests with the JSON null value. By default, fields with empty values are
 15873  	// omitted from API requests. See
 15874  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15875  	NullFields []string `json:"-"`
 15876  }
 15877  
 15878  func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
 15879  	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
 15880  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15881  }
 15882  
 15883  func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
 15884  	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
 15885  	var s1 struct {
 15886  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 15887  		*NoMethod
 15888  	}
 15889  	s1.NoMethod = (*NoMethod)(s)
 15890  	if err := json.Unmarshal(data, &s1); err != nil {
 15891  		return err
 15892  	}
 15893  	s.Confidence = float64(s1.Confidence)
 15894  	return nil
 15895  }
 15896  
 15897  // GoogleCloudDialogflowV2beta1GcsDestination: Google Cloud Storage location
 15898  // for the output.
 15899  type GoogleCloudDialogflowV2beta1GcsDestination struct {
 15900  	// Uri: Required. The Google Cloud Storage URIs for the output. A URI is of the
 15901  	// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used
 15902  	// depends on the use case. The requesting user must have "write-permission" to
 15903  	// the bucket.
 15904  	Uri string `json:"uri,omitempty"`
 15905  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 15906  	// include in API requests. By default, fields with empty or default values are
 15907  	// omitted from API requests. See
 15908  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15909  	// details.
 15910  	ForceSendFields []string `json:"-"`
 15911  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 15912  	// with the JSON null value. By default, fields with empty values are omitted
 15913  	// from API requests. See
 15914  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15915  	NullFields []string `json:"-"`
 15916  }
 15917  
 15918  func (s *GoogleCloudDialogflowV2beta1GcsDestination) MarshalJSON() ([]byte, error) {
 15919  	type NoMethod GoogleCloudDialogflowV2beta1GcsDestination
 15920  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15921  }
 15922  
 15923  // GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent: Output only.
 15924  // Represents a notification sent to Pub/Sub subscribers for agent assistant
 15925  // events in a specific conversation.
 15926  type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
 15927  	// Conversation: The conversation this notification refers to. Format:
 15928  	// `projects//conversations/`.
 15929  	Conversation string `json:"conversation,omitempty"`
 15930  	// Participant: The participant that the suggestion is compiled for. And This
 15931  	// field is used to call Participants.ListSuggestions API. Format:
 15932  	// `projects//conversations//participants/`. It will not be set in legacy
 15933  	// workflow. HumanAgentAssistantConfig.name for more information.
 15934  	Participant string `json:"participant,omitempty"`
 15935  	// SuggestionResults: The suggestion results payload that this notification
 15936  	// refers to. It will only be set when
 15937  	// HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses sets
 15938  	// to true.
 15939  	SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
 15940  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 15941  	// unconditionally include in API requests. By default, fields with empty or
 15942  	// default values are omitted from API requests. See
 15943  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15944  	// details.
 15945  	ForceSendFields []string `json:"-"`
 15946  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 15947  	// requests with the JSON null value. By default, fields with empty values are
 15948  	// omitted from API requests. See
 15949  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15950  	NullFields []string `json:"-"`
 15951  }
 15952  
 15953  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
 15954  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
 15955  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15956  }
 15957  
 15958  // GoogleCloudDialogflowV2beta1ImportDocumentsResponse: Response message for
 15959  // Documents.ImportDocuments.
 15960  type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
 15961  	// Warnings: Includes details about skipped documents or any other warnings.
 15962  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 15963  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 15964  	// unconditionally include in API requests. By default, fields with empty or
 15965  	// default values are omitted from API requests. See
 15966  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15967  	// details.
 15968  	ForceSendFields []string `json:"-"`
 15969  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 15970  	// requests with the JSON null value. By default, fields with empty values are
 15971  	// omitted from API requests. See
 15972  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15973  	NullFields []string `json:"-"`
 15974  }
 15975  
 15976  func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 15977  	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
 15978  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15979  }
 15980  
 15981  // GoogleCloudDialogflowV2beta1Intent: An intent categorizes an end-user's
 15982  // intention for one conversation turn. For each agent, you define many
 15983  // intents, where your combined intents can handle a complete conversation.
 15984  // When an end-user writes or says something, referred to as an end-user
 15985  // expression or end-user input, Dialogflow matches the end-user input to the
 15986  // best intent in your agent. Matching an intent is also known as intent
 15987  // classification. For more information, see the intent guide
 15988  // (https://cloud.google.com/dialogflow/docs/intents-overview).
 15989  type GoogleCloudDialogflowV2beta1Intent struct {
 15990  	// Action: Optional. The name of the action associated with the intent. Note:
 15991  	// The action name must not contain whitespaces.
 15992  	Action string `json:"action,omitempty"`
 15993  	// DefaultResponsePlatforms: Optional. The list of platforms for which the
 15994  	// first responses will be copied from the messages in PLATFORM_UNSPECIFIED
 15995  	// (i.e. default platform).
 15996  	//
 15997  	// Possible values:
 15998  	//   "PLATFORM_UNSPECIFIED" - Not specified.
 15999  	//   "FACEBOOK" - Facebook.
 16000  	//   "SLACK" - Slack.
 16001  	//   "TELEGRAM" - Telegram.
 16002  	//   "KIK" - Kik.
 16003  	//   "SKYPE" - Skype.
 16004  	//   "LINE" - Line.
 16005  	//   "VIBER" - Viber.
 16006  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 16007  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 16008  	// -webhook-json)
 16009  	//   "TELEPHONY" - Telephony Gateway.
 16010  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 16011  	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
 16012  	// DisplayName: Required. The name of this intent.
 16013  	DisplayName string `json:"displayName,omitempty"`
 16014  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 16015  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 16016  	// this information to close interaction with an end user. Default is false.
 16017  	EndInteraction bool `json:"endInteraction,omitempty"`
 16018  	// Events: Optional. The collection of event names that trigger the intent. If
 16019  	// the collection of input contexts is not empty, all of the contexts must be
 16020  	// present in the active user session for an event to trigger this intent.
 16021  	// Event names are limited to 150 characters.
 16022  	Events []string `json:"events,omitempty"`
 16023  	// FollowupIntentInfo: Output only. Information about all followup intents that
 16024  	// have this intent as a direct or indirect parent. We populate this field only
 16025  	// in the output.
 16026  	FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
 16027  	// InputContextNames: Optional. The list of context names required for this
 16028  	// intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` -
 16029  	// `projects//locations//agent/sessions/-/contexts/`
 16030  	InputContextNames []string `json:"inputContextNames,omitempty"`
 16031  	// IsFallback: Optional. Indicates whether this is a fallback intent.
 16032  	IsFallback bool `json:"isFallback,omitempty"`
 16033  	// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in
 16034  	// to handle the interaction with the user. In most cases, when you set this
 16035  	// flag to true, you would also want to set end_interaction to true as well.
 16036  	// Default is false.
 16037  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 16038  	// Messages: Optional. The collection of rich messages corresponding to the
 16039  	// `Response` field in the Dialogflow console.
 16040  	Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
 16041  	// MlDisabled: Optional. Indicates whether Machine Learning is disabled for the
 16042  	// intent. Note: If `ml_disabled` setting is set to true, then this intent is
 16043  	// not taken into account during inference in `ML ONLY` match mode. Also,
 16044  	// auto-markup in the UI is turned off.
 16045  	MlDisabled bool `json:"mlDisabled,omitempty"`
 16046  	// MlEnabled: Optional. Indicates whether Machine Learning is enabled for the
 16047  	// intent. Note: If `ml_enabled` setting is set to false, then this intent is
 16048  	// not taken into account during inference in `ML ONLY` match mode. Also,
 16049  	// auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled`
 16050  	// field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not
 16051  	// set or false, then the default value is determined as follows: - Before
 16052  	// April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. -
 16053  	// After April 15th, 2018 the default is: ml_enabled = true / ml_disabled =
 16054  	// false.
 16055  	MlEnabled bool `json:"mlEnabled,omitempty"`
 16056  	// Name: Optional. The unique identifier of this intent. Required for
 16057  	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported
 16058  	// formats: - `projects//agent/intents/` -
 16059  	// `projects//locations//agent/intents/`
 16060  	Name string `json:"name,omitempty"`
 16061  	// OutputContexts: Optional. The collection of contexts that are activated when
 16062  	// the intent is matched. Context messages in this collection should not set
 16063  	// the parameters field. Setting the `lifespan_count` to 0 will reset the
 16064  	// context when the intent is matched. Format:
 16065  	// `projects//agent/sessions/-/contexts/`.
 16066  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 16067  	// Parameters: Optional. The collection of parameters associated with the
 16068  	// intent.
 16069  	Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
 16070  	// ParentFollowupIntentName: Optional. The unique identifier of the parent
 16071  	// intent in the chain of followup intents. You can set this field when
 16072  	// creating an intent, for example with CreateIntent or BatchUpdateIntents, in
 16073  	// order to make this intent a followup intent. It identifies the parent
 16074  	// followup intent. Format: `projects//agent/intents/`.
 16075  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 16076  	// Priority: Optional. The priority of this intent. Higher numbers represent
 16077  	// higher priorities. - If the supplied value is unspecified or 0, the service
 16078  	// translates the value to 500,000, which corresponds to the `Normal` priority
 16079  	// in the console. - If the supplied value is negative, the intent is ignored
 16080  	// in runtime detect intent requests.
 16081  	Priority int64 `json:"priority,omitempty"`
 16082  	// ResetContexts: Optional. Indicates whether to delete all contexts in the
 16083  	// current session when this intent is matched.
 16084  	ResetContexts bool `json:"resetContexts,omitempty"`
 16085  	// RootFollowupIntentName: Output only. The unique identifier of the root
 16086  	// intent in the chain of followup intents. It identifies the correct followup
 16087  	// intents chain for this intent. Format: `projects//agent/intents/`.
 16088  	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
 16089  	// TrainingPhrases: Optional. The collection of examples that the agent is
 16090  	// trained on.
 16091  	TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
 16092  	// WebhookState: Optional. Indicates whether webhooks are enabled for the
 16093  	// intent.
 16094  	//
 16095  	// Possible values:
 16096  	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the
 16097  	// intent.
 16098  	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the
 16099  	// intent.
 16100  	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent
 16101  	// and in the intent. Also, each slot filling prompt is forwarded to the
 16102  	// webhook.
 16103  	WebhookState string `json:"webhookState,omitempty"`
 16104  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 16105  	// include in API requests. By default, fields with empty or default values are
 16106  	// omitted from API requests. See
 16107  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16108  	// details.
 16109  	ForceSendFields []string `json:"-"`
 16110  	// NullFields is a list of field names (e.g. "Action") to include in API
 16111  	// requests with the JSON null value. By default, fields with empty values are
 16112  	// omitted from API requests. See
 16113  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16114  	NullFields []string `json:"-"`
 16115  }
 16116  
 16117  func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
 16118  	type NoMethod GoogleCloudDialogflowV2beta1Intent
 16119  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16120  }
 16121  
 16122  // GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a single
 16123  // followup intent in the chain.
 16124  type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
 16125  	// FollowupIntentName: The unique identifier of the followup intent. Format:
 16126  	// `projects//agent/intents/`.
 16127  	FollowupIntentName string `json:"followupIntentName,omitempty"`
 16128  	// ParentFollowupIntentName: The unique identifier of the followup intent's
 16129  	// parent. Format: `projects//agent/intents/`.
 16130  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 16131  	// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to
 16132  	// unconditionally include in API requests. By default, fields with empty or
 16133  	// default values are omitted from API requests. See
 16134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16135  	// details.
 16136  	ForceSendFields []string `json:"-"`
 16137  	// NullFields is a list of field names (e.g. "FollowupIntentName") to include
 16138  	// in API requests with the JSON null value. By default, fields with empty
 16139  	// values are omitted from API requests. See
 16140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16141  	NullFields []string `json:"-"`
 16142  }
 16143  
 16144  func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
 16145  	type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
 16146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16147  }
 16148  
 16149  // GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the `Response`
 16150  // field in the Dialogflow console.
 16151  type GoogleCloudDialogflowV2beta1IntentMessage struct {
 16152  	// BasicCard: Displays a basic card for Actions on Google.
 16153  	BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
 16154  	// BrowseCarouselCard: Browse carousel card for Actions on Google.
 16155  	BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
 16156  	// Card: Displays a card.
 16157  	Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
 16158  	// CarouselSelect: Displays a carousel card for Actions on Google.
 16159  	CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
 16160  	// Image: Displays an image.
 16161  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16162  	// LinkOutSuggestion: Displays a link out suggestion chip for Actions on
 16163  	// Google.
 16164  	LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
 16165  	// ListSelect: Displays a list card for Actions on Google.
 16166  	ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
 16167  	// MediaContent: The media content card for Actions on Google.
 16168  	MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
 16169  	// Payload: A custom platform-specific response.
 16170  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 16171  	// Platform: Optional. The platform that this message is intended for.
 16172  	//
 16173  	// Possible values:
 16174  	//   "PLATFORM_UNSPECIFIED" - Not specified.
 16175  	//   "FACEBOOK" - Facebook.
 16176  	//   "SLACK" - Slack.
 16177  	//   "TELEGRAM" - Telegram.
 16178  	//   "KIK" - Kik.
 16179  	//   "SKYPE" - Skype.
 16180  	//   "LINE" - Line.
 16181  	//   "VIBER" - Viber.
 16182  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 16183  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 16184  	// -webhook-json)
 16185  	//   "TELEPHONY" - Telephony Gateway.
 16186  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 16187  	Platform string `json:"platform,omitempty"`
 16188  	// QuickReplies: Displays quick replies.
 16189  	QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
 16190  	// RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card
 16191  	// response.
 16192  	RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
 16193  	// RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich card
 16194  	// response.
 16195  	RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
 16196  	// RbmText: Rich Business Messaging (RBM) text response. RBM allows businesses
 16197  	// to send enriched and branded versions of SMS. See
 16198  	// https://jibe.google.com/business-messaging.
 16199  	RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
 16200  	// SimpleResponses: Returns a voice or text-only response for Actions on
 16201  	// Google.
 16202  	SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
 16203  	// Suggestions: Displays suggestion chips for Actions on Google.
 16204  	Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
 16205  	// TableCard: Table card for Actions on Google.
 16206  	TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
 16207  	// TelephonyPlayAudio: Plays audio from a file in Telephony Gateway.
 16208  	TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
 16209  	// TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway.
 16210  	TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
 16211  	// TelephonyTransferCall: Transfers the call in Telephony Gateway.
 16212  	TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
 16213  	// Text: Returns a text response.
 16214  	Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
 16215  	// ForceSendFields is a list of field names (e.g. "BasicCard") to
 16216  	// unconditionally include in API requests. By default, fields with empty or
 16217  	// default values are omitted from API requests. See
 16218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16219  	// details.
 16220  	ForceSendFields []string `json:"-"`
 16221  	// NullFields is a list of field names (e.g. "BasicCard") to include in API
 16222  	// requests with the JSON null value. By default, fields with empty values are
 16223  	// omitted from API requests. See
 16224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16225  	NullFields []string `json:"-"`
 16226  }
 16227  
 16228  func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
 16229  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
 16230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16231  }
 16232  
 16233  // GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card message.
 16234  // Useful for displaying information.
 16235  type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
 16236  	// Buttons: Optional. The collection of card buttons.
 16237  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
 16238  	// FormattedText: Required, unless image is present. The body text of the card.
 16239  	FormattedText string `json:"formattedText,omitempty"`
 16240  	// Image: Optional. The image for the card.
 16241  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16242  	// Subtitle: Optional. The subtitle of the card.
 16243  	Subtitle string `json:"subtitle,omitempty"`
 16244  	// Title: Optional. The title of the card.
 16245  	Title string `json:"title,omitempty"`
 16246  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 16247  	// include in API requests. By default, fields with empty or default values are
 16248  	// omitted from API requests. See
 16249  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16250  	// details.
 16251  	ForceSendFields []string `json:"-"`
 16252  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 16253  	// requests with the JSON null value. By default, fields with empty values are
 16254  	// omitted from API requests. See
 16255  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16256  	NullFields []string `json:"-"`
 16257  }
 16258  
 16259  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
 16260  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
 16261  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16262  }
 16263  
 16264  // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button object
 16265  // that appears at the bottom of a card.
 16266  type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
 16267  	// OpenUriAction: Required. Action to take when a user taps on the button.
 16268  	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
 16269  	// Title: Required. The title of the button.
 16270  	Title string `json:"title,omitempty"`
 16271  	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
 16272  	// unconditionally include in API requests. By default, fields with empty or
 16273  	// default values are omitted from API requests. See
 16274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16275  	// details.
 16276  	ForceSendFields []string `json:"-"`
 16277  	// NullFields is a list of field names (e.g. "OpenUriAction") to include in API
 16278  	// requests with the JSON null value. By default, fields with empty values are
 16279  	// omitted from API requests. See
 16280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16281  	NullFields []string `json:"-"`
 16282  }
 16283  
 16284  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
 16285  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
 16286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16287  }
 16288  
 16289  // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction: Opens
 16290  // the given URI.
 16291  type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
 16292  	// Uri: Required. The HTTP or HTTPS scheme URI.
 16293  	Uri string `json:"uri,omitempty"`
 16294  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 16295  	// include in API requests. By default, fields with empty or default values are
 16296  	// omitted from API requests. See
 16297  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16298  	// details.
 16299  	ForceSendFields []string `json:"-"`
 16300  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 16301  	// with the JSON null value. By default, fields with empty values are omitted
 16302  	// from API requests. See
 16303  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16304  	NullFields []string `json:"-"`
 16305  }
 16306  
 16307  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
 16308  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
 16309  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16310  }
 16311  
 16312  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse Carousel
 16313  // Card for Actions on Google.
 16314  // https://developers.google.com/actions/assistant/responses#browsing_carousel
 16315  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
 16316  	// ImageDisplayOptions: Optional. Settings for displaying the image. Applies to
 16317  	// every image in items.
 16318  	//
 16319  	// Possible values:
 16320  	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and
 16321  	// the image container with gray bars.
 16322  	//   "GRAY" - Fill the gaps between the image and the image container with gray
 16323  	// bars.
 16324  	//   "WHITE" - Fill the gaps between the image and the image container with
 16325  	// white bars.
 16326  	//   "CROPPED" - Image is scaled such that the image width and height match or
 16327  	// exceed the container dimensions. This may crop the top and bottom of the
 16328  	// image if the scaled image height is greater than the container height, or
 16329  	// crop the left and right of the image if the scaled image width is greater
 16330  	// than the container width. This is similar to "Zoom Mode" on a widescreen TV
 16331  	// when playing a 4:3 video.
 16332  	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a
 16333  	// blurred copy of the same image.
 16334  	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
 16335  	// Items: Required. List of items in the Browse Carousel Card. Minimum of two
 16336  	// items, maximum of ten.
 16337  	Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
 16338  	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to
 16339  	// unconditionally include in API requests. By default, fields with empty or
 16340  	// default values are omitted from API requests. See
 16341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16342  	// details.
 16343  	ForceSendFields []string `json:"-"`
 16344  	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to include
 16345  	// in API requests with the JSON null value. By default, fields with empty
 16346  	// values are omitted from API requests. See
 16347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16348  	NullFields []string `json:"-"`
 16349  }
 16350  
 16351  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
 16352  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
 16353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16354  }
 16355  
 16356  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard
 16357  // Item: Browsing carousel tile
 16358  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
 16359  	// Description: Optional. Description of the carousel item. Maximum of four
 16360  	// lines of text.
 16361  	Description string `json:"description,omitempty"`
 16362  	// Footer: Optional. Text that appears at the bottom of the Browse Carousel
 16363  	// Card. Maximum of one line of text.
 16364  	Footer string `json:"footer,omitempty"`
 16365  	// Image: Optional. Hero image for the carousel item.
 16366  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16367  	// OpenUriAction: Required. Action to present to the user.
 16368  	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
 16369  	// Title: Required. Title of the carousel item. Maximum of two lines of text.
 16370  	Title string `json:"title,omitempty"`
 16371  	// ForceSendFields is a list of field names (e.g. "Description") to
 16372  	// unconditionally include in API requests. By default, fields with empty or
 16373  	// default values are omitted from API requests. See
 16374  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16375  	// details.
 16376  	ForceSendFields []string `json:"-"`
 16377  	// NullFields is a list of field names (e.g. "Description") to include in API
 16378  	// requests with the JSON null value. By default, fields with empty values are
 16379  	// omitted from API requests. See
 16380  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16381  	NullFields []string `json:"-"`
 16382  }
 16383  
 16384  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
 16385  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
 16386  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16387  }
 16388  
 16389  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard
 16390  // ItemOpenUrlAction: Actions on Google action to open a given url.
 16391  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
 16392  	// Url: Required. URL
 16393  	Url string `json:"url,omitempty"`
 16394  	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
 16395  	// opening the URL. Defaults to opening via web browser.
 16396  	//
 16397  	// Possible values:
 16398  	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
 16399  	//   "AMP_ACTION" - Url would be an amp action
 16400  	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical
 16401  	// URL which refers to AMP content via .
 16402  	UrlTypeHint string `json:"urlTypeHint,omitempty"`
 16403  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
 16404  	// include in API requests. By default, fields with empty or default values are
 16405  	// omitted from API requests. See
 16406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16407  	// details.
 16408  	ForceSendFields []string `json:"-"`
 16409  	// NullFields is a list of field names (e.g. "Url") to include in API requests
 16410  	// with the JSON null value. By default, fields with empty values are omitted
 16411  	// from API requests. See
 16412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16413  	NullFields []string `json:"-"`
 16414  }
 16415  
 16416  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
 16417  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
 16418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16419  }
 16420  
 16421  // GoogleCloudDialogflowV2beta1IntentMessageCard: The card response message.
 16422  type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
 16423  	// Buttons: Optional. The collection of card buttons.
 16424  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
 16425  	// ImageUri: Optional. The public URI to an image file for the card.
 16426  	ImageUri string `json:"imageUri,omitempty"`
 16427  	// Subtitle: Optional. The subtitle of the card.
 16428  	Subtitle string `json:"subtitle,omitempty"`
 16429  	// Title: Optional. The title of the card.
 16430  	Title string `json:"title,omitempty"`
 16431  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 16432  	// include in API requests. By default, fields with empty or default values are
 16433  	// omitted from API requests. See
 16434  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16435  	// details.
 16436  	ForceSendFields []string `json:"-"`
 16437  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 16438  	// requests with the JSON null value. By default, fields with empty values are
 16439  	// omitted from API requests. See
 16440  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16441  	NullFields []string `json:"-"`
 16442  }
 16443  
 16444  func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
 16445  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
 16446  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16447  }
 16448  
 16449  // GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. Contains
 16450  // information about a button.
 16451  type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
 16452  	// Postback: Optional. The text to send back to the Dialogflow API or a URI to
 16453  	// open.
 16454  	Postback string `json:"postback,omitempty"`
 16455  	// Text: Optional. The text to show on the button.
 16456  	Text string `json:"text,omitempty"`
 16457  	// ForceSendFields is a list of field names (e.g. "Postback") to
 16458  	// unconditionally include in API requests. By default, fields with empty or
 16459  	// default values are omitted from API requests. See
 16460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16461  	// details.
 16462  	ForceSendFields []string `json:"-"`
 16463  	// NullFields is a list of field names (e.g. "Postback") to include in API
 16464  	// requests with the JSON null value. By default, fields with empty values are
 16465  	// omitted from API requests. See
 16466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16467  	NullFields []string `json:"-"`
 16468  }
 16469  
 16470  func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
 16471  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
 16472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16473  }
 16474  
 16475  // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for
 16476  // presenting a carousel of options to select from.
 16477  type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
 16478  	// Items: Required. Carousel items.
 16479  	Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
 16480  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 16481  	// include in API requests. By default, fields with empty or default values are
 16482  	// omitted from API requests. See
 16483  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16484  	// details.
 16485  	ForceSendFields []string `json:"-"`
 16486  	// NullFields is a list of field names (e.g. "Items") to include in API
 16487  	// requests with the JSON null value. By default, fields with empty values are
 16488  	// omitted from API requests. See
 16489  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16490  	NullFields []string `json:"-"`
 16491  }
 16492  
 16493  func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
 16494  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
 16495  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16496  }
 16497  
 16498  // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item in the
 16499  // carousel.
 16500  type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
 16501  	// Description: Optional. The body text of the card.
 16502  	Description string `json:"description,omitempty"`
 16503  	// Image: Optional. The image to display.
 16504  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16505  	// Info: Required. Additional info about the option item.
 16506  	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
 16507  	// Title: Required. Title of the carousel item.
 16508  	Title string `json:"title,omitempty"`
 16509  	// ForceSendFields is a list of field names (e.g. "Description") to
 16510  	// unconditionally include in API requests. By default, fields with empty or
 16511  	// default values are omitted from API requests. See
 16512  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16513  	// details.
 16514  	ForceSendFields []string `json:"-"`
 16515  	// NullFields is a list of field names (e.g. "Description") to include in API
 16516  	// requests with the JSON null value. By default, fields with empty values are
 16517  	// omitted from API requests. See
 16518  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16519  	NullFields []string `json:"-"`
 16520  }
 16521  
 16522  func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
 16523  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
 16524  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16525  }
 16526  
 16527  // GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column properties
 16528  // for TableCard.
 16529  type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
 16530  	// Header: Required. Column heading.
 16531  	Header string `json:"header,omitempty"`
 16532  	// HorizontalAlignment: Optional. Defines text alignment for all cells in this
 16533  	// column.
 16534  	//
 16535  	// Possible values:
 16536  	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge
 16537  	// of the column.
 16538  	//   "LEADING" - Text is aligned to the leading edge of the column.
 16539  	//   "CENTER" - Text is centered in the column.
 16540  	//   "TRAILING" - Text is aligned to the trailing edge of the column.
 16541  	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
 16542  	// ForceSendFields is a list of field names (e.g. "Header") to unconditionally
 16543  	// include in API requests. By default, fields with empty or default values are
 16544  	// omitted from API requests. See
 16545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16546  	// details.
 16547  	ForceSendFields []string `json:"-"`
 16548  	// NullFields is a list of field names (e.g. "Header") to include in API
 16549  	// requests with the JSON null value. By default, fields with empty values are
 16550  	// omitted from API requests. See
 16551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16552  	NullFields []string `json:"-"`
 16553  }
 16554  
 16555  func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
 16556  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
 16557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16558  }
 16559  
 16560  // GoogleCloudDialogflowV2beta1IntentMessageImage: The image response message.
 16561  type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
 16562  	// AccessibilityText: A text description of the image to be used for
 16563  	// accessibility, e.g., screen readers. Required if image_uri is set for
 16564  	// CarouselSelect.
 16565  	AccessibilityText string `json:"accessibilityText,omitempty"`
 16566  	// ImageUri: Optional. The public URI to an image file.
 16567  	ImageUri string `json:"imageUri,omitempty"`
 16568  	// ForceSendFields is a list of field names (e.g. "AccessibilityText") to
 16569  	// unconditionally include in API requests. By default, fields with empty or
 16570  	// default values are omitted from API requests. See
 16571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16572  	// details.
 16573  	ForceSendFields []string `json:"-"`
 16574  	// NullFields is a list of field names (e.g. "AccessibilityText") to include in
 16575  	// API requests with the JSON null value. By default, fields with empty values
 16576  	// are omitted from API requests. See
 16577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16578  	NullFields []string `json:"-"`
 16579  }
 16580  
 16581  func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
 16582  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
 16583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16584  }
 16585  
 16586  // GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The suggestion
 16587  // chip message that allows the user to jump out to the app or website
 16588  // associated with this agent.
 16589  type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
 16590  	// DestinationName: Required. The name of the app or site this chip is linking
 16591  	// to.
 16592  	DestinationName string `json:"destinationName,omitempty"`
 16593  	// Uri: Required. The URI of the app or site to open when the user taps the
 16594  	// suggestion chip.
 16595  	Uri string `json:"uri,omitempty"`
 16596  	// ForceSendFields is a list of field names (e.g. "DestinationName") to
 16597  	// unconditionally include in API requests. By default, fields with empty or
 16598  	// default values are omitted from API requests. See
 16599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16600  	// details.
 16601  	ForceSendFields []string `json:"-"`
 16602  	// NullFields is a list of field names (e.g. "DestinationName") to include in
 16603  	// API requests with the JSON null value. By default, fields with empty values
 16604  	// are omitted from API requests. See
 16605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16606  	NullFields []string `json:"-"`
 16607  }
 16608  
 16609  func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
 16610  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
 16611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16612  }
 16613  
 16614  // GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for presenting
 16615  // a list of options to select from.
 16616  type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
 16617  	// Items: Required. List items.
 16618  	Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
 16619  	// Subtitle: Optional. Subtitle of the list.
 16620  	Subtitle string `json:"subtitle,omitempty"`
 16621  	// Title: Optional. The overall title of the list.
 16622  	Title string `json:"title,omitempty"`
 16623  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 16624  	// include in API requests. By default, fields with empty or default values are
 16625  	// omitted from API requests. See
 16626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16627  	// details.
 16628  	ForceSendFields []string `json:"-"`
 16629  	// NullFields is a list of field names (e.g. "Items") to include in API
 16630  	// requests with the JSON null value. By default, fields with empty values are
 16631  	// omitted from API requests. See
 16632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16633  	NullFields []string `json:"-"`
 16634  }
 16635  
 16636  func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
 16637  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
 16638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16639  }
 16640  
 16641  // GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in the
 16642  // list.
 16643  type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
 16644  	// Description: Optional. The main text describing the item.
 16645  	Description string `json:"description,omitempty"`
 16646  	// Image: Optional. The image to display.
 16647  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16648  	// Info: Required. Additional information about this option.
 16649  	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
 16650  	// Title: Required. The title of the list item.
 16651  	Title string `json:"title,omitempty"`
 16652  	// ForceSendFields is a list of field names (e.g. "Description") to
 16653  	// unconditionally include in API requests. By default, fields with empty or
 16654  	// default values are omitted from API requests. See
 16655  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16656  	// details.
 16657  	ForceSendFields []string `json:"-"`
 16658  	// NullFields is a list of field names (e.g. "Description") to include in API
 16659  	// requests with the JSON null value. By default, fields with empty values are
 16660  	// omitted from API requests. See
 16661  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16662  	NullFields []string `json:"-"`
 16663  }
 16664  
 16665  func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
 16666  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
 16667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16668  }
 16669  
 16670  // GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media content
 16671  // card for Actions on Google.
 16672  type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
 16673  	// MediaObjects: Required. List of media objects.
 16674  	MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
 16675  	// MediaType: Optional. What type of media is the content (ie "audio").
 16676  	//
 16677  	// Possible values:
 16678  	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
 16679  	//   "AUDIO" - Response media type is audio.
 16680  	MediaType string `json:"mediaType,omitempty"`
 16681  	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
 16682  	// unconditionally include in API requests. By default, fields with empty or
 16683  	// default values are omitted from API requests. See
 16684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16685  	// details.
 16686  	ForceSendFields []string `json:"-"`
 16687  	// NullFields is a list of field names (e.g. "MediaObjects") to include in API
 16688  	// requests with the JSON null value. By default, fields with empty values are
 16689  	// omitted from API requests. See
 16690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16691  	NullFields []string `json:"-"`
 16692  }
 16693  
 16694  func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
 16695  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
 16696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16697  }
 16698  
 16699  // GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject:
 16700  // Response media object for media content card.
 16701  type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
 16702  	// ContentUrl: Required. Url where the media is stored.
 16703  	ContentUrl string `json:"contentUrl,omitempty"`
 16704  	// Description: Optional. Description of media card.
 16705  	Description string `json:"description,omitempty"`
 16706  	// Icon: Optional. Icon to display above media content.
 16707  	Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
 16708  	// LargeImage: Optional. Image to display above media content.
 16709  	LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
 16710  	// Name: Required. Name of media card.
 16711  	Name string `json:"name,omitempty"`
 16712  	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
 16713  	// unconditionally include in API requests. By default, fields with empty or
 16714  	// default values are omitted from API requests. See
 16715  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16716  	// details.
 16717  	ForceSendFields []string `json:"-"`
 16718  	// NullFields is a list of field names (e.g. "ContentUrl") to include in API
 16719  	// requests with the JSON null value. By default, fields with empty values are
 16720  	// omitted from API requests. See
 16721  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16722  	NullFields []string `json:"-"`
 16723  }
 16724  
 16725  func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
 16726  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
 16727  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16728  }
 16729  
 16730  // GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick replies
 16731  // response message.
 16732  type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
 16733  	// QuickReplies: Optional. The collection of quick replies.
 16734  	QuickReplies []string `json:"quickReplies,omitempty"`
 16735  	// Title: Optional. The title of the collection of quick replies.
 16736  	Title string `json:"title,omitempty"`
 16737  	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
 16738  	// unconditionally include in API requests. By default, fields with empty or
 16739  	// default values are omitted from API requests. See
 16740  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16741  	// details.
 16742  	ForceSendFields []string `json:"-"`
 16743  	// NullFields is a list of field names (e.g. "QuickReplies") to include in API
 16744  	// requests with the JSON null value. By default, fields with empty values are
 16745  	// omitted from API requests. See
 16746  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16747  	NullFields []string `json:"-"`
 16748  }
 16749  
 16750  func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
 16751  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
 16752  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16753  }
 16754  
 16755  // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich Business
 16756  // Messaging (RBM) Card content
 16757  type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
 16758  	// Description: Optional. Description of the card (at most 2000 bytes). At
 16759  	// least one of the title, description or media must be set.
 16760  	Description string `json:"description,omitempty"`
 16761  	// Media: Optional. However at least one of the title, description or media
 16762  	// must be set. Media (image, GIF or a video) to include in the card.
 16763  	Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
 16764  	// Suggestions: Optional. List of suggestions to include in the card.
 16765  	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
 16766  	// Title: Optional. Title of the card (at most 200 bytes). At least one of the
 16767  	// title, description or media must be set.
 16768  	Title string `json:"title,omitempty"`
 16769  	// ForceSendFields is a list of field names (e.g. "Description") to
 16770  	// unconditionally include in API requests. By default, fields with empty or
 16771  	// default values are omitted from API requests. See
 16772  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16773  	// details.
 16774  	ForceSendFields []string `json:"-"`
 16775  	// NullFields is a list of field names (e.g. "Description") to include in API
 16776  	// requests with the JSON null value. By default, fields with empty values are
 16777  	// omitted from API requests. See
 16778  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16779  	NullFields []string `json:"-"`
 16780  }
 16781  
 16782  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
 16783  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
 16784  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16785  }
 16786  
 16787  // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich
 16788  // Business Messaging (RBM) Media displayed in Cards The following media-types
 16789  // are currently supported: Image Types * image/jpeg * image/jpg' * image/gif *
 16790  // image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg *
 16791  // video/mpeg4 * video/webm
 16792  type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
 16793  	// FileUri: Required. Publicly reachable URI of the file. The RBM platform
 16794  	// determines the MIME type of the file from the content-type field in the HTTP
 16795  	// headers when the platform fetches the file. The content-type field must be
 16796  	// present and accurate in the HTTP response from the URL.
 16797  	FileUri string `json:"fileUri,omitempty"`
 16798  	// Height: Required for cards with vertical orientation. The height of the
 16799  	// media within a rich card with a vertical layout. For a standalone card with
 16800  	// horizontal layout, height is not customizable, and this field is ignored.
 16801  	//
 16802  	// Possible values:
 16803  	//   "HEIGHT_UNSPECIFIED" - Not specified.
 16804  	//   "SHORT" - 112 DP.
 16805  	//   "MEDIUM" - 168 DP.
 16806  	//   "TALL" - 264 DP. Not available for rich card carousels when the card width
 16807  	// is set to small.
 16808  	Height string `json:"height,omitempty"`
 16809  	// ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If you don't
 16810  	// provide a thumbnail URI, the RBM platform displays a blank placeholder
 16811  	// thumbnail until the user's device downloads the file. Depending on the
 16812  	// user's setting, the file may not download automatically and may require the
 16813  	// user to tap a download button.
 16814  	ThumbnailUri string `json:"thumbnailUri,omitempty"`
 16815  	// ForceSendFields is a list of field names (e.g. "FileUri") to unconditionally
 16816  	// include in API requests. By default, fields with empty or default values are
 16817  	// omitted from API requests. See
 16818  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16819  	// details.
 16820  	ForceSendFields []string `json:"-"`
 16821  	// NullFields is a list of field names (e.g. "FileUri") to include in API
 16822  	// requests with the JSON null value. By default, fields with empty values are
 16823  	// omitted from API requests. See
 16824  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16825  	NullFields []string `json:"-"`
 16826  }
 16827  
 16828  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
 16829  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
 16830  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16831  }
 16832  
 16833  // GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel Rich
 16834  // Business Messaging (RBM) rich card. Rich cards allow you to respond to users
 16835  // with more vivid content, e.g. with media and suggestions. If you want to
 16836  // show a single card with more control over the layout, please use
 16837  // RbmStandaloneCard instead.
 16838  type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
 16839  	// CardContents: Required. The cards in the carousel. A carousel must have at
 16840  	// least 2 cards and at most 10.
 16841  	CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
 16842  	// CardWidth: Required. The width of the cards in the carousel.
 16843  	//
 16844  	// Possible values:
 16845  	//   "CARD_WIDTH_UNSPECIFIED" - Not specified.
 16846  	//   "SMALL" - 120 DP. Note that tall media cannot be used.
 16847  	//   "MEDIUM" - 232 DP.
 16848  	CardWidth string `json:"cardWidth,omitempty"`
 16849  	// ForceSendFields is a list of field names (e.g. "CardContents") to
 16850  	// unconditionally include in API requests. By default, fields with empty or
 16851  	// default values are omitted from API requests. See
 16852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16853  	// details.
 16854  	ForceSendFields []string `json:"-"`
 16855  	// NullFields is a list of field names (e.g. "CardContents") to include in API
 16856  	// requests with the JSON null value. By default, fields with empty values are
 16857  	// omitted from API requests. See
 16858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16859  	NullFields []string `json:"-"`
 16860  }
 16861  
 16862  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
 16863  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
 16864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16865  }
 16866  
 16867  // GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: Standalone Rich
 16868  // Business Messaging (RBM) rich card. Rich cards allow you to respond to users
 16869  // with more vivid content, e.g. with media and suggestions. You can group
 16870  // multiple rich cards into one using RbmCarouselCard but carousel cards will
 16871  // give you less control over the card layout.
 16872  type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
 16873  	// CardContent: Required. Card content.
 16874  	CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
 16875  	// CardOrientation: Required. Orientation of the card.
 16876  	//
 16877  	// Possible values:
 16878  	//   "CARD_ORIENTATION_UNSPECIFIED" - Not specified.
 16879  	//   "HORIZONTAL" - Horizontal layout.
 16880  	//   "VERTICAL" - Vertical layout.
 16881  	CardOrientation string `json:"cardOrientation,omitempty"`
 16882  	// ThumbnailImageAlignment: Required if orientation is horizontal. Image
 16883  	// preview alignment for standalone cards with horizontal layout.
 16884  	//
 16885  	// Possible values:
 16886  	//   "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified.
 16887  	//   "LEFT" - Thumbnail preview is left-aligned.
 16888  	//   "RIGHT" - Thumbnail preview is right-aligned.
 16889  	ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
 16890  	// ForceSendFields is a list of field names (e.g. "CardContent") to
 16891  	// unconditionally include in API requests. By default, fields with empty or
 16892  	// default values are omitted from API requests. See
 16893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16894  	// details.
 16895  	ForceSendFields []string `json:"-"`
 16896  	// NullFields is a list of field names (e.g. "CardContent") to include in API
 16897  	// requests with the JSON null value. By default, fields with empty values are
 16898  	// omitted from API requests. See
 16899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16900  	NullFields []string `json:"-"`
 16901  }
 16902  
 16903  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
 16904  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
 16905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16906  }
 16907  
 16908  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich Business
 16909  // Messaging (RBM) suggested client-side action that the user can choose from
 16910  // the card.
 16911  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
 16912  	// Dial: Suggested client side action: Dial a phone number
 16913  	Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
 16914  	// OpenUrl: Suggested client side action: Open a URI on device
 16915  	OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
 16916  	// PostbackData: Opaque payload that the Dialogflow receives in a user event
 16917  	// when the user taps the suggested action. This data will be also forwarded to
 16918  	// webhook to allow performing custom business logic.
 16919  	PostbackData string `json:"postbackData,omitempty"`
 16920  	// ShareLocation: Suggested client side action: Share user location
 16921  	ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
 16922  	// Text: Text to display alongside the action.
 16923  	Text string `json:"text,omitempty"`
 16924  	// ForceSendFields is a list of field names (e.g. "Dial") to unconditionally
 16925  	// include in API requests. By default, fields with empty or default values are
 16926  	// omitted from API requests. See
 16927  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16928  	// details.
 16929  	ForceSendFields []string `json:"-"`
 16930  	// NullFields is a list of field names (e.g. "Dial") to include in API requests
 16931  	// with the JSON null value. By default, fields with empty values are omitted
 16932  	// from API requests. See
 16933  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16934  	NullFields []string `json:"-"`
 16935  }
 16936  
 16937  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
 16938  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
 16939  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16940  }
 16941  
 16942  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 16943  // Dial: Opens the user's default dialer app with the specified phone number
 16944  // but does not dial automatically.
 16945  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
 16946  	// PhoneNumber: Required. The phone number to fill in the default dialer app.
 16947  	// This field should be in E.164 (https://en.wikipedia.org/wiki/E.164) format.
 16948  	// An example of a correctly formatted phone number: +15556767888.
 16949  	PhoneNumber string `json:"phoneNumber,omitempty"`
 16950  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 16951  	// unconditionally include in API requests. By default, fields with empty or
 16952  	// default values are omitted from API requests. See
 16953  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16954  	// details.
 16955  	ForceSendFields []string `json:"-"`
 16956  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 16957  	// requests with the JSON null value. By default, fields with empty values are
 16958  	// omitted from API requests. See
 16959  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16960  	NullFields []string `json:"-"`
 16961  }
 16962  
 16963  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
 16964  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
 16965  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16966  }
 16967  
 16968  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 16969  // OpenUri: Opens the user's default web browser app to the specified uri If
 16970  // the user has an app installed that is registered as the default handler for
 16971  // the URL, then this app will be opened instead, and its icon will be used in
 16972  // the suggested action UI.
 16973  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
 16974  	// Uri: Required. The uri to open on the user device
 16975  	Uri string `json:"uri,omitempty"`
 16976  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 16977  	// include in API requests. By default, fields with empty or default values are
 16978  	// omitted from API requests. See
 16979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16980  	// details.
 16981  	ForceSendFields []string `json:"-"`
 16982  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 16983  	// with the JSON null value. By default, fields with empty values are omitted
 16984  	// from API requests. See
 16985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16986  	NullFields []string `json:"-"`
 16987  }
 16988  
 16989  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
 16990  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
 16991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16992  }
 16993  
 16994  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 16995  // ShareLocation: Opens the device's location chooser so the user can pick a
 16996  // location to send back to the agent.
 16997  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
 16998  }
 16999  
 17000  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich Business
 17001  // Messaging (RBM) suggested reply that the user can click instead of typing in
 17002  // their own response.
 17003  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
 17004  	// PostbackData: Opaque payload that the Dialogflow receives in a user event
 17005  	// when the user taps the suggested reply. This data will be also forwarded to
 17006  	// webhook to allow performing custom business logic.
 17007  	PostbackData string `json:"postbackData,omitempty"`
 17008  	// Text: Suggested reply text.
 17009  	Text string `json:"text,omitempty"`
 17010  	// ForceSendFields is a list of field names (e.g. "PostbackData") to
 17011  	// unconditionally include in API requests. By default, fields with empty or
 17012  	// default values are omitted from API requests. See
 17013  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17014  	// details.
 17015  	ForceSendFields []string `json:"-"`
 17016  	// NullFields is a list of field names (e.g. "PostbackData") to include in API
 17017  	// requests with the JSON null value. By default, fields with empty values are
 17018  	// omitted from API requests. See
 17019  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17020  	NullFields []string `json:"-"`
 17021  }
 17022  
 17023  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
 17024  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
 17025  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17026  }
 17027  
 17028  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business
 17029  // Messaging (RBM) suggestion. Suggestions allow user to easily select/click a
 17030  // predefined response or perform an action (like opening a web uri).
 17031  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
 17032  	// Action: Predefined client side actions that user can choose
 17033  	Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
 17034  	// Reply: Predefined replies for user to select instead of typing
 17035  	Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
 17036  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 17037  	// include in API requests. By default, fields with empty or default values are
 17038  	// omitted from API requests. See
 17039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17040  	// details.
 17041  	ForceSendFields []string `json:"-"`
 17042  	// NullFields is a list of field names (e.g. "Action") to include in API
 17043  	// requests with the JSON null value. By default, fields with empty values are
 17044  	// omitted from API requests. See
 17045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17046  	NullFields []string `json:"-"`
 17047  }
 17048  
 17049  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
 17050  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
 17051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17052  }
 17053  
 17054  // GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business Messaging
 17055  // (RBM) text response with suggestions.
 17056  type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
 17057  	// RbmSuggestion: Optional. One or more suggestions to show to the user.
 17058  	RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
 17059  	// Text: Required. Text sent and displayed to the user.
 17060  	Text string `json:"text,omitempty"`
 17061  	// ForceSendFields is a list of field names (e.g. "RbmSuggestion") to
 17062  	// unconditionally include in API requests. By default, fields with empty or
 17063  	// default values are omitted from API requests. See
 17064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17065  	// details.
 17066  	ForceSendFields []string `json:"-"`
 17067  	// NullFields is a list of field names (e.g. "RbmSuggestion") to include in API
 17068  	// requests with the JSON null value. By default, fields with empty values are
 17069  	// omitted from API requests. See
 17070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17071  	NullFields []string `json:"-"`
 17072  }
 17073  
 17074  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
 17075  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
 17076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17077  }
 17078  
 17079  // GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional info
 17080  // about the select item for when it is triggered in a dialog.
 17081  type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
 17082  	// Key: Required. A unique key that will be sent back to the agent if this
 17083  	// response is given.
 17084  	Key string `json:"key,omitempty"`
 17085  	// Synonyms: Optional. A list of synonyms that can also be used to trigger this
 17086  	// item in dialog.
 17087  	Synonyms []string `json:"synonyms,omitempty"`
 17088  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
 17089  	// include in API requests. By default, fields with empty or default values are
 17090  	// omitted from API requests. See
 17091  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17092  	// details.
 17093  	ForceSendFields []string `json:"-"`
 17094  	// NullFields is a list of field names (e.g. "Key") to include in API requests
 17095  	// with the JSON null value. By default, fields with empty values are omitted
 17096  	// from API requests. See
 17097  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17098  	NullFields []string `json:"-"`
 17099  }
 17100  
 17101  func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
 17102  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
 17103  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17104  }
 17105  
 17106  // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple response
 17107  // message containing speech or text.
 17108  type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
 17109  	// DisplayText: Optional. The text to display.
 17110  	DisplayText string `json:"displayText,omitempty"`
 17111  	// Ssml: One of text_to_speech or ssml must be provided. Structured spoken
 17112  	// response to the user in the SSML format. Mutually exclusive with
 17113  	// text_to_speech.
 17114  	Ssml string `json:"ssml,omitempty"`
 17115  	// TextToSpeech: One of text_to_speech or ssml must be provided. The plain text
 17116  	// of the speech output. Mutually exclusive with ssml.
 17117  	TextToSpeech string `json:"textToSpeech,omitempty"`
 17118  	// ForceSendFields is a list of field names (e.g. "DisplayText") to
 17119  	// unconditionally include in API requests. By default, fields with empty or
 17120  	// default values are omitted from API requests. See
 17121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17122  	// details.
 17123  	ForceSendFields []string `json:"-"`
 17124  	// NullFields is a list of field names (e.g. "DisplayText") to include in API
 17125  	// requests with the JSON null value. By default, fields with empty values are
 17126  	// omitted from API requests. See
 17127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17128  	NullFields []string `json:"-"`
 17129  }
 17130  
 17131  func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
 17132  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
 17133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17134  }
 17135  
 17136  // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The collection of
 17137  // simple response candidates. This message in
 17138  // `QueryResult.fulfillment_messages` and
 17139  // `WebhookResponse.fulfillment_messages` should contain only one
 17140  // `SimpleResponse`.
 17141  type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
 17142  	// SimpleResponses: Required. The list of simple responses.
 17143  	SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
 17144  	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
 17145  	// unconditionally include in API requests. By default, fields with empty or
 17146  	// default values are omitted from API requests. See
 17147  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17148  	// details.
 17149  	ForceSendFields []string `json:"-"`
 17150  	// NullFields is a list of field names (e.g. "SimpleResponses") to include in
 17151  	// API requests with the JSON null value. By default, fields with empty values
 17152  	// are omitted from API requests. See
 17153  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17154  	NullFields []string `json:"-"`
 17155  }
 17156  
 17157  func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
 17158  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
 17159  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17160  }
 17161  
 17162  // GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion chip
 17163  // message that the user can tap to quickly post a reply to the conversation.
 17164  type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
 17165  	// Title: Required. The text shown the in the suggestion chip.
 17166  	Title string `json:"title,omitempty"`
 17167  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
 17168  	// include in API requests. By default, fields with empty or default values are
 17169  	// omitted from API requests. See
 17170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17171  	// details.
 17172  	ForceSendFields []string `json:"-"`
 17173  	// NullFields is a list of field names (e.g. "Title") to include in API
 17174  	// requests with the JSON null value. By default, fields with empty values are
 17175  	// omitted from API requests. See
 17176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17177  	NullFields []string `json:"-"`
 17178  }
 17179  
 17180  func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
 17181  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
 17182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17183  }
 17184  
 17185  // GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection of
 17186  // suggestions.
 17187  type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
 17188  	// Suggestions: Required. The list of suggested replies.
 17189  	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
 17190  	// ForceSendFields is a list of field names (e.g. "Suggestions") to
 17191  	// unconditionally include in API requests. By default, fields with empty or
 17192  	// default values are omitted from API requests. See
 17193  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17194  	// details.
 17195  	ForceSendFields []string `json:"-"`
 17196  	// NullFields is a list of field names (e.g. "Suggestions") to include in API
 17197  	// requests with the JSON null value. By default, fields with empty values are
 17198  	// omitted from API requests. See
 17199  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17200  	NullFields []string `json:"-"`
 17201  }
 17202  
 17203  func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
 17204  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
 17205  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17206  }
 17207  
 17208  // GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for Actions
 17209  // on Google.
 17210  type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
 17211  	// Buttons: Optional. List of buttons for the card.
 17212  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
 17213  	// ColumnProperties: Optional. Display properties for the columns in this
 17214  	// table.
 17215  	ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
 17216  	// Image: Optional. Image which should be displayed on the card.
 17217  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 17218  	// Rows: Optional. Rows in this table of data.
 17219  	Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
 17220  	// Subtitle: Optional. Subtitle to the title.
 17221  	Subtitle string `json:"subtitle,omitempty"`
 17222  	// Title: Required. Title of the card.
 17223  	Title string `json:"title,omitempty"`
 17224  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 17225  	// include in API requests. By default, fields with empty or default values are
 17226  	// omitted from API requests. See
 17227  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17228  	// details.
 17229  	ForceSendFields []string `json:"-"`
 17230  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 17231  	// requests with the JSON null value. By default, fields with empty values are
 17232  	// omitted from API requests. See
 17233  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17234  	NullFields []string `json:"-"`
 17235  }
 17236  
 17237  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
 17238  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
 17239  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17240  }
 17241  
 17242  // GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of
 17243  // TableCardRow.
 17244  type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
 17245  	// Text: Required. Text in this cell.
 17246  	Text string `json:"text,omitempty"`
 17247  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 17248  	// include in API requests. By default, fields with empty or default values are
 17249  	// omitted from API requests. See
 17250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17251  	// details.
 17252  	ForceSendFields []string `json:"-"`
 17253  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 17254  	// with the JSON null value. By default, fields with empty values are omitted
 17255  	// from API requests. See
 17256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17257  	NullFields []string `json:"-"`
 17258  }
 17259  
 17260  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
 17261  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
 17262  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17263  }
 17264  
 17265  // GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of TableCard.
 17266  type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
 17267  	// Cells: Optional. List of cells that make up this row.
 17268  	Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
 17269  	// DividerAfter: Optional. Whether to add a visual divider after this row.
 17270  	DividerAfter bool `json:"dividerAfter,omitempty"`
 17271  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
 17272  	// include in API requests. By default, fields with empty or default values are
 17273  	// omitted from API requests. See
 17274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17275  	// details.
 17276  	ForceSendFields []string `json:"-"`
 17277  	// NullFields is a list of field names (e.g. "Cells") to include in API
 17278  	// requests with the JSON null value. By default, fields with empty values are
 17279  	// omitted from API requests. See
 17280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17281  	NullFields []string `json:"-"`
 17282  }
 17283  
 17284  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
 17285  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
 17286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17287  }
 17288  
 17289  // GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays audio
 17290  // from a file in Telephony Gateway.
 17291  type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
 17292  	// AudioUri: Required. URI to a Google Cloud Storage object containing the
 17293  	// audio to play, e.g., "gs://bucket/object". The object must contain a single
 17294  	// channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object
 17295  	// must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`
 17296  	// service account where is the number of the Telephony Gateway project
 17297  	// (usually the same as the Dialogflow agent project). If the Google Cloud
 17298  	// Storage bucket is in the Telephony Gateway project, this permission is added
 17299  	// by default when enabling the Dialogflow V2 API. For audio from other
 17300  	// sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
 17301  	AudioUri string `json:"audioUri,omitempty"`
 17302  	// ForceSendFields is a list of field names (e.g. "AudioUri") to
 17303  	// unconditionally include in API requests. By default, fields with empty or
 17304  	// default values are omitted from API requests. See
 17305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17306  	// details.
 17307  	ForceSendFields []string `json:"-"`
 17308  	// NullFields is a list of field names (e.g. "AudioUri") to include in API
 17309  	// requests with the JSON null value. By default, fields with empty values are
 17310  	// omitted from API requests. See
 17311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17312  	NullFields []string `json:"-"`
 17313  }
 17314  
 17315  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
 17316  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
 17317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17318  }
 17319  
 17320  // GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech:
 17321  // Synthesizes speech and plays back the synthesized audio to the caller in
 17322  // Telephony Gateway. Telephony Gateway takes the synthesizer settings from
 17323  // `DetectIntentResponse.output_audio_config` which can either be set at
 17324  // request-level or can come from the agent-level synthesizer config.
 17325  type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
 17326  	// Ssml: The SSML to be synthesized. For more information, see SSML
 17327  	// (https://developers.google.com/actions/reference/ssml).
 17328  	Ssml string `json:"ssml,omitempty"`
 17329  	// Text: The raw text to be synthesized.
 17330  	Text string `json:"text,omitempty"`
 17331  	// ForceSendFields is a list of field names (e.g. "Ssml") to unconditionally
 17332  	// include in API requests. By default, fields with empty or default values are
 17333  	// omitted from API requests. See
 17334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17335  	// details.
 17336  	ForceSendFields []string `json:"-"`
 17337  	// NullFields is a list of field names (e.g. "Ssml") to include in API requests
 17338  	// with the JSON null value. By default, fields with empty values are omitted
 17339  	// from API requests. See
 17340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17341  	NullFields []string `json:"-"`
 17342  }
 17343  
 17344  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
 17345  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
 17346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17347  }
 17348  
 17349  // GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: Transfers
 17350  // the call in Telephony Gateway.
 17351  type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
 17352  	// PhoneNumber: Required. The phone number to transfer the call to in E.164
 17353  	// format (https://en.wikipedia.org/wiki/E.164). We currently only allow
 17354  	// transferring to US numbers (+1xxxyyyzzzz).
 17355  	PhoneNumber string `json:"phoneNumber,omitempty"`
 17356  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 17357  	// unconditionally include in API requests. By default, fields with empty or
 17358  	// default values are omitted from API requests. See
 17359  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17360  	// details.
 17361  	ForceSendFields []string `json:"-"`
 17362  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 17363  	// requests with the JSON null value. By default, fields with empty values are
 17364  	// omitted from API requests. See
 17365  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17366  	NullFields []string `json:"-"`
 17367  }
 17368  
 17369  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
 17370  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
 17371  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17372  }
 17373  
 17374  // GoogleCloudDialogflowV2beta1IntentMessageText: The text response message.
 17375  type GoogleCloudDialogflowV2beta1IntentMessageText struct {
 17376  	// Text: Optional. The collection of the agent's responses.
 17377  	Text []string `json:"text,omitempty"`
 17378  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 17379  	// include in API requests. By default, fields with empty or default values are
 17380  	// omitted from API requests. See
 17381  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17382  	// details.
 17383  	ForceSendFields []string `json:"-"`
 17384  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 17385  	// with the JSON null value. By default, fields with empty values are omitted
 17386  	// from API requests. See
 17387  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17388  	NullFields []string `json:"-"`
 17389  }
 17390  
 17391  func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
 17392  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
 17393  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17394  }
 17395  
 17396  // GoogleCloudDialogflowV2beta1IntentParameter: Represents intent parameters.
 17397  type GoogleCloudDialogflowV2beta1IntentParameter struct {
 17398  	// DefaultValue: Optional. The default value to use when the `value` yields an
 17399  	// empty result. Default values can be extracted from contexts by using the
 17400  	// following syntax: `#context_name.parameter_name`.
 17401  	DefaultValue string `json:"defaultValue,omitempty"`
 17402  	// DisplayName: Required. The name of the parameter.
 17403  	DisplayName string `json:"displayName,omitempty"`
 17404  	// EntityTypeDisplayName: Optional. The name of the entity type, prefixed with
 17405  	// `@`, that describes values of the parameter. If the parameter is required,
 17406  	// this must be provided.
 17407  	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
 17408  	// IsList: Optional. Indicates whether the parameter represents a list of
 17409  	// values.
 17410  	IsList bool `json:"isList,omitempty"`
 17411  	// Mandatory: Optional. Indicates whether the parameter is required. That is,
 17412  	// whether the intent cannot be completed without collecting the parameter
 17413  	// value.
 17414  	Mandatory bool `json:"mandatory,omitempty"`
 17415  	// Name: The unique identifier of this parameter.
 17416  	Name string `json:"name,omitempty"`
 17417  	// Prompts: Optional. The collection of prompts that the agent can present to
 17418  	// the user in order to collect a value for the parameter.
 17419  	Prompts []string `json:"prompts,omitempty"`
 17420  	// Value: Optional. The definition of the parameter value. It can be: - a
 17421  	// constant string, - a parameter value defined as `$parameter_name`, - an
 17422  	// original parameter value defined as `$parameter_name.original`, - a
 17423  	// parameter value from some context defined as `#context_name.parameter_name`.
 17424  	Value string `json:"value,omitempty"`
 17425  	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
 17426  	// unconditionally include in API requests. By default, fields with empty or
 17427  	// default values are omitted from API requests. See
 17428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17429  	// details.
 17430  	ForceSendFields []string `json:"-"`
 17431  	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
 17432  	// requests with the JSON null value. By default, fields with empty values are
 17433  	// omitted from API requests. See
 17434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17435  	NullFields []string `json:"-"`
 17436  }
 17437  
 17438  func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
 17439  	type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
 17440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17441  }
 17442  
 17443  // GoogleCloudDialogflowV2beta1IntentSuggestion: Represents an intent
 17444  // suggestion.
 17445  type GoogleCloudDialogflowV2beta1IntentSuggestion struct {
 17446  	// Description: Human readable description for better understanding an intent
 17447  	// like its scope, content, result etc. Maximum character limit: 140
 17448  	// characters.
 17449  	Description string `json:"description,omitempty"`
 17450  	// DisplayName: The display name of the intent.
 17451  	DisplayName string `json:"displayName,omitempty"`
 17452  	// IntentV2: The unique identifier of this intent. Format:
 17453  	// `projects//locations//agent/intents/`.
 17454  	IntentV2 string `json:"intentV2,omitempty"`
 17455  	// ForceSendFields is a list of field names (e.g. "Description") to
 17456  	// unconditionally include in API requests. By default, fields with empty or
 17457  	// default values are omitted from API requests. See
 17458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17459  	// details.
 17460  	ForceSendFields []string `json:"-"`
 17461  	// NullFields is a list of field names (e.g. "Description") to include in API
 17462  	// requests with the JSON null value. By default, fields with empty values are
 17463  	// omitted from API requests. See
 17464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17465  	NullFields []string `json:"-"`
 17466  }
 17467  
 17468  func (s *GoogleCloudDialogflowV2beta1IntentSuggestion) MarshalJSON() ([]byte, error) {
 17469  	type NoMethod GoogleCloudDialogflowV2beta1IntentSuggestion
 17470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17471  }
 17472  
 17473  // GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an example that
 17474  // the agent is trained on.
 17475  type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
 17476  	// Name: Output only. The unique identifier of this training phrase.
 17477  	Name string `json:"name,omitempty"`
 17478  	// Parts: Required. The ordered list of training phrase parts. The parts are
 17479  	// concatenated in order to form the training phrase. Note: The API does not
 17480  	// automatically annotate training phrases like the Dialogflow Console does.
 17481  	// Note: Do not forget to include whitespace at part boundaries, so the
 17482  	// training phrase is well formatted when the parts are concatenated. If the
 17483  	// training phrase does not need to be annotated with parameters, you just need
 17484  	// a single part with only the Part.text field set. If you want to annotate the
 17485  	// training phrase, you must create multiple parts, where the fields of each
 17486  	// part are populated in one of two ways: - `Part.text` is set to a part of the
 17487  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
 17488  	// that you want to annotate, and the `entity_type`, `alias`, and
 17489  	// `user_defined` fields are all set.
 17490  	Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
 17491  	// TimesAddedCount: Optional. Indicates how many times this example was added
 17492  	// to the intent. Each time a developer adds an existing sample by editing an
 17493  	// intent or training, this counter is increased.
 17494  	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
 17495  	// Type: Required. The type of the training phrase.
 17496  	//
 17497  	// Possible values:
 17498  	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be used.
 17499  	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names, but
 17500  	// example parts can be annotated with entity types.
 17501  	//   "TEMPLATE" - Templates are not annotated with entity types, but they can
 17502  	// contain @-prefixed entity type names as substrings. Note: Template mode has
 17503  	// been deprecated. Example mode is the only supported way to create new
 17504  	// training phrases. If you have existing training phrases in template mode,
 17505  	// they will be removed during training and it can cause a drop in agent
 17506  	// performance.
 17507  	Type string `json:"type,omitempty"`
 17508  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 17509  	// include in API requests. By default, fields with empty or default values are
 17510  	// omitted from API requests. See
 17511  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17512  	// details.
 17513  	ForceSendFields []string `json:"-"`
 17514  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 17515  	// with the JSON null value. By default, fields with empty values are omitted
 17516  	// from API requests. See
 17517  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17518  	NullFields []string `json:"-"`
 17519  }
 17520  
 17521  func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
 17522  	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
 17523  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17524  }
 17525  
 17526  // GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a part of a
 17527  // training phrase.
 17528  type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
 17529  	// Alias: Optional. The parameter name for the value extracted from the
 17530  	// annotated part of the example. This field is required for annotated parts of
 17531  	// the training phrase.
 17532  	Alias string `json:"alias,omitempty"`
 17533  	// EntityType: Optional. The entity type name prefixed with `@`. This field is
 17534  	// required for annotated parts of the training phrase.
 17535  	EntityType string `json:"entityType,omitempty"`
 17536  	// Text: Required. The text for this part.
 17537  	Text string `json:"text,omitempty"`
 17538  	// UserDefined: Optional. Indicates whether the text was manually annotated.
 17539  	// This field is set to true when the Dialogflow Console is used to manually
 17540  	// annotate the part. When creating an annotated part with the API, you must
 17541  	// set this to true.
 17542  	UserDefined bool `json:"userDefined,omitempty"`
 17543  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
 17544  	// include in API requests. By default, fields with empty or default values are
 17545  	// omitted from API requests. See
 17546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17547  	// details.
 17548  	ForceSendFields []string `json:"-"`
 17549  	// NullFields is a list of field names (e.g. "Alias") to include in API
 17550  	// requests with the JSON null value. By default, fields with empty values are
 17551  	// omitted from API requests. See
 17552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17553  	NullFields []string `json:"-"`
 17554  }
 17555  
 17556  func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
 17557  	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
 17558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17559  }
 17560  
 17561  // GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result of
 17562  // querying a Knowledge base.
 17563  type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
 17564  	// Answers: A list of answers from Knowledge Connector.
 17565  	Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
 17566  	// ForceSendFields is a list of field names (e.g. "Answers") to unconditionally
 17567  	// include in API requests. By default, fields with empty or default values are
 17568  	// omitted from API requests. See
 17569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17570  	// details.
 17571  	ForceSendFields []string `json:"-"`
 17572  	// NullFields is a list of field names (e.g. "Answers") to include in API
 17573  	// requests with the JSON null value. By default, fields with empty values are
 17574  	// omitted from API requests. See
 17575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17576  	NullFields []string `json:"-"`
 17577  }
 17578  
 17579  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
 17580  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
 17581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17582  }
 17583  
 17584  // GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from Knowledge
 17585  // Connector.
 17586  type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
 17587  	// Answer: The piece of text from the `source` knowledge base document that
 17588  	// answers this conversational query.
 17589  	Answer string `json:"answer,omitempty"`
 17590  	// FaqQuestion: The corresponding FAQ question if the answer was extracted from
 17591  	// a FAQ Document, empty otherwise.
 17592  	FaqQuestion string `json:"faqQuestion,omitempty"`
 17593  	// MatchConfidence: The system's confidence score that this Knowledge answer is
 17594  	// a good match for this conversational query. The range is from 0.0
 17595  	// (completely uncertain) to 1.0 (completely certain). Note: The confidence
 17596  	// score is likely to vary somewhat (possibly even for identical requests), as
 17597  	// the underlying model is under constant improvement. It may be deprecated in
 17598  	// the future. We recommend using `match_confidence_level` which should be
 17599  	// generally more stable.
 17600  	MatchConfidence float64 `json:"matchConfidence,omitempty"`
 17601  	// MatchConfidenceLevel: The system's confidence level that this knowledge
 17602  	// answer is a good match for this conversational query. NOTE: The confidence
 17603  	// level for a given `` pair may change without notice, as it depends on models
 17604  	// that are constantly being improved. However, it will change less frequently
 17605  	// than the confidence score below, and should be preferred for referencing the
 17606  	// quality of an answer.
 17607  	//
 17608  	// Possible values:
 17609  	//   "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified.
 17610  	//   "LOW" - Indicates that the confidence is low.
 17611  	//   "MEDIUM" - Indicates our confidence is medium.
 17612  	//   "HIGH" - Indicates our confidence is high.
 17613  	MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
 17614  	// Source: Indicates which Knowledge Document this answer was extracted from.
 17615  	// Format: `projects//knowledgeBases//documents/`.
 17616  	Source string `json:"source,omitempty"`
 17617  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 17618  	// include in API requests. By default, fields with empty or default values are
 17619  	// omitted from API requests. See
 17620  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17621  	// details.
 17622  	ForceSendFields []string `json:"-"`
 17623  	// NullFields is a list of field names (e.g. "Answer") to include in API
 17624  	// requests with the JSON null value. By default, fields with empty values are
 17625  	// omitted from API requests. See
 17626  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17627  	NullFields []string `json:"-"`
 17628  }
 17629  
 17630  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
 17631  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
 17632  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17633  }
 17634  
 17635  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
 17636  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
 17637  	var s1 struct {
 17638  		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
 17639  		*NoMethod
 17640  	}
 17641  	s1.NoMethod = (*NoMethod)(s)
 17642  	if err := json.Unmarshal(data, &s1); err != nil {
 17643  		return err
 17644  	}
 17645  	s.MatchConfidence = float64(s1.MatchConfidence)
 17646  	return nil
 17647  }
 17648  
 17649  // GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in
 17650  // google::longrunning::Operation for Knowledge operations.
 17651  type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
 17652  	// ExportOperationMetadata: Metadata for the Export Data Operation such as the
 17653  	// destination of export.
 17654  	ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
 17655  	// KnowledgeBase: The name of the knowledge base interacted with during the
 17656  	// operation.
 17657  	KnowledgeBase string `json:"knowledgeBase,omitempty"`
 17658  	// State: Required. Output only. The current state of this operation.
 17659  	//
 17660  	// Possible values:
 17661  	//   "STATE_UNSPECIFIED" - State unspecified.
 17662  	//   "PENDING" - The operation has been created.
 17663  	//   "RUNNING" - The operation is currently running.
 17664  	//   "DONE" - The operation is done, either cancelled or completed.
 17665  	State string `json:"state,omitempty"`
 17666  	// ForceSendFields is a list of field names (e.g. "ExportOperationMetadata") to
 17667  	// unconditionally include in API requests. By default, fields with empty or
 17668  	// default values are omitted from API requests. See
 17669  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17670  	// details.
 17671  	ForceSendFields []string `json:"-"`
 17672  	// NullFields is a list of field names (e.g. "ExportOperationMetadata") to
 17673  	// include in API requests with the JSON null value. By default, fields with
 17674  	// empty values are omitted from API requests. See
 17675  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17676  	NullFields []string `json:"-"`
 17677  }
 17678  
 17679  func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 17680  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
 17681  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17682  }
 17683  
 17684  // GoogleCloudDialogflowV2beta1Message: Represents a message posted into a
 17685  // conversation.
 17686  type GoogleCloudDialogflowV2beta1Message struct {
 17687  	// Content: Required. The message content.
 17688  	Content string `json:"content,omitempty"`
 17689  	// CreateTime: Output only. The time when the message was created in Contact
 17690  	// Center AI.
 17691  	CreateTime string `json:"createTime,omitempty"`
 17692  	// LanguageCode: Optional. The message language. This should be a BCP-47
 17693  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
 17694  	// "en-US".
 17695  	LanguageCode string `json:"languageCode,omitempty"`
 17696  	// MessageAnnotation: Output only. The annotation for the message.
 17697  	MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
 17698  	// Name: Optional. The unique identifier of the message. Format:
 17699  	// `projects//locations//conversations//messages/`.
 17700  	Name string `json:"name,omitempty"`
 17701  	// Participant: Output only. The participant that sends this message.
 17702  	Participant string `json:"participant,omitempty"`
 17703  	// ParticipantRole: Output only. The role of the participant.
 17704  	//
 17705  	// Possible values:
 17706  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 17707  	//   "HUMAN_AGENT" - Participant is a human agent.
 17708  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 17709  	// Dialogflow agent.
 17710  	//   "END_USER" - Participant is an end user that has called or chatted with
 17711  	// Dialogflow services.
 17712  	ParticipantRole string `json:"participantRole,omitempty"`
 17713  	// SendTime: Optional. The time when the message was sent.
 17714  	SendTime string `json:"sendTime,omitempty"`
 17715  	// SentimentAnalysis: Output only. The sentiment analysis result for the
 17716  	// message.
 17717  	SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
 17718  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 17719  	// include in API requests. By default, fields with empty or default values are
 17720  	// omitted from API requests. See
 17721  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17722  	// details.
 17723  	ForceSendFields []string `json:"-"`
 17724  	// NullFields is a list of field names (e.g. "Content") to include in API
 17725  	// requests with the JSON null value. By default, fields with empty values are
 17726  	// omitted from API requests. See
 17727  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17728  	NullFields []string `json:"-"`
 17729  }
 17730  
 17731  func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
 17732  	type NoMethod GoogleCloudDialogflowV2beta1Message
 17733  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17734  }
 17735  
 17736  // GoogleCloudDialogflowV2beta1MessageAnnotation: Represents the result of
 17737  // annotation for the message.
 17738  type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
 17739  	// ContainEntities: Required. Indicates whether the text message contains
 17740  	// entities.
 17741  	ContainEntities bool `json:"containEntities,omitempty"`
 17742  	// Parts: Optional. The collection of annotated message parts ordered by their
 17743  	// position in the message. You can recover the annotated message by
 17744  	// concatenating [AnnotatedMessagePart.text].
 17745  	Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
 17746  	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
 17747  	// unconditionally include in API requests. By default, fields with empty or
 17748  	// default values are omitted from API requests. See
 17749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17750  	// details.
 17751  	ForceSendFields []string `json:"-"`
 17752  	// NullFields is a list of field names (e.g. "ContainEntities") to include in
 17753  	// API requests with the JSON null value. By default, fields with empty values
 17754  	// are omitted from API requests. See
 17755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17756  	NullFields []string `json:"-"`
 17757  }
 17758  
 17759  func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
 17760  	type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
 17761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17762  }
 17763  
 17764  // GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents the
 17765  // contents of the original request that was passed to the
 17766  // `[Streaming]DetectIntent` call.
 17767  type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
 17768  	// Payload: Optional. This field is set to the value of the
 17769  	// `QueryParameters.payload` field passed in the request. Some integrations
 17770  	// that query a Dialogflow agent may provide additional information in the
 17771  	// payload. In particular, for the Dialogflow Phone Gateway integration, this
 17772  	// field has the form: { "telephony": { "caller_id": "+18558363987" } } Note:
 17773  	// The caller ID field (`caller_id`) will be redacted for Trial Edition agents
 17774  	// and populated with the caller ID in E.164 format
 17775  	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
 17776  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 17777  	// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It
 17778  	// is set by Dialogflow-owned servers.
 17779  	Source string `json:"source,omitempty"`
 17780  	// Version: Optional. The version of the protocol used for this request. This
 17781  	// field is AoG-specific.
 17782  	Version string `json:"version,omitempty"`
 17783  	// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally
 17784  	// include in API requests. By default, fields with empty or default values are
 17785  	// omitted from API requests. See
 17786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17787  	// details.
 17788  	ForceSendFields []string `json:"-"`
 17789  	// NullFields is a list of field names (e.g. "Payload") to include in API
 17790  	// requests with the JSON null value. By default, fields with empty values are
 17791  	// omitted from API requests. See
 17792  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17793  	NullFields []string `json:"-"`
 17794  }
 17795  
 17796  func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
 17797  	type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
 17798  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17799  }
 17800  
 17801  // GoogleCloudDialogflowV2beta1QueryResult: Represents the result of
 17802  // conversational query or event processing.
 17803  type GoogleCloudDialogflowV2beta1QueryResult struct {
 17804  	// Action: The action name from the matched intent.
 17805  	Action string `json:"action,omitempty"`
 17806  	// AllRequiredParamsPresent: This field is set to: - `false` if the matched
 17807  	// intent has required parameters and not all of the required parameter values
 17808  	// have been collected. - `true` if all required parameter values have been
 17809  	// collected, or if the matched intent doesn't contain any required parameters.
 17810  	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
 17811  	// CancelsSlotFilling: Indicates whether the conversational query triggers a
 17812  	// cancellation for slot filling. For more information, see the cancel slot
 17813  	// filling documentation
 17814  	// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
 17815  	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
 17816  	// DiagnosticInfo: Free-form diagnostic information for the associated detect
 17817  	// intent request. The fields of this data can change without notice, so you
 17818  	// should not write code that depends on its structure. The data may contain: -
 17819  	// webhook call latency - webhook errors
 17820  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
 17821  	// FulfillmentMessages: The collection of rich messages to present to the user.
 17822  	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
 17823  	// FulfillmentText: The text to be pronounced to the user or shown on the
 17824  	// screen. Note: This is a legacy field, `fulfillment_messages` should be
 17825  	// preferred.
 17826  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 17827  	// Intent: The intent that matched the conversational query. Some, not all
 17828  	// fields are filled in this message, including but not limited to: `name`,
 17829  	// `display_name`, `end_interaction` and `is_fallback`.
 17830  	Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
 17831  	// IntentDetectionConfidence: The intent detection confidence. Values range
 17832  	// from 0.0 (completely uncertain) to 1.0 (completely certain). This value is
 17833  	// for informational purpose only and is only used to help match the best
 17834  	// intent within the classification threshold. This value may change for the
 17835  	// same end-user expression at any time due to a model retraining or change in
 17836  	// implementation. If there are `multiple knowledge_answers` messages, this
 17837  	// value is set to the greatest `knowledgeAnswers.match_confidence` value in
 17838  	// the list.
 17839  	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
 17840  	// KnowledgeAnswers: The result from Knowledge Connector (if any), ordered by
 17841  	// decreasing `KnowledgeAnswers.match_confidence`.
 17842  	KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
 17843  	// LanguageCode: The language that was triggered during intent detection. See
 17844  	// Language Support
 17845  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 17846  	// the currently supported language codes.
 17847  	LanguageCode string `json:"languageCode,omitempty"`
 17848  	// OutputContexts: The collection of output contexts. If applicable,
 17849  	// `output_contexts.parameters` contains entries with name `.original`
 17850  	// containing the original parameter values before the query.
 17851  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 17852  	// Parameters: The collection of extracted parameters. Depending on your
 17853  	// protocol or client library language, this is a map, associative array,
 17854  	// symbol table, dictionary, or JSON object composed of a collection of
 17855  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
 17856  	// name * MapValue type: If parameter's entity type is a composite entity then
 17857  	// use map, otherwise, depending on the parameter value type, it could be one
 17858  	// of string, number, boolean, null, list or map. * MapValue value: If
 17859  	// parameter's entity type is a composite entity then use map from composite
 17860  	// entity property names to property values, otherwise, use parameter value.
 17861  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 17862  	// QueryText: The original conversational query text: - If natural language
 17863  	// text was provided as input, `query_text` contains a copy of the input. - If
 17864  	// natural language speech audio was provided as input, `query_text` contains
 17865  	// the speech recognition result. If speech recognizer produced multiple
 17866  	// alternatives, a particular one is picked. - If automatic spell correction is
 17867  	// enabled, `query_text` will contain the corrected user input.
 17868  	QueryText string `json:"queryText,omitempty"`
 17869  	// SentimentAnalysisResult: The sentiment analysis result, which depends on the
 17870  	// `sentiment_analysis_request_config` specified in the request.
 17871  	SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
 17872  	// SpeechRecognitionConfidence: The Speech recognition confidence between 0.0
 17873  	// and 1.0. A higher number indicates an estimated greater likelihood that the
 17874  	// recognized words are correct. The default of 0.0 is a sentinel value
 17875  	// indicating that confidence was not set. This field is not guaranteed to be
 17876  	// accurate or set. In particular this field isn't set for
 17877  	// StreamingDetectIntent since the streaming endpoint has separate confidence
 17878  	// estimates per portion of the audio in StreamingRecognitionResult.
 17879  	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
 17880  	// WebhookPayload: If the query was fulfilled by a webhook call, this field is
 17881  	// set to the value of the `payload` field returned in the webhook response.
 17882  	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
 17883  	// WebhookSource: If the query was fulfilled by a webhook call, this field is
 17884  	// set to the value of the `source` field returned in the webhook response.
 17885  	WebhookSource string `json:"webhookSource,omitempty"`
 17886  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 17887  	// include in API requests. By default, fields with empty or default values are
 17888  	// omitted from API requests. See
 17889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17890  	// details.
 17891  	ForceSendFields []string `json:"-"`
 17892  	// NullFields is a list of field names (e.g. "Action") to include in API
 17893  	// requests with the JSON null value. By default, fields with empty values are
 17894  	// omitted from API requests. See
 17895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17896  	NullFields []string `json:"-"`
 17897  }
 17898  
 17899  func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
 17900  	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
 17901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17902  }
 17903  
 17904  func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
 17905  	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
 17906  	var s1 struct {
 17907  		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
 17908  		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
 17909  		*NoMethod
 17910  	}
 17911  	s1.NoMethod = (*NoMethod)(s)
 17912  	if err := json.Unmarshal(data, &s1); err != nil {
 17913  		return err
 17914  	}
 17915  	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
 17916  	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
 17917  	return nil
 17918  }
 17919  
 17920  // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as
 17921  // positive/negative feeling or association, for a unit of analysis, such as
 17922  // the query text. See:
 17923  // https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
 17924  // for how to interpret the result.
 17925  type GoogleCloudDialogflowV2beta1Sentiment struct {
 17926  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 17927  	// the absolute magnitude of sentiment, regardless of score (positive or
 17928  	// negative).
 17929  	Magnitude float64 `json:"magnitude,omitempty"`
 17930  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 17931  	// sentiment).
 17932  	Score float64 `json:"score,omitempty"`
 17933  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 17934  	// unconditionally include in API requests. By default, fields with empty or
 17935  	// default values are omitted from API requests. See
 17936  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17937  	// details.
 17938  	ForceSendFields []string `json:"-"`
 17939  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 17940  	// requests with the JSON null value. By default, fields with empty values are
 17941  	// omitted from API requests. See
 17942  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17943  	NullFields []string `json:"-"`
 17944  }
 17945  
 17946  func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
 17947  	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
 17948  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17949  }
 17950  
 17951  func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
 17952  	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
 17953  	var s1 struct {
 17954  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 17955  		Score     gensupport.JSONFloat64 `json:"score"`
 17956  		*NoMethod
 17957  	}
 17958  	s1.NoMethod = (*NoMethod)(s)
 17959  	if err := json.Unmarshal(data, &s1); err != nil {
 17960  		return err
 17961  	}
 17962  	s.Magnitude = float64(s1.Magnitude)
 17963  	s.Score = float64(s1.Score)
 17964  	return nil
 17965  }
 17966  
 17967  // GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of sentiment
 17968  // analysis. Sentiment analysis inspects user input and identifies the
 17969  // prevailing subjective opinion, especially to determine a user's attitude as
 17970  // positive, negative, or neutral. For Participants.DetectIntent, it needs to
 17971  // be configured in DetectIntentRequest.query_params. For
 17972  // Participants.StreamingDetectIntent, it needs to be configured in
 17973  // StreamingDetectIntentRequest.query_params. And for
 17974  // Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it
 17975  // needs to be configured in ConversationProfile.human_agent_assistant_config
 17976  type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
 17977  	// QueryTextSentiment: The sentiment analysis result for `query_text`.
 17978  	QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
 17979  	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to
 17980  	// unconditionally include in API requests. By default, fields with empty or
 17981  	// default values are omitted from API requests. See
 17982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17983  	// details.
 17984  	ForceSendFields []string `json:"-"`
 17985  	// NullFields is a list of field names (e.g. "QueryTextSentiment") to include
 17986  	// in API requests with the JSON null value. By default, fields with empty
 17987  	// values are omitted from API requests. See
 17988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17989  	NullFields []string `json:"-"`
 17990  }
 17991  
 17992  func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 17993  	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
 17994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17995  }
 17996  
 17997  // GoogleCloudDialogflowV2beta1SessionEntityType: A session represents a
 17998  // conversation between a Dialogflow agent and an end-user. You can create
 17999  // special entities, called session entities, during a session. Session
 18000  // entities can extend or replace custom entity types and only exist during the
 18001  // session that they were created for. All session data, including session
 18002  // entities, is stored by Dialogflow for 20 minutes. For more information, see
 18003  // the session entity guide
 18004  // (https://cloud.google.com/dialogflow/docs/entities-session).
 18005  type GoogleCloudDialogflowV2beta1SessionEntityType struct {
 18006  	// Entities: Required. The collection of entities associated with this session
 18007  	// entity type.
 18008  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 18009  	// EntityOverrideMode: Required. Indicates whether the additional data should
 18010  	// override or supplement the custom entity type definition.
 18011  	//
 18012  	// Possible values:
 18013  	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be
 18014  	// never used.
 18015  	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities
 18016  	// overrides the collection of entities in the corresponding custom entity
 18017  	// type.
 18018  	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities
 18019  	// extends the collection of entities in the corresponding custom entity type.
 18020  	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
 18021  	// `GetSessionEntityType`, `CreateSessionEntityType` and
 18022  	// `UpdateSessionEntityType` only return the additional entities added in this
 18023  	// session entity type. If you want to get the supplemented list, please call
 18024  	// EntityTypes.GetEntityType on the custom entity type and merge.
 18025  	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
 18026  	// Name: Required. The unique identifier of this session entity type. Supported
 18027  	// formats: - `projects//agent/sessions//entityTypes/` -
 18028  	// `projects//locations//agent/sessions//entityTypes/` -
 18029  	// `projects//agent/environments//users//sessions//entityTypes/` -
 18030  	// `projects//locations//agent/environments/ /users//sessions//entityTypes/` If
 18031  	// `Location ID` is not specified we assume default 'us' location. If
 18032  	// `Environment ID` is not specified, we assume default 'draft' environment. If
 18033  	// `User ID` is not specified, we assume default '-' user. `` must be the
 18034  	// display name of an existing entity type in the same agent that will be
 18035  	// overridden or supplemented.
 18036  	Name string `json:"name,omitempty"`
 18037  	// ForceSendFields is a list of field names (e.g. "Entities") to
 18038  	// unconditionally include in API requests. By default, fields with empty or
 18039  	// default values are omitted from API requests. See
 18040  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18041  	// details.
 18042  	ForceSendFields []string `json:"-"`
 18043  	// NullFields is a list of field names (e.g. "Entities") to include in API
 18044  	// requests with the JSON null value. By default, fields with empty values are
 18045  	// omitted from API requests. See
 18046  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18047  	NullFields []string `json:"-"`
 18048  }
 18049  
 18050  func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
 18051  	type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
 18052  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18053  }
 18054  
 18055  // GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata:
 18056  // Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
 18057  type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {
 18058  	// ConversationProfile: The resource name of the conversation profile. Format:
 18059  	// `projects//locations//conversationProfiles/`
 18060  	ConversationProfile string `json:"conversationProfile,omitempty"`
 18061  	// CreateTime: Timestamp whe the request was created. The time is measured on
 18062  	// server side.
 18063  	CreateTime string `json:"createTime,omitempty"`
 18064  	// ParticipantRole: Required. The participant role to add or update the
 18065  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 18066  	//
 18067  	// Possible values:
 18068  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 18069  	//   "HUMAN_AGENT" - Participant is a human agent.
 18070  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 18071  	// Dialogflow agent.
 18072  	//   "END_USER" - Participant is an end user that has called or chatted with
 18073  	// Dialogflow services.
 18074  	ParticipantRole string `json:"participantRole,omitempty"`
 18075  	// SuggestionFeatureType: Required. The type of the suggestion feature to add
 18076  	// or update.
 18077  	//
 18078  	// Possible values:
 18079  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 18080  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 18081  	//   "FAQ" - Run FAQ model.
 18082  	//   "SMART_REPLY" - Run smart reply model for chat.
 18083  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 18084  	// return automated agent response as suggestion.
 18085  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 18086  	// chat.
 18087  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 18088  	// text generated query.
 18089  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 18090  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 18091  	// unconditionally include in API requests. By default, fields with empty or
 18092  	// default values are omitted from API requests. See
 18093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18094  	// details.
 18095  	ForceSendFields []string `json:"-"`
 18096  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 18097  	// in API requests with the JSON null value. By default, fields with empty
 18098  	// values are omitted from API requests. See
 18099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18100  	NullFields []string `json:"-"`
 18101  }
 18102  
 18103  func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 18104  	type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
 18105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18106  }
 18107  
 18108  // GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart reply
 18109  // answer.
 18110  type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
 18111  	// AnswerRecord: The name of answer record, in the format of
 18112  	// "projects//locations//answerRecords/"
 18113  	AnswerRecord string `json:"answerRecord,omitempty"`
 18114  	// Confidence: Smart reply confidence. The system's confidence score that this
 18115  	// reply is a good match for this conversation, as a value from 0.0 (completely
 18116  	// uncertain) to 1.0 (completely certain).
 18117  	Confidence float64 `json:"confidence,omitempty"`
 18118  	// Reply: The content of the reply.
 18119  	Reply string `json:"reply,omitempty"`
 18120  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 18121  	// unconditionally include in API requests. By default, fields with empty or
 18122  	// default values are omitted from API requests. See
 18123  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18124  	// details.
 18125  	ForceSendFields []string `json:"-"`
 18126  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 18127  	// requests with the JSON null value. By default, fields with empty values are
 18128  	// omitted from API requests. See
 18129  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18130  	NullFields []string `json:"-"`
 18131  }
 18132  
 18133  func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
 18134  	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
 18135  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18136  }
 18137  
 18138  func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
 18139  	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
 18140  	var s1 struct {
 18141  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 18142  		*NoMethod
 18143  	}
 18144  	s1.NoMethod = (*NoMethod)(s)
 18145  	if err := json.Unmarshal(data, &s1); err != nil {
 18146  		return err
 18147  	}
 18148  	s.Confidence = float64(s1.Confidence)
 18149  	return nil
 18150  }
 18151  
 18152  // GoogleCloudDialogflowV2beta1SuggestArticlesResponse: The response message
 18153  // for Participants.SuggestArticles.
 18154  type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
 18155  	// ArticleAnswers: Output only. Articles ordered by score in descending order.
 18156  	ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
 18157  	// ContextSize: Number of messages prior to and including latest_message to
 18158  	// compile the suggestion. It may be smaller than the
 18159  	// SuggestArticlesResponse.context_size field in the request if there aren't
 18160  	// that many messages in the conversation.
 18161  	ContextSize int64 `json:"contextSize,omitempty"`
 18162  	// LatestMessage: The name of the latest conversation message used to compile
 18163  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 18164  	LatestMessage string `json:"latestMessage,omitempty"`
 18165  	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
 18166  	// unconditionally include in API requests. By default, fields with empty or
 18167  	// default values are omitted from API requests. See
 18168  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18169  	// details.
 18170  	ForceSendFields []string `json:"-"`
 18171  	// NullFields is a list of field names (e.g. "ArticleAnswers") to include in
 18172  	// API requests with the JSON null value. By default, fields with empty values
 18173  	// are omitted from API requests. See
 18174  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18175  	NullFields []string `json:"-"`
 18176  }
 18177  
 18178  func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
 18179  	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
 18180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18181  }
 18182  
 18183  // GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse: The response
 18184  // message for Participants.SuggestDialogflowAssists.
 18185  type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {
 18186  	// ContextSize: Number of messages prior to and including latest_message to
 18187  	// compile the suggestion. It may be smaller than the
 18188  	// SuggestDialogflowAssistsRequest.context_size field in the request if there
 18189  	// aren't that many messages in the conversation.
 18190  	ContextSize int64 `json:"contextSize,omitempty"`
 18191  	// DialogflowAssistAnswers: Output only. Multiple reply options provided by
 18192  	// Dialogflow assist service. The order is based on the rank of the model
 18193  	// prediction.
 18194  	DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`
 18195  	// LatestMessage: The name of the latest conversation message used to suggest
 18196  	// answer. Format: `projects//locations//conversations//messages/`.
 18197  	LatestMessage string `json:"latestMessage,omitempty"`
 18198  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 18199  	// unconditionally include in API requests. By default, fields with empty or
 18200  	// default values are omitted from API requests. See
 18201  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18202  	// details.
 18203  	ForceSendFields []string `json:"-"`
 18204  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 18205  	// requests with the JSON null value. By default, fields with empty values are
 18206  	// omitted from API requests. See
 18207  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18208  	NullFields []string `json:"-"`
 18209  }
 18210  
 18211  func (s *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse) MarshalJSON() ([]byte, error) {
 18212  	type NoMethod GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
 18213  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18214  }
 18215  
 18216  // GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: The request message
 18217  // for Participants.SuggestFaqAnswers.
 18218  type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
 18219  	// ContextSize: Number of messages prior to and including latest_message to
 18220  	// compile the suggestion. It may be smaller than the
 18221  	// SuggestFaqAnswersRequest.context_size field in the request if there aren't
 18222  	// that many messages in the conversation.
 18223  	ContextSize int64 `json:"contextSize,omitempty"`
 18224  	// FaqAnswers: Output only. Answers extracted from FAQ documents.
 18225  	FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
 18226  	// LatestMessage: The name of the latest conversation message used to compile
 18227  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 18228  	LatestMessage string `json:"latestMessage,omitempty"`
 18229  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 18230  	// unconditionally include in API requests. By default, fields with empty or
 18231  	// default values are omitted from API requests. See
 18232  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18233  	// details.
 18234  	ForceSendFields []string `json:"-"`
 18235  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 18236  	// requests with the JSON null value. By default, fields with empty values are
 18237  	// omitted from API requests. See
 18238  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18239  	NullFields []string `json:"-"`
 18240  }
 18241  
 18242  func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
 18243  	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
 18244  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18245  }
 18246  
 18247  // GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse: The response
 18248  // message for Participants.SuggestSmartReplies.
 18249  type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
 18250  	// ContextSize: Number of messages prior to and including latest_message to
 18251  	// compile the suggestion. It may be smaller than the
 18252  	// SuggestSmartRepliesRequest.context_size field in the request if there aren't
 18253  	// that many messages in the conversation.
 18254  	ContextSize int64 `json:"contextSize,omitempty"`
 18255  	// LatestMessage: The name of the latest conversation message used to compile
 18256  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 18257  	LatestMessage string `json:"latestMessage,omitempty"`
 18258  	// SmartReplyAnswers: Output only. Multiple reply options provided by smart
 18259  	// reply service. The order is based on the rank of the model prediction. The
 18260  	// maximum number of the returned replies is set in SmartReplyConfig.
 18261  	SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
 18262  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 18263  	// unconditionally include in API requests. By default, fields with empty or
 18264  	// default values are omitted from API requests. See
 18265  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18266  	// details.
 18267  	ForceSendFields []string `json:"-"`
 18268  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 18269  	// requests with the JSON null value. By default, fields with empty values are
 18270  	// omitted from API requests. See
 18271  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18272  	NullFields []string `json:"-"`
 18273  }
 18274  
 18275  func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
 18276  	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
 18277  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18278  }
 18279  
 18280  // GoogleCloudDialogflowV2beta1SuggestionResult: One response of different type
 18281  // of suggestion response which is used in the response of
 18282  // Participants.AnalyzeContent and Participants.AnalyzeContent, as well as
 18283  // HumanAgentAssistantEvent.
 18284  type GoogleCloudDialogflowV2beta1SuggestionResult struct {
 18285  	// Error: Error status if the request failed.
 18286  	Error *GoogleRpcStatus `json:"error,omitempty"`
 18287  	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
 18288  	// ARTICLE_SUGGESTION.
 18289  	SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
 18290  	// SuggestDialogflowAssistsResponse: SuggestDialogflowAssistsResponse if
 18291  	// request is for DIALOGFLOW_ASSIST.
 18292  	SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`
 18293  	// SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if request
 18294  	// is for ENTITY_EXTRACTION.
 18295  	SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`
 18296  	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for
 18297  	// FAQ_ANSWER.
 18298  	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
 18299  	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for
 18300  	// SMART_REPLY.
 18301  	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
 18302  	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
 18303  	// include in API requests. By default, fields with empty or default values are
 18304  	// omitted from API requests. See
 18305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18306  	// details.
 18307  	ForceSendFields []string `json:"-"`
 18308  	// NullFields is a list of field names (e.g. "Error") to include in API
 18309  	// requests with the JSON null value. By default, fields with empty values are
 18310  	// omitted from API requests. See
 18311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18312  	NullFields []string `json:"-"`
 18313  }
 18314  
 18315  func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
 18316  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
 18317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18318  }
 18319  
 18320  // GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a
 18321  // webhook call.
 18322  type GoogleCloudDialogflowV2beta1WebhookRequest struct {
 18323  	// AlternativeQueryResults: Alternative query results from KnowledgeService.
 18324  	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
 18325  	// OriginalDetectIntentRequest: Optional. The contents of the original request
 18326  	// that was passed to `[Streaming]DetectIntent` call.
 18327  	OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
 18328  	// QueryResult: The result of the conversational query or event processing.
 18329  	// Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
 18330  	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
 18331  	// ResponseId: The unique identifier of the response. Contains the same value
 18332  	// as `[Streaming]DetectIntentResponse.response_id`.
 18333  	ResponseId string `json:"responseId,omitempty"`
 18334  	// Session: The unique identifier of detectIntent request session. Can be used
 18335  	// to identify end-user inside webhook implementation. Supported formats: -
 18336  	// `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 18337  	// `projects//agent/environments//users//sessions/`, -
 18338  	// `projects//locations//agent/environments//users//sessions/`,
 18339  	Session string `json:"session,omitempty"`
 18340  	// ForceSendFields is a list of field names (e.g. "AlternativeQueryResults") to
 18341  	// unconditionally include in API requests. By default, fields with empty or
 18342  	// default values are omitted from API requests. See
 18343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18344  	// details.
 18345  	ForceSendFields []string `json:"-"`
 18346  	// NullFields is a list of field names (e.g. "AlternativeQueryResults") to
 18347  	// include in API requests with the JSON null value. By default, fields with
 18348  	// empty values are omitted from API requests. See
 18349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18350  	NullFields []string `json:"-"`
 18351  }
 18352  
 18353  func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
 18354  	type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
 18355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18356  }
 18357  
 18358  // GoogleCloudDialogflowV2beta1WebhookResponse: The response message for a
 18359  // webhook call. This response is validated by the Dialogflow server. If
 18360  // validation fails, an error will be returned in the
 18361  // QueryResult.diagnostic_info field. Setting JSON fields to an empty value
 18362  // with the wrong type is a common error. To avoid this error: - Use "" for
 18363  // empty strings - Use `{}` or `null` for empty objects - Use `[]` or `null`
 18364  // for empty arrays For more information, see the Protocol Buffers Language
 18365  // Guide (https://developers.google.com/protocol-buffers/docs/proto3#json).
 18366  type GoogleCloudDialogflowV2beta1WebhookResponse struct {
 18367  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 18368  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 18369  	// this information to close interaction with an end user. Default is false.
 18370  	EndInteraction bool `json:"endInteraction,omitempty"`
 18371  	// FollowupEventInput: Optional. Invokes the supplied events. When this field
 18372  	// is set, Dialogflow ignores the `fulfillment_text`, `fulfillment_messages`,
 18373  	// and `payload` fields.
 18374  	FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
 18375  	// FulfillmentMessages: Optional. The rich response messages intended for the
 18376  	// end-user. When provided, Dialogflow uses this field to populate
 18377  	// QueryResult.fulfillment_messages sent to the integration or API caller.
 18378  	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
 18379  	// FulfillmentText: Optional. The text response message intended for the
 18380  	// end-user. It is recommended to use `fulfillment_messages.text.text[0]`
 18381  	// instead. When provided, Dialogflow uses this field to populate
 18382  	// QueryResult.fulfillment_text sent to the integration or API caller.
 18383  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 18384  	// LiveAgentHandoff: Indicates that a live agent should be brought in to handle
 18385  	// the interaction with the user. In most cases, when you set this flag to
 18386  	// true, you would also want to set end_interaction to true as well. Default is
 18387  	// false.
 18388  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 18389  	// OutputContexts: Optional. The collection of output contexts that will
 18390  	// overwrite currently active contexts for the session and reset their
 18391  	// lifespans. When provided, Dialogflow uses this field to populate
 18392  	// QueryResult.output_contexts sent to the integration or API caller.
 18393  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 18394  	// Payload: Optional. This field can be used to pass custom data from your
 18395  	// webhook to the integration or API caller. Arbitrary JSON objects are
 18396  	// supported. When provided, Dialogflow uses this field to populate
 18397  	// QueryResult.webhook_payload sent to the integration or API caller. This
 18398  	// field is also used by the Google Assistant integration
 18399  	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
 18400  	// response messages. See the format definition at Google Assistant Dialogflow
 18401  	// webhook format
 18402  	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
 18403  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 18404  	// SessionEntityTypes: Optional. Additional session entity types to replace or
 18405  	// extend developer entity types with. The entity synonyms apply to all
 18406  	// languages and persist for the session. Setting this data from a webhook
 18407  	// overwrites the session entity types that have been set using `detectIntent`,
 18408  	// `streamingDetectIntent` or SessionEntityType management methods.
 18409  	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
 18410  	// Source: Optional. A custom field used to identify the webhook source.
 18411  	// Arbitrary strings are supported. When provided, Dialogflow uses this field
 18412  	// to populate QueryResult.webhook_source sent to the integration or API
 18413  	// caller.
 18414  	Source string `json:"source,omitempty"`
 18415  	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
 18416  	// unconditionally include in API requests. By default, fields with empty or
 18417  	// default values are omitted from API requests. See
 18418  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18419  	// details.
 18420  	ForceSendFields []string `json:"-"`
 18421  	// NullFields is a list of field names (e.g. "EndInteraction") to include in
 18422  	// API requests with the JSON null value. By default, fields with empty values
 18423  	// are omitted from API requests. See
 18424  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18425  	NullFields []string `json:"-"`
 18426  }
 18427  
 18428  func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
 18429  	type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
 18430  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18431  }
 18432  
 18433  // GoogleCloudDialogflowV3alpha1ConversationSignals: This message is used to
 18434  // hold all the Conversation Signals data, which will be converted to JSON and
 18435  // exported to BigQuery.
 18436  type GoogleCloudDialogflowV3alpha1ConversationSignals struct {
 18437  	// TurnSignals: Required. Turn signals for the current turn.
 18438  	TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`
 18439  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
 18440  	// unconditionally include in API requests. By default, fields with empty or
 18441  	// default values are omitted from API requests. See
 18442  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18443  	// details.
 18444  	ForceSendFields []string `json:"-"`
 18445  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
 18446  	// requests with the JSON null value. By default, fields with empty values are
 18447  	// omitted from API requests. See
 18448  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18449  	NullFields []string `json:"-"`
 18450  }
 18451  
 18452  func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) {
 18453  	type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals
 18454  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18455  }
 18456  
 18457  // GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata: Metadata for
 18458  // CreateDocument operation.
 18459  type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
 18460  	// GenericMetadata: The generic information of the operation.
 18461  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18462  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18463  	// unconditionally include in API requests. By default, fields with empty or
 18464  	// default values are omitted from API requests. See
 18465  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18466  	// details.
 18467  	ForceSendFields []string `json:"-"`
 18468  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18469  	// API requests with the JSON null value. By default, fields with empty values
 18470  	// are omitted from API requests. See
 18471  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18472  	NullFields []string `json:"-"`
 18473  }
 18474  
 18475  func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18476  	type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
 18477  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18478  }
 18479  
 18480  // GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata: Metadata for
 18481  // DeleteDocument operation.
 18482  type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
 18483  	// GenericMetadata: The generic information of the operation.
 18484  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18485  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18486  	// unconditionally include in API requests. By default, fields with empty or
 18487  	// default values are omitted from API requests. See
 18488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18489  	// details.
 18490  	ForceSendFields []string `json:"-"`
 18491  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18492  	// API requests with the JSON null value. By default, fields with empty values
 18493  	// are omitted from API requests. See
 18494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18495  	NullFields []string `json:"-"`
 18496  }
 18497  
 18498  func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18499  	type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
 18500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18501  }
 18502  
 18503  // GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata: Metadata in
 18504  // google::longrunning::Operation for Knowledge operations.
 18505  type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
 18506  	// State: Required. Output only. The current state of this operation.
 18507  	//
 18508  	// Possible values:
 18509  	//   "STATE_UNSPECIFIED" - State unspecified.
 18510  	//   "PENDING" - The operation has been created.
 18511  	//   "RUNNING" - The operation is currently running.
 18512  	//   "DONE" - The operation is done, either cancelled or completed.
 18513  	State string `json:"state,omitempty"`
 18514  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
 18515  	// include in API requests. By default, fields with empty or default values are
 18516  	// omitted from API requests. See
 18517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18518  	// details.
 18519  	ForceSendFields []string `json:"-"`
 18520  	// NullFields is a list of field names (e.g. "State") to include in API
 18521  	// requests with the JSON null value. By default, fields with empty values are
 18522  	// omitted from API requests. See
 18523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18524  	NullFields []string `json:"-"`
 18525  }
 18526  
 18527  func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 18528  	type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
 18529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18530  }
 18531  
 18532  // GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata: Metadata for
 18533  // ImportDocuments operation.
 18534  type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
 18535  	// GenericMetadata: The generic information of the operation.
 18536  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18537  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18538  	// unconditionally include in API requests. By default, fields with empty or
 18539  	// default values are omitted from API requests. See
 18540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18541  	// details.
 18542  	ForceSendFields []string `json:"-"`
 18543  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18544  	// API requests with the JSON null value. By default, fields with empty values
 18545  	// are omitted from API requests. See
 18546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18547  	NullFields []string `json:"-"`
 18548  }
 18549  
 18550  func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
 18551  	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
 18552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18553  }
 18554  
 18555  // GoogleCloudDialogflowV3alpha1ImportDocumentsResponse: Response message for
 18556  // Documents.ImportDocuments.
 18557  type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
 18558  	// Warnings: Includes details about skipped documents or any other warnings.
 18559  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 18560  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 18561  	// unconditionally include in API requests. By default, fields with empty or
 18562  	// default values are omitted from API requests. See
 18563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18564  	// details.
 18565  	ForceSendFields []string `json:"-"`
 18566  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 18567  	// requests with the JSON null value. By default, fields with empty values are
 18568  	// omitted from API requests. See
 18569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18570  	NullFields []string `json:"-"`
 18571  }
 18572  
 18573  func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 18574  	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
 18575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18576  }
 18577  
 18578  // GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata: Metadata for
 18579  // ReloadDocument operation.
 18580  type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
 18581  	// GenericMetadata: The generic information of the operation.
 18582  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18583  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18584  	// unconditionally include in API requests. By default, fields with empty or
 18585  	// default values are omitted from API requests. See
 18586  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18587  	// details.
 18588  	ForceSendFields []string `json:"-"`
 18589  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18590  	// API requests with the JSON null value. By default, fields with empty values
 18591  	// are omitted from API requests. See
 18592  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18593  	NullFields []string `json:"-"`
 18594  }
 18595  
 18596  func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18597  	type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
 18598  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18599  }
 18600  
 18601  // GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals that
 18602  // were extracted for a single turn of the conversation.
 18603  type GoogleCloudDialogflowV3alpha1TurnSignals struct {
 18604  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
 18605  	AgentEscalated bool `json:"agentEscalated,omitempty"`
 18606  	// DtmfUsed: Whether user was using DTMF input.
 18607  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
 18608  	// FailureReasons: Failure reasons of the turn.
 18609  	//
 18610  	// Possible values:
 18611  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
 18612  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
 18613  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
 18614  	FailureReasons []string `json:"failureReasons,omitempty"`
 18615  	// NoMatch: Whether NLU predicted NO_MATCH.
 18616  	NoMatch bool `json:"noMatch,omitempty"`
 18617  	// NoUserInput: Whether user provided no input.
 18618  	NoUserInput bool `json:"noUserInput,omitempty"`
 18619  	// ReachedEndPage: Whether turn resulted in End Session page.
 18620  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
 18621  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
 18622  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 18623  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
 18624  	// SentimentScore: Sentiment score of the user utterance if sentiment
 18625  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 18626  	SentimentScore float64 `json:"sentimentScore,omitempty"`
 18627  	// TriggeredAbandonmentEvent: Whether agent has triggered the event
 18628  	// corresponding to user abandoning the conversation.
 18629  	TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"`
 18630  	// UserEscalated: Whether user was specifically asking for a live agent.
 18631  	UserEscalated bool `json:"userEscalated,omitempty"`
 18632  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
 18633  	// this turn.
 18634  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
 18635  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
 18636  	// unconditionally include in API requests. By default, fields with empty or
 18637  	// default values are omitted from API requests. See
 18638  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18639  	// details.
 18640  	ForceSendFields []string `json:"-"`
 18641  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
 18642  	// API requests with the JSON null value. By default, fields with empty values
 18643  	// are omitted from API requests. See
 18644  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18645  	NullFields []string `json:"-"`
 18646  }
 18647  
 18648  func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) {
 18649  	type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
 18650  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18651  }
 18652  
 18653  func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte) error {
 18654  	type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
 18655  	var s1 struct {
 18656  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
 18657  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
 18658  		*NoMethod
 18659  	}
 18660  	s1.NoMethod = (*NoMethod)(s)
 18661  	if err := json.Unmarshal(data, &s1); err != nil {
 18662  		return err
 18663  	}
 18664  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
 18665  	s.SentimentScore = float64(s1.SentimentScore)
 18666  	return nil
 18667  }
 18668  
 18669  // GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata: Metadata for
 18670  // UpdateDocument operation.
 18671  type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
 18672  	// GenericMetadata: The generic information of the operation.
 18673  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18674  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18675  	// unconditionally include in API requests. By default, fields with empty or
 18676  	// default values are omitted from API requests. See
 18677  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18678  	// details.
 18679  	ForceSendFields []string `json:"-"`
 18680  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18681  	// API requests with the JSON null value. By default, fields with empty values
 18682  	// are omitted from API requests. See
 18683  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18684  	NullFields []string `json:"-"`
 18685  }
 18686  
 18687  func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18688  	type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
 18689  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18690  }
 18691  
 18692  // GoogleCloudLocationListLocationsResponse: The response message for
 18693  // Locations.ListLocations.
 18694  type GoogleCloudLocationListLocationsResponse struct {
 18695  	// Locations: A list of locations that matches the specified filter in the
 18696  	// request.
 18697  	Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
 18698  	// NextPageToken: The standard List next-page token.
 18699  	NextPageToken string `json:"nextPageToken,omitempty"`
 18700  
 18701  	// ServerResponse contains the HTTP response code and headers from the server.
 18702  	googleapi.ServerResponse `json:"-"`
 18703  	// ForceSendFields is a list of field names (e.g. "Locations") to
 18704  	// unconditionally include in API requests. By default, fields with empty or
 18705  	// default values are omitted from API requests. See
 18706  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18707  	// details.
 18708  	ForceSendFields []string `json:"-"`
 18709  	// NullFields is a list of field names (e.g. "Locations") to include in API
 18710  	// requests with the JSON null value. By default, fields with empty values are
 18711  	// omitted from API requests. See
 18712  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18713  	NullFields []string `json:"-"`
 18714  }
 18715  
 18716  func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
 18717  	type NoMethod GoogleCloudLocationListLocationsResponse
 18718  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18719  }
 18720  
 18721  // GoogleCloudLocationLocation: A resource that represents a Google Cloud
 18722  // location.
 18723  type GoogleCloudLocationLocation struct {
 18724  	// DisplayName: The friendly name for this location, typically a nearby city
 18725  	// name. For example, "Tokyo".
 18726  	DisplayName string `json:"displayName,omitempty"`
 18727  	// Labels: Cross-service attributes for the location. For example
 18728  	// {"cloud.googleapis.com/region": "us-east1"}
 18729  	Labels map[string]string `json:"labels,omitempty"`
 18730  	// LocationId: The canonical id for this location. For example: "us-east1".
 18731  	LocationId string `json:"locationId,omitempty"`
 18732  	// Metadata: Service-specific metadata. For example the available capacity at
 18733  	// the given location.
 18734  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 18735  	// Name: Resource name for the location, which may vary between
 18736  	// implementations. For example:
 18737  	// "projects/example-project/locations/us-east1"
 18738  	Name string `json:"name,omitempty"`
 18739  
 18740  	// ServerResponse contains the HTTP response code and headers from the server.
 18741  	googleapi.ServerResponse `json:"-"`
 18742  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 18743  	// unconditionally include in API requests. By default, fields with empty or
 18744  	// default values are omitted from API requests. See
 18745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18746  	// details.
 18747  	ForceSendFields []string `json:"-"`
 18748  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 18749  	// requests with the JSON null value. By default, fields with empty values are
 18750  	// omitted from API requests. See
 18751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18752  	NullFields []string `json:"-"`
 18753  }
 18754  
 18755  func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
 18756  	type NoMethod GoogleCloudLocationLocation
 18757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18758  }
 18759  
 18760  // GoogleLongrunningListOperationsResponse: The response message for
 18761  // Operations.ListOperations.
 18762  type GoogleLongrunningListOperationsResponse struct {
 18763  	// NextPageToken: The standard List next-page token.
 18764  	NextPageToken string `json:"nextPageToken,omitempty"`
 18765  	// Operations: A list of operations that matches the specified filter in the
 18766  	// request.
 18767  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 18768  
 18769  	// ServerResponse contains the HTTP response code and headers from the server.
 18770  	googleapi.ServerResponse `json:"-"`
 18771  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 18772  	// unconditionally include in API requests. By default, fields with empty or
 18773  	// default values are omitted from API requests. See
 18774  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18775  	// details.
 18776  	ForceSendFields []string `json:"-"`
 18777  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 18778  	// requests with the JSON null value. By default, fields with empty values are
 18779  	// omitted from API requests. See
 18780  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18781  	NullFields []string `json:"-"`
 18782  }
 18783  
 18784  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 18785  	type NoMethod GoogleLongrunningListOperationsResponse
 18786  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18787  }
 18788  
 18789  // GoogleLongrunningOperation: This resource represents a long-running
 18790  // operation that is the result of a network API call.
 18791  type GoogleLongrunningOperation struct {
 18792  	// Done: If the value is `false`, it means the operation is still in progress.
 18793  	// If `true`, the operation is completed, and either `error` or `response` is
 18794  	// available.
 18795  	Done bool `json:"done,omitempty"`
 18796  	// Error: The error result of the operation in case of failure or cancellation.
 18797  	Error *GoogleRpcStatus `json:"error,omitempty"`
 18798  	// Metadata: Service-specific metadata associated with the operation. It
 18799  	// typically contains progress information and common metadata such as create
 18800  	// time. Some services might not provide such metadata. Any method that returns
 18801  	// a long-running operation should document the metadata type, if any.
 18802  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 18803  	// Name: The server-assigned name, which is only unique within the same service
 18804  	// that originally returns it. If you use the default HTTP mapping, the `name`
 18805  	// should be a resource name ending with `operations/{unique_id}`.
 18806  	Name string `json:"name,omitempty"`
 18807  	// Response: The normal, successful response of the operation. If the original
 18808  	// method returns no data on success, such as `Delete`, the response is
 18809  	// `google.protobuf.Empty`. If the original method is standard
 18810  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 18811  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 18812  	// original method name. For example, if the original method name is
 18813  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 18814  	Response googleapi.RawMessage `json:"response,omitempty"`
 18815  
 18816  	// ServerResponse contains the HTTP response code and headers from the server.
 18817  	googleapi.ServerResponse `json:"-"`
 18818  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 18819  	// include in API requests. By default, fields with empty or default values are
 18820  	// omitted from API requests. See
 18821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18822  	// details.
 18823  	ForceSendFields []string `json:"-"`
 18824  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 18825  	// with the JSON null value. By default, fields with empty values are omitted
 18826  	// from API requests. See
 18827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18828  	NullFields []string `json:"-"`
 18829  }
 18830  
 18831  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 18832  	type NoMethod GoogleLongrunningOperation
 18833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18834  }
 18835  
 18836  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 18837  // defining duplicated empty messages in your APIs. A typical example is to use
 18838  // it as the request or the response type of an API method. For instance:
 18839  // service Foo { rpc Bar(google.protobuf.Empty) returns
 18840  // (google.protobuf.Empty); }
 18841  type GoogleProtobufEmpty struct {
 18842  	// ServerResponse contains the HTTP response code and headers from the server.
 18843  	googleapi.ServerResponse `json:"-"`
 18844  }
 18845  
 18846  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 18847  // suitable for different programming environments, including REST APIs and RPC
 18848  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 18849  // contains three pieces of data: error code, error message, and error details.
 18850  // You can find out more about this error model and how to work with it in the
 18851  // API Design Guide (https://cloud.google.com/apis/design/errors).
 18852  type GoogleRpcStatus struct {
 18853  	// Code: The status code, which should be an enum value of google.rpc.Code.
 18854  	Code int64 `json:"code,omitempty"`
 18855  	// Details: A list of messages that carry the error details. There is a common
 18856  	// set of message types for APIs to use.
 18857  	Details []googleapi.RawMessage `json:"details,omitempty"`
 18858  	// Message: A developer-facing error message, which should be in English. Any
 18859  	// user-facing error message should be localized and sent in the
 18860  	// google.rpc.Status.details field, or localized by the client.
 18861  	Message string `json:"message,omitempty"`
 18862  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 18863  	// include in API requests. By default, fields with empty or default values are
 18864  	// omitted from API requests. See
 18865  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18866  	// details.
 18867  	ForceSendFields []string `json:"-"`
 18868  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 18869  	// with the JSON null value. By default, fields with empty values are omitted
 18870  	// from API requests. See
 18871  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18872  	NullFields []string `json:"-"`
 18873  }
 18874  
 18875  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 18876  	type NoMethod GoogleRpcStatus
 18877  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18878  }
 18879  
 18880  // GoogleTypeLatLng: An object that represents a latitude/longitude pair. This
 18881  // is expressed as a pair of doubles to represent degrees latitude and degrees
 18882  // longitude. Unless specified otherwise, this object must conform to the WGS84
 18883  // standard. Values must be within normalized ranges.
 18884  type GoogleTypeLatLng struct {
 18885  	// Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0].
 18886  	Latitude float64 `json:"latitude,omitempty"`
 18887  	// Longitude: The longitude in degrees. It must be in the range [-180.0,
 18888  	// +180.0].
 18889  	Longitude float64 `json:"longitude,omitempty"`
 18890  	// ForceSendFields is a list of field names (e.g. "Latitude") to
 18891  	// unconditionally include in API requests. By default, fields with empty or
 18892  	// default values are omitted from API requests. See
 18893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18894  	// details.
 18895  	ForceSendFields []string `json:"-"`
 18896  	// NullFields is a list of field names (e.g. "Latitude") to include in API
 18897  	// requests with the JSON null value. By default, fields with empty values are
 18898  	// omitted from API requests. See
 18899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18900  	NullFields []string `json:"-"`
 18901  }
 18902  
 18903  func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
 18904  	type NoMethod GoogleTypeLatLng
 18905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18906  }
 18907  
 18908  func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
 18909  	type NoMethod GoogleTypeLatLng
 18910  	var s1 struct {
 18911  		Latitude  gensupport.JSONFloat64 `json:"latitude"`
 18912  		Longitude gensupport.JSONFloat64 `json:"longitude"`
 18913  		*NoMethod
 18914  	}
 18915  	s1.NoMethod = (*NoMethod)(s)
 18916  	if err := json.Unmarshal(data, &s1); err != nil {
 18917  		return err
 18918  	}
 18919  	s.Latitude = float64(s1.Latitude)
 18920  	s.Longitude = float64(s1.Longitude)
 18921  	return nil
 18922  }
 18923  
 18924  type ProjectsLocationsGetCall struct {
 18925  	s            *Service
 18926  	name         string
 18927  	urlParams_   gensupport.URLParams
 18928  	ifNoneMatch_ string
 18929  	ctx_         context.Context
 18930  	header_      http.Header
 18931  }
 18932  
 18933  // Get: Gets information about a location.
 18934  //
 18935  // - name: Resource name for the location.
 18936  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
 18937  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18938  	c.name = name
 18939  	return c
 18940  }
 18941  
 18942  // Fields allows partial responses to be retrieved. See
 18943  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18944  // details.
 18945  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
 18946  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18947  	return c
 18948  }
 18949  
 18950  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18951  // object's ETag matches the given value. This is useful for getting updates
 18952  // only after the object has changed since the last request.
 18953  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
 18954  	c.ifNoneMatch_ = entityTag
 18955  	return c
 18956  }
 18957  
 18958  // Context sets the context to be used in this call's Do method.
 18959  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
 18960  	c.ctx_ = ctx
 18961  	return c
 18962  }
 18963  
 18964  // Header returns a http.Header that can be modified by the caller to add
 18965  // headers to the request.
 18966  func (c *ProjectsLocationsGetCall) Header() http.Header {
 18967  	if c.header_ == nil {
 18968  		c.header_ = make(http.Header)
 18969  	}
 18970  	return c.header_
 18971  }
 18972  
 18973  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
 18974  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18975  	if c.ifNoneMatch_ != "" {
 18976  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18977  	}
 18978  	var body io.Reader = nil
 18979  	c.urlParams_.Set("alt", alt)
 18980  	c.urlParams_.Set("prettyPrint", "false")
 18981  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 18982  	urls += "?" + c.urlParams_.Encode()
 18983  	req, err := http.NewRequest("GET", urls, body)
 18984  	if err != nil {
 18985  		return nil, err
 18986  	}
 18987  	req.Header = reqHeaders
 18988  	googleapi.Expand(req.URL, map[string]string{
 18989  		"name": c.name,
 18990  	})
 18991  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18992  }
 18993  
 18994  // Do executes the "dialogflow.projects.locations.get" call.
 18995  // Any non-2xx status code is an error. Response headers are in either
 18996  // *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was
 18997  // returned at all) in error.(*googleapi.Error).Header. Use
 18998  // googleapi.IsNotModified to check whether the returned error was because
 18999  // http.StatusNotModified was returned.
 19000  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
 19001  	gensupport.SetOptions(c.urlParams_, opts...)
 19002  	res, err := c.doRequest("json")
 19003  	if res != nil && res.StatusCode == http.StatusNotModified {
 19004  		if res.Body != nil {
 19005  			res.Body.Close()
 19006  		}
 19007  		return nil, gensupport.WrapError(&googleapi.Error{
 19008  			Code:   res.StatusCode,
 19009  			Header: res.Header,
 19010  		})
 19011  	}
 19012  	if err != nil {
 19013  		return nil, err
 19014  	}
 19015  	defer googleapi.CloseBody(res)
 19016  	if err := googleapi.CheckResponse(res); err != nil {
 19017  		return nil, gensupport.WrapError(err)
 19018  	}
 19019  	ret := &GoogleCloudLocationLocation{
 19020  		ServerResponse: googleapi.ServerResponse{
 19021  			Header:         res.Header,
 19022  			HTTPStatusCode: res.StatusCode,
 19023  		},
 19024  	}
 19025  	target := &ret
 19026  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19027  		return nil, err
 19028  	}
 19029  	return ret, nil
 19030  }
 19031  
 19032  type ProjectsLocationsListCall struct {
 19033  	s            *Service
 19034  	name         string
 19035  	urlParams_   gensupport.URLParams
 19036  	ifNoneMatch_ string
 19037  	ctx_         context.Context
 19038  	header_      http.Header
 19039  }
 19040  
 19041  // List: Lists information about the supported locations for this service.
 19042  //
 19043  // - name: The resource that owns the locations collection, if applicable.
 19044  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
 19045  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19046  	c.name = name
 19047  	return c
 19048  }
 19049  
 19050  // Filter sets the optional parameter "filter": A filter to narrow down results
 19051  // to a preferred subset. The filtering language accepts strings like
 19052  // "displayName=tokyo", and is documented in more detail in AIP-160
 19053  // (https://google.aip.dev/160).
 19054  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
 19055  	c.urlParams_.Set("filter", filter)
 19056  	return c
 19057  }
 19058  
 19059  // PageSize sets the optional parameter "pageSize": The maximum number of
 19060  // results to return. If not set, the service selects a default.
 19061  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
 19062  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19063  	return c
 19064  }
 19065  
 19066  // PageToken sets the optional parameter "pageToken": A page token received
 19067  // from the `next_page_token` field in the response. Send that page token to
 19068  // receive the subsequent page.
 19069  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
 19070  	c.urlParams_.Set("pageToken", pageToken)
 19071  	return c
 19072  }
 19073  
 19074  // Fields allows partial responses to be retrieved. See
 19075  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19076  // details.
 19077  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
 19078  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19079  	return c
 19080  }
 19081  
 19082  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19083  // object's ETag matches the given value. This is useful for getting updates
 19084  // only after the object has changed since the last request.
 19085  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
 19086  	c.ifNoneMatch_ = entityTag
 19087  	return c
 19088  }
 19089  
 19090  // Context sets the context to be used in this call's Do method.
 19091  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
 19092  	c.ctx_ = ctx
 19093  	return c
 19094  }
 19095  
 19096  // Header returns a http.Header that can be modified by the caller to add
 19097  // headers to the request.
 19098  func (c *ProjectsLocationsListCall) Header() http.Header {
 19099  	if c.header_ == nil {
 19100  		c.header_ = make(http.Header)
 19101  	}
 19102  	return c.header_
 19103  }
 19104  
 19105  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
 19106  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19107  	if c.ifNoneMatch_ != "" {
 19108  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19109  	}
 19110  	var body io.Reader = nil
 19111  	c.urlParams_.Set("alt", alt)
 19112  	c.urlParams_.Set("prettyPrint", "false")
 19113  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/locations")
 19114  	urls += "?" + c.urlParams_.Encode()
 19115  	req, err := http.NewRequest("GET", urls, body)
 19116  	if err != nil {
 19117  		return nil, err
 19118  	}
 19119  	req.Header = reqHeaders
 19120  	googleapi.Expand(req.URL, map[string]string{
 19121  		"name": c.name,
 19122  	})
 19123  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19124  }
 19125  
 19126  // Do executes the "dialogflow.projects.locations.list" call.
 19127  // Any non-2xx status code is an error. Response headers are in either
 19128  // *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if a
 19129  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19130  // googleapi.IsNotModified to check whether the returned error was because
 19131  // http.StatusNotModified was returned.
 19132  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
 19133  	gensupport.SetOptions(c.urlParams_, opts...)
 19134  	res, err := c.doRequest("json")
 19135  	if res != nil && res.StatusCode == http.StatusNotModified {
 19136  		if res.Body != nil {
 19137  			res.Body.Close()
 19138  		}
 19139  		return nil, gensupport.WrapError(&googleapi.Error{
 19140  			Code:   res.StatusCode,
 19141  			Header: res.Header,
 19142  		})
 19143  	}
 19144  	if err != nil {
 19145  		return nil, err
 19146  	}
 19147  	defer googleapi.CloseBody(res)
 19148  	if err := googleapi.CheckResponse(res); err != nil {
 19149  		return nil, gensupport.WrapError(err)
 19150  	}
 19151  	ret := &GoogleCloudLocationListLocationsResponse{
 19152  		ServerResponse: googleapi.ServerResponse{
 19153  			Header:         res.Header,
 19154  			HTTPStatusCode: res.StatusCode,
 19155  		},
 19156  	}
 19157  	target := &ret
 19158  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19159  		return nil, err
 19160  	}
 19161  	return ret, nil
 19162  }
 19163  
 19164  // Pages invokes f for each page of results.
 19165  // A non-nil error returned from f will halt the iteration.
 19166  // The provided context supersedes any context provided to the Context method.
 19167  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
 19168  	c.ctx_ = ctx
 19169  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19170  	for {
 19171  		x, err := c.Do()
 19172  		if err != nil {
 19173  			return err
 19174  		}
 19175  		if err := f(x); err != nil {
 19176  			return err
 19177  		}
 19178  		if x.NextPageToken == "" {
 19179  			return nil
 19180  		}
 19181  		c.PageToken(x.NextPageToken)
 19182  	}
 19183  }
 19184  
 19185  type ProjectsLocationsAgentsCreateCall struct {
 19186  	s                                   *Service
 19187  	parent                              string
 19188  	googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent
 19189  	urlParams_                          gensupport.URLParams
 19190  	ctx_                                context.Context
 19191  	header_                             http.Header
 19192  }
 19193  
 19194  // Create: Creates an agent in the specified location. Note: You should always
 19195  // train a flow prior to sending it queries. See the training documentation
 19196  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 19197  //
 19198  //   - parent: The location to create a agent for. Format:
 19199  //     `projects//locations/`.
 19200  func (r *ProjectsLocationsAgentsService) Create(parent string, googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent) *ProjectsLocationsAgentsCreateCall {
 19201  	c := &ProjectsLocationsAgentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19202  	c.parent = parent
 19203  	c.googleclouddialogflowcxv3beta1agent = googleclouddialogflowcxv3beta1agent
 19204  	return c
 19205  }
 19206  
 19207  // Fields allows partial responses to be retrieved. See
 19208  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19209  // details.
 19210  func (c *ProjectsLocationsAgentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsCreateCall {
 19211  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19212  	return c
 19213  }
 19214  
 19215  // Context sets the context to be used in this call's Do method.
 19216  func (c *ProjectsLocationsAgentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsCreateCall {
 19217  	c.ctx_ = ctx
 19218  	return c
 19219  }
 19220  
 19221  // Header returns a http.Header that can be modified by the caller to add
 19222  // headers to the request.
 19223  func (c *ProjectsLocationsAgentsCreateCall) Header() http.Header {
 19224  	if c.header_ == nil {
 19225  		c.header_ = make(http.Header)
 19226  	}
 19227  	return c.header_
 19228  }
 19229  
 19230  func (c *ProjectsLocationsAgentsCreateCall) doRequest(alt string) (*http.Response, error) {
 19231  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19232  	var body io.Reader = nil
 19233  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1agent)
 19234  	if err != nil {
 19235  		return nil, err
 19236  	}
 19237  	c.urlParams_.Set("alt", alt)
 19238  	c.urlParams_.Set("prettyPrint", "false")
 19239  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/agents")
 19240  	urls += "?" + c.urlParams_.Encode()
 19241  	req, err := http.NewRequest("POST", urls, body)
 19242  	if err != nil {
 19243  		return nil, err
 19244  	}
 19245  	req.Header = reqHeaders
 19246  	googleapi.Expand(req.URL, map[string]string{
 19247  		"parent": c.parent,
 19248  	})
 19249  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19250  }
 19251  
 19252  // Do executes the "dialogflow.projects.locations.agents.create" call.
 19253  // Any non-2xx status code is an error. Response headers are in either
 19254  // *GoogleCloudDialogflowCxV3beta1Agent.ServerResponse.Header or (if a response
 19255  // was returned at all) in error.(*googleapi.Error).Header. Use
 19256  // googleapi.IsNotModified to check whether the returned error was because
 19257  // http.StatusNotModified was returned.
 19258  func (c *ProjectsLocationsAgentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
 19259  	gensupport.SetOptions(c.urlParams_, opts...)
 19260  	res, err := c.doRequest("json")
 19261  	if res != nil && res.StatusCode == http.StatusNotModified {
 19262  		if res.Body != nil {
 19263  			res.Body.Close()
 19264  		}
 19265  		return nil, gensupport.WrapError(&googleapi.Error{
 19266  			Code:   res.StatusCode,
 19267  			Header: res.Header,
 19268  		})
 19269  	}
 19270  	if err != nil {
 19271  		return nil, err
 19272  	}
 19273  	defer googleapi.CloseBody(res)
 19274  	if err := googleapi.CheckResponse(res); err != nil {
 19275  		return nil, gensupport.WrapError(err)
 19276  	}
 19277  	ret := &GoogleCloudDialogflowCxV3beta1Agent{
 19278  		ServerResponse: googleapi.ServerResponse{
 19279  			Header:         res.Header,
 19280  			HTTPStatusCode: res.StatusCode,
 19281  		},
 19282  	}
 19283  	target := &ret
 19284  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19285  		return nil, err
 19286  	}
 19287  	return ret, nil
 19288  }
 19289  
 19290  type ProjectsLocationsAgentsDeleteCall struct {
 19291  	s          *Service
 19292  	name       string
 19293  	urlParams_ gensupport.URLParams
 19294  	ctx_       context.Context
 19295  	header_    http.Header
 19296  }
 19297  
 19298  // Delete: Deletes the specified agent.
 19299  //
 19300  //   - name: The name of the agent to delete. Format:
 19301  //     `projects//locations//agents/`.
 19302  func (r *ProjectsLocationsAgentsService) Delete(name string) *ProjectsLocationsAgentsDeleteCall {
 19303  	c := &ProjectsLocationsAgentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19304  	c.name = name
 19305  	return c
 19306  }
 19307  
 19308  // Fields allows partial responses to be retrieved. See
 19309  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19310  // details.
 19311  func (c *ProjectsLocationsAgentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsDeleteCall {
 19312  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19313  	return c
 19314  }
 19315  
 19316  // Context sets the context to be used in this call's Do method.
 19317  func (c *ProjectsLocationsAgentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsDeleteCall {
 19318  	c.ctx_ = ctx
 19319  	return c
 19320  }
 19321  
 19322  // Header returns a http.Header that can be modified by the caller to add
 19323  // headers to the request.
 19324  func (c *ProjectsLocationsAgentsDeleteCall) Header() http.Header {
 19325  	if c.header_ == nil {
 19326  		c.header_ = make(http.Header)
 19327  	}
 19328  	return c.header_
 19329  }
 19330  
 19331  func (c *ProjectsLocationsAgentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 19332  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19333  	var body io.Reader = nil
 19334  	c.urlParams_.Set("alt", alt)
 19335  	c.urlParams_.Set("prettyPrint", "false")
 19336  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 19337  	urls += "?" + c.urlParams_.Encode()
 19338  	req, err := http.NewRequest("DELETE", urls, body)
 19339  	if err != nil {
 19340  		return nil, err
 19341  	}
 19342  	req.Header = reqHeaders
 19343  	googleapi.Expand(req.URL, map[string]string{
 19344  		"name": c.name,
 19345  	})
 19346  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19347  }
 19348  
 19349  // Do executes the "dialogflow.projects.locations.agents.delete" call.
 19350  // Any non-2xx status code is an error. Response headers are in either
 19351  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19352  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19353  // check whether the returned error was because http.StatusNotModified was
 19354  // returned.
 19355  func (c *ProjectsLocationsAgentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19356  	gensupport.SetOptions(c.urlParams_, opts...)
 19357  	res, err := c.doRequest("json")
 19358  	if res != nil && res.StatusCode == http.StatusNotModified {
 19359  		if res.Body != nil {
 19360  			res.Body.Close()
 19361  		}
 19362  		return nil, gensupport.WrapError(&googleapi.Error{
 19363  			Code:   res.StatusCode,
 19364  			Header: res.Header,
 19365  		})
 19366  	}
 19367  	if err != nil {
 19368  		return nil, err
 19369  	}
 19370  	defer googleapi.CloseBody(res)
 19371  	if err := googleapi.CheckResponse(res); err != nil {
 19372  		return nil, gensupport.WrapError(err)
 19373  	}
 19374  	ret := &GoogleProtobufEmpty{
 19375  		ServerResponse: googleapi.ServerResponse{
 19376  			Header:         res.Header,
 19377  			HTTPStatusCode: res.StatusCode,
 19378  		},
 19379  	}
 19380  	target := &ret
 19381  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19382  		return nil, err
 19383  	}
 19384  	return ret, nil
 19385  }
 19386  
 19387  type ProjectsLocationsAgentsExportCall struct {
 19388  	s                                                *Service
 19389  	name                                             string
 19390  	googleclouddialogflowcxv3beta1exportagentrequest *GoogleCloudDialogflowCxV3beta1ExportAgentRequest
 19391  	urlParams_                                       gensupport.URLParams
 19392  	ctx_                                             context.Context
 19393  	header_                                          http.Header
 19394  }
 19395  
 19396  // Export: Exports the specified agent to a binary file. This method is a
 19397  // long-running operation
 19398  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 19399  // The returned `Operation` type has the following method-specific fields: -
 19400  // `metadata`: An empty Struct message
 19401  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19402  // - `response`: ExportAgentResponse
 19403  //
 19404  //   - name: The name of the agent to export. Format:
 19405  //     `projects//locations//agents/`.
 19406  func (r *ProjectsLocationsAgentsService) Export(name string, googleclouddialogflowcxv3beta1exportagentrequest *GoogleCloudDialogflowCxV3beta1ExportAgentRequest) *ProjectsLocationsAgentsExportCall {
 19407  	c := &ProjectsLocationsAgentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19408  	c.name = name
 19409  	c.googleclouddialogflowcxv3beta1exportagentrequest = googleclouddialogflowcxv3beta1exportagentrequest
 19410  	return c
 19411  }
 19412  
 19413  // Fields allows partial responses to be retrieved. See
 19414  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19415  // details.
 19416  func (c *ProjectsLocationsAgentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsExportCall {
 19417  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19418  	return c
 19419  }
 19420  
 19421  // Context sets the context to be used in this call's Do method.
 19422  func (c *ProjectsLocationsAgentsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsExportCall {
 19423  	c.ctx_ = ctx
 19424  	return c
 19425  }
 19426  
 19427  // Header returns a http.Header that can be modified by the caller to add
 19428  // headers to the request.
 19429  func (c *ProjectsLocationsAgentsExportCall) Header() http.Header {
 19430  	if c.header_ == nil {
 19431  		c.header_ = make(http.Header)
 19432  	}
 19433  	return c.header_
 19434  }
 19435  
 19436  func (c *ProjectsLocationsAgentsExportCall) doRequest(alt string) (*http.Response, error) {
 19437  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19438  	var body io.Reader = nil
 19439  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportagentrequest)
 19440  	if err != nil {
 19441  		return nil, err
 19442  	}
 19443  	c.urlParams_.Set("alt", alt)
 19444  	c.urlParams_.Set("prettyPrint", "false")
 19445  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:export")
 19446  	urls += "?" + c.urlParams_.Encode()
 19447  	req, err := http.NewRequest("POST", urls, body)
 19448  	if err != nil {
 19449  		return nil, err
 19450  	}
 19451  	req.Header = reqHeaders
 19452  	googleapi.Expand(req.URL, map[string]string{
 19453  		"name": c.name,
 19454  	})
 19455  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19456  }
 19457  
 19458  // Do executes the "dialogflow.projects.locations.agents.export" call.
 19459  // Any non-2xx status code is an error. Response headers are in either
 19460  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19461  // returned at all) in error.(*googleapi.Error).Header. Use
 19462  // googleapi.IsNotModified to check whether the returned error was because
 19463  // http.StatusNotModified was returned.
 19464  func (c *ProjectsLocationsAgentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19465  	gensupport.SetOptions(c.urlParams_, opts...)
 19466  	res, err := c.doRequest("json")
 19467  	if res != nil && res.StatusCode == http.StatusNotModified {
 19468  		if res.Body != nil {
 19469  			res.Body.Close()
 19470  		}
 19471  		return nil, gensupport.WrapError(&googleapi.Error{
 19472  			Code:   res.StatusCode,
 19473  			Header: res.Header,
 19474  		})
 19475  	}
 19476  	if err != nil {
 19477  		return nil, err
 19478  	}
 19479  	defer googleapi.CloseBody(res)
 19480  	if err := googleapi.CheckResponse(res); err != nil {
 19481  		return nil, gensupport.WrapError(err)
 19482  	}
 19483  	ret := &GoogleLongrunningOperation{
 19484  		ServerResponse: googleapi.ServerResponse{
 19485  			Header:         res.Header,
 19486  			HTTPStatusCode: res.StatusCode,
 19487  		},
 19488  	}
 19489  	target := &ret
 19490  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19491  		return nil, err
 19492  	}
 19493  	return ret, nil
 19494  }
 19495  
 19496  type ProjectsLocationsAgentsGetCall struct {
 19497  	s            *Service
 19498  	name         string
 19499  	urlParams_   gensupport.URLParams
 19500  	ifNoneMatch_ string
 19501  	ctx_         context.Context
 19502  	header_      http.Header
 19503  }
 19504  
 19505  // Get: Retrieves the specified agent.
 19506  //
 19507  // - name: The name of the agent. Format: `projects//locations//agents/`.
 19508  func (r *ProjectsLocationsAgentsService) Get(name string) *ProjectsLocationsAgentsGetCall {
 19509  	c := &ProjectsLocationsAgentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19510  	c.name = name
 19511  	return c
 19512  }
 19513  
 19514  // Fields allows partial responses to be retrieved. See
 19515  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19516  // details.
 19517  func (c *ProjectsLocationsAgentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetCall {
 19518  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19519  	return c
 19520  }
 19521  
 19522  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19523  // object's ETag matches the given value. This is useful for getting updates
 19524  // only after the object has changed since the last request.
 19525  func (c *ProjectsLocationsAgentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetCall {
 19526  	c.ifNoneMatch_ = entityTag
 19527  	return c
 19528  }
 19529  
 19530  // Context sets the context to be used in this call's Do method.
 19531  func (c *ProjectsLocationsAgentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetCall {
 19532  	c.ctx_ = ctx
 19533  	return c
 19534  }
 19535  
 19536  // Header returns a http.Header that can be modified by the caller to add
 19537  // headers to the request.
 19538  func (c *ProjectsLocationsAgentsGetCall) Header() http.Header {
 19539  	if c.header_ == nil {
 19540  		c.header_ = make(http.Header)
 19541  	}
 19542  	return c.header_
 19543  }
 19544  
 19545  func (c *ProjectsLocationsAgentsGetCall) doRequest(alt string) (*http.Response, error) {
 19546  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19547  	if c.ifNoneMatch_ != "" {
 19548  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19549  	}
 19550  	var body io.Reader = nil
 19551  	c.urlParams_.Set("alt", alt)
 19552  	c.urlParams_.Set("prettyPrint", "false")
 19553  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 19554  	urls += "?" + c.urlParams_.Encode()
 19555  	req, err := http.NewRequest("GET", urls, body)
 19556  	if err != nil {
 19557  		return nil, err
 19558  	}
 19559  	req.Header = reqHeaders
 19560  	googleapi.Expand(req.URL, map[string]string{
 19561  		"name": c.name,
 19562  	})
 19563  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19564  }
 19565  
 19566  // Do executes the "dialogflow.projects.locations.agents.get" call.
 19567  // Any non-2xx status code is an error. Response headers are in either
 19568  // *GoogleCloudDialogflowCxV3beta1Agent.ServerResponse.Header or (if a response
 19569  // was returned at all) in error.(*googleapi.Error).Header. Use
 19570  // googleapi.IsNotModified to check whether the returned error was because
 19571  // http.StatusNotModified was returned.
 19572  func (c *ProjectsLocationsAgentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
 19573  	gensupport.SetOptions(c.urlParams_, opts...)
 19574  	res, err := c.doRequest("json")
 19575  	if res != nil && res.StatusCode == http.StatusNotModified {
 19576  		if res.Body != nil {
 19577  			res.Body.Close()
 19578  		}
 19579  		return nil, gensupport.WrapError(&googleapi.Error{
 19580  			Code:   res.StatusCode,
 19581  			Header: res.Header,
 19582  		})
 19583  	}
 19584  	if err != nil {
 19585  		return nil, err
 19586  	}
 19587  	defer googleapi.CloseBody(res)
 19588  	if err := googleapi.CheckResponse(res); err != nil {
 19589  		return nil, gensupport.WrapError(err)
 19590  	}
 19591  	ret := &GoogleCloudDialogflowCxV3beta1Agent{
 19592  		ServerResponse: googleapi.ServerResponse{
 19593  			Header:         res.Header,
 19594  			HTTPStatusCode: res.StatusCode,
 19595  		},
 19596  	}
 19597  	target := &ret
 19598  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19599  		return nil, err
 19600  	}
 19601  	return ret, nil
 19602  }
 19603  
 19604  type ProjectsLocationsAgentsGetGenerativeSettingsCall struct {
 19605  	s            *Service
 19606  	name         string
 19607  	urlParams_   gensupport.URLParams
 19608  	ifNoneMatch_ string
 19609  	ctx_         context.Context
 19610  	header_      http.Header
 19611  }
 19612  
 19613  // GetGenerativeSettings: Gets the generative settings for the agent.
 19614  //
 19615  // - name: Format: `projects//locations//agents//generativeSettings`.
 19616  func (r *ProjectsLocationsAgentsService) GetGenerativeSettings(name string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
 19617  	c := &ProjectsLocationsAgentsGetGenerativeSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19618  	c.name = name
 19619  	return c
 19620  }
 19621  
 19622  // LanguageCode sets the optional parameter "languageCode": Required. Language
 19623  // code of the generative settings.
 19624  func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
 19625  	c.urlParams_.Set("languageCode", languageCode)
 19626  	return c
 19627  }
 19628  
 19629  // Fields allows partial responses to be retrieved. See
 19630  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19631  // details.
 19632  func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
 19633  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19634  	return c
 19635  }
 19636  
 19637  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19638  // object's ETag matches the given value. This is useful for getting updates
 19639  // only after the object has changed since the last request.
 19640  func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
 19641  	c.ifNoneMatch_ = entityTag
 19642  	return c
 19643  }
 19644  
 19645  // Context sets the context to be used in this call's Do method.
 19646  func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
 19647  	c.ctx_ = ctx
 19648  	return c
 19649  }
 19650  
 19651  // Header returns a http.Header that can be modified by the caller to add
 19652  // headers to the request.
 19653  func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Header() http.Header {
 19654  	if c.header_ == nil {
 19655  		c.header_ = make(http.Header)
 19656  	}
 19657  	return c.header_
 19658  }
 19659  
 19660  func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) doRequest(alt string) (*http.Response, error) {
 19661  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19662  	if c.ifNoneMatch_ != "" {
 19663  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19664  	}
 19665  	var body io.Reader = nil
 19666  	c.urlParams_.Set("alt", alt)
 19667  	c.urlParams_.Set("prettyPrint", "false")
 19668  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 19669  	urls += "?" + c.urlParams_.Encode()
 19670  	req, err := http.NewRequest("GET", urls, body)
 19671  	if err != nil {
 19672  		return nil, err
 19673  	}
 19674  	req.Header = reqHeaders
 19675  	googleapi.Expand(req.URL, map[string]string{
 19676  		"name": c.name,
 19677  	})
 19678  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19679  }
 19680  
 19681  // Do executes the "dialogflow.projects.locations.agents.getGenerativeSettings" call.
 19682  // Any non-2xx status code is an error. Response headers are in either
 19683  // *GoogleCloudDialogflowCxV3beta1GenerativeSettings.ServerResponse.Header or
 19684  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 19685  // googleapi.IsNotModified to check whether the returned error was because
 19686  // http.StatusNotModified was returned.
 19687  func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1GenerativeSettings, error) {
 19688  	gensupport.SetOptions(c.urlParams_, opts...)
 19689  	res, err := c.doRequest("json")
 19690  	if res != nil && res.StatusCode == http.StatusNotModified {
 19691  		if res.Body != nil {
 19692  			res.Body.Close()
 19693  		}
 19694  		return nil, gensupport.WrapError(&googleapi.Error{
 19695  			Code:   res.StatusCode,
 19696  			Header: res.Header,
 19697  		})
 19698  	}
 19699  	if err != nil {
 19700  		return nil, err
 19701  	}
 19702  	defer googleapi.CloseBody(res)
 19703  	if err := googleapi.CheckResponse(res); err != nil {
 19704  		return nil, gensupport.WrapError(err)
 19705  	}
 19706  	ret := &GoogleCloudDialogflowCxV3beta1GenerativeSettings{
 19707  		ServerResponse: googleapi.ServerResponse{
 19708  			Header:         res.Header,
 19709  			HTTPStatusCode: res.StatusCode,
 19710  		},
 19711  	}
 19712  	target := &ret
 19713  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19714  		return nil, err
 19715  	}
 19716  	return ret, nil
 19717  }
 19718  
 19719  type ProjectsLocationsAgentsGetValidationResultCall struct {
 19720  	s            *Service
 19721  	name         string
 19722  	urlParams_   gensupport.URLParams
 19723  	ifNoneMatch_ string
 19724  	ctx_         context.Context
 19725  	header_      http.Header
 19726  }
 19727  
 19728  // GetValidationResult: Gets the latest agent validation result. Agent
 19729  // validation is performed when ValidateAgent is called.
 19730  //
 19731  //   - name: The agent name. Format:
 19732  //     `projects//locations//agents//validationResult`.
 19733  func (r *ProjectsLocationsAgentsService) GetValidationResult(name string) *ProjectsLocationsAgentsGetValidationResultCall {
 19734  	c := &ProjectsLocationsAgentsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19735  	c.name = name
 19736  	return c
 19737  }
 19738  
 19739  // LanguageCode sets the optional parameter "languageCode": If not specified,
 19740  // the agent's default language is used.
 19741  func (c *ProjectsLocationsAgentsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGetValidationResultCall {
 19742  	c.urlParams_.Set("languageCode", languageCode)
 19743  	return c
 19744  }
 19745  
 19746  // Fields allows partial responses to be retrieved. See
 19747  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19748  // details.
 19749  func (c *ProjectsLocationsAgentsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetValidationResultCall {
 19750  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19751  	return c
 19752  }
 19753  
 19754  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19755  // object's ETag matches the given value. This is useful for getting updates
 19756  // only after the object has changed since the last request.
 19757  func (c *ProjectsLocationsAgentsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetValidationResultCall {
 19758  	c.ifNoneMatch_ = entityTag
 19759  	return c
 19760  }
 19761  
 19762  // Context sets the context to be used in this call's Do method.
 19763  func (c *ProjectsLocationsAgentsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetValidationResultCall {
 19764  	c.ctx_ = ctx
 19765  	return c
 19766  }
 19767  
 19768  // Header returns a http.Header that can be modified by the caller to add
 19769  // headers to the request.
 19770  func (c *ProjectsLocationsAgentsGetValidationResultCall) Header() http.Header {
 19771  	if c.header_ == nil {
 19772  		c.header_ = make(http.Header)
 19773  	}
 19774  	return c.header_
 19775  }
 19776  
 19777  func (c *ProjectsLocationsAgentsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
 19778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19779  	if c.ifNoneMatch_ != "" {
 19780  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19781  	}
 19782  	var body io.Reader = nil
 19783  	c.urlParams_.Set("alt", alt)
 19784  	c.urlParams_.Set("prettyPrint", "false")
 19785  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 19786  	urls += "?" + c.urlParams_.Encode()
 19787  	req, err := http.NewRequest("GET", urls, body)
 19788  	if err != nil {
 19789  		return nil, err
 19790  	}
 19791  	req.Header = reqHeaders
 19792  	googleapi.Expand(req.URL, map[string]string{
 19793  		"name": c.name,
 19794  	})
 19795  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19796  }
 19797  
 19798  // Do executes the "dialogflow.projects.locations.agents.getValidationResult" call.
 19799  // Any non-2xx status code is an error. Response headers are in either
 19800  // *GoogleCloudDialogflowCxV3beta1AgentValidationResult.ServerResponse.Header
 19801  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 19802  // Use googleapi.IsNotModified to check whether the returned error was because
 19803  // http.StatusNotModified was returned.
 19804  func (c *ProjectsLocationsAgentsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AgentValidationResult, error) {
 19805  	gensupport.SetOptions(c.urlParams_, opts...)
 19806  	res, err := c.doRequest("json")
 19807  	if res != nil && res.StatusCode == http.StatusNotModified {
 19808  		if res.Body != nil {
 19809  			res.Body.Close()
 19810  		}
 19811  		return nil, gensupport.WrapError(&googleapi.Error{
 19812  			Code:   res.StatusCode,
 19813  			Header: res.Header,
 19814  		})
 19815  	}
 19816  	if err != nil {
 19817  		return nil, err
 19818  	}
 19819  	defer googleapi.CloseBody(res)
 19820  	if err := googleapi.CheckResponse(res); err != nil {
 19821  		return nil, gensupport.WrapError(err)
 19822  	}
 19823  	ret := &GoogleCloudDialogflowCxV3beta1AgentValidationResult{
 19824  		ServerResponse: googleapi.ServerResponse{
 19825  			Header:         res.Header,
 19826  			HTTPStatusCode: res.StatusCode,
 19827  		},
 19828  	}
 19829  	target := &ret
 19830  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19831  		return nil, err
 19832  	}
 19833  	return ret, nil
 19834  }
 19835  
 19836  type ProjectsLocationsAgentsListCall struct {
 19837  	s            *Service
 19838  	parent       string
 19839  	urlParams_   gensupport.URLParams
 19840  	ifNoneMatch_ string
 19841  	ctx_         context.Context
 19842  	header_      http.Header
 19843  }
 19844  
 19845  // List: Returns the list of all agents in the specified location.
 19846  //
 19847  //   - parent: The location to list all agents for. Format:
 19848  //     `projects//locations/`.
 19849  func (r *ProjectsLocationsAgentsService) List(parent string) *ProjectsLocationsAgentsListCall {
 19850  	c := &ProjectsLocationsAgentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19851  	c.parent = parent
 19852  	return c
 19853  }
 19854  
 19855  // PageSize sets the optional parameter "pageSize": The maximum number of items
 19856  // to return in a single page. By default 100 and at most 1000.
 19857  func (c *ProjectsLocationsAgentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsListCall {
 19858  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19859  	return c
 19860  }
 19861  
 19862  // PageToken sets the optional parameter "pageToken": The next_page_token value
 19863  // returned from a previous list request.
 19864  func (c *ProjectsLocationsAgentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsListCall {
 19865  	c.urlParams_.Set("pageToken", pageToken)
 19866  	return c
 19867  }
 19868  
 19869  // Fields allows partial responses to be retrieved. See
 19870  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19871  // details.
 19872  func (c *ProjectsLocationsAgentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsListCall {
 19873  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19874  	return c
 19875  }
 19876  
 19877  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19878  // object's ETag matches the given value. This is useful for getting updates
 19879  // only after the object has changed since the last request.
 19880  func (c *ProjectsLocationsAgentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsListCall {
 19881  	c.ifNoneMatch_ = entityTag
 19882  	return c
 19883  }
 19884  
 19885  // Context sets the context to be used in this call's Do method.
 19886  func (c *ProjectsLocationsAgentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsListCall {
 19887  	c.ctx_ = ctx
 19888  	return c
 19889  }
 19890  
 19891  // Header returns a http.Header that can be modified by the caller to add
 19892  // headers to the request.
 19893  func (c *ProjectsLocationsAgentsListCall) Header() http.Header {
 19894  	if c.header_ == nil {
 19895  		c.header_ = make(http.Header)
 19896  	}
 19897  	return c.header_
 19898  }
 19899  
 19900  func (c *ProjectsLocationsAgentsListCall) doRequest(alt string) (*http.Response, error) {
 19901  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19902  	if c.ifNoneMatch_ != "" {
 19903  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19904  	}
 19905  	var body io.Reader = nil
 19906  	c.urlParams_.Set("alt", alt)
 19907  	c.urlParams_.Set("prettyPrint", "false")
 19908  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/agents")
 19909  	urls += "?" + c.urlParams_.Encode()
 19910  	req, err := http.NewRequest("GET", urls, body)
 19911  	if err != nil {
 19912  		return nil, err
 19913  	}
 19914  	req.Header = reqHeaders
 19915  	googleapi.Expand(req.URL, map[string]string{
 19916  		"parent": c.parent,
 19917  	})
 19918  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19919  }
 19920  
 19921  // Do executes the "dialogflow.projects.locations.agents.list" call.
 19922  // Any non-2xx status code is an error. Response headers are in either
 19923  // *GoogleCloudDialogflowCxV3beta1ListAgentsResponse.ServerResponse.Header or
 19924  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 19925  // googleapi.IsNotModified to check whether the returned error was because
 19926  // http.StatusNotModified was returned.
 19927  func (c *ProjectsLocationsAgentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListAgentsResponse, error) {
 19928  	gensupport.SetOptions(c.urlParams_, opts...)
 19929  	res, err := c.doRequest("json")
 19930  	if res != nil && res.StatusCode == http.StatusNotModified {
 19931  		if res.Body != nil {
 19932  			res.Body.Close()
 19933  		}
 19934  		return nil, gensupport.WrapError(&googleapi.Error{
 19935  			Code:   res.StatusCode,
 19936  			Header: res.Header,
 19937  		})
 19938  	}
 19939  	if err != nil {
 19940  		return nil, err
 19941  	}
 19942  	defer googleapi.CloseBody(res)
 19943  	if err := googleapi.CheckResponse(res); err != nil {
 19944  		return nil, gensupport.WrapError(err)
 19945  	}
 19946  	ret := &GoogleCloudDialogflowCxV3beta1ListAgentsResponse{
 19947  		ServerResponse: googleapi.ServerResponse{
 19948  			Header:         res.Header,
 19949  			HTTPStatusCode: res.StatusCode,
 19950  		},
 19951  	}
 19952  	target := &ret
 19953  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19954  		return nil, err
 19955  	}
 19956  	return ret, nil
 19957  }
 19958  
 19959  // Pages invokes f for each page of results.
 19960  // A non-nil error returned from f will halt the iteration.
 19961  // The provided context supersedes any context provided to the Context method.
 19962  func (c *ProjectsLocationsAgentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListAgentsResponse) error) error {
 19963  	c.ctx_ = ctx
 19964  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19965  	for {
 19966  		x, err := c.Do()
 19967  		if err != nil {
 19968  			return err
 19969  		}
 19970  		if err := f(x); err != nil {
 19971  			return err
 19972  		}
 19973  		if x.NextPageToken == "" {
 19974  			return nil
 19975  		}
 19976  		c.PageToken(x.NextPageToken)
 19977  	}
 19978  }
 19979  
 19980  type ProjectsLocationsAgentsPatchCall struct {
 19981  	s                                   *Service
 19982  	nameid                              string
 19983  	googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent
 19984  	urlParams_                          gensupport.URLParams
 19985  	ctx_                                context.Context
 19986  	header_                             http.Header
 19987  }
 19988  
 19989  // Patch: Updates the specified agent. Note: You should always train a flow
 19990  // prior to sending it queries. See the training documentation
 19991  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 19992  //
 19993  //   - name: The unique identifier of the agent. Required for the
 19994  //     Agents.UpdateAgent method. Agents.CreateAgent populates the name
 19995  //     automatically. Format: `projects//locations//agents/`.
 19996  func (r *ProjectsLocationsAgentsService) Patch(nameid string, googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent) *ProjectsLocationsAgentsPatchCall {
 19997  	c := &ProjectsLocationsAgentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19998  	c.nameid = nameid
 19999  	c.googleclouddialogflowcxv3beta1agent = googleclouddialogflowcxv3beta1agent
 20000  	return c
 20001  }
 20002  
 20003  // UpdateMask sets the optional parameter "updateMask": The mask to control
 20004  // which fields get updated. If the mask is not present, all fields will be
 20005  // updated.
 20006  func (c *ProjectsLocationsAgentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsPatchCall {
 20007  	c.urlParams_.Set("updateMask", updateMask)
 20008  	return c
 20009  }
 20010  
 20011  // Fields allows partial responses to be retrieved. See
 20012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20013  // details.
 20014  func (c *ProjectsLocationsAgentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPatchCall {
 20015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20016  	return c
 20017  }
 20018  
 20019  // Context sets the context to be used in this call's Do method.
 20020  func (c *ProjectsLocationsAgentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsPatchCall {
 20021  	c.ctx_ = ctx
 20022  	return c
 20023  }
 20024  
 20025  // Header returns a http.Header that can be modified by the caller to add
 20026  // headers to the request.
 20027  func (c *ProjectsLocationsAgentsPatchCall) Header() http.Header {
 20028  	if c.header_ == nil {
 20029  		c.header_ = make(http.Header)
 20030  	}
 20031  	return c.header_
 20032  }
 20033  
 20034  func (c *ProjectsLocationsAgentsPatchCall) doRequest(alt string) (*http.Response, error) {
 20035  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20036  	var body io.Reader = nil
 20037  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1agent)
 20038  	if err != nil {
 20039  		return nil, err
 20040  	}
 20041  	c.urlParams_.Set("alt", alt)
 20042  	c.urlParams_.Set("prettyPrint", "false")
 20043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 20044  	urls += "?" + c.urlParams_.Encode()
 20045  	req, err := http.NewRequest("PATCH", urls, body)
 20046  	if err != nil {
 20047  		return nil, err
 20048  	}
 20049  	req.Header = reqHeaders
 20050  	googleapi.Expand(req.URL, map[string]string{
 20051  		"name": c.nameid,
 20052  	})
 20053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20054  }
 20055  
 20056  // Do executes the "dialogflow.projects.locations.agents.patch" call.
 20057  // Any non-2xx status code is an error. Response headers are in either
 20058  // *GoogleCloudDialogflowCxV3beta1Agent.ServerResponse.Header or (if a response
 20059  // was returned at all) in error.(*googleapi.Error).Header. Use
 20060  // googleapi.IsNotModified to check whether the returned error was because
 20061  // http.StatusNotModified was returned.
 20062  func (c *ProjectsLocationsAgentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
 20063  	gensupport.SetOptions(c.urlParams_, opts...)
 20064  	res, err := c.doRequest("json")
 20065  	if res != nil && res.StatusCode == http.StatusNotModified {
 20066  		if res.Body != nil {
 20067  			res.Body.Close()
 20068  		}
 20069  		return nil, gensupport.WrapError(&googleapi.Error{
 20070  			Code:   res.StatusCode,
 20071  			Header: res.Header,
 20072  		})
 20073  	}
 20074  	if err != nil {
 20075  		return nil, err
 20076  	}
 20077  	defer googleapi.CloseBody(res)
 20078  	if err := googleapi.CheckResponse(res); err != nil {
 20079  		return nil, gensupport.WrapError(err)
 20080  	}
 20081  	ret := &GoogleCloudDialogflowCxV3beta1Agent{
 20082  		ServerResponse: googleapi.ServerResponse{
 20083  			Header:         res.Header,
 20084  			HTTPStatusCode: res.StatusCode,
 20085  		},
 20086  	}
 20087  	target := &ret
 20088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20089  		return nil, err
 20090  	}
 20091  	return ret, nil
 20092  }
 20093  
 20094  type ProjectsLocationsAgentsRestoreCall struct {
 20095  	s                                                 *Service
 20096  	name                                              string
 20097  	googleclouddialogflowcxv3beta1restoreagentrequest *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest
 20098  	urlParams_                                        gensupport.URLParams
 20099  	ctx_                                              context.Context
 20100  	header_                                           http.Header
 20101  }
 20102  
 20103  // Restore: Restores the specified agent from a binary file. Replaces the
 20104  // current agent with a new one. Note that all existing resources in agent
 20105  // (e.g. intents, entity types, flows) will be removed. This method is a
 20106  // long-running operation
 20107  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 20108  // The returned `Operation` type has the following method-specific fields: -
 20109  // `metadata`: An empty Struct message
 20110  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 20111  // - `response`: An Empty message
 20112  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 20113  // Note: You should always train a flow prior to sending it queries. See the
 20114  // training documentation
 20115  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 20116  //
 20117  //   - name: The name of the agent to restore into. Format:
 20118  //     `projects//locations//agents/`.
 20119  func (r *ProjectsLocationsAgentsService) Restore(name string, googleclouddialogflowcxv3beta1restoreagentrequest *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest) *ProjectsLocationsAgentsRestoreCall {
 20120  	c := &ProjectsLocationsAgentsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20121  	c.name = name
 20122  	c.googleclouddialogflowcxv3beta1restoreagentrequest = googleclouddialogflowcxv3beta1restoreagentrequest
 20123  	return c
 20124  }
 20125  
 20126  // Fields allows partial responses to be retrieved. See
 20127  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20128  // details.
 20129  func (c *ProjectsLocationsAgentsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsRestoreCall {
 20130  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20131  	return c
 20132  }
 20133  
 20134  // Context sets the context to be used in this call's Do method.
 20135  func (c *ProjectsLocationsAgentsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentsRestoreCall {
 20136  	c.ctx_ = ctx
 20137  	return c
 20138  }
 20139  
 20140  // Header returns a http.Header that can be modified by the caller to add
 20141  // headers to the request.
 20142  func (c *ProjectsLocationsAgentsRestoreCall) Header() http.Header {
 20143  	if c.header_ == nil {
 20144  		c.header_ = make(http.Header)
 20145  	}
 20146  	return c.header_
 20147  }
 20148  
 20149  func (c *ProjectsLocationsAgentsRestoreCall) doRequest(alt string) (*http.Response, error) {
 20150  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20151  	var body io.Reader = nil
 20152  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1restoreagentrequest)
 20153  	if err != nil {
 20154  		return nil, err
 20155  	}
 20156  	c.urlParams_.Set("alt", alt)
 20157  	c.urlParams_.Set("prettyPrint", "false")
 20158  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:restore")
 20159  	urls += "?" + c.urlParams_.Encode()
 20160  	req, err := http.NewRequest("POST", urls, body)
 20161  	if err != nil {
 20162  		return nil, err
 20163  	}
 20164  	req.Header = reqHeaders
 20165  	googleapi.Expand(req.URL, map[string]string{
 20166  		"name": c.name,
 20167  	})
 20168  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20169  }
 20170  
 20171  // Do executes the "dialogflow.projects.locations.agents.restore" call.
 20172  // Any non-2xx status code is an error. Response headers are in either
 20173  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20174  // returned at all) in error.(*googleapi.Error).Header. Use
 20175  // googleapi.IsNotModified to check whether the returned error was because
 20176  // http.StatusNotModified was returned.
 20177  func (c *ProjectsLocationsAgentsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20178  	gensupport.SetOptions(c.urlParams_, opts...)
 20179  	res, err := c.doRequest("json")
 20180  	if res != nil && res.StatusCode == http.StatusNotModified {
 20181  		if res.Body != nil {
 20182  			res.Body.Close()
 20183  		}
 20184  		return nil, gensupport.WrapError(&googleapi.Error{
 20185  			Code:   res.StatusCode,
 20186  			Header: res.Header,
 20187  		})
 20188  	}
 20189  	if err != nil {
 20190  		return nil, err
 20191  	}
 20192  	defer googleapi.CloseBody(res)
 20193  	if err := googleapi.CheckResponse(res); err != nil {
 20194  		return nil, gensupport.WrapError(err)
 20195  	}
 20196  	ret := &GoogleLongrunningOperation{
 20197  		ServerResponse: googleapi.ServerResponse{
 20198  			Header:         res.Header,
 20199  			HTTPStatusCode: res.StatusCode,
 20200  		},
 20201  	}
 20202  	target := &ret
 20203  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20204  		return nil, err
 20205  	}
 20206  	return ret, nil
 20207  }
 20208  
 20209  type ProjectsLocationsAgentsUpdateGenerativeSettingsCall struct {
 20210  	s                                                *Service
 20211  	name                                             string
 20212  	googleclouddialogflowcxv3beta1generativesettings *GoogleCloudDialogflowCxV3beta1GenerativeSettings
 20213  	urlParams_                                       gensupport.URLParams
 20214  	ctx_                                             context.Context
 20215  	header_                                          http.Header
 20216  }
 20217  
 20218  // UpdateGenerativeSettings: Updates the generative settings for the agent.
 20219  //
 20220  // - name: Format: `projects//locations//agents//generativeSettings`.
 20221  func (r *ProjectsLocationsAgentsService) UpdateGenerativeSettings(name string, googleclouddialogflowcxv3beta1generativesettings *GoogleCloudDialogflowCxV3beta1GenerativeSettings) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
 20222  	c := &ProjectsLocationsAgentsUpdateGenerativeSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20223  	c.name = name
 20224  	c.googleclouddialogflowcxv3beta1generativesettings = googleclouddialogflowcxv3beta1generativesettings
 20225  	return c
 20226  }
 20227  
 20228  // UpdateMask sets the optional parameter "updateMask": The mask to control
 20229  // which fields get updated. If the mask is not present, all fields will be
 20230  // updated.
 20231  func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
 20232  	c.urlParams_.Set("updateMask", updateMask)
 20233  	return c
 20234  }
 20235  
 20236  // Fields allows partial responses to be retrieved. See
 20237  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20238  // details.
 20239  func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
 20240  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20241  	return c
 20242  }
 20243  
 20244  // Context sets the context to be used in this call's Do method.
 20245  func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Context(ctx context.Context) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
 20246  	c.ctx_ = ctx
 20247  	return c
 20248  }
 20249  
 20250  // Header returns a http.Header that can be modified by the caller to add
 20251  // headers to the request.
 20252  func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Header() http.Header {
 20253  	if c.header_ == nil {
 20254  		c.header_ = make(http.Header)
 20255  	}
 20256  	return c.header_
 20257  }
 20258  
 20259  func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) doRequest(alt string) (*http.Response, error) {
 20260  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20261  	var body io.Reader = nil
 20262  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1generativesettings)
 20263  	if err != nil {
 20264  		return nil, err
 20265  	}
 20266  	c.urlParams_.Set("alt", alt)
 20267  	c.urlParams_.Set("prettyPrint", "false")
 20268  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 20269  	urls += "?" + c.urlParams_.Encode()
 20270  	req, err := http.NewRequest("PATCH", urls, body)
 20271  	if err != nil {
 20272  		return nil, err
 20273  	}
 20274  	req.Header = reqHeaders
 20275  	googleapi.Expand(req.URL, map[string]string{
 20276  		"name": c.name,
 20277  	})
 20278  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20279  }
 20280  
 20281  // Do executes the "dialogflow.projects.locations.agents.updateGenerativeSettings" call.
 20282  // Any non-2xx status code is an error. Response headers are in either
 20283  // *GoogleCloudDialogflowCxV3beta1GenerativeSettings.ServerResponse.Header or
 20284  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 20285  // googleapi.IsNotModified to check whether the returned error was because
 20286  // http.StatusNotModified was returned.
 20287  func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1GenerativeSettings, error) {
 20288  	gensupport.SetOptions(c.urlParams_, opts...)
 20289  	res, err := c.doRequest("json")
 20290  	if res != nil && res.StatusCode == http.StatusNotModified {
 20291  		if res.Body != nil {
 20292  			res.Body.Close()
 20293  		}
 20294  		return nil, gensupport.WrapError(&googleapi.Error{
 20295  			Code:   res.StatusCode,
 20296  			Header: res.Header,
 20297  		})
 20298  	}
 20299  	if err != nil {
 20300  		return nil, err
 20301  	}
 20302  	defer googleapi.CloseBody(res)
 20303  	if err := googleapi.CheckResponse(res); err != nil {
 20304  		return nil, gensupport.WrapError(err)
 20305  	}
 20306  	ret := &GoogleCloudDialogflowCxV3beta1GenerativeSettings{
 20307  		ServerResponse: googleapi.ServerResponse{
 20308  			Header:         res.Header,
 20309  			HTTPStatusCode: res.StatusCode,
 20310  		},
 20311  	}
 20312  	target := &ret
 20313  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20314  		return nil, err
 20315  	}
 20316  	return ret, nil
 20317  }
 20318  
 20319  type ProjectsLocationsAgentsValidateCall struct {
 20320  	s                                                  *Service
 20321  	name                                               string
 20322  	googleclouddialogflowcxv3beta1validateagentrequest *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest
 20323  	urlParams_                                         gensupport.URLParams
 20324  	ctx_                                               context.Context
 20325  	header_                                            http.Header
 20326  }
 20327  
 20328  // Validate: Validates the specified agent and creates or updates validation
 20329  // results. The agent in draft version is validated. Please call this API after
 20330  // the training is completed to get the complete validation results.
 20331  //
 20332  // - name: The agent to validate. Format: `projects//locations//agents/`.
 20333  func (r *ProjectsLocationsAgentsService) Validate(name string, googleclouddialogflowcxv3beta1validateagentrequest *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest) *ProjectsLocationsAgentsValidateCall {
 20334  	c := &ProjectsLocationsAgentsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20335  	c.name = name
 20336  	c.googleclouddialogflowcxv3beta1validateagentrequest = googleclouddialogflowcxv3beta1validateagentrequest
 20337  	return c
 20338  }
 20339  
 20340  // Fields allows partial responses to be retrieved. See
 20341  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20342  // details.
 20343  func (c *ProjectsLocationsAgentsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsValidateCall {
 20344  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20345  	return c
 20346  }
 20347  
 20348  // Context sets the context to be used in this call's Do method.
 20349  func (c *ProjectsLocationsAgentsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsValidateCall {
 20350  	c.ctx_ = ctx
 20351  	return c
 20352  }
 20353  
 20354  // Header returns a http.Header that can be modified by the caller to add
 20355  // headers to the request.
 20356  func (c *ProjectsLocationsAgentsValidateCall) Header() http.Header {
 20357  	if c.header_ == nil {
 20358  		c.header_ = make(http.Header)
 20359  	}
 20360  	return c.header_
 20361  }
 20362  
 20363  func (c *ProjectsLocationsAgentsValidateCall) doRequest(alt string) (*http.Response, error) {
 20364  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20365  	var body io.Reader = nil
 20366  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1validateagentrequest)
 20367  	if err != nil {
 20368  		return nil, err
 20369  	}
 20370  	c.urlParams_.Set("alt", alt)
 20371  	c.urlParams_.Set("prettyPrint", "false")
 20372  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:validate")
 20373  	urls += "?" + c.urlParams_.Encode()
 20374  	req, err := http.NewRequest("POST", urls, body)
 20375  	if err != nil {
 20376  		return nil, err
 20377  	}
 20378  	req.Header = reqHeaders
 20379  	googleapi.Expand(req.URL, map[string]string{
 20380  		"name": c.name,
 20381  	})
 20382  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20383  }
 20384  
 20385  // Do executes the "dialogflow.projects.locations.agents.validate" call.
 20386  // Any non-2xx status code is an error. Response headers are in either
 20387  // *GoogleCloudDialogflowCxV3beta1AgentValidationResult.ServerResponse.Header
 20388  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 20389  // Use googleapi.IsNotModified to check whether the returned error was because
 20390  // http.StatusNotModified was returned.
 20391  func (c *ProjectsLocationsAgentsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AgentValidationResult, error) {
 20392  	gensupport.SetOptions(c.urlParams_, opts...)
 20393  	res, err := c.doRequest("json")
 20394  	if res != nil && res.StatusCode == http.StatusNotModified {
 20395  		if res.Body != nil {
 20396  			res.Body.Close()
 20397  		}
 20398  		return nil, gensupport.WrapError(&googleapi.Error{
 20399  			Code:   res.StatusCode,
 20400  			Header: res.Header,
 20401  		})
 20402  	}
 20403  	if err != nil {
 20404  		return nil, err
 20405  	}
 20406  	defer googleapi.CloseBody(res)
 20407  	if err := googleapi.CheckResponse(res); err != nil {
 20408  		return nil, gensupport.WrapError(err)
 20409  	}
 20410  	ret := &GoogleCloudDialogflowCxV3beta1AgentValidationResult{
 20411  		ServerResponse: googleapi.ServerResponse{
 20412  			Header:         res.Header,
 20413  			HTTPStatusCode: res.StatusCode,
 20414  		},
 20415  	}
 20416  	target := &ret
 20417  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20418  		return nil, err
 20419  	}
 20420  	return ret, nil
 20421  }
 20422  
 20423  type ProjectsLocationsAgentsChangelogsGetCall struct {
 20424  	s            *Service
 20425  	name         string
 20426  	urlParams_   gensupport.URLParams
 20427  	ifNoneMatch_ string
 20428  	ctx_         context.Context
 20429  	header_      http.Header
 20430  }
 20431  
 20432  // Get: Retrieves the specified Changelog.
 20433  //
 20434  //   - name: The name of the changelog to get. Format:
 20435  //     `projects//locations//agents//changelogs/`.
 20436  func (r *ProjectsLocationsAgentsChangelogsService) Get(name string) *ProjectsLocationsAgentsChangelogsGetCall {
 20437  	c := &ProjectsLocationsAgentsChangelogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20438  	c.name = name
 20439  	return c
 20440  }
 20441  
 20442  // Fields allows partial responses to be retrieved. See
 20443  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20444  // details.
 20445  func (c *ProjectsLocationsAgentsChangelogsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsChangelogsGetCall {
 20446  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20447  	return c
 20448  }
 20449  
 20450  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20451  // object's ETag matches the given value. This is useful for getting updates
 20452  // only after the object has changed since the last request.
 20453  func (c *ProjectsLocationsAgentsChangelogsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsChangelogsGetCall {
 20454  	c.ifNoneMatch_ = entityTag
 20455  	return c
 20456  }
 20457  
 20458  // Context sets the context to be used in this call's Do method.
 20459  func (c *ProjectsLocationsAgentsChangelogsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsChangelogsGetCall {
 20460  	c.ctx_ = ctx
 20461  	return c
 20462  }
 20463  
 20464  // Header returns a http.Header that can be modified by the caller to add
 20465  // headers to the request.
 20466  func (c *ProjectsLocationsAgentsChangelogsGetCall) Header() http.Header {
 20467  	if c.header_ == nil {
 20468  		c.header_ = make(http.Header)
 20469  	}
 20470  	return c.header_
 20471  }
 20472  
 20473  func (c *ProjectsLocationsAgentsChangelogsGetCall) doRequest(alt string) (*http.Response, error) {
 20474  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20475  	if c.ifNoneMatch_ != "" {
 20476  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20477  	}
 20478  	var body io.Reader = nil
 20479  	c.urlParams_.Set("alt", alt)
 20480  	c.urlParams_.Set("prettyPrint", "false")
 20481  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 20482  	urls += "?" + c.urlParams_.Encode()
 20483  	req, err := http.NewRequest("GET", urls, body)
 20484  	if err != nil {
 20485  		return nil, err
 20486  	}
 20487  	req.Header = reqHeaders
 20488  	googleapi.Expand(req.URL, map[string]string{
 20489  		"name": c.name,
 20490  	})
 20491  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20492  }
 20493  
 20494  // Do executes the "dialogflow.projects.locations.agents.changelogs.get" call.
 20495  // Any non-2xx status code is an error. Response headers are in either
 20496  // *GoogleCloudDialogflowCxV3beta1Changelog.ServerResponse.Header or (if a
 20497  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20498  // googleapi.IsNotModified to check whether the returned error was because
 20499  // http.StatusNotModified was returned.
 20500  func (c *ProjectsLocationsAgentsChangelogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Changelog, error) {
 20501  	gensupport.SetOptions(c.urlParams_, opts...)
 20502  	res, err := c.doRequest("json")
 20503  	if res != nil && res.StatusCode == http.StatusNotModified {
 20504  		if res.Body != nil {
 20505  			res.Body.Close()
 20506  		}
 20507  		return nil, gensupport.WrapError(&googleapi.Error{
 20508  			Code:   res.StatusCode,
 20509  			Header: res.Header,
 20510  		})
 20511  	}
 20512  	if err != nil {
 20513  		return nil, err
 20514  	}
 20515  	defer googleapi.CloseBody(res)
 20516  	if err := googleapi.CheckResponse(res); err != nil {
 20517  		return nil, gensupport.WrapError(err)
 20518  	}
 20519  	ret := &GoogleCloudDialogflowCxV3beta1Changelog{
 20520  		ServerResponse: googleapi.ServerResponse{
 20521  			Header:         res.Header,
 20522  			HTTPStatusCode: res.StatusCode,
 20523  		},
 20524  	}
 20525  	target := &ret
 20526  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20527  		return nil, err
 20528  	}
 20529  	return ret, nil
 20530  }
 20531  
 20532  type ProjectsLocationsAgentsChangelogsListCall struct {
 20533  	s            *Service
 20534  	parent       string
 20535  	urlParams_   gensupport.URLParams
 20536  	ifNoneMatch_ string
 20537  	ctx_         context.Context
 20538  	header_      http.Header
 20539  }
 20540  
 20541  // List: Returns the list of Changelogs.
 20542  //
 20543  //   - parent: The agent containing the changelogs. Format:
 20544  //     `projects//locations//agents/`.
 20545  func (r *ProjectsLocationsAgentsChangelogsService) List(parent string) *ProjectsLocationsAgentsChangelogsListCall {
 20546  	c := &ProjectsLocationsAgentsChangelogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20547  	c.parent = parent
 20548  	return c
 20549  }
 20550  
 20551  // Filter sets the optional parameter "filter": The filter string. Supports
 20552  // filter by user_email, resource, type and create_time. Some examples: 1. By
 20553  // user email: user_email = "someone@google.com" 2. By resource name: resource
 20554  // = "projects/123/locations/global/agents/456/flows/789" 3. By resource
 20555  // display name: display_name = "my agent" 4. By action: action = "Create" 5.
 20556  // By type: type = "flows" 6. By create time. Currently predicates on
 20557  // `create_time` and `create_time_epoch_seconds` are supported:
 20558  // create_time_epoch_seconds > 1551790877 AND create_time <=
 20559  // 2017-01-15T01:30:15.01Z 7. Combination of above filters: resource =
 20560  // "projects/123/locations/global/agents/456/flows/789" AND user_email =
 20561  // "someone@google.com" AND create_time <= 2017-01-15T01:30:15.01Z
 20562  func (c *ProjectsLocationsAgentsChangelogsListCall) Filter(filter string) *ProjectsLocationsAgentsChangelogsListCall {
 20563  	c.urlParams_.Set("filter", filter)
 20564  	return c
 20565  }
 20566  
 20567  // PageSize sets the optional parameter "pageSize": The maximum number of items
 20568  // to return in a single page. By default 100 and at most 1000.
 20569  func (c *ProjectsLocationsAgentsChangelogsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsChangelogsListCall {
 20570  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20571  	return c
 20572  }
 20573  
 20574  // PageToken sets the optional parameter "pageToken": The next_page_token value
 20575  // returned from a previous list request.
 20576  func (c *ProjectsLocationsAgentsChangelogsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsChangelogsListCall {
 20577  	c.urlParams_.Set("pageToken", pageToken)
 20578  	return c
 20579  }
 20580  
 20581  // Fields allows partial responses to be retrieved. See
 20582  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20583  // details.
 20584  func (c *ProjectsLocationsAgentsChangelogsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsChangelogsListCall {
 20585  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20586  	return c
 20587  }
 20588  
 20589  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20590  // object's ETag matches the given value. This is useful for getting updates
 20591  // only after the object has changed since the last request.
 20592  func (c *ProjectsLocationsAgentsChangelogsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsChangelogsListCall {
 20593  	c.ifNoneMatch_ = entityTag
 20594  	return c
 20595  }
 20596  
 20597  // Context sets the context to be used in this call's Do method.
 20598  func (c *ProjectsLocationsAgentsChangelogsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsChangelogsListCall {
 20599  	c.ctx_ = ctx
 20600  	return c
 20601  }
 20602  
 20603  // Header returns a http.Header that can be modified by the caller to add
 20604  // headers to the request.
 20605  func (c *ProjectsLocationsAgentsChangelogsListCall) Header() http.Header {
 20606  	if c.header_ == nil {
 20607  		c.header_ = make(http.Header)
 20608  	}
 20609  	return c.header_
 20610  }
 20611  
 20612  func (c *ProjectsLocationsAgentsChangelogsListCall) doRequest(alt string) (*http.Response, error) {
 20613  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20614  	if c.ifNoneMatch_ != "" {
 20615  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20616  	}
 20617  	var body io.Reader = nil
 20618  	c.urlParams_.Set("alt", alt)
 20619  	c.urlParams_.Set("prettyPrint", "false")
 20620  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/changelogs")
 20621  	urls += "?" + c.urlParams_.Encode()
 20622  	req, err := http.NewRequest("GET", urls, body)
 20623  	if err != nil {
 20624  		return nil, err
 20625  	}
 20626  	req.Header = reqHeaders
 20627  	googleapi.Expand(req.URL, map[string]string{
 20628  		"parent": c.parent,
 20629  	})
 20630  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20631  }
 20632  
 20633  // Do executes the "dialogflow.projects.locations.agents.changelogs.list" call.
 20634  // Any non-2xx status code is an error. Response headers are in either
 20635  // *GoogleCloudDialogflowCxV3beta1ListChangelogsResponse.ServerResponse.Header
 20636  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 20637  // Use googleapi.IsNotModified to check whether the returned error was because
 20638  // http.StatusNotModified was returned.
 20639  func (c *ProjectsLocationsAgentsChangelogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListChangelogsResponse, error) {
 20640  	gensupport.SetOptions(c.urlParams_, opts...)
 20641  	res, err := c.doRequest("json")
 20642  	if res != nil && res.StatusCode == http.StatusNotModified {
 20643  		if res.Body != nil {
 20644  			res.Body.Close()
 20645  		}
 20646  		return nil, gensupport.WrapError(&googleapi.Error{
 20647  			Code:   res.StatusCode,
 20648  			Header: res.Header,
 20649  		})
 20650  	}
 20651  	if err != nil {
 20652  		return nil, err
 20653  	}
 20654  	defer googleapi.CloseBody(res)
 20655  	if err := googleapi.CheckResponse(res); err != nil {
 20656  		return nil, gensupport.WrapError(err)
 20657  	}
 20658  	ret := &GoogleCloudDialogflowCxV3beta1ListChangelogsResponse{
 20659  		ServerResponse: googleapi.ServerResponse{
 20660  			Header:         res.Header,
 20661  			HTTPStatusCode: res.StatusCode,
 20662  		},
 20663  	}
 20664  	target := &ret
 20665  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20666  		return nil, err
 20667  	}
 20668  	return ret, nil
 20669  }
 20670  
 20671  // Pages invokes f for each page of results.
 20672  // A non-nil error returned from f will halt the iteration.
 20673  // The provided context supersedes any context provided to the Context method.
 20674  func (c *ProjectsLocationsAgentsChangelogsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListChangelogsResponse) error) error {
 20675  	c.ctx_ = ctx
 20676  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20677  	for {
 20678  		x, err := c.Do()
 20679  		if err != nil {
 20680  			return err
 20681  		}
 20682  		if err := f(x); err != nil {
 20683  			return err
 20684  		}
 20685  		if x.NextPageToken == "" {
 20686  			return nil
 20687  		}
 20688  		c.PageToken(x.NextPageToken)
 20689  	}
 20690  }
 20691  
 20692  type ProjectsLocationsAgentsConversationsDeleteCall struct {
 20693  	s          *Service
 20694  	name       string
 20695  	urlParams_ gensupport.URLParams
 20696  	ctx_       context.Context
 20697  	header_    http.Header
 20698  }
 20699  
 20700  // Delete: Deletes the specified conversation.
 20701  //
 20702  //   - name: The name of the conversation. Format:
 20703  //     `projects//locations//agents//conversations/`.
 20704  func (r *ProjectsLocationsAgentsConversationsService) Delete(name string) *ProjectsLocationsAgentsConversationsDeleteCall {
 20705  	c := &ProjectsLocationsAgentsConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20706  	c.name = name
 20707  	return c
 20708  }
 20709  
 20710  // Fields allows partial responses to be retrieved. See
 20711  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20712  // details.
 20713  func (c *ProjectsLocationsAgentsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsDeleteCall {
 20714  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20715  	return c
 20716  }
 20717  
 20718  // Context sets the context to be used in this call's Do method.
 20719  func (c *ProjectsLocationsAgentsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsDeleteCall {
 20720  	c.ctx_ = ctx
 20721  	return c
 20722  }
 20723  
 20724  // Header returns a http.Header that can be modified by the caller to add
 20725  // headers to the request.
 20726  func (c *ProjectsLocationsAgentsConversationsDeleteCall) Header() http.Header {
 20727  	if c.header_ == nil {
 20728  		c.header_ = make(http.Header)
 20729  	}
 20730  	return c.header_
 20731  }
 20732  
 20733  func (c *ProjectsLocationsAgentsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 20734  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20735  	var body io.Reader = nil
 20736  	c.urlParams_.Set("alt", alt)
 20737  	c.urlParams_.Set("prettyPrint", "false")
 20738  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 20739  	urls += "?" + c.urlParams_.Encode()
 20740  	req, err := http.NewRequest("DELETE", urls, body)
 20741  	if err != nil {
 20742  		return nil, err
 20743  	}
 20744  	req.Header = reqHeaders
 20745  	googleapi.Expand(req.URL, map[string]string{
 20746  		"name": c.name,
 20747  	})
 20748  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20749  }
 20750  
 20751  // Do executes the "dialogflow.projects.locations.agents.conversations.delete" call.
 20752  // Any non-2xx status code is an error. Response headers are in either
 20753  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 20754  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20755  // check whether the returned error was because http.StatusNotModified was
 20756  // returned.
 20757  func (c *ProjectsLocationsAgentsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 20758  	gensupport.SetOptions(c.urlParams_, opts...)
 20759  	res, err := c.doRequest("json")
 20760  	if res != nil && res.StatusCode == http.StatusNotModified {
 20761  		if res.Body != nil {
 20762  			res.Body.Close()
 20763  		}
 20764  		return nil, gensupport.WrapError(&googleapi.Error{
 20765  			Code:   res.StatusCode,
 20766  			Header: res.Header,
 20767  		})
 20768  	}
 20769  	if err != nil {
 20770  		return nil, err
 20771  	}
 20772  	defer googleapi.CloseBody(res)
 20773  	if err := googleapi.CheckResponse(res); err != nil {
 20774  		return nil, gensupport.WrapError(err)
 20775  	}
 20776  	ret := &GoogleProtobufEmpty{
 20777  		ServerResponse: googleapi.ServerResponse{
 20778  			Header:         res.Header,
 20779  			HTTPStatusCode: res.StatusCode,
 20780  		},
 20781  	}
 20782  	target := &ret
 20783  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20784  		return nil, err
 20785  	}
 20786  	return ret, nil
 20787  }
 20788  
 20789  type ProjectsLocationsAgentsConversationsGetCall struct {
 20790  	s            *Service
 20791  	name         string
 20792  	urlParams_   gensupport.URLParams
 20793  	ifNoneMatch_ string
 20794  	ctx_         context.Context
 20795  	header_      http.Header
 20796  }
 20797  
 20798  // Get: Retrieves the specified conversation.
 20799  //
 20800  //   - name: The name of the conversation. Format:
 20801  //     `projects//locations//agents//conversations/`.
 20802  func (r *ProjectsLocationsAgentsConversationsService) Get(name string) *ProjectsLocationsAgentsConversationsGetCall {
 20803  	c := &ProjectsLocationsAgentsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20804  	c.name = name
 20805  	return c
 20806  }
 20807  
 20808  // Fields allows partial responses to be retrieved. See
 20809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20810  // details.
 20811  func (c *ProjectsLocationsAgentsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsGetCall {
 20812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20813  	return c
 20814  }
 20815  
 20816  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20817  // object's ETag matches the given value. This is useful for getting updates
 20818  // only after the object has changed since the last request.
 20819  func (c *ProjectsLocationsAgentsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsConversationsGetCall {
 20820  	c.ifNoneMatch_ = entityTag
 20821  	return c
 20822  }
 20823  
 20824  // Context sets the context to be used in this call's Do method.
 20825  func (c *ProjectsLocationsAgentsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsGetCall {
 20826  	c.ctx_ = ctx
 20827  	return c
 20828  }
 20829  
 20830  // Header returns a http.Header that can be modified by the caller to add
 20831  // headers to the request.
 20832  func (c *ProjectsLocationsAgentsConversationsGetCall) Header() http.Header {
 20833  	if c.header_ == nil {
 20834  		c.header_ = make(http.Header)
 20835  	}
 20836  	return c.header_
 20837  }
 20838  
 20839  func (c *ProjectsLocationsAgentsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 20840  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20841  	if c.ifNoneMatch_ != "" {
 20842  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20843  	}
 20844  	var body io.Reader = nil
 20845  	c.urlParams_.Set("alt", alt)
 20846  	c.urlParams_.Set("prettyPrint", "false")
 20847  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 20848  	urls += "?" + c.urlParams_.Encode()
 20849  	req, err := http.NewRequest("GET", urls, body)
 20850  	if err != nil {
 20851  		return nil, err
 20852  	}
 20853  	req.Header = reqHeaders
 20854  	googleapi.Expand(req.URL, map[string]string{
 20855  		"name": c.name,
 20856  	})
 20857  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20858  }
 20859  
 20860  // Do executes the "dialogflow.projects.locations.agents.conversations.get" call.
 20861  // Any non-2xx status code is an error. Response headers are in either
 20862  // *GoogleCloudDialogflowCxV3beta1Conversation.ServerResponse.Header or (if a
 20863  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20864  // googleapi.IsNotModified to check whether the returned error was because
 20865  // http.StatusNotModified was returned.
 20866  func (c *ProjectsLocationsAgentsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Conversation, error) {
 20867  	gensupport.SetOptions(c.urlParams_, opts...)
 20868  	res, err := c.doRequest("json")
 20869  	if res != nil && res.StatusCode == http.StatusNotModified {
 20870  		if res.Body != nil {
 20871  			res.Body.Close()
 20872  		}
 20873  		return nil, gensupport.WrapError(&googleapi.Error{
 20874  			Code:   res.StatusCode,
 20875  			Header: res.Header,
 20876  		})
 20877  	}
 20878  	if err != nil {
 20879  		return nil, err
 20880  	}
 20881  	defer googleapi.CloseBody(res)
 20882  	if err := googleapi.CheckResponse(res); err != nil {
 20883  		return nil, gensupport.WrapError(err)
 20884  	}
 20885  	ret := &GoogleCloudDialogflowCxV3beta1Conversation{
 20886  		ServerResponse: googleapi.ServerResponse{
 20887  			Header:         res.Header,
 20888  			HTTPStatusCode: res.StatusCode,
 20889  		},
 20890  	}
 20891  	target := &ret
 20892  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20893  		return nil, err
 20894  	}
 20895  	return ret, nil
 20896  }
 20897  
 20898  type ProjectsLocationsAgentsConversationsListCall struct {
 20899  	s            *Service
 20900  	parent       string
 20901  	urlParams_   gensupport.URLParams
 20902  	ifNoneMatch_ string
 20903  	ctx_         context.Context
 20904  	header_      http.Header
 20905  }
 20906  
 20907  // List: Returns the list of all conversations.
 20908  //
 20909  //   - parent: The agent to list all conversations for. Format:
 20910  //     `projects//locations//agents/`.
 20911  func (r *ProjectsLocationsAgentsConversationsService) List(parent string) *ProjectsLocationsAgentsConversationsListCall {
 20912  	c := &ProjectsLocationsAgentsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20913  	c.parent = parent
 20914  	return c
 20915  }
 20916  
 20917  // Filter sets the optional parameter "filter": The filter string. Supports
 20918  // filter by create_time, metrics.has_end_interaction,
 20919  // metrics.has_live_agent_handoff, intents.display_name, pages.display_name and
 20920  // flows.display_name. Timestamps expect an RFC-3339 formatted string (e.g.
 20921  // 2012-04-21T11:30:00-04:00). UTC offsets are supported. Some examples: 1. By
 20922  // create time: create_time > "2022-04-21T11:30:00-04:00" 2. By intent display
 20923  // name: intents.display_name : "billing" 3. By end interaction signal:
 20924  // metrics.has_end_interaction = true
 20925  func (c *ProjectsLocationsAgentsConversationsListCall) Filter(filter string) *ProjectsLocationsAgentsConversationsListCall {
 20926  	c.urlParams_.Set("filter", filter)
 20927  	return c
 20928  }
 20929  
 20930  // PageSize sets the optional parameter "pageSize": The maximum number of items
 20931  // to return in a single page. By default 100 and at most 1000.
 20932  func (c *ProjectsLocationsAgentsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsConversationsListCall {
 20933  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20934  	return c
 20935  }
 20936  
 20937  // PageToken sets the optional parameter "pageToken": The next_page_token value
 20938  // returned from a previous list request.
 20939  func (c *ProjectsLocationsAgentsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsConversationsListCall {
 20940  	c.urlParams_.Set("pageToken", pageToken)
 20941  	return c
 20942  }
 20943  
 20944  // Fields allows partial responses to be retrieved. See
 20945  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20946  // details.
 20947  func (c *ProjectsLocationsAgentsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsListCall {
 20948  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20949  	return c
 20950  }
 20951  
 20952  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20953  // object's ETag matches the given value. This is useful for getting updates
 20954  // only after the object has changed since the last request.
 20955  func (c *ProjectsLocationsAgentsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsConversationsListCall {
 20956  	c.ifNoneMatch_ = entityTag
 20957  	return c
 20958  }
 20959  
 20960  // Context sets the context to be used in this call's Do method.
 20961  func (c *ProjectsLocationsAgentsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsListCall {
 20962  	c.ctx_ = ctx
 20963  	return c
 20964  }
 20965  
 20966  // Header returns a http.Header that can be modified by the caller to add
 20967  // headers to the request.
 20968  func (c *ProjectsLocationsAgentsConversationsListCall) Header() http.Header {
 20969  	if c.header_ == nil {
 20970  		c.header_ = make(http.Header)
 20971  	}
 20972  	return c.header_
 20973  }
 20974  
 20975  func (c *ProjectsLocationsAgentsConversationsListCall) doRequest(alt string) (*http.Response, error) {
 20976  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20977  	if c.ifNoneMatch_ != "" {
 20978  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20979  	}
 20980  	var body io.Reader = nil
 20981  	c.urlParams_.Set("alt", alt)
 20982  	c.urlParams_.Set("prettyPrint", "false")
 20983  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/conversations")
 20984  	urls += "?" + c.urlParams_.Encode()
 20985  	req, err := http.NewRequest("GET", urls, body)
 20986  	if err != nil {
 20987  		return nil, err
 20988  	}
 20989  	req.Header = reqHeaders
 20990  	googleapi.Expand(req.URL, map[string]string{
 20991  		"parent": c.parent,
 20992  	})
 20993  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20994  }
 20995  
 20996  // Do executes the "dialogflow.projects.locations.agents.conversations.list" call.
 20997  // Any non-2xx status code is an error. Response headers are in either
 20998  // *GoogleCloudDialogflowCxV3beta1ListConversationsResponse.ServerResponse.Heade
 20999  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 21000  // Use googleapi.IsNotModified to check whether the returned error was because
 21001  // http.StatusNotModified was returned.
 21002  func (c *ProjectsLocationsAgentsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListConversationsResponse, error) {
 21003  	gensupport.SetOptions(c.urlParams_, opts...)
 21004  	res, err := c.doRequest("json")
 21005  	if res != nil && res.StatusCode == http.StatusNotModified {
 21006  		if res.Body != nil {
 21007  			res.Body.Close()
 21008  		}
 21009  		return nil, gensupport.WrapError(&googleapi.Error{
 21010  			Code:   res.StatusCode,
 21011  			Header: res.Header,
 21012  		})
 21013  	}
 21014  	if err != nil {
 21015  		return nil, err
 21016  	}
 21017  	defer googleapi.CloseBody(res)
 21018  	if err := googleapi.CheckResponse(res); err != nil {
 21019  		return nil, gensupport.WrapError(err)
 21020  	}
 21021  	ret := &GoogleCloudDialogflowCxV3beta1ListConversationsResponse{
 21022  		ServerResponse: googleapi.ServerResponse{
 21023  			Header:         res.Header,
 21024  			HTTPStatusCode: res.StatusCode,
 21025  		},
 21026  	}
 21027  	target := &ret
 21028  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21029  		return nil, err
 21030  	}
 21031  	return ret, nil
 21032  }
 21033  
 21034  // Pages invokes f for each page of results.
 21035  // A non-nil error returned from f will halt the iteration.
 21036  // The provided context supersedes any context provided to the Context method.
 21037  func (c *ProjectsLocationsAgentsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListConversationsResponse) error) error {
 21038  	c.ctx_ = ctx
 21039  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21040  	for {
 21041  		x, err := c.Do()
 21042  		if err != nil {
 21043  			return err
 21044  		}
 21045  		if err := f(x); err != nil {
 21046  			return err
 21047  		}
 21048  		if x.NextPageToken == "" {
 21049  			return nil
 21050  		}
 21051  		c.PageToken(x.NextPageToken)
 21052  	}
 21053  }
 21054  
 21055  type ProjectsLocationsAgentsEntityTypesCreateCall struct {
 21056  	s                                        *Service
 21057  	parent                                   string
 21058  	googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType
 21059  	urlParams_                               gensupport.URLParams
 21060  	ctx_                                     context.Context
 21061  	header_                                  http.Header
 21062  }
 21063  
 21064  // Create: Creates an entity type in the specified agent.
 21065  //
 21066  //   - parent: The agent to create a entity type for. Format:
 21067  //     `projects//locations//agents/`.
 21068  func (r *ProjectsLocationsAgentsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType) *ProjectsLocationsAgentsEntityTypesCreateCall {
 21069  	c := &ProjectsLocationsAgentsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21070  	c.parent = parent
 21071  	c.googleclouddialogflowcxv3beta1entitytype = googleclouddialogflowcxv3beta1entitytype
 21072  	return c
 21073  }
 21074  
 21075  // LanguageCode sets the optional parameter "languageCode": The language of the
 21076  // following fields in `entity_type`: * `EntityType.entities.value` *
 21077  // `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not
 21078  // specified, the agent's default language is used. Many languages
 21079  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 21080  // supported. Note: languages must be enabled in the agent before they can be
 21081  // used.
 21082  func (c *ProjectsLocationsAgentsEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesCreateCall {
 21083  	c.urlParams_.Set("languageCode", languageCode)
 21084  	return c
 21085  }
 21086  
 21087  // Fields allows partial responses to be retrieved. See
 21088  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21089  // details.
 21090  func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesCreateCall {
 21091  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21092  	return c
 21093  }
 21094  
 21095  // Context sets the context to be used in this call's Do method.
 21096  func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesCreateCall {
 21097  	c.ctx_ = ctx
 21098  	return c
 21099  }
 21100  
 21101  // Header returns a http.Header that can be modified by the caller to add
 21102  // headers to the request.
 21103  func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Header() http.Header {
 21104  	if c.header_ == nil {
 21105  		c.header_ = make(http.Header)
 21106  	}
 21107  	return c.header_
 21108  }
 21109  
 21110  func (c *ProjectsLocationsAgentsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 21111  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21112  	var body io.Reader = nil
 21113  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1entitytype)
 21114  	if err != nil {
 21115  		return nil, err
 21116  	}
 21117  	c.urlParams_.Set("alt", alt)
 21118  	c.urlParams_.Set("prettyPrint", "false")
 21119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
 21120  	urls += "?" + c.urlParams_.Encode()
 21121  	req, err := http.NewRequest("POST", urls, body)
 21122  	if err != nil {
 21123  		return nil, err
 21124  	}
 21125  	req.Header = reqHeaders
 21126  	googleapi.Expand(req.URL, map[string]string{
 21127  		"parent": c.parent,
 21128  	})
 21129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21130  }
 21131  
 21132  // Do executes the "dialogflow.projects.locations.agents.entityTypes.create" call.
 21133  // Any non-2xx status code is an error. Response headers are in either
 21134  // *GoogleCloudDialogflowCxV3beta1EntityType.ServerResponse.Header or (if a
 21135  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21136  // googleapi.IsNotModified to check whether the returned error was because
 21137  // http.StatusNotModified was returned.
 21138  func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
 21139  	gensupport.SetOptions(c.urlParams_, opts...)
 21140  	res, err := c.doRequest("json")
 21141  	if res != nil && res.StatusCode == http.StatusNotModified {
 21142  		if res.Body != nil {
 21143  			res.Body.Close()
 21144  		}
 21145  		return nil, gensupport.WrapError(&googleapi.Error{
 21146  			Code:   res.StatusCode,
 21147  			Header: res.Header,
 21148  		})
 21149  	}
 21150  	if err != nil {
 21151  		return nil, err
 21152  	}
 21153  	defer googleapi.CloseBody(res)
 21154  	if err := googleapi.CheckResponse(res); err != nil {
 21155  		return nil, gensupport.WrapError(err)
 21156  	}
 21157  	ret := &GoogleCloudDialogflowCxV3beta1EntityType{
 21158  		ServerResponse: googleapi.ServerResponse{
 21159  			Header:         res.Header,
 21160  			HTTPStatusCode: res.StatusCode,
 21161  		},
 21162  	}
 21163  	target := &ret
 21164  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21165  		return nil, err
 21166  	}
 21167  	return ret, nil
 21168  }
 21169  
 21170  type ProjectsLocationsAgentsEntityTypesDeleteCall struct {
 21171  	s          *Service
 21172  	name       string
 21173  	urlParams_ gensupport.URLParams
 21174  	ctx_       context.Context
 21175  	header_    http.Header
 21176  }
 21177  
 21178  // Delete: Deletes the specified entity type. Note: You should always train a
 21179  // flow prior to sending it queries. See the training documentation
 21180  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 21181  //
 21182  //   - name: The name of the entity type to delete. Format:
 21183  //     `projects//locations//agents//entityTypes/`.
 21184  func (r *ProjectsLocationsAgentsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEntityTypesDeleteCall {
 21185  	c := &ProjectsLocationsAgentsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21186  	c.name = name
 21187  	return c
 21188  }
 21189  
 21190  // Force sets the optional parameter "force": This field has no effect for
 21191  // entity type not being used. For entity types that are used by intents or
 21192  // pages: * If `force` is set to false, an error will be returned with message
 21193  // indicating the referencing resources. * If `force` is set to true,
 21194  // Dialogflow will remove the entity type, as well as any references to the
 21195  // entity type (i.e. Page parameter of the entity type will be changed to
 21196  // '@sys.any' and intent parameter of the entity type will be removed).
 21197  func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsAgentsEntityTypesDeleteCall {
 21198  	c.urlParams_.Set("force", fmt.Sprint(force))
 21199  	return c
 21200  }
 21201  
 21202  // Fields allows partial responses to be retrieved. See
 21203  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21204  // details.
 21205  func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesDeleteCall {
 21206  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21207  	return c
 21208  }
 21209  
 21210  // Context sets the context to be used in this call's Do method.
 21211  func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesDeleteCall {
 21212  	c.ctx_ = ctx
 21213  	return c
 21214  }
 21215  
 21216  // Header returns a http.Header that can be modified by the caller to add
 21217  // headers to the request.
 21218  func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Header() http.Header {
 21219  	if c.header_ == nil {
 21220  		c.header_ = make(http.Header)
 21221  	}
 21222  	return c.header_
 21223  }
 21224  
 21225  func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 21226  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21227  	var body io.Reader = nil
 21228  	c.urlParams_.Set("alt", alt)
 21229  	c.urlParams_.Set("prettyPrint", "false")
 21230  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 21231  	urls += "?" + c.urlParams_.Encode()
 21232  	req, err := http.NewRequest("DELETE", urls, body)
 21233  	if err != nil {
 21234  		return nil, err
 21235  	}
 21236  	req.Header = reqHeaders
 21237  	googleapi.Expand(req.URL, map[string]string{
 21238  		"name": c.name,
 21239  	})
 21240  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21241  }
 21242  
 21243  // Do executes the "dialogflow.projects.locations.agents.entityTypes.delete" call.
 21244  // Any non-2xx status code is an error. Response headers are in either
 21245  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21246  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21247  // check whether the returned error was because http.StatusNotModified was
 21248  // returned.
 21249  func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21250  	gensupport.SetOptions(c.urlParams_, opts...)
 21251  	res, err := c.doRequest("json")
 21252  	if res != nil && res.StatusCode == http.StatusNotModified {
 21253  		if res.Body != nil {
 21254  			res.Body.Close()
 21255  		}
 21256  		return nil, gensupport.WrapError(&googleapi.Error{
 21257  			Code:   res.StatusCode,
 21258  			Header: res.Header,
 21259  		})
 21260  	}
 21261  	if err != nil {
 21262  		return nil, err
 21263  	}
 21264  	defer googleapi.CloseBody(res)
 21265  	if err := googleapi.CheckResponse(res); err != nil {
 21266  		return nil, gensupport.WrapError(err)
 21267  	}
 21268  	ret := &GoogleProtobufEmpty{
 21269  		ServerResponse: googleapi.ServerResponse{
 21270  			Header:         res.Header,
 21271  			HTTPStatusCode: res.StatusCode,
 21272  		},
 21273  	}
 21274  	target := &ret
 21275  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21276  		return nil, err
 21277  	}
 21278  	return ret, nil
 21279  }
 21280  
 21281  type ProjectsLocationsAgentsEntityTypesExportCall struct {
 21282  	s                                                      *Service
 21283  	parent                                                 string
 21284  	googleclouddialogflowcxv3beta1exportentitytypesrequest *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest
 21285  	urlParams_                                             gensupport.URLParams
 21286  	ctx_                                                   context.Context
 21287  	header_                                                http.Header
 21288  }
 21289  
 21290  // Export: Exports the selected entity types.
 21291  //
 21292  //   - parent: The name of the parent agent to export entity types. Format:
 21293  //     `projects//locations//agents/`.
 21294  func (r *ProjectsLocationsAgentsEntityTypesService) Export(parent string, googleclouddialogflowcxv3beta1exportentitytypesrequest *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesExportCall {
 21295  	c := &ProjectsLocationsAgentsEntityTypesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21296  	c.parent = parent
 21297  	c.googleclouddialogflowcxv3beta1exportentitytypesrequest = googleclouddialogflowcxv3beta1exportentitytypesrequest
 21298  	return c
 21299  }
 21300  
 21301  // Fields allows partial responses to be retrieved. See
 21302  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21303  // details.
 21304  func (c *ProjectsLocationsAgentsEntityTypesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesExportCall {
 21305  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21306  	return c
 21307  }
 21308  
 21309  // Context sets the context to be used in this call's Do method.
 21310  func (c *ProjectsLocationsAgentsEntityTypesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesExportCall {
 21311  	c.ctx_ = ctx
 21312  	return c
 21313  }
 21314  
 21315  // Header returns a http.Header that can be modified by the caller to add
 21316  // headers to the request.
 21317  func (c *ProjectsLocationsAgentsEntityTypesExportCall) Header() http.Header {
 21318  	if c.header_ == nil {
 21319  		c.header_ = make(http.Header)
 21320  	}
 21321  	return c.header_
 21322  }
 21323  
 21324  func (c *ProjectsLocationsAgentsEntityTypesExportCall) doRequest(alt string) (*http.Response, error) {
 21325  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21326  	var body io.Reader = nil
 21327  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportentitytypesrequest)
 21328  	if err != nil {
 21329  		return nil, err
 21330  	}
 21331  	c.urlParams_.Set("alt", alt)
 21332  	c.urlParams_.Set("prettyPrint", "false")
 21333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes:export")
 21334  	urls += "?" + c.urlParams_.Encode()
 21335  	req, err := http.NewRequest("POST", urls, body)
 21336  	if err != nil {
 21337  		return nil, err
 21338  	}
 21339  	req.Header = reqHeaders
 21340  	googleapi.Expand(req.URL, map[string]string{
 21341  		"parent": c.parent,
 21342  	})
 21343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21344  }
 21345  
 21346  // Do executes the "dialogflow.projects.locations.agents.entityTypes.export" call.
 21347  // Any non-2xx status code is an error. Response headers are in either
 21348  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21349  // returned at all) in error.(*googleapi.Error).Header. Use
 21350  // googleapi.IsNotModified to check whether the returned error was because
 21351  // http.StatusNotModified was returned.
 21352  func (c *ProjectsLocationsAgentsEntityTypesExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21353  	gensupport.SetOptions(c.urlParams_, opts...)
 21354  	res, err := c.doRequest("json")
 21355  	if res != nil && res.StatusCode == http.StatusNotModified {
 21356  		if res.Body != nil {
 21357  			res.Body.Close()
 21358  		}
 21359  		return nil, gensupport.WrapError(&googleapi.Error{
 21360  			Code:   res.StatusCode,
 21361  			Header: res.Header,
 21362  		})
 21363  	}
 21364  	if err != nil {
 21365  		return nil, err
 21366  	}
 21367  	defer googleapi.CloseBody(res)
 21368  	if err := googleapi.CheckResponse(res); err != nil {
 21369  		return nil, gensupport.WrapError(err)
 21370  	}
 21371  	ret := &GoogleLongrunningOperation{
 21372  		ServerResponse: googleapi.ServerResponse{
 21373  			Header:         res.Header,
 21374  			HTTPStatusCode: res.StatusCode,
 21375  		},
 21376  	}
 21377  	target := &ret
 21378  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21379  		return nil, err
 21380  	}
 21381  	return ret, nil
 21382  }
 21383  
 21384  type ProjectsLocationsAgentsEntityTypesGetCall struct {
 21385  	s            *Service
 21386  	name         string
 21387  	urlParams_   gensupport.URLParams
 21388  	ifNoneMatch_ string
 21389  	ctx_         context.Context
 21390  	header_      http.Header
 21391  }
 21392  
 21393  // Get: Retrieves the specified entity type.
 21394  //
 21395  //   - name: The name of the entity type. Format:
 21396  //     `projects//locations//agents//entityTypes/`.
 21397  func (r *ProjectsLocationsAgentsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEntityTypesGetCall {
 21398  	c := &ProjectsLocationsAgentsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21399  	c.name = name
 21400  	return c
 21401  }
 21402  
 21403  // LanguageCode sets the optional parameter "languageCode": The language to
 21404  // retrieve the entity type for. The following fields are language dependent: *
 21405  // `EntityType.entities.value` * `EntityType.entities.synonyms` *
 21406  // `EntityType.excluded_phrases.value` If not specified, the agent's default
 21407  // language is used. Many languages
 21408  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 21409  // supported. Note: languages must be enabled in the agent before they can be
 21410  // used.
 21411  func (c *ProjectsLocationsAgentsEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesGetCall {
 21412  	c.urlParams_.Set("languageCode", languageCode)
 21413  	return c
 21414  }
 21415  
 21416  // Fields allows partial responses to be retrieved. See
 21417  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21418  // details.
 21419  func (c *ProjectsLocationsAgentsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesGetCall {
 21420  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21421  	return c
 21422  }
 21423  
 21424  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21425  // object's ETag matches the given value. This is useful for getting updates
 21426  // only after the object has changed since the last request.
 21427  func (c *ProjectsLocationsAgentsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesGetCall {
 21428  	c.ifNoneMatch_ = entityTag
 21429  	return c
 21430  }
 21431  
 21432  // Context sets the context to be used in this call's Do method.
 21433  func (c *ProjectsLocationsAgentsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesGetCall {
 21434  	c.ctx_ = ctx
 21435  	return c
 21436  }
 21437  
 21438  // Header returns a http.Header that can be modified by the caller to add
 21439  // headers to the request.
 21440  func (c *ProjectsLocationsAgentsEntityTypesGetCall) Header() http.Header {
 21441  	if c.header_ == nil {
 21442  		c.header_ = make(http.Header)
 21443  	}
 21444  	return c.header_
 21445  }
 21446  
 21447  func (c *ProjectsLocationsAgentsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 21448  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21449  	if c.ifNoneMatch_ != "" {
 21450  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21451  	}
 21452  	var body io.Reader = nil
 21453  	c.urlParams_.Set("alt", alt)
 21454  	c.urlParams_.Set("prettyPrint", "false")
 21455  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 21456  	urls += "?" + c.urlParams_.Encode()
 21457  	req, err := http.NewRequest("GET", urls, body)
 21458  	if err != nil {
 21459  		return nil, err
 21460  	}
 21461  	req.Header = reqHeaders
 21462  	googleapi.Expand(req.URL, map[string]string{
 21463  		"name": c.name,
 21464  	})
 21465  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21466  }
 21467  
 21468  // Do executes the "dialogflow.projects.locations.agents.entityTypes.get" call.
 21469  // Any non-2xx status code is an error. Response headers are in either
 21470  // *GoogleCloudDialogflowCxV3beta1EntityType.ServerResponse.Header or (if a
 21471  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21472  // googleapi.IsNotModified to check whether the returned error was because
 21473  // http.StatusNotModified was returned.
 21474  func (c *ProjectsLocationsAgentsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
 21475  	gensupport.SetOptions(c.urlParams_, opts...)
 21476  	res, err := c.doRequest("json")
 21477  	if res != nil && res.StatusCode == http.StatusNotModified {
 21478  		if res.Body != nil {
 21479  			res.Body.Close()
 21480  		}
 21481  		return nil, gensupport.WrapError(&googleapi.Error{
 21482  			Code:   res.StatusCode,
 21483  			Header: res.Header,
 21484  		})
 21485  	}
 21486  	if err != nil {
 21487  		return nil, err
 21488  	}
 21489  	defer googleapi.CloseBody(res)
 21490  	if err := googleapi.CheckResponse(res); err != nil {
 21491  		return nil, gensupport.WrapError(err)
 21492  	}
 21493  	ret := &GoogleCloudDialogflowCxV3beta1EntityType{
 21494  		ServerResponse: googleapi.ServerResponse{
 21495  			Header:         res.Header,
 21496  			HTTPStatusCode: res.StatusCode,
 21497  		},
 21498  	}
 21499  	target := &ret
 21500  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21501  		return nil, err
 21502  	}
 21503  	return ret, nil
 21504  }
 21505  
 21506  type ProjectsLocationsAgentsEntityTypesImportCall struct {
 21507  	s                                                      *Service
 21508  	parent                                                 string
 21509  	googleclouddialogflowcxv3beta1importentitytypesrequest *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest
 21510  	urlParams_                                             gensupport.URLParams
 21511  	ctx_                                                   context.Context
 21512  	header_                                                http.Header
 21513  }
 21514  
 21515  // Import: Imports the specified entitytypes into the agent.
 21516  //
 21517  //   - parent: The agent to import the entity types into. Format:
 21518  //     `projects//locations//agents/`.
 21519  func (r *ProjectsLocationsAgentsEntityTypesService) Import(parent string, googleclouddialogflowcxv3beta1importentitytypesrequest *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesImportCall {
 21520  	c := &ProjectsLocationsAgentsEntityTypesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21521  	c.parent = parent
 21522  	c.googleclouddialogflowcxv3beta1importentitytypesrequest = googleclouddialogflowcxv3beta1importentitytypesrequest
 21523  	return c
 21524  }
 21525  
 21526  // Fields allows partial responses to be retrieved. See
 21527  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21528  // details.
 21529  func (c *ProjectsLocationsAgentsEntityTypesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesImportCall {
 21530  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21531  	return c
 21532  }
 21533  
 21534  // Context sets the context to be used in this call's Do method.
 21535  func (c *ProjectsLocationsAgentsEntityTypesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesImportCall {
 21536  	c.ctx_ = ctx
 21537  	return c
 21538  }
 21539  
 21540  // Header returns a http.Header that can be modified by the caller to add
 21541  // headers to the request.
 21542  func (c *ProjectsLocationsAgentsEntityTypesImportCall) Header() http.Header {
 21543  	if c.header_ == nil {
 21544  		c.header_ = make(http.Header)
 21545  	}
 21546  	return c.header_
 21547  }
 21548  
 21549  func (c *ProjectsLocationsAgentsEntityTypesImportCall) doRequest(alt string) (*http.Response, error) {
 21550  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21551  	var body io.Reader = nil
 21552  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importentitytypesrequest)
 21553  	if err != nil {
 21554  		return nil, err
 21555  	}
 21556  	c.urlParams_.Set("alt", alt)
 21557  	c.urlParams_.Set("prettyPrint", "false")
 21558  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes:import")
 21559  	urls += "?" + c.urlParams_.Encode()
 21560  	req, err := http.NewRequest("POST", urls, body)
 21561  	if err != nil {
 21562  		return nil, err
 21563  	}
 21564  	req.Header = reqHeaders
 21565  	googleapi.Expand(req.URL, map[string]string{
 21566  		"parent": c.parent,
 21567  	})
 21568  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21569  }
 21570  
 21571  // Do executes the "dialogflow.projects.locations.agents.entityTypes.import" call.
 21572  // Any non-2xx status code is an error. Response headers are in either
 21573  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21574  // returned at all) in error.(*googleapi.Error).Header. Use
 21575  // googleapi.IsNotModified to check whether the returned error was because
 21576  // http.StatusNotModified was returned.
 21577  func (c *ProjectsLocationsAgentsEntityTypesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21578  	gensupport.SetOptions(c.urlParams_, opts...)
 21579  	res, err := c.doRequest("json")
 21580  	if res != nil && res.StatusCode == http.StatusNotModified {
 21581  		if res.Body != nil {
 21582  			res.Body.Close()
 21583  		}
 21584  		return nil, gensupport.WrapError(&googleapi.Error{
 21585  			Code:   res.StatusCode,
 21586  			Header: res.Header,
 21587  		})
 21588  	}
 21589  	if err != nil {
 21590  		return nil, err
 21591  	}
 21592  	defer googleapi.CloseBody(res)
 21593  	if err := googleapi.CheckResponse(res); err != nil {
 21594  		return nil, gensupport.WrapError(err)
 21595  	}
 21596  	ret := &GoogleLongrunningOperation{
 21597  		ServerResponse: googleapi.ServerResponse{
 21598  			Header:         res.Header,
 21599  			HTTPStatusCode: res.StatusCode,
 21600  		},
 21601  	}
 21602  	target := &ret
 21603  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21604  		return nil, err
 21605  	}
 21606  	return ret, nil
 21607  }
 21608  
 21609  type ProjectsLocationsAgentsEntityTypesListCall struct {
 21610  	s            *Service
 21611  	parent       string
 21612  	urlParams_   gensupport.URLParams
 21613  	ifNoneMatch_ string
 21614  	ctx_         context.Context
 21615  	header_      http.Header
 21616  }
 21617  
 21618  // List: Returns the list of all entity types in the specified agent.
 21619  //
 21620  //   - parent: The agent to list all entity types for. Format:
 21621  //     `projects//locations//agents/`.
 21622  func (r *ProjectsLocationsAgentsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEntityTypesListCall {
 21623  	c := &ProjectsLocationsAgentsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21624  	c.parent = parent
 21625  	return c
 21626  }
 21627  
 21628  // LanguageCode sets the optional parameter "languageCode": The language to
 21629  // list entity types for. The following fields are language dependent: *
 21630  // `EntityType.entities.value` * `EntityType.entities.synonyms` *
 21631  // `EntityType.excluded_phrases.value` If not specified, the agent's default
 21632  // language is used. Many languages
 21633  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 21634  // supported. Note: languages must be enabled in the agent before they can be
 21635  // used.
 21636  func (c *ProjectsLocationsAgentsEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesListCall {
 21637  	c.urlParams_.Set("languageCode", languageCode)
 21638  	return c
 21639  }
 21640  
 21641  // PageSize sets the optional parameter "pageSize": The maximum number of items
 21642  // to return in a single page. By default 100 and at most 1000.
 21643  func (c *ProjectsLocationsAgentsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEntityTypesListCall {
 21644  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21645  	return c
 21646  }
 21647  
 21648  // PageToken sets the optional parameter "pageToken": The next_page_token value
 21649  // returned from a previous list request.
 21650  func (c *ProjectsLocationsAgentsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEntityTypesListCall {
 21651  	c.urlParams_.Set("pageToken", pageToken)
 21652  	return c
 21653  }
 21654  
 21655  // Fields allows partial responses to be retrieved. See
 21656  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21657  // details.
 21658  func (c *ProjectsLocationsAgentsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesListCall {
 21659  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21660  	return c
 21661  }
 21662  
 21663  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21664  // object's ETag matches the given value. This is useful for getting updates
 21665  // only after the object has changed since the last request.
 21666  func (c *ProjectsLocationsAgentsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesListCall {
 21667  	c.ifNoneMatch_ = entityTag
 21668  	return c
 21669  }
 21670  
 21671  // Context sets the context to be used in this call's Do method.
 21672  func (c *ProjectsLocationsAgentsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesListCall {
 21673  	c.ctx_ = ctx
 21674  	return c
 21675  }
 21676  
 21677  // Header returns a http.Header that can be modified by the caller to add
 21678  // headers to the request.
 21679  func (c *ProjectsLocationsAgentsEntityTypesListCall) Header() http.Header {
 21680  	if c.header_ == nil {
 21681  		c.header_ = make(http.Header)
 21682  	}
 21683  	return c.header_
 21684  }
 21685  
 21686  func (c *ProjectsLocationsAgentsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 21687  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21688  	if c.ifNoneMatch_ != "" {
 21689  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21690  	}
 21691  	var body io.Reader = nil
 21692  	c.urlParams_.Set("alt", alt)
 21693  	c.urlParams_.Set("prettyPrint", "false")
 21694  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
 21695  	urls += "?" + c.urlParams_.Encode()
 21696  	req, err := http.NewRequest("GET", urls, body)
 21697  	if err != nil {
 21698  		return nil, err
 21699  	}
 21700  	req.Header = reqHeaders
 21701  	googleapi.Expand(req.URL, map[string]string{
 21702  		"parent": c.parent,
 21703  	})
 21704  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21705  }
 21706  
 21707  // Do executes the "dialogflow.projects.locations.agents.entityTypes.list" call.
 21708  // Any non-2xx status code is an error. Response headers are in either
 21709  // *GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse.ServerResponse.Header
 21710  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 21711  // Use googleapi.IsNotModified to check whether the returned error was because
 21712  // http.StatusNotModified was returned.
 21713  func (c *ProjectsLocationsAgentsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse, error) {
 21714  	gensupport.SetOptions(c.urlParams_, opts...)
 21715  	res, err := c.doRequest("json")
 21716  	if res != nil && res.StatusCode == http.StatusNotModified {
 21717  		if res.Body != nil {
 21718  			res.Body.Close()
 21719  		}
 21720  		return nil, gensupport.WrapError(&googleapi.Error{
 21721  			Code:   res.StatusCode,
 21722  			Header: res.Header,
 21723  		})
 21724  	}
 21725  	if err != nil {
 21726  		return nil, err
 21727  	}
 21728  	defer googleapi.CloseBody(res)
 21729  	if err := googleapi.CheckResponse(res); err != nil {
 21730  		return nil, gensupport.WrapError(err)
 21731  	}
 21732  	ret := &GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse{
 21733  		ServerResponse: googleapi.ServerResponse{
 21734  			Header:         res.Header,
 21735  			HTTPStatusCode: res.StatusCode,
 21736  		},
 21737  	}
 21738  	target := &ret
 21739  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21740  		return nil, err
 21741  	}
 21742  	return ret, nil
 21743  }
 21744  
 21745  // Pages invokes f for each page of results.
 21746  // A non-nil error returned from f will halt the iteration.
 21747  // The provided context supersedes any context provided to the Context method.
 21748  func (c *ProjectsLocationsAgentsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse) error) error {
 21749  	c.ctx_ = ctx
 21750  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21751  	for {
 21752  		x, err := c.Do()
 21753  		if err != nil {
 21754  			return err
 21755  		}
 21756  		if err := f(x); err != nil {
 21757  			return err
 21758  		}
 21759  		if x.NextPageToken == "" {
 21760  			return nil
 21761  		}
 21762  		c.PageToken(x.NextPageToken)
 21763  	}
 21764  }
 21765  
 21766  type ProjectsLocationsAgentsEntityTypesPatchCall struct {
 21767  	s                                        *Service
 21768  	nameid                                   string
 21769  	googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType
 21770  	urlParams_                               gensupport.URLParams
 21771  	ctx_                                     context.Context
 21772  	header_                                  http.Header
 21773  }
 21774  
 21775  // Patch: Updates the specified entity type. Note: You should always train a
 21776  // flow prior to sending it queries. See the training documentation
 21777  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 21778  //
 21779  //   - name: The unique identifier of the entity type. Required for
 21780  //     EntityTypes.UpdateEntityType. Format:
 21781  //     `projects//locations//agents//entityTypes/`.
 21782  func (r *ProjectsLocationsAgentsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType) *ProjectsLocationsAgentsEntityTypesPatchCall {
 21783  	c := &ProjectsLocationsAgentsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21784  	c.nameid = nameid
 21785  	c.googleclouddialogflowcxv3beta1entitytype = googleclouddialogflowcxv3beta1entitytype
 21786  	return c
 21787  }
 21788  
 21789  // LanguageCode sets the optional parameter "languageCode": The language of the
 21790  // following fields in `entity_type`: * `EntityType.entities.value` *
 21791  // `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not
 21792  // specified, the agent's default language is used. Many languages
 21793  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 21794  // supported. Note: languages must be enabled in the agent before they can be
 21795  // used.
 21796  func (c *ProjectsLocationsAgentsEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesPatchCall {
 21797  	c.urlParams_.Set("languageCode", languageCode)
 21798  	return c
 21799  }
 21800  
 21801  // UpdateMask sets the optional parameter "updateMask": The mask to control
 21802  // which fields get updated.
 21803  func (c *ProjectsLocationsAgentsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEntityTypesPatchCall {
 21804  	c.urlParams_.Set("updateMask", updateMask)
 21805  	return c
 21806  }
 21807  
 21808  // Fields allows partial responses to be retrieved. See
 21809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21810  // details.
 21811  func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesPatchCall {
 21812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21813  	return c
 21814  }
 21815  
 21816  // Context sets the context to be used in this call's Do method.
 21817  func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesPatchCall {
 21818  	c.ctx_ = ctx
 21819  	return c
 21820  }
 21821  
 21822  // Header returns a http.Header that can be modified by the caller to add
 21823  // headers to the request.
 21824  func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Header() http.Header {
 21825  	if c.header_ == nil {
 21826  		c.header_ = make(http.Header)
 21827  	}
 21828  	return c.header_
 21829  }
 21830  
 21831  func (c *ProjectsLocationsAgentsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 21832  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21833  	var body io.Reader = nil
 21834  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1entitytype)
 21835  	if err != nil {
 21836  		return nil, err
 21837  	}
 21838  	c.urlParams_.Set("alt", alt)
 21839  	c.urlParams_.Set("prettyPrint", "false")
 21840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 21841  	urls += "?" + c.urlParams_.Encode()
 21842  	req, err := http.NewRequest("PATCH", urls, body)
 21843  	if err != nil {
 21844  		return nil, err
 21845  	}
 21846  	req.Header = reqHeaders
 21847  	googleapi.Expand(req.URL, map[string]string{
 21848  		"name": c.nameid,
 21849  	})
 21850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21851  }
 21852  
 21853  // Do executes the "dialogflow.projects.locations.agents.entityTypes.patch" call.
 21854  // Any non-2xx status code is an error. Response headers are in either
 21855  // *GoogleCloudDialogflowCxV3beta1EntityType.ServerResponse.Header or (if a
 21856  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21857  // googleapi.IsNotModified to check whether the returned error was because
 21858  // http.StatusNotModified was returned.
 21859  func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
 21860  	gensupport.SetOptions(c.urlParams_, opts...)
 21861  	res, err := c.doRequest("json")
 21862  	if res != nil && res.StatusCode == http.StatusNotModified {
 21863  		if res.Body != nil {
 21864  			res.Body.Close()
 21865  		}
 21866  		return nil, gensupport.WrapError(&googleapi.Error{
 21867  			Code:   res.StatusCode,
 21868  			Header: res.Header,
 21869  		})
 21870  	}
 21871  	if err != nil {
 21872  		return nil, err
 21873  	}
 21874  	defer googleapi.CloseBody(res)
 21875  	if err := googleapi.CheckResponse(res); err != nil {
 21876  		return nil, gensupport.WrapError(err)
 21877  	}
 21878  	ret := &GoogleCloudDialogflowCxV3beta1EntityType{
 21879  		ServerResponse: googleapi.ServerResponse{
 21880  			Header:         res.Header,
 21881  			HTTPStatusCode: res.StatusCode,
 21882  		},
 21883  	}
 21884  	target := &ret
 21885  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21886  		return nil, err
 21887  	}
 21888  	return ret, nil
 21889  }
 21890  
 21891  type ProjectsLocationsAgentsEnvironmentsCreateCall struct {
 21892  	s                                         *Service
 21893  	parent                                    string
 21894  	googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment
 21895  	urlParams_                                gensupport.URLParams
 21896  	ctx_                                      context.Context
 21897  	header_                                   http.Header
 21898  }
 21899  
 21900  // Create: Creates an Environment in the specified Agent. This method is a
 21901  // long-running operation
 21902  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 21903  // The returned `Operation` type has the following method-specific fields: -
 21904  // `metadata`: An empty Struct message
 21905  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 21906  // - `response`: Environment
 21907  //
 21908  //   - parent: The Agent to create an Environment for. Format:
 21909  //     `projects//locations//agents/`.
 21910  func (r *ProjectsLocationsAgentsEnvironmentsService) Create(parent string, googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment) *ProjectsLocationsAgentsEnvironmentsCreateCall {
 21911  	c := &ProjectsLocationsAgentsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21912  	c.parent = parent
 21913  	c.googleclouddialogflowcxv3beta1environment = googleclouddialogflowcxv3beta1environment
 21914  	return c
 21915  }
 21916  
 21917  // Fields allows partial responses to be retrieved. See
 21918  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21919  // details.
 21920  func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsCreateCall {
 21921  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21922  	return c
 21923  }
 21924  
 21925  // Context sets the context to be used in this call's Do method.
 21926  func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsCreateCall {
 21927  	c.ctx_ = ctx
 21928  	return c
 21929  }
 21930  
 21931  // Header returns a http.Header that can be modified by the caller to add
 21932  // headers to the request.
 21933  func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Header() http.Header {
 21934  	if c.header_ == nil {
 21935  		c.header_ = make(http.Header)
 21936  	}
 21937  	return c.header_
 21938  }
 21939  
 21940  func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 21941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21942  	var body io.Reader = nil
 21943  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1environment)
 21944  	if err != nil {
 21945  		return nil, err
 21946  	}
 21947  	c.urlParams_.Set("alt", alt)
 21948  	c.urlParams_.Set("prettyPrint", "false")
 21949  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/environments")
 21950  	urls += "?" + c.urlParams_.Encode()
 21951  	req, err := http.NewRequest("POST", urls, body)
 21952  	if err != nil {
 21953  		return nil, err
 21954  	}
 21955  	req.Header = reqHeaders
 21956  	googleapi.Expand(req.URL, map[string]string{
 21957  		"parent": c.parent,
 21958  	})
 21959  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21960  }
 21961  
 21962  // Do executes the "dialogflow.projects.locations.agents.environments.create" call.
 21963  // Any non-2xx status code is an error. Response headers are in either
 21964  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21965  // returned at all) in error.(*googleapi.Error).Header. Use
 21966  // googleapi.IsNotModified to check whether the returned error was because
 21967  // http.StatusNotModified was returned.
 21968  func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21969  	gensupport.SetOptions(c.urlParams_, opts...)
 21970  	res, err := c.doRequest("json")
 21971  	if res != nil && res.StatusCode == http.StatusNotModified {
 21972  		if res.Body != nil {
 21973  			res.Body.Close()
 21974  		}
 21975  		return nil, gensupport.WrapError(&googleapi.Error{
 21976  			Code:   res.StatusCode,
 21977  			Header: res.Header,
 21978  		})
 21979  	}
 21980  	if err != nil {
 21981  		return nil, err
 21982  	}
 21983  	defer googleapi.CloseBody(res)
 21984  	if err := googleapi.CheckResponse(res); err != nil {
 21985  		return nil, gensupport.WrapError(err)
 21986  	}
 21987  	ret := &GoogleLongrunningOperation{
 21988  		ServerResponse: googleapi.ServerResponse{
 21989  			Header:         res.Header,
 21990  			HTTPStatusCode: res.StatusCode,
 21991  		},
 21992  	}
 21993  	target := &ret
 21994  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21995  		return nil, err
 21996  	}
 21997  	return ret, nil
 21998  }
 21999  
 22000  type ProjectsLocationsAgentsEnvironmentsDeleteCall struct {
 22001  	s          *Service
 22002  	name       string
 22003  	urlParams_ gensupport.URLParams
 22004  	ctx_       context.Context
 22005  	header_    http.Header
 22006  }
 22007  
 22008  // Delete: Deletes the specified Environment.
 22009  //
 22010  //   - name: The name of the Environment to delete. Format:
 22011  //     `projects//locations//agents//environments/`.
 22012  func (r *ProjectsLocationsAgentsEnvironmentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
 22013  	c := &ProjectsLocationsAgentsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22014  	c.name = name
 22015  	return c
 22016  }
 22017  
 22018  // Fields allows partial responses to be retrieved. See
 22019  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22020  // details.
 22021  func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
 22022  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22023  	return c
 22024  }
 22025  
 22026  // Context sets the context to be used in this call's Do method.
 22027  func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
 22028  	c.ctx_ = ctx
 22029  	return c
 22030  }
 22031  
 22032  // Header returns a http.Header that can be modified by the caller to add
 22033  // headers to the request.
 22034  func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Header() http.Header {
 22035  	if c.header_ == nil {
 22036  		c.header_ = make(http.Header)
 22037  	}
 22038  	return c.header_
 22039  }
 22040  
 22041  func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 22042  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22043  	var body io.Reader = nil
 22044  	c.urlParams_.Set("alt", alt)
 22045  	c.urlParams_.Set("prettyPrint", "false")
 22046  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 22047  	urls += "?" + c.urlParams_.Encode()
 22048  	req, err := http.NewRequest("DELETE", urls, body)
 22049  	if err != nil {
 22050  		return nil, err
 22051  	}
 22052  	req.Header = reqHeaders
 22053  	googleapi.Expand(req.URL, map[string]string{
 22054  		"name": c.name,
 22055  	})
 22056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22057  }
 22058  
 22059  // Do executes the "dialogflow.projects.locations.agents.environments.delete" call.
 22060  // Any non-2xx status code is an error. Response headers are in either
 22061  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22062  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22063  // check whether the returned error was because http.StatusNotModified was
 22064  // returned.
 22065  func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22066  	gensupport.SetOptions(c.urlParams_, opts...)
 22067  	res, err := c.doRequest("json")
 22068  	if res != nil && res.StatusCode == http.StatusNotModified {
 22069  		if res.Body != nil {
 22070  			res.Body.Close()
 22071  		}
 22072  		return nil, gensupport.WrapError(&googleapi.Error{
 22073  			Code:   res.StatusCode,
 22074  			Header: res.Header,
 22075  		})
 22076  	}
 22077  	if err != nil {
 22078  		return nil, err
 22079  	}
 22080  	defer googleapi.CloseBody(res)
 22081  	if err := googleapi.CheckResponse(res); err != nil {
 22082  		return nil, gensupport.WrapError(err)
 22083  	}
 22084  	ret := &GoogleProtobufEmpty{
 22085  		ServerResponse: googleapi.ServerResponse{
 22086  			Header:         res.Header,
 22087  			HTTPStatusCode: res.StatusCode,
 22088  		},
 22089  	}
 22090  	target := &ret
 22091  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22092  		return nil, err
 22093  	}
 22094  	return ret, nil
 22095  }
 22096  
 22097  type ProjectsLocationsAgentsEnvironmentsDeployFlowCall struct {
 22098  	s                                               *Service
 22099  	environment                                     string
 22100  	googleclouddialogflowcxv3beta1deployflowrequest *GoogleCloudDialogflowCxV3beta1DeployFlowRequest
 22101  	urlParams_                                      gensupport.URLParams
 22102  	ctx_                                            context.Context
 22103  	header_                                         http.Header
 22104  }
 22105  
 22106  // DeployFlow: Deploys a flow to the specified Environment. This method is a
 22107  // long-running operation
 22108  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 22109  // The returned `Operation` type has the following method-specific fields: -
 22110  // `metadata`: DeployFlowMetadata - `response`: DeployFlowResponse
 22111  //
 22112  //   - environment: The environment to deploy the flow to. Format:
 22113  //     `projects//locations//agents// environments/`.
 22114  func (r *ProjectsLocationsAgentsEnvironmentsService) DeployFlow(environment string, googleclouddialogflowcxv3beta1deployflowrequest *GoogleCloudDialogflowCxV3beta1DeployFlowRequest) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
 22115  	c := &ProjectsLocationsAgentsEnvironmentsDeployFlowCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22116  	c.environment = environment
 22117  	c.googleclouddialogflowcxv3beta1deployflowrequest = googleclouddialogflowcxv3beta1deployflowrequest
 22118  	return c
 22119  }
 22120  
 22121  // Fields allows partial responses to be retrieved. See
 22122  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22123  // details.
 22124  func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
 22125  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22126  	return c
 22127  }
 22128  
 22129  // Context sets the context to be used in this call's Do method.
 22130  func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
 22131  	c.ctx_ = ctx
 22132  	return c
 22133  }
 22134  
 22135  // Header returns a http.Header that can be modified by the caller to add
 22136  // headers to the request.
 22137  func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Header() http.Header {
 22138  	if c.header_ == nil {
 22139  		c.header_ = make(http.Header)
 22140  	}
 22141  	return c.header_
 22142  }
 22143  
 22144  func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) doRequest(alt string) (*http.Response, error) {
 22145  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22146  	var body io.Reader = nil
 22147  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1deployflowrequest)
 22148  	if err != nil {
 22149  		return nil, err
 22150  	}
 22151  	c.urlParams_.Set("alt", alt)
 22152  	c.urlParams_.Set("prettyPrint", "false")
 22153  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+environment}:deployFlow")
 22154  	urls += "?" + c.urlParams_.Encode()
 22155  	req, err := http.NewRequest("POST", urls, body)
 22156  	if err != nil {
 22157  		return nil, err
 22158  	}
 22159  	req.Header = reqHeaders
 22160  	googleapi.Expand(req.URL, map[string]string{
 22161  		"environment": c.environment,
 22162  	})
 22163  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22164  }
 22165  
 22166  // Do executes the "dialogflow.projects.locations.agents.environments.deployFlow" call.
 22167  // Any non-2xx status code is an error. Response headers are in either
 22168  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22169  // returned at all) in error.(*googleapi.Error).Header. Use
 22170  // googleapi.IsNotModified to check whether the returned error was because
 22171  // http.StatusNotModified was returned.
 22172  func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22173  	gensupport.SetOptions(c.urlParams_, opts...)
 22174  	res, err := c.doRequest("json")
 22175  	if res != nil && res.StatusCode == http.StatusNotModified {
 22176  		if res.Body != nil {
 22177  			res.Body.Close()
 22178  		}
 22179  		return nil, gensupport.WrapError(&googleapi.Error{
 22180  			Code:   res.StatusCode,
 22181  			Header: res.Header,
 22182  		})
 22183  	}
 22184  	if err != nil {
 22185  		return nil, err
 22186  	}
 22187  	defer googleapi.CloseBody(res)
 22188  	if err := googleapi.CheckResponse(res); err != nil {
 22189  		return nil, gensupport.WrapError(err)
 22190  	}
 22191  	ret := &GoogleLongrunningOperation{
 22192  		ServerResponse: googleapi.ServerResponse{
 22193  			Header:         res.Header,
 22194  			HTTPStatusCode: res.StatusCode,
 22195  		},
 22196  	}
 22197  	target := &ret
 22198  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22199  		return nil, err
 22200  	}
 22201  	return ret, nil
 22202  }
 22203  
 22204  type ProjectsLocationsAgentsEnvironmentsGetCall struct {
 22205  	s            *Service
 22206  	name         string
 22207  	urlParams_   gensupport.URLParams
 22208  	ifNoneMatch_ string
 22209  	ctx_         context.Context
 22210  	header_      http.Header
 22211  }
 22212  
 22213  // Get: Retrieves the specified Environment.
 22214  //
 22215  //   - name: The name of the Environment. Format:
 22216  //     `projects//locations//agents//environments/`.
 22217  func (r *ProjectsLocationsAgentsEnvironmentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsGetCall {
 22218  	c := &ProjectsLocationsAgentsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22219  	c.name = name
 22220  	return c
 22221  }
 22222  
 22223  // Fields allows partial responses to be retrieved. See
 22224  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22225  // details.
 22226  func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsGetCall {
 22227  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22228  	return c
 22229  }
 22230  
 22231  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22232  // object's ETag matches the given value. This is useful for getting updates
 22233  // only after the object has changed since the last request.
 22234  func (c *ProjectsLocationsAgentsEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsGetCall {
 22235  	c.ifNoneMatch_ = entityTag
 22236  	return c
 22237  }
 22238  
 22239  // Context sets the context to be used in this call's Do method.
 22240  func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsGetCall {
 22241  	c.ctx_ = ctx
 22242  	return c
 22243  }
 22244  
 22245  // Header returns a http.Header that can be modified by the caller to add
 22246  // headers to the request.
 22247  func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Header() http.Header {
 22248  	if c.header_ == nil {
 22249  		c.header_ = make(http.Header)
 22250  	}
 22251  	return c.header_
 22252  }
 22253  
 22254  func (c *ProjectsLocationsAgentsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
 22255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22256  	if c.ifNoneMatch_ != "" {
 22257  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22258  	}
 22259  	var body io.Reader = nil
 22260  	c.urlParams_.Set("alt", alt)
 22261  	c.urlParams_.Set("prettyPrint", "false")
 22262  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 22263  	urls += "?" + c.urlParams_.Encode()
 22264  	req, err := http.NewRequest("GET", urls, body)
 22265  	if err != nil {
 22266  		return nil, err
 22267  	}
 22268  	req.Header = reqHeaders
 22269  	googleapi.Expand(req.URL, map[string]string{
 22270  		"name": c.name,
 22271  	})
 22272  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22273  }
 22274  
 22275  // Do executes the "dialogflow.projects.locations.agents.environments.get" call.
 22276  // Any non-2xx status code is an error. Response headers are in either
 22277  // *GoogleCloudDialogflowCxV3beta1Environment.ServerResponse.Header or (if a
 22278  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22279  // googleapi.IsNotModified to check whether the returned error was because
 22280  // http.StatusNotModified was returned.
 22281  func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Environment, error) {
 22282  	gensupport.SetOptions(c.urlParams_, opts...)
 22283  	res, err := c.doRequest("json")
 22284  	if res != nil && res.StatusCode == http.StatusNotModified {
 22285  		if res.Body != nil {
 22286  			res.Body.Close()
 22287  		}
 22288  		return nil, gensupport.WrapError(&googleapi.Error{
 22289  			Code:   res.StatusCode,
 22290  			Header: res.Header,
 22291  		})
 22292  	}
 22293  	if err != nil {
 22294  		return nil, err
 22295  	}
 22296  	defer googleapi.CloseBody(res)
 22297  	if err := googleapi.CheckResponse(res); err != nil {
 22298  		return nil, gensupport.WrapError(err)
 22299  	}
 22300  	ret := &GoogleCloudDialogflowCxV3beta1Environment{
 22301  		ServerResponse: googleapi.ServerResponse{
 22302  			Header:         res.Header,
 22303  			HTTPStatusCode: res.StatusCode,
 22304  		},
 22305  	}
 22306  	target := &ret
 22307  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22308  		return nil, err
 22309  	}
 22310  	return ret, nil
 22311  }
 22312  
 22313  type ProjectsLocationsAgentsEnvironmentsListCall struct {
 22314  	s            *Service
 22315  	parent       string
 22316  	urlParams_   gensupport.URLParams
 22317  	ifNoneMatch_ string
 22318  	ctx_         context.Context
 22319  	header_      http.Header
 22320  }
 22321  
 22322  // List: Returns the list of all environments in the specified Agent.
 22323  //
 22324  //   - parent: The Agent to list all environments for. Format:
 22325  //     `projects//locations//agents/`.
 22326  func (r *ProjectsLocationsAgentsEnvironmentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsListCall {
 22327  	c := &ProjectsLocationsAgentsEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22328  	c.parent = parent
 22329  	return c
 22330  }
 22331  
 22332  // PageSize sets the optional parameter "pageSize": The maximum number of items
 22333  // to return in a single page. By default 20 and at most 100.
 22334  func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsListCall {
 22335  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22336  	return c
 22337  }
 22338  
 22339  // PageToken sets the optional parameter "pageToken": The next_page_token value
 22340  // returned from a previous list request.
 22341  func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsListCall {
 22342  	c.urlParams_.Set("pageToken", pageToken)
 22343  	return c
 22344  }
 22345  
 22346  // Fields allows partial responses to be retrieved. See
 22347  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22348  // details.
 22349  func (c *ProjectsLocationsAgentsEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsListCall {
 22350  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22351  	return c
 22352  }
 22353  
 22354  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22355  // object's ETag matches the given value. This is useful for getting updates
 22356  // only after the object has changed since the last request.
 22357  func (c *ProjectsLocationsAgentsEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsListCall {
 22358  	c.ifNoneMatch_ = entityTag
 22359  	return c
 22360  }
 22361  
 22362  // Context sets the context to be used in this call's Do method.
 22363  func (c *ProjectsLocationsAgentsEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsListCall {
 22364  	c.ctx_ = ctx
 22365  	return c
 22366  }
 22367  
 22368  // Header returns a http.Header that can be modified by the caller to add
 22369  // headers to the request.
 22370  func (c *ProjectsLocationsAgentsEnvironmentsListCall) Header() http.Header {
 22371  	if c.header_ == nil {
 22372  		c.header_ = make(http.Header)
 22373  	}
 22374  	return c.header_
 22375  }
 22376  
 22377  func (c *ProjectsLocationsAgentsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
 22378  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22379  	if c.ifNoneMatch_ != "" {
 22380  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22381  	}
 22382  	var body io.Reader = nil
 22383  	c.urlParams_.Set("alt", alt)
 22384  	c.urlParams_.Set("prettyPrint", "false")
 22385  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/environments")
 22386  	urls += "?" + c.urlParams_.Encode()
 22387  	req, err := http.NewRequest("GET", urls, body)
 22388  	if err != nil {
 22389  		return nil, err
 22390  	}
 22391  	req.Header = reqHeaders
 22392  	googleapi.Expand(req.URL, map[string]string{
 22393  		"parent": c.parent,
 22394  	})
 22395  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22396  }
 22397  
 22398  // Do executes the "dialogflow.projects.locations.agents.environments.list" call.
 22399  // Any non-2xx status code is an error. Response headers are in either
 22400  // *GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse.ServerResponse.Header
 22401  //
 22402  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 22403  //
 22404  // Use googleapi.IsNotModified to check whether the returned error was because
 22405  // http.StatusNotModified was returned.
 22406  func (c *ProjectsLocationsAgentsEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse, error) {
 22407  	gensupport.SetOptions(c.urlParams_, opts...)
 22408  	res, err := c.doRequest("json")
 22409  	if res != nil && res.StatusCode == http.StatusNotModified {
 22410  		if res.Body != nil {
 22411  			res.Body.Close()
 22412  		}
 22413  		return nil, gensupport.WrapError(&googleapi.Error{
 22414  			Code:   res.StatusCode,
 22415  			Header: res.Header,
 22416  		})
 22417  	}
 22418  	if err != nil {
 22419  		return nil, err
 22420  	}
 22421  	defer googleapi.CloseBody(res)
 22422  	if err := googleapi.CheckResponse(res); err != nil {
 22423  		return nil, gensupport.WrapError(err)
 22424  	}
 22425  	ret := &GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse{
 22426  		ServerResponse: googleapi.ServerResponse{
 22427  			Header:         res.Header,
 22428  			HTTPStatusCode: res.StatusCode,
 22429  		},
 22430  	}
 22431  	target := &ret
 22432  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22433  		return nil, err
 22434  	}
 22435  	return ret, nil
 22436  }
 22437  
 22438  // Pages invokes f for each page of results.
 22439  // A non-nil error returned from f will halt the iteration.
 22440  // The provided context supersedes any context provided to the Context method.
 22441  func (c *ProjectsLocationsAgentsEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse) error) error {
 22442  	c.ctx_ = ctx
 22443  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22444  	for {
 22445  		x, err := c.Do()
 22446  		if err != nil {
 22447  			return err
 22448  		}
 22449  		if err := f(x); err != nil {
 22450  			return err
 22451  		}
 22452  		if x.NextPageToken == "" {
 22453  			return nil
 22454  		}
 22455  		c.PageToken(x.NextPageToken)
 22456  	}
 22457  }
 22458  
 22459  type ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall struct {
 22460  	s            *Service
 22461  	name         string
 22462  	urlParams_   gensupport.URLParams
 22463  	ifNoneMatch_ string
 22464  	ctx_         context.Context
 22465  	header_      http.Header
 22466  }
 22467  
 22468  // LookupEnvironmentHistory: Looks up the history of the specified Environment.
 22469  //
 22470  //   - name: Resource name of the environment to look up the history for. Format:
 22471  //     `projects//locations//agents//environments/`.
 22472  func (r *ProjectsLocationsAgentsEnvironmentsService) LookupEnvironmentHistory(name string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
 22473  	c := &ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22474  	c.name = name
 22475  	return c
 22476  }
 22477  
 22478  // PageSize sets the optional parameter "pageSize": The maximum number of items
 22479  // to return in a single page. By default 100 and at most 1000.
 22480  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
 22481  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22482  	return c
 22483  }
 22484  
 22485  // PageToken sets the optional parameter "pageToken": The next_page_token value
 22486  // returned from a previous list request.
 22487  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
 22488  	c.urlParams_.Set("pageToken", pageToken)
 22489  	return c
 22490  }
 22491  
 22492  // Fields allows partial responses to be retrieved. See
 22493  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22494  // details.
 22495  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
 22496  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22497  	return c
 22498  }
 22499  
 22500  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22501  // object's ETag matches the given value. This is useful for getting updates
 22502  // only after the object has changed since the last request.
 22503  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
 22504  	c.ifNoneMatch_ = entityTag
 22505  	return c
 22506  }
 22507  
 22508  // Context sets the context to be used in this call's Do method.
 22509  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
 22510  	c.ctx_ = ctx
 22511  	return c
 22512  }
 22513  
 22514  // Header returns a http.Header that can be modified by the caller to add
 22515  // headers to the request.
 22516  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Header() http.Header {
 22517  	if c.header_ == nil {
 22518  		c.header_ = make(http.Header)
 22519  	}
 22520  	return c.header_
 22521  }
 22522  
 22523  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) doRequest(alt string) (*http.Response, error) {
 22524  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22525  	if c.ifNoneMatch_ != "" {
 22526  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22527  	}
 22528  	var body io.Reader = nil
 22529  	c.urlParams_.Set("alt", alt)
 22530  	c.urlParams_.Set("prettyPrint", "false")
 22531  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:lookupEnvironmentHistory")
 22532  	urls += "?" + c.urlParams_.Encode()
 22533  	req, err := http.NewRequest("GET", urls, body)
 22534  	if err != nil {
 22535  		return nil, err
 22536  	}
 22537  	req.Header = reqHeaders
 22538  	googleapi.Expand(req.URL, map[string]string{
 22539  		"name": c.name,
 22540  	})
 22541  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22542  }
 22543  
 22544  // Do executes the "dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory" call.
 22545  // Any non-2xx status code is an error. Response headers are in either
 22546  // *GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse.ServerRespons
 22547  // e.Header or (if a response was returned at all) in
 22548  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22549  // whether the returned error was because http.StatusNotModified was returned.
 22550  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse, error) {
 22551  	gensupport.SetOptions(c.urlParams_, opts...)
 22552  	res, err := c.doRequest("json")
 22553  	if res != nil && res.StatusCode == http.StatusNotModified {
 22554  		if res.Body != nil {
 22555  			res.Body.Close()
 22556  		}
 22557  		return nil, gensupport.WrapError(&googleapi.Error{
 22558  			Code:   res.StatusCode,
 22559  			Header: res.Header,
 22560  		})
 22561  	}
 22562  	if err != nil {
 22563  		return nil, err
 22564  	}
 22565  	defer googleapi.CloseBody(res)
 22566  	if err := googleapi.CheckResponse(res); err != nil {
 22567  		return nil, gensupport.WrapError(err)
 22568  	}
 22569  	ret := &GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse{
 22570  		ServerResponse: googleapi.ServerResponse{
 22571  			Header:         res.Header,
 22572  			HTTPStatusCode: res.StatusCode,
 22573  		},
 22574  	}
 22575  	target := &ret
 22576  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22577  		return nil, err
 22578  	}
 22579  	return ret, nil
 22580  }
 22581  
 22582  // Pages invokes f for each page of results.
 22583  // A non-nil error returned from f will halt the iteration.
 22584  // The provided context supersedes any context provided to the Context method.
 22585  func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse) error) error {
 22586  	c.ctx_ = ctx
 22587  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22588  	for {
 22589  		x, err := c.Do()
 22590  		if err != nil {
 22591  			return err
 22592  		}
 22593  		if err := f(x); err != nil {
 22594  			return err
 22595  		}
 22596  		if x.NextPageToken == "" {
 22597  			return nil
 22598  		}
 22599  		c.PageToken(x.NextPageToken)
 22600  	}
 22601  }
 22602  
 22603  type ProjectsLocationsAgentsEnvironmentsPatchCall struct {
 22604  	s                                         *Service
 22605  	name                                      string
 22606  	googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment
 22607  	urlParams_                                gensupport.URLParams
 22608  	ctx_                                      context.Context
 22609  	header_                                   http.Header
 22610  }
 22611  
 22612  // Patch: Updates the specified Environment. This method is a long-running
 22613  // operation
 22614  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 22615  // The returned `Operation` type has the following method-specific fields: -
 22616  // `metadata`: An empty Struct message
 22617  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 22618  // - `response`: Environment
 22619  //
 22620  //   - name: The name of the environment. Format:
 22621  //     `projects//locations//agents//environments/`.
 22622  func (r *ProjectsLocationsAgentsEnvironmentsService) Patch(name string, googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment) *ProjectsLocationsAgentsEnvironmentsPatchCall {
 22623  	c := &ProjectsLocationsAgentsEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22624  	c.name = name
 22625  	c.googleclouddialogflowcxv3beta1environment = googleclouddialogflowcxv3beta1environment
 22626  	return c
 22627  }
 22628  
 22629  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 22630  // control which fields get updated.
 22631  func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsPatchCall {
 22632  	c.urlParams_.Set("updateMask", updateMask)
 22633  	return c
 22634  }
 22635  
 22636  // Fields allows partial responses to be retrieved. See
 22637  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22638  // details.
 22639  func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsPatchCall {
 22640  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22641  	return c
 22642  }
 22643  
 22644  // Context sets the context to be used in this call's Do method.
 22645  func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsPatchCall {
 22646  	c.ctx_ = ctx
 22647  	return c
 22648  }
 22649  
 22650  // Header returns a http.Header that can be modified by the caller to add
 22651  // headers to the request.
 22652  func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Header() http.Header {
 22653  	if c.header_ == nil {
 22654  		c.header_ = make(http.Header)
 22655  	}
 22656  	return c.header_
 22657  }
 22658  
 22659  func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
 22660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22661  	var body io.Reader = nil
 22662  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1environment)
 22663  	if err != nil {
 22664  		return nil, err
 22665  	}
 22666  	c.urlParams_.Set("alt", alt)
 22667  	c.urlParams_.Set("prettyPrint", "false")
 22668  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 22669  	urls += "?" + c.urlParams_.Encode()
 22670  	req, err := http.NewRequest("PATCH", urls, body)
 22671  	if err != nil {
 22672  		return nil, err
 22673  	}
 22674  	req.Header = reqHeaders
 22675  	googleapi.Expand(req.URL, map[string]string{
 22676  		"name": c.name,
 22677  	})
 22678  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22679  }
 22680  
 22681  // Do executes the "dialogflow.projects.locations.agents.environments.patch" call.
 22682  // Any non-2xx status code is an error. Response headers are in either
 22683  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22684  // returned at all) in error.(*googleapi.Error).Header. Use
 22685  // googleapi.IsNotModified to check whether the returned error was because
 22686  // http.StatusNotModified was returned.
 22687  func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22688  	gensupport.SetOptions(c.urlParams_, opts...)
 22689  	res, err := c.doRequest("json")
 22690  	if res != nil && res.StatusCode == http.StatusNotModified {
 22691  		if res.Body != nil {
 22692  			res.Body.Close()
 22693  		}
 22694  		return nil, gensupport.WrapError(&googleapi.Error{
 22695  			Code:   res.StatusCode,
 22696  			Header: res.Header,
 22697  		})
 22698  	}
 22699  	if err != nil {
 22700  		return nil, err
 22701  	}
 22702  	defer googleapi.CloseBody(res)
 22703  	if err := googleapi.CheckResponse(res); err != nil {
 22704  		return nil, gensupport.WrapError(err)
 22705  	}
 22706  	ret := &GoogleLongrunningOperation{
 22707  		ServerResponse: googleapi.ServerResponse{
 22708  			Header:         res.Header,
 22709  			HTTPStatusCode: res.StatusCode,
 22710  		},
 22711  	}
 22712  	target := &ret
 22713  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22714  		return nil, err
 22715  	}
 22716  	return ret, nil
 22717  }
 22718  
 22719  type ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall struct {
 22720  	s                                                      *Service
 22721  	environment                                            string
 22722  	googleclouddialogflowcxv3beta1runcontinuoustestrequest *GoogleCloudDialogflowCxV3beta1RunContinuousTestRequest
 22723  	urlParams_                                             gensupport.URLParams
 22724  	ctx_                                                   context.Context
 22725  	header_                                                http.Header
 22726  }
 22727  
 22728  // RunContinuousTest: Kicks off a continuous test under the specified
 22729  // Environment. This method is a long-running operation
 22730  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 22731  // The returned `Operation` type has the following method-specific fields: -
 22732  // `metadata`: RunContinuousTestMetadata - `response`:
 22733  // RunContinuousTestResponse
 22734  //
 22735  // - environment: Format: `projects//locations//agents//environments/`.
 22736  func (r *ProjectsLocationsAgentsEnvironmentsService) RunContinuousTest(environment string, googleclouddialogflowcxv3beta1runcontinuoustestrequest *GoogleCloudDialogflowCxV3beta1RunContinuousTestRequest) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
 22737  	c := &ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22738  	c.environment = environment
 22739  	c.googleclouddialogflowcxv3beta1runcontinuoustestrequest = googleclouddialogflowcxv3beta1runcontinuoustestrequest
 22740  	return c
 22741  }
 22742  
 22743  // Fields allows partial responses to be retrieved. See
 22744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22745  // details.
 22746  func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
 22747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22748  	return c
 22749  }
 22750  
 22751  // Context sets the context to be used in this call's Do method.
 22752  func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
 22753  	c.ctx_ = ctx
 22754  	return c
 22755  }
 22756  
 22757  // Header returns a http.Header that can be modified by the caller to add
 22758  // headers to the request.
 22759  func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Header() http.Header {
 22760  	if c.header_ == nil {
 22761  		c.header_ = make(http.Header)
 22762  	}
 22763  	return c.header_
 22764  }
 22765  
 22766  func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) doRequest(alt string) (*http.Response, error) {
 22767  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22768  	var body io.Reader = nil
 22769  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1runcontinuoustestrequest)
 22770  	if err != nil {
 22771  		return nil, err
 22772  	}
 22773  	c.urlParams_.Set("alt", alt)
 22774  	c.urlParams_.Set("prettyPrint", "false")
 22775  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+environment}:runContinuousTest")
 22776  	urls += "?" + c.urlParams_.Encode()
 22777  	req, err := http.NewRequest("POST", urls, body)
 22778  	if err != nil {
 22779  		return nil, err
 22780  	}
 22781  	req.Header = reqHeaders
 22782  	googleapi.Expand(req.URL, map[string]string{
 22783  		"environment": c.environment,
 22784  	})
 22785  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22786  }
 22787  
 22788  // Do executes the "dialogflow.projects.locations.agents.environments.runContinuousTest" call.
 22789  // Any non-2xx status code is an error. Response headers are in either
 22790  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22791  // returned at all) in error.(*googleapi.Error).Header. Use
 22792  // googleapi.IsNotModified to check whether the returned error was because
 22793  // http.StatusNotModified was returned.
 22794  func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22795  	gensupport.SetOptions(c.urlParams_, opts...)
 22796  	res, err := c.doRequest("json")
 22797  	if res != nil && res.StatusCode == http.StatusNotModified {
 22798  		if res.Body != nil {
 22799  			res.Body.Close()
 22800  		}
 22801  		return nil, gensupport.WrapError(&googleapi.Error{
 22802  			Code:   res.StatusCode,
 22803  			Header: res.Header,
 22804  		})
 22805  	}
 22806  	if err != nil {
 22807  		return nil, err
 22808  	}
 22809  	defer googleapi.CloseBody(res)
 22810  	if err := googleapi.CheckResponse(res); err != nil {
 22811  		return nil, gensupport.WrapError(err)
 22812  	}
 22813  	ret := &GoogleLongrunningOperation{
 22814  		ServerResponse: googleapi.ServerResponse{
 22815  			Header:         res.Header,
 22816  			HTTPStatusCode: res.StatusCode,
 22817  		},
 22818  	}
 22819  	target := &ret
 22820  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22821  		return nil, err
 22822  	}
 22823  	return ret, nil
 22824  }
 22825  
 22826  type ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall struct {
 22827  	s            *Service
 22828  	parent       string
 22829  	urlParams_   gensupport.URLParams
 22830  	ifNoneMatch_ string
 22831  	ctx_         context.Context
 22832  	header_      http.Header
 22833  }
 22834  
 22835  // List: Fetches a list of continuous test results for a given environment.
 22836  //
 22837  //   - parent: The environment to list results for. Format:
 22838  //     `projects//locations//agents// environments/`.
 22839  func (r *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
 22840  	c := &ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22841  	c.parent = parent
 22842  	return c
 22843  }
 22844  
 22845  // PageSize sets the optional parameter "pageSize": The maximum number of items
 22846  // to return in a single page. By default 100 and at most 1000.
 22847  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
 22848  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22849  	return c
 22850  }
 22851  
 22852  // PageToken sets the optional parameter "pageToken": The next_page_token value
 22853  // returned from a previous list request.
 22854  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
 22855  	c.urlParams_.Set("pageToken", pageToken)
 22856  	return c
 22857  }
 22858  
 22859  // Fields allows partial responses to be retrieved. See
 22860  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22861  // details.
 22862  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
 22863  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22864  	return c
 22865  }
 22866  
 22867  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22868  // object's ETag matches the given value. This is useful for getting updates
 22869  // only after the object has changed since the last request.
 22870  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
 22871  	c.ifNoneMatch_ = entityTag
 22872  	return c
 22873  }
 22874  
 22875  // Context sets the context to be used in this call's Do method.
 22876  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
 22877  	c.ctx_ = ctx
 22878  	return c
 22879  }
 22880  
 22881  // Header returns a http.Header that can be modified by the caller to add
 22882  // headers to the request.
 22883  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Header() http.Header {
 22884  	if c.header_ == nil {
 22885  		c.header_ = make(http.Header)
 22886  	}
 22887  	return c.header_
 22888  }
 22889  
 22890  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) doRequest(alt string) (*http.Response, error) {
 22891  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22892  	if c.ifNoneMatch_ != "" {
 22893  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22894  	}
 22895  	var body io.Reader = nil
 22896  	c.urlParams_.Set("alt", alt)
 22897  	c.urlParams_.Set("prettyPrint", "false")
 22898  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/continuousTestResults")
 22899  	urls += "?" + c.urlParams_.Encode()
 22900  	req, err := http.NewRequest("GET", urls, body)
 22901  	if err != nil {
 22902  		return nil, err
 22903  	}
 22904  	req.Header = reqHeaders
 22905  	googleapi.Expand(req.URL, map[string]string{
 22906  		"parent": c.parent,
 22907  	})
 22908  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22909  }
 22910  
 22911  // Do executes the "dialogflow.projects.locations.agents.environments.continuousTestResults.list" call.
 22912  // Any non-2xx status code is an error. Response headers are in either
 22913  // *GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse.ServerRespon
 22914  // se.Header or (if a response was returned at all) in
 22915  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22916  // whether the returned error was because http.StatusNotModified was returned.
 22917  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse, error) {
 22918  	gensupport.SetOptions(c.urlParams_, opts...)
 22919  	res, err := c.doRequest("json")
 22920  	if res != nil && res.StatusCode == http.StatusNotModified {
 22921  		if res.Body != nil {
 22922  			res.Body.Close()
 22923  		}
 22924  		return nil, gensupport.WrapError(&googleapi.Error{
 22925  			Code:   res.StatusCode,
 22926  			Header: res.Header,
 22927  		})
 22928  	}
 22929  	if err != nil {
 22930  		return nil, err
 22931  	}
 22932  	defer googleapi.CloseBody(res)
 22933  	if err := googleapi.CheckResponse(res); err != nil {
 22934  		return nil, gensupport.WrapError(err)
 22935  	}
 22936  	ret := &GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse{
 22937  		ServerResponse: googleapi.ServerResponse{
 22938  			Header:         res.Header,
 22939  			HTTPStatusCode: res.StatusCode,
 22940  		},
 22941  	}
 22942  	target := &ret
 22943  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22944  		return nil, err
 22945  	}
 22946  	return ret, nil
 22947  }
 22948  
 22949  // Pages invokes f for each page of results.
 22950  // A non-nil error returned from f will halt the iteration.
 22951  // The provided context supersedes any context provided to the Context method.
 22952  func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse) error) error {
 22953  	c.ctx_ = ctx
 22954  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22955  	for {
 22956  		x, err := c.Do()
 22957  		if err != nil {
 22958  			return err
 22959  		}
 22960  		if err := f(x); err != nil {
 22961  			return err
 22962  		}
 22963  		if x.NextPageToken == "" {
 22964  			return nil
 22965  		}
 22966  		c.PageToken(x.NextPageToken)
 22967  	}
 22968  }
 22969  
 22970  type ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall struct {
 22971  	s            *Service
 22972  	name         string
 22973  	urlParams_   gensupport.URLParams
 22974  	ifNoneMatch_ string
 22975  	ctx_         context.Context
 22976  	header_      http.Header
 22977  }
 22978  
 22979  // Get: Retrieves the specified Deployment.
 22980  //
 22981  //   - name: The name of the Deployment. Format:
 22982  //     `projects//locations//agents//environments//deployments/`.
 22983  func (r *ProjectsLocationsAgentsEnvironmentsDeploymentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
 22984  	c := &ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22985  	c.name = name
 22986  	return c
 22987  }
 22988  
 22989  // Fields allows partial responses to be retrieved. See
 22990  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22991  // details.
 22992  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
 22993  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22994  	return c
 22995  }
 22996  
 22997  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22998  // object's ETag matches the given value. This is useful for getting updates
 22999  // only after the object has changed since the last request.
 23000  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
 23001  	c.ifNoneMatch_ = entityTag
 23002  	return c
 23003  }
 23004  
 23005  // Context sets the context to be used in this call's Do method.
 23006  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
 23007  	c.ctx_ = ctx
 23008  	return c
 23009  }
 23010  
 23011  // Header returns a http.Header that can be modified by the caller to add
 23012  // headers to the request.
 23013  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Header() http.Header {
 23014  	if c.header_ == nil {
 23015  		c.header_ = make(http.Header)
 23016  	}
 23017  	return c.header_
 23018  }
 23019  
 23020  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) doRequest(alt string) (*http.Response, error) {
 23021  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23022  	if c.ifNoneMatch_ != "" {
 23023  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23024  	}
 23025  	var body io.Reader = nil
 23026  	c.urlParams_.Set("alt", alt)
 23027  	c.urlParams_.Set("prettyPrint", "false")
 23028  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 23029  	urls += "?" + c.urlParams_.Encode()
 23030  	req, err := http.NewRequest("GET", urls, body)
 23031  	if err != nil {
 23032  		return nil, err
 23033  	}
 23034  	req.Header = reqHeaders
 23035  	googleapi.Expand(req.URL, map[string]string{
 23036  		"name": c.name,
 23037  	})
 23038  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23039  }
 23040  
 23041  // Do executes the "dialogflow.projects.locations.agents.environments.deployments.get" call.
 23042  // Any non-2xx status code is an error. Response headers are in either
 23043  // *GoogleCloudDialogflowCxV3beta1Deployment.ServerResponse.Header or (if a
 23044  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23045  // googleapi.IsNotModified to check whether the returned error was because
 23046  // http.StatusNotModified was returned.
 23047  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Deployment, error) {
 23048  	gensupport.SetOptions(c.urlParams_, opts...)
 23049  	res, err := c.doRequest("json")
 23050  	if res != nil && res.StatusCode == http.StatusNotModified {
 23051  		if res.Body != nil {
 23052  			res.Body.Close()
 23053  		}
 23054  		return nil, gensupport.WrapError(&googleapi.Error{
 23055  			Code:   res.StatusCode,
 23056  			Header: res.Header,
 23057  		})
 23058  	}
 23059  	if err != nil {
 23060  		return nil, err
 23061  	}
 23062  	defer googleapi.CloseBody(res)
 23063  	if err := googleapi.CheckResponse(res); err != nil {
 23064  		return nil, gensupport.WrapError(err)
 23065  	}
 23066  	ret := &GoogleCloudDialogflowCxV3beta1Deployment{
 23067  		ServerResponse: googleapi.ServerResponse{
 23068  			Header:         res.Header,
 23069  			HTTPStatusCode: res.StatusCode,
 23070  		},
 23071  	}
 23072  	target := &ret
 23073  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23074  		return nil, err
 23075  	}
 23076  	return ret, nil
 23077  }
 23078  
 23079  type ProjectsLocationsAgentsEnvironmentsDeploymentsListCall struct {
 23080  	s            *Service
 23081  	parent       string
 23082  	urlParams_   gensupport.URLParams
 23083  	ifNoneMatch_ string
 23084  	ctx_         context.Context
 23085  	header_      http.Header
 23086  }
 23087  
 23088  // List: Returns the list of all deployments in the specified Environment.
 23089  //
 23090  //   - parent: The Environment to list all environments for. Format:
 23091  //     `projects//locations//agents//environments/`.
 23092  func (r *ProjectsLocationsAgentsEnvironmentsDeploymentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
 23093  	c := &ProjectsLocationsAgentsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23094  	c.parent = parent
 23095  	return c
 23096  }
 23097  
 23098  // PageSize sets the optional parameter "pageSize": The maximum number of items
 23099  // to return in a single page. By default 20 and at most 100.
 23100  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
 23101  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23102  	return c
 23103  }
 23104  
 23105  // PageToken sets the optional parameter "pageToken": The next_page_token value
 23106  // returned from a previous list request.
 23107  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
 23108  	c.urlParams_.Set("pageToken", pageToken)
 23109  	return c
 23110  }
 23111  
 23112  // Fields allows partial responses to be retrieved. See
 23113  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23114  // details.
 23115  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
 23116  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23117  	return c
 23118  }
 23119  
 23120  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23121  // object's ETag matches the given value. This is useful for getting updates
 23122  // only after the object has changed since the last request.
 23123  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
 23124  	c.ifNoneMatch_ = entityTag
 23125  	return c
 23126  }
 23127  
 23128  // Context sets the context to be used in this call's Do method.
 23129  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
 23130  	c.ctx_ = ctx
 23131  	return c
 23132  }
 23133  
 23134  // Header returns a http.Header that can be modified by the caller to add
 23135  // headers to the request.
 23136  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Header() http.Header {
 23137  	if c.header_ == nil {
 23138  		c.header_ = make(http.Header)
 23139  	}
 23140  	return c.header_
 23141  }
 23142  
 23143  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
 23144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23145  	if c.ifNoneMatch_ != "" {
 23146  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23147  	}
 23148  	var body io.Reader = nil
 23149  	c.urlParams_.Set("alt", alt)
 23150  	c.urlParams_.Set("prettyPrint", "false")
 23151  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/deployments")
 23152  	urls += "?" + c.urlParams_.Encode()
 23153  	req, err := http.NewRequest("GET", urls, body)
 23154  	if err != nil {
 23155  		return nil, err
 23156  	}
 23157  	req.Header = reqHeaders
 23158  	googleapi.Expand(req.URL, map[string]string{
 23159  		"parent": c.parent,
 23160  	})
 23161  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23162  }
 23163  
 23164  // Do executes the "dialogflow.projects.locations.agents.environments.deployments.list" call.
 23165  // Any non-2xx status code is an error. Response headers are in either
 23166  // *GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse.ServerResponse.Header
 23167  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 23168  // Use googleapi.IsNotModified to check whether the returned error was because
 23169  // http.StatusNotModified was returned.
 23170  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse, error) {
 23171  	gensupport.SetOptions(c.urlParams_, opts...)
 23172  	res, err := c.doRequest("json")
 23173  	if res != nil && res.StatusCode == http.StatusNotModified {
 23174  		if res.Body != nil {
 23175  			res.Body.Close()
 23176  		}
 23177  		return nil, gensupport.WrapError(&googleapi.Error{
 23178  			Code:   res.StatusCode,
 23179  			Header: res.Header,
 23180  		})
 23181  	}
 23182  	if err != nil {
 23183  		return nil, err
 23184  	}
 23185  	defer googleapi.CloseBody(res)
 23186  	if err := googleapi.CheckResponse(res); err != nil {
 23187  		return nil, gensupport.WrapError(err)
 23188  	}
 23189  	ret := &GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse{
 23190  		ServerResponse: googleapi.ServerResponse{
 23191  			Header:         res.Header,
 23192  			HTTPStatusCode: res.StatusCode,
 23193  		},
 23194  	}
 23195  	target := &ret
 23196  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23197  		return nil, err
 23198  	}
 23199  	return ret, nil
 23200  }
 23201  
 23202  // Pages invokes f for each page of results.
 23203  // A non-nil error returned from f will halt the iteration.
 23204  // The provided context supersedes any context provided to the Context method.
 23205  func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse) error) error {
 23206  	c.ctx_ = ctx
 23207  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23208  	for {
 23209  		x, err := c.Do()
 23210  		if err != nil {
 23211  			return err
 23212  		}
 23213  		if err := f(x); err != nil {
 23214  			return err
 23215  		}
 23216  		if x.NextPageToken == "" {
 23217  			return nil
 23218  		}
 23219  		c.PageToken(x.NextPageToken)
 23220  	}
 23221  }
 23222  
 23223  type ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall struct {
 23224  	s                                        *Service
 23225  	parent                                   string
 23226  	googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment
 23227  	urlParams_                               gensupport.URLParams
 23228  	ctx_                                     context.Context
 23229  	header_                                  http.Header
 23230  }
 23231  
 23232  // Create: Creates an Experiment in the specified Environment.
 23233  //
 23234  //   - parent: The Agent to create an Environment for. Format:
 23235  //     `projects//locations//agents//environments/`.
 23236  func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Create(parent string, googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
 23237  	c := &ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23238  	c.parent = parent
 23239  	c.googleclouddialogflowcxv3beta1experiment = googleclouddialogflowcxv3beta1experiment
 23240  	return c
 23241  }
 23242  
 23243  // Fields allows partial responses to be retrieved. See
 23244  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23245  // details.
 23246  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
 23247  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23248  	return c
 23249  }
 23250  
 23251  // Context sets the context to be used in this call's Do method.
 23252  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
 23253  	c.ctx_ = ctx
 23254  	return c
 23255  }
 23256  
 23257  // Header returns a http.Header that can be modified by the caller to add
 23258  // headers to the request.
 23259  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Header() http.Header {
 23260  	if c.header_ == nil {
 23261  		c.header_ = make(http.Header)
 23262  	}
 23263  	return c.header_
 23264  }
 23265  
 23266  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) doRequest(alt string) (*http.Response, error) {
 23267  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23268  	var body io.Reader = nil
 23269  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1experiment)
 23270  	if err != nil {
 23271  		return nil, err
 23272  	}
 23273  	c.urlParams_.Set("alt", alt)
 23274  	c.urlParams_.Set("prettyPrint", "false")
 23275  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/experiments")
 23276  	urls += "?" + c.urlParams_.Encode()
 23277  	req, err := http.NewRequest("POST", urls, body)
 23278  	if err != nil {
 23279  		return nil, err
 23280  	}
 23281  	req.Header = reqHeaders
 23282  	googleapi.Expand(req.URL, map[string]string{
 23283  		"parent": c.parent,
 23284  	})
 23285  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23286  }
 23287  
 23288  // Do executes the "dialogflow.projects.locations.agents.environments.experiments.create" call.
 23289  // Any non-2xx status code is an error. Response headers are in either
 23290  // *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or (if a
 23291  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23292  // googleapi.IsNotModified to check whether the returned error was because
 23293  // http.StatusNotModified was returned.
 23294  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
 23295  	gensupport.SetOptions(c.urlParams_, opts...)
 23296  	res, err := c.doRequest("json")
 23297  	if res != nil && res.StatusCode == http.StatusNotModified {
 23298  		if res.Body != nil {
 23299  			res.Body.Close()
 23300  		}
 23301  		return nil, gensupport.WrapError(&googleapi.Error{
 23302  			Code:   res.StatusCode,
 23303  			Header: res.Header,
 23304  		})
 23305  	}
 23306  	if err != nil {
 23307  		return nil, err
 23308  	}
 23309  	defer googleapi.CloseBody(res)
 23310  	if err := googleapi.CheckResponse(res); err != nil {
 23311  		return nil, gensupport.WrapError(err)
 23312  	}
 23313  	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
 23314  		ServerResponse: googleapi.ServerResponse{
 23315  			Header:         res.Header,
 23316  			HTTPStatusCode: res.StatusCode,
 23317  		},
 23318  	}
 23319  	target := &ret
 23320  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23321  		return nil, err
 23322  	}
 23323  	return ret, nil
 23324  }
 23325  
 23326  type ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall struct {
 23327  	s          *Service
 23328  	name       string
 23329  	urlParams_ gensupport.URLParams
 23330  	ctx_       context.Context
 23331  	header_    http.Header
 23332  }
 23333  
 23334  // Delete: Deletes the specified Experiment.
 23335  //
 23336  //   - name: The name of the Environment to delete. Format:
 23337  //     `projects//locations//agents//environments//experiments/`.
 23338  func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
 23339  	c := &ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23340  	c.name = name
 23341  	return c
 23342  }
 23343  
 23344  // Fields allows partial responses to be retrieved. See
 23345  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23346  // details.
 23347  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
 23348  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23349  	return c
 23350  }
 23351  
 23352  // Context sets the context to be used in this call's Do method.
 23353  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
 23354  	c.ctx_ = ctx
 23355  	return c
 23356  }
 23357  
 23358  // Header returns a http.Header that can be modified by the caller to add
 23359  // headers to the request.
 23360  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Header() http.Header {
 23361  	if c.header_ == nil {
 23362  		c.header_ = make(http.Header)
 23363  	}
 23364  	return c.header_
 23365  }
 23366  
 23367  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 23368  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23369  	var body io.Reader = nil
 23370  	c.urlParams_.Set("alt", alt)
 23371  	c.urlParams_.Set("prettyPrint", "false")
 23372  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 23373  	urls += "?" + c.urlParams_.Encode()
 23374  	req, err := http.NewRequest("DELETE", urls, body)
 23375  	if err != nil {
 23376  		return nil, err
 23377  	}
 23378  	req.Header = reqHeaders
 23379  	googleapi.Expand(req.URL, map[string]string{
 23380  		"name": c.name,
 23381  	})
 23382  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23383  }
 23384  
 23385  // Do executes the "dialogflow.projects.locations.agents.environments.experiments.delete" call.
 23386  // Any non-2xx status code is an error. Response headers are in either
 23387  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 23388  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23389  // check whether the returned error was because http.StatusNotModified was
 23390  // returned.
 23391  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 23392  	gensupport.SetOptions(c.urlParams_, opts...)
 23393  	res, err := c.doRequest("json")
 23394  	if res != nil && res.StatusCode == http.StatusNotModified {
 23395  		if res.Body != nil {
 23396  			res.Body.Close()
 23397  		}
 23398  		return nil, gensupport.WrapError(&googleapi.Error{
 23399  			Code:   res.StatusCode,
 23400  			Header: res.Header,
 23401  		})
 23402  	}
 23403  	if err != nil {
 23404  		return nil, err
 23405  	}
 23406  	defer googleapi.CloseBody(res)
 23407  	if err := googleapi.CheckResponse(res); err != nil {
 23408  		return nil, gensupport.WrapError(err)
 23409  	}
 23410  	ret := &GoogleProtobufEmpty{
 23411  		ServerResponse: googleapi.ServerResponse{
 23412  			Header:         res.Header,
 23413  			HTTPStatusCode: res.StatusCode,
 23414  		},
 23415  	}
 23416  	target := &ret
 23417  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23418  		return nil, err
 23419  	}
 23420  	return ret, nil
 23421  }
 23422  
 23423  type ProjectsLocationsAgentsEnvironmentsExperimentsGetCall struct {
 23424  	s            *Service
 23425  	name         string
 23426  	urlParams_   gensupport.URLParams
 23427  	ifNoneMatch_ string
 23428  	ctx_         context.Context
 23429  	header_      http.Header
 23430  }
 23431  
 23432  // Get: Retrieves the specified Experiment.
 23433  //
 23434  //   - name: The name of the Environment. Format:
 23435  //     `projects//locations//agents//environments//experiments/`.
 23436  func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
 23437  	c := &ProjectsLocationsAgentsEnvironmentsExperimentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23438  	c.name = name
 23439  	return c
 23440  }
 23441  
 23442  // Fields allows partial responses to be retrieved. See
 23443  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23444  // details.
 23445  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
 23446  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23447  	return c
 23448  }
 23449  
 23450  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23451  // object's ETag matches the given value. This is useful for getting updates
 23452  // only after the object has changed since the last request.
 23453  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
 23454  	c.ifNoneMatch_ = entityTag
 23455  	return c
 23456  }
 23457  
 23458  // Context sets the context to be used in this call's Do method.
 23459  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
 23460  	c.ctx_ = ctx
 23461  	return c
 23462  }
 23463  
 23464  // Header returns a http.Header that can be modified by the caller to add
 23465  // headers to the request.
 23466  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Header() http.Header {
 23467  	if c.header_ == nil {
 23468  		c.header_ = make(http.Header)
 23469  	}
 23470  	return c.header_
 23471  }
 23472  
 23473  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) doRequest(alt string) (*http.Response, error) {
 23474  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23475  	if c.ifNoneMatch_ != "" {
 23476  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23477  	}
 23478  	var body io.Reader = nil
 23479  	c.urlParams_.Set("alt", alt)
 23480  	c.urlParams_.Set("prettyPrint", "false")
 23481  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 23482  	urls += "?" + c.urlParams_.Encode()
 23483  	req, err := http.NewRequest("GET", urls, body)
 23484  	if err != nil {
 23485  		return nil, err
 23486  	}
 23487  	req.Header = reqHeaders
 23488  	googleapi.Expand(req.URL, map[string]string{
 23489  		"name": c.name,
 23490  	})
 23491  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23492  }
 23493  
 23494  // Do executes the "dialogflow.projects.locations.agents.environments.experiments.get" call.
 23495  // Any non-2xx status code is an error. Response headers are in either
 23496  // *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or (if a
 23497  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23498  // googleapi.IsNotModified to check whether the returned error was because
 23499  // http.StatusNotModified was returned.
 23500  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
 23501  	gensupport.SetOptions(c.urlParams_, opts...)
 23502  	res, err := c.doRequest("json")
 23503  	if res != nil && res.StatusCode == http.StatusNotModified {
 23504  		if res.Body != nil {
 23505  			res.Body.Close()
 23506  		}
 23507  		return nil, gensupport.WrapError(&googleapi.Error{
 23508  			Code:   res.StatusCode,
 23509  			Header: res.Header,
 23510  		})
 23511  	}
 23512  	if err != nil {
 23513  		return nil, err
 23514  	}
 23515  	defer googleapi.CloseBody(res)
 23516  	if err := googleapi.CheckResponse(res); err != nil {
 23517  		return nil, gensupport.WrapError(err)
 23518  	}
 23519  	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
 23520  		ServerResponse: googleapi.ServerResponse{
 23521  			Header:         res.Header,
 23522  			HTTPStatusCode: res.StatusCode,
 23523  		},
 23524  	}
 23525  	target := &ret
 23526  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23527  		return nil, err
 23528  	}
 23529  	return ret, nil
 23530  }
 23531  
 23532  type ProjectsLocationsAgentsEnvironmentsExperimentsListCall struct {
 23533  	s            *Service
 23534  	parent       string
 23535  	urlParams_   gensupport.URLParams
 23536  	ifNoneMatch_ string
 23537  	ctx_         context.Context
 23538  	header_      http.Header
 23539  }
 23540  
 23541  // List: Returns the list of all experiments in the specified Environment.
 23542  //
 23543  //   - parent: The Environment to list all environments for. Format:
 23544  //     `projects//locations//agents//environments/`.
 23545  func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
 23546  	c := &ProjectsLocationsAgentsEnvironmentsExperimentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23547  	c.parent = parent
 23548  	return c
 23549  }
 23550  
 23551  // PageSize sets the optional parameter "pageSize": The maximum number of items
 23552  // to return in a single page. By default 20 and at most 100.
 23553  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
 23554  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23555  	return c
 23556  }
 23557  
 23558  // PageToken sets the optional parameter "pageToken": The next_page_token value
 23559  // returned from a previous list request.
 23560  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
 23561  	c.urlParams_.Set("pageToken", pageToken)
 23562  	return c
 23563  }
 23564  
 23565  // Fields allows partial responses to be retrieved. See
 23566  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23567  // details.
 23568  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
 23569  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23570  	return c
 23571  }
 23572  
 23573  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23574  // object's ETag matches the given value. This is useful for getting updates
 23575  // only after the object has changed since the last request.
 23576  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
 23577  	c.ifNoneMatch_ = entityTag
 23578  	return c
 23579  }
 23580  
 23581  // Context sets the context to be used in this call's Do method.
 23582  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
 23583  	c.ctx_ = ctx
 23584  	return c
 23585  }
 23586  
 23587  // Header returns a http.Header that can be modified by the caller to add
 23588  // headers to the request.
 23589  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Header() http.Header {
 23590  	if c.header_ == nil {
 23591  		c.header_ = make(http.Header)
 23592  	}
 23593  	return c.header_
 23594  }
 23595  
 23596  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) doRequest(alt string) (*http.Response, error) {
 23597  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23598  	if c.ifNoneMatch_ != "" {
 23599  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23600  	}
 23601  	var body io.Reader = nil
 23602  	c.urlParams_.Set("alt", alt)
 23603  	c.urlParams_.Set("prettyPrint", "false")
 23604  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/experiments")
 23605  	urls += "?" + c.urlParams_.Encode()
 23606  	req, err := http.NewRequest("GET", urls, body)
 23607  	if err != nil {
 23608  		return nil, err
 23609  	}
 23610  	req.Header = reqHeaders
 23611  	googleapi.Expand(req.URL, map[string]string{
 23612  		"parent": c.parent,
 23613  	})
 23614  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23615  }
 23616  
 23617  // Do executes the "dialogflow.projects.locations.agents.environments.experiments.list" call.
 23618  // Any non-2xx status code is an error. Response headers are in either
 23619  // *GoogleCloudDialogflowCxV3beta1ListExperimentsResponse.ServerResponse.Header
 23620  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 23621  // Use googleapi.IsNotModified to check whether the returned error was because
 23622  // http.StatusNotModified was returned.
 23623  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListExperimentsResponse, error) {
 23624  	gensupport.SetOptions(c.urlParams_, opts...)
 23625  	res, err := c.doRequest("json")
 23626  	if res != nil && res.StatusCode == http.StatusNotModified {
 23627  		if res.Body != nil {
 23628  			res.Body.Close()
 23629  		}
 23630  		return nil, gensupport.WrapError(&googleapi.Error{
 23631  			Code:   res.StatusCode,
 23632  			Header: res.Header,
 23633  		})
 23634  	}
 23635  	if err != nil {
 23636  		return nil, err
 23637  	}
 23638  	defer googleapi.CloseBody(res)
 23639  	if err := googleapi.CheckResponse(res); err != nil {
 23640  		return nil, gensupport.WrapError(err)
 23641  	}
 23642  	ret := &GoogleCloudDialogflowCxV3beta1ListExperimentsResponse{
 23643  		ServerResponse: googleapi.ServerResponse{
 23644  			Header:         res.Header,
 23645  			HTTPStatusCode: res.StatusCode,
 23646  		},
 23647  	}
 23648  	target := &ret
 23649  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23650  		return nil, err
 23651  	}
 23652  	return ret, nil
 23653  }
 23654  
 23655  // Pages invokes f for each page of results.
 23656  // A non-nil error returned from f will halt the iteration.
 23657  // The provided context supersedes any context provided to the Context method.
 23658  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListExperimentsResponse) error) error {
 23659  	c.ctx_ = ctx
 23660  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23661  	for {
 23662  		x, err := c.Do()
 23663  		if err != nil {
 23664  			return err
 23665  		}
 23666  		if err := f(x); err != nil {
 23667  			return err
 23668  		}
 23669  		if x.NextPageToken == "" {
 23670  			return nil
 23671  		}
 23672  		c.PageToken(x.NextPageToken)
 23673  	}
 23674  }
 23675  
 23676  type ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall struct {
 23677  	s                                        *Service
 23678  	name                                     string
 23679  	googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment
 23680  	urlParams_                               gensupport.URLParams
 23681  	ctx_                                     context.Context
 23682  	header_                                  http.Header
 23683  }
 23684  
 23685  // Patch: Updates the specified Experiment.
 23686  //
 23687  //   - name: The name of the experiment. Format:
 23688  //     projects//locations//agents//environments//experiments/..
 23689  func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Patch(name string, googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
 23690  	c := &ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23691  	c.name = name
 23692  	c.googleclouddialogflowcxv3beta1experiment = googleclouddialogflowcxv3beta1experiment
 23693  	return c
 23694  }
 23695  
 23696  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 23697  // control which fields get updated.
 23698  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
 23699  	c.urlParams_.Set("updateMask", updateMask)
 23700  	return c
 23701  }
 23702  
 23703  // Fields allows partial responses to be retrieved. See
 23704  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23705  // details.
 23706  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
 23707  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23708  	return c
 23709  }
 23710  
 23711  // Context sets the context to be used in this call's Do method.
 23712  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
 23713  	c.ctx_ = ctx
 23714  	return c
 23715  }
 23716  
 23717  // Header returns a http.Header that can be modified by the caller to add
 23718  // headers to the request.
 23719  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Header() http.Header {
 23720  	if c.header_ == nil {
 23721  		c.header_ = make(http.Header)
 23722  	}
 23723  	return c.header_
 23724  }
 23725  
 23726  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) doRequest(alt string) (*http.Response, error) {
 23727  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23728  	var body io.Reader = nil
 23729  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1experiment)
 23730  	if err != nil {
 23731  		return nil, err
 23732  	}
 23733  	c.urlParams_.Set("alt", alt)
 23734  	c.urlParams_.Set("prettyPrint", "false")
 23735  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 23736  	urls += "?" + c.urlParams_.Encode()
 23737  	req, err := http.NewRequest("PATCH", urls, body)
 23738  	if err != nil {
 23739  		return nil, err
 23740  	}
 23741  	req.Header = reqHeaders
 23742  	googleapi.Expand(req.URL, map[string]string{
 23743  		"name": c.name,
 23744  	})
 23745  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23746  }
 23747  
 23748  // Do executes the "dialogflow.projects.locations.agents.environments.experiments.patch" call.
 23749  // Any non-2xx status code is an error. Response headers are in either
 23750  // *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or (if a
 23751  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23752  // googleapi.IsNotModified to check whether the returned error was because
 23753  // http.StatusNotModified was returned.
 23754  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
 23755  	gensupport.SetOptions(c.urlParams_, opts...)
 23756  	res, err := c.doRequest("json")
 23757  	if res != nil && res.StatusCode == http.StatusNotModified {
 23758  		if res.Body != nil {
 23759  			res.Body.Close()
 23760  		}
 23761  		return nil, gensupport.WrapError(&googleapi.Error{
 23762  			Code:   res.StatusCode,
 23763  			Header: res.Header,
 23764  		})
 23765  	}
 23766  	if err != nil {
 23767  		return nil, err
 23768  	}
 23769  	defer googleapi.CloseBody(res)
 23770  	if err := googleapi.CheckResponse(res); err != nil {
 23771  		return nil, gensupport.WrapError(err)
 23772  	}
 23773  	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
 23774  		ServerResponse: googleapi.ServerResponse{
 23775  			Header:         res.Header,
 23776  			HTTPStatusCode: res.StatusCode,
 23777  		},
 23778  	}
 23779  	target := &ret
 23780  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23781  		return nil, err
 23782  	}
 23783  	return ret, nil
 23784  }
 23785  
 23786  type ProjectsLocationsAgentsEnvironmentsExperimentsStartCall struct {
 23787  	s                                                    *Service
 23788  	name                                                 string
 23789  	googleclouddialogflowcxv3beta1startexperimentrequest *GoogleCloudDialogflowCxV3beta1StartExperimentRequest
 23790  	urlParams_                                           gensupport.URLParams
 23791  	ctx_                                                 context.Context
 23792  	header_                                              http.Header
 23793  }
 23794  
 23795  // Start: Starts the specified Experiment. This rpc only changes the state of
 23796  // experiment from PENDING to RUNNING.
 23797  //
 23798  //   - name: Resource name of the experiment to start. Format:
 23799  //     `projects//locations//agents//environments//experiments/`.
 23800  func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Start(name string, googleclouddialogflowcxv3beta1startexperimentrequest *GoogleCloudDialogflowCxV3beta1StartExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
 23801  	c := &ProjectsLocationsAgentsEnvironmentsExperimentsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23802  	c.name = name
 23803  	c.googleclouddialogflowcxv3beta1startexperimentrequest = googleclouddialogflowcxv3beta1startexperimentrequest
 23804  	return c
 23805  }
 23806  
 23807  // Fields allows partial responses to be retrieved. See
 23808  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23809  // details.
 23810  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
 23811  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23812  	return c
 23813  }
 23814  
 23815  // Context sets the context to be used in this call's Do method.
 23816  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
 23817  	c.ctx_ = ctx
 23818  	return c
 23819  }
 23820  
 23821  // Header returns a http.Header that can be modified by the caller to add
 23822  // headers to the request.
 23823  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Header() http.Header {
 23824  	if c.header_ == nil {
 23825  		c.header_ = make(http.Header)
 23826  	}
 23827  	return c.header_
 23828  }
 23829  
 23830  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) doRequest(alt string) (*http.Response, error) {
 23831  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23832  	var body io.Reader = nil
 23833  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1startexperimentrequest)
 23834  	if err != nil {
 23835  		return nil, err
 23836  	}
 23837  	c.urlParams_.Set("alt", alt)
 23838  	c.urlParams_.Set("prettyPrint", "false")
 23839  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:start")
 23840  	urls += "?" + c.urlParams_.Encode()
 23841  	req, err := http.NewRequest("POST", urls, body)
 23842  	if err != nil {
 23843  		return nil, err
 23844  	}
 23845  	req.Header = reqHeaders
 23846  	googleapi.Expand(req.URL, map[string]string{
 23847  		"name": c.name,
 23848  	})
 23849  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23850  }
 23851  
 23852  // Do executes the "dialogflow.projects.locations.agents.environments.experiments.start" call.
 23853  // Any non-2xx status code is an error. Response headers are in either
 23854  // *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or (if a
 23855  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23856  // googleapi.IsNotModified to check whether the returned error was because
 23857  // http.StatusNotModified was returned.
 23858  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
 23859  	gensupport.SetOptions(c.urlParams_, opts...)
 23860  	res, err := c.doRequest("json")
 23861  	if res != nil && res.StatusCode == http.StatusNotModified {
 23862  		if res.Body != nil {
 23863  			res.Body.Close()
 23864  		}
 23865  		return nil, gensupport.WrapError(&googleapi.Error{
 23866  			Code:   res.StatusCode,
 23867  			Header: res.Header,
 23868  		})
 23869  	}
 23870  	if err != nil {
 23871  		return nil, err
 23872  	}
 23873  	defer googleapi.CloseBody(res)
 23874  	if err := googleapi.CheckResponse(res); err != nil {
 23875  		return nil, gensupport.WrapError(err)
 23876  	}
 23877  	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
 23878  		ServerResponse: googleapi.ServerResponse{
 23879  			Header:         res.Header,
 23880  			HTTPStatusCode: res.StatusCode,
 23881  		},
 23882  	}
 23883  	target := &ret
 23884  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23885  		return nil, err
 23886  	}
 23887  	return ret, nil
 23888  }
 23889  
 23890  type ProjectsLocationsAgentsEnvironmentsExperimentsStopCall struct {
 23891  	s                                                   *Service
 23892  	name                                                string
 23893  	googleclouddialogflowcxv3beta1stopexperimentrequest *GoogleCloudDialogflowCxV3beta1StopExperimentRequest
 23894  	urlParams_                                          gensupport.URLParams
 23895  	ctx_                                                context.Context
 23896  	header_                                             http.Header
 23897  }
 23898  
 23899  // Stop: Stops the specified Experiment. This rpc only changes the state of
 23900  // experiment from RUNNING to DONE.
 23901  //
 23902  //   - name: Resource name of the experiment to stop. Format:
 23903  //     `projects//locations//agents//environments//experiments/`.
 23904  func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Stop(name string, googleclouddialogflowcxv3beta1stopexperimentrequest *GoogleCloudDialogflowCxV3beta1StopExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
 23905  	c := &ProjectsLocationsAgentsEnvironmentsExperimentsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23906  	c.name = name
 23907  	c.googleclouddialogflowcxv3beta1stopexperimentrequest = googleclouddialogflowcxv3beta1stopexperimentrequest
 23908  	return c
 23909  }
 23910  
 23911  // Fields allows partial responses to be retrieved. See
 23912  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23913  // details.
 23914  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
 23915  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23916  	return c
 23917  }
 23918  
 23919  // Context sets the context to be used in this call's Do method.
 23920  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
 23921  	c.ctx_ = ctx
 23922  	return c
 23923  }
 23924  
 23925  // Header returns a http.Header that can be modified by the caller to add
 23926  // headers to the request.
 23927  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Header() http.Header {
 23928  	if c.header_ == nil {
 23929  		c.header_ = make(http.Header)
 23930  	}
 23931  	return c.header_
 23932  }
 23933  
 23934  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) doRequest(alt string) (*http.Response, error) {
 23935  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23936  	var body io.Reader = nil
 23937  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1stopexperimentrequest)
 23938  	if err != nil {
 23939  		return nil, err
 23940  	}
 23941  	c.urlParams_.Set("alt", alt)
 23942  	c.urlParams_.Set("prettyPrint", "false")
 23943  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:stop")
 23944  	urls += "?" + c.urlParams_.Encode()
 23945  	req, err := http.NewRequest("POST", urls, body)
 23946  	if err != nil {
 23947  		return nil, err
 23948  	}
 23949  	req.Header = reqHeaders
 23950  	googleapi.Expand(req.URL, map[string]string{
 23951  		"name": c.name,
 23952  	})
 23953  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23954  }
 23955  
 23956  // Do executes the "dialogflow.projects.locations.agents.environments.experiments.stop" call.
 23957  // Any non-2xx status code is an error. Response headers are in either
 23958  // *GoogleCloudDialogflowCxV3beta1Experiment.ServerResponse.Header or (if a
 23959  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23960  // googleapi.IsNotModified to check whether the returned error was because
 23961  // http.StatusNotModified was returned.
 23962  func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
 23963  	gensupport.SetOptions(c.urlParams_, opts...)
 23964  	res, err := c.doRequest("json")
 23965  	if res != nil && res.StatusCode == http.StatusNotModified {
 23966  		if res.Body != nil {
 23967  			res.Body.Close()
 23968  		}
 23969  		return nil, gensupport.WrapError(&googleapi.Error{
 23970  			Code:   res.StatusCode,
 23971  			Header: res.Header,
 23972  		})
 23973  	}
 23974  	if err != nil {
 23975  		return nil, err
 23976  	}
 23977  	defer googleapi.CloseBody(res)
 23978  	if err := googleapi.CheckResponse(res); err != nil {
 23979  		return nil, gensupport.WrapError(err)
 23980  	}
 23981  	ret := &GoogleCloudDialogflowCxV3beta1Experiment{
 23982  		ServerResponse: googleapi.ServerResponse{
 23983  			Header:         res.Header,
 23984  			HTTPStatusCode: res.StatusCode,
 23985  		},
 23986  	}
 23987  	target := &ret
 23988  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23989  		return nil, err
 23990  	}
 23991  	return ret, nil
 23992  }
 23993  
 23994  type ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall struct {
 23995  	s                                                 *Service
 23996  	sessionid                                         string
 23997  	googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
 23998  	urlParams_                                        gensupport.URLParams
 23999  	ctx_                                              context.Context
 24000  	header_                                           http.Header
 24001  }
 24002  
 24003  // DetectIntent: Processes a natural language query and returns structured,
 24004  // actionable data as a result. This method is not idempotent, because it may
 24005  // cause session entity types to be updated, which in turn might affect results
 24006  // of future queries. Note: Always use agent versions for production traffic.
 24007  // See Versions and environments
 24008  // (https://cloud.google.com/dialogflow/cx/docs/concept/version).
 24009  //
 24010  //   - session: The name of the session this query is sent to. Format:
 24011  //     `projects//locations//agents//sessions/` or
 24012  //     `projects//locations//agents//environments//sessions/`. If `Environment
 24013  //     ID` is not specified, we assume default 'draft' environment. It's up to
 24014  //     the API caller to choose an appropriate `Session ID`. It can be a random
 24015  //     number or some type of session identifiers (preferably hashed). The length
 24016  //     of the `Session ID` must not exceed 36 characters. For more information,
 24017  //     see the sessions guide
 24018  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session). Note:
 24019  //     Always use agent versions for production traffic. See Versions and
 24020  //     environments
 24021  //     (https://cloud.google.com/dialogflow/cx/docs/concept/version).
 24022  func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
 24023  	c := &ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24024  	c.sessionid = sessionid
 24025  	c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
 24026  	return c
 24027  }
 24028  
 24029  // Fields allows partial responses to be retrieved. See
 24030  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24031  // details.
 24032  func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
 24033  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24034  	return c
 24035  }
 24036  
 24037  // Context sets the context to be used in this call's Do method.
 24038  func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
 24039  	c.ctx_ = ctx
 24040  	return c
 24041  }
 24042  
 24043  // Header returns a http.Header that can be modified by the caller to add
 24044  // headers to the request.
 24045  func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Header() http.Header {
 24046  	if c.header_ == nil {
 24047  		c.header_ = make(http.Header)
 24048  	}
 24049  	return c.header_
 24050  }
 24051  
 24052  func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 24053  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24054  	var body io.Reader = nil
 24055  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
 24056  	if err != nil {
 24057  		return nil, err
 24058  	}
 24059  	c.urlParams_.Set("alt", alt)
 24060  	c.urlParams_.Set("prettyPrint", "false")
 24061  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:detectIntent")
 24062  	urls += "?" + c.urlParams_.Encode()
 24063  	req, err := http.NewRequest("POST", urls, body)
 24064  	if err != nil {
 24065  		return nil, err
 24066  	}
 24067  	req.Header = reqHeaders
 24068  	googleapi.Expand(req.URL, map[string]string{
 24069  		"session": c.sessionid,
 24070  	})
 24071  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24072  }
 24073  
 24074  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.detectIntent" call.
 24075  // Any non-2xx status code is an error. Response headers are in either
 24076  // *GoogleCloudDialogflowCxV3beta1DetectIntentResponse.ServerResponse.Header or
 24077  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24078  // googleapi.IsNotModified to check whether the returned error was because
 24079  // http.StatusNotModified was returned.
 24080  func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
 24081  	gensupport.SetOptions(c.urlParams_, opts...)
 24082  	res, err := c.doRequest("json")
 24083  	if res != nil && res.StatusCode == http.StatusNotModified {
 24084  		if res.Body != nil {
 24085  			res.Body.Close()
 24086  		}
 24087  		return nil, gensupport.WrapError(&googleapi.Error{
 24088  			Code:   res.StatusCode,
 24089  			Header: res.Header,
 24090  		})
 24091  	}
 24092  	if err != nil {
 24093  		return nil, err
 24094  	}
 24095  	defer googleapi.CloseBody(res)
 24096  	if err := googleapi.CheckResponse(res); err != nil {
 24097  		return nil, gensupport.WrapError(err)
 24098  	}
 24099  	ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
 24100  		ServerResponse: googleapi.ServerResponse{
 24101  			Header:         res.Header,
 24102  			HTTPStatusCode: res.StatusCode,
 24103  		},
 24104  	}
 24105  	target := &ret
 24106  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24107  		return nil, err
 24108  	}
 24109  	return ret, nil
 24110  }
 24111  
 24112  type ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall struct {
 24113  	s                                                  *Service
 24114  	sessionid                                          string
 24115  	googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
 24116  	urlParams_                                         gensupport.URLParams
 24117  	ctx_                                               context.Context
 24118  	header_                                            http.Header
 24119  }
 24120  
 24121  // FulfillIntent: Fulfills a matched intent returned by MatchIntent. Must be
 24122  // called after MatchIntent, with input from MatchIntentResponse. Otherwise,
 24123  // the behavior is undefined.
 24124  //
 24125  //   - session: The name of the session this query is sent to. Format:
 24126  //     `projects//locations//agents//sessions/` or
 24127  //     `projects//locations//agents//environments//sessions/`. If `Environment
 24128  //     ID` is not specified, we assume default 'draft' environment. It's up to
 24129  //     the API caller to choose an appropriate `Session ID`. It can be a random
 24130  //     number or some type of session identifiers (preferably hashed). The length
 24131  //     of the `Session ID` must not exceed 36 characters. For more information,
 24132  //     see the sessions guide
 24133  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session).
 24134  func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
 24135  	c := &ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24136  	c.sessionid = sessionid
 24137  	c.googleclouddialogflowcxv3beta1fulfillintentrequest = googleclouddialogflowcxv3beta1fulfillintentrequest
 24138  	return c
 24139  }
 24140  
 24141  // Fields allows partial responses to be retrieved. See
 24142  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24143  // details.
 24144  func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
 24145  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24146  	return c
 24147  }
 24148  
 24149  // Context sets the context to be used in this call's Do method.
 24150  func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
 24151  	c.ctx_ = ctx
 24152  	return c
 24153  }
 24154  
 24155  // Header returns a http.Header that can be modified by the caller to add
 24156  // headers to the request.
 24157  func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Header() http.Header {
 24158  	if c.header_ == nil {
 24159  		c.header_ = make(http.Header)
 24160  	}
 24161  	return c.header_
 24162  }
 24163  
 24164  func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
 24165  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24166  	var body io.Reader = nil
 24167  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1fulfillintentrequest)
 24168  	if err != nil {
 24169  		return nil, err
 24170  	}
 24171  	c.urlParams_.Set("alt", alt)
 24172  	c.urlParams_.Set("prettyPrint", "false")
 24173  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:fulfillIntent")
 24174  	urls += "?" + c.urlParams_.Encode()
 24175  	req, err := http.NewRequest("POST", urls, body)
 24176  	if err != nil {
 24177  		return nil, err
 24178  	}
 24179  	req.Header = reqHeaders
 24180  	googleapi.Expand(req.URL, map[string]string{
 24181  		"session": c.sessionid,
 24182  	})
 24183  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24184  }
 24185  
 24186  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.fulfillIntent" call.
 24187  // Any non-2xx status code is an error. Response headers are in either
 24188  // *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse.ServerResponse.Header
 24189  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 24190  // Use googleapi.IsNotModified to check whether the returned error was because
 24191  // http.StatusNotModified was returned.
 24192  func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FulfillIntentResponse, error) {
 24193  	gensupport.SetOptions(c.urlParams_, opts...)
 24194  	res, err := c.doRequest("json")
 24195  	if res != nil && res.StatusCode == http.StatusNotModified {
 24196  		if res.Body != nil {
 24197  			res.Body.Close()
 24198  		}
 24199  		return nil, gensupport.WrapError(&googleapi.Error{
 24200  			Code:   res.StatusCode,
 24201  			Header: res.Header,
 24202  		})
 24203  	}
 24204  	if err != nil {
 24205  		return nil, err
 24206  	}
 24207  	defer googleapi.CloseBody(res)
 24208  	if err := googleapi.CheckResponse(res); err != nil {
 24209  		return nil, gensupport.WrapError(err)
 24210  	}
 24211  	ret := &GoogleCloudDialogflowCxV3beta1FulfillIntentResponse{
 24212  		ServerResponse: googleapi.ServerResponse{
 24213  			Header:         res.Header,
 24214  			HTTPStatusCode: res.StatusCode,
 24215  		},
 24216  	}
 24217  	target := &ret
 24218  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24219  		return nil, err
 24220  	}
 24221  	return ret, nil
 24222  }
 24223  
 24224  type ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall struct {
 24225  	s                                                *Service
 24226  	sessionid                                        string
 24227  	googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest
 24228  	urlParams_                                       gensupport.URLParams
 24229  	ctx_                                             context.Context
 24230  	header_                                          http.Header
 24231  }
 24232  
 24233  // MatchIntent: Returns preliminary intent match results, doesn't change the
 24234  // session status.
 24235  //
 24236  //   - session: The name of the session this query is sent to. Format:
 24237  //     `projects//locations//agents//sessions/` or
 24238  //     `projects//locations//agents//environments//sessions/`. If `Environment
 24239  //     ID` is not specified, we assume default 'draft' environment. It's up to
 24240  //     the API caller to choose an appropriate `Session ID`. It can be a random
 24241  //     number or some type of session identifiers (preferably hashed). The length
 24242  //     of the `Session ID` must not exceed 36 characters. For more information,
 24243  //     see the sessions guide
 24244  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session).
 24245  func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
 24246  	c := &ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24247  	c.sessionid = sessionid
 24248  	c.googleclouddialogflowcxv3beta1matchintentrequest = googleclouddialogflowcxv3beta1matchintentrequest
 24249  	return c
 24250  }
 24251  
 24252  // Fields allows partial responses to be retrieved. See
 24253  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24254  // details.
 24255  func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
 24256  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24257  	return c
 24258  }
 24259  
 24260  // Context sets the context to be used in this call's Do method.
 24261  func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
 24262  	c.ctx_ = ctx
 24263  	return c
 24264  }
 24265  
 24266  // Header returns a http.Header that can be modified by the caller to add
 24267  // headers to the request.
 24268  func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Header() http.Header {
 24269  	if c.header_ == nil {
 24270  		c.header_ = make(http.Header)
 24271  	}
 24272  	return c.header_
 24273  }
 24274  
 24275  func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
 24276  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24277  	var body io.Reader = nil
 24278  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1matchintentrequest)
 24279  	if err != nil {
 24280  		return nil, err
 24281  	}
 24282  	c.urlParams_.Set("alt", alt)
 24283  	c.urlParams_.Set("prettyPrint", "false")
 24284  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:matchIntent")
 24285  	urls += "?" + c.urlParams_.Encode()
 24286  	req, err := http.NewRequest("POST", urls, body)
 24287  	if err != nil {
 24288  		return nil, err
 24289  	}
 24290  	req.Header = reqHeaders
 24291  	googleapi.Expand(req.URL, map[string]string{
 24292  		"session": c.sessionid,
 24293  	})
 24294  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24295  }
 24296  
 24297  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.matchIntent" call.
 24298  // Any non-2xx status code is an error. Response headers are in either
 24299  // *GoogleCloudDialogflowCxV3beta1MatchIntentResponse.ServerResponse.Header or
 24300  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24301  // googleapi.IsNotModified to check whether the returned error was because
 24302  // http.StatusNotModified was returned.
 24303  func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1MatchIntentResponse, error) {
 24304  	gensupport.SetOptions(c.urlParams_, opts...)
 24305  	res, err := c.doRequest("json")
 24306  	if res != nil && res.StatusCode == http.StatusNotModified {
 24307  		if res.Body != nil {
 24308  			res.Body.Close()
 24309  		}
 24310  		return nil, gensupport.WrapError(&googleapi.Error{
 24311  			Code:   res.StatusCode,
 24312  			Header: res.Header,
 24313  		})
 24314  	}
 24315  	if err != nil {
 24316  		return nil, err
 24317  	}
 24318  	defer googleapi.CloseBody(res)
 24319  	if err := googleapi.CheckResponse(res); err != nil {
 24320  		return nil, gensupport.WrapError(err)
 24321  	}
 24322  	ret := &GoogleCloudDialogflowCxV3beta1MatchIntentResponse{
 24323  		ServerResponse: googleapi.ServerResponse{
 24324  			Header:         res.Header,
 24325  			HTTPStatusCode: res.StatusCode,
 24326  		},
 24327  	}
 24328  	target := &ret
 24329  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24330  		return nil, err
 24331  	}
 24332  	return ret, nil
 24333  }
 24334  
 24335  type ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall struct {
 24336  	s                                                 *Service
 24337  	sessionid                                         string
 24338  	googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
 24339  	urlParams_                                        gensupport.URLParams
 24340  	ctx_                                              context.Context
 24341  	header_                                           http.Header
 24342  }
 24343  
 24344  // ServerStreamingDetectIntent: Processes a natural language query and returns
 24345  // structured, actionable data as a result through server-side streaming.
 24346  // Server-side streaming allows Dialogflow to send partial responses
 24347  // (https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response)
 24348  // earlier in a single request.
 24349  //
 24350  //   - session: The name of the session this query is sent to. Format:
 24351  //     `projects//locations//agents//sessions/` or
 24352  //     `projects//locations//agents//environments//sessions/`. If `Environment
 24353  //     ID` is not specified, we assume default 'draft' environment. It's up to
 24354  //     the API caller to choose an appropriate `Session ID`. It can be a random
 24355  //     number or some type of session identifiers (preferably hashed). The length
 24356  //     of the `Session ID` must not exceed 36 characters. For more information,
 24357  //     see the sessions guide
 24358  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session). Note:
 24359  //     Always use agent versions for production traffic. See Versions and
 24360  //     environments
 24361  //     (https://cloud.google.com/dialogflow/cx/docs/concept/version).
 24362  func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) ServerStreamingDetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
 24363  	c := &ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24364  	c.sessionid = sessionid
 24365  	c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
 24366  	return c
 24367  }
 24368  
 24369  // Fields allows partial responses to be retrieved. See
 24370  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24371  // details.
 24372  func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
 24373  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24374  	return c
 24375  }
 24376  
 24377  // Context sets the context to be used in this call's Do method.
 24378  func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
 24379  	c.ctx_ = ctx
 24380  	return c
 24381  }
 24382  
 24383  // Header returns a http.Header that can be modified by the caller to add
 24384  // headers to the request.
 24385  func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Header() http.Header {
 24386  	if c.header_ == nil {
 24387  		c.header_ = make(http.Header)
 24388  	}
 24389  	return c.header_
 24390  }
 24391  
 24392  func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 24393  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24394  	var body io.Reader = nil
 24395  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
 24396  	if err != nil {
 24397  		return nil, err
 24398  	}
 24399  	c.urlParams_.Set("alt", alt)
 24400  	c.urlParams_.Set("prettyPrint", "false")
 24401  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:serverStreamingDetectIntent")
 24402  	urls += "?" + c.urlParams_.Encode()
 24403  	req, err := http.NewRequest("POST", urls, body)
 24404  	if err != nil {
 24405  		return nil, err
 24406  	}
 24407  	req.Header = reqHeaders
 24408  	googleapi.Expand(req.URL, map[string]string{
 24409  		"session": c.sessionid,
 24410  	})
 24411  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24412  }
 24413  
 24414  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.serverStreamingDetectIntent" call.
 24415  // Any non-2xx status code is an error. Response headers are in either
 24416  // *GoogleCloudDialogflowCxV3beta1DetectIntentResponse.ServerResponse.Header or
 24417  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24418  // googleapi.IsNotModified to check whether the returned error was because
 24419  // http.StatusNotModified was returned.
 24420  func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
 24421  	gensupport.SetOptions(c.urlParams_, opts...)
 24422  	res, err := c.doRequest("json")
 24423  	if res != nil && res.StatusCode == http.StatusNotModified {
 24424  		if res.Body != nil {
 24425  			res.Body.Close()
 24426  		}
 24427  		return nil, gensupport.WrapError(&googleapi.Error{
 24428  			Code:   res.StatusCode,
 24429  			Header: res.Header,
 24430  		})
 24431  	}
 24432  	if err != nil {
 24433  		return nil, err
 24434  	}
 24435  	defer googleapi.CloseBody(res)
 24436  	if err := googleapi.CheckResponse(res); err != nil {
 24437  		return nil, gensupport.WrapError(err)
 24438  	}
 24439  	ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
 24440  		ServerResponse: googleapi.ServerResponse{
 24441  			Header:         res.Header,
 24442  			HTTPStatusCode: res.StatusCode,
 24443  		},
 24444  	}
 24445  	target := &ret
 24446  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24447  		return nil, err
 24448  	}
 24449  	return ret, nil
 24450  }
 24451  
 24452  type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall struct {
 24453  	s                                               *Service
 24454  	parent                                          string
 24455  	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
 24456  	urlParams_                                      gensupport.URLParams
 24457  	ctx_                                            context.Context
 24458  	header_                                         http.Header
 24459  }
 24460  
 24461  // Create: Creates a session entity type.
 24462  //
 24463  //   - parent: The session to create a session entity type for. Format:
 24464  //     `projects//locations//agents//sessions/` or
 24465  //     `projects//locations//agents//environments//sessions/`. If `Environment
 24466  //     ID` is not specified, we assume default 'draft' environment.
 24467  func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
 24468  	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24469  	c.parent = parent
 24470  	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
 24471  	return c
 24472  }
 24473  
 24474  // Fields allows partial responses to be retrieved. See
 24475  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24476  // details.
 24477  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
 24478  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24479  	return c
 24480  }
 24481  
 24482  // Context sets the context to be used in this call's Do method.
 24483  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
 24484  	c.ctx_ = ctx
 24485  	return c
 24486  }
 24487  
 24488  // Header returns a http.Header that can be modified by the caller to add
 24489  // headers to the request.
 24490  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Header() http.Header {
 24491  	if c.header_ == nil {
 24492  		c.header_ = make(http.Header)
 24493  	}
 24494  	return c.header_
 24495  }
 24496  
 24497  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 24498  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24499  	var body io.Reader = nil
 24500  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
 24501  	if err != nil {
 24502  		return nil, err
 24503  	}
 24504  	c.urlParams_.Set("alt", alt)
 24505  	c.urlParams_.Set("prettyPrint", "false")
 24506  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
 24507  	urls += "?" + c.urlParams_.Encode()
 24508  	req, err := http.NewRequest("POST", urls, body)
 24509  	if err != nil {
 24510  		return nil, err
 24511  	}
 24512  	req.Header = reqHeaders
 24513  	googleapi.Expand(req.URL, map[string]string{
 24514  		"parent": c.parent,
 24515  	})
 24516  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24517  }
 24518  
 24519  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.create" call.
 24520  // Any non-2xx status code is an error. Response headers are in either
 24521  // *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header or
 24522  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24523  // googleapi.IsNotModified to check whether the returned error was because
 24524  // http.StatusNotModified was returned.
 24525  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
 24526  	gensupport.SetOptions(c.urlParams_, opts...)
 24527  	res, err := c.doRequest("json")
 24528  	if res != nil && res.StatusCode == http.StatusNotModified {
 24529  		if res.Body != nil {
 24530  			res.Body.Close()
 24531  		}
 24532  		return nil, gensupport.WrapError(&googleapi.Error{
 24533  			Code:   res.StatusCode,
 24534  			Header: res.Header,
 24535  		})
 24536  	}
 24537  	if err != nil {
 24538  		return nil, err
 24539  	}
 24540  	defer googleapi.CloseBody(res)
 24541  	if err := googleapi.CheckResponse(res); err != nil {
 24542  		return nil, gensupport.WrapError(err)
 24543  	}
 24544  	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
 24545  		ServerResponse: googleapi.ServerResponse{
 24546  			Header:         res.Header,
 24547  			HTTPStatusCode: res.StatusCode,
 24548  		},
 24549  	}
 24550  	target := &ret
 24551  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24552  		return nil, err
 24553  	}
 24554  	return ret, nil
 24555  }
 24556  
 24557  type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall struct {
 24558  	s          *Service
 24559  	name       string
 24560  	urlParams_ gensupport.URLParams
 24561  	ctx_       context.Context
 24562  	header_    http.Header
 24563  }
 24564  
 24565  // Delete: Deletes the specified session entity type.
 24566  //
 24567  //   - name: The name of the session entity type to delete. Format:
 24568  //     `projects//locations//agents//sessions//entityTypes/` or
 24569  //     `projects//locations//agents//environments//sessions//entityTypes/`. If
 24570  //     `Environment ID` is not specified, we assume default 'draft' environment.
 24571  func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
 24572  	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24573  	c.name = name
 24574  	return c
 24575  }
 24576  
 24577  // Fields allows partial responses to be retrieved. See
 24578  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24579  // details.
 24580  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
 24581  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24582  	return c
 24583  }
 24584  
 24585  // Context sets the context to be used in this call's Do method.
 24586  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
 24587  	c.ctx_ = ctx
 24588  	return c
 24589  }
 24590  
 24591  // Header returns a http.Header that can be modified by the caller to add
 24592  // headers to the request.
 24593  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Header() http.Header {
 24594  	if c.header_ == nil {
 24595  		c.header_ = make(http.Header)
 24596  	}
 24597  	return c.header_
 24598  }
 24599  
 24600  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 24601  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24602  	var body io.Reader = nil
 24603  	c.urlParams_.Set("alt", alt)
 24604  	c.urlParams_.Set("prettyPrint", "false")
 24605  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 24606  	urls += "?" + c.urlParams_.Encode()
 24607  	req, err := http.NewRequest("DELETE", urls, body)
 24608  	if err != nil {
 24609  		return nil, err
 24610  	}
 24611  	req.Header = reqHeaders
 24612  	googleapi.Expand(req.URL, map[string]string{
 24613  		"name": c.name,
 24614  	})
 24615  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24616  }
 24617  
 24618  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete" call.
 24619  // Any non-2xx status code is an error. Response headers are in either
 24620  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 24621  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24622  // check whether the returned error was because http.StatusNotModified was
 24623  // returned.
 24624  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 24625  	gensupport.SetOptions(c.urlParams_, opts...)
 24626  	res, err := c.doRequest("json")
 24627  	if res != nil && res.StatusCode == http.StatusNotModified {
 24628  		if res.Body != nil {
 24629  			res.Body.Close()
 24630  		}
 24631  		return nil, gensupport.WrapError(&googleapi.Error{
 24632  			Code:   res.StatusCode,
 24633  			Header: res.Header,
 24634  		})
 24635  	}
 24636  	if err != nil {
 24637  		return nil, err
 24638  	}
 24639  	defer googleapi.CloseBody(res)
 24640  	if err := googleapi.CheckResponse(res); err != nil {
 24641  		return nil, gensupport.WrapError(err)
 24642  	}
 24643  	ret := &GoogleProtobufEmpty{
 24644  		ServerResponse: googleapi.ServerResponse{
 24645  			Header:         res.Header,
 24646  			HTTPStatusCode: res.StatusCode,
 24647  		},
 24648  	}
 24649  	target := &ret
 24650  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24651  		return nil, err
 24652  	}
 24653  	return ret, nil
 24654  }
 24655  
 24656  type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall struct {
 24657  	s            *Service
 24658  	name         string
 24659  	urlParams_   gensupport.URLParams
 24660  	ifNoneMatch_ string
 24661  	ctx_         context.Context
 24662  	header_      http.Header
 24663  }
 24664  
 24665  // Get: Retrieves the specified session entity type.
 24666  //
 24667  //   - name: The name of the session entity type. Format:
 24668  //     `projects//locations//agents//sessions//entityTypes/` or
 24669  //     `projects//locations//agents//environments//sessions//entityTypes/`. If
 24670  //     `Environment ID` is not specified, we assume default 'draft' environment.
 24671  func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
 24672  	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24673  	c.name = name
 24674  	return c
 24675  }
 24676  
 24677  // Fields allows partial responses to be retrieved. See
 24678  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24679  // details.
 24680  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
 24681  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24682  	return c
 24683  }
 24684  
 24685  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24686  // object's ETag matches the given value. This is useful for getting updates
 24687  // only after the object has changed since the last request.
 24688  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
 24689  	c.ifNoneMatch_ = entityTag
 24690  	return c
 24691  }
 24692  
 24693  // Context sets the context to be used in this call's Do method.
 24694  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
 24695  	c.ctx_ = ctx
 24696  	return c
 24697  }
 24698  
 24699  // Header returns a http.Header that can be modified by the caller to add
 24700  // headers to the request.
 24701  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Header() http.Header {
 24702  	if c.header_ == nil {
 24703  		c.header_ = make(http.Header)
 24704  	}
 24705  	return c.header_
 24706  }
 24707  
 24708  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 24709  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24710  	if c.ifNoneMatch_ != "" {
 24711  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24712  	}
 24713  	var body io.Reader = nil
 24714  	c.urlParams_.Set("alt", alt)
 24715  	c.urlParams_.Set("prettyPrint", "false")
 24716  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 24717  	urls += "?" + c.urlParams_.Encode()
 24718  	req, err := http.NewRequest("GET", urls, body)
 24719  	if err != nil {
 24720  		return nil, err
 24721  	}
 24722  	req.Header = reqHeaders
 24723  	googleapi.Expand(req.URL, map[string]string{
 24724  		"name": c.name,
 24725  	})
 24726  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24727  }
 24728  
 24729  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.get" call.
 24730  // Any non-2xx status code is an error. Response headers are in either
 24731  // *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header or
 24732  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24733  // googleapi.IsNotModified to check whether the returned error was because
 24734  // http.StatusNotModified was returned.
 24735  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
 24736  	gensupport.SetOptions(c.urlParams_, opts...)
 24737  	res, err := c.doRequest("json")
 24738  	if res != nil && res.StatusCode == http.StatusNotModified {
 24739  		if res.Body != nil {
 24740  			res.Body.Close()
 24741  		}
 24742  		return nil, gensupport.WrapError(&googleapi.Error{
 24743  			Code:   res.StatusCode,
 24744  			Header: res.Header,
 24745  		})
 24746  	}
 24747  	if err != nil {
 24748  		return nil, err
 24749  	}
 24750  	defer googleapi.CloseBody(res)
 24751  	if err := googleapi.CheckResponse(res); err != nil {
 24752  		return nil, gensupport.WrapError(err)
 24753  	}
 24754  	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
 24755  		ServerResponse: googleapi.ServerResponse{
 24756  			Header:         res.Header,
 24757  			HTTPStatusCode: res.StatusCode,
 24758  		},
 24759  	}
 24760  	target := &ret
 24761  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24762  		return nil, err
 24763  	}
 24764  	return ret, nil
 24765  }
 24766  
 24767  type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall struct {
 24768  	s            *Service
 24769  	parent       string
 24770  	urlParams_   gensupport.URLParams
 24771  	ifNoneMatch_ string
 24772  	ctx_         context.Context
 24773  	header_      http.Header
 24774  }
 24775  
 24776  // List: Returns the list of all session entity types in the specified session.
 24777  //
 24778  //   - parent: The session to list all session entity types from. Format:
 24779  //     `projects//locations//agents//sessions/` or
 24780  //     `projects//locations//agents//environments//sessions/`. If `Environment
 24781  //     ID` is not specified, we assume default 'draft' environment.
 24782  func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
 24783  	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24784  	c.parent = parent
 24785  	return c
 24786  }
 24787  
 24788  // PageSize sets the optional parameter "pageSize": The maximum number of items
 24789  // to return in a single page. By default 100 and at most 1000.
 24790  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
 24791  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24792  	return c
 24793  }
 24794  
 24795  // PageToken sets the optional parameter "pageToken": The next_page_token value
 24796  // returned from a previous list request.
 24797  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
 24798  	c.urlParams_.Set("pageToken", pageToken)
 24799  	return c
 24800  }
 24801  
 24802  // Fields allows partial responses to be retrieved. See
 24803  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24804  // details.
 24805  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
 24806  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24807  	return c
 24808  }
 24809  
 24810  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24811  // object's ETag matches the given value. This is useful for getting updates
 24812  // only after the object has changed since the last request.
 24813  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
 24814  	c.ifNoneMatch_ = entityTag
 24815  	return c
 24816  }
 24817  
 24818  // Context sets the context to be used in this call's Do method.
 24819  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
 24820  	c.ctx_ = ctx
 24821  	return c
 24822  }
 24823  
 24824  // Header returns a http.Header that can be modified by the caller to add
 24825  // headers to the request.
 24826  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Header() http.Header {
 24827  	if c.header_ == nil {
 24828  		c.header_ = make(http.Header)
 24829  	}
 24830  	return c.header_
 24831  }
 24832  
 24833  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 24834  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24835  	if c.ifNoneMatch_ != "" {
 24836  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24837  	}
 24838  	var body io.Reader = nil
 24839  	c.urlParams_.Set("alt", alt)
 24840  	c.urlParams_.Set("prettyPrint", "false")
 24841  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
 24842  	urls += "?" + c.urlParams_.Encode()
 24843  	req, err := http.NewRequest("GET", urls, body)
 24844  	if err != nil {
 24845  		return nil, err
 24846  	}
 24847  	req.Header = reqHeaders
 24848  	googleapi.Expand(req.URL, map[string]string{
 24849  		"parent": c.parent,
 24850  	})
 24851  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24852  }
 24853  
 24854  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.list" call.
 24855  // Any non-2xx status code is an error. Response headers are in either
 24856  // *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse.ServerResponse.
 24857  // Header or (if a response was returned at all) in
 24858  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24859  // whether the returned error was because http.StatusNotModified was returned.
 24860  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse, error) {
 24861  	gensupport.SetOptions(c.urlParams_, opts...)
 24862  	res, err := c.doRequest("json")
 24863  	if res != nil && res.StatusCode == http.StatusNotModified {
 24864  		if res.Body != nil {
 24865  			res.Body.Close()
 24866  		}
 24867  		return nil, gensupport.WrapError(&googleapi.Error{
 24868  			Code:   res.StatusCode,
 24869  			Header: res.Header,
 24870  		})
 24871  	}
 24872  	if err != nil {
 24873  		return nil, err
 24874  	}
 24875  	defer googleapi.CloseBody(res)
 24876  	if err := googleapi.CheckResponse(res); err != nil {
 24877  		return nil, gensupport.WrapError(err)
 24878  	}
 24879  	ret := &GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse{
 24880  		ServerResponse: googleapi.ServerResponse{
 24881  			Header:         res.Header,
 24882  			HTTPStatusCode: res.StatusCode,
 24883  		},
 24884  	}
 24885  	target := &ret
 24886  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24887  		return nil, err
 24888  	}
 24889  	return ret, nil
 24890  }
 24891  
 24892  // Pages invokes f for each page of results.
 24893  // A non-nil error returned from f will halt the iteration.
 24894  // The provided context supersedes any context provided to the Context method.
 24895  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) error) error {
 24896  	c.ctx_ = ctx
 24897  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24898  	for {
 24899  		x, err := c.Do()
 24900  		if err != nil {
 24901  			return err
 24902  		}
 24903  		if err := f(x); err != nil {
 24904  			return err
 24905  		}
 24906  		if x.NextPageToken == "" {
 24907  			return nil
 24908  		}
 24909  		c.PageToken(x.NextPageToken)
 24910  	}
 24911  }
 24912  
 24913  type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall struct {
 24914  	s                                               *Service
 24915  	nameid                                          string
 24916  	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
 24917  	urlParams_                                      gensupport.URLParams
 24918  	ctx_                                            context.Context
 24919  	header_                                         http.Header
 24920  }
 24921  
 24922  // Patch: Updates the specified session entity type.
 24923  //
 24924  //   - name: The unique identifier of the session entity type. Format:
 24925  //     `projects//locations//agents//sessions//entityTypes/` or
 24926  //     `projects//locations//agents//environments//sessions//entityTypes/`. If
 24927  //     `Environment ID` is not specified, we assume default 'draft' environment.
 24928  func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
 24929  	c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24930  	c.nameid = nameid
 24931  	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
 24932  	return c
 24933  }
 24934  
 24935  // UpdateMask sets the optional parameter "updateMask": The mask to control
 24936  // which fields get updated.
 24937  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
 24938  	c.urlParams_.Set("updateMask", updateMask)
 24939  	return c
 24940  }
 24941  
 24942  // Fields allows partial responses to be retrieved. See
 24943  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24944  // details.
 24945  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
 24946  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24947  	return c
 24948  }
 24949  
 24950  // Context sets the context to be used in this call's Do method.
 24951  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
 24952  	c.ctx_ = ctx
 24953  	return c
 24954  }
 24955  
 24956  // Header returns a http.Header that can be modified by the caller to add
 24957  // headers to the request.
 24958  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Header() http.Header {
 24959  	if c.header_ == nil {
 24960  		c.header_ = make(http.Header)
 24961  	}
 24962  	return c.header_
 24963  }
 24964  
 24965  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 24966  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24967  	var body io.Reader = nil
 24968  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
 24969  	if err != nil {
 24970  		return nil, err
 24971  	}
 24972  	c.urlParams_.Set("alt", alt)
 24973  	c.urlParams_.Set("prettyPrint", "false")
 24974  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 24975  	urls += "?" + c.urlParams_.Encode()
 24976  	req, err := http.NewRequest("PATCH", urls, body)
 24977  	if err != nil {
 24978  		return nil, err
 24979  	}
 24980  	req.Header = reqHeaders
 24981  	googleapi.Expand(req.URL, map[string]string{
 24982  		"name": c.nameid,
 24983  	})
 24984  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24985  }
 24986  
 24987  // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch" call.
 24988  // Any non-2xx status code is an error. Response headers are in either
 24989  // *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header or
 24990  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24991  // googleapi.IsNotModified to check whether the returned error was because
 24992  // http.StatusNotModified was returned.
 24993  func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
 24994  	gensupport.SetOptions(c.urlParams_, opts...)
 24995  	res, err := c.doRequest("json")
 24996  	if res != nil && res.StatusCode == http.StatusNotModified {
 24997  		if res.Body != nil {
 24998  			res.Body.Close()
 24999  		}
 25000  		return nil, gensupport.WrapError(&googleapi.Error{
 25001  			Code:   res.StatusCode,
 25002  			Header: res.Header,
 25003  		})
 25004  	}
 25005  	if err != nil {
 25006  		return nil, err
 25007  	}
 25008  	defer googleapi.CloseBody(res)
 25009  	if err := googleapi.CheckResponse(res); err != nil {
 25010  		return nil, gensupport.WrapError(err)
 25011  	}
 25012  	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
 25013  		ServerResponse: googleapi.ServerResponse{
 25014  			Header:         res.Header,
 25015  			HTTPStatusCode: res.StatusCode,
 25016  		},
 25017  	}
 25018  	target := &ret
 25019  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25020  		return nil, err
 25021  	}
 25022  	return ret, nil
 25023  }
 25024  
 25025  type ProjectsLocationsAgentsFlowsCreateCall struct {
 25026  	s                                  *Service
 25027  	parent                             string
 25028  	googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow
 25029  	urlParams_                         gensupport.URLParams
 25030  	ctx_                               context.Context
 25031  	header_                            http.Header
 25032  }
 25033  
 25034  // Create: Creates a flow in the specified agent. Note: You should always train
 25035  // a flow prior to sending it queries. See the training documentation
 25036  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 25037  //
 25038  //   - parent: The agent to create a flow for. Format:
 25039  //     `projects//locations//agents/`.
 25040  func (r *ProjectsLocationsAgentsFlowsService) Create(parent string, googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow) *ProjectsLocationsAgentsFlowsCreateCall {
 25041  	c := &ProjectsLocationsAgentsFlowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25042  	c.parent = parent
 25043  	c.googleclouddialogflowcxv3beta1flow = googleclouddialogflowcxv3beta1flow
 25044  	return c
 25045  }
 25046  
 25047  // LanguageCode sets the optional parameter "languageCode": The language of the
 25048  // following fields in `flow`: *
 25049  // `Flow.event_handlers.trigger_fulfillment.messages` *
 25050  // `Flow.event_handlers.trigger_fulfillment.conditional_cases` *
 25051  // `Flow.transition_routes.trigger_fulfillment.messages` *
 25052  // `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not
 25053  // specified, the agent's default language is used. Many languages
 25054  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 25055  // supported. Note: languages must be enabled in the agent before they can be
 25056  // used.
 25057  func (c *ProjectsLocationsAgentsFlowsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsCreateCall {
 25058  	c.urlParams_.Set("languageCode", languageCode)
 25059  	return c
 25060  }
 25061  
 25062  // Fields allows partial responses to be retrieved. See
 25063  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25064  // details.
 25065  func (c *ProjectsLocationsAgentsFlowsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsCreateCall {
 25066  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25067  	return c
 25068  }
 25069  
 25070  // Context sets the context to be used in this call's Do method.
 25071  func (c *ProjectsLocationsAgentsFlowsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsCreateCall {
 25072  	c.ctx_ = ctx
 25073  	return c
 25074  }
 25075  
 25076  // Header returns a http.Header that can be modified by the caller to add
 25077  // headers to the request.
 25078  func (c *ProjectsLocationsAgentsFlowsCreateCall) Header() http.Header {
 25079  	if c.header_ == nil {
 25080  		c.header_ = make(http.Header)
 25081  	}
 25082  	return c.header_
 25083  }
 25084  
 25085  func (c *ProjectsLocationsAgentsFlowsCreateCall) doRequest(alt string) (*http.Response, error) {
 25086  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25087  	var body io.Reader = nil
 25088  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1flow)
 25089  	if err != nil {
 25090  		return nil, err
 25091  	}
 25092  	c.urlParams_.Set("alt", alt)
 25093  	c.urlParams_.Set("prettyPrint", "false")
 25094  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows")
 25095  	urls += "?" + c.urlParams_.Encode()
 25096  	req, err := http.NewRequest("POST", urls, body)
 25097  	if err != nil {
 25098  		return nil, err
 25099  	}
 25100  	req.Header = reqHeaders
 25101  	googleapi.Expand(req.URL, map[string]string{
 25102  		"parent": c.parent,
 25103  	})
 25104  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25105  }
 25106  
 25107  // Do executes the "dialogflow.projects.locations.agents.flows.create" call.
 25108  // Any non-2xx status code is an error. Response headers are in either
 25109  // *GoogleCloudDialogflowCxV3beta1Flow.ServerResponse.Header or (if a response
 25110  // was returned at all) in error.(*googleapi.Error).Header. Use
 25111  // googleapi.IsNotModified to check whether the returned error was because
 25112  // http.StatusNotModified was returned.
 25113  func (c *ProjectsLocationsAgentsFlowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
 25114  	gensupport.SetOptions(c.urlParams_, opts...)
 25115  	res, err := c.doRequest("json")
 25116  	if res != nil && res.StatusCode == http.StatusNotModified {
 25117  		if res.Body != nil {
 25118  			res.Body.Close()
 25119  		}
 25120  		return nil, gensupport.WrapError(&googleapi.Error{
 25121  			Code:   res.StatusCode,
 25122  			Header: res.Header,
 25123  		})
 25124  	}
 25125  	if err != nil {
 25126  		return nil, err
 25127  	}
 25128  	defer googleapi.CloseBody(res)
 25129  	if err := googleapi.CheckResponse(res); err != nil {
 25130  		return nil, gensupport.WrapError(err)
 25131  	}
 25132  	ret := &GoogleCloudDialogflowCxV3beta1Flow{
 25133  		ServerResponse: googleapi.ServerResponse{
 25134  			Header:         res.Header,
 25135  			HTTPStatusCode: res.StatusCode,
 25136  		},
 25137  	}
 25138  	target := &ret
 25139  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25140  		return nil, err
 25141  	}
 25142  	return ret, nil
 25143  }
 25144  
 25145  type ProjectsLocationsAgentsFlowsDeleteCall struct {
 25146  	s          *Service
 25147  	name       string
 25148  	urlParams_ gensupport.URLParams
 25149  	ctx_       context.Context
 25150  	header_    http.Header
 25151  }
 25152  
 25153  // Delete: Deletes a specified flow.
 25154  //
 25155  //   - name: The name of the flow to delete. Format:
 25156  //     `projects//locations//agents//flows/`.
 25157  func (r *ProjectsLocationsAgentsFlowsService) Delete(name string) *ProjectsLocationsAgentsFlowsDeleteCall {
 25158  	c := &ProjectsLocationsAgentsFlowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25159  	c.name = name
 25160  	return c
 25161  }
 25162  
 25163  // Force sets the optional parameter "force": This field has no effect for
 25164  // flows with no incoming transitions. For flows with incoming transitions: *
 25165  // If `force` is set to false, an error will be returned with message
 25166  // indicating the incoming transitions. * If `force` is set to true, Dialogflow
 25167  // will remove the flow, as well as any transitions to the flow (i.e. Target
 25168  // flow in event handlers or Target flow in transition routes that point to
 25169  // this flow will be cleared).
 25170  func (c *ProjectsLocationsAgentsFlowsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsDeleteCall {
 25171  	c.urlParams_.Set("force", fmt.Sprint(force))
 25172  	return c
 25173  }
 25174  
 25175  // Fields allows partial responses to be retrieved. See
 25176  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25177  // details.
 25178  func (c *ProjectsLocationsAgentsFlowsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsDeleteCall {
 25179  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25180  	return c
 25181  }
 25182  
 25183  // Context sets the context to be used in this call's Do method.
 25184  func (c *ProjectsLocationsAgentsFlowsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsDeleteCall {
 25185  	c.ctx_ = ctx
 25186  	return c
 25187  }
 25188  
 25189  // Header returns a http.Header that can be modified by the caller to add
 25190  // headers to the request.
 25191  func (c *ProjectsLocationsAgentsFlowsDeleteCall) Header() http.Header {
 25192  	if c.header_ == nil {
 25193  		c.header_ = make(http.Header)
 25194  	}
 25195  	return c.header_
 25196  }
 25197  
 25198  func (c *ProjectsLocationsAgentsFlowsDeleteCall) doRequest(alt string) (*http.Response, error) {
 25199  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25200  	var body io.Reader = nil
 25201  	c.urlParams_.Set("alt", alt)
 25202  	c.urlParams_.Set("prettyPrint", "false")
 25203  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 25204  	urls += "?" + c.urlParams_.Encode()
 25205  	req, err := http.NewRequest("DELETE", urls, body)
 25206  	if err != nil {
 25207  		return nil, err
 25208  	}
 25209  	req.Header = reqHeaders
 25210  	googleapi.Expand(req.URL, map[string]string{
 25211  		"name": c.name,
 25212  	})
 25213  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25214  }
 25215  
 25216  // Do executes the "dialogflow.projects.locations.agents.flows.delete" call.
 25217  // Any non-2xx status code is an error. Response headers are in either
 25218  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 25219  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25220  // check whether the returned error was because http.StatusNotModified was
 25221  // returned.
 25222  func (c *ProjectsLocationsAgentsFlowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 25223  	gensupport.SetOptions(c.urlParams_, opts...)
 25224  	res, err := c.doRequest("json")
 25225  	if res != nil && res.StatusCode == http.StatusNotModified {
 25226  		if res.Body != nil {
 25227  			res.Body.Close()
 25228  		}
 25229  		return nil, gensupport.WrapError(&googleapi.Error{
 25230  			Code:   res.StatusCode,
 25231  			Header: res.Header,
 25232  		})
 25233  	}
 25234  	if err != nil {
 25235  		return nil, err
 25236  	}
 25237  	defer googleapi.CloseBody(res)
 25238  	if err := googleapi.CheckResponse(res); err != nil {
 25239  		return nil, gensupport.WrapError(err)
 25240  	}
 25241  	ret := &GoogleProtobufEmpty{
 25242  		ServerResponse: googleapi.ServerResponse{
 25243  			Header:         res.Header,
 25244  			HTTPStatusCode: res.StatusCode,
 25245  		},
 25246  	}
 25247  	target := &ret
 25248  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25249  		return nil, err
 25250  	}
 25251  	return ret, nil
 25252  }
 25253  
 25254  type ProjectsLocationsAgentsFlowsExportCall struct {
 25255  	s                                               *Service
 25256  	name                                            string
 25257  	googleclouddialogflowcxv3beta1exportflowrequest *GoogleCloudDialogflowCxV3beta1ExportFlowRequest
 25258  	urlParams_                                      gensupport.URLParams
 25259  	ctx_                                            context.Context
 25260  	header_                                         http.Header
 25261  }
 25262  
 25263  // Export: Exports the specified flow to a binary file. This method is a
 25264  // long-running operation
 25265  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25266  // The returned `Operation` type has the following method-specific fields: -
 25267  // `metadata`: An empty Struct message
 25268  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 25269  // - `response`: ExportFlowResponse Note that resources (e.g. intents,
 25270  // entities, webhooks) that the flow references will also be exported.
 25271  //
 25272  //   - name: The name of the flow to export. Format:
 25273  //     `projects//locations//agents//flows/`.
 25274  func (r *ProjectsLocationsAgentsFlowsService) Export(name string, googleclouddialogflowcxv3beta1exportflowrequest *GoogleCloudDialogflowCxV3beta1ExportFlowRequest) *ProjectsLocationsAgentsFlowsExportCall {
 25275  	c := &ProjectsLocationsAgentsFlowsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25276  	c.name = name
 25277  	c.googleclouddialogflowcxv3beta1exportflowrequest = googleclouddialogflowcxv3beta1exportflowrequest
 25278  	return c
 25279  }
 25280  
 25281  // Fields allows partial responses to be retrieved. See
 25282  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25283  // details.
 25284  func (c *ProjectsLocationsAgentsFlowsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsExportCall {
 25285  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25286  	return c
 25287  }
 25288  
 25289  // Context sets the context to be used in this call's Do method.
 25290  func (c *ProjectsLocationsAgentsFlowsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsExportCall {
 25291  	c.ctx_ = ctx
 25292  	return c
 25293  }
 25294  
 25295  // Header returns a http.Header that can be modified by the caller to add
 25296  // headers to the request.
 25297  func (c *ProjectsLocationsAgentsFlowsExportCall) Header() http.Header {
 25298  	if c.header_ == nil {
 25299  		c.header_ = make(http.Header)
 25300  	}
 25301  	return c.header_
 25302  }
 25303  
 25304  func (c *ProjectsLocationsAgentsFlowsExportCall) doRequest(alt string) (*http.Response, error) {
 25305  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25306  	var body io.Reader = nil
 25307  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportflowrequest)
 25308  	if err != nil {
 25309  		return nil, err
 25310  	}
 25311  	c.urlParams_.Set("alt", alt)
 25312  	c.urlParams_.Set("prettyPrint", "false")
 25313  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:export")
 25314  	urls += "?" + c.urlParams_.Encode()
 25315  	req, err := http.NewRequest("POST", urls, body)
 25316  	if err != nil {
 25317  		return nil, err
 25318  	}
 25319  	req.Header = reqHeaders
 25320  	googleapi.Expand(req.URL, map[string]string{
 25321  		"name": c.name,
 25322  	})
 25323  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25324  }
 25325  
 25326  // Do executes the "dialogflow.projects.locations.agents.flows.export" call.
 25327  // Any non-2xx status code is an error. Response headers are in either
 25328  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25329  // returned at all) in error.(*googleapi.Error).Header. Use
 25330  // googleapi.IsNotModified to check whether the returned error was because
 25331  // http.StatusNotModified was returned.
 25332  func (c *ProjectsLocationsAgentsFlowsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25333  	gensupport.SetOptions(c.urlParams_, opts...)
 25334  	res, err := c.doRequest("json")
 25335  	if res != nil && res.StatusCode == http.StatusNotModified {
 25336  		if res.Body != nil {
 25337  			res.Body.Close()
 25338  		}
 25339  		return nil, gensupport.WrapError(&googleapi.Error{
 25340  			Code:   res.StatusCode,
 25341  			Header: res.Header,
 25342  		})
 25343  	}
 25344  	if err != nil {
 25345  		return nil, err
 25346  	}
 25347  	defer googleapi.CloseBody(res)
 25348  	if err := googleapi.CheckResponse(res); err != nil {
 25349  		return nil, gensupport.WrapError(err)
 25350  	}
 25351  	ret := &GoogleLongrunningOperation{
 25352  		ServerResponse: googleapi.ServerResponse{
 25353  			Header:         res.Header,
 25354  			HTTPStatusCode: res.StatusCode,
 25355  		},
 25356  	}
 25357  	target := &ret
 25358  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25359  		return nil, err
 25360  	}
 25361  	return ret, nil
 25362  }
 25363  
 25364  type ProjectsLocationsAgentsFlowsGetCall struct {
 25365  	s            *Service
 25366  	name         string
 25367  	urlParams_   gensupport.URLParams
 25368  	ifNoneMatch_ string
 25369  	ctx_         context.Context
 25370  	header_      http.Header
 25371  }
 25372  
 25373  // Get: Retrieves the specified flow.
 25374  //
 25375  //   - name: The name of the flow to get. Format:
 25376  //     `projects//locations//agents//flows/`.
 25377  func (r *ProjectsLocationsAgentsFlowsService) Get(name string) *ProjectsLocationsAgentsFlowsGetCall {
 25378  	c := &ProjectsLocationsAgentsFlowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25379  	c.name = name
 25380  	return c
 25381  }
 25382  
 25383  // LanguageCode sets the optional parameter "languageCode": The language to
 25384  // retrieve the flow for. The following fields are language dependent: *
 25385  // `Flow.event_handlers.trigger_fulfillment.messages` *
 25386  // `Flow.event_handlers.trigger_fulfillment.conditional_cases` *
 25387  // `Flow.transition_routes.trigger_fulfillment.messages` *
 25388  // `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not
 25389  // specified, the agent's default language is used. Many languages
 25390  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 25391  // supported. Note: languages must be enabled in the agent before they can be
 25392  // used.
 25393  func (c *ProjectsLocationsAgentsFlowsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetCall {
 25394  	c.urlParams_.Set("languageCode", languageCode)
 25395  	return c
 25396  }
 25397  
 25398  // Fields allows partial responses to be retrieved. See
 25399  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25400  // details.
 25401  func (c *ProjectsLocationsAgentsFlowsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetCall {
 25402  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25403  	return c
 25404  }
 25405  
 25406  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25407  // object's ETag matches the given value. This is useful for getting updates
 25408  // only after the object has changed since the last request.
 25409  func (c *ProjectsLocationsAgentsFlowsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetCall {
 25410  	c.ifNoneMatch_ = entityTag
 25411  	return c
 25412  }
 25413  
 25414  // Context sets the context to be used in this call's Do method.
 25415  func (c *ProjectsLocationsAgentsFlowsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetCall {
 25416  	c.ctx_ = ctx
 25417  	return c
 25418  }
 25419  
 25420  // Header returns a http.Header that can be modified by the caller to add
 25421  // headers to the request.
 25422  func (c *ProjectsLocationsAgentsFlowsGetCall) Header() http.Header {
 25423  	if c.header_ == nil {
 25424  		c.header_ = make(http.Header)
 25425  	}
 25426  	return c.header_
 25427  }
 25428  
 25429  func (c *ProjectsLocationsAgentsFlowsGetCall) doRequest(alt string) (*http.Response, error) {
 25430  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25431  	if c.ifNoneMatch_ != "" {
 25432  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25433  	}
 25434  	var body io.Reader = nil
 25435  	c.urlParams_.Set("alt", alt)
 25436  	c.urlParams_.Set("prettyPrint", "false")
 25437  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 25438  	urls += "?" + c.urlParams_.Encode()
 25439  	req, err := http.NewRequest("GET", urls, body)
 25440  	if err != nil {
 25441  		return nil, err
 25442  	}
 25443  	req.Header = reqHeaders
 25444  	googleapi.Expand(req.URL, map[string]string{
 25445  		"name": c.name,
 25446  	})
 25447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25448  }
 25449  
 25450  // Do executes the "dialogflow.projects.locations.agents.flows.get" call.
 25451  // Any non-2xx status code is an error. Response headers are in either
 25452  // *GoogleCloudDialogflowCxV3beta1Flow.ServerResponse.Header or (if a response
 25453  // was returned at all) in error.(*googleapi.Error).Header. Use
 25454  // googleapi.IsNotModified to check whether the returned error was because
 25455  // http.StatusNotModified was returned.
 25456  func (c *ProjectsLocationsAgentsFlowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
 25457  	gensupport.SetOptions(c.urlParams_, opts...)
 25458  	res, err := c.doRequest("json")
 25459  	if res != nil && res.StatusCode == http.StatusNotModified {
 25460  		if res.Body != nil {
 25461  			res.Body.Close()
 25462  		}
 25463  		return nil, gensupport.WrapError(&googleapi.Error{
 25464  			Code:   res.StatusCode,
 25465  			Header: res.Header,
 25466  		})
 25467  	}
 25468  	if err != nil {
 25469  		return nil, err
 25470  	}
 25471  	defer googleapi.CloseBody(res)
 25472  	if err := googleapi.CheckResponse(res); err != nil {
 25473  		return nil, gensupport.WrapError(err)
 25474  	}
 25475  	ret := &GoogleCloudDialogflowCxV3beta1Flow{
 25476  		ServerResponse: googleapi.ServerResponse{
 25477  			Header:         res.Header,
 25478  			HTTPStatusCode: res.StatusCode,
 25479  		},
 25480  	}
 25481  	target := &ret
 25482  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25483  		return nil, err
 25484  	}
 25485  	return ret, nil
 25486  }
 25487  
 25488  type ProjectsLocationsAgentsFlowsGetValidationResultCall struct {
 25489  	s            *Service
 25490  	name         string
 25491  	urlParams_   gensupport.URLParams
 25492  	ifNoneMatch_ string
 25493  	ctx_         context.Context
 25494  	header_      http.Header
 25495  }
 25496  
 25497  // GetValidationResult: Gets the latest flow validation result. Flow validation
 25498  // is performed when ValidateFlow is called.
 25499  //
 25500  //   - name: The flow name. Format:
 25501  //     `projects//locations//agents//flows//validationResult`.
 25502  func (r *ProjectsLocationsAgentsFlowsService) GetValidationResult(name string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
 25503  	c := &ProjectsLocationsAgentsFlowsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25504  	c.name = name
 25505  	return c
 25506  }
 25507  
 25508  // LanguageCode sets the optional parameter "languageCode": If not specified,
 25509  // the agent's default language is used.
 25510  func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
 25511  	c.urlParams_.Set("languageCode", languageCode)
 25512  	return c
 25513  }
 25514  
 25515  // Fields allows partial responses to be retrieved. See
 25516  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25517  // details.
 25518  func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
 25519  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25520  	return c
 25521  }
 25522  
 25523  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25524  // object's ETag matches the given value. This is useful for getting updates
 25525  // only after the object has changed since the last request.
 25526  func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
 25527  	c.ifNoneMatch_ = entityTag
 25528  	return c
 25529  }
 25530  
 25531  // Context sets the context to be used in this call's Do method.
 25532  func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
 25533  	c.ctx_ = ctx
 25534  	return c
 25535  }
 25536  
 25537  // Header returns a http.Header that can be modified by the caller to add
 25538  // headers to the request.
 25539  func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Header() http.Header {
 25540  	if c.header_ == nil {
 25541  		c.header_ = make(http.Header)
 25542  	}
 25543  	return c.header_
 25544  }
 25545  
 25546  func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
 25547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25548  	if c.ifNoneMatch_ != "" {
 25549  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25550  	}
 25551  	var body io.Reader = nil
 25552  	c.urlParams_.Set("alt", alt)
 25553  	c.urlParams_.Set("prettyPrint", "false")
 25554  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 25555  	urls += "?" + c.urlParams_.Encode()
 25556  	req, err := http.NewRequest("GET", urls, body)
 25557  	if err != nil {
 25558  		return nil, err
 25559  	}
 25560  	req.Header = reqHeaders
 25561  	googleapi.Expand(req.URL, map[string]string{
 25562  		"name": c.name,
 25563  	})
 25564  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25565  }
 25566  
 25567  // Do executes the "dialogflow.projects.locations.agents.flows.getValidationResult" call.
 25568  // Any non-2xx status code is an error. Response headers are in either
 25569  // *GoogleCloudDialogflowCxV3beta1FlowValidationResult.ServerResponse.Header or
 25570  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 25571  // googleapi.IsNotModified to check whether the returned error was because
 25572  // http.StatusNotModified was returned.
 25573  func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FlowValidationResult, error) {
 25574  	gensupport.SetOptions(c.urlParams_, opts...)
 25575  	res, err := c.doRequest("json")
 25576  	if res != nil && res.StatusCode == http.StatusNotModified {
 25577  		if res.Body != nil {
 25578  			res.Body.Close()
 25579  		}
 25580  		return nil, gensupport.WrapError(&googleapi.Error{
 25581  			Code:   res.StatusCode,
 25582  			Header: res.Header,
 25583  		})
 25584  	}
 25585  	if err != nil {
 25586  		return nil, err
 25587  	}
 25588  	defer googleapi.CloseBody(res)
 25589  	if err := googleapi.CheckResponse(res); err != nil {
 25590  		return nil, gensupport.WrapError(err)
 25591  	}
 25592  	ret := &GoogleCloudDialogflowCxV3beta1FlowValidationResult{
 25593  		ServerResponse: googleapi.ServerResponse{
 25594  			Header:         res.Header,
 25595  			HTTPStatusCode: res.StatusCode,
 25596  		},
 25597  	}
 25598  	target := &ret
 25599  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25600  		return nil, err
 25601  	}
 25602  	return ret, nil
 25603  }
 25604  
 25605  type ProjectsLocationsAgentsFlowsImportCall struct {
 25606  	s                                               *Service
 25607  	parent                                          string
 25608  	googleclouddialogflowcxv3beta1importflowrequest *GoogleCloudDialogflowCxV3beta1ImportFlowRequest
 25609  	urlParams_                                      gensupport.URLParams
 25610  	ctx_                                            context.Context
 25611  	header_                                         http.Header
 25612  }
 25613  
 25614  // Import: Imports the specified flow to the specified agent from a binary
 25615  // file. This method is a long-running operation
 25616  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25617  // The returned `Operation` type has the following method-specific fields: -
 25618  // `metadata`: An empty Struct message
 25619  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 25620  // - `response`: ImportFlowResponse Note: You should always train a flow prior
 25621  // to sending it queries. See the training documentation
 25622  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 25623  //
 25624  //   - parent: The agent to import the flow into. Format:
 25625  //     `projects//locations//agents/`.
 25626  func (r *ProjectsLocationsAgentsFlowsService) Import(parent string, googleclouddialogflowcxv3beta1importflowrequest *GoogleCloudDialogflowCxV3beta1ImportFlowRequest) *ProjectsLocationsAgentsFlowsImportCall {
 25627  	c := &ProjectsLocationsAgentsFlowsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25628  	c.parent = parent
 25629  	c.googleclouddialogflowcxv3beta1importflowrequest = googleclouddialogflowcxv3beta1importflowrequest
 25630  	return c
 25631  }
 25632  
 25633  // Fields allows partial responses to be retrieved. See
 25634  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25635  // details.
 25636  func (c *ProjectsLocationsAgentsFlowsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsImportCall {
 25637  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25638  	return c
 25639  }
 25640  
 25641  // Context sets the context to be used in this call's Do method.
 25642  func (c *ProjectsLocationsAgentsFlowsImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsImportCall {
 25643  	c.ctx_ = ctx
 25644  	return c
 25645  }
 25646  
 25647  // Header returns a http.Header that can be modified by the caller to add
 25648  // headers to the request.
 25649  func (c *ProjectsLocationsAgentsFlowsImportCall) Header() http.Header {
 25650  	if c.header_ == nil {
 25651  		c.header_ = make(http.Header)
 25652  	}
 25653  	return c.header_
 25654  }
 25655  
 25656  func (c *ProjectsLocationsAgentsFlowsImportCall) doRequest(alt string) (*http.Response, error) {
 25657  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25658  	var body io.Reader = nil
 25659  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importflowrequest)
 25660  	if err != nil {
 25661  		return nil, err
 25662  	}
 25663  	c.urlParams_.Set("alt", alt)
 25664  	c.urlParams_.Set("prettyPrint", "false")
 25665  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows:import")
 25666  	urls += "?" + c.urlParams_.Encode()
 25667  	req, err := http.NewRequest("POST", urls, body)
 25668  	if err != nil {
 25669  		return nil, err
 25670  	}
 25671  	req.Header = reqHeaders
 25672  	googleapi.Expand(req.URL, map[string]string{
 25673  		"parent": c.parent,
 25674  	})
 25675  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25676  }
 25677  
 25678  // Do executes the "dialogflow.projects.locations.agents.flows.import" call.
 25679  // Any non-2xx status code is an error. Response headers are in either
 25680  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25681  // returned at all) in error.(*googleapi.Error).Header. Use
 25682  // googleapi.IsNotModified to check whether the returned error was because
 25683  // http.StatusNotModified was returned.
 25684  func (c *ProjectsLocationsAgentsFlowsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25685  	gensupport.SetOptions(c.urlParams_, opts...)
 25686  	res, err := c.doRequest("json")
 25687  	if res != nil && res.StatusCode == http.StatusNotModified {
 25688  		if res.Body != nil {
 25689  			res.Body.Close()
 25690  		}
 25691  		return nil, gensupport.WrapError(&googleapi.Error{
 25692  			Code:   res.StatusCode,
 25693  			Header: res.Header,
 25694  		})
 25695  	}
 25696  	if err != nil {
 25697  		return nil, err
 25698  	}
 25699  	defer googleapi.CloseBody(res)
 25700  	if err := googleapi.CheckResponse(res); err != nil {
 25701  		return nil, gensupport.WrapError(err)
 25702  	}
 25703  	ret := &GoogleLongrunningOperation{
 25704  		ServerResponse: googleapi.ServerResponse{
 25705  			Header:         res.Header,
 25706  			HTTPStatusCode: res.StatusCode,
 25707  		},
 25708  	}
 25709  	target := &ret
 25710  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25711  		return nil, err
 25712  	}
 25713  	return ret, nil
 25714  }
 25715  
 25716  type ProjectsLocationsAgentsFlowsListCall struct {
 25717  	s            *Service
 25718  	parent       string
 25719  	urlParams_   gensupport.URLParams
 25720  	ifNoneMatch_ string
 25721  	ctx_         context.Context
 25722  	header_      http.Header
 25723  }
 25724  
 25725  // List: Returns the list of all flows in the specified agent.
 25726  //
 25727  //   - parent: The agent containing the flows. Format:
 25728  //     `projects//locations//agents/`.
 25729  func (r *ProjectsLocationsAgentsFlowsService) List(parent string) *ProjectsLocationsAgentsFlowsListCall {
 25730  	c := &ProjectsLocationsAgentsFlowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25731  	c.parent = parent
 25732  	return c
 25733  }
 25734  
 25735  // LanguageCode sets the optional parameter "languageCode": The language to
 25736  // list flows for. The following fields are language dependent: *
 25737  // `Flow.event_handlers.trigger_fulfillment.messages` *
 25738  // `Flow.event_handlers.trigger_fulfillment.conditional_cases` *
 25739  // `Flow.transition_routes.trigger_fulfillment.messages` *
 25740  // `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not
 25741  // specified, the agent's default language is used. Many languages
 25742  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 25743  // supported. Note: languages must be enabled in the agent before they can be
 25744  // used.
 25745  func (c *ProjectsLocationsAgentsFlowsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsListCall {
 25746  	c.urlParams_.Set("languageCode", languageCode)
 25747  	return c
 25748  }
 25749  
 25750  // PageSize sets the optional parameter "pageSize": The maximum number of items
 25751  // to return in a single page. By default 100 and at most 1000.
 25752  func (c *ProjectsLocationsAgentsFlowsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsListCall {
 25753  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25754  	return c
 25755  }
 25756  
 25757  // PageToken sets the optional parameter "pageToken": The next_page_token value
 25758  // returned from a previous list request.
 25759  func (c *ProjectsLocationsAgentsFlowsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsListCall {
 25760  	c.urlParams_.Set("pageToken", pageToken)
 25761  	return c
 25762  }
 25763  
 25764  // Fields allows partial responses to be retrieved. See
 25765  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25766  // details.
 25767  func (c *ProjectsLocationsAgentsFlowsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsListCall {
 25768  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25769  	return c
 25770  }
 25771  
 25772  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25773  // object's ETag matches the given value. This is useful for getting updates
 25774  // only after the object has changed since the last request.
 25775  func (c *ProjectsLocationsAgentsFlowsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsListCall {
 25776  	c.ifNoneMatch_ = entityTag
 25777  	return c
 25778  }
 25779  
 25780  // Context sets the context to be used in this call's Do method.
 25781  func (c *ProjectsLocationsAgentsFlowsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsListCall {
 25782  	c.ctx_ = ctx
 25783  	return c
 25784  }
 25785  
 25786  // Header returns a http.Header that can be modified by the caller to add
 25787  // headers to the request.
 25788  func (c *ProjectsLocationsAgentsFlowsListCall) Header() http.Header {
 25789  	if c.header_ == nil {
 25790  		c.header_ = make(http.Header)
 25791  	}
 25792  	return c.header_
 25793  }
 25794  
 25795  func (c *ProjectsLocationsAgentsFlowsListCall) doRequest(alt string) (*http.Response, error) {
 25796  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25797  	if c.ifNoneMatch_ != "" {
 25798  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25799  	}
 25800  	var body io.Reader = nil
 25801  	c.urlParams_.Set("alt", alt)
 25802  	c.urlParams_.Set("prettyPrint", "false")
 25803  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows")
 25804  	urls += "?" + c.urlParams_.Encode()
 25805  	req, err := http.NewRequest("GET", urls, body)
 25806  	if err != nil {
 25807  		return nil, err
 25808  	}
 25809  	req.Header = reqHeaders
 25810  	googleapi.Expand(req.URL, map[string]string{
 25811  		"parent": c.parent,
 25812  	})
 25813  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25814  }
 25815  
 25816  // Do executes the "dialogflow.projects.locations.agents.flows.list" call.
 25817  // Any non-2xx status code is an error. Response headers are in either
 25818  // *GoogleCloudDialogflowCxV3beta1ListFlowsResponse.ServerResponse.Header or
 25819  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 25820  // googleapi.IsNotModified to check whether the returned error was because
 25821  // http.StatusNotModified was returned.
 25822  func (c *ProjectsLocationsAgentsFlowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListFlowsResponse, error) {
 25823  	gensupport.SetOptions(c.urlParams_, opts...)
 25824  	res, err := c.doRequest("json")
 25825  	if res != nil && res.StatusCode == http.StatusNotModified {
 25826  		if res.Body != nil {
 25827  			res.Body.Close()
 25828  		}
 25829  		return nil, gensupport.WrapError(&googleapi.Error{
 25830  			Code:   res.StatusCode,
 25831  			Header: res.Header,
 25832  		})
 25833  	}
 25834  	if err != nil {
 25835  		return nil, err
 25836  	}
 25837  	defer googleapi.CloseBody(res)
 25838  	if err := googleapi.CheckResponse(res); err != nil {
 25839  		return nil, gensupport.WrapError(err)
 25840  	}
 25841  	ret := &GoogleCloudDialogflowCxV3beta1ListFlowsResponse{
 25842  		ServerResponse: googleapi.ServerResponse{
 25843  			Header:         res.Header,
 25844  			HTTPStatusCode: res.StatusCode,
 25845  		},
 25846  	}
 25847  	target := &ret
 25848  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25849  		return nil, err
 25850  	}
 25851  	return ret, nil
 25852  }
 25853  
 25854  // Pages invokes f for each page of results.
 25855  // A non-nil error returned from f will halt the iteration.
 25856  // The provided context supersedes any context provided to the Context method.
 25857  func (c *ProjectsLocationsAgentsFlowsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListFlowsResponse) error) error {
 25858  	c.ctx_ = ctx
 25859  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25860  	for {
 25861  		x, err := c.Do()
 25862  		if err != nil {
 25863  			return err
 25864  		}
 25865  		if err := f(x); err != nil {
 25866  			return err
 25867  		}
 25868  		if x.NextPageToken == "" {
 25869  			return nil
 25870  		}
 25871  		c.PageToken(x.NextPageToken)
 25872  	}
 25873  }
 25874  
 25875  type ProjectsLocationsAgentsFlowsPatchCall struct {
 25876  	s                                  *Service
 25877  	nameid                             string
 25878  	googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow
 25879  	urlParams_                         gensupport.URLParams
 25880  	ctx_                               context.Context
 25881  	header_                            http.Header
 25882  }
 25883  
 25884  // Patch: Updates the specified flow. Note: You should always train a flow
 25885  // prior to sending it queries. See the training documentation
 25886  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 25887  //
 25888  //   - name: The unique identifier of the flow. Format:
 25889  //     `projects//locations//agents//flows/`.
 25890  func (r *ProjectsLocationsAgentsFlowsService) Patch(nameid string, googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow) *ProjectsLocationsAgentsFlowsPatchCall {
 25891  	c := &ProjectsLocationsAgentsFlowsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25892  	c.nameid = nameid
 25893  	c.googleclouddialogflowcxv3beta1flow = googleclouddialogflowcxv3beta1flow
 25894  	return c
 25895  }
 25896  
 25897  // LanguageCode sets the optional parameter "languageCode": The language of the
 25898  // following fields in `flow`: *
 25899  // `Flow.event_handlers.trigger_fulfillment.messages` *
 25900  // `Flow.event_handlers.trigger_fulfillment.conditional_cases` *
 25901  // `Flow.transition_routes.trigger_fulfillment.messages` *
 25902  // `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not
 25903  // specified, the agent's default language is used. Many languages
 25904  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 25905  // supported. Note: languages must be enabled in the agent before they can be
 25906  // used.
 25907  func (c *ProjectsLocationsAgentsFlowsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPatchCall {
 25908  	c.urlParams_.Set("languageCode", languageCode)
 25909  	return c
 25910  }
 25911  
 25912  // UpdateMask sets the optional parameter "updateMask": The mask to control
 25913  // which fields get updated. If the mask is not present, all fields will be
 25914  // updated.
 25915  func (c *ProjectsLocationsAgentsFlowsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPatchCall {
 25916  	c.urlParams_.Set("updateMask", updateMask)
 25917  	return c
 25918  }
 25919  
 25920  // Fields allows partial responses to be retrieved. See
 25921  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25922  // details.
 25923  func (c *ProjectsLocationsAgentsFlowsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPatchCall {
 25924  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25925  	return c
 25926  }
 25927  
 25928  // Context sets the context to be used in this call's Do method.
 25929  func (c *ProjectsLocationsAgentsFlowsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPatchCall {
 25930  	c.ctx_ = ctx
 25931  	return c
 25932  }
 25933  
 25934  // Header returns a http.Header that can be modified by the caller to add
 25935  // headers to the request.
 25936  func (c *ProjectsLocationsAgentsFlowsPatchCall) Header() http.Header {
 25937  	if c.header_ == nil {
 25938  		c.header_ = make(http.Header)
 25939  	}
 25940  	return c.header_
 25941  }
 25942  
 25943  func (c *ProjectsLocationsAgentsFlowsPatchCall) doRequest(alt string) (*http.Response, error) {
 25944  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25945  	var body io.Reader = nil
 25946  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1flow)
 25947  	if err != nil {
 25948  		return nil, err
 25949  	}
 25950  	c.urlParams_.Set("alt", alt)
 25951  	c.urlParams_.Set("prettyPrint", "false")
 25952  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 25953  	urls += "?" + c.urlParams_.Encode()
 25954  	req, err := http.NewRequest("PATCH", urls, body)
 25955  	if err != nil {
 25956  		return nil, err
 25957  	}
 25958  	req.Header = reqHeaders
 25959  	googleapi.Expand(req.URL, map[string]string{
 25960  		"name": c.nameid,
 25961  	})
 25962  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25963  }
 25964  
 25965  // Do executes the "dialogflow.projects.locations.agents.flows.patch" call.
 25966  // Any non-2xx status code is an error. Response headers are in either
 25967  // *GoogleCloudDialogflowCxV3beta1Flow.ServerResponse.Header or (if a response
 25968  // was returned at all) in error.(*googleapi.Error).Header. Use
 25969  // googleapi.IsNotModified to check whether the returned error was because
 25970  // http.StatusNotModified was returned.
 25971  func (c *ProjectsLocationsAgentsFlowsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
 25972  	gensupport.SetOptions(c.urlParams_, opts...)
 25973  	res, err := c.doRequest("json")
 25974  	if res != nil && res.StatusCode == http.StatusNotModified {
 25975  		if res.Body != nil {
 25976  			res.Body.Close()
 25977  		}
 25978  		return nil, gensupport.WrapError(&googleapi.Error{
 25979  			Code:   res.StatusCode,
 25980  			Header: res.Header,
 25981  		})
 25982  	}
 25983  	if err != nil {
 25984  		return nil, err
 25985  	}
 25986  	defer googleapi.CloseBody(res)
 25987  	if err := googleapi.CheckResponse(res); err != nil {
 25988  		return nil, gensupport.WrapError(err)
 25989  	}
 25990  	ret := &GoogleCloudDialogflowCxV3beta1Flow{
 25991  		ServerResponse: googleapi.ServerResponse{
 25992  			Header:         res.Header,
 25993  			HTTPStatusCode: res.StatusCode,
 25994  		},
 25995  	}
 25996  	target := &ret
 25997  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25998  		return nil, err
 25999  	}
 26000  	return ret, nil
 26001  }
 26002  
 26003  type ProjectsLocationsAgentsFlowsTrainCall struct {
 26004  	s                                              *Service
 26005  	name                                           string
 26006  	googleclouddialogflowcxv3beta1trainflowrequest *GoogleCloudDialogflowCxV3beta1TrainFlowRequest
 26007  	urlParams_                                     gensupport.URLParams
 26008  	ctx_                                           context.Context
 26009  	header_                                        http.Header
 26010  }
 26011  
 26012  // Train: Trains the specified flow. Note that only the flow in 'draft'
 26013  // environment is trained. This method is a long-running operation
 26014  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 26015  // The returned `Operation` type has the following method-specific fields: -
 26016  // `metadata`: An empty Struct message
 26017  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 26018  // - `response`: An Empty message
 26019  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 26020  // Note: You should always train a flow prior to sending it queries. See the
 26021  // training documentation
 26022  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 26023  //
 26024  // - name: The flow to train. Format: `projects//locations//agents//flows/`.
 26025  func (r *ProjectsLocationsAgentsFlowsService) Train(name string, googleclouddialogflowcxv3beta1trainflowrequest *GoogleCloudDialogflowCxV3beta1TrainFlowRequest) *ProjectsLocationsAgentsFlowsTrainCall {
 26026  	c := &ProjectsLocationsAgentsFlowsTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26027  	c.name = name
 26028  	c.googleclouddialogflowcxv3beta1trainflowrequest = googleclouddialogflowcxv3beta1trainflowrequest
 26029  	return c
 26030  }
 26031  
 26032  // Fields allows partial responses to be retrieved. See
 26033  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26034  // details.
 26035  func (c *ProjectsLocationsAgentsFlowsTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTrainCall {
 26036  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26037  	return c
 26038  }
 26039  
 26040  // Context sets the context to be used in this call's Do method.
 26041  func (c *ProjectsLocationsAgentsFlowsTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTrainCall {
 26042  	c.ctx_ = ctx
 26043  	return c
 26044  }
 26045  
 26046  // Header returns a http.Header that can be modified by the caller to add
 26047  // headers to the request.
 26048  func (c *ProjectsLocationsAgentsFlowsTrainCall) Header() http.Header {
 26049  	if c.header_ == nil {
 26050  		c.header_ = make(http.Header)
 26051  	}
 26052  	return c.header_
 26053  }
 26054  
 26055  func (c *ProjectsLocationsAgentsFlowsTrainCall) doRequest(alt string) (*http.Response, error) {
 26056  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26057  	var body io.Reader = nil
 26058  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1trainflowrequest)
 26059  	if err != nil {
 26060  		return nil, err
 26061  	}
 26062  	c.urlParams_.Set("alt", alt)
 26063  	c.urlParams_.Set("prettyPrint", "false")
 26064  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:train")
 26065  	urls += "?" + c.urlParams_.Encode()
 26066  	req, err := http.NewRequest("POST", urls, body)
 26067  	if err != nil {
 26068  		return nil, err
 26069  	}
 26070  	req.Header = reqHeaders
 26071  	googleapi.Expand(req.URL, map[string]string{
 26072  		"name": c.name,
 26073  	})
 26074  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26075  }
 26076  
 26077  // Do executes the "dialogflow.projects.locations.agents.flows.train" call.
 26078  // Any non-2xx status code is an error. Response headers are in either
 26079  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26080  // returned at all) in error.(*googleapi.Error).Header. Use
 26081  // googleapi.IsNotModified to check whether the returned error was because
 26082  // http.StatusNotModified was returned.
 26083  func (c *ProjectsLocationsAgentsFlowsTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26084  	gensupport.SetOptions(c.urlParams_, opts...)
 26085  	res, err := c.doRequest("json")
 26086  	if res != nil && res.StatusCode == http.StatusNotModified {
 26087  		if res.Body != nil {
 26088  			res.Body.Close()
 26089  		}
 26090  		return nil, gensupport.WrapError(&googleapi.Error{
 26091  			Code:   res.StatusCode,
 26092  			Header: res.Header,
 26093  		})
 26094  	}
 26095  	if err != nil {
 26096  		return nil, err
 26097  	}
 26098  	defer googleapi.CloseBody(res)
 26099  	if err := googleapi.CheckResponse(res); err != nil {
 26100  		return nil, gensupport.WrapError(err)
 26101  	}
 26102  	ret := &GoogleLongrunningOperation{
 26103  		ServerResponse: googleapi.ServerResponse{
 26104  			Header:         res.Header,
 26105  			HTTPStatusCode: res.StatusCode,
 26106  		},
 26107  	}
 26108  	target := &ret
 26109  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26110  		return nil, err
 26111  	}
 26112  	return ret, nil
 26113  }
 26114  
 26115  type ProjectsLocationsAgentsFlowsValidateCall struct {
 26116  	s                                                 *Service
 26117  	name                                              string
 26118  	googleclouddialogflowcxv3beta1validateflowrequest *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest
 26119  	urlParams_                                        gensupport.URLParams
 26120  	ctx_                                              context.Context
 26121  	header_                                           http.Header
 26122  }
 26123  
 26124  // Validate: Validates the specified flow and creates or updates validation
 26125  // results. Please call this API after the training is completed to get the
 26126  // complete validation results.
 26127  //
 26128  // - name: The flow to validate. Format: `projects//locations//agents//flows/`.
 26129  func (r *ProjectsLocationsAgentsFlowsService) Validate(name string, googleclouddialogflowcxv3beta1validateflowrequest *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest) *ProjectsLocationsAgentsFlowsValidateCall {
 26130  	c := &ProjectsLocationsAgentsFlowsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26131  	c.name = name
 26132  	c.googleclouddialogflowcxv3beta1validateflowrequest = googleclouddialogflowcxv3beta1validateflowrequest
 26133  	return c
 26134  }
 26135  
 26136  // Fields allows partial responses to be retrieved. See
 26137  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26138  // details.
 26139  func (c *ProjectsLocationsAgentsFlowsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsValidateCall {
 26140  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26141  	return c
 26142  }
 26143  
 26144  // Context sets the context to be used in this call's Do method.
 26145  func (c *ProjectsLocationsAgentsFlowsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsValidateCall {
 26146  	c.ctx_ = ctx
 26147  	return c
 26148  }
 26149  
 26150  // Header returns a http.Header that can be modified by the caller to add
 26151  // headers to the request.
 26152  func (c *ProjectsLocationsAgentsFlowsValidateCall) Header() http.Header {
 26153  	if c.header_ == nil {
 26154  		c.header_ = make(http.Header)
 26155  	}
 26156  	return c.header_
 26157  }
 26158  
 26159  func (c *ProjectsLocationsAgentsFlowsValidateCall) doRequest(alt string) (*http.Response, error) {
 26160  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26161  	var body io.Reader = nil
 26162  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1validateflowrequest)
 26163  	if err != nil {
 26164  		return nil, err
 26165  	}
 26166  	c.urlParams_.Set("alt", alt)
 26167  	c.urlParams_.Set("prettyPrint", "false")
 26168  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:validate")
 26169  	urls += "?" + c.urlParams_.Encode()
 26170  	req, err := http.NewRequest("POST", urls, body)
 26171  	if err != nil {
 26172  		return nil, err
 26173  	}
 26174  	req.Header = reqHeaders
 26175  	googleapi.Expand(req.URL, map[string]string{
 26176  		"name": c.name,
 26177  	})
 26178  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26179  }
 26180  
 26181  // Do executes the "dialogflow.projects.locations.agents.flows.validate" call.
 26182  // Any non-2xx status code is an error. Response headers are in either
 26183  // *GoogleCloudDialogflowCxV3beta1FlowValidationResult.ServerResponse.Header or
 26184  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 26185  // googleapi.IsNotModified to check whether the returned error was because
 26186  // http.StatusNotModified was returned.
 26187  func (c *ProjectsLocationsAgentsFlowsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FlowValidationResult, error) {
 26188  	gensupport.SetOptions(c.urlParams_, opts...)
 26189  	res, err := c.doRequest("json")
 26190  	if res != nil && res.StatusCode == http.StatusNotModified {
 26191  		if res.Body != nil {
 26192  			res.Body.Close()
 26193  		}
 26194  		return nil, gensupport.WrapError(&googleapi.Error{
 26195  			Code:   res.StatusCode,
 26196  			Header: res.Header,
 26197  		})
 26198  	}
 26199  	if err != nil {
 26200  		return nil, err
 26201  	}
 26202  	defer googleapi.CloseBody(res)
 26203  	if err := googleapi.CheckResponse(res); err != nil {
 26204  		return nil, gensupport.WrapError(err)
 26205  	}
 26206  	ret := &GoogleCloudDialogflowCxV3beta1FlowValidationResult{
 26207  		ServerResponse: googleapi.ServerResponse{
 26208  			Header:         res.Header,
 26209  			HTTPStatusCode: res.StatusCode,
 26210  		},
 26211  	}
 26212  	target := &ret
 26213  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26214  		return nil, err
 26215  	}
 26216  	return ret, nil
 26217  }
 26218  
 26219  type ProjectsLocationsAgentsFlowsPagesCreateCall struct {
 26220  	s                                  *Service
 26221  	parent                             string
 26222  	googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page
 26223  	urlParams_                         gensupport.URLParams
 26224  	ctx_                               context.Context
 26225  	header_                            http.Header
 26226  }
 26227  
 26228  // Create: Creates a page in the specified flow.
 26229  //
 26230  //   - parent: The flow to create a page for. Format:
 26231  //     `projects//locations//agents//flows/`.
 26232  func (r *ProjectsLocationsAgentsFlowsPagesService) Create(parent string, googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page) *ProjectsLocationsAgentsFlowsPagesCreateCall {
 26233  	c := &ProjectsLocationsAgentsFlowsPagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26234  	c.parent = parent
 26235  	c.googleclouddialogflowcxv3beta1page = googleclouddialogflowcxv3beta1page
 26236  	return c
 26237  }
 26238  
 26239  // LanguageCode sets the optional parameter "languageCode": The language of the
 26240  // following fields in `page`: * `Page.entry_fulfillment.messages` *
 26241  // `Page.entry_fulfillment.conditional_cases` *
 26242  // `Page.event_handlers.trigger_fulfillment.messages` *
 26243  // `Page.event_handlers.trigger_fulfillment.conditional_cases` *
 26244  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` *
 26245  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_ca
 26246  // ses` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
 26247  // *
 26248  // `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases
 26249  // ` * `Page.transition_routes.trigger_fulfillment.messages` *
 26250  // `Page.transition_routes.trigger_fulfillment.conditional_cases` If not
 26251  // specified, the agent's default language is used. Many languages
 26252  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 26253  // supported. Note: languages must be enabled in the agent before they can be
 26254  // used.
 26255  func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesCreateCall {
 26256  	c.urlParams_.Set("languageCode", languageCode)
 26257  	return c
 26258  }
 26259  
 26260  // Fields allows partial responses to be retrieved. See
 26261  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26262  // details.
 26263  func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesCreateCall {
 26264  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26265  	return c
 26266  }
 26267  
 26268  // Context sets the context to be used in this call's Do method.
 26269  func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesCreateCall {
 26270  	c.ctx_ = ctx
 26271  	return c
 26272  }
 26273  
 26274  // Header returns a http.Header that can be modified by the caller to add
 26275  // headers to the request.
 26276  func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Header() http.Header {
 26277  	if c.header_ == nil {
 26278  		c.header_ = make(http.Header)
 26279  	}
 26280  	return c.header_
 26281  }
 26282  
 26283  func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) doRequest(alt string) (*http.Response, error) {
 26284  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26285  	var body io.Reader = nil
 26286  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1page)
 26287  	if err != nil {
 26288  		return nil, err
 26289  	}
 26290  	c.urlParams_.Set("alt", alt)
 26291  	c.urlParams_.Set("prettyPrint", "false")
 26292  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/pages")
 26293  	urls += "?" + c.urlParams_.Encode()
 26294  	req, err := http.NewRequest("POST", urls, body)
 26295  	if err != nil {
 26296  		return nil, err
 26297  	}
 26298  	req.Header = reqHeaders
 26299  	googleapi.Expand(req.URL, map[string]string{
 26300  		"parent": c.parent,
 26301  	})
 26302  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26303  }
 26304  
 26305  // Do executes the "dialogflow.projects.locations.agents.flows.pages.create" call.
 26306  // Any non-2xx status code is an error. Response headers are in either
 26307  // *GoogleCloudDialogflowCxV3beta1Page.ServerResponse.Header or (if a response
 26308  // was returned at all) in error.(*googleapi.Error).Header. Use
 26309  // googleapi.IsNotModified to check whether the returned error was because
 26310  // http.StatusNotModified was returned.
 26311  func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
 26312  	gensupport.SetOptions(c.urlParams_, opts...)
 26313  	res, err := c.doRequest("json")
 26314  	if res != nil && res.StatusCode == http.StatusNotModified {
 26315  		if res.Body != nil {
 26316  			res.Body.Close()
 26317  		}
 26318  		return nil, gensupport.WrapError(&googleapi.Error{
 26319  			Code:   res.StatusCode,
 26320  			Header: res.Header,
 26321  		})
 26322  	}
 26323  	if err != nil {
 26324  		return nil, err
 26325  	}
 26326  	defer googleapi.CloseBody(res)
 26327  	if err := googleapi.CheckResponse(res); err != nil {
 26328  		return nil, gensupport.WrapError(err)
 26329  	}
 26330  	ret := &GoogleCloudDialogflowCxV3beta1Page{
 26331  		ServerResponse: googleapi.ServerResponse{
 26332  			Header:         res.Header,
 26333  			HTTPStatusCode: res.StatusCode,
 26334  		},
 26335  	}
 26336  	target := &ret
 26337  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26338  		return nil, err
 26339  	}
 26340  	return ret, nil
 26341  }
 26342  
 26343  type ProjectsLocationsAgentsFlowsPagesDeleteCall struct {
 26344  	s          *Service
 26345  	name       string
 26346  	urlParams_ gensupport.URLParams
 26347  	ctx_       context.Context
 26348  	header_    http.Header
 26349  }
 26350  
 26351  // Delete: Deletes the specified page.
 26352  //
 26353  //   - name: The name of the page to delete. Format:
 26354  //     `projects//locations//agents//Flows//pages/`.
 26355  func (r *ProjectsLocationsAgentsFlowsPagesService) Delete(name string) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
 26356  	c := &ProjectsLocationsAgentsFlowsPagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26357  	c.name = name
 26358  	return c
 26359  }
 26360  
 26361  // Force sets the optional parameter "force": This field has no effect for
 26362  // pages with no incoming transitions. For pages with incoming transitions: *
 26363  // If `force` is set to false, an error will be returned with message
 26364  // indicating the incoming transitions. * If `force` is set to true, Dialogflow
 26365  // will remove the page, as well as any transitions to the page (i.e. Target
 26366  // page in event handlers or Target page in transition routes that point to
 26367  // this page will be cleared).
 26368  func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
 26369  	c.urlParams_.Set("force", fmt.Sprint(force))
 26370  	return c
 26371  }
 26372  
 26373  // Fields allows partial responses to be retrieved. See
 26374  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26375  // details.
 26376  func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
 26377  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26378  	return c
 26379  }
 26380  
 26381  // Context sets the context to be used in this call's Do method.
 26382  func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
 26383  	c.ctx_ = ctx
 26384  	return c
 26385  }
 26386  
 26387  // Header returns a http.Header that can be modified by the caller to add
 26388  // headers to the request.
 26389  func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Header() http.Header {
 26390  	if c.header_ == nil {
 26391  		c.header_ = make(http.Header)
 26392  	}
 26393  	return c.header_
 26394  }
 26395  
 26396  func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) doRequest(alt string) (*http.Response, error) {
 26397  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26398  	var body io.Reader = nil
 26399  	c.urlParams_.Set("alt", alt)
 26400  	c.urlParams_.Set("prettyPrint", "false")
 26401  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 26402  	urls += "?" + c.urlParams_.Encode()
 26403  	req, err := http.NewRequest("DELETE", urls, body)
 26404  	if err != nil {
 26405  		return nil, err
 26406  	}
 26407  	req.Header = reqHeaders
 26408  	googleapi.Expand(req.URL, map[string]string{
 26409  		"name": c.name,
 26410  	})
 26411  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26412  }
 26413  
 26414  // Do executes the "dialogflow.projects.locations.agents.flows.pages.delete" call.
 26415  // Any non-2xx status code is an error. Response headers are in either
 26416  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 26417  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26418  // check whether the returned error was because http.StatusNotModified was
 26419  // returned.
 26420  func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 26421  	gensupport.SetOptions(c.urlParams_, opts...)
 26422  	res, err := c.doRequest("json")
 26423  	if res != nil && res.StatusCode == http.StatusNotModified {
 26424  		if res.Body != nil {
 26425  			res.Body.Close()
 26426  		}
 26427  		return nil, gensupport.WrapError(&googleapi.Error{
 26428  			Code:   res.StatusCode,
 26429  			Header: res.Header,
 26430  		})
 26431  	}
 26432  	if err != nil {
 26433  		return nil, err
 26434  	}
 26435  	defer googleapi.CloseBody(res)
 26436  	if err := googleapi.CheckResponse(res); err != nil {
 26437  		return nil, gensupport.WrapError(err)
 26438  	}
 26439  	ret := &GoogleProtobufEmpty{
 26440  		ServerResponse: googleapi.ServerResponse{
 26441  			Header:         res.Header,
 26442  			HTTPStatusCode: res.StatusCode,
 26443  		},
 26444  	}
 26445  	target := &ret
 26446  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26447  		return nil, err
 26448  	}
 26449  	return ret, nil
 26450  }
 26451  
 26452  type ProjectsLocationsAgentsFlowsPagesGetCall struct {
 26453  	s            *Service
 26454  	name         string
 26455  	urlParams_   gensupport.URLParams
 26456  	ifNoneMatch_ string
 26457  	ctx_         context.Context
 26458  	header_      http.Header
 26459  }
 26460  
 26461  // Get: Retrieves the specified page.
 26462  //
 26463  //   - name: The name of the page. Format:
 26464  //     `projects//locations//agents//flows//pages/`.
 26465  func (r *ProjectsLocationsAgentsFlowsPagesService) Get(name string) *ProjectsLocationsAgentsFlowsPagesGetCall {
 26466  	c := &ProjectsLocationsAgentsFlowsPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26467  	c.name = name
 26468  	return c
 26469  }
 26470  
 26471  // LanguageCode sets the optional parameter "languageCode": The language to
 26472  // retrieve the page for. The following fields are language dependent: *
 26473  // `Page.entry_fulfillment.messages` *
 26474  // `Page.entry_fulfillment.conditional_cases` *
 26475  // `Page.event_handlers.trigger_fulfillment.messages` *
 26476  // `Page.event_handlers.trigger_fulfillment.conditional_cases` *
 26477  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` *
 26478  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_ca
 26479  // ses` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
 26480  // *
 26481  // `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases
 26482  // ` * `Page.transition_routes.trigger_fulfillment.messages` *
 26483  // `Page.transition_routes.trigger_fulfillment.conditional_cases` If not
 26484  // specified, the agent's default language is used. Many languages
 26485  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 26486  // supported. Note: languages must be enabled in the agent before they can be
 26487  // used.
 26488  func (c *ProjectsLocationsAgentsFlowsPagesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesGetCall {
 26489  	c.urlParams_.Set("languageCode", languageCode)
 26490  	return c
 26491  }
 26492  
 26493  // Fields allows partial responses to be retrieved. See
 26494  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26495  // details.
 26496  func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesGetCall {
 26497  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26498  	return c
 26499  }
 26500  
 26501  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26502  // object's ETag matches the given value. This is useful for getting updates
 26503  // only after the object has changed since the last request.
 26504  func (c *ProjectsLocationsAgentsFlowsPagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesGetCall {
 26505  	c.ifNoneMatch_ = entityTag
 26506  	return c
 26507  }
 26508  
 26509  // Context sets the context to be used in this call's Do method.
 26510  func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesGetCall {
 26511  	c.ctx_ = ctx
 26512  	return c
 26513  }
 26514  
 26515  // Header returns a http.Header that can be modified by the caller to add
 26516  // headers to the request.
 26517  func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Header() http.Header {
 26518  	if c.header_ == nil {
 26519  		c.header_ = make(http.Header)
 26520  	}
 26521  	return c.header_
 26522  }
 26523  
 26524  func (c *ProjectsLocationsAgentsFlowsPagesGetCall) doRequest(alt string) (*http.Response, error) {
 26525  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26526  	if c.ifNoneMatch_ != "" {
 26527  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26528  	}
 26529  	var body io.Reader = nil
 26530  	c.urlParams_.Set("alt", alt)
 26531  	c.urlParams_.Set("prettyPrint", "false")
 26532  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 26533  	urls += "?" + c.urlParams_.Encode()
 26534  	req, err := http.NewRequest("GET", urls, body)
 26535  	if err != nil {
 26536  		return nil, err
 26537  	}
 26538  	req.Header = reqHeaders
 26539  	googleapi.Expand(req.URL, map[string]string{
 26540  		"name": c.name,
 26541  	})
 26542  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26543  }
 26544  
 26545  // Do executes the "dialogflow.projects.locations.agents.flows.pages.get" call.
 26546  // Any non-2xx status code is an error. Response headers are in either
 26547  // *GoogleCloudDialogflowCxV3beta1Page.ServerResponse.Header or (if a response
 26548  // was returned at all) in error.(*googleapi.Error).Header. Use
 26549  // googleapi.IsNotModified to check whether the returned error was because
 26550  // http.StatusNotModified was returned.
 26551  func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
 26552  	gensupport.SetOptions(c.urlParams_, opts...)
 26553  	res, err := c.doRequest("json")
 26554  	if res != nil && res.StatusCode == http.StatusNotModified {
 26555  		if res.Body != nil {
 26556  			res.Body.Close()
 26557  		}
 26558  		return nil, gensupport.WrapError(&googleapi.Error{
 26559  			Code:   res.StatusCode,
 26560  			Header: res.Header,
 26561  		})
 26562  	}
 26563  	if err != nil {
 26564  		return nil, err
 26565  	}
 26566  	defer googleapi.CloseBody(res)
 26567  	if err := googleapi.CheckResponse(res); err != nil {
 26568  		return nil, gensupport.WrapError(err)
 26569  	}
 26570  	ret := &GoogleCloudDialogflowCxV3beta1Page{
 26571  		ServerResponse: googleapi.ServerResponse{
 26572  			Header:         res.Header,
 26573  			HTTPStatusCode: res.StatusCode,
 26574  		},
 26575  	}
 26576  	target := &ret
 26577  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26578  		return nil, err
 26579  	}
 26580  	return ret, nil
 26581  }
 26582  
 26583  type ProjectsLocationsAgentsFlowsPagesListCall struct {
 26584  	s            *Service
 26585  	parent       string
 26586  	urlParams_   gensupport.URLParams
 26587  	ifNoneMatch_ string
 26588  	ctx_         context.Context
 26589  	header_      http.Header
 26590  }
 26591  
 26592  // List: Returns the list of all pages in the specified flow.
 26593  //
 26594  //   - parent: The flow to list all pages for. Format:
 26595  //     `projects//locations//agents//flows/`.
 26596  func (r *ProjectsLocationsAgentsFlowsPagesService) List(parent string) *ProjectsLocationsAgentsFlowsPagesListCall {
 26597  	c := &ProjectsLocationsAgentsFlowsPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26598  	c.parent = parent
 26599  	return c
 26600  }
 26601  
 26602  // LanguageCode sets the optional parameter "languageCode": The language to
 26603  // list pages for. The following fields are language dependent: *
 26604  // `Page.entry_fulfillment.messages` *
 26605  // `Page.entry_fulfillment.conditional_cases` *
 26606  // `Page.event_handlers.trigger_fulfillment.messages` *
 26607  // `Page.event_handlers.trigger_fulfillment.conditional_cases` *
 26608  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` *
 26609  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_ca
 26610  // ses` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
 26611  // *
 26612  // `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases
 26613  // ` * `Page.transition_routes.trigger_fulfillment.messages` *
 26614  // `Page.transition_routes.trigger_fulfillment.conditional_cases` If not
 26615  // specified, the agent's default language is used. Many languages
 26616  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 26617  // supported. Note: languages must be enabled in the agent before they can be
 26618  // used.
 26619  func (c *ProjectsLocationsAgentsFlowsPagesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesListCall {
 26620  	c.urlParams_.Set("languageCode", languageCode)
 26621  	return c
 26622  }
 26623  
 26624  // PageSize sets the optional parameter "pageSize": The maximum number of items
 26625  // to return in a single page. By default 100 and at most 1000.
 26626  func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsPagesListCall {
 26627  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26628  	return c
 26629  }
 26630  
 26631  // PageToken sets the optional parameter "pageToken": The next_page_token value
 26632  // returned from a previous list request.
 26633  func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsPagesListCall {
 26634  	c.urlParams_.Set("pageToken", pageToken)
 26635  	return c
 26636  }
 26637  
 26638  // Fields allows partial responses to be retrieved. See
 26639  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26640  // details.
 26641  func (c *ProjectsLocationsAgentsFlowsPagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesListCall {
 26642  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26643  	return c
 26644  }
 26645  
 26646  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26647  // object's ETag matches the given value. This is useful for getting updates
 26648  // only after the object has changed since the last request.
 26649  func (c *ProjectsLocationsAgentsFlowsPagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesListCall {
 26650  	c.ifNoneMatch_ = entityTag
 26651  	return c
 26652  }
 26653  
 26654  // Context sets the context to be used in this call's Do method.
 26655  func (c *ProjectsLocationsAgentsFlowsPagesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesListCall {
 26656  	c.ctx_ = ctx
 26657  	return c
 26658  }
 26659  
 26660  // Header returns a http.Header that can be modified by the caller to add
 26661  // headers to the request.
 26662  func (c *ProjectsLocationsAgentsFlowsPagesListCall) Header() http.Header {
 26663  	if c.header_ == nil {
 26664  		c.header_ = make(http.Header)
 26665  	}
 26666  	return c.header_
 26667  }
 26668  
 26669  func (c *ProjectsLocationsAgentsFlowsPagesListCall) doRequest(alt string) (*http.Response, error) {
 26670  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26671  	if c.ifNoneMatch_ != "" {
 26672  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26673  	}
 26674  	var body io.Reader = nil
 26675  	c.urlParams_.Set("alt", alt)
 26676  	c.urlParams_.Set("prettyPrint", "false")
 26677  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/pages")
 26678  	urls += "?" + c.urlParams_.Encode()
 26679  	req, err := http.NewRequest("GET", urls, body)
 26680  	if err != nil {
 26681  		return nil, err
 26682  	}
 26683  	req.Header = reqHeaders
 26684  	googleapi.Expand(req.URL, map[string]string{
 26685  		"parent": c.parent,
 26686  	})
 26687  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26688  }
 26689  
 26690  // Do executes the "dialogflow.projects.locations.agents.flows.pages.list" call.
 26691  // Any non-2xx status code is an error. Response headers are in either
 26692  // *GoogleCloudDialogflowCxV3beta1ListPagesResponse.ServerResponse.Header or
 26693  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 26694  // googleapi.IsNotModified to check whether the returned error was because
 26695  // http.StatusNotModified was returned.
 26696  func (c *ProjectsLocationsAgentsFlowsPagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListPagesResponse, error) {
 26697  	gensupport.SetOptions(c.urlParams_, opts...)
 26698  	res, err := c.doRequest("json")
 26699  	if res != nil && res.StatusCode == http.StatusNotModified {
 26700  		if res.Body != nil {
 26701  			res.Body.Close()
 26702  		}
 26703  		return nil, gensupport.WrapError(&googleapi.Error{
 26704  			Code:   res.StatusCode,
 26705  			Header: res.Header,
 26706  		})
 26707  	}
 26708  	if err != nil {
 26709  		return nil, err
 26710  	}
 26711  	defer googleapi.CloseBody(res)
 26712  	if err := googleapi.CheckResponse(res); err != nil {
 26713  		return nil, gensupport.WrapError(err)
 26714  	}
 26715  	ret := &GoogleCloudDialogflowCxV3beta1ListPagesResponse{
 26716  		ServerResponse: googleapi.ServerResponse{
 26717  			Header:         res.Header,
 26718  			HTTPStatusCode: res.StatusCode,
 26719  		},
 26720  	}
 26721  	target := &ret
 26722  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26723  		return nil, err
 26724  	}
 26725  	return ret, nil
 26726  }
 26727  
 26728  // Pages invokes f for each page of results.
 26729  // A non-nil error returned from f will halt the iteration.
 26730  // The provided context supersedes any context provided to the Context method.
 26731  func (c *ProjectsLocationsAgentsFlowsPagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListPagesResponse) error) error {
 26732  	c.ctx_ = ctx
 26733  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26734  	for {
 26735  		x, err := c.Do()
 26736  		if err != nil {
 26737  			return err
 26738  		}
 26739  		if err := f(x); err != nil {
 26740  			return err
 26741  		}
 26742  		if x.NextPageToken == "" {
 26743  			return nil
 26744  		}
 26745  		c.PageToken(x.NextPageToken)
 26746  	}
 26747  }
 26748  
 26749  type ProjectsLocationsAgentsFlowsPagesPatchCall struct {
 26750  	s                                  *Service
 26751  	nameid                             string
 26752  	googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page
 26753  	urlParams_                         gensupport.URLParams
 26754  	ctx_                               context.Context
 26755  	header_                            http.Header
 26756  }
 26757  
 26758  // Patch: Updates the specified page.
 26759  //
 26760  //   - name: The unique identifier of the page. Required for the Pages.UpdatePage
 26761  //     method. Pages.CreatePage populates the name automatically. Format:
 26762  //     `projects//locations//agents//flows//pages/`.
 26763  func (r *ProjectsLocationsAgentsFlowsPagesService) Patch(nameid string, googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page) *ProjectsLocationsAgentsFlowsPagesPatchCall {
 26764  	c := &ProjectsLocationsAgentsFlowsPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26765  	c.nameid = nameid
 26766  	c.googleclouddialogflowcxv3beta1page = googleclouddialogflowcxv3beta1page
 26767  	return c
 26768  }
 26769  
 26770  // LanguageCode sets the optional parameter "languageCode": The language of the
 26771  // following fields in `page`: * `Page.entry_fulfillment.messages` *
 26772  // `Page.entry_fulfillment.conditional_cases` *
 26773  // `Page.event_handlers.trigger_fulfillment.messages` *
 26774  // `Page.event_handlers.trigger_fulfillment.conditional_cases` *
 26775  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` *
 26776  // `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_ca
 26777  // ses` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
 26778  // *
 26779  // `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases
 26780  // ` * `Page.transition_routes.trigger_fulfillment.messages` *
 26781  // `Page.transition_routes.trigger_fulfillment.conditional_cases` If not
 26782  // specified, the agent's default language is used. Many languages
 26783  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 26784  // supported. Note: languages must be enabled in the agent before they can be
 26785  // used.
 26786  func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
 26787  	c.urlParams_.Set("languageCode", languageCode)
 26788  	return c
 26789  }
 26790  
 26791  // UpdateMask sets the optional parameter "updateMask": The mask to control
 26792  // which fields get updated. If the mask is not present, all fields will be
 26793  // updated.
 26794  func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
 26795  	c.urlParams_.Set("updateMask", updateMask)
 26796  	return c
 26797  }
 26798  
 26799  // Fields allows partial responses to be retrieved. See
 26800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26801  // details.
 26802  func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesPatchCall {
 26803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26804  	return c
 26805  }
 26806  
 26807  // Context sets the context to be used in this call's Do method.
 26808  func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesPatchCall {
 26809  	c.ctx_ = ctx
 26810  	return c
 26811  }
 26812  
 26813  // Header returns a http.Header that can be modified by the caller to add
 26814  // headers to the request.
 26815  func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Header() http.Header {
 26816  	if c.header_ == nil {
 26817  		c.header_ = make(http.Header)
 26818  	}
 26819  	return c.header_
 26820  }
 26821  
 26822  func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) doRequest(alt string) (*http.Response, error) {
 26823  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26824  	var body io.Reader = nil
 26825  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1page)
 26826  	if err != nil {
 26827  		return nil, err
 26828  	}
 26829  	c.urlParams_.Set("alt", alt)
 26830  	c.urlParams_.Set("prettyPrint", "false")
 26831  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 26832  	urls += "?" + c.urlParams_.Encode()
 26833  	req, err := http.NewRequest("PATCH", urls, body)
 26834  	if err != nil {
 26835  		return nil, err
 26836  	}
 26837  	req.Header = reqHeaders
 26838  	googleapi.Expand(req.URL, map[string]string{
 26839  		"name": c.nameid,
 26840  	})
 26841  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26842  }
 26843  
 26844  // Do executes the "dialogflow.projects.locations.agents.flows.pages.patch" call.
 26845  // Any non-2xx status code is an error. Response headers are in either
 26846  // *GoogleCloudDialogflowCxV3beta1Page.ServerResponse.Header or (if a response
 26847  // was returned at all) in error.(*googleapi.Error).Header. Use
 26848  // googleapi.IsNotModified to check whether the returned error was because
 26849  // http.StatusNotModified was returned.
 26850  func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
 26851  	gensupport.SetOptions(c.urlParams_, opts...)
 26852  	res, err := c.doRequest("json")
 26853  	if res != nil && res.StatusCode == http.StatusNotModified {
 26854  		if res.Body != nil {
 26855  			res.Body.Close()
 26856  		}
 26857  		return nil, gensupport.WrapError(&googleapi.Error{
 26858  			Code:   res.StatusCode,
 26859  			Header: res.Header,
 26860  		})
 26861  	}
 26862  	if err != nil {
 26863  		return nil, err
 26864  	}
 26865  	defer googleapi.CloseBody(res)
 26866  	if err := googleapi.CheckResponse(res); err != nil {
 26867  		return nil, gensupport.WrapError(err)
 26868  	}
 26869  	ret := &GoogleCloudDialogflowCxV3beta1Page{
 26870  		ServerResponse: googleapi.ServerResponse{
 26871  			Header:         res.Header,
 26872  			HTTPStatusCode: res.StatusCode,
 26873  		},
 26874  	}
 26875  	target := &ret
 26876  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26877  		return nil, err
 26878  	}
 26879  	return ret, nil
 26880  }
 26881  
 26882  type ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall struct {
 26883  	s                                                  *Service
 26884  	parent                                             string
 26885  	googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
 26886  	urlParams_                                         gensupport.URLParams
 26887  	ctx_                                               context.Context
 26888  	header_                                            http.Header
 26889  }
 26890  
 26891  // Create: Creates an TransitionRouteGroup in the specified flow. Note: You
 26892  // should always train a flow prior to sending it queries. See the training
 26893  // documentation
 26894  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 26895  //
 26896  //   - parent: The flow to create an TransitionRouteGroup for. Format:
 26897  //     `projects//locations//agents//flows/` or `projects//locations//agents/`
 26898  //     for agent-level groups.
 26899  func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Create(parent string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
 26900  	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26901  	c.parent = parent
 26902  	c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
 26903  	return c
 26904  }
 26905  
 26906  // LanguageCode sets the optional parameter "languageCode": The language of the
 26907  // following fields in `TransitionRouteGroup`: *
 26908  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 26909  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 26910  // ` If not specified, the agent's default language is used. Many languages
 26911  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 26912  // supported. Note: languages must be enabled in the agent before they can be
 26913  // used.
 26914  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
 26915  	c.urlParams_.Set("languageCode", languageCode)
 26916  	return c
 26917  }
 26918  
 26919  // Fields allows partial responses to be retrieved. See
 26920  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26921  // details.
 26922  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
 26923  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26924  	return c
 26925  }
 26926  
 26927  // Context sets the context to be used in this call's Do method.
 26928  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
 26929  	c.ctx_ = ctx
 26930  	return c
 26931  }
 26932  
 26933  // Header returns a http.Header that can be modified by the caller to add
 26934  // headers to the request.
 26935  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Header() http.Header {
 26936  	if c.header_ == nil {
 26937  		c.header_ = make(http.Header)
 26938  	}
 26939  	return c.header_
 26940  }
 26941  
 26942  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
 26943  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26944  	var body io.Reader = nil
 26945  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
 26946  	if err != nil {
 26947  		return nil, err
 26948  	}
 26949  	c.urlParams_.Set("alt", alt)
 26950  	c.urlParams_.Set("prettyPrint", "false")
 26951  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
 26952  	urls += "?" + c.urlParams_.Encode()
 26953  	req, err := http.NewRequest("POST", urls, body)
 26954  	if err != nil {
 26955  		return nil, err
 26956  	}
 26957  	req.Header = reqHeaders
 26958  	googleapi.Expand(req.URL, map[string]string{
 26959  		"parent": c.parent,
 26960  	})
 26961  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26962  }
 26963  
 26964  // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.create" call.
 26965  // Any non-2xx status code is an error. Response headers are in either
 26966  // *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Header or
 26967  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 26968  // googleapi.IsNotModified to check whether the returned error was because
 26969  // http.StatusNotModified was returned.
 26970  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
 26971  	gensupport.SetOptions(c.urlParams_, opts...)
 26972  	res, err := c.doRequest("json")
 26973  	if res != nil && res.StatusCode == http.StatusNotModified {
 26974  		if res.Body != nil {
 26975  			res.Body.Close()
 26976  		}
 26977  		return nil, gensupport.WrapError(&googleapi.Error{
 26978  			Code:   res.StatusCode,
 26979  			Header: res.Header,
 26980  		})
 26981  	}
 26982  	if err != nil {
 26983  		return nil, err
 26984  	}
 26985  	defer googleapi.CloseBody(res)
 26986  	if err := googleapi.CheckResponse(res); err != nil {
 26987  		return nil, gensupport.WrapError(err)
 26988  	}
 26989  	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
 26990  		ServerResponse: googleapi.ServerResponse{
 26991  			Header:         res.Header,
 26992  			HTTPStatusCode: res.StatusCode,
 26993  		},
 26994  	}
 26995  	target := &ret
 26996  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26997  		return nil, err
 26998  	}
 26999  	return ret, nil
 27000  }
 27001  
 27002  type ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall struct {
 27003  	s          *Service
 27004  	name       string
 27005  	urlParams_ gensupport.URLParams
 27006  	ctx_       context.Context
 27007  	header_    http.Header
 27008  }
 27009  
 27010  // Delete: Deletes the specified TransitionRouteGroup. Note: You should always
 27011  // train a flow prior to sending it queries. See the training documentation
 27012  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 27013  //
 27014  //   - name: The name of the TransitionRouteGroup to delete. Format:
 27015  //     `projects//locations//agents//flows//transitionRouteGroups/` or
 27016  //     `projects//locations//agents//transitionRouteGroups/`.
 27017  func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Delete(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
 27018  	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27019  	c.name = name
 27020  	return c
 27021  }
 27022  
 27023  // Force sets the optional parameter "force": This field has no effect for
 27024  // transition route group that no page is using. If the transition route group
 27025  // is referenced by any page: * If `force` is set to false, an error will be
 27026  // returned with message indicating pages that reference the transition route
 27027  // group. * If `force` is set to true, Dialogflow will remove the transition
 27028  // route group, as well as any reference to it.
 27029  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
 27030  	c.urlParams_.Set("force", fmt.Sprint(force))
 27031  	return c
 27032  }
 27033  
 27034  // Fields allows partial responses to be retrieved. See
 27035  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27036  // details.
 27037  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
 27038  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27039  	return c
 27040  }
 27041  
 27042  // Context sets the context to be used in this call's Do method.
 27043  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
 27044  	c.ctx_ = ctx
 27045  	return c
 27046  }
 27047  
 27048  // Header returns a http.Header that can be modified by the caller to add
 27049  // headers to the request.
 27050  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Header() http.Header {
 27051  	if c.header_ == nil {
 27052  		c.header_ = make(http.Header)
 27053  	}
 27054  	return c.header_
 27055  }
 27056  
 27057  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
 27058  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27059  	var body io.Reader = nil
 27060  	c.urlParams_.Set("alt", alt)
 27061  	c.urlParams_.Set("prettyPrint", "false")
 27062  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 27063  	urls += "?" + c.urlParams_.Encode()
 27064  	req, err := http.NewRequest("DELETE", urls, body)
 27065  	if err != nil {
 27066  		return nil, err
 27067  	}
 27068  	req.Header = reqHeaders
 27069  	googleapi.Expand(req.URL, map[string]string{
 27070  		"name": c.name,
 27071  	})
 27072  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27073  }
 27074  
 27075  // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete" call.
 27076  // Any non-2xx status code is an error. Response headers are in either
 27077  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 27078  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27079  // check whether the returned error was because http.StatusNotModified was
 27080  // returned.
 27081  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 27082  	gensupport.SetOptions(c.urlParams_, opts...)
 27083  	res, err := c.doRequest("json")
 27084  	if res != nil && res.StatusCode == http.StatusNotModified {
 27085  		if res.Body != nil {
 27086  			res.Body.Close()
 27087  		}
 27088  		return nil, gensupport.WrapError(&googleapi.Error{
 27089  			Code:   res.StatusCode,
 27090  			Header: res.Header,
 27091  		})
 27092  	}
 27093  	if err != nil {
 27094  		return nil, err
 27095  	}
 27096  	defer googleapi.CloseBody(res)
 27097  	if err := googleapi.CheckResponse(res); err != nil {
 27098  		return nil, gensupport.WrapError(err)
 27099  	}
 27100  	ret := &GoogleProtobufEmpty{
 27101  		ServerResponse: googleapi.ServerResponse{
 27102  			Header:         res.Header,
 27103  			HTTPStatusCode: res.StatusCode,
 27104  		},
 27105  	}
 27106  	target := &ret
 27107  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27108  		return nil, err
 27109  	}
 27110  	return ret, nil
 27111  }
 27112  
 27113  type ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall struct {
 27114  	s            *Service
 27115  	name         string
 27116  	urlParams_   gensupport.URLParams
 27117  	ifNoneMatch_ string
 27118  	ctx_         context.Context
 27119  	header_      http.Header
 27120  }
 27121  
 27122  // Get: Retrieves the specified TransitionRouteGroup.
 27123  //
 27124  //   - name: The name of the TransitionRouteGroup. Format:
 27125  //     `projects//locations//agents//flows//transitionRouteGroups/` or
 27126  //     `projects//locations//agents//transitionRouteGroups/`.
 27127  func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Get(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
 27128  	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27129  	c.name = name
 27130  	return c
 27131  }
 27132  
 27133  // LanguageCode sets the optional parameter "languageCode": The language to
 27134  // retrieve the transition route group for. The following fields are language
 27135  // dependent: *
 27136  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 27137  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 27138  // ` If not specified, the agent's default language is used. Many languages
 27139  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 27140  // supported. Note: languages must be enabled in the agent before they can be
 27141  // used.
 27142  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
 27143  	c.urlParams_.Set("languageCode", languageCode)
 27144  	return c
 27145  }
 27146  
 27147  // Fields allows partial responses to be retrieved. See
 27148  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27149  // details.
 27150  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
 27151  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27152  	return c
 27153  }
 27154  
 27155  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27156  // object's ETag matches the given value. This is useful for getting updates
 27157  // only after the object has changed since the last request.
 27158  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
 27159  	c.ifNoneMatch_ = entityTag
 27160  	return c
 27161  }
 27162  
 27163  // Context sets the context to be used in this call's Do method.
 27164  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
 27165  	c.ctx_ = ctx
 27166  	return c
 27167  }
 27168  
 27169  // Header returns a http.Header that can be modified by the caller to add
 27170  // headers to the request.
 27171  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Header() http.Header {
 27172  	if c.header_ == nil {
 27173  		c.header_ = make(http.Header)
 27174  	}
 27175  	return c.header_
 27176  }
 27177  
 27178  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) {
 27179  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27180  	if c.ifNoneMatch_ != "" {
 27181  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27182  	}
 27183  	var body io.Reader = nil
 27184  	c.urlParams_.Set("alt", alt)
 27185  	c.urlParams_.Set("prettyPrint", "false")
 27186  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 27187  	urls += "?" + c.urlParams_.Encode()
 27188  	req, err := http.NewRequest("GET", urls, body)
 27189  	if err != nil {
 27190  		return nil, err
 27191  	}
 27192  	req.Header = reqHeaders
 27193  	googleapi.Expand(req.URL, map[string]string{
 27194  		"name": c.name,
 27195  	})
 27196  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27197  }
 27198  
 27199  // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.get" call.
 27200  // Any non-2xx status code is an error. Response headers are in either
 27201  // *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Header or
 27202  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 27203  // googleapi.IsNotModified to check whether the returned error was because
 27204  // http.StatusNotModified was returned.
 27205  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
 27206  	gensupport.SetOptions(c.urlParams_, opts...)
 27207  	res, err := c.doRequest("json")
 27208  	if res != nil && res.StatusCode == http.StatusNotModified {
 27209  		if res.Body != nil {
 27210  			res.Body.Close()
 27211  		}
 27212  		return nil, gensupport.WrapError(&googleapi.Error{
 27213  			Code:   res.StatusCode,
 27214  			Header: res.Header,
 27215  		})
 27216  	}
 27217  	if err != nil {
 27218  		return nil, err
 27219  	}
 27220  	defer googleapi.CloseBody(res)
 27221  	if err := googleapi.CheckResponse(res); err != nil {
 27222  		return nil, gensupport.WrapError(err)
 27223  	}
 27224  	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
 27225  		ServerResponse: googleapi.ServerResponse{
 27226  			Header:         res.Header,
 27227  			HTTPStatusCode: res.StatusCode,
 27228  		},
 27229  	}
 27230  	target := &ret
 27231  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27232  		return nil, err
 27233  	}
 27234  	return ret, nil
 27235  }
 27236  
 27237  type ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall struct {
 27238  	s            *Service
 27239  	parent       string
 27240  	urlParams_   gensupport.URLParams
 27241  	ifNoneMatch_ string
 27242  	ctx_         context.Context
 27243  	header_      http.Header
 27244  }
 27245  
 27246  // List: Returns the list of all transition route groups in the specified flow.
 27247  //
 27248  //   - parent: The flow to list all transition route groups for. Format:
 27249  //     `projects//locations//agents//flows/` or `projects//locations//agents/.
 27250  func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) List(parent string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
 27251  	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27252  	c.parent = parent
 27253  	return c
 27254  }
 27255  
 27256  // LanguageCode sets the optional parameter "languageCode": The language to
 27257  // list transition route groups for. The following fields are language
 27258  // dependent: *
 27259  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 27260  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 27261  // ` If not specified, the agent's default language is used. Many languages
 27262  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 27263  // supported. Note: languages must be enabled in the agent before they can be
 27264  // used.
 27265  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
 27266  	c.urlParams_.Set("languageCode", languageCode)
 27267  	return c
 27268  }
 27269  
 27270  // PageSize sets the optional parameter "pageSize": The maximum number of items
 27271  // to return in a single page. By default 100 and at most 1000.
 27272  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
 27273  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27274  	return c
 27275  }
 27276  
 27277  // PageToken sets the optional parameter "pageToken": The next_page_token value
 27278  // returned from a previous list request.
 27279  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
 27280  	c.urlParams_.Set("pageToken", pageToken)
 27281  	return c
 27282  }
 27283  
 27284  // Fields allows partial responses to be retrieved. See
 27285  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27286  // details.
 27287  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
 27288  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27289  	return c
 27290  }
 27291  
 27292  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27293  // object's ETag matches the given value. This is useful for getting updates
 27294  // only after the object has changed since the last request.
 27295  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
 27296  	c.ifNoneMatch_ = entityTag
 27297  	return c
 27298  }
 27299  
 27300  // Context sets the context to be used in this call's Do method.
 27301  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
 27302  	c.ctx_ = ctx
 27303  	return c
 27304  }
 27305  
 27306  // Header returns a http.Header that can be modified by the caller to add
 27307  // headers to the request.
 27308  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Header() http.Header {
 27309  	if c.header_ == nil {
 27310  		c.header_ = make(http.Header)
 27311  	}
 27312  	return c.header_
 27313  }
 27314  
 27315  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) {
 27316  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27317  	if c.ifNoneMatch_ != "" {
 27318  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27319  	}
 27320  	var body io.Reader = nil
 27321  	c.urlParams_.Set("alt", alt)
 27322  	c.urlParams_.Set("prettyPrint", "false")
 27323  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
 27324  	urls += "?" + c.urlParams_.Encode()
 27325  	req, err := http.NewRequest("GET", urls, body)
 27326  	if err != nil {
 27327  		return nil, err
 27328  	}
 27329  	req.Header = reqHeaders
 27330  	googleapi.Expand(req.URL, map[string]string{
 27331  		"parent": c.parent,
 27332  	})
 27333  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27334  }
 27335  
 27336  // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.list" call.
 27337  // Any non-2xx status code is an error. Response headers are in either
 27338  // *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse.ServerRespon
 27339  // se.Header or (if a response was returned at all) in
 27340  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 27341  // whether the returned error was because http.StatusNotModified was returned.
 27342  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err)
 27360  	}
 27361  	ret := &GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse{
 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  
 27374  // Pages invokes f for each page of results.
 27375  // A non-nil error returned from f will halt the iteration.
 27376  // The provided context supersedes any context provided to the Context method.
 27377  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) error) error {
 27378  	c.ctx_ = ctx
 27379  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27380  	for {
 27381  		x, err := c.Do()
 27382  		if err != nil {
 27383  			return err
 27384  		}
 27385  		if err := f(x); err != nil {
 27386  			return err
 27387  		}
 27388  		if x.NextPageToken == "" {
 27389  			return nil
 27390  		}
 27391  		c.PageToken(x.NextPageToken)
 27392  	}
 27393  }
 27394  
 27395  type ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall struct {
 27396  	s                                                  *Service
 27397  	nameid                                             string
 27398  	googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
 27399  	urlParams_                                         gensupport.URLParams
 27400  	ctx_                                               context.Context
 27401  	header_                                            http.Header
 27402  }
 27403  
 27404  // Patch: Updates the specified TransitionRouteGroup. Note: You should always
 27405  // train a flow prior to sending it queries. See the training documentation
 27406  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 27407  //
 27408  //   - name: The unique identifier of the transition route group.
 27409  //     TransitionRouteGroups.CreateTransitionRouteGroup populates the name
 27410  //     automatically. Format:
 27411  //     `projects//locations//agents//flows//transitionRouteGroups/` or
 27412  //     `projects//locations//agents//transitionRouteGroups/` for agent-level
 27413  //     groups.
 27414  func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Patch(nameid string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
 27415  	c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27416  	c.nameid = nameid
 27417  	c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
 27418  	return c
 27419  }
 27420  
 27421  // LanguageCode sets the optional parameter "languageCode": The language of the
 27422  // following fields in `TransitionRouteGroup`: *
 27423  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 27424  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 27425  // ` If not specified, the agent's default language is used. Many languages
 27426  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 27427  // supported. Note: languages must be enabled in the agent before they can be
 27428  // used.
 27429  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
 27430  	c.urlParams_.Set("languageCode", languageCode)
 27431  	return c
 27432  }
 27433  
 27434  // UpdateMask sets the optional parameter "updateMask": The mask to control
 27435  // which fields get updated.
 27436  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
 27437  	c.urlParams_.Set("updateMask", updateMask)
 27438  	return c
 27439  }
 27440  
 27441  // Fields allows partial responses to be retrieved. See
 27442  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27443  // details.
 27444  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
 27445  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27446  	return c
 27447  }
 27448  
 27449  // Context sets the context to be used in this call's Do method.
 27450  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
 27451  	c.ctx_ = ctx
 27452  	return c
 27453  }
 27454  
 27455  // Header returns a http.Header that can be modified by the caller to add
 27456  // headers to the request.
 27457  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Header() http.Header {
 27458  	if c.header_ == nil {
 27459  		c.header_ = make(http.Header)
 27460  	}
 27461  	return c.header_
 27462  }
 27463  
 27464  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
 27465  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27466  	var body io.Reader = nil
 27467  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
 27468  	if err != nil {
 27469  		return nil, err
 27470  	}
 27471  	c.urlParams_.Set("alt", alt)
 27472  	c.urlParams_.Set("prettyPrint", "false")
 27473  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 27474  	urls += "?" + c.urlParams_.Encode()
 27475  	req, err := http.NewRequest("PATCH", urls, body)
 27476  	if err != nil {
 27477  		return nil, err
 27478  	}
 27479  	req.Header = reqHeaders
 27480  	googleapi.Expand(req.URL, map[string]string{
 27481  		"name": c.nameid,
 27482  	})
 27483  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27484  }
 27485  
 27486  // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch" call.
 27487  // Any non-2xx status code is an error. Response headers are in either
 27488  // *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Header or
 27489  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 27490  // googleapi.IsNotModified to check whether the returned error was because
 27491  // http.StatusNotModified was returned.
 27492  func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
 27493  	gensupport.SetOptions(c.urlParams_, opts...)
 27494  	res, err := c.doRequest("json")
 27495  	if res != nil && res.StatusCode == http.StatusNotModified {
 27496  		if res.Body != nil {
 27497  			res.Body.Close()
 27498  		}
 27499  		return nil, gensupport.WrapError(&googleapi.Error{
 27500  			Code:   res.StatusCode,
 27501  			Header: res.Header,
 27502  		})
 27503  	}
 27504  	if err != nil {
 27505  		return nil, err
 27506  	}
 27507  	defer googleapi.CloseBody(res)
 27508  	if err := googleapi.CheckResponse(res); err != nil {
 27509  		return nil, gensupport.WrapError(err)
 27510  	}
 27511  	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
 27512  		ServerResponse: googleapi.ServerResponse{
 27513  			Header:         res.Header,
 27514  			HTTPStatusCode: res.StatusCode,
 27515  		},
 27516  	}
 27517  	target := &ret
 27518  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27519  		return nil, err
 27520  	}
 27521  	return ret, nil
 27522  }
 27523  
 27524  type ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall struct {
 27525  	s                                                    *Service
 27526  	baseVersion                                          string
 27527  	googleclouddialogflowcxv3beta1compareversionsrequest *GoogleCloudDialogflowCxV3beta1CompareVersionsRequest
 27528  	urlParams_                                           gensupport.URLParams
 27529  	ctx_                                                 context.Context
 27530  	header_                                              http.Header
 27531  }
 27532  
 27533  // CompareVersions: Compares the specified base version with target version.
 27534  //
 27535  //   - baseVersion: Name of the base flow version to compare with the target
 27536  //     version. Use version ID `0` to indicate the draft version of the specified
 27537  //     flow. Format: `projects//locations//agents/ /flows//versions/`.
 27538  func (r *ProjectsLocationsAgentsFlowsVersionsService) CompareVersions(baseVersion string, googleclouddialogflowcxv3beta1compareversionsrequest *GoogleCloudDialogflowCxV3beta1CompareVersionsRequest) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
 27539  	c := &ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27540  	c.baseVersion = baseVersion
 27541  	c.googleclouddialogflowcxv3beta1compareversionsrequest = googleclouddialogflowcxv3beta1compareversionsrequest
 27542  	return c
 27543  }
 27544  
 27545  // Fields allows partial responses to be retrieved. See
 27546  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27547  // details.
 27548  func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
 27549  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27550  	return c
 27551  }
 27552  
 27553  // Context sets the context to be used in this call's Do method.
 27554  func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
 27555  	c.ctx_ = ctx
 27556  	return c
 27557  }
 27558  
 27559  // Header returns a http.Header that can be modified by the caller to add
 27560  // headers to the request.
 27561  func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Header() http.Header {
 27562  	if c.header_ == nil {
 27563  		c.header_ = make(http.Header)
 27564  	}
 27565  	return c.header_
 27566  }
 27567  
 27568  func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) doRequest(alt string) (*http.Response, error) {
 27569  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27570  	var body io.Reader = nil
 27571  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1compareversionsrequest)
 27572  	if err != nil {
 27573  		return nil, err
 27574  	}
 27575  	c.urlParams_.Set("alt", alt)
 27576  	c.urlParams_.Set("prettyPrint", "false")
 27577  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+baseVersion}:compareVersions")
 27578  	urls += "?" + c.urlParams_.Encode()
 27579  	req, err := http.NewRequest("POST", urls, body)
 27580  	if err != nil {
 27581  		return nil, err
 27582  	}
 27583  	req.Header = reqHeaders
 27584  	googleapi.Expand(req.URL, map[string]string{
 27585  		"baseVersion": c.baseVersion,
 27586  	})
 27587  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27588  }
 27589  
 27590  // Do executes the "dialogflow.projects.locations.agents.flows.versions.compareVersions" call.
 27591  // Any non-2xx status code is an error. Response headers are in either
 27592  // *GoogleCloudDialogflowCxV3beta1CompareVersionsResponse.ServerResponse.Header
 27593  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 27594  // Use googleapi.IsNotModified to check whether the returned error was because
 27595  // http.StatusNotModified was returned.
 27596  func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1CompareVersionsResponse, error) {
 27597  	gensupport.SetOptions(c.urlParams_, opts...)
 27598  	res, err := c.doRequest("json")
 27599  	if res != nil && res.StatusCode == http.StatusNotModified {
 27600  		if res.Body != nil {
 27601  			res.Body.Close()
 27602  		}
 27603  		return nil, gensupport.WrapError(&googleapi.Error{
 27604  			Code:   res.StatusCode,
 27605  			Header: res.Header,
 27606  		})
 27607  	}
 27608  	if err != nil {
 27609  		return nil, err
 27610  	}
 27611  	defer googleapi.CloseBody(res)
 27612  	if err := googleapi.CheckResponse(res); err != nil {
 27613  		return nil, gensupport.WrapError(err)
 27614  	}
 27615  	ret := &GoogleCloudDialogflowCxV3beta1CompareVersionsResponse{
 27616  		ServerResponse: googleapi.ServerResponse{
 27617  			Header:         res.Header,
 27618  			HTTPStatusCode: res.StatusCode,
 27619  		},
 27620  	}
 27621  	target := &ret
 27622  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27623  		return nil, err
 27624  	}
 27625  	return ret, nil
 27626  }
 27627  
 27628  type ProjectsLocationsAgentsFlowsVersionsCreateCall struct {
 27629  	s                                     *Service
 27630  	parent                                string
 27631  	googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version
 27632  	urlParams_                            gensupport.URLParams
 27633  	ctx_                                  context.Context
 27634  	header_                               http.Header
 27635  }
 27636  
 27637  // Create: Creates a Version in the specified Flow. This method is a
 27638  // long-running operation
 27639  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 27640  // The returned `Operation` type has the following method-specific fields: -
 27641  // `metadata`: CreateVersionOperationMetadata - `response`: Version
 27642  //
 27643  //   - parent: The Flow to create an Version for. Format:
 27644  //     `projects//locations//agents//flows/`.
 27645  func (r *ProjectsLocationsAgentsFlowsVersionsService) Create(parent string, googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
 27646  	c := &ProjectsLocationsAgentsFlowsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27647  	c.parent = parent
 27648  	c.googleclouddialogflowcxv3beta1version = googleclouddialogflowcxv3beta1version
 27649  	return c
 27650  }
 27651  
 27652  // Fields allows partial responses to be retrieved. See
 27653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27654  // details.
 27655  func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
 27656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27657  	return c
 27658  }
 27659  
 27660  // Context sets the context to be used in this call's Do method.
 27661  func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
 27662  	c.ctx_ = ctx
 27663  	return c
 27664  }
 27665  
 27666  // Header returns a http.Header that can be modified by the caller to add
 27667  // headers to the request.
 27668  func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Header() http.Header {
 27669  	if c.header_ == nil {
 27670  		c.header_ = make(http.Header)
 27671  	}
 27672  	return c.header_
 27673  }
 27674  
 27675  func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
 27676  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27677  	var body io.Reader = nil
 27678  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1version)
 27679  	if err != nil {
 27680  		return nil, err
 27681  	}
 27682  	c.urlParams_.Set("alt", alt)
 27683  	c.urlParams_.Set("prettyPrint", "false")
 27684  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/versions")
 27685  	urls += "?" + c.urlParams_.Encode()
 27686  	req, err := http.NewRequest("POST", urls, body)
 27687  	if err != nil {
 27688  		return nil, err
 27689  	}
 27690  	req.Header = reqHeaders
 27691  	googleapi.Expand(req.URL, map[string]string{
 27692  		"parent": c.parent,
 27693  	})
 27694  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27695  }
 27696  
 27697  // Do executes the "dialogflow.projects.locations.agents.flows.versions.create" call.
 27698  // Any non-2xx status code is an error. Response headers are in either
 27699  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27700  // returned at all) in error.(*googleapi.Error).Header. Use
 27701  // googleapi.IsNotModified to check whether the returned error was because
 27702  // http.StatusNotModified was returned.
 27703  func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27704  	gensupport.SetOptions(c.urlParams_, opts...)
 27705  	res, err := c.doRequest("json")
 27706  	if res != nil && res.StatusCode == http.StatusNotModified {
 27707  		if res.Body != nil {
 27708  			res.Body.Close()
 27709  		}
 27710  		return nil, gensupport.WrapError(&googleapi.Error{
 27711  			Code:   res.StatusCode,
 27712  			Header: res.Header,
 27713  		})
 27714  	}
 27715  	if err != nil {
 27716  		return nil, err
 27717  	}
 27718  	defer googleapi.CloseBody(res)
 27719  	if err := googleapi.CheckResponse(res); err != nil {
 27720  		return nil, gensupport.WrapError(err)
 27721  	}
 27722  	ret := &GoogleLongrunningOperation{
 27723  		ServerResponse: googleapi.ServerResponse{
 27724  			Header:         res.Header,
 27725  			HTTPStatusCode: res.StatusCode,
 27726  		},
 27727  	}
 27728  	target := &ret
 27729  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27730  		return nil, err
 27731  	}
 27732  	return ret, nil
 27733  }
 27734  
 27735  type ProjectsLocationsAgentsFlowsVersionsDeleteCall struct {
 27736  	s          *Service
 27737  	name       string
 27738  	urlParams_ gensupport.URLParams
 27739  	ctx_       context.Context
 27740  	header_    http.Header
 27741  }
 27742  
 27743  // Delete: Deletes the specified Version.
 27744  //
 27745  //   - name: The name of the Version to delete. Format:
 27746  //     `projects//locations//agents//flows//versions/`.
 27747  func (r *ProjectsLocationsAgentsFlowsVersionsService) Delete(name string) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
 27748  	c := &ProjectsLocationsAgentsFlowsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27749  	c.name = name
 27750  	return c
 27751  }
 27752  
 27753  // Fields allows partial responses to be retrieved. See
 27754  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27755  // details.
 27756  func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
 27757  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27758  	return c
 27759  }
 27760  
 27761  // Context sets the context to be used in this call's Do method.
 27762  func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
 27763  	c.ctx_ = ctx
 27764  	return c
 27765  }
 27766  
 27767  // Header returns a http.Header that can be modified by the caller to add
 27768  // headers to the request.
 27769  func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Header() http.Header {
 27770  	if c.header_ == nil {
 27771  		c.header_ = make(http.Header)
 27772  	}
 27773  	return c.header_
 27774  }
 27775  
 27776  func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 27777  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27778  	var body io.Reader = nil
 27779  	c.urlParams_.Set("alt", alt)
 27780  	c.urlParams_.Set("prettyPrint", "false")
 27781  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 27782  	urls += "?" + c.urlParams_.Encode()
 27783  	req, err := http.NewRequest("DELETE", urls, body)
 27784  	if err != nil {
 27785  		return nil, err
 27786  	}
 27787  	req.Header = reqHeaders
 27788  	googleapi.Expand(req.URL, map[string]string{
 27789  		"name": c.name,
 27790  	})
 27791  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27792  }
 27793  
 27794  // Do executes the "dialogflow.projects.locations.agents.flows.versions.delete" call.
 27795  // Any non-2xx status code is an error. Response headers are in either
 27796  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 27797  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27798  // check whether the returned error was because http.StatusNotModified was
 27799  // returned.
 27800  func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 27801  	gensupport.SetOptions(c.urlParams_, opts...)
 27802  	res, err := c.doRequest("json")
 27803  	if res != nil && res.StatusCode == http.StatusNotModified {
 27804  		if res.Body != nil {
 27805  			res.Body.Close()
 27806  		}
 27807  		return nil, gensupport.WrapError(&googleapi.Error{
 27808  			Code:   res.StatusCode,
 27809  			Header: res.Header,
 27810  		})
 27811  	}
 27812  	if err != nil {
 27813  		return nil, err
 27814  	}
 27815  	defer googleapi.CloseBody(res)
 27816  	if err := googleapi.CheckResponse(res); err != nil {
 27817  		return nil, gensupport.WrapError(err)
 27818  	}
 27819  	ret := &GoogleProtobufEmpty{
 27820  		ServerResponse: googleapi.ServerResponse{
 27821  			Header:         res.Header,
 27822  			HTTPStatusCode: res.StatusCode,
 27823  		},
 27824  	}
 27825  	target := &ret
 27826  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27827  		return nil, err
 27828  	}
 27829  	return ret, nil
 27830  }
 27831  
 27832  type ProjectsLocationsAgentsFlowsVersionsGetCall struct {
 27833  	s            *Service
 27834  	name         string
 27835  	urlParams_   gensupport.URLParams
 27836  	ifNoneMatch_ string
 27837  	ctx_         context.Context
 27838  	header_      http.Header
 27839  }
 27840  
 27841  // Get: Retrieves the specified Version.
 27842  //
 27843  //   - name: The name of the Version. Format:
 27844  //     `projects//locations//agents//flows//versions/`.
 27845  func (r *ProjectsLocationsAgentsFlowsVersionsService) Get(name string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
 27846  	c := &ProjectsLocationsAgentsFlowsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27847  	c.name = name
 27848  	return c
 27849  }
 27850  
 27851  // Fields allows partial responses to be retrieved. See
 27852  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27853  // details.
 27854  func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsGetCall {
 27855  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27856  	return c
 27857  }
 27858  
 27859  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27860  // object's ETag matches the given value. This is useful for getting updates
 27861  // only after the object has changed since the last request.
 27862  func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
 27863  	c.ifNoneMatch_ = entityTag
 27864  	return c
 27865  }
 27866  
 27867  // Context sets the context to be used in this call's Do method.
 27868  func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsGetCall {
 27869  	c.ctx_ = ctx
 27870  	return c
 27871  }
 27872  
 27873  // Header returns a http.Header that can be modified by the caller to add
 27874  // headers to the request.
 27875  func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Header() http.Header {
 27876  	if c.header_ == nil {
 27877  		c.header_ = make(http.Header)
 27878  	}
 27879  	return c.header_
 27880  }
 27881  
 27882  func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 27883  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27884  	if c.ifNoneMatch_ != "" {
 27885  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27886  	}
 27887  	var body io.Reader = nil
 27888  	c.urlParams_.Set("alt", alt)
 27889  	c.urlParams_.Set("prettyPrint", "false")
 27890  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 27891  	urls += "?" + c.urlParams_.Encode()
 27892  	req, err := http.NewRequest("GET", urls, body)
 27893  	if err != nil {
 27894  		return nil, err
 27895  	}
 27896  	req.Header = reqHeaders
 27897  	googleapi.Expand(req.URL, map[string]string{
 27898  		"name": c.name,
 27899  	})
 27900  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27901  }
 27902  
 27903  // Do executes the "dialogflow.projects.locations.agents.flows.versions.get" call.
 27904  // Any non-2xx status code is an error. Response headers are in either
 27905  // *GoogleCloudDialogflowCxV3beta1Version.ServerResponse.Header or (if a
 27906  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27907  // googleapi.IsNotModified to check whether the returned error was because
 27908  // http.StatusNotModified was returned.
 27909  func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Version, error) {
 27910  	gensupport.SetOptions(c.urlParams_, opts...)
 27911  	res, err := c.doRequest("json")
 27912  	if res != nil && res.StatusCode == http.StatusNotModified {
 27913  		if res.Body != nil {
 27914  			res.Body.Close()
 27915  		}
 27916  		return nil, gensupport.WrapError(&googleapi.Error{
 27917  			Code:   res.StatusCode,
 27918  			Header: res.Header,
 27919  		})
 27920  	}
 27921  	if err != nil {
 27922  		return nil, err
 27923  	}
 27924  	defer googleapi.CloseBody(res)
 27925  	if err := googleapi.CheckResponse(res); err != nil {
 27926  		return nil, gensupport.WrapError(err)
 27927  	}
 27928  	ret := &GoogleCloudDialogflowCxV3beta1Version{
 27929  		ServerResponse: googleapi.ServerResponse{
 27930  			Header:         res.Header,
 27931  			HTTPStatusCode: res.StatusCode,
 27932  		},
 27933  	}
 27934  	target := &ret
 27935  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27936  		return nil, err
 27937  	}
 27938  	return ret, nil
 27939  }
 27940  
 27941  type ProjectsLocationsAgentsFlowsVersionsListCall struct {
 27942  	s            *Service
 27943  	parent       string
 27944  	urlParams_   gensupport.URLParams
 27945  	ifNoneMatch_ string
 27946  	ctx_         context.Context
 27947  	header_      http.Header
 27948  }
 27949  
 27950  // List: Returns the list of all versions in the specified Flow.
 27951  //
 27952  //   - parent: The Flow to list all versions for. Format:
 27953  //     `projects//locations//agents//flows/`.
 27954  func (r *ProjectsLocationsAgentsFlowsVersionsService) List(parent string) *ProjectsLocationsAgentsFlowsVersionsListCall {
 27955  	c := &ProjectsLocationsAgentsFlowsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27956  	c.parent = parent
 27957  	return c
 27958  }
 27959  
 27960  // PageSize sets the optional parameter "pageSize": The maximum number of items
 27961  // to return in a single page. By default 20 and at most 100.
 27962  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsVersionsListCall {
 27963  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27964  	return c
 27965  }
 27966  
 27967  // PageToken sets the optional parameter "pageToken": The next_page_token value
 27968  // returned from a previous list request.
 27969  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsVersionsListCall {
 27970  	c.urlParams_.Set("pageToken", pageToken)
 27971  	return c
 27972  }
 27973  
 27974  // Fields allows partial responses to be retrieved. See
 27975  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27976  // details.
 27977  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsListCall {
 27978  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27979  	return c
 27980  }
 27981  
 27982  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27983  // object's ETag matches the given value. This is useful for getting updates
 27984  // only after the object has changed since the last request.
 27985  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsListCall {
 27986  	c.ifNoneMatch_ = entityTag
 27987  	return c
 27988  }
 27989  
 27990  // Context sets the context to be used in this call's Do method.
 27991  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsListCall {
 27992  	c.ctx_ = ctx
 27993  	return c
 27994  }
 27995  
 27996  // Header returns a http.Header that can be modified by the caller to add
 27997  // headers to the request.
 27998  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Header() http.Header {
 27999  	if c.header_ == nil {
 28000  		c.header_ = make(http.Header)
 28001  	}
 28002  	return c.header_
 28003  }
 28004  
 28005  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) doRequest(alt string) (*http.Response, error) {
 28006  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28007  	if c.ifNoneMatch_ != "" {
 28008  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28009  	}
 28010  	var body io.Reader = nil
 28011  	c.urlParams_.Set("alt", alt)
 28012  	c.urlParams_.Set("prettyPrint", "false")
 28013  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/versions")
 28014  	urls += "?" + c.urlParams_.Encode()
 28015  	req, err := http.NewRequest("GET", urls, body)
 28016  	if err != nil {
 28017  		return nil, err
 28018  	}
 28019  	req.Header = reqHeaders
 28020  	googleapi.Expand(req.URL, map[string]string{
 28021  		"parent": c.parent,
 28022  	})
 28023  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28024  }
 28025  
 28026  // Do executes the "dialogflow.projects.locations.agents.flows.versions.list" call.
 28027  // Any non-2xx status code is an error. Response headers are in either
 28028  // *GoogleCloudDialogflowCxV3beta1ListVersionsResponse.ServerResponse.Header or
 28029  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 28030  // googleapi.IsNotModified to check whether the returned error was because
 28031  // http.StatusNotModified was returned.
 28032  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListVersionsResponse, error) {
 28033  	gensupport.SetOptions(c.urlParams_, opts...)
 28034  	res, err := c.doRequest("json")
 28035  	if res != nil && res.StatusCode == http.StatusNotModified {
 28036  		if res.Body != nil {
 28037  			res.Body.Close()
 28038  		}
 28039  		return nil, gensupport.WrapError(&googleapi.Error{
 28040  			Code:   res.StatusCode,
 28041  			Header: res.Header,
 28042  		})
 28043  	}
 28044  	if err != nil {
 28045  		return nil, err
 28046  	}
 28047  	defer googleapi.CloseBody(res)
 28048  	if err := googleapi.CheckResponse(res); err != nil {
 28049  		return nil, gensupport.WrapError(err)
 28050  	}
 28051  	ret := &GoogleCloudDialogflowCxV3beta1ListVersionsResponse{
 28052  		ServerResponse: googleapi.ServerResponse{
 28053  			Header:         res.Header,
 28054  			HTTPStatusCode: res.StatusCode,
 28055  		},
 28056  	}
 28057  	target := &ret
 28058  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28059  		return nil, err
 28060  	}
 28061  	return ret, nil
 28062  }
 28063  
 28064  // Pages invokes f for each page of results.
 28065  // A non-nil error returned from f will halt the iteration.
 28066  // The provided context supersedes any context provided to the Context method.
 28067  func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListVersionsResponse) error) error {
 28068  	c.ctx_ = ctx
 28069  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28070  	for {
 28071  		x, err := c.Do()
 28072  		if err != nil {
 28073  			return err
 28074  		}
 28075  		if err := f(x); err != nil {
 28076  			return err
 28077  		}
 28078  		if x.NextPageToken == "" {
 28079  			return nil
 28080  		}
 28081  		c.PageToken(x.NextPageToken)
 28082  	}
 28083  }
 28084  
 28085  type ProjectsLocationsAgentsFlowsVersionsLoadCall struct {
 28086  	s                                                *Service
 28087  	name                                             string
 28088  	googleclouddialogflowcxv3beta1loadversionrequest *GoogleCloudDialogflowCxV3beta1LoadVersionRequest
 28089  	urlParams_                                       gensupport.URLParams
 28090  	ctx_                                             context.Context
 28091  	header_                                          http.Header
 28092  }
 28093  
 28094  // Load: Loads resources in the specified version to the draft flow. This
 28095  // method is a long-running operation
 28096  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 28097  // The returned `Operation` type has the following method-specific fields: -
 28098  // `metadata`: An empty Struct message
 28099  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 28100  // - `response`: An Empty message
 28101  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 28102  //
 28103  //   - name: The Version to be loaded to draft flow. Format:
 28104  //     `projects//locations//agents//flows//versions/`.
 28105  func (r *ProjectsLocationsAgentsFlowsVersionsService) Load(name string, googleclouddialogflowcxv3beta1loadversionrequest *GoogleCloudDialogflowCxV3beta1LoadVersionRequest) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
 28106  	c := &ProjectsLocationsAgentsFlowsVersionsLoadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28107  	c.name = name
 28108  	c.googleclouddialogflowcxv3beta1loadversionrequest = googleclouddialogflowcxv3beta1loadversionrequest
 28109  	return c
 28110  }
 28111  
 28112  // Fields allows partial responses to be retrieved. See
 28113  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28114  // details.
 28115  func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
 28116  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28117  	return c
 28118  }
 28119  
 28120  // Context sets the context to be used in this call's Do method.
 28121  func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
 28122  	c.ctx_ = ctx
 28123  	return c
 28124  }
 28125  
 28126  // Header returns a http.Header that can be modified by the caller to add
 28127  // headers to the request.
 28128  func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Header() http.Header {
 28129  	if c.header_ == nil {
 28130  		c.header_ = make(http.Header)
 28131  	}
 28132  	return c.header_
 28133  }
 28134  
 28135  func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) doRequest(alt string) (*http.Response, error) {
 28136  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28137  	var body io.Reader = nil
 28138  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1loadversionrequest)
 28139  	if err != nil {
 28140  		return nil, err
 28141  	}
 28142  	c.urlParams_.Set("alt", alt)
 28143  	c.urlParams_.Set("prettyPrint", "false")
 28144  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:load")
 28145  	urls += "?" + c.urlParams_.Encode()
 28146  	req, err := http.NewRequest("POST", urls, body)
 28147  	if err != nil {
 28148  		return nil, err
 28149  	}
 28150  	req.Header = reqHeaders
 28151  	googleapi.Expand(req.URL, map[string]string{
 28152  		"name": c.name,
 28153  	})
 28154  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28155  }
 28156  
 28157  // Do executes the "dialogflow.projects.locations.agents.flows.versions.load" call.
 28158  // Any non-2xx status code is an error. Response headers are in either
 28159  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28160  // returned at all) in error.(*googleapi.Error).Header. Use
 28161  // googleapi.IsNotModified to check whether the returned error was because
 28162  // http.StatusNotModified was returned.
 28163  func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28164  	gensupport.SetOptions(c.urlParams_, opts...)
 28165  	res, err := c.doRequest("json")
 28166  	if res != nil && res.StatusCode == http.StatusNotModified {
 28167  		if res.Body != nil {
 28168  			res.Body.Close()
 28169  		}
 28170  		return nil, gensupport.WrapError(&googleapi.Error{
 28171  			Code:   res.StatusCode,
 28172  			Header: res.Header,
 28173  		})
 28174  	}
 28175  	if err != nil {
 28176  		return nil, err
 28177  	}
 28178  	defer googleapi.CloseBody(res)
 28179  	if err := googleapi.CheckResponse(res); err != nil {
 28180  		return nil, gensupport.WrapError(err)
 28181  	}
 28182  	ret := &GoogleLongrunningOperation{
 28183  		ServerResponse: googleapi.ServerResponse{
 28184  			Header:         res.Header,
 28185  			HTTPStatusCode: res.StatusCode,
 28186  		},
 28187  	}
 28188  	target := &ret
 28189  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28190  		return nil, err
 28191  	}
 28192  	return ret, nil
 28193  }
 28194  
 28195  type ProjectsLocationsAgentsFlowsVersionsPatchCall struct {
 28196  	s                                     *Service
 28197  	name                                  string
 28198  	googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version
 28199  	urlParams_                            gensupport.URLParams
 28200  	ctx_                                  context.Context
 28201  	header_                               http.Header
 28202  }
 28203  
 28204  // Patch: Updates the specified Version.
 28205  //
 28206  //   - name: Format: projects//locations//agents//flows//versions/. Version ID is
 28207  //     a self-increasing number generated by Dialogflow upon version creation.
 28208  func (r *ProjectsLocationsAgentsFlowsVersionsService) Patch(name string, googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
 28209  	c := &ProjectsLocationsAgentsFlowsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28210  	c.name = name
 28211  	c.googleclouddialogflowcxv3beta1version = googleclouddialogflowcxv3beta1version
 28212  	return c
 28213  }
 28214  
 28215  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 28216  // control which fields get updated. Currently only `description` and
 28217  // `display_name` can be updated.
 28218  func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
 28219  	c.urlParams_.Set("updateMask", updateMask)
 28220  	return c
 28221  }
 28222  
 28223  // Fields allows partial responses to be retrieved. See
 28224  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28225  // details.
 28226  func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
 28227  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28228  	return c
 28229  }
 28230  
 28231  // Context sets the context to be used in this call's Do method.
 28232  func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
 28233  	c.ctx_ = ctx
 28234  	return c
 28235  }
 28236  
 28237  // Header returns a http.Header that can be modified by the caller to add
 28238  // headers to the request.
 28239  func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Header() http.Header {
 28240  	if c.header_ == nil {
 28241  		c.header_ = make(http.Header)
 28242  	}
 28243  	return c.header_
 28244  }
 28245  
 28246  func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
 28247  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28248  	var body io.Reader = nil
 28249  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1version)
 28250  	if err != nil {
 28251  		return nil, err
 28252  	}
 28253  	c.urlParams_.Set("alt", alt)
 28254  	c.urlParams_.Set("prettyPrint", "false")
 28255  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 28256  	urls += "?" + c.urlParams_.Encode()
 28257  	req, err := http.NewRequest("PATCH", urls, body)
 28258  	if err != nil {
 28259  		return nil, err
 28260  	}
 28261  	req.Header = reqHeaders
 28262  	googleapi.Expand(req.URL, map[string]string{
 28263  		"name": c.name,
 28264  	})
 28265  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28266  }
 28267  
 28268  // Do executes the "dialogflow.projects.locations.agents.flows.versions.patch" call.
 28269  // Any non-2xx status code is an error. Response headers are in either
 28270  // *GoogleCloudDialogflowCxV3beta1Version.ServerResponse.Header or (if a
 28271  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28272  // googleapi.IsNotModified to check whether the returned error was because
 28273  // http.StatusNotModified was returned.
 28274  func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Version, error) {
 28275  	gensupport.SetOptions(c.urlParams_, opts...)
 28276  	res, err := c.doRequest("json")
 28277  	if res != nil && res.StatusCode == http.StatusNotModified {
 28278  		if res.Body != nil {
 28279  			res.Body.Close()
 28280  		}
 28281  		return nil, gensupport.WrapError(&googleapi.Error{
 28282  			Code:   res.StatusCode,
 28283  			Header: res.Header,
 28284  		})
 28285  	}
 28286  	if err != nil {
 28287  		return nil, err
 28288  	}
 28289  	defer googleapi.CloseBody(res)
 28290  	if err := googleapi.CheckResponse(res); err != nil {
 28291  		return nil, gensupport.WrapError(err)
 28292  	}
 28293  	ret := &GoogleCloudDialogflowCxV3beta1Version{
 28294  		ServerResponse: googleapi.ServerResponse{
 28295  			Header:         res.Header,
 28296  			HTTPStatusCode: res.StatusCode,
 28297  		},
 28298  	}
 28299  	target := &ret
 28300  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28301  		return nil, err
 28302  	}
 28303  	return ret, nil
 28304  }
 28305  
 28306  type ProjectsLocationsAgentsGeneratorsCreateCall struct {
 28307  	s                                       *Service
 28308  	parent                                  string
 28309  	googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator
 28310  	urlParams_                              gensupport.URLParams
 28311  	ctx_                                    context.Context
 28312  	header_                                 http.Header
 28313  }
 28314  
 28315  // Create: Creates a generator in the specified agent.
 28316  //
 28317  //   - parent: The agent to create a generator for. Format:
 28318  //     `projects//locations//agents/`.
 28319  func (r *ProjectsLocationsAgentsGeneratorsService) Create(parent string, googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator) *ProjectsLocationsAgentsGeneratorsCreateCall {
 28320  	c := &ProjectsLocationsAgentsGeneratorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28321  	c.parent = parent
 28322  	c.googleclouddialogflowcxv3beta1generator = googleclouddialogflowcxv3beta1generator
 28323  	return c
 28324  }
 28325  
 28326  // LanguageCode sets the optional parameter "languageCode": The language to
 28327  // create generators for the following fields: * `Generator.prompt_text.text`
 28328  // If not specified, the agent's default language is used.
 28329  func (c *ProjectsLocationsAgentsGeneratorsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsCreateCall {
 28330  	c.urlParams_.Set("languageCode", languageCode)
 28331  	return c
 28332  }
 28333  
 28334  // Fields allows partial responses to be retrieved. See
 28335  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28336  // details.
 28337  func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsCreateCall {
 28338  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28339  	return c
 28340  }
 28341  
 28342  // Context sets the context to be used in this call's Do method.
 28343  func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsCreateCall {
 28344  	c.ctx_ = ctx
 28345  	return c
 28346  }
 28347  
 28348  // Header returns a http.Header that can be modified by the caller to add
 28349  // headers to the request.
 28350  func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Header() http.Header {
 28351  	if c.header_ == nil {
 28352  		c.header_ = make(http.Header)
 28353  	}
 28354  	return c.header_
 28355  }
 28356  
 28357  func (c *ProjectsLocationsAgentsGeneratorsCreateCall) doRequest(alt string) (*http.Response, error) {
 28358  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28359  	var body io.Reader = nil
 28360  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1generator)
 28361  	if err != nil {
 28362  		return nil, err
 28363  	}
 28364  	c.urlParams_.Set("alt", alt)
 28365  	c.urlParams_.Set("prettyPrint", "false")
 28366  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/generators")
 28367  	urls += "?" + c.urlParams_.Encode()
 28368  	req, err := http.NewRequest("POST", urls, body)
 28369  	if err != nil {
 28370  		return nil, err
 28371  	}
 28372  	req.Header = reqHeaders
 28373  	googleapi.Expand(req.URL, map[string]string{
 28374  		"parent": c.parent,
 28375  	})
 28376  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28377  }
 28378  
 28379  // Do executes the "dialogflow.projects.locations.agents.generators.create" call.
 28380  // Any non-2xx status code is an error. Response headers are in either
 28381  // *GoogleCloudDialogflowCxV3beta1Generator.ServerResponse.Header or (if a
 28382  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28383  // googleapi.IsNotModified to check whether the returned error was because
 28384  // http.StatusNotModified was returned.
 28385  func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Generator, error) {
 28386  	gensupport.SetOptions(c.urlParams_, opts...)
 28387  	res, err := c.doRequest("json")
 28388  	if res != nil && res.StatusCode == http.StatusNotModified {
 28389  		if res.Body != nil {
 28390  			res.Body.Close()
 28391  		}
 28392  		return nil, gensupport.WrapError(&googleapi.Error{
 28393  			Code:   res.StatusCode,
 28394  			Header: res.Header,
 28395  		})
 28396  	}
 28397  	if err != nil {
 28398  		return nil, err
 28399  	}
 28400  	defer googleapi.CloseBody(res)
 28401  	if err := googleapi.CheckResponse(res); err != nil {
 28402  		return nil, gensupport.WrapError(err)
 28403  	}
 28404  	ret := &GoogleCloudDialogflowCxV3beta1Generator{
 28405  		ServerResponse: googleapi.ServerResponse{
 28406  			Header:         res.Header,
 28407  			HTTPStatusCode: res.StatusCode,
 28408  		},
 28409  	}
 28410  	target := &ret
 28411  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28412  		return nil, err
 28413  	}
 28414  	return ret, nil
 28415  }
 28416  
 28417  type ProjectsLocationsAgentsGeneratorsDeleteCall struct {
 28418  	s          *Service
 28419  	name       string
 28420  	urlParams_ gensupport.URLParams
 28421  	ctx_       context.Context
 28422  	header_    http.Header
 28423  }
 28424  
 28425  // Delete: Deletes the specified generators.
 28426  //
 28427  //   - name: The name of the generator to delete. Format:
 28428  //     `projects//locations//agents//generators/`.
 28429  func (r *ProjectsLocationsAgentsGeneratorsService) Delete(name string) *ProjectsLocationsAgentsGeneratorsDeleteCall {
 28430  	c := &ProjectsLocationsAgentsGeneratorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28431  	c.name = name
 28432  	return c
 28433  }
 28434  
 28435  // Force sets the optional parameter "force": This field has no effect for
 28436  // generators not being used. For generators that are used by
 28437  // pages/flows/transition route groups: * If `force` is set to false, an error
 28438  // will be returned with message indicating the referenced resources. * If
 28439  // `force` is set to true, Dialogflow will remove the generator, as well as any
 28440  // references to the generator (i.e. Generator) in fulfillments.
 28441  func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Force(force bool) *ProjectsLocationsAgentsGeneratorsDeleteCall {
 28442  	c.urlParams_.Set("force", fmt.Sprint(force))
 28443  	return c
 28444  }
 28445  
 28446  // Fields allows partial responses to be retrieved. See
 28447  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28448  // details.
 28449  func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsDeleteCall {
 28450  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28451  	return c
 28452  }
 28453  
 28454  // Context sets the context to be used in this call's Do method.
 28455  func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsDeleteCall {
 28456  	c.ctx_ = ctx
 28457  	return c
 28458  }
 28459  
 28460  // Header returns a http.Header that can be modified by the caller to add
 28461  // headers to the request.
 28462  func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Header() http.Header {
 28463  	if c.header_ == nil {
 28464  		c.header_ = make(http.Header)
 28465  	}
 28466  	return c.header_
 28467  }
 28468  
 28469  func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) doRequest(alt string) (*http.Response, error) {
 28470  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28471  	var body io.Reader = nil
 28472  	c.urlParams_.Set("alt", alt)
 28473  	c.urlParams_.Set("prettyPrint", "false")
 28474  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 28475  	urls += "?" + c.urlParams_.Encode()
 28476  	req, err := http.NewRequest("DELETE", urls, body)
 28477  	if err != nil {
 28478  		return nil, err
 28479  	}
 28480  	req.Header = reqHeaders
 28481  	googleapi.Expand(req.URL, map[string]string{
 28482  		"name": c.name,
 28483  	})
 28484  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28485  }
 28486  
 28487  // Do executes the "dialogflow.projects.locations.agents.generators.delete" call.
 28488  // Any non-2xx status code is an error. Response headers are in either
 28489  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 28490  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 28491  // check whether the returned error was because http.StatusNotModified was
 28492  // returned.
 28493  func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 28494  	gensupport.SetOptions(c.urlParams_, opts...)
 28495  	res, err := c.doRequest("json")
 28496  	if res != nil && res.StatusCode == http.StatusNotModified {
 28497  		if res.Body != nil {
 28498  			res.Body.Close()
 28499  		}
 28500  		return nil, gensupport.WrapError(&googleapi.Error{
 28501  			Code:   res.StatusCode,
 28502  			Header: res.Header,
 28503  		})
 28504  	}
 28505  	if err != nil {
 28506  		return nil, err
 28507  	}
 28508  	defer googleapi.CloseBody(res)
 28509  	if err := googleapi.CheckResponse(res); err != nil {
 28510  		return nil, gensupport.WrapError(err)
 28511  	}
 28512  	ret := &GoogleProtobufEmpty{
 28513  		ServerResponse: googleapi.ServerResponse{
 28514  			Header:         res.Header,
 28515  			HTTPStatusCode: res.StatusCode,
 28516  		},
 28517  	}
 28518  	target := &ret
 28519  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28520  		return nil, err
 28521  	}
 28522  	return ret, nil
 28523  }
 28524  
 28525  type ProjectsLocationsAgentsGeneratorsGetCall struct {
 28526  	s            *Service
 28527  	name         string
 28528  	urlParams_   gensupport.URLParams
 28529  	ifNoneMatch_ string
 28530  	ctx_         context.Context
 28531  	header_      http.Header
 28532  }
 28533  
 28534  // Get: Retrieves the specified generator.
 28535  //
 28536  //   - name: The name of the generator. Format:
 28537  //     `projects//locations//agents//generators/`.
 28538  func (r *ProjectsLocationsAgentsGeneratorsService) Get(name string) *ProjectsLocationsAgentsGeneratorsGetCall {
 28539  	c := &ProjectsLocationsAgentsGeneratorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28540  	c.name = name
 28541  	return c
 28542  }
 28543  
 28544  // LanguageCode sets the optional parameter "languageCode": The language to
 28545  // list generators for.
 28546  func (c *ProjectsLocationsAgentsGeneratorsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsGetCall {
 28547  	c.urlParams_.Set("languageCode", languageCode)
 28548  	return c
 28549  }
 28550  
 28551  // Fields allows partial responses to be retrieved. See
 28552  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28553  // details.
 28554  func (c *ProjectsLocationsAgentsGeneratorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsGetCall {
 28555  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28556  	return c
 28557  }
 28558  
 28559  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28560  // object's ETag matches the given value. This is useful for getting updates
 28561  // only after the object has changed since the last request.
 28562  func (c *ProjectsLocationsAgentsGeneratorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGeneratorsGetCall {
 28563  	c.ifNoneMatch_ = entityTag
 28564  	return c
 28565  }
 28566  
 28567  // Context sets the context to be used in this call's Do method.
 28568  func (c *ProjectsLocationsAgentsGeneratorsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsGetCall {
 28569  	c.ctx_ = ctx
 28570  	return c
 28571  }
 28572  
 28573  // Header returns a http.Header that can be modified by the caller to add
 28574  // headers to the request.
 28575  func (c *ProjectsLocationsAgentsGeneratorsGetCall) Header() http.Header {
 28576  	if c.header_ == nil {
 28577  		c.header_ = make(http.Header)
 28578  	}
 28579  	return c.header_
 28580  }
 28581  
 28582  func (c *ProjectsLocationsAgentsGeneratorsGetCall) doRequest(alt string) (*http.Response, error) {
 28583  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28584  	if c.ifNoneMatch_ != "" {
 28585  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28586  	}
 28587  	var body io.Reader = nil
 28588  	c.urlParams_.Set("alt", alt)
 28589  	c.urlParams_.Set("prettyPrint", "false")
 28590  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 28591  	urls += "?" + c.urlParams_.Encode()
 28592  	req, err := http.NewRequest("GET", urls, body)
 28593  	if err != nil {
 28594  		return nil, err
 28595  	}
 28596  	req.Header = reqHeaders
 28597  	googleapi.Expand(req.URL, map[string]string{
 28598  		"name": c.name,
 28599  	})
 28600  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28601  }
 28602  
 28603  // Do executes the "dialogflow.projects.locations.agents.generators.get" call.
 28604  // Any non-2xx status code is an error. Response headers are in either
 28605  // *GoogleCloudDialogflowCxV3beta1Generator.ServerResponse.Header or (if a
 28606  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28607  // googleapi.IsNotModified to check whether the returned error was because
 28608  // http.StatusNotModified was returned.
 28609  func (c *ProjectsLocationsAgentsGeneratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Generator, error) {
 28610  	gensupport.SetOptions(c.urlParams_, opts...)
 28611  	res, err := c.doRequest("json")
 28612  	if res != nil && res.StatusCode == http.StatusNotModified {
 28613  		if res.Body != nil {
 28614  			res.Body.Close()
 28615  		}
 28616  		return nil, gensupport.WrapError(&googleapi.Error{
 28617  			Code:   res.StatusCode,
 28618  			Header: res.Header,
 28619  		})
 28620  	}
 28621  	if err != nil {
 28622  		return nil, err
 28623  	}
 28624  	defer googleapi.CloseBody(res)
 28625  	if err := googleapi.CheckResponse(res); err != nil {
 28626  		return nil, gensupport.WrapError(err)
 28627  	}
 28628  	ret := &GoogleCloudDialogflowCxV3beta1Generator{
 28629  		ServerResponse: googleapi.ServerResponse{
 28630  			Header:         res.Header,
 28631  			HTTPStatusCode: res.StatusCode,
 28632  		},
 28633  	}
 28634  	target := &ret
 28635  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28636  		return nil, err
 28637  	}
 28638  	return ret, nil
 28639  }
 28640  
 28641  type ProjectsLocationsAgentsGeneratorsListCall struct {
 28642  	s            *Service
 28643  	parent       string
 28644  	urlParams_   gensupport.URLParams
 28645  	ifNoneMatch_ string
 28646  	ctx_         context.Context
 28647  	header_      http.Header
 28648  }
 28649  
 28650  // List: Returns the list of all generators in the specified agent.
 28651  //
 28652  //   - parent: The agent to list all generators for. Format:
 28653  //     `projects//locations//agents/`.
 28654  func (r *ProjectsLocationsAgentsGeneratorsService) List(parent string) *ProjectsLocationsAgentsGeneratorsListCall {
 28655  	c := &ProjectsLocationsAgentsGeneratorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28656  	c.parent = parent
 28657  	return c
 28658  }
 28659  
 28660  // LanguageCode sets the optional parameter "languageCode": The language to
 28661  // list generators for.
 28662  func (c *ProjectsLocationsAgentsGeneratorsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsListCall {
 28663  	c.urlParams_.Set("languageCode", languageCode)
 28664  	return c
 28665  }
 28666  
 28667  // PageSize sets the optional parameter "pageSize": The maximum number of items
 28668  // to return in a single page. By default 100 and at most 1000.
 28669  func (c *ProjectsLocationsAgentsGeneratorsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsGeneratorsListCall {
 28670  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28671  	return c
 28672  }
 28673  
 28674  // PageToken sets the optional parameter "pageToken": The next_page_token value
 28675  // returned from a previous list request.
 28676  func (c *ProjectsLocationsAgentsGeneratorsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsGeneratorsListCall {
 28677  	c.urlParams_.Set("pageToken", pageToken)
 28678  	return c
 28679  }
 28680  
 28681  // Fields allows partial responses to be retrieved. See
 28682  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28683  // details.
 28684  func (c *ProjectsLocationsAgentsGeneratorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsListCall {
 28685  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28686  	return c
 28687  }
 28688  
 28689  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28690  // object's ETag matches the given value. This is useful for getting updates
 28691  // only after the object has changed since the last request.
 28692  func (c *ProjectsLocationsAgentsGeneratorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGeneratorsListCall {
 28693  	c.ifNoneMatch_ = entityTag
 28694  	return c
 28695  }
 28696  
 28697  // Context sets the context to be used in this call's Do method.
 28698  func (c *ProjectsLocationsAgentsGeneratorsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsListCall {
 28699  	c.ctx_ = ctx
 28700  	return c
 28701  }
 28702  
 28703  // Header returns a http.Header that can be modified by the caller to add
 28704  // headers to the request.
 28705  func (c *ProjectsLocationsAgentsGeneratorsListCall) Header() http.Header {
 28706  	if c.header_ == nil {
 28707  		c.header_ = make(http.Header)
 28708  	}
 28709  	return c.header_
 28710  }
 28711  
 28712  func (c *ProjectsLocationsAgentsGeneratorsListCall) doRequest(alt string) (*http.Response, error) {
 28713  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28714  	if c.ifNoneMatch_ != "" {
 28715  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28716  	}
 28717  	var body io.Reader = nil
 28718  	c.urlParams_.Set("alt", alt)
 28719  	c.urlParams_.Set("prettyPrint", "false")
 28720  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/generators")
 28721  	urls += "?" + c.urlParams_.Encode()
 28722  	req, err := http.NewRequest("GET", urls, body)
 28723  	if err != nil {
 28724  		return nil, err
 28725  	}
 28726  	req.Header = reqHeaders
 28727  	googleapi.Expand(req.URL, map[string]string{
 28728  		"parent": c.parent,
 28729  	})
 28730  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28731  }
 28732  
 28733  // Do executes the "dialogflow.projects.locations.agents.generators.list" call.
 28734  // Any non-2xx status code is an error. Response headers are in either
 28735  // *GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse.ServerResponse.Header
 28736  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 28737  // Use googleapi.IsNotModified to check whether the returned error was because
 28738  // http.StatusNotModified was returned.
 28739  func (c *ProjectsLocationsAgentsGeneratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse, error) {
 28740  	gensupport.SetOptions(c.urlParams_, opts...)
 28741  	res, err := c.doRequest("json")
 28742  	if res != nil && res.StatusCode == http.StatusNotModified {
 28743  		if res.Body != nil {
 28744  			res.Body.Close()
 28745  		}
 28746  		return nil, gensupport.WrapError(&googleapi.Error{
 28747  			Code:   res.StatusCode,
 28748  			Header: res.Header,
 28749  		})
 28750  	}
 28751  	if err != nil {
 28752  		return nil, err
 28753  	}
 28754  	defer googleapi.CloseBody(res)
 28755  	if err := googleapi.CheckResponse(res); err != nil {
 28756  		return nil, gensupport.WrapError(err)
 28757  	}
 28758  	ret := &GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse{
 28759  		ServerResponse: googleapi.ServerResponse{
 28760  			Header:         res.Header,
 28761  			HTTPStatusCode: res.StatusCode,
 28762  		},
 28763  	}
 28764  	target := &ret
 28765  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28766  		return nil, err
 28767  	}
 28768  	return ret, nil
 28769  }
 28770  
 28771  // Pages invokes f for each page of results.
 28772  // A non-nil error returned from f will halt the iteration.
 28773  // The provided context supersedes any context provided to the Context method.
 28774  func (c *ProjectsLocationsAgentsGeneratorsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse) error) error {
 28775  	c.ctx_ = ctx
 28776  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28777  	for {
 28778  		x, err := c.Do()
 28779  		if err != nil {
 28780  			return err
 28781  		}
 28782  		if err := f(x); err != nil {
 28783  			return err
 28784  		}
 28785  		if x.NextPageToken == "" {
 28786  			return nil
 28787  		}
 28788  		c.PageToken(x.NextPageToken)
 28789  	}
 28790  }
 28791  
 28792  type ProjectsLocationsAgentsGeneratorsPatchCall struct {
 28793  	s                                       *Service
 28794  	nameid                                  string
 28795  	googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator
 28796  	urlParams_                              gensupport.URLParams
 28797  	ctx_                                    context.Context
 28798  	header_                                 http.Header
 28799  }
 28800  
 28801  // Patch: Update the specified generator.
 28802  //
 28803  //   - name: The unique identifier of the generator. Must be set for the
 28804  //     Generators.UpdateGenerator method. Generators.CreateGenerate populates the
 28805  //     name automatically. Format: `projects//locations//agents//generators/`.
 28806  func (r *ProjectsLocationsAgentsGeneratorsService) Patch(nameid string, googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator) *ProjectsLocationsAgentsGeneratorsPatchCall {
 28807  	c := &ProjectsLocationsAgentsGeneratorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28808  	c.nameid = nameid
 28809  	c.googleclouddialogflowcxv3beta1generator = googleclouddialogflowcxv3beta1generator
 28810  	return c
 28811  }
 28812  
 28813  // LanguageCode sets the optional parameter "languageCode": The language to
 28814  // list generators for.
 28815  func (c *ProjectsLocationsAgentsGeneratorsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsPatchCall {
 28816  	c.urlParams_.Set("languageCode", languageCode)
 28817  	return c
 28818  }
 28819  
 28820  // UpdateMask sets the optional parameter "updateMask": The mask to control
 28821  // which fields get updated. If the mask is not present, all fields will be
 28822  // updated.
 28823  func (c *ProjectsLocationsAgentsGeneratorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsGeneratorsPatchCall {
 28824  	c.urlParams_.Set("updateMask", updateMask)
 28825  	return c
 28826  }
 28827  
 28828  // Fields allows partial responses to be retrieved. See
 28829  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28830  // details.
 28831  func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsPatchCall {
 28832  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28833  	return c
 28834  }
 28835  
 28836  // Context sets the context to be used in this call's Do method.
 28837  func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsPatchCall {
 28838  	c.ctx_ = ctx
 28839  	return c
 28840  }
 28841  
 28842  // Header returns a http.Header that can be modified by the caller to add
 28843  // headers to the request.
 28844  func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Header() http.Header {
 28845  	if c.header_ == nil {
 28846  		c.header_ = make(http.Header)
 28847  	}
 28848  	return c.header_
 28849  }
 28850  
 28851  func (c *ProjectsLocationsAgentsGeneratorsPatchCall) doRequest(alt string) (*http.Response, error) {
 28852  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28853  	var body io.Reader = nil
 28854  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1generator)
 28855  	if err != nil {
 28856  		return nil, err
 28857  	}
 28858  	c.urlParams_.Set("alt", alt)
 28859  	c.urlParams_.Set("prettyPrint", "false")
 28860  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 28861  	urls += "?" + c.urlParams_.Encode()
 28862  	req, err := http.NewRequest("PATCH", urls, body)
 28863  	if err != nil {
 28864  		return nil, err
 28865  	}
 28866  	req.Header = reqHeaders
 28867  	googleapi.Expand(req.URL, map[string]string{
 28868  		"name": c.nameid,
 28869  	})
 28870  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28871  }
 28872  
 28873  // Do executes the "dialogflow.projects.locations.agents.generators.patch" call.
 28874  // Any non-2xx status code is an error. Response headers are in either
 28875  // *GoogleCloudDialogflowCxV3beta1Generator.ServerResponse.Header or (if a
 28876  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28877  // googleapi.IsNotModified to check whether the returned error was because
 28878  // http.StatusNotModified was returned.
 28879  func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Generator, error) {
 28880  	gensupport.SetOptions(c.urlParams_, opts...)
 28881  	res, err := c.doRequest("json")
 28882  	if res != nil && res.StatusCode == http.StatusNotModified {
 28883  		if res.Body != nil {
 28884  			res.Body.Close()
 28885  		}
 28886  		return nil, gensupport.WrapError(&googleapi.Error{
 28887  			Code:   res.StatusCode,
 28888  			Header: res.Header,
 28889  		})
 28890  	}
 28891  	if err != nil {
 28892  		return nil, err
 28893  	}
 28894  	defer googleapi.CloseBody(res)
 28895  	if err := googleapi.CheckResponse(res); err != nil {
 28896  		return nil, gensupport.WrapError(err)
 28897  	}
 28898  	ret := &GoogleCloudDialogflowCxV3beta1Generator{
 28899  		ServerResponse: googleapi.ServerResponse{
 28900  			Header:         res.Header,
 28901  			HTTPStatusCode: res.StatusCode,
 28902  		},
 28903  	}
 28904  	target := &ret
 28905  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28906  		return nil, err
 28907  	}
 28908  	return ret, nil
 28909  }
 28910  
 28911  type ProjectsLocationsAgentsIntentsCreateCall struct {
 28912  	s                                    *Service
 28913  	parent                               string
 28914  	googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent
 28915  	urlParams_                           gensupport.URLParams
 28916  	ctx_                                 context.Context
 28917  	header_                              http.Header
 28918  }
 28919  
 28920  // Create: Creates an intent in the specified agent. Note: You should always
 28921  // train a flow prior to sending it queries. See the training documentation
 28922  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 28923  //
 28924  //   - parent: The agent to create an intent for. Format:
 28925  //     `projects//locations//agents/`.
 28926  func (r *ProjectsLocationsAgentsIntentsService) Create(parent string, googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent) *ProjectsLocationsAgentsIntentsCreateCall {
 28927  	c := &ProjectsLocationsAgentsIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28928  	c.parent = parent
 28929  	c.googleclouddialogflowcxv3beta1intent = googleclouddialogflowcxv3beta1intent
 28930  	return c
 28931  }
 28932  
 28933  // LanguageCode sets the optional parameter "languageCode": The language of the
 28934  // following fields in `intent`: * `Intent.training_phrases.parts.text` If not
 28935  // specified, the agent's default language is used. Many languages
 28936  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 28937  // supported. Note: languages must be enabled in the agent before they can be
 28938  // used.
 28939  func (c *ProjectsLocationsAgentsIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsCreateCall {
 28940  	c.urlParams_.Set("languageCode", languageCode)
 28941  	return c
 28942  }
 28943  
 28944  // Fields allows partial responses to be retrieved. See
 28945  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28946  // details.
 28947  func (c *ProjectsLocationsAgentsIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsCreateCall {
 28948  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28949  	return c
 28950  }
 28951  
 28952  // Context sets the context to be used in this call's Do method.
 28953  func (c *ProjectsLocationsAgentsIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsCreateCall {
 28954  	c.ctx_ = ctx
 28955  	return c
 28956  }
 28957  
 28958  // Header returns a http.Header that can be modified by the caller to add
 28959  // headers to the request.
 28960  func (c *ProjectsLocationsAgentsIntentsCreateCall) Header() http.Header {
 28961  	if c.header_ == nil {
 28962  		c.header_ = make(http.Header)
 28963  	}
 28964  	return c.header_
 28965  }
 28966  
 28967  func (c *ProjectsLocationsAgentsIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
 28968  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28969  	var body io.Reader = nil
 28970  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1intent)
 28971  	if err != nil {
 28972  		return nil, err
 28973  	}
 28974  	c.urlParams_.Set("alt", alt)
 28975  	c.urlParams_.Set("prettyPrint", "false")
 28976  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents")
 28977  	urls += "?" + c.urlParams_.Encode()
 28978  	req, err := http.NewRequest("POST", urls, body)
 28979  	if err != nil {
 28980  		return nil, err
 28981  	}
 28982  	req.Header = reqHeaders
 28983  	googleapi.Expand(req.URL, map[string]string{
 28984  		"parent": c.parent,
 28985  	})
 28986  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28987  }
 28988  
 28989  // Do executes the "dialogflow.projects.locations.agents.intents.create" call.
 28990  // Any non-2xx status code is an error. Response headers are in either
 28991  // *GoogleCloudDialogflowCxV3beta1Intent.ServerResponse.Header or (if a
 28992  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28993  // googleapi.IsNotModified to check whether the returned error was because
 28994  // http.StatusNotModified was returned.
 28995  func (c *ProjectsLocationsAgentsIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
 28996  	gensupport.SetOptions(c.urlParams_, opts...)
 28997  	res, err := c.doRequest("json")
 28998  	if res != nil && res.StatusCode == http.StatusNotModified {
 28999  		if res.Body != nil {
 29000  			res.Body.Close()
 29001  		}
 29002  		return nil, gensupport.WrapError(&googleapi.Error{
 29003  			Code:   res.StatusCode,
 29004  			Header: res.Header,
 29005  		})
 29006  	}
 29007  	if err != nil {
 29008  		return nil, err
 29009  	}
 29010  	defer googleapi.CloseBody(res)
 29011  	if err := googleapi.CheckResponse(res); err != nil {
 29012  		return nil, gensupport.WrapError(err)
 29013  	}
 29014  	ret := &GoogleCloudDialogflowCxV3beta1Intent{
 29015  		ServerResponse: googleapi.ServerResponse{
 29016  			Header:         res.Header,
 29017  			HTTPStatusCode: res.StatusCode,
 29018  		},
 29019  	}
 29020  	target := &ret
 29021  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29022  		return nil, err
 29023  	}
 29024  	return ret, nil
 29025  }
 29026  
 29027  type ProjectsLocationsAgentsIntentsDeleteCall struct {
 29028  	s          *Service
 29029  	name       string
 29030  	urlParams_ gensupport.URLParams
 29031  	ctx_       context.Context
 29032  	header_    http.Header
 29033  }
 29034  
 29035  // Delete: Deletes the specified intent. Note: You should always train a flow
 29036  // prior to sending it queries. See the training documentation
 29037  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 29038  //
 29039  //   - name: The name of the intent to delete. Format:
 29040  //     `projects//locations//agents//intents/`.
 29041  func (r *ProjectsLocationsAgentsIntentsService) Delete(name string) *ProjectsLocationsAgentsIntentsDeleteCall {
 29042  	c := &ProjectsLocationsAgentsIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29043  	c.name = name
 29044  	return c
 29045  }
 29046  
 29047  // Fields allows partial responses to be retrieved. See
 29048  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29049  // details.
 29050  func (c *ProjectsLocationsAgentsIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsDeleteCall {
 29051  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29052  	return c
 29053  }
 29054  
 29055  // Context sets the context to be used in this call's Do method.
 29056  func (c *ProjectsLocationsAgentsIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsDeleteCall {
 29057  	c.ctx_ = ctx
 29058  	return c
 29059  }
 29060  
 29061  // Header returns a http.Header that can be modified by the caller to add
 29062  // headers to the request.
 29063  func (c *ProjectsLocationsAgentsIntentsDeleteCall) Header() http.Header {
 29064  	if c.header_ == nil {
 29065  		c.header_ = make(http.Header)
 29066  	}
 29067  	return c.header_
 29068  }
 29069  
 29070  func (c *ProjectsLocationsAgentsIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 29071  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29072  	var body io.Reader = nil
 29073  	c.urlParams_.Set("alt", alt)
 29074  	c.urlParams_.Set("prettyPrint", "false")
 29075  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 29076  	urls += "?" + c.urlParams_.Encode()
 29077  	req, err := http.NewRequest("DELETE", urls, body)
 29078  	if err != nil {
 29079  		return nil, err
 29080  	}
 29081  	req.Header = reqHeaders
 29082  	googleapi.Expand(req.URL, map[string]string{
 29083  		"name": c.name,
 29084  	})
 29085  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29086  }
 29087  
 29088  // Do executes the "dialogflow.projects.locations.agents.intents.delete" call.
 29089  // Any non-2xx status code is an error. Response headers are in either
 29090  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 29091  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 29092  // check whether the returned error was because http.StatusNotModified was
 29093  // returned.
 29094  func (c *ProjectsLocationsAgentsIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 29095  	gensupport.SetOptions(c.urlParams_, opts...)
 29096  	res, err := c.doRequest("json")
 29097  	if res != nil && res.StatusCode == http.StatusNotModified {
 29098  		if res.Body != nil {
 29099  			res.Body.Close()
 29100  		}
 29101  		return nil, gensupport.WrapError(&googleapi.Error{
 29102  			Code:   res.StatusCode,
 29103  			Header: res.Header,
 29104  		})
 29105  	}
 29106  	if err != nil {
 29107  		return nil, err
 29108  	}
 29109  	defer googleapi.CloseBody(res)
 29110  	if err := googleapi.CheckResponse(res); err != nil {
 29111  		return nil, gensupport.WrapError(err)
 29112  	}
 29113  	ret := &GoogleProtobufEmpty{
 29114  		ServerResponse: googleapi.ServerResponse{
 29115  			Header:         res.Header,
 29116  			HTTPStatusCode: res.StatusCode,
 29117  		},
 29118  	}
 29119  	target := &ret
 29120  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29121  		return nil, err
 29122  	}
 29123  	return ret, nil
 29124  }
 29125  
 29126  type ProjectsLocationsAgentsIntentsExportCall struct {
 29127  	s                                                  *Service
 29128  	parent                                             string
 29129  	googleclouddialogflowcxv3beta1exportintentsrequest *GoogleCloudDialogflowCxV3beta1ExportIntentsRequest
 29130  	urlParams_                                         gensupport.URLParams
 29131  	ctx_                                               context.Context
 29132  	header_                                            http.Header
 29133  }
 29134  
 29135  // Export: Exports the selected intents. This method is a long-running
 29136  // operation
 29137  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 29138  // The returned `Operation` type has the following method-specific fields: -
 29139  // `metadata`: ExportIntentsMetadata - `response`: ExportIntentsResponse
 29140  //
 29141  //   - parent: The name of the parent agent to export intents. Format:
 29142  //     `projects//locations//agents/`.
 29143  func (r *ProjectsLocationsAgentsIntentsService) Export(parent string, googleclouddialogflowcxv3beta1exportintentsrequest *GoogleCloudDialogflowCxV3beta1ExportIntentsRequest) *ProjectsLocationsAgentsIntentsExportCall {
 29144  	c := &ProjectsLocationsAgentsIntentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29145  	c.parent = parent
 29146  	c.googleclouddialogflowcxv3beta1exportintentsrequest = googleclouddialogflowcxv3beta1exportintentsrequest
 29147  	return c
 29148  }
 29149  
 29150  // Fields allows partial responses to be retrieved. See
 29151  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29152  // details.
 29153  func (c *ProjectsLocationsAgentsIntentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsExportCall {
 29154  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29155  	return c
 29156  }
 29157  
 29158  // Context sets the context to be used in this call's Do method.
 29159  func (c *ProjectsLocationsAgentsIntentsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsExportCall {
 29160  	c.ctx_ = ctx
 29161  	return c
 29162  }
 29163  
 29164  // Header returns a http.Header that can be modified by the caller to add
 29165  // headers to the request.
 29166  func (c *ProjectsLocationsAgentsIntentsExportCall) Header() http.Header {
 29167  	if c.header_ == nil {
 29168  		c.header_ = make(http.Header)
 29169  	}
 29170  	return c.header_
 29171  }
 29172  
 29173  func (c *ProjectsLocationsAgentsIntentsExportCall) doRequest(alt string) (*http.Response, error) {
 29174  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29175  	var body io.Reader = nil
 29176  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportintentsrequest)
 29177  	if err != nil {
 29178  		return nil, err
 29179  	}
 29180  	c.urlParams_.Set("alt", alt)
 29181  	c.urlParams_.Set("prettyPrint", "false")
 29182  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents:export")
 29183  	urls += "?" + c.urlParams_.Encode()
 29184  	req, err := http.NewRequest("POST", urls, body)
 29185  	if err != nil {
 29186  		return nil, err
 29187  	}
 29188  	req.Header = reqHeaders
 29189  	googleapi.Expand(req.URL, map[string]string{
 29190  		"parent": c.parent,
 29191  	})
 29192  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29193  }
 29194  
 29195  // Do executes the "dialogflow.projects.locations.agents.intents.export" call.
 29196  // Any non-2xx status code is an error. Response headers are in either
 29197  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29198  // returned at all) in error.(*googleapi.Error).Header. Use
 29199  // googleapi.IsNotModified to check whether the returned error was because
 29200  // http.StatusNotModified was returned.
 29201  func (c *ProjectsLocationsAgentsIntentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29202  	gensupport.SetOptions(c.urlParams_, opts...)
 29203  	res, err := c.doRequest("json")
 29204  	if res != nil && res.StatusCode == http.StatusNotModified {
 29205  		if res.Body != nil {
 29206  			res.Body.Close()
 29207  		}
 29208  		return nil, gensupport.WrapError(&googleapi.Error{
 29209  			Code:   res.StatusCode,
 29210  			Header: res.Header,
 29211  		})
 29212  	}
 29213  	if err != nil {
 29214  		return nil, err
 29215  	}
 29216  	defer googleapi.CloseBody(res)
 29217  	if err := googleapi.CheckResponse(res); err != nil {
 29218  		return nil, gensupport.WrapError(err)
 29219  	}
 29220  	ret := &GoogleLongrunningOperation{
 29221  		ServerResponse: googleapi.ServerResponse{
 29222  			Header:         res.Header,
 29223  			HTTPStatusCode: res.StatusCode,
 29224  		},
 29225  	}
 29226  	target := &ret
 29227  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29228  		return nil, err
 29229  	}
 29230  	return ret, nil
 29231  }
 29232  
 29233  type ProjectsLocationsAgentsIntentsGetCall struct {
 29234  	s            *Service
 29235  	name         string
 29236  	urlParams_   gensupport.URLParams
 29237  	ifNoneMatch_ string
 29238  	ctx_         context.Context
 29239  	header_      http.Header
 29240  }
 29241  
 29242  // Get: Retrieves the specified intent.
 29243  //
 29244  //   - name: The name of the intent. Format:
 29245  //     `projects//locations//agents//intents/`.
 29246  func (r *ProjectsLocationsAgentsIntentsService) Get(name string) *ProjectsLocationsAgentsIntentsGetCall {
 29247  	c := &ProjectsLocationsAgentsIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29248  	c.name = name
 29249  	return c
 29250  }
 29251  
 29252  // LanguageCode sets the optional parameter "languageCode": The language to
 29253  // retrieve the intent for. The following fields are language dependent: *
 29254  // `Intent.training_phrases.parts.text` If not specified, the agent's default
 29255  // language is used. Many languages
 29256  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 29257  // supported. Note: languages must be enabled in the agent before they can be
 29258  // used.
 29259  func (c *ProjectsLocationsAgentsIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsGetCall {
 29260  	c.urlParams_.Set("languageCode", languageCode)
 29261  	return c
 29262  }
 29263  
 29264  // Fields allows partial responses to be retrieved. See
 29265  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29266  // details.
 29267  func (c *ProjectsLocationsAgentsIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsGetCall {
 29268  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29269  	return c
 29270  }
 29271  
 29272  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29273  // object's ETag matches the given value. This is useful for getting updates
 29274  // only after the object has changed since the last request.
 29275  func (c *ProjectsLocationsAgentsIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsGetCall {
 29276  	c.ifNoneMatch_ = entityTag
 29277  	return c
 29278  }
 29279  
 29280  // Context sets the context to be used in this call's Do method.
 29281  func (c *ProjectsLocationsAgentsIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsGetCall {
 29282  	c.ctx_ = ctx
 29283  	return c
 29284  }
 29285  
 29286  // Header returns a http.Header that can be modified by the caller to add
 29287  // headers to the request.
 29288  func (c *ProjectsLocationsAgentsIntentsGetCall) Header() http.Header {
 29289  	if c.header_ == nil {
 29290  		c.header_ = make(http.Header)
 29291  	}
 29292  	return c.header_
 29293  }
 29294  
 29295  func (c *ProjectsLocationsAgentsIntentsGetCall) doRequest(alt string) (*http.Response, error) {
 29296  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29297  	if c.ifNoneMatch_ != "" {
 29298  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29299  	}
 29300  	var body io.Reader = nil
 29301  	c.urlParams_.Set("alt", alt)
 29302  	c.urlParams_.Set("prettyPrint", "false")
 29303  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 29304  	urls += "?" + c.urlParams_.Encode()
 29305  	req, err := http.NewRequest("GET", urls, body)
 29306  	if err != nil {
 29307  		return nil, err
 29308  	}
 29309  	req.Header = reqHeaders
 29310  	googleapi.Expand(req.URL, map[string]string{
 29311  		"name": c.name,
 29312  	})
 29313  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29314  }
 29315  
 29316  // Do executes the "dialogflow.projects.locations.agents.intents.get" call.
 29317  // Any non-2xx status code is an error. Response headers are in either
 29318  // *GoogleCloudDialogflowCxV3beta1Intent.ServerResponse.Header or (if a
 29319  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29320  // googleapi.IsNotModified to check whether the returned error was because
 29321  // http.StatusNotModified was returned.
 29322  func (c *ProjectsLocationsAgentsIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
 29323  	gensupport.SetOptions(c.urlParams_, opts...)
 29324  	res, err := c.doRequest("json")
 29325  	if res != nil && res.StatusCode == http.StatusNotModified {
 29326  		if res.Body != nil {
 29327  			res.Body.Close()
 29328  		}
 29329  		return nil, gensupport.WrapError(&googleapi.Error{
 29330  			Code:   res.StatusCode,
 29331  			Header: res.Header,
 29332  		})
 29333  	}
 29334  	if err != nil {
 29335  		return nil, err
 29336  	}
 29337  	defer googleapi.CloseBody(res)
 29338  	if err := googleapi.CheckResponse(res); err != nil {
 29339  		return nil, gensupport.WrapError(err)
 29340  	}
 29341  	ret := &GoogleCloudDialogflowCxV3beta1Intent{
 29342  		ServerResponse: googleapi.ServerResponse{
 29343  			Header:         res.Header,
 29344  			HTTPStatusCode: res.StatusCode,
 29345  		},
 29346  	}
 29347  	target := &ret
 29348  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29349  		return nil, err
 29350  	}
 29351  	return ret, nil
 29352  }
 29353  
 29354  type ProjectsLocationsAgentsIntentsImportCall struct {
 29355  	s                                                  *Service
 29356  	parent                                             string
 29357  	googleclouddialogflowcxv3beta1importintentsrequest *GoogleCloudDialogflowCxV3beta1ImportIntentsRequest
 29358  	urlParams_                                         gensupport.URLParams
 29359  	ctx_                                               context.Context
 29360  	header_                                            http.Header
 29361  }
 29362  
 29363  // Import: Imports the specified intents into the agent. This method is a
 29364  // long-running operation
 29365  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 29366  // The returned `Operation` type has the following method-specific fields: -
 29367  // `metadata`: ImportIntentsMetadata - `response`: ImportIntentsResponse
 29368  //
 29369  //   - parent: The agent to import the intents into. Format:
 29370  //     `projects//locations//agents/`.
 29371  func (r *ProjectsLocationsAgentsIntentsService) Import(parent string, googleclouddialogflowcxv3beta1importintentsrequest *GoogleCloudDialogflowCxV3beta1ImportIntentsRequest) *ProjectsLocationsAgentsIntentsImportCall {
 29372  	c := &ProjectsLocationsAgentsIntentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29373  	c.parent = parent
 29374  	c.googleclouddialogflowcxv3beta1importintentsrequest = googleclouddialogflowcxv3beta1importintentsrequest
 29375  	return c
 29376  }
 29377  
 29378  // Fields allows partial responses to be retrieved. See
 29379  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29380  // details.
 29381  func (c *ProjectsLocationsAgentsIntentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsImportCall {
 29382  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29383  	return c
 29384  }
 29385  
 29386  // Context sets the context to be used in this call's Do method.
 29387  func (c *ProjectsLocationsAgentsIntentsImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsImportCall {
 29388  	c.ctx_ = ctx
 29389  	return c
 29390  }
 29391  
 29392  // Header returns a http.Header that can be modified by the caller to add
 29393  // headers to the request.
 29394  func (c *ProjectsLocationsAgentsIntentsImportCall) Header() http.Header {
 29395  	if c.header_ == nil {
 29396  		c.header_ = make(http.Header)
 29397  	}
 29398  	return c.header_
 29399  }
 29400  
 29401  func (c *ProjectsLocationsAgentsIntentsImportCall) doRequest(alt string) (*http.Response, error) {
 29402  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29403  	var body io.Reader = nil
 29404  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importintentsrequest)
 29405  	if err != nil {
 29406  		return nil, err
 29407  	}
 29408  	c.urlParams_.Set("alt", alt)
 29409  	c.urlParams_.Set("prettyPrint", "false")
 29410  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents:import")
 29411  	urls += "?" + c.urlParams_.Encode()
 29412  	req, err := http.NewRequest("POST", urls, body)
 29413  	if err != nil {
 29414  		return nil, err
 29415  	}
 29416  	req.Header = reqHeaders
 29417  	googleapi.Expand(req.URL, map[string]string{
 29418  		"parent": c.parent,
 29419  	})
 29420  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29421  }
 29422  
 29423  // Do executes the "dialogflow.projects.locations.agents.intents.import" call.
 29424  // Any non-2xx status code is an error. Response headers are in either
 29425  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29426  // returned at all) in error.(*googleapi.Error).Header. Use
 29427  // googleapi.IsNotModified to check whether the returned error was because
 29428  // http.StatusNotModified was returned.
 29429  func (c *ProjectsLocationsAgentsIntentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29430  	gensupport.SetOptions(c.urlParams_, opts...)
 29431  	res, err := c.doRequest("json")
 29432  	if res != nil && res.StatusCode == http.StatusNotModified {
 29433  		if res.Body != nil {
 29434  			res.Body.Close()
 29435  		}
 29436  		return nil, gensupport.WrapError(&googleapi.Error{
 29437  			Code:   res.StatusCode,
 29438  			Header: res.Header,
 29439  		})
 29440  	}
 29441  	if err != nil {
 29442  		return nil, err
 29443  	}
 29444  	defer googleapi.CloseBody(res)
 29445  	if err := googleapi.CheckResponse(res); err != nil {
 29446  		return nil, gensupport.WrapError(err)
 29447  	}
 29448  	ret := &GoogleLongrunningOperation{
 29449  		ServerResponse: googleapi.ServerResponse{
 29450  			Header:         res.Header,
 29451  			HTTPStatusCode: res.StatusCode,
 29452  		},
 29453  	}
 29454  	target := &ret
 29455  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29456  		return nil, err
 29457  	}
 29458  	return ret, nil
 29459  }
 29460  
 29461  type ProjectsLocationsAgentsIntentsListCall struct {
 29462  	s            *Service
 29463  	parent       string
 29464  	urlParams_   gensupport.URLParams
 29465  	ifNoneMatch_ string
 29466  	ctx_         context.Context
 29467  	header_      http.Header
 29468  }
 29469  
 29470  // List: Returns the list of all intents in the specified agent.
 29471  //
 29472  //   - parent: The agent to list all intents for. Format:
 29473  //     `projects//locations//agents/`.
 29474  func (r *ProjectsLocationsAgentsIntentsService) List(parent string) *ProjectsLocationsAgentsIntentsListCall {
 29475  	c := &ProjectsLocationsAgentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29476  	c.parent = parent
 29477  	return c
 29478  }
 29479  
 29480  // IntentView sets the optional parameter "intentView": The resource view to
 29481  // apply to the returned intent.
 29482  //
 29483  // Possible values:
 29484  //
 29485  //	"INTENT_VIEW_UNSPECIFIED" - Not specified. Treated as INTENT_VIEW_FULL.
 29486  //	"INTENT_VIEW_PARTIAL" - Training phrases field is not populated in the
 29487  //
 29488  // response.
 29489  //
 29490  //	"INTENT_VIEW_FULL" - All fields are populated.
 29491  func (c *ProjectsLocationsAgentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentsIntentsListCall {
 29492  	c.urlParams_.Set("intentView", intentView)
 29493  	return c
 29494  }
 29495  
 29496  // LanguageCode sets the optional parameter "languageCode": The language to
 29497  // list intents for. The following fields are language dependent: *
 29498  // `Intent.training_phrases.parts.text` If not specified, the agent's default
 29499  // language is used. Many languages
 29500  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 29501  // supported. Note: languages must be enabled in the agent before they can be
 29502  // used.
 29503  func (c *ProjectsLocationsAgentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsListCall {
 29504  	c.urlParams_.Set("languageCode", languageCode)
 29505  	return c
 29506  }
 29507  
 29508  // PageSize sets the optional parameter "pageSize": The maximum number of items
 29509  // to return in a single page. By default 100 and at most 1000.
 29510  func (c *ProjectsLocationsAgentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsIntentsListCall {
 29511  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29512  	return c
 29513  }
 29514  
 29515  // PageToken sets the optional parameter "pageToken": The next_page_token value
 29516  // returned from a previous list request.
 29517  func (c *ProjectsLocationsAgentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsIntentsListCall {
 29518  	c.urlParams_.Set("pageToken", pageToken)
 29519  	return c
 29520  }
 29521  
 29522  // Fields allows partial responses to be retrieved. See
 29523  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29524  // details.
 29525  func (c *ProjectsLocationsAgentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsListCall {
 29526  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29527  	return c
 29528  }
 29529  
 29530  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29531  // object's ETag matches the given value. This is useful for getting updates
 29532  // only after the object has changed since the last request.
 29533  func (c *ProjectsLocationsAgentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsListCall {
 29534  	c.ifNoneMatch_ = entityTag
 29535  	return c
 29536  }
 29537  
 29538  // Context sets the context to be used in this call's Do method.
 29539  func (c *ProjectsLocationsAgentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsListCall {
 29540  	c.ctx_ = ctx
 29541  	return c
 29542  }
 29543  
 29544  // Header returns a http.Header that can be modified by the caller to add
 29545  // headers to the request.
 29546  func (c *ProjectsLocationsAgentsIntentsListCall) Header() http.Header {
 29547  	if c.header_ == nil {
 29548  		c.header_ = make(http.Header)
 29549  	}
 29550  	return c.header_
 29551  }
 29552  
 29553  func (c *ProjectsLocationsAgentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
 29554  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29555  	if c.ifNoneMatch_ != "" {
 29556  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29557  	}
 29558  	var body io.Reader = nil
 29559  	c.urlParams_.Set("alt", alt)
 29560  	c.urlParams_.Set("prettyPrint", "false")
 29561  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents")
 29562  	urls += "?" + c.urlParams_.Encode()
 29563  	req, err := http.NewRequest("GET", urls, body)
 29564  	if err != nil {
 29565  		return nil, err
 29566  	}
 29567  	req.Header = reqHeaders
 29568  	googleapi.Expand(req.URL, map[string]string{
 29569  		"parent": c.parent,
 29570  	})
 29571  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29572  }
 29573  
 29574  // Do executes the "dialogflow.projects.locations.agents.intents.list" call.
 29575  // Any non-2xx status code is an error. Response headers are in either
 29576  // *GoogleCloudDialogflowCxV3beta1ListIntentsResponse.ServerResponse.Header or
 29577  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 29578  // googleapi.IsNotModified to check whether the returned error was because
 29579  // http.StatusNotModified was returned.
 29580  func (c *ProjectsLocationsAgentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListIntentsResponse, error) {
 29581  	gensupport.SetOptions(c.urlParams_, opts...)
 29582  	res, err := c.doRequest("json")
 29583  	if res != nil && res.StatusCode == http.StatusNotModified {
 29584  		if res.Body != nil {
 29585  			res.Body.Close()
 29586  		}
 29587  		return nil, gensupport.WrapError(&googleapi.Error{
 29588  			Code:   res.StatusCode,
 29589  			Header: res.Header,
 29590  		})
 29591  	}
 29592  	if err != nil {
 29593  		return nil, err
 29594  	}
 29595  	defer googleapi.CloseBody(res)
 29596  	if err := googleapi.CheckResponse(res); err != nil {
 29597  		return nil, gensupport.WrapError(err)
 29598  	}
 29599  	ret := &GoogleCloudDialogflowCxV3beta1ListIntentsResponse{
 29600  		ServerResponse: googleapi.ServerResponse{
 29601  			Header:         res.Header,
 29602  			HTTPStatusCode: res.StatusCode,
 29603  		},
 29604  	}
 29605  	target := &ret
 29606  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29607  		return nil, err
 29608  	}
 29609  	return ret, nil
 29610  }
 29611  
 29612  // Pages invokes f for each page of results.
 29613  // A non-nil error returned from f will halt the iteration.
 29614  // The provided context supersedes any context provided to the Context method.
 29615  func (c *ProjectsLocationsAgentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListIntentsResponse) error) error {
 29616  	c.ctx_ = ctx
 29617  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29618  	for {
 29619  		x, err := c.Do()
 29620  		if err != nil {
 29621  			return err
 29622  		}
 29623  		if err := f(x); err != nil {
 29624  			return err
 29625  		}
 29626  		if x.NextPageToken == "" {
 29627  			return nil
 29628  		}
 29629  		c.PageToken(x.NextPageToken)
 29630  	}
 29631  }
 29632  
 29633  type ProjectsLocationsAgentsIntentsPatchCall struct {
 29634  	s                                    *Service
 29635  	nameid                               string
 29636  	googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent
 29637  	urlParams_                           gensupport.URLParams
 29638  	ctx_                                 context.Context
 29639  	header_                              http.Header
 29640  }
 29641  
 29642  // Patch: Updates the specified intent. Note: You should always train a flow
 29643  // prior to sending it queries. See the training documentation
 29644  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 29645  //
 29646  //   - name: The unique identifier of the intent. Required for the
 29647  //     Intents.UpdateIntent method. Intents.CreateIntent populates the name
 29648  //     automatically. Format: `projects//locations//agents//intents/`.
 29649  func (r *ProjectsLocationsAgentsIntentsService) Patch(nameid string, googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent) *ProjectsLocationsAgentsIntentsPatchCall {
 29650  	c := &ProjectsLocationsAgentsIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29651  	c.nameid = nameid
 29652  	c.googleclouddialogflowcxv3beta1intent = googleclouddialogflowcxv3beta1intent
 29653  	return c
 29654  }
 29655  
 29656  // LanguageCode sets the optional parameter "languageCode": The language of the
 29657  // following fields in `intent`: * `Intent.training_phrases.parts.text` If not
 29658  // specified, the agent's default language is used. Many languages
 29659  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 29660  // supported. Note: languages must be enabled in the agent before they can be
 29661  // used.
 29662  func (c *ProjectsLocationsAgentsIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsPatchCall {
 29663  	c.urlParams_.Set("languageCode", languageCode)
 29664  	return c
 29665  }
 29666  
 29667  // UpdateMask sets the optional parameter "updateMask": The mask to control
 29668  // which fields get updated. If the mask is not present, all fields will be
 29669  // updated.
 29670  func (c *ProjectsLocationsAgentsIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsIntentsPatchCall {
 29671  	c.urlParams_.Set("updateMask", updateMask)
 29672  	return c
 29673  }
 29674  
 29675  // Fields allows partial responses to be retrieved. See
 29676  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29677  // details.
 29678  func (c *ProjectsLocationsAgentsIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsPatchCall {
 29679  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29680  	return c
 29681  }
 29682  
 29683  // Context sets the context to be used in this call's Do method.
 29684  func (c *ProjectsLocationsAgentsIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsPatchCall {
 29685  	c.ctx_ = ctx
 29686  	return c
 29687  }
 29688  
 29689  // Header returns a http.Header that can be modified by the caller to add
 29690  // headers to the request.
 29691  func (c *ProjectsLocationsAgentsIntentsPatchCall) Header() http.Header {
 29692  	if c.header_ == nil {
 29693  		c.header_ = make(http.Header)
 29694  	}
 29695  	return c.header_
 29696  }
 29697  
 29698  func (c *ProjectsLocationsAgentsIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
 29699  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29700  	var body io.Reader = nil
 29701  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1intent)
 29702  	if err != nil {
 29703  		return nil, err
 29704  	}
 29705  	c.urlParams_.Set("alt", alt)
 29706  	c.urlParams_.Set("prettyPrint", "false")
 29707  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 29708  	urls += "?" + c.urlParams_.Encode()
 29709  	req, err := http.NewRequest("PATCH", urls, body)
 29710  	if err != nil {
 29711  		return nil, err
 29712  	}
 29713  	req.Header = reqHeaders
 29714  	googleapi.Expand(req.URL, map[string]string{
 29715  		"name": c.nameid,
 29716  	})
 29717  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29718  }
 29719  
 29720  // Do executes the "dialogflow.projects.locations.agents.intents.patch" call.
 29721  // Any non-2xx status code is an error. Response headers are in either
 29722  // *GoogleCloudDialogflowCxV3beta1Intent.ServerResponse.Header or (if a
 29723  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29724  // googleapi.IsNotModified to check whether the returned error was because
 29725  // http.StatusNotModified was returned.
 29726  func (c *ProjectsLocationsAgentsIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
 29727  	gensupport.SetOptions(c.urlParams_, opts...)
 29728  	res, err := c.doRequest("json")
 29729  	if res != nil && res.StatusCode == http.StatusNotModified {
 29730  		if res.Body != nil {
 29731  			res.Body.Close()
 29732  		}
 29733  		return nil, gensupport.WrapError(&googleapi.Error{
 29734  			Code:   res.StatusCode,
 29735  			Header: res.Header,
 29736  		})
 29737  	}
 29738  	if err != nil {
 29739  		return nil, err
 29740  	}
 29741  	defer googleapi.CloseBody(res)
 29742  	if err := googleapi.CheckResponse(res); err != nil {
 29743  		return nil, gensupport.WrapError(err)
 29744  	}
 29745  	ret := &GoogleCloudDialogflowCxV3beta1Intent{
 29746  		ServerResponse: googleapi.ServerResponse{
 29747  			Header:         res.Header,
 29748  			HTTPStatusCode: res.StatusCode,
 29749  		},
 29750  	}
 29751  	target := &ret
 29752  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29753  		return nil, err
 29754  	}
 29755  	return ret, nil
 29756  }
 29757  
 29758  type ProjectsLocationsAgentsSessionsDetectIntentCall struct {
 29759  	s                                                 *Service
 29760  	sessionid                                         string
 29761  	googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
 29762  	urlParams_                                        gensupport.URLParams
 29763  	ctx_                                              context.Context
 29764  	header_                                           http.Header
 29765  }
 29766  
 29767  // DetectIntent: Processes a natural language query and returns structured,
 29768  // actionable data as a result. This method is not idempotent, because it may
 29769  // cause session entity types to be updated, which in turn might affect results
 29770  // of future queries. Note: Always use agent versions for production traffic.
 29771  // See Versions and environments
 29772  // (https://cloud.google.com/dialogflow/cx/docs/concept/version).
 29773  //
 29774  //   - session: The name of the session this query is sent to. Format:
 29775  //     `projects//locations//agents//sessions/` or
 29776  //     `projects//locations//agents//environments//sessions/`. If `Environment
 29777  //     ID` is not specified, we assume default 'draft' environment. It's up to
 29778  //     the API caller to choose an appropriate `Session ID`. It can be a random
 29779  //     number or some type of session identifiers (preferably hashed). The length
 29780  //     of the `Session ID` must not exceed 36 characters. For more information,
 29781  //     see the sessions guide
 29782  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session). Note:
 29783  //     Always use agent versions for production traffic. See Versions and
 29784  //     environments
 29785  //     (https://cloud.google.com/dialogflow/cx/docs/concept/version).
 29786  func (r *ProjectsLocationsAgentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsSessionsDetectIntentCall {
 29787  	c := &ProjectsLocationsAgentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29788  	c.sessionid = sessionid
 29789  	c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
 29790  	return c
 29791  }
 29792  
 29793  // Fields allows partial responses to be retrieved. See
 29794  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29795  // details.
 29796  func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsDetectIntentCall {
 29797  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29798  	return c
 29799  }
 29800  
 29801  // Context sets the context to be used in this call's Do method.
 29802  func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsDetectIntentCall {
 29803  	c.ctx_ = ctx
 29804  	return c
 29805  }
 29806  
 29807  // Header returns a http.Header that can be modified by the caller to add
 29808  // headers to the request.
 29809  func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Header() http.Header {
 29810  	if c.header_ == nil {
 29811  		c.header_ = make(http.Header)
 29812  	}
 29813  	return c.header_
 29814  }
 29815  
 29816  func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 29817  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29818  	var body io.Reader = nil
 29819  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
 29820  	if err != nil {
 29821  		return nil, err
 29822  	}
 29823  	c.urlParams_.Set("alt", alt)
 29824  	c.urlParams_.Set("prettyPrint", "false")
 29825  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:detectIntent")
 29826  	urls += "?" + c.urlParams_.Encode()
 29827  	req, err := http.NewRequest("POST", urls, body)
 29828  	if err != nil {
 29829  		return nil, err
 29830  	}
 29831  	req.Header = reqHeaders
 29832  	googleapi.Expand(req.URL, map[string]string{
 29833  		"session": c.sessionid,
 29834  	})
 29835  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29836  }
 29837  
 29838  // Do executes the "dialogflow.projects.locations.agents.sessions.detectIntent" call.
 29839  // Any non-2xx status code is an error. Response headers are in either
 29840  // *GoogleCloudDialogflowCxV3beta1DetectIntentResponse.ServerResponse.Header or
 29841  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 29842  // googleapi.IsNotModified to check whether the returned error was because
 29843  // http.StatusNotModified was returned.
 29844  func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
 29845  	gensupport.SetOptions(c.urlParams_, opts...)
 29846  	res, err := c.doRequest("json")
 29847  	if res != nil && res.StatusCode == http.StatusNotModified {
 29848  		if res.Body != nil {
 29849  			res.Body.Close()
 29850  		}
 29851  		return nil, gensupport.WrapError(&googleapi.Error{
 29852  			Code:   res.StatusCode,
 29853  			Header: res.Header,
 29854  		})
 29855  	}
 29856  	if err != nil {
 29857  		return nil, err
 29858  	}
 29859  	defer googleapi.CloseBody(res)
 29860  	if err := googleapi.CheckResponse(res); err != nil {
 29861  		return nil, gensupport.WrapError(err)
 29862  	}
 29863  	ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
 29864  		ServerResponse: googleapi.ServerResponse{
 29865  			Header:         res.Header,
 29866  			HTTPStatusCode: res.StatusCode,
 29867  		},
 29868  	}
 29869  	target := &ret
 29870  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29871  		return nil, err
 29872  	}
 29873  	return ret, nil
 29874  }
 29875  
 29876  type ProjectsLocationsAgentsSessionsFulfillIntentCall struct {
 29877  	s                                                  *Service
 29878  	sessionid                                          string
 29879  	googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
 29880  	urlParams_                                         gensupport.URLParams
 29881  	ctx_                                               context.Context
 29882  	header_                                            http.Header
 29883  }
 29884  
 29885  // FulfillIntent: Fulfills a matched intent returned by MatchIntent. Must be
 29886  // called after MatchIntent, with input from MatchIntentResponse. Otherwise,
 29887  // the behavior is undefined.
 29888  //
 29889  //   - session: The name of the session this query is sent to. Format:
 29890  //     `projects//locations//agents//sessions/` or
 29891  //     `projects//locations//agents//environments//sessions/`. If `Environment
 29892  //     ID` is not specified, we assume default 'draft' environment. It's up to
 29893  //     the API caller to choose an appropriate `Session ID`. It can be a random
 29894  //     number or some type of session identifiers (preferably hashed). The length
 29895  //     of the `Session ID` must not exceed 36 characters. For more information,
 29896  //     see the sessions guide
 29897  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session).
 29898  func (r *ProjectsLocationsAgentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
 29899  	c := &ProjectsLocationsAgentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29900  	c.sessionid = sessionid
 29901  	c.googleclouddialogflowcxv3beta1fulfillintentrequest = googleclouddialogflowcxv3beta1fulfillintentrequest
 29902  	return c
 29903  }
 29904  
 29905  // Fields allows partial responses to be retrieved. See
 29906  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29907  // details.
 29908  func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
 29909  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29910  	return c
 29911  }
 29912  
 29913  // Context sets the context to be used in this call's Do method.
 29914  func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
 29915  	c.ctx_ = ctx
 29916  	return c
 29917  }
 29918  
 29919  // Header returns a http.Header that can be modified by the caller to add
 29920  // headers to the request.
 29921  func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Header() http.Header {
 29922  	if c.header_ == nil {
 29923  		c.header_ = make(http.Header)
 29924  	}
 29925  	return c.header_
 29926  }
 29927  
 29928  func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
 29929  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29930  	var body io.Reader = nil
 29931  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1fulfillintentrequest)
 29932  	if err != nil {
 29933  		return nil, err
 29934  	}
 29935  	c.urlParams_.Set("alt", alt)
 29936  	c.urlParams_.Set("prettyPrint", "false")
 29937  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:fulfillIntent")
 29938  	urls += "?" + c.urlParams_.Encode()
 29939  	req, err := http.NewRequest("POST", urls, body)
 29940  	if err != nil {
 29941  		return nil, err
 29942  	}
 29943  	req.Header = reqHeaders
 29944  	googleapi.Expand(req.URL, map[string]string{
 29945  		"session": c.sessionid,
 29946  	})
 29947  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29948  }
 29949  
 29950  // Do executes the "dialogflow.projects.locations.agents.sessions.fulfillIntent" call.
 29951  // Any non-2xx status code is an error. Response headers are in either
 29952  // *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse.ServerResponse.Header
 29953  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 29954  // Use googleapi.IsNotModified to check whether the returned error was because
 29955  // http.StatusNotModified was returned.
 29956  func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FulfillIntentResponse, error) {
 29957  	gensupport.SetOptions(c.urlParams_, opts...)
 29958  	res, err := c.doRequest("json")
 29959  	if res != nil && res.StatusCode == http.StatusNotModified {
 29960  		if res.Body != nil {
 29961  			res.Body.Close()
 29962  		}
 29963  		return nil, gensupport.WrapError(&googleapi.Error{
 29964  			Code:   res.StatusCode,
 29965  			Header: res.Header,
 29966  		})
 29967  	}
 29968  	if err != nil {
 29969  		return nil, err
 29970  	}
 29971  	defer googleapi.CloseBody(res)
 29972  	if err := googleapi.CheckResponse(res); err != nil {
 29973  		return nil, gensupport.WrapError(err)
 29974  	}
 29975  	ret := &GoogleCloudDialogflowCxV3beta1FulfillIntentResponse{
 29976  		ServerResponse: googleapi.ServerResponse{
 29977  			Header:         res.Header,
 29978  			HTTPStatusCode: res.StatusCode,
 29979  		},
 29980  	}
 29981  	target := &ret
 29982  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29983  		return nil, err
 29984  	}
 29985  	return ret, nil
 29986  }
 29987  
 29988  type ProjectsLocationsAgentsSessionsMatchIntentCall struct {
 29989  	s                                                *Service
 29990  	sessionid                                        string
 29991  	googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest
 29992  	urlParams_                                       gensupport.URLParams
 29993  	ctx_                                             context.Context
 29994  	header_                                          http.Header
 29995  }
 29996  
 29997  // MatchIntent: Returns preliminary intent match results, doesn't change the
 29998  // session status.
 29999  //
 30000  //   - session: The name of the session this query is sent to. Format:
 30001  //     `projects//locations//agents//sessions/` or
 30002  //     `projects//locations//agents//environments//sessions/`. If `Environment
 30003  //     ID` is not specified, we assume default 'draft' environment. It's up to
 30004  //     the API caller to choose an appropriate `Session ID`. It can be a random
 30005  //     number or some type of session identifiers (preferably hashed). The length
 30006  //     of the `Session ID` must not exceed 36 characters. For more information,
 30007  //     see the sessions guide
 30008  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session).
 30009  func (r *ProjectsLocationsAgentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) *ProjectsLocationsAgentsSessionsMatchIntentCall {
 30010  	c := &ProjectsLocationsAgentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30011  	c.sessionid = sessionid
 30012  	c.googleclouddialogflowcxv3beta1matchintentrequest = googleclouddialogflowcxv3beta1matchintentrequest
 30013  	return c
 30014  }
 30015  
 30016  // Fields allows partial responses to be retrieved. See
 30017  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30018  // details.
 30019  func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsMatchIntentCall {
 30020  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30021  	return c
 30022  }
 30023  
 30024  // Context sets the context to be used in this call's Do method.
 30025  func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsMatchIntentCall {
 30026  	c.ctx_ = ctx
 30027  	return c
 30028  }
 30029  
 30030  // Header returns a http.Header that can be modified by the caller to add
 30031  // headers to the request.
 30032  func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Header() http.Header {
 30033  	if c.header_ == nil {
 30034  		c.header_ = make(http.Header)
 30035  	}
 30036  	return c.header_
 30037  }
 30038  
 30039  func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
 30040  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30041  	var body io.Reader = nil
 30042  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1matchintentrequest)
 30043  	if err != nil {
 30044  		return nil, err
 30045  	}
 30046  	c.urlParams_.Set("alt", alt)
 30047  	c.urlParams_.Set("prettyPrint", "false")
 30048  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:matchIntent")
 30049  	urls += "?" + c.urlParams_.Encode()
 30050  	req, err := http.NewRequest("POST", urls, body)
 30051  	if err != nil {
 30052  		return nil, err
 30053  	}
 30054  	req.Header = reqHeaders
 30055  	googleapi.Expand(req.URL, map[string]string{
 30056  		"session": c.sessionid,
 30057  	})
 30058  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30059  }
 30060  
 30061  // Do executes the "dialogflow.projects.locations.agents.sessions.matchIntent" call.
 30062  // Any non-2xx status code is an error. Response headers are in either
 30063  // *GoogleCloudDialogflowCxV3beta1MatchIntentResponse.ServerResponse.Header or
 30064  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30065  // googleapi.IsNotModified to check whether the returned error was because
 30066  // http.StatusNotModified was returned.
 30067  func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1MatchIntentResponse, error) {
 30068  	gensupport.SetOptions(c.urlParams_, opts...)
 30069  	res, err := c.doRequest("json")
 30070  	if res != nil && res.StatusCode == http.StatusNotModified {
 30071  		if res.Body != nil {
 30072  			res.Body.Close()
 30073  		}
 30074  		return nil, gensupport.WrapError(&googleapi.Error{
 30075  			Code:   res.StatusCode,
 30076  			Header: res.Header,
 30077  		})
 30078  	}
 30079  	if err != nil {
 30080  		return nil, err
 30081  	}
 30082  	defer googleapi.CloseBody(res)
 30083  	if err := googleapi.CheckResponse(res); err != nil {
 30084  		return nil, gensupport.WrapError(err)
 30085  	}
 30086  	ret := &GoogleCloudDialogflowCxV3beta1MatchIntentResponse{
 30087  		ServerResponse: googleapi.ServerResponse{
 30088  			Header:         res.Header,
 30089  			HTTPStatusCode: res.StatusCode,
 30090  		},
 30091  	}
 30092  	target := &ret
 30093  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30094  		return nil, err
 30095  	}
 30096  	return ret, nil
 30097  }
 30098  
 30099  type ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall struct {
 30100  	s                                                 *Service
 30101  	sessionid                                         string
 30102  	googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
 30103  	urlParams_                                        gensupport.URLParams
 30104  	ctx_                                              context.Context
 30105  	header_                                           http.Header
 30106  }
 30107  
 30108  // ServerStreamingDetectIntent: Processes a natural language query and returns
 30109  // structured, actionable data as a result through server-side streaming.
 30110  // Server-side streaming allows Dialogflow to send partial responses
 30111  // (https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response)
 30112  // earlier in a single request.
 30113  //
 30114  //   - session: The name of the session this query is sent to. Format:
 30115  //     `projects//locations//agents//sessions/` or
 30116  //     `projects//locations//agents//environments//sessions/`. If `Environment
 30117  //     ID` is not specified, we assume default 'draft' environment. It's up to
 30118  //     the API caller to choose an appropriate `Session ID`. It can be a random
 30119  //     number or some type of session identifiers (preferably hashed). The length
 30120  //     of the `Session ID` must not exceed 36 characters. For more information,
 30121  //     see the sessions guide
 30122  //     (https://cloud.google.com/dialogflow/cx/docs/concept/session). Note:
 30123  //     Always use agent versions for production traffic. See Versions and
 30124  //     environments
 30125  //     (https://cloud.google.com/dialogflow/cx/docs/concept/version).
 30126  func (r *ProjectsLocationsAgentsSessionsService) ServerStreamingDetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
 30127  	c := &ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30128  	c.sessionid = sessionid
 30129  	c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
 30130  	return c
 30131  }
 30132  
 30133  // Fields allows partial responses to be retrieved. See
 30134  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30135  // details.
 30136  func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
 30137  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30138  	return c
 30139  }
 30140  
 30141  // Context sets the context to be used in this call's Do method.
 30142  func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
 30143  	c.ctx_ = ctx
 30144  	return c
 30145  }
 30146  
 30147  // Header returns a http.Header that can be modified by the caller to add
 30148  // headers to the request.
 30149  func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Header() http.Header {
 30150  	if c.header_ == nil {
 30151  		c.header_ = make(http.Header)
 30152  	}
 30153  	return c.header_
 30154  }
 30155  
 30156  func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 30157  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30158  	var body io.Reader = nil
 30159  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
 30160  	if err != nil {
 30161  		return nil, err
 30162  	}
 30163  	c.urlParams_.Set("alt", alt)
 30164  	c.urlParams_.Set("prettyPrint", "false")
 30165  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:serverStreamingDetectIntent")
 30166  	urls += "?" + c.urlParams_.Encode()
 30167  	req, err := http.NewRequest("POST", urls, body)
 30168  	if err != nil {
 30169  		return nil, err
 30170  	}
 30171  	req.Header = reqHeaders
 30172  	googleapi.Expand(req.URL, map[string]string{
 30173  		"session": c.sessionid,
 30174  	})
 30175  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30176  }
 30177  
 30178  // Do executes the "dialogflow.projects.locations.agents.sessions.serverStreamingDetectIntent" call.
 30179  // Any non-2xx status code is an error. Response headers are in either
 30180  // *GoogleCloudDialogflowCxV3beta1DetectIntentResponse.ServerResponse.Header or
 30181  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30182  // googleapi.IsNotModified to check whether the returned error was because
 30183  // http.StatusNotModified was returned.
 30184  func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
 30185  	gensupport.SetOptions(c.urlParams_, opts...)
 30186  	res, err := c.doRequest("json")
 30187  	if res != nil && res.StatusCode == http.StatusNotModified {
 30188  		if res.Body != nil {
 30189  			res.Body.Close()
 30190  		}
 30191  		return nil, gensupport.WrapError(&googleapi.Error{
 30192  			Code:   res.StatusCode,
 30193  			Header: res.Header,
 30194  		})
 30195  	}
 30196  	if err != nil {
 30197  		return nil, err
 30198  	}
 30199  	defer googleapi.CloseBody(res)
 30200  	if err := googleapi.CheckResponse(res); err != nil {
 30201  		return nil, gensupport.WrapError(err)
 30202  	}
 30203  	ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
 30204  		ServerResponse: googleapi.ServerResponse{
 30205  			Header:         res.Header,
 30206  			HTTPStatusCode: res.StatusCode,
 30207  		},
 30208  	}
 30209  	target := &ret
 30210  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30211  		return nil, err
 30212  	}
 30213  	return ret, nil
 30214  }
 30215  
 30216  type ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall struct {
 30217  	s                                                         *Service
 30218  	session                                                   string
 30219  	googleclouddialogflowcxv3beta1submitanswerfeedbackrequest *GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest
 30220  	urlParams_                                                gensupport.URLParams
 30221  	ctx_                                                      context.Context
 30222  	header_                                                   http.Header
 30223  }
 30224  
 30225  // SubmitAnswerFeedback: Updates the feedback received from the user for a
 30226  // single turn of the bot response.
 30227  //
 30228  // - session: The name of the session the feedback was sent to.
 30229  func (r *ProjectsLocationsAgentsSessionsService) SubmitAnswerFeedback(session string, googleclouddialogflowcxv3beta1submitanswerfeedbackrequest *GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
 30230  	c := &ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30231  	c.session = session
 30232  	c.googleclouddialogflowcxv3beta1submitanswerfeedbackrequest = googleclouddialogflowcxv3beta1submitanswerfeedbackrequest
 30233  	return c
 30234  }
 30235  
 30236  // Fields allows partial responses to be retrieved. See
 30237  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30238  // details.
 30239  func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
 30240  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30241  	return c
 30242  }
 30243  
 30244  // Context sets the context to be used in this call's Do method.
 30245  func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
 30246  	c.ctx_ = ctx
 30247  	return c
 30248  }
 30249  
 30250  // Header returns a http.Header that can be modified by the caller to add
 30251  // headers to the request.
 30252  func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Header() http.Header {
 30253  	if c.header_ == nil {
 30254  		c.header_ = make(http.Header)
 30255  	}
 30256  	return c.header_
 30257  }
 30258  
 30259  func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) doRequest(alt string) (*http.Response, error) {
 30260  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30261  	var body io.Reader = nil
 30262  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1submitanswerfeedbackrequest)
 30263  	if err != nil {
 30264  		return nil, err
 30265  	}
 30266  	c.urlParams_.Set("alt", alt)
 30267  	c.urlParams_.Set("prettyPrint", "false")
 30268  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:submitAnswerFeedback")
 30269  	urls += "?" + c.urlParams_.Encode()
 30270  	req, err := http.NewRequest("POST", urls, body)
 30271  	if err != nil {
 30272  		return nil, err
 30273  	}
 30274  	req.Header = reqHeaders
 30275  	googleapi.Expand(req.URL, map[string]string{
 30276  		"session": c.session,
 30277  	})
 30278  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30279  }
 30280  
 30281  // Do executes the "dialogflow.projects.locations.agents.sessions.submitAnswerFeedback" call.
 30282  // Any non-2xx status code is an error. Response headers are in either
 30283  // *GoogleCloudDialogflowCxV3beta1AnswerFeedback.ServerResponse.Header or (if a
 30284  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30285  // googleapi.IsNotModified to check whether the returned error was because
 30286  // http.StatusNotModified was returned.
 30287  func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AnswerFeedback, error) {
 30288  	gensupport.SetOptions(c.urlParams_, opts...)
 30289  	res, err := c.doRequest("json")
 30290  	if res != nil && res.StatusCode == http.StatusNotModified {
 30291  		if res.Body != nil {
 30292  			res.Body.Close()
 30293  		}
 30294  		return nil, gensupport.WrapError(&googleapi.Error{
 30295  			Code:   res.StatusCode,
 30296  			Header: res.Header,
 30297  		})
 30298  	}
 30299  	if err != nil {
 30300  		return nil, err
 30301  	}
 30302  	defer googleapi.CloseBody(res)
 30303  	if err := googleapi.CheckResponse(res); err != nil {
 30304  		return nil, gensupport.WrapError(err)
 30305  	}
 30306  	ret := &GoogleCloudDialogflowCxV3beta1AnswerFeedback{
 30307  		ServerResponse: googleapi.ServerResponse{
 30308  			Header:         res.Header,
 30309  			HTTPStatusCode: res.StatusCode,
 30310  		},
 30311  	}
 30312  	target := &ret
 30313  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30314  		return nil, err
 30315  	}
 30316  	return ret, nil
 30317  }
 30318  
 30319  type ProjectsLocationsAgentsSessionsEntityTypesCreateCall struct {
 30320  	s                                               *Service
 30321  	parent                                          string
 30322  	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
 30323  	urlParams_                                      gensupport.URLParams
 30324  	ctx_                                            context.Context
 30325  	header_                                         http.Header
 30326  }
 30327  
 30328  // Create: Creates a session entity type.
 30329  //
 30330  //   - parent: The session to create a session entity type for. Format:
 30331  //     `projects//locations//agents//sessions/` or
 30332  //     `projects//locations//agents//environments//sessions/`. If `Environment
 30333  //     ID` is not specified, we assume default 'draft' environment.
 30334  func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
 30335  	c := &ProjectsLocationsAgentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30336  	c.parent = parent
 30337  	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
 30338  	return c
 30339  }
 30340  
 30341  // Fields allows partial responses to be retrieved. See
 30342  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30343  // details.
 30344  func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
 30345  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30346  	return c
 30347  }
 30348  
 30349  // Context sets the context to be used in this call's Do method.
 30350  func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
 30351  	c.ctx_ = ctx
 30352  	return c
 30353  }
 30354  
 30355  // Header returns a http.Header that can be modified by the caller to add
 30356  // headers to the request.
 30357  func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Header() http.Header {
 30358  	if c.header_ == nil {
 30359  		c.header_ = make(http.Header)
 30360  	}
 30361  	return c.header_
 30362  }
 30363  
 30364  func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 30365  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30366  	var body io.Reader = nil
 30367  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
 30368  	if err != nil {
 30369  		return nil, err
 30370  	}
 30371  	c.urlParams_.Set("alt", alt)
 30372  	c.urlParams_.Set("prettyPrint", "false")
 30373  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
 30374  	urls += "?" + c.urlParams_.Encode()
 30375  	req, err := http.NewRequest("POST", urls, body)
 30376  	if err != nil {
 30377  		return nil, err
 30378  	}
 30379  	req.Header = reqHeaders
 30380  	googleapi.Expand(req.URL, map[string]string{
 30381  		"parent": c.parent,
 30382  	})
 30383  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30384  }
 30385  
 30386  // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.create" call.
 30387  // Any non-2xx status code is an error. Response headers are in either
 30388  // *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header or
 30389  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30390  // googleapi.IsNotModified to check whether the returned error was because
 30391  // http.StatusNotModified was returned.
 30392  func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
 30393  	gensupport.SetOptions(c.urlParams_, opts...)
 30394  	res, err := c.doRequest("json")
 30395  	if res != nil && res.StatusCode == http.StatusNotModified {
 30396  		if res.Body != nil {
 30397  			res.Body.Close()
 30398  		}
 30399  		return nil, gensupport.WrapError(&googleapi.Error{
 30400  			Code:   res.StatusCode,
 30401  			Header: res.Header,
 30402  		})
 30403  	}
 30404  	if err != nil {
 30405  		return nil, err
 30406  	}
 30407  	defer googleapi.CloseBody(res)
 30408  	if err := googleapi.CheckResponse(res); err != nil {
 30409  		return nil, gensupport.WrapError(err)
 30410  	}
 30411  	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
 30412  		ServerResponse: googleapi.ServerResponse{
 30413  			Header:         res.Header,
 30414  			HTTPStatusCode: res.StatusCode,
 30415  		},
 30416  	}
 30417  	target := &ret
 30418  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30419  		return nil, err
 30420  	}
 30421  	return ret, nil
 30422  }
 30423  
 30424  type ProjectsLocationsAgentsSessionsEntityTypesDeleteCall struct {
 30425  	s          *Service
 30426  	name       string
 30427  	urlParams_ gensupport.URLParams
 30428  	ctx_       context.Context
 30429  	header_    http.Header
 30430  }
 30431  
 30432  // Delete: Deletes the specified session entity type.
 30433  //
 30434  //   - name: The name of the session entity type to delete. Format:
 30435  //     `projects//locations//agents//sessions//entityTypes/` or
 30436  //     `projects//locations//agents//environments//sessions//entityTypes/`. If
 30437  //     `Environment ID` is not specified, we assume default 'draft' environment.
 30438  func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
 30439  	c := &ProjectsLocationsAgentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30440  	c.name = name
 30441  	return c
 30442  }
 30443  
 30444  // Fields allows partial responses to be retrieved. See
 30445  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30446  // details.
 30447  func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
 30448  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30449  	return c
 30450  }
 30451  
 30452  // Context sets the context to be used in this call's Do method.
 30453  func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
 30454  	c.ctx_ = ctx
 30455  	return c
 30456  }
 30457  
 30458  // Header returns a http.Header that can be modified by the caller to add
 30459  // headers to the request.
 30460  func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Header() http.Header {
 30461  	if c.header_ == nil {
 30462  		c.header_ = make(http.Header)
 30463  	}
 30464  	return c.header_
 30465  }
 30466  
 30467  func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 30468  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30469  	var body io.Reader = nil
 30470  	c.urlParams_.Set("alt", alt)
 30471  	c.urlParams_.Set("prettyPrint", "false")
 30472  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 30473  	urls += "?" + c.urlParams_.Encode()
 30474  	req, err := http.NewRequest("DELETE", urls, body)
 30475  	if err != nil {
 30476  		return nil, err
 30477  	}
 30478  	req.Header = reqHeaders
 30479  	googleapi.Expand(req.URL, map[string]string{
 30480  		"name": c.name,
 30481  	})
 30482  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30483  }
 30484  
 30485  // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.delete" call.
 30486  // Any non-2xx status code is an error. Response headers are in either
 30487  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 30488  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30489  // check whether the returned error was because http.StatusNotModified was
 30490  // returned.
 30491  func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 30492  	gensupport.SetOptions(c.urlParams_, opts...)
 30493  	res, err := c.doRequest("json")
 30494  	if res != nil && res.StatusCode == http.StatusNotModified {
 30495  		if res.Body != nil {
 30496  			res.Body.Close()
 30497  		}
 30498  		return nil, gensupport.WrapError(&googleapi.Error{
 30499  			Code:   res.StatusCode,
 30500  			Header: res.Header,
 30501  		})
 30502  	}
 30503  	if err != nil {
 30504  		return nil, err
 30505  	}
 30506  	defer googleapi.CloseBody(res)
 30507  	if err := googleapi.CheckResponse(res); err != nil {
 30508  		return nil, gensupport.WrapError(err)
 30509  	}
 30510  	ret := &GoogleProtobufEmpty{
 30511  		ServerResponse: googleapi.ServerResponse{
 30512  			Header:         res.Header,
 30513  			HTTPStatusCode: res.StatusCode,
 30514  		},
 30515  	}
 30516  	target := &ret
 30517  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30518  		return nil, err
 30519  	}
 30520  	return ret, nil
 30521  }
 30522  
 30523  type ProjectsLocationsAgentsSessionsEntityTypesGetCall struct {
 30524  	s            *Service
 30525  	name         string
 30526  	urlParams_   gensupport.URLParams
 30527  	ifNoneMatch_ string
 30528  	ctx_         context.Context
 30529  	header_      http.Header
 30530  }
 30531  
 30532  // Get: Retrieves the specified session entity type.
 30533  //
 30534  //   - name: The name of the session entity type. Format:
 30535  //     `projects//locations//agents//sessions//entityTypes/` or
 30536  //     `projects//locations//agents//environments//sessions//entityTypes/`. If
 30537  //     `Environment ID` is not specified, we assume default 'draft' environment.
 30538  func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
 30539  	c := &ProjectsLocationsAgentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30540  	c.name = name
 30541  	return c
 30542  }
 30543  
 30544  // Fields allows partial responses to be retrieved. See
 30545  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30546  // details.
 30547  func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
 30548  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30549  	return c
 30550  }
 30551  
 30552  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30553  // object's ETag matches the given value. This is useful for getting updates
 30554  // only after the object has changed since the last request.
 30555  func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
 30556  	c.ifNoneMatch_ = entityTag
 30557  	return c
 30558  }
 30559  
 30560  // Context sets the context to be used in this call's Do method.
 30561  func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
 30562  	c.ctx_ = ctx
 30563  	return c
 30564  }
 30565  
 30566  // Header returns a http.Header that can be modified by the caller to add
 30567  // headers to the request.
 30568  func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Header() http.Header {
 30569  	if c.header_ == nil {
 30570  		c.header_ = make(http.Header)
 30571  	}
 30572  	return c.header_
 30573  }
 30574  
 30575  func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 30576  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30577  	if c.ifNoneMatch_ != "" {
 30578  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30579  	}
 30580  	var body io.Reader = nil
 30581  	c.urlParams_.Set("alt", alt)
 30582  	c.urlParams_.Set("prettyPrint", "false")
 30583  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 30584  	urls += "?" + c.urlParams_.Encode()
 30585  	req, err := http.NewRequest("GET", urls, body)
 30586  	if err != nil {
 30587  		return nil, err
 30588  	}
 30589  	req.Header = reqHeaders
 30590  	googleapi.Expand(req.URL, map[string]string{
 30591  		"name": c.name,
 30592  	})
 30593  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30594  }
 30595  
 30596  // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.get" call.
 30597  // Any non-2xx status code is an error. Response headers are in either
 30598  // *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header or
 30599  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30600  // googleapi.IsNotModified to check whether the returned error was because
 30601  // http.StatusNotModified was returned.
 30602  func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
 30603  	gensupport.SetOptions(c.urlParams_, opts...)
 30604  	res, err := c.doRequest("json")
 30605  	if res != nil && res.StatusCode == http.StatusNotModified {
 30606  		if res.Body != nil {
 30607  			res.Body.Close()
 30608  		}
 30609  		return nil, gensupport.WrapError(&googleapi.Error{
 30610  			Code:   res.StatusCode,
 30611  			Header: res.Header,
 30612  		})
 30613  	}
 30614  	if err != nil {
 30615  		return nil, err
 30616  	}
 30617  	defer googleapi.CloseBody(res)
 30618  	if err := googleapi.CheckResponse(res); err != nil {
 30619  		return nil, gensupport.WrapError(err)
 30620  	}
 30621  	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
 30622  		ServerResponse: googleapi.ServerResponse{
 30623  			Header:         res.Header,
 30624  			HTTPStatusCode: res.StatusCode,
 30625  		},
 30626  	}
 30627  	target := &ret
 30628  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30629  		return nil, err
 30630  	}
 30631  	return ret, nil
 30632  }
 30633  
 30634  type ProjectsLocationsAgentsSessionsEntityTypesListCall struct {
 30635  	s            *Service
 30636  	parent       string
 30637  	urlParams_   gensupport.URLParams
 30638  	ifNoneMatch_ string
 30639  	ctx_         context.Context
 30640  	header_      http.Header
 30641  }
 30642  
 30643  // List: Returns the list of all session entity types in the specified session.
 30644  //
 30645  //   - parent: The session to list all session entity types from. Format:
 30646  //     `projects//locations//agents//sessions/` or
 30647  //     `projects//locations//agents//environments//sessions/`. If `Environment
 30648  //     ID` is not specified, we assume default 'draft' environment.
 30649  func (r *ProjectsLocationsAgentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
 30650  	c := &ProjectsLocationsAgentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30651  	c.parent = parent
 30652  	return c
 30653  }
 30654  
 30655  // PageSize sets the optional parameter "pageSize": The maximum number of items
 30656  // to return in a single page. By default 100 and at most 1000.
 30657  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
 30658  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30659  	return c
 30660  }
 30661  
 30662  // PageToken sets the optional parameter "pageToken": The next_page_token value
 30663  // returned from a previous list request.
 30664  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
 30665  	c.urlParams_.Set("pageToken", pageToken)
 30666  	return c
 30667  }
 30668  
 30669  // Fields allows partial responses to be retrieved. See
 30670  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30671  // details.
 30672  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
 30673  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30674  	return c
 30675  }
 30676  
 30677  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30678  // object's ETag matches the given value. This is useful for getting updates
 30679  // only after the object has changed since the last request.
 30680  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
 30681  	c.ifNoneMatch_ = entityTag
 30682  	return c
 30683  }
 30684  
 30685  // Context sets the context to be used in this call's Do method.
 30686  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
 30687  	c.ctx_ = ctx
 30688  	return c
 30689  }
 30690  
 30691  // Header returns a http.Header that can be modified by the caller to add
 30692  // headers to the request.
 30693  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Header() http.Header {
 30694  	if c.header_ == nil {
 30695  		c.header_ = make(http.Header)
 30696  	}
 30697  	return c.header_
 30698  }
 30699  
 30700  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 30701  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30702  	if c.ifNoneMatch_ != "" {
 30703  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30704  	}
 30705  	var body io.Reader = nil
 30706  	c.urlParams_.Set("alt", alt)
 30707  	c.urlParams_.Set("prettyPrint", "false")
 30708  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
 30709  	urls += "?" + c.urlParams_.Encode()
 30710  	req, err := http.NewRequest("GET", urls, body)
 30711  	if err != nil {
 30712  		return nil, err
 30713  	}
 30714  	req.Header = reqHeaders
 30715  	googleapi.Expand(req.URL, map[string]string{
 30716  		"parent": c.parent,
 30717  	})
 30718  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30719  }
 30720  
 30721  // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.list" call.
 30722  // Any non-2xx status code is an error. Response headers are in either
 30723  // *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse.ServerResponse.
 30724  // Header or (if a response was returned at all) in
 30725  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 30726  // whether the returned error was because http.StatusNotModified was returned.
 30727  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse, error) {
 30728  	gensupport.SetOptions(c.urlParams_, opts...)
 30729  	res, err := c.doRequest("json")
 30730  	if res != nil && res.StatusCode == http.StatusNotModified {
 30731  		if res.Body != nil {
 30732  			res.Body.Close()
 30733  		}
 30734  		return nil, gensupport.WrapError(&googleapi.Error{
 30735  			Code:   res.StatusCode,
 30736  			Header: res.Header,
 30737  		})
 30738  	}
 30739  	if err != nil {
 30740  		return nil, err
 30741  	}
 30742  	defer googleapi.CloseBody(res)
 30743  	if err := googleapi.CheckResponse(res); err != nil {
 30744  		return nil, gensupport.WrapError(err)
 30745  	}
 30746  	ret := &GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse{
 30747  		ServerResponse: googleapi.ServerResponse{
 30748  			Header:         res.Header,
 30749  			HTTPStatusCode: res.StatusCode,
 30750  		},
 30751  	}
 30752  	target := &ret
 30753  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30754  		return nil, err
 30755  	}
 30756  	return ret, nil
 30757  }
 30758  
 30759  // Pages invokes f for each page of results.
 30760  // A non-nil error returned from f will halt the iteration.
 30761  // The provided context supersedes any context provided to the Context method.
 30762  func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) error) error {
 30763  	c.ctx_ = ctx
 30764  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30765  	for {
 30766  		x, err := c.Do()
 30767  		if err != nil {
 30768  			return err
 30769  		}
 30770  		if err := f(x); err != nil {
 30771  			return err
 30772  		}
 30773  		if x.NextPageToken == "" {
 30774  			return nil
 30775  		}
 30776  		c.PageToken(x.NextPageToken)
 30777  	}
 30778  }
 30779  
 30780  type ProjectsLocationsAgentsSessionsEntityTypesPatchCall struct {
 30781  	s                                               *Service
 30782  	nameid                                          string
 30783  	googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
 30784  	urlParams_                                      gensupport.URLParams
 30785  	ctx_                                            context.Context
 30786  	header_                                         http.Header
 30787  }
 30788  
 30789  // Patch: Updates the specified session entity type.
 30790  //
 30791  //   - name: The unique identifier of the session entity type. Format:
 30792  //     `projects//locations//agents//sessions//entityTypes/` or
 30793  //     `projects//locations//agents//environments//sessions//entityTypes/`. If
 30794  //     `Environment ID` is not specified, we assume default 'draft' environment.
 30795  func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
 30796  	c := &ProjectsLocationsAgentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30797  	c.nameid = nameid
 30798  	c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
 30799  	return c
 30800  }
 30801  
 30802  // UpdateMask sets the optional parameter "updateMask": The mask to control
 30803  // which fields get updated.
 30804  func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
 30805  	c.urlParams_.Set("updateMask", updateMask)
 30806  	return c
 30807  }
 30808  
 30809  // Fields allows partial responses to be retrieved. See
 30810  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30811  // details.
 30812  func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
 30813  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30814  	return c
 30815  }
 30816  
 30817  // Context sets the context to be used in this call's Do method.
 30818  func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
 30819  	c.ctx_ = ctx
 30820  	return c
 30821  }
 30822  
 30823  // Header returns a http.Header that can be modified by the caller to add
 30824  // headers to the request.
 30825  func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Header() http.Header {
 30826  	if c.header_ == nil {
 30827  		c.header_ = make(http.Header)
 30828  	}
 30829  	return c.header_
 30830  }
 30831  
 30832  func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 30833  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30834  	var body io.Reader = nil
 30835  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
 30836  	if err != nil {
 30837  		return nil, err
 30838  	}
 30839  	c.urlParams_.Set("alt", alt)
 30840  	c.urlParams_.Set("prettyPrint", "false")
 30841  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 30842  	urls += "?" + c.urlParams_.Encode()
 30843  	req, err := http.NewRequest("PATCH", 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.nameid,
 30850  	})
 30851  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30852  }
 30853  
 30854  // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.patch" call.
 30855  // Any non-2xx status code is an error. Response headers are in either
 30856  // *GoogleCloudDialogflowCxV3beta1SessionEntityType.ServerResponse.Header or
 30857  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30858  // googleapi.IsNotModified to check whether the returned error was because
 30859  // http.StatusNotModified was returned.
 30860  func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
 30861  	gensupport.SetOptions(c.urlParams_, opts...)
 30862  	res, err := c.doRequest("json")
 30863  	if res != nil && res.StatusCode == http.StatusNotModified {
 30864  		if res.Body != nil {
 30865  			res.Body.Close()
 30866  		}
 30867  		return nil, gensupport.WrapError(&googleapi.Error{
 30868  			Code:   res.StatusCode,
 30869  			Header: res.Header,
 30870  		})
 30871  	}
 30872  	if err != nil {
 30873  		return nil, err
 30874  	}
 30875  	defer googleapi.CloseBody(res)
 30876  	if err := googleapi.CheckResponse(res); err != nil {
 30877  		return nil, gensupport.WrapError(err)
 30878  	}
 30879  	ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
 30880  		ServerResponse: googleapi.ServerResponse{
 30881  			Header:         res.Header,
 30882  			HTTPStatusCode: res.StatusCode,
 30883  		},
 30884  	}
 30885  	target := &ret
 30886  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30887  		return nil, err
 30888  	}
 30889  	return ret, nil
 30890  }
 30891  
 30892  type ProjectsLocationsAgentsTestCasesBatchDeleteCall struct {
 30893  	s                                                         *Service
 30894  	parent                                                    string
 30895  	googleclouddialogflowcxv3beta1batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest
 30896  	urlParams_                                                gensupport.URLParams
 30897  	ctx_                                                      context.Context
 30898  	header_                                                   http.Header
 30899  }
 30900  
 30901  // BatchDelete: Batch deletes test cases.
 30902  //
 30903  //   - parent: The agent to delete test cases from. Format:
 30904  //     `projects//locations//agents/`.
 30905  func (r *ProjectsLocationsAgentsTestCasesService) BatchDelete(parent string, googleclouddialogflowcxv3beta1batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
 30906  	c := &ProjectsLocationsAgentsTestCasesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30907  	c.parent = parent
 30908  	c.googleclouddialogflowcxv3beta1batchdeletetestcasesrequest = googleclouddialogflowcxv3beta1batchdeletetestcasesrequest
 30909  	return c
 30910  }
 30911  
 30912  // Fields allows partial responses to be retrieved. See
 30913  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30914  // details.
 30915  func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
 30916  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30917  	return c
 30918  }
 30919  
 30920  // Context sets the context to be used in this call's Do method.
 30921  func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
 30922  	c.ctx_ = ctx
 30923  	return c
 30924  }
 30925  
 30926  // Header returns a http.Header that can be modified by the caller to add
 30927  // headers to the request.
 30928  func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Header() http.Header {
 30929  	if c.header_ == nil {
 30930  		c.header_ = make(http.Header)
 30931  	}
 30932  	return c.header_
 30933  }
 30934  
 30935  func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 30936  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30937  	var body io.Reader = nil
 30938  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1batchdeletetestcasesrequest)
 30939  	if err != nil {
 30940  		return nil, err
 30941  	}
 30942  	c.urlParams_.Set("alt", alt)
 30943  	c.urlParams_.Set("prettyPrint", "false")
 30944  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:batchDelete")
 30945  	urls += "?" + c.urlParams_.Encode()
 30946  	req, err := http.NewRequest("POST", urls, body)
 30947  	if err != nil {
 30948  		return nil, err
 30949  	}
 30950  	req.Header = reqHeaders
 30951  	googleapi.Expand(req.URL, map[string]string{
 30952  		"parent": c.parent,
 30953  	})
 30954  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30955  }
 30956  
 30957  // Do executes the "dialogflow.projects.locations.agents.testCases.batchDelete" call.
 30958  // Any non-2xx status code is an error. Response headers are in either
 30959  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 30960  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30961  // check whether the returned error was because http.StatusNotModified was
 30962  // returned.
 30963  func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 30964  	gensupport.SetOptions(c.urlParams_, opts...)
 30965  	res, err := c.doRequest("json")
 30966  	if res != nil && res.StatusCode == http.StatusNotModified {
 30967  		if res.Body != nil {
 30968  			res.Body.Close()
 30969  		}
 30970  		return nil, gensupport.WrapError(&googleapi.Error{
 30971  			Code:   res.StatusCode,
 30972  			Header: res.Header,
 30973  		})
 30974  	}
 30975  	if err != nil {
 30976  		return nil, err
 30977  	}
 30978  	defer googleapi.CloseBody(res)
 30979  	if err := googleapi.CheckResponse(res); err != nil {
 30980  		return nil, gensupport.WrapError(err)
 30981  	}
 30982  	ret := &GoogleProtobufEmpty{
 30983  		ServerResponse: googleapi.ServerResponse{
 30984  			Header:         res.Header,
 30985  			HTTPStatusCode: res.StatusCode,
 30986  		},
 30987  	}
 30988  	target := &ret
 30989  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30990  		return nil, err
 30991  	}
 30992  	return ret, nil
 30993  }
 30994  
 30995  type ProjectsLocationsAgentsTestCasesBatchRunCall struct {
 30996  	s                                                      *Service
 30997  	parent                                                 string
 30998  	googleclouddialogflowcxv3beta1batchruntestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest
 30999  	urlParams_                                             gensupport.URLParams
 31000  	ctx_                                                   context.Context
 31001  	header_                                                http.Header
 31002  }
 31003  
 31004  // BatchRun: Kicks off a batch run of test cases. This method is a long-running
 31005  // operation
 31006  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 31007  // The returned `Operation` type has the following method-specific fields: -
 31008  // `metadata`: BatchRunTestCasesMetadata - `response`:
 31009  // BatchRunTestCasesResponse
 31010  //
 31011  // - parent: Agent name. Format: `projects//locations//agents/ `.
 31012  func (r *ProjectsLocationsAgentsTestCasesService) BatchRun(parent string, googleclouddialogflowcxv3beta1batchruntestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchRunCall {
 31013  	c := &ProjectsLocationsAgentsTestCasesBatchRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31014  	c.parent = parent
 31015  	c.googleclouddialogflowcxv3beta1batchruntestcasesrequest = googleclouddialogflowcxv3beta1batchruntestcasesrequest
 31016  	return c
 31017  }
 31018  
 31019  // Fields allows partial responses to be retrieved. See
 31020  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31021  // details.
 31022  func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchRunCall {
 31023  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31024  	return c
 31025  }
 31026  
 31027  // Context sets the context to be used in this call's Do method.
 31028  func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchRunCall {
 31029  	c.ctx_ = ctx
 31030  	return c
 31031  }
 31032  
 31033  // Header returns a http.Header that can be modified by the caller to add
 31034  // headers to the request.
 31035  func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Header() http.Header {
 31036  	if c.header_ == nil {
 31037  		c.header_ = make(http.Header)
 31038  	}
 31039  	return c.header_
 31040  }
 31041  
 31042  func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) doRequest(alt string) (*http.Response, error) {
 31043  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31044  	var body io.Reader = nil
 31045  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1batchruntestcasesrequest)
 31046  	if err != nil {
 31047  		return nil, err
 31048  	}
 31049  	c.urlParams_.Set("alt", alt)
 31050  	c.urlParams_.Set("prettyPrint", "false")
 31051  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:batchRun")
 31052  	urls += "?" + c.urlParams_.Encode()
 31053  	req, err := http.NewRequest("POST", urls, body)
 31054  	if err != nil {
 31055  		return nil, err
 31056  	}
 31057  	req.Header = reqHeaders
 31058  	googleapi.Expand(req.URL, map[string]string{
 31059  		"parent": c.parent,
 31060  	})
 31061  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31062  }
 31063  
 31064  // Do executes the "dialogflow.projects.locations.agents.testCases.batchRun" call.
 31065  // Any non-2xx status code is an error. Response headers are in either
 31066  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31067  // returned at all) in error.(*googleapi.Error).Header. Use
 31068  // googleapi.IsNotModified to check whether the returned error was because
 31069  // http.StatusNotModified was returned.
 31070  func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 31071  	gensupport.SetOptions(c.urlParams_, opts...)
 31072  	res, err := c.doRequest("json")
 31073  	if res != nil && res.StatusCode == http.StatusNotModified {
 31074  		if res.Body != nil {
 31075  			res.Body.Close()
 31076  		}
 31077  		return nil, gensupport.WrapError(&googleapi.Error{
 31078  			Code:   res.StatusCode,
 31079  			Header: res.Header,
 31080  		})
 31081  	}
 31082  	if err != nil {
 31083  		return nil, err
 31084  	}
 31085  	defer googleapi.CloseBody(res)
 31086  	if err := googleapi.CheckResponse(res); err != nil {
 31087  		return nil, gensupport.WrapError(err)
 31088  	}
 31089  	ret := &GoogleLongrunningOperation{
 31090  		ServerResponse: googleapi.ServerResponse{
 31091  			Header:         res.Header,
 31092  			HTTPStatusCode: res.StatusCode,
 31093  		},
 31094  	}
 31095  	target := &ret
 31096  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31097  		return nil, err
 31098  	}
 31099  	return ret, nil
 31100  }
 31101  
 31102  type ProjectsLocationsAgentsTestCasesCalculateCoverageCall struct {
 31103  	s            *Service
 31104  	agent        string
 31105  	urlParams_   gensupport.URLParams
 31106  	ifNoneMatch_ string
 31107  	ctx_         context.Context
 31108  	header_      http.Header
 31109  }
 31110  
 31111  // CalculateCoverage: Calculates the test coverage for an agent.
 31112  //
 31113  //   - agent: The agent to calculate coverage for. Format:
 31114  //     `projects//locations//agents/`.
 31115  func (r *ProjectsLocationsAgentsTestCasesService) CalculateCoverage(agent string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
 31116  	c := &ProjectsLocationsAgentsTestCasesCalculateCoverageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31117  	c.agent = agent
 31118  	return c
 31119  }
 31120  
 31121  // Type sets the optional parameter "type": Required. The type of coverage
 31122  // requested.
 31123  //
 31124  // Possible values:
 31125  //
 31126  //	"COVERAGE_TYPE_UNSPECIFIED" - Should never be used.
 31127  //	"INTENT" - Intent coverage.
 31128  //	"PAGE_TRANSITION" - Page transition coverage.
 31129  //	"TRANSITION_ROUTE_GROUP" - Transition route group coverage.
 31130  func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Type(type_ string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
 31131  	c.urlParams_.Set("type", type_)
 31132  	return c
 31133  }
 31134  
 31135  // Fields allows partial responses to be retrieved. See
 31136  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31137  // details.
 31138  func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
 31139  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31140  	return c
 31141  }
 31142  
 31143  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31144  // object's ETag matches the given value. This is useful for getting updates
 31145  // only after the object has changed since the last request.
 31146  func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
 31147  	c.ifNoneMatch_ = entityTag
 31148  	return c
 31149  }
 31150  
 31151  // Context sets the context to be used in this call's Do method.
 31152  func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
 31153  	c.ctx_ = ctx
 31154  	return c
 31155  }
 31156  
 31157  // Header returns a http.Header that can be modified by the caller to add
 31158  // headers to the request.
 31159  func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Header() http.Header {
 31160  	if c.header_ == nil {
 31161  		c.header_ = make(http.Header)
 31162  	}
 31163  	return c.header_
 31164  }
 31165  
 31166  func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) doRequest(alt string) (*http.Response, error) {
 31167  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31168  	if c.ifNoneMatch_ != "" {
 31169  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31170  	}
 31171  	var body io.Reader = nil
 31172  	c.urlParams_.Set("alt", alt)
 31173  	c.urlParams_.Set("prettyPrint", "false")
 31174  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+agent}/testCases:calculateCoverage")
 31175  	urls += "?" + c.urlParams_.Encode()
 31176  	req, err := http.NewRequest("GET", urls, body)
 31177  	if err != nil {
 31178  		return nil, err
 31179  	}
 31180  	req.Header = reqHeaders
 31181  	googleapi.Expand(req.URL, map[string]string{
 31182  		"agent": c.agent,
 31183  	})
 31184  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31185  }
 31186  
 31187  // Do executes the "dialogflow.projects.locations.agents.testCases.calculateCoverage" call.
 31188  // Any non-2xx status code is an error. Response headers are in either
 31189  // *GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse.ServerResponse.Heade
 31190  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31191  // Use googleapi.IsNotModified to check whether the returned error was because
 31192  // http.StatusNotModified was returned.
 31193  func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse, error) {
 31194  	gensupport.SetOptions(c.urlParams_, opts...)
 31195  	res, err := c.doRequest("json")
 31196  	if res != nil && res.StatusCode == http.StatusNotModified {
 31197  		if res.Body != nil {
 31198  			res.Body.Close()
 31199  		}
 31200  		return nil, gensupport.WrapError(&googleapi.Error{
 31201  			Code:   res.StatusCode,
 31202  			Header: res.Header,
 31203  		})
 31204  	}
 31205  	if err != nil {
 31206  		return nil, err
 31207  	}
 31208  	defer googleapi.CloseBody(res)
 31209  	if err := googleapi.CheckResponse(res); err != nil {
 31210  		return nil, gensupport.WrapError(err)
 31211  	}
 31212  	ret := &GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse{
 31213  		ServerResponse: googleapi.ServerResponse{
 31214  			Header:         res.Header,
 31215  			HTTPStatusCode: res.StatusCode,
 31216  		},
 31217  	}
 31218  	target := &ret
 31219  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31220  		return nil, err
 31221  	}
 31222  	return ret, nil
 31223  }
 31224  
 31225  type ProjectsLocationsAgentsTestCasesCreateCall struct {
 31226  	s                                      *Service
 31227  	parent                                 string
 31228  	googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase
 31229  	urlParams_                             gensupport.URLParams
 31230  	ctx_                                   context.Context
 31231  	header_                                http.Header
 31232  }
 31233  
 31234  // Create: Creates a test case for the given agent.
 31235  //
 31236  //   - parent: The agent to create the test case for. Format:
 31237  //     `projects//locations//agents/`.
 31238  func (r *ProjectsLocationsAgentsTestCasesService) Create(parent string, googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase) *ProjectsLocationsAgentsTestCasesCreateCall {
 31239  	c := &ProjectsLocationsAgentsTestCasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31240  	c.parent = parent
 31241  	c.googleclouddialogflowcxv3beta1testcase = googleclouddialogflowcxv3beta1testcase
 31242  	return c
 31243  }
 31244  
 31245  // Fields allows partial responses to be retrieved. See
 31246  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31247  // details.
 31248  func (c *ProjectsLocationsAgentsTestCasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCreateCall {
 31249  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31250  	return c
 31251  }
 31252  
 31253  // Context sets the context to be used in this call's Do method.
 31254  func (c *ProjectsLocationsAgentsTestCasesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCreateCall {
 31255  	c.ctx_ = ctx
 31256  	return c
 31257  }
 31258  
 31259  // Header returns a http.Header that can be modified by the caller to add
 31260  // headers to the request.
 31261  func (c *ProjectsLocationsAgentsTestCasesCreateCall) Header() http.Header {
 31262  	if c.header_ == nil {
 31263  		c.header_ = make(http.Header)
 31264  	}
 31265  	return c.header_
 31266  }
 31267  
 31268  func (c *ProjectsLocationsAgentsTestCasesCreateCall) doRequest(alt string) (*http.Response, error) {
 31269  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31270  	var body io.Reader = nil
 31271  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1testcase)
 31272  	if err != nil {
 31273  		return nil, err
 31274  	}
 31275  	c.urlParams_.Set("alt", alt)
 31276  	c.urlParams_.Set("prettyPrint", "false")
 31277  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases")
 31278  	urls += "?" + c.urlParams_.Encode()
 31279  	req, err := http.NewRequest("POST", urls, body)
 31280  	if err != nil {
 31281  		return nil, err
 31282  	}
 31283  	req.Header = reqHeaders
 31284  	googleapi.Expand(req.URL, map[string]string{
 31285  		"parent": c.parent,
 31286  	})
 31287  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31288  }
 31289  
 31290  // Do executes the "dialogflow.projects.locations.agents.testCases.create" call.
 31291  // Any non-2xx status code is an error. Response headers are in either
 31292  // *GoogleCloudDialogflowCxV3beta1TestCase.ServerResponse.Header or (if a
 31293  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31294  // googleapi.IsNotModified to check whether the returned error was because
 31295  // http.StatusNotModified was returned.
 31296  func (c *ProjectsLocationsAgentsTestCasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
 31297  	gensupport.SetOptions(c.urlParams_, opts...)
 31298  	res, err := c.doRequest("json")
 31299  	if res != nil && res.StatusCode == http.StatusNotModified {
 31300  		if res.Body != nil {
 31301  			res.Body.Close()
 31302  		}
 31303  		return nil, gensupport.WrapError(&googleapi.Error{
 31304  			Code:   res.StatusCode,
 31305  			Header: res.Header,
 31306  		})
 31307  	}
 31308  	if err != nil {
 31309  		return nil, err
 31310  	}
 31311  	defer googleapi.CloseBody(res)
 31312  	if err := googleapi.CheckResponse(res); err != nil {
 31313  		return nil, gensupport.WrapError(err)
 31314  	}
 31315  	ret := &GoogleCloudDialogflowCxV3beta1TestCase{
 31316  		ServerResponse: googleapi.ServerResponse{
 31317  			Header:         res.Header,
 31318  			HTTPStatusCode: res.StatusCode,
 31319  		},
 31320  	}
 31321  	target := &ret
 31322  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31323  		return nil, err
 31324  	}
 31325  	return ret, nil
 31326  }
 31327  
 31328  type ProjectsLocationsAgentsTestCasesExportCall struct {
 31329  	s                                                    *Service
 31330  	parent                                               string
 31331  	googleclouddialogflowcxv3beta1exporttestcasesrequest *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest
 31332  	urlParams_                                           gensupport.URLParams
 31333  	ctx_                                                 context.Context
 31334  	header_                                              http.Header
 31335  }
 31336  
 31337  // Export: Exports the test cases under the agent to a Cloud Storage bucket or
 31338  // a local file. Filter can be applied to export a subset of test cases. This
 31339  // method is a long-running operation
 31340  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 31341  // The returned `Operation` type has the following method-specific fields: -
 31342  // `metadata`: ExportTestCasesMetadata - `response`: ExportTestCasesResponse
 31343  //
 31344  //   - parent: The agent where to export test cases from. Format:
 31345  //     `projects//locations//agents/`.
 31346  func (r *ProjectsLocationsAgentsTestCasesService) Export(parent string, googleclouddialogflowcxv3beta1exporttestcasesrequest *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest) *ProjectsLocationsAgentsTestCasesExportCall {
 31347  	c := &ProjectsLocationsAgentsTestCasesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31348  	c.parent = parent
 31349  	c.googleclouddialogflowcxv3beta1exporttestcasesrequest = googleclouddialogflowcxv3beta1exporttestcasesrequest
 31350  	return c
 31351  }
 31352  
 31353  // Fields allows partial responses to be retrieved. See
 31354  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31355  // details.
 31356  func (c *ProjectsLocationsAgentsTestCasesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesExportCall {
 31357  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31358  	return c
 31359  }
 31360  
 31361  // Context sets the context to be used in this call's Do method.
 31362  func (c *ProjectsLocationsAgentsTestCasesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesExportCall {
 31363  	c.ctx_ = ctx
 31364  	return c
 31365  }
 31366  
 31367  // Header returns a http.Header that can be modified by the caller to add
 31368  // headers to the request.
 31369  func (c *ProjectsLocationsAgentsTestCasesExportCall) Header() http.Header {
 31370  	if c.header_ == nil {
 31371  		c.header_ = make(http.Header)
 31372  	}
 31373  	return c.header_
 31374  }
 31375  
 31376  func (c *ProjectsLocationsAgentsTestCasesExportCall) doRequest(alt string) (*http.Response, error) {
 31377  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31378  	var body io.Reader = nil
 31379  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exporttestcasesrequest)
 31380  	if err != nil {
 31381  		return nil, err
 31382  	}
 31383  	c.urlParams_.Set("alt", alt)
 31384  	c.urlParams_.Set("prettyPrint", "false")
 31385  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:export")
 31386  	urls += "?" + c.urlParams_.Encode()
 31387  	req, err := http.NewRequest("POST", urls, body)
 31388  	if err != nil {
 31389  		return nil, err
 31390  	}
 31391  	req.Header = reqHeaders
 31392  	googleapi.Expand(req.URL, map[string]string{
 31393  		"parent": c.parent,
 31394  	})
 31395  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31396  }
 31397  
 31398  // Do executes the "dialogflow.projects.locations.agents.testCases.export" call.
 31399  // Any non-2xx status code is an error. Response headers are in either
 31400  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31401  // returned at all) in error.(*googleapi.Error).Header. Use
 31402  // googleapi.IsNotModified to check whether the returned error was because
 31403  // http.StatusNotModified was returned.
 31404  func (c *ProjectsLocationsAgentsTestCasesExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 31405  	gensupport.SetOptions(c.urlParams_, opts...)
 31406  	res, err := c.doRequest("json")
 31407  	if res != nil && res.StatusCode == http.StatusNotModified {
 31408  		if res.Body != nil {
 31409  			res.Body.Close()
 31410  		}
 31411  		return nil, gensupport.WrapError(&googleapi.Error{
 31412  			Code:   res.StatusCode,
 31413  			Header: res.Header,
 31414  		})
 31415  	}
 31416  	if err != nil {
 31417  		return nil, err
 31418  	}
 31419  	defer googleapi.CloseBody(res)
 31420  	if err := googleapi.CheckResponse(res); err != nil {
 31421  		return nil, gensupport.WrapError(err)
 31422  	}
 31423  	ret := &GoogleLongrunningOperation{
 31424  		ServerResponse: googleapi.ServerResponse{
 31425  			Header:         res.Header,
 31426  			HTTPStatusCode: res.StatusCode,
 31427  		},
 31428  	}
 31429  	target := &ret
 31430  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31431  		return nil, err
 31432  	}
 31433  	return ret, nil
 31434  }
 31435  
 31436  type ProjectsLocationsAgentsTestCasesGetCall struct {
 31437  	s            *Service
 31438  	name         string
 31439  	urlParams_   gensupport.URLParams
 31440  	ifNoneMatch_ string
 31441  	ctx_         context.Context
 31442  	header_      http.Header
 31443  }
 31444  
 31445  // Get: Gets a test case.
 31446  //
 31447  //   - name: The name of the testcase. Format:
 31448  //     `projects//locations//agents//testCases/`.
 31449  func (r *ProjectsLocationsAgentsTestCasesService) Get(name string) *ProjectsLocationsAgentsTestCasesGetCall {
 31450  	c := &ProjectsLocationsAgentsTestCasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31451  	c.name = name
 31452  	return c
 31453  }
 31454  
 31455  // Fields allows partial responses to be retrieved. See
 31456  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31457  // details.
 31458  func (c *ProjectsLocationsAgentsTestCasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesGetCall {
 31459  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31460  	return c
 31461  }
 31462  
 31463  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31464  // object's ETag matches the given value. This is useful for getting updates
 31465  // only after the object has changed since the last request.
 31466  func (c *ProjectsLocationsAgentsTestCasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesGetCall {
 31467  	c.ifNoneMatch_ = entityTag
 31468  	return c
 31469  }
 31470  
 31471  // Context sets the context to be used in this call's Do method.
 31472  func (c *ProjectsLocationsAgentsTestCasesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesGetCall {
 31473  	c.ctx_ = ctx
 31474  	return c
 31475  }
 31476  
 31477  // Header returns a http.Header that can be modified by the caller to add
 31478  // headers to the request.
 31479  func (c *ProjectsLocationsAgentsTestCasesGetCall) Header() http.Header {
 31480  	if c.header_ == nil {
 31481  		c.header_ = make(http.Header)
 31482  	}
 31483  	return c.header_
 31484  }
 31485  
 31486  func (c *ProjectsLocationsAgentsTestCasesGetCall) doRequest(alt string) (*http.Response, error) {
 31487  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31488  	if c.ifNoneMatch_ != "" {
 31489  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31490  	}
 31491  	var body io.Reader = nil
 31492  	c.urlParams_.Set("alt", alt)
 31493  	c.urlParams_.Set("prettyPrint", "false")
 31494  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 31495  	urls += "?" + c.urlParams_.Encode()
 31496  	req, err := http.NewRequest("GET", urls, body)
 31497  	if err != nil {
 31498  		return nil, err
 31499  	}
 31500  	req.Header = reqHeaders
 31501  	googleapi.Expand(req.URL, map[string]string{
 31502  		"name": c.name,
 31503  	})
 31504  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31505  }
 31506  
 31507  // Do executes the "dialogflow.projects.locations.agents.testCases.get" call.
 31508  // Any non-2xx status code is an error. Response headers are in either
 31509  // *GoogleCloudDialogflowCxV3beta1TestCase.ServerResponse.Header or (if a
 31510  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31511  // googleapi.IsNotModified to check whether the returned error was because
 31512  // http.StatusNotModified was returned.
 31513  func (c *ProjectsLocationsAgentsTestCasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
 31514  	gensupport.SetOptions(c.urlParams_, opts...)
 31515  	res, err := c.doRequest("json")
 31516  	if res != nil && res.StatusCode == http.StatusNotModified {
 31517  		if res.Body != nil {
 31518  			res.Body.Close()
 31519  		}
 31520  		return nil, gensupport.WrapError(&googleapi.Error{
 31521  			Code:   res.StatusCode,
 31522  			Header: res.Header,
 31523  		})
 31524  	}
 31525  	if err != nil {
 31526  		return nil, err
 31527  	}
 31528  	defer googleapi.CloseBody(res)
 31529  	if err := googleapi.CheckResponse(res); err != nil {
 31530  		return nil, gensupport.WrapError(err)
 31531  	}
 31532  	ret := &GoogleCloudDialogflowCxV3beta1TestCase{
 31533  		ServerResponse: googleapi.ServerResponse{
 31534  			Header:         res.Header,
 31535  			HTTPStatusCode: res.StatusCode,
 31536  		},
 31537  	}
 31538  	target := &ret
 31539  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31540  		return nil, err
 31541  	}
 31542  	return ret, nil
 31543  }
 31544  
 31545  type ProjectsLocationsAgentsTestCasesImportCall struct {
 31546  	s                                                    *Service
 31547  	parent                                               string
 31548  	googleclouddialogflowcxv3beta1importtestcasesrequest *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest
 31549  	urlParams_                                           gensupport.URLParams
 31550  	ctx_                                                 context.Context
 31551  	header_                                              http.Header
 31552  }
 31553  
 31554  // Import: Imports the test cases from a Cloud Storage bucket or a local file.
 31555  // It always creates new test cases and won't overwrite any existing ones. The
 31556  // provided ID in the imported test case is neglected. This method is a
 31557  // long-running operation
 31558  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 31559  // The returned `Operation` type has the following method-specific fields: -
 31560  // `metadata`: ImportTestCasesMetadata - `response`: ImportTestCasesResponse
 31561  //
 31562  //   - parent: The agent to import test cases to. Format:
 31563  //     `projects//locations//agents/`.
 31564  func (r *ProjectsLocationsAgentsTestCasesService) Import(parent string, googleclouddialogflowcxv3beta1importtestcasesrequest *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest) *ProjectsLocationsAgentsTestCasesImportCall {
 31565  	c := &ProjectsLocationsAgentsTestCasesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31566  	c.parent = parent
 31567  	c.googleclouddialogflowcxv3beta1importtestcasesrequest = googleclouddialogflowcxv3beta1importtestcasesrequest
 31568  	return c
 31569  }
 31570  
 31571  // Fields allows partial responses to be retrieved. See
 31572  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31573  // details.
 31574  func (c *ProjectsLocationsAgentsTestCasesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesImportCall {
 31575  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31576  	return c
 31577  }
 31578  
 31579  // Context sets the context to be used in this call's Do method.
 31580  func (c *ProjectsLocationsAgentsTestCasesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesImportCall {
 31581  	c.ctx_ = ctx
 31582  	return c
 31583  }
 31584  
 31585  // Header returns a http.Header that can be modified by the caller to add
 31586  // headers to the request.
 31587  func (c *ProjectsLocationsAgentsTestCasesImportCall) Header() http.Header {
 31588  	if c.header_ == nil {
 31589  		c.header_ = make(http.Header)
 31590  	}
 31591  	return c.header_
 31592  }
 31593  
 31594  func (c *ProjectsLocationsAgentsTestCasesImportCall) doRequest(alt string) (*http.Response, error) {
 31595  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31596  	var body io.Reader = nil
 31597  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importtestcasesrequest)
 31598  	if err != nil {
 31599  		return nil, err
 31600  	}
 31601  	c.urlParams_.Set("alt", alt)
 31602  	c.urlParams_.Set("prettyPrint", "false")
 31603  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:import")
 31604  	urls += "?" + c.urlParams_.Encode()
 31605  	req, err := http.NewRequest("POST", urls, body)
 31606  	if err != nil {
 31607  		return nil, err
 31608  	}
 31609  	req.Header = reqHeaders
 31610  	googleapi.Expand(req.URL, map[string]string{
 31611  		"parent": c.parent,
 31612  	})
 31613  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31614  }
 31615  
 31616  // Do executes the "dialogflow.projects.locations.agents.testCases.import" call.
 31617  // Any non-2xx status code is an error. Response headers are in either
 31618  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31619  // returned at all) in error.(*googleapi.Error).Header. Use
 31620  // googleapi.IsNotModified to check whether the returned error was because
 31621  // http.StatusNotModified was returned.
 31622  func (c *ProjectsLocationsAgentsTestCasesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 31623  	gensupport.SetOptions(c.urlParams_, opts...)
 31624  	res, err := c.doRequest("json")
 31625  	if res != nil && res.StatusCode == http.StatusNotModified {
 31626  		if res.Body != nil {
 31627  			res.Body.Close()
 31628  		}
 31629  		return nil, gensupport.WrapError(&googleapi.Error{
 31630  			Code:   res.StatusCode,
 31631  			Header: res.Header,
 31632  		})
 31633  	}
 31634  	if err != nil {
 31635  		return nil, err
 31636  	}
 31637  	defer googleapi.CloseBody(res)
 31638  	if err := googleapi.CheckResponse(res); err != nil {
 31639  		return nil, gensupport.WrapError(err)
 31640  	}
 31641  	ret := &GoogleLongrunningOperation{
 31642  		ServerResponse: googleapi.ServerResponse{
 31643  			Header:         res.Header,
 31644  			HTTPStatusCode: res.StatusCode,
 31645  		},
 31646  	}
 31647  	target := &ret
 31648  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31649  		return nil, err
 31650  	}
 31651  	return ret, nil
 31652  }
 31653  
 31654  type ProjectsLocationsAgentsTestCasesListCall struct {
 31655  	s            *Service
 31656  	parent       string
 31657  	urlParams_   gensupport.URLParams
 31658  	ifNoneMatch_ string
 31659  	ctx_         context.Context
 31660  	header_      http.Header
 31661  }
 31662  
 31663  // List: Fetches a list of test cases for a given agent.
 31664  //
 31665  //   - parent: The agent to list all pages for. Format:
 31666  //     `projects//locations//agents/`.
 31667  func (r *ProjectsLocationsAgentsTestCasesService) List(parent string) *ProjectsLocationsAgentsTestCasesListCall {
 31668  	c := &ProjectsLocationsAgentsTestCasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31669  	c.parent = parent
 31670  	return c
 31671  }
 31672  
 31673  // PageSize sets the optional parameter "pageSize": The maximum number of items
 31674  // to return in a single page. By default 20. Note that when TestCaseView =
 31675  // FULL, the maximum page size allowed is 20. When TestCaseView = BASIC, the
 31676  // maximum page size allowed is 500.
 31677  func (c *ProjectsLocationsAgentsTestCasesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesListCall {
 31678  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 31679  	return c
 31680  }
 31681  
 31682  // PageToken sets the optional parameter "pageToken": The next_page_token value
 31683  // returned from a previous list request.
 31684  func (c *ProjectsLocationsAgentsTestCasesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesListCall {
 31685  	c.urlParams_.Set("pageToken", pageToken)
 31686  	return c
 31687  }
 31688  
 31689  // View sets the optional parameter "view": Specifies whether response should
 31690  // include all fields or just the metadata.
 31691  //
 31692  // Possible values:
 31693  //
 31694  //	"TEST_CASE_VIEW_UNSPECIFIED" - The default / unset value. The API will
 31695  //
 31696  // default to the BASIC view.
 31697  //
 31698  //	"BASIC" - Include basic metadata about the test case, but not the
 31699  //
 31700  // conversation turns. This is the default value.
 31701  //
 31702  //	"FULL" - Include everything.
 31703  func (c *ProjectsLocationsAgentsTestCasesListCall) View(view string) *ProjectsLocationsAgentsTestCasesListCall {
 31704  	c.urlParams_.Set("view", view)
 31705  	return c
 31706  }
 31707  
 31708  // Fields allows partial responses to be retrieved. See
 31709  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31710  // details.
 31711  func (c *ProjectsLocationsAgentsTestCasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesListCall {
 31712  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31713  	return c
 31714  }
 31715  
 31716  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31717  // object's ETag matches the given value. This is useful for getting updates
 31718  // only after the object has changed since the last request.
 31719  func (c *ProjectsLocationsAgentsTestCasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesListCall {
 31720  	c.ifNoneMatch_ = entityTag
 31721  	return c
 31722  }
 31723  
 31724  // Context sets the context to be used in this call's Do method.
 31725  func (c *ProjectsLocationsAgentsTestCasesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesListCall {
 31726  	c.ctx_ = ctx
 31727  	return c
 31728  }
 31729  
 31730  // Header returns a http.Header that can be modified by the caller to add
 31731  // headers to the request.
 31732  func (c *ProjectsLocationsAgentsTestCasesListCall) Header() http.Header {
 31733  	if c.header_ == nil {
 31734  		c.header_ = make(http.Header)
 31735  	}
 31736  	return c.header_
 31737  }
 31738  
 31739  func (c *ProjectsLocationsAgentsTestCasesListCall) doRequest(alt string) (*http.Response, error) {
 31740  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31741  	if c.ifNoneMatch_ != "" {
 31742  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31743  	}
 31744  	var body io.Reader = nil
 31745  	c.urlParams_.Set("alt", alt)
 31746  	c.urlParams_.Set("prettyPrint", "false")
 31747  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases")
 31748  	urls += "?" + c.urlParams_.Encode()
 31749  	req, err := http.NewRequest("GET", urls, body)
 31750  	if err != nil {
 31751  		return nil, err
 31752  	}
 31753  	req.Header = reqHeaders
 31754  	googleapi.Expand(req.URL, map[string]string{
 31755  		"parent": c.parent,
 31756  	})
 31757  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31758  }
 31759  
 31760  // Do executes the "dialogflow.projects.locations.agents.testCases.list" call.
 31761  // Any non-2xx status code is an error. Response headers are in either
 31762  // *GoogleCloudDialogflowCxV3beta1ListTestCasesResponse.ServerResponse.Header
 31763  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31764  // Use googleapi.IsNotModified to check whether the returned error was because
 31765  // http.StatusNotModified was returned.
 31766  func (c *ProjectsLocationsAgentsTestCasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTestCasesResponse, error) {
 31767  	gensupport.SetOptions(c.urlParams_, opts...)
 31768  	res, err := c.doRequest("json")
 31769  	if res != nil && res.StatusCode == http.StatusNotModified {
 31770  		if res.Body != nil {
 31771  			res.Body.Close()
 31772  		}
 31773  		return nil, gensupport.WrapError(&googleapi.Error{
 31774  			Code:   res.StatusCode,
 31775  			Header: res.Header,
 31776  		})
 31777  	}
 31778  	if err != nil {
 31779  		return nil, err
 31780  	}
 31781  	defer googleapi.CloseBody(res)
 31782  	if err := googleapi.CheckResponse(res); err != nil {
 31783  		return nil, gensupport.WrapError(err)
 31784  	}
 31785  	ret := &GoogleCloudDialogflowCxV3beta1ListTestCasesResponse{
 31786  		ServerResponse: googleapi.ServerResponse{
 31787  			Header:         res.Header,
 31788  			HTTPStatusCode: res.StatusCode,
 31789  		},
 31790  	}
 31791  	target := &ret
 31792  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31793  		return nil, err
 31794  	}
 31795  	return ret, nil
 31796  }
 31797  
 31798  // Pages invokes f for each page of results.
 31799  // A non-nil error returned from f will halt the iteration.
 31800  // The provided context supersedes any context provided to the Context method.
 31801  func (c *ProjectsLocationsAgentsTestCasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTestCasesResponse) error) error {
 31802  	c.ctx_ = ctx
 31803  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31804  	for {
 31805  		x, err := c.Do()
 31806  		if err != nil {
 31807  			return err
 31808  		}
 31809  		if err := f(x); err != nil {
 31810  			return err
 31811  		}
 31812  		if x.NextPageToken == "" {
 31813  			return nil
 31814  		}
 31815  		c.PageToken(x.NextPageToken)
 31816  	}
 31817  }
 31818  
 31819  type ProjectsLocationsAgentsTestCasesPatchCall struct {
 31820  	s                                      *Service
 31821  	nameid                                 string
 31822  	googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase
 31823  	urlParams_                             gensupport.URLParams
 31824  	ctx_                                   context.Context
 31825  	header_                                http.Header
 31826  }
 31827  
 31828  // Patch: Updates the specified test case.
 31829  //
 31830  //   - name: The unique identifier of the test case. TestCases.CreateTestCase
 31831  //     will populate the name automatically. Otherwise use format:
 31832  //     `projects//locations//agents/ /testCases/`.
 31833  func (r *ProjectsLocationsAgentsTestCasesService) Patch(nameid string, googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase) *ProjectsLocationsAgentsTestCasesPatchCall {
 31834  	c := &ProjectsLocationsAgentsTestCasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31835  	c.nameid = nameid
 31836  	c.googleclouddialogflowcxv3beta1testcase = googleclouddialogflowcxv3beta1testcase
 31837  	return c
 31838  }
 31839  
 31840  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 31841  // specify which fields should be updated. The `creationTime` and
 31842  // `lastTestResult` cannot be updated.
 31843  func (c *ProjectsLocationsAgentsTestCasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsTestCasesPatchCall {
 31844  	c.urlParams_.Set("updateMask", updateMask)
 31845  	return c
 31846  }
 31847  
 31848  // Fields allows partial responses to be retrieved. See
 31849  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31850  // details.
 31851  func (c *ProjectsLocationsAgentsTestCasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesPatchCall {
 31852  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31853  	return c
 31854  }
 31855  
 31856  // Context sets the context to be used in this call's Do method.
 31857  func (c *ProjectsLocationsAgentsTestCasesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesPatchCall {
 31858  	c.ctx_ = ctx
 31859  	return c
 31860  }
 31861  
 31862  // Header returns a http.Header that can be modified by the caller to add
 31863  // headers to the request.
 31864  func (c *ProjectsLocationsAgentsTestCasesPatchCall) Header() http.Header {
 31865  	if c.header_ == nil {
 31866  		c.header_ = make(http.Header)
 31867  	}
 31868  	return c.header_
 31869  }
 31870  
 31871  func (c *ProjectsLocationsAgentsTestCasesPatchCall) doRequest(alt string) (*http.Response, error) {
 31872  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31873  	var body io.Reader = nil
 31874  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1testcase)
 31875  	if err != nil {
 31876  		return nil, err
 31877  	}
 31878  	c.urlParams_.Set("alt", alt)
 31879  	c.urlParams_.Set("prettyPrint", "false")
 31880  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 31881  	urls += "?" + c.urlParams_.Encode()
 31882  	req, err := http.NewRequest("PATCH", urls, body)
 31883  	if err != nil {
 31884  		return nil, err
 31885  	}
 31886  	req.Header = reqHeaders
 31887  	googleapi.Expand(req.URL, map[string]string{
 31888  		"name": c.nameid,
 31889  	})
 31890  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31891  }
 31892  
 31893  // Do executes the "dialogflow.projects.locations.agents.testCases.patch" call.
 31894  // Any non-2xx status code is an error. Response headers are in either
 31895  // *GoogleCloudDialogflowCxV3beta1TestCase.ServerResponse.Header or (if a
 31896  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31897  // googleapi.IsNotModified to check whether the returned error was because
 31898  // http.StatusNotModified was returned.
 31899  func (c *ProjectsLocationsAgentsTestCasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
 31900  	gensupport.SetOptions(c.urlParams_, opts...)
 31901  	res, err := c.doRequest("json")
 31902  	if res != nil && res.StatusCode == http.StatusNotModified {
 31903  		if res.Body != nil {
 31904  			res.Body.Close()
 31905  		}
 31906  		return nil, gensupport.WrapError(&googleapi.Error{
 31907  			Code:   res.StatusCode,
 31908  			Header: res.Header,
 31909  		})
 31910  	}
 31911  	if err != nil {
 31912  		return nil, err
 31913  	}
 31914  	defer googleapi.CloseBody(res)
 31915  	if err := googleapi.CheckResponse(res); err != nil {
 31916  		return nil, gensupport.WrapError(err)
 31917  	}
 31918  	ret := &GoogleCloudDialogflowCxV3beta1TestCase{
 31919  		ServerResponse: googleapi.ServerResponse{
 31920  			Header:         res.Header,
 31921  			HTTPStatusCode: res.StatusCode,
 31922  		},
 31923  	}
 31924  	target := &ret
 31925  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31926  		return nil, err
 31927  	}
 31928  	return ret, nil
 31929  }
 31930  
 31931  type ProjectsLocationsAgentsTestCasesRunCall struct {
 31932  	s                                                *Service
 31933  	name                                             string
 31934  	googleclouddialogflowcxv3beta1runtestcaserequest *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest
 31935  	urlParams_                                       gensupport.URLParams
 31936  	ctx_                                             context.Context
 31937  	header_                                          http.Header
 31938  }
 31939  
 31940  // Run: Kicks off a test case run. This method is a long-running operation
 31941  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 31942  // The returned `Operation` type has the following method-specific fields: -
 31943  // `metadata`: RunTestCaseMetadata - `response`: RunTestCaseResponse
 31944  //
 31945  //   - name: Format of test case name to run: `projects//locations/
 31946  //     /agents//testCases/`.
 31947  func (r *ProjectsLocationsAgentsTestCasesService) Run(name string, googleclouddialogflowcxv3beta1runtestcaserequest *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest) *ProjectsLocationsAgentsTestCasesRunCall {
 31948  	c := &ProjectsLocationsAgentsTestCasesRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31949  	c.name = name
 31950  	c.googleclouddialogflowcxv3beta1runtestcaserequest = googleclouddialogflowcxv3beta1runtestcaserequest
 31951  	return c
 31952  }
 31953  
 31954  // Fields allows partial responses to be retrieved. See
 31955  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31956  // details.
 31957  func (c *ProjectsLocationsAgentsTestCasesRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesRunCall {
 31958  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31959  	return c
 31960  }
 31961  
 31962  // Context sets the context to be used in this call's Do method.
 31963  func (c *ProjectsLocationsAgentsTestCasesRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesRunCall {
 31964  	c.ctx_ = ctx
 31965  	return c
 31966  }
 31967  
 31968  // Header returns a http.Header that can be modified by the caller to add
 31969  // headers to the request.
 31970  func (c *ProjectsLocationsAgentsTestCasesRunCall) Header() http.Header {
 31971  	if c.header_ == nil {
 31972  		c.header_ = make(http.Header)
 31973  	}
 31974  	return c.header_
 31975  }
 31976  
 31977  func (c *ProjectsLocationsAgentsTestCasesRunCall) doRequest(alt string) (*http.Response, error) {
 31978  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31979  	var body io.Reader = nil
 31980  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1runtestcaserequest)
 31981  	if err != nil {
 31982  		return nil, err
 31983  	}
 31984  	c.urlParams_.Set("alt", alt)
 31985  	c.urlParams_.Set("prettyPrint", "false")
 31986  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:run")
 31987  	urls += "?" + c.urlParams_.Encode()
 31988  	req, err := http.NewRequest("POST", urls, body)
 31989  	if err != nil {
 31990  		return nil, err
 31991  	}
 31992  	req.Header = reqHeaders
 31993  	googleapi.Expand(req.URL, map[string]string{
 31994  		"name": c.name,
 31995  	})
 31996  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31997  }
 31998  
 31999  // Do executes the "dialogflow.projects.locations.agents.testCases.run" call.
 32000  // Any non-2xx status code is an error. Response headers are in either
 32001  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32002  // returned at all) in error.(*googleapi.Error).Header. Use
 32003  // googleapi.IsNotModified to check whether the returned error was because
 32004  // http.StatusNotModified was returned.
 32005  func (c *ProjectsLocationsAgentsTestCasesRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32006  	gensupport.SetOptions(c.urlParams_, opts...)
 32007  	res, err := c.doRequest("json")
 32008  	if res != nil && res.StatusCode == http.StatusNotModified {
 32009  		if res.Body != nil {
 32010  			res.Body.Close()
 32011  		}
 32012  		return nil, gensupport.WrapError(&googleapi.Error{
 32013  			Code:   res.StatusCode,
 32014  			Header: res.Header,
 32015  		})
 32016  	}
 32017  	if err != nil {
 32018  		return nil, err
 32019  	}
 32020  	defer googleapi.CloseBody(res)
 32021  	if err := googleapi.CheckResponse(res); err != nil {
 32022  		return nil, gensupport.WrapError(err)
 32023  	}
 32024  	ret := &GoogleLongrunningOperation{
 32025  		ServerResponse: googleapi.ServerResponse{
 32026  			Header:         res.Header,
 32027  			HTTPStatusCode: res.StatusCode,
 32028  		},
 32029  	}
 32030  	target := &ret
 32031  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32032  		return nil, err
 32033  	}
 32034  	return ret, nil
 32035  }
 32036  
 32037  type ProjectsLocationsAgentsTestCasesResultsGetCall struct {
 32038  	s            *Service
 32039  	name         string
 32040  	urlParams_   gensupport.URLParams
 32041  	ifNoneMatch_ string
 32042  	ctx_         context.Context
 32043  	header_      http.Header
 32044  }
 32045  
 32046  // Get: Gets a test case result.
 32047  //
 32048  //   - name: The name of the testcase. Format:
 32049  //     `projects//locations//agents//testCases//results/`.
 32050  func (r *ProjectsLocationsAgentsTestCasesResultsService) Get(name string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
 32051  	c := &ProjectsLocationsAgentsTestCasesResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32052  	c.name = name
 32053  	return c
 32054  }
 32055  
 32056  // Fields allows partial responses to be retrieved. See
 32057  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32058  // details.
 32059  func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsGetCall {
 32060  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32061  	return c
 32062  }
 32063  
 32064  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32065  // object's ETag matches the given value. This is useful for getting updates
 32066  // only after the object has changed since the last request.
 32067  func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
 32068  	c.ifNoneMatch_ = entityTag
 32069  	return c
 32070  }
 32071  
 32072  // Context sets the context to be used in this call's Do method.
 32073  func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsGetCall {
 32074  	c.ctx_ = ctx
 32075  	return c
 32076  }
 32077  
 32078  // Header returns a http.Header that can be modified by the caller to add
 32079  // headers to the request.
 32080  func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Header() http.Header {
 32081  	if c.header_ == nil {
 32082  		c.header_ = make(http.Header)
 32083  	}
 32084  	return c.header_
 32085  }
 32086  
 32087  func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) doRequest(alt string) (*http.Response, error) {
 32088  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32089  	if c.ifNoneMatch_ != "" {
 32090  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32091  	}
 32092  	var body io.Reader = nil
 32093  	c.urlParams_.Set("alt", alt)
 32094  	c.urlParams_.Set("prettyPrint", "false")
 32095  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 32096  	urls += "?" + c.urlParams_.Encode()
 32097  	req, err := http.NewRequest("GET", urls, body)
 32098  	if err != nil {
 32099  		return nil, err
 32100  	}
 32101  	req.Header = reqHeaders
 32102  	googleapi.Expand(req.URL, map[string]string{
 32103  		"name": c.name,
 32104  	})
 32105  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32106  }
 32107  
 32108  // Do executes the "dialogflow.projects.locations.agents.testCases.results.get" call.
 32109  // Any non-2xx status code is an error. Response headers are in either
 32110  // *GoogleCloudDialogflowCxV3beta1TestCaseResult.ServerResponse.Header or (if a
 32111  // response was returned at all) in error.(*googleapi.Error).Header. Use
 32112  // googleapi.IsNotModified to check whether the returned error was because
 32113  // http.StatusNotModified was returned.
 32114  func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCaseResult, error) {
 32115  	gensupport.SetOptions(c.urlParams_, opts...)
 32116  	res, err := c.doRequest("json")
 32117  	if res != nil && res.StatusCode == http.StatusNotModified {
 32118  		if res.Body != nil {
 32119  			res.Body.Close()
 32120  		}
 32121  		return nil, gensupport.WrapError(&googleapi.Error{
 32122  			Code:   res.StatusCode,
 32123  			Header: res.Header,
 32124  		})
 32125  	}
 32126  	if err != nil {
 32127  		return nil, err
 32128  	}
 32129  	defer googleapi.CloseBody(res)
 32130  	if err := googleapi.CheckResponse(res); err != nil {
 32131  		return nil, gensupport.WrapError(err)
 32132  	}
 32133  	ret := &GoogleCloudDialogflowCxV3beta1TestCaseResult{
 32134  		ServerResponse: googleapi.ServerResponse{
 32135  			Header:         res.Header,
 32136  			HTTPStatusCode: res.StatusCode,
 32137  		},
 32138  	}
 32139  	target := &ret
 32140  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32141  		return nil, err
 32142  	}
 32143  	return ret, nil
 32144  }
 32145  
 32146  type ProjectsLocationsAgentsTestCasesResultsListCall struct {
 32147  	s            *Service
 32148  	parent       string
 32149  	urlParams_   gensupport.URLParams
 32150  	ifNoneMatch_ string
 32151  	ctx_         context.Context
 32152  	header_      http.Header
 32153  }
 32154  
 32155  // List: Fetches the list of run results for the given test case. A maximum of
 32156  // 100 results are kept for each test case.
 32157  //
 32158  //   - parent: The test case to list results for. Format:
 32159  //     `projects//locations//agents// testCases/`. Specify a `-` as a wildcard
 32160  //     for TestCase ID to list results across multiple test cases.
 32161  func (r *ProjectsLocationsAgentsTestCasesResultsService) List(parent string) *ProjectsLocationsAgentsTestCasesResultsListCall {
 32162  	c := &ProjectsLocationsAgentsTestCasesResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32163  	c.parent = parent
 32164  	return c
 32165  }
 32166  
 32167  // Filter sets the optional parameter "filter": The filter expression used to
 32168  // filter test case results. See API Filtering (https://aip.dev/160). The
 32169  // expression is case insensitive. Only 'AND' is supported for logical
 32170  // operators. The supported syntax is listed below in detail: [AND ] ... [AND
 32171  // latest] The supported fields and operators are: field operator `environment`
 32172  // `=`, `IN` (Use value `draft` for draft environment) `test_time` `>`, `<`
 32173  // `latest` only returns the latest test result in all results for each test
 32174  // case. Examples: * "environment=draft AND latest" matches the latest test
 32175  // result for each test case in the draft environment. * "environment IN
 32176  // (e1,e2)" matches any test case results with an environment resource name of
 32177  // either "e1" or "e2". * "test_time > 1602540713" matches any test case
 32178  // results with test time later than a unix timestamp in seconds 1602540713.
 32179  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Filter(filter string) *ProjectsLocationsAgentsTestCasesResultsListCall {
 32180  	c.urlParams_.Set("filter", filter)
 32181  	return c
 32182  }
 32183  
 32184  // PageSize sets the optional parameter "pageSize": The maximum number of items
 32185  // to return in a single page. By default 100 and at most 1000.
 32186  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesResultsListCall {
 32187  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 32188  	return c
 32189  }
 32190  
 32191  // PageToken sets the optional parameter "pageToken": The next_page_token value
 32192  // returned from a previous list request.
 32193  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesResultsListCall {
 32194  	c.urlParams_.Set("pageToken", pageToken)
 32195  	return c
 32196  }
 32197  
 32198  // Fields allows partial responses to be retrieved. See
 32199  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32200  // details.
 32201  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsListCall {
 32202  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32203  	return c
 32204  }
 32205  
 32206  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32207  // object's ETag matches the given value. This is useful for getting updates
 32208  // only after the object has changed since the last request.
 32209  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsListCall {
 32210  	c.ifNoneMatch_ = entityTag
 32211  	return c
 32212  }
 32213  
 32214  // Context sets the context to be used in this call's Do method.
 32215  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsListCall {
 32216  	c.ctx_ = ctx
 32217  	return c
 32218  }
 32219  
 32220  // Header returns a http.Header that can be modified by the caller to add
 32221  // headers to the request.
 32222  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Header() http.Header {
 32223  	if c.header_ == nil {
 32224  		c.header_ = make(http.Header)
 32225  	}
 32226  	return c.header_
 32227  }
 32228  
 32229  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) doRequest(alt string) (*http.Response, error) {
 32230  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32231  	if c.ifNoneMatch_ != "" {
 32232  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32233  	}
 32234  	var body io.Reader = nil
 32235  	c.urlParams_.Set("alt", alt)
 32236  	c.urlParams_.Set("prettyPrint", "false")
 32237  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/results")
 32238  	urls += "?" + c.urlParams_.Encode()
 32239  	req, err := http.NewRequest("GET", urls, body)
 32240  	if err != nil {
 32241  		return nil, err
 32242  	}
 32243  	req.Header = reqHeaders
 32244  	googleapi.Expand(req.URL, map[string]string{
 32245  		"parent": c.parent,
 32246  	})
 32247  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32248  }
 32249  
 32250  // Do executes the "dialogflow.projects.locations.agents.testCases.results.list" call.
 32251  // Any non-2xx status code is an error. Response headers are in either
 32252  // *GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse.ServerResponse.Hea
 32253  // der or (if a response was returned at all) in
 32254  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 32255  // whether the returned error was because http.StatusNotModified was returned.
 32256  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse, error) {
 32257  	gensupport.SetOptions(c.urlParams_, opts...)
 32258  	res, err := c.doRequest("json")
 32259  	if res != nil && res.StatusCode == http.StatusNotModified {
 32260  		if res.Body != nil {
 32261  			res.Body.Close()
 32262  		}
 32263  		return nil, gensupport.WrapError(&googleapi.Error{
 32264  			Code:   res.StatusCode,
 32265  			Header: res.Header,
 32266  		})
 32267  	}
 32268  	if err != nil {
 32269  		return nil, err
 32270  	}
 32271  	defer googleapi.CloseBody(res)
 32272  	if err := googleapi.CheckResponse(res); err != nil {
 32273  		return nil, gensupport.WrapError(err)
 32274  	}
 32275  	ret := &GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse{
 32276  		ServerResponse: googleapi.ServerResponse{
 32277  			Header:         res.Header,
 32278  			HTTPStatusCode: res.StatusCode,
 32279  		},
 32280  	}
 32281  	target := &ret
 32282  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32283  		return nil, err
 32284  	}
 32285  	return ret, nil
 32286  }
 32287  
 32288  // Pages invokes f for each page of results.
 32289  // A non-nil error returned from f will halt the iteration.
 32290  // The provided context supersedes any context provided to the Context method.
 32291  func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse) error) error {
 32292  	c.ctx_ = ctx
 32293  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 32294  	for {
 32295  		x, err := c.Do()
 32296  		if err != nil {
 32297  			return err
 32298  		}
 32299  		if err := f(x); err != nil {
 32300  			return err
 32301  		}
 32302  		if x.NextPageToken == "" {
 32303  			return nil
 32304  		}
 32305  		c.PageToken(x.NextPageToken)
 32306  	}
 32307  }
 32308  
 32309  type ProjectsLocationsAgentsTransitionRouteGroupsCreateCall struct {
 32310  	s                                                  *Service
 32311  	parent                                             string
 32312  	googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
 32313  	urlParams_                                         gensupport.URLParams
 32314  	ctx_                                               context.Context
 32315  	header_                                            http.Header
 32316  }
 32317  
 32318  // Create: Creates an TransitionRouteGroup in the specified flow. Note: You
 32319  // should always train a flow prior to sending it queries. See the training
 32320  // documentation
 32321  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 32322  //
 32323  //   - parent: The flow to create an TransitionRouteGroup for. Format:
 32324  //     `projects//locations//agents//flows/` or `projects//locations//agents/`
 32325  //     for agent-level groups.
 32326  func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Create(parent string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
 32327  	c := &ProjectsLocationsAgentsTransitionRouteGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32328  	c.parent = parent
 32329  	c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
 32330  	return c
 32331  }
 32332  
 32333  // LanguageCode sets the optional parameter "languageCode": The language of the
 32334  // following fields in `TransitionRouteGroup`: *
 32335  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 32336  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 32337  // ` If not specified, the agent's default language is used. Many languages
 32338  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 32339  // supported. Note: languages must be enabled in the agent before they can be
 32340  // used.
 32341  func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
 32342  	c.urlParams_.Set("languageCode", languageCode)
 32343  	return c
 32344  }
 32345  
 32346  // Fields allows partial responses to be retrieved. See
 32347  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32348  // details.
 32349  func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
 32350  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32351  	return c
 32352  }
 32353  
 32354  // Context sets the context to be used in this call's Do method.
 32355  func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
 32356  	c.ctx_ = ctx
 32357  	return c
 32358  }
 32359  
 32360  // Header returns a http.Header that can be modified by the caller to add
 32361  // headers to the request.
 32362  func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Header() http.Header {
 32363  	if c.header_ == nil {
 32364  		c.header_ = make(http.Header)
 32365  	}
 32366  	return c.header_
 32367  }
 32368  
 32369  func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
 32370  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32371  	var body io.Reader = nil
 32372  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
 32373  	if err != nil {
 32374  		return nil, err
 32375  	}
 32376  	c.urlParams_.Set("alt", alt)
 32377  	c.urlParams_.Set("prettyPrint", "false")
 32378  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
 32379  	urls += "?" + c.urlParams_.Encode()
 32380  	req, err := http.NewRequest("POST", urls, body)
 32381  	if err != nil {
 32382  		return nil, err
 32383  	}
 32384  	req.Header = reqHeaders
 32385  	googleapi.Expand(req.URL, map[string]string{
 32386  		"parent": c.parent,
 32387  	})
 32388  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32389  }
 32390  
 32391  // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.create" call.
 32392  // Any non-2xx status code is an error. Response headers are in either
 32393  // *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Header or
 32394  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 32395  // googleapi.IsNotModified to check whether the returned error was because
 32396  // http.StatusNotModified was returned.
 32397  func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
 32398  	gensupport.SetOptions(c.urlParams_, opts...)
 32399  	res, err := c.doRequest("json")
 32400  	if res != nil && res.StatusCode == http.StatusNotModified {
 32401  		if res.Body != nil {
 32402  			res.Body.Close()
 32403  		}
 32404  		return nil, gensupport.WrapError(&googleapi.Error{
 32405  			Code:   res.StatusCode,
 32406  			Header: res.Header,
 32407  		})
 32408  	}
 32409  	if err != nil {
 32410  		return nil, err
 32411  	}
 32412  	defer googleapi.CloseBody(res)
 32413  	if err := googleapi.CheckResponse(res); err != nil {
 32414  		return nil, gensupport.WrapError(err)
 32415  	}
 32416  	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
 32417  		ServerResponse: googleapi.ServerResponse{
 32418  			Header:         res.Header,
 32419  			HTTPStatusCode: res.StatusCode,
 32420  		},
 32421  	}
 32422  	target := &ret
 32423  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32424  		return nil, err
 32425  	}
 32426  	return ret, nil
 32427  }
 32428  
 32429  type ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall struct {
 32430  	s          *Service
 32431  	name       string
 32432  	urlParams_ gensupport.URLParams
 32433  	ctx_       context.Context
 32434  	header_    http.Header
 32435  }
 32436  
 32437  // Delete: Deletes the specified TransitionRouteGroup. Note: You should always
 32438  // train a flow prior to sending it queries. See the training documentation
 32439  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 32440  //
 32441  //   - name: The name of the TransitionRouteGroup to delete. Format:
 32442  //     `projects//locations//agents//flows//transitionRouteGroups/` or
 32443  //     `projects//locations//agents//transitionRouteGroups/`.
 32444  func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Delete(name string) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
 32445  	c := &ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32446  	c.name = name
 32447  	return c
 32448  }
 32449  
 32450  // Force sets the optional parameter "force": This field has no effect for
 32451  // transition route group that no page is using. If the transition route group
 32452  // is referenced by any page: * If `force` is set to false, an error will be
 32453  // returned with message indicating pages that reference the transition route
 32454  // group. * If `force` is set to true, Dialogflow will remove the transition
 32455  // route group, as well as any reference to it.
 32456  func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Force(force bool) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
 32457  	c.urlParams_.Set("force", fmt.Sprint(force))
 32458  	return c
 32459  }
 32460  
 32461  // Fields allows partial responses to be retrieved. See
 32462  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32463  // details.
 32464  func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
 32465  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32466  	return c
 32467  }
 32468  
 32469  // Context sets the context to be used in this call's Do method.
 32470  func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
 32471  	c.ctx_ = ctx
 32472  	return c
 32473  }
 32474  
 32475  // Header returns a http.Header that can be modified by the caller to add
 32476  // headers to the request.
 32477  func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Header() http.Header {
 32478  	if c.header_ == nil {
 32479  		c.header_ = make(http.Header)
 32480  	}
 32481  	return c.header_
 32482  }
 32483  
 32484  func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
 32485  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32486  	var body io.Reader = nil
 32487  	c.urlParams_.Set("alt", alt)
 32488  	c.urlParams_.Set("prettyPrint", "false")
 32489  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 32490  	urls += "?" + c.urlParams_.Encode()
 32491  	req, err := http.NewRequest("DELETE", urls, body)
 32492  	if err != nil {
 32493  		return nil, err
 32494  	}
 32495  	req.Header = reqHeaders
 32496  	googleapi.Expand(req.URL, map[string]string{
 32497  		"name": c.name,
 32498  	})
 32499  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32500  }
 32501  
 32502  // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.delete" call.
 32503  // Any non-2xx status code is an error. Response headers are in either
 32504  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 32505  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 32506  // check whether the returned error was because http.StatusNotModified was
 32507  // returned.
 32508  func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 32509  	gensupport.SetOptions(c.urlParams_, opts...)
 32510  	res, err := c.doRequest("json")
 32511  	if res != nil && res.StatusCode == http.StatusNotModified {
 32512  		if res.Body != nil {
 32513  			res.Body.Close()
 32514  		}
 32515  		return nil, gensupport.WrapError(&googleapi.Error{
 32516  			Code:   res.StatusCode,
 32517  			Header: res.Header,
 32518  		})
 32519  	}
 32520  	if err != nil {
 32521  		return nil, err
 32522  	}
 32523  	defer googleapi.CloseBody(res)
 32524  	if err := googleapi.CheckResponse(res); err != nil {
 32525  		return nil, gensupport.WrapError(err)
 32526  	}
 32527  	ret := &GoogleProtobufEmpty{
 32528  		ServerResponse: googleapi.ServerResponse{
 32529  			Header:         res.Header,
 32530  			HTTPStatusCode: res.StatusCode,
 32531  		},
 32532  	}
 32533  	target := &ret
 32534  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32535  		return nil, err
 32536  	}
 32537  	return ret, nil
 32538  }
 32539  
 32540  type ProjectsLocationsAgentsTransitionRouteGroupsGetCall struct {
 32541  	s            *Service
 32542  	name         string
 32543  	urlParams_   gensupport.URLParams
 32544  	ifNoneMatch_ string
 32545  	ctx_         context.Context
 32546  	header_      http.Header
 32547  }
 32548  
 32549  // Get: Retrieves the specified TransitionRouteGroup.
 32550  //
 32551  //   - name: The name of the TransitionRouteGroup. Format:
 32552  //     `projects//locations//agents//flows//transitionRouteGroups/` or
 32553  //     `projects//locations//agents//transitionRouteGroups/`.
 32554  func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Get(name string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
 32555  	c := &ProjectsLocationsAgentsTransitionRouteGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32556  	c.name = name
 32557  	return c
 32558  }
 32559  
 32560  // LanguageCode sets the optional parameter "languageCode": The language to
 32561  // retrieve the transition route group for. The following fields are language
 32562  // dependent: *
 32563  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 32564  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 32565  // ` If not specified, the agent's default language is used. Many languages
 32566  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 32567  // supported. Note: languages must be enabled in the agent before they can be
 32568  // used.
 32569  func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
 32570  	c.urlParams_.Set("languageCode", languageCode)
 32571  	return c
 32572  }
 32573  
 32574  // Fields allows partial responses to be retrieved. See
 32575  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32576  // details.
 32577  func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
 32578  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32579  	return c
 32580  }
 32581  
 32582  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32583  // object's ETag matches the given value. This is useful for getting updates
 32584  // only after the object has changed since the last request.
 32585  func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
 32586  	c.ifNoneMatch_ = entityTag
 32587  	return c
 32588  }
 32589  
 32590  // Context sets the context to be used in this call's Do method.
 32591  func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
 32592  	c.ctx_ = ctx
 32593  	return c
 32594  }
 32595  
 32596  // Header returns a http.Header that can be modified by the caller to add
 32597  // headers to the request.
 32598  func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Header() http.Header {
 32599  	if c.header_ == nil {
 32600  		c.header_ = make(http.Header)
 32601  	}
 32602  	return c.header_
 32603  }
 32604  
 32605  func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) {
 32606  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32607  	if c.ifNoneMatch_ != "" {
 32608  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32609  	}
 32610  	var body io.Reader = nil
 32611  	c.urlParams_.Set("alt", alt)
 32612  	c.urlParams_.Set("prettyPrint", "false")
 32613  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 32614  	urls += "?" + c.urlParams_.Encode()
 32615  	req, err := http.NewRequest("GET", urls, body)
 32616  	if err != nil {
 32617  		return nil, err
 32618  	}
 32619  	req.Header = reqHeaders
 32620  	googleapi.Expand(req.URL, map[string]string{
 32621  		"name": c.name,
 32622  	})
 32623  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32624  }
 32625  
 32626  // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.get" call.
 32627  // Any non-2xx status code is an error. Response headers are in either
 32628  // *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Header or
 32629  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 32630  // googleapi.IsNotModified to check whether the returned error was because
 32631  // http.StatusNotModified was returned.
 32632  func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
 32633  	gensupport.SetOptions(c.urlParams_, opts...)
 32634  	res, err := c.doRequest("json")
 32635  	if res != nil && res.StatusCode == http.StatusNotModified {
 32636  		if res.Body != nil {
 32637  			res.Body.Close()
 32638  		}
 32639  		return nil, gensupport.WrapError(&googleapi.Error{
 32640  			Code:   res.StatusCode,
 32641  			Header: res.Header,
 32642  		})
 32643  	}
 32644  	if err != nil {
 32645  		return nil, err
 32646  	}
 32647  	defer googleapi.CloseBody(res)
 32648  	if err := googleapi.CheckResponse(res); err != nil {
 32649  		return nil, gensupport.WrapError(err)
 32650  	}
 32651  	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
 32652  		ServerResponse: googleapi.ServerResponse{
 32653  			Header:         res.Header,
 32654  			HTTPStatusCode: res.StatusCode,
 32655  		},
 32656  	}
 32657  	target := &ret
 32658  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32659  		return nil, err
 32660  	}
 32661  	return ret, nil
 32662  }
 32663  
 32664  type ProjectsLocationsAgentsTransitionRouteGroupsListCall struct {
 32665  	s            *Service
 32666  	parent       string
 32667  	urlParams_   gensupport.URLParams
 32668  	ifNoneMatch_ string
 32669  	ctx_         context.Context
 32670  	header_      http.Header
 32671  }
 32672  
 32673  // List: Returns the list of all transition route groups in the specified flow.
 32674  //
 32675  //   - parent: The flow to list all transition route groups for. Format:
 32676  //     `projects//locations//agents//flows/` or `projects//locations//agents/.
 32677  func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) List(parent string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
 32678  	c := &ProjectsLocationsAgentsTransitionRouteGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32679  	c.parent = parent
 32680  	return c
 32681  }
 32682  
 32683  // LanguageCode sets the optional parameter "languageCode": The language to
 32684  // list transition route groups for. The following fields are language
 32685  // dependent: *
 32686  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 32687  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 32688  // ` If not specified, the agent's default language is used. Many languages
 32689  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 32690  // supported. Note: languages must be enabled in the agent before they can be
 32691  // used.
 32692  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
 32693  	c.urlParams_.Set("languageCode", languageCode)
 32694  	return c
 32695  }
 32696  
 32697  // PageSize sets the optional parameter "pageSize": The maximum number of items
 32698  // to return in a single page. By default 100 and at most 1000.
 32699  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
 32700  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 32701  	return c
 32702  }
 32703  
 32704  // PageToken sets the optional parameter "pageToken": The next_page_token value
 32705  // returned from a previous list request.
 32706  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
 32707  	c.urlParams_.Set("pageToken", pageToken)
 32708  	return c
 32709  }
 32710  
 32711  // Fields allows partial responses to be retrieved. See
 32712  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32713  // details.
 32714  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
 32715  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32716  	return c
 32717  }
 32718  
 32719  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32720  // object's ETag matches the given value. This is useful for getting updates
 32721  // only after the object has changed since the last request.
 32722  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
 32723  	c.ifNoneMatch_ = entityTag
 32724  	return c
 32725  }
 32726  
 32727  // Context sets the context to be used in this call's Do method.
 32728  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
 32729  	c.ctx_ = ctx
 32730  	return c
 32731  }
 32732  
 32733  // Header returns a http.Header that can be modified by the caller to add
 32734  // headers to the request.
 32735  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Header() http.Header {
 32736  	if c.header_ == nil {
 32737  		c.header_ = make(http.Header)
 32738  	}
 32739  	return c.header_
 32740  }
 32741  
 32742  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) {
 32743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32744  	if c.ifNoneMatch_ != "" {
 32745  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32746  	}
 32747  	var body io.Reader = nil
 32748  	c.urlParams_.Set("alt", alt)
 32749  	c.urlParams_.Set("prettyPrint", "false")
 32750  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
 32751  	urls += "?" + c.urlParams_.Encode()
 32752  	req, err := http.NewRequest("GET", urls, body)
 32753  	if err != nil {
 32754  		return nil, err
 32755  	}
 32756  	req.Header = reqHeaders
 32757  	googleapi.Expand(req.URL, map[string]string{
 32758  		"parent": c.parent,
 32759  	})
 32760  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32761  }
 32762  
 32763  // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.list" call.
 32764  // Any non-2xx status code is an error. Response headers are in either
 32765  // *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse.ServerRespon
 32766  // se.Header or (if a response was returned at all) in
 32767  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 32768  // whether the returned error was because http.StatusNotModified was returned.
 32769  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse, error) {
 32770  	gensupport.SetOptions(c.urlParams_, opts...)
 32771  	res, err := c.doRequest("json")
 32772  	if res != nil && res.StatusCode == http.StatusNotModified {
 32773  		if res.Body != nil {
 32774  			res.Body.Close()
 32775  		}
 32776  		return nil, gensupport.WrapError(&googleapi.Error{
 32777  			Code:   res.StatusCode,
 32778  			Header: res.Header,
 32779  		})
 32780  	}
 32781  	if err != nil {
 32782  		return nil, err
 32783  	}
 32784  	defer googleapi.CloseBody(res)
 32785  	if err := googleapi.CheckResponse(res); err != nil {
 32786  		return nil, gensupport.WrapError(err)
 32787  	}
 32788  	ret := &GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse{
 32789  		ServerResponse: googleapi.ServerResponse{
 32790  			Header:         res.Header,
 32791  			HTTPStatusCode: res.StatusCode,
 32792  		},
 32793  	}
 32794  	target := &ret
 32795  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32796  		return nil, err
 32797  	}
 32798  	return ret, nil
 32799  }
 32800  
 32801  // Pages invokes f for each page of results.
 32802  // A non-nil error returned from f will halt the iteration.
 32803  // The provided context supersedes any context provided to the Context method.
 32804  func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) error) error {
 32805  	c.ctx_ = ctx
 32806  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 32807  	for {
 32808  		x, err := c.Do()
 32809  		if err != nil {
 32810  			return err
 32811  		}
 32812  		if err := f(x); err != nil {
 32813  			return err
 32814  		}
 32815  		if x.NextPageToken == "" {
 32816  			return nil
 32817  		}
 32818  		c.PageToken(x.NextPageToken)
 32819  	}
 32820  }
 32821  
 32822  type ProjectsLocationsAgentsTransitionRouteGroupsPatchCall struct {
 32823  	s                                                  *Service
 32824  	nameid                                             string
 32825  	googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
 32826  	urlParams_                                         gensupport.URLParams
 32827  	ctx_                                               context.Context
 32828  	header_                                            http.Header
 32829  }
 32830  
 32831  // Patch: Updates the specified TransitionRouteGroup. Note: You should always
 32832  // train a flow prior to sending it queries. See the training documentation
 32833  // (https://cloud.google.com/dialogflow/cx/docs/concept/training).
 32834  //
 32835  //   - name: The unique identifier of the transition route group.
 32836  //     TransitionRouteGroups.CreateTransitionRouteGroup populates the name
 32837  //     automatically. Format:
 32838  //     `projects//locations//agents//flows//transitionRouteGroups/` or
 32839  //     `projects//locations//agents//transitionRouteGroups/` for agent-level
 32840  //     groups.
 32841  func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Patch(nameid string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
 32842  	c := &ProjectsLocationsAgentsTransitionRouteGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32843  	c.nameid = nameid
 32844  	c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
 32845  	return c
 32846  }
 32847  
 32848  // LanguageCode sets the optional parameter "languageCode": The language of the
 32849  // following fields in `TransitionRouteGroup`: *
 32850  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` *
 32851  // `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases
 32852  // ` If not specified, the agent's default language is used. Many languages
 32853  // (https://cloud.google.com/dialogflow/cx/docs/reference/language) are
 32854  // supported. Note: languages must be enabled in the agent before they can be
 32855  // used.
 32856  func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
 32857  	c.urlParams_.Set("languageCode", languageCode)
 32858  	return c
 32859  }
 32860  
 32861  // UpdateMask sets the optional parameter "updateMask": The mask to control
 32862  // which fields get updated.
 32863  func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
 32864  	c.urlParams_.Set("updateMask", updateMask)
 32865  	return c
 32866  }
 32867  
 32868  // Fields allows partial responses to be retrieved. See
 32869  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32870  // details.
 32871  func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
 32872  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32873  	return c
 32874  }
 32875  
 32876  // Context sets the context to be used in this call's Do method.
 32877  func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
 32878  	c.ctx_ = ctx
 32879  	return c
 32880  }
 32881  
 32882  // Header returns a http.Header that can be modified by the caller to add
 32883  // headers to the request.
 32884  func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Header() http.Header {
 32885  	if c.header_ == nil {
 32886  		c.header_ = make(http.Header)
 32887  	}
 32888  	return c.header_
 32889  }
 32890  
 32891  func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
 32892  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32893  	var body io.Reader = nil
 32894  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
 32895  	if err != nil {
 32896  		return nil, err
 32897  	}
 32898  	c.urlParams_.Set("alt", alt)
 32899  	c.urlParams_.Set("prettyPrint", "false")
 32900  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 32901  	urls += "?" + c.urlParams_.Encode()
 32902  	req, err := http.NewRequest("PATCH", urls, body)
 32903  	if err != nil {
 32904  		return nil, err
 32905  	}
 32906  	req.Header = reqHeaders
 32907  	googleapi.Expand(req.URL, map[string]string{
 32908  		"name": c.nameid,
 32909  	})
 32910  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32911  }
 32912  
 32913  // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.patch" call.
 32914  // Any non-2xx status code is an error. Response headers are in either
 32915  // *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup.ServerResponse.Header or
 32916  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 32917  // googleapi.IsNotModified to check whether the returned error was because
 32918  // http.StatusNotModified was returned.
 32919  func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
 32920  	gensupport.SetOptions(c.urlParams_, opts...)
 32921  	res, err := c.doRequest("json")
 32922  	if res != nil && res.StatusCode == http.StatusNotModified {
 32923  		if res.Body != nil {
 32924  			res.Body.Close()
 32925  		}
 32926  		return nil, gensupport.WrapError(&googleapi.Error{
 32927  			Code:   res.StatusCode,
 32928  			Header: res.Header,
 32929  		})
 32930  	}
 32931  	if err != nil {
 32932  		return nil, err
 32933  	}
 32934  	defer googleapi.CloseBody(res)
 32935  	if err := googleapi.CheckResponse(res); err != nil {
 32936  		return nil, gensupport.WrapError(err)
 32937  	}
 32938  	ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
 32939  		ServerResponse: googleapi.ServerResponse{
 32940  			Header:         res.Header,
 32941  			HTTPStatusCode: res.StatusCode,
 32942  		},
 32943  	}
 32944  	target := &ret
 32945  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32946  		return nil, err
 32947  	}
 32948  	return ret, nil
 32949  }
 32950  
 32951  type ProjectsLocationsAgentsWebhooksCreateCall struct {
 32952  	s                                     *Service
 32953  	parent                                string
 32954  	googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook
 32955  	urlParams_                            gensupport.URLParams
 32956  	ctx_                                  context.Context
 32957  	header_                               http.Header
 32958  }
 32959  
 32960  // Create: Creates a webhook in the specified agent.
 32961  //
 32962  //   - parent: The agent to create a webhook for. Format:
 32963  //     `projects//locations//agents/`.
 32964  func (r *ProjectsLocationsAgentsWebhooksService) Create(parent string, googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook) *ProjectsLocationsAgentsWebhooksCreateCall {
 32965  	c := &ProjectsLocationsAgentsWebhooksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32966  	c.parent = parent
 32967  	c.googleclouddialogflowcxv3beta1webhook = googleclouddialogflowcxv3beta1webhook
 32968  	return c
 32969  }
 32970  
 32971  // Fields allows partial responses to be retrieved. See
 32972  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32973  // details.
 32974  func (c *ProjectsLocationsAgentsWebhooksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksCreateCall {
 32975  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32976  	return c
 32977  }
 32978  
 32979  // Context sets the context to be used in this call's Do method.
 32980  func (c *ProjectsLocationsAgentsWebhooksCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksCreateCall {
 32981  	c.ctx_ = ctx
 32982  	return c
 32983  }
 32984  
 32985  // Header returns a http.Header that can be modified by the caller to add
 32986  // headers to the request.
 32987  func (c *ProjectsLocationsAgentsWebhooksCreateCall) Header() http.Header {
 32988  	if c.header_ == nil {
 32989  		c.header_ = make(http.Header)
 32990  	}
 32991  	return c.header_
 32992  }
 32993  
 32994  func (c *ProjectsLocationsAgentsWebhooksCreateCall) doRequest(alt string) (*http.Response, error) {
 32995  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32996  	var body io.Reader = nil
 32997  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1webhook)
 32998  	if err != nil {
 32999  		return nil, err
 33000  	}
 33001  	c.urlParams_.Set("alt", alt)
 33002  	c.urlParams_.Set("prettyPrint", "false")
 33003  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/webhooks")
 33004  	urls += "?" + c.urlParams_.Encode()
 33005  	req, err := http.NewRequest("POST", urls, body)
 33006  	if err != nil {
 33007  		return nil, err
 33008  	}
 33009  	req.Header = reqHeaders
 33010  	googleapi.Expand(req.URL, map[string]string{
 33011  		"parent": c.parent,
 33012  	})
 33013  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33014  }
 33015  
 33016  // Do executes the "dialogflow.projects.locations.agents.webhooks.create" call.
 33017  // Any non-2xx status code is an error. Response headers are in either
 33018  // *GoogleCloudDialogflowCxV3beta1Webhook.ServerResponse.Header or (if a
 33019  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33020  // googleapi.IsNotModified to check whether the returned error was because
 33021  // http.StatusNotModified was returned.
 33022  func (c *ProjectsLocationsAgentsWebhooksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
 33023  	gensupport.SetOptions(c.urlParams_, opts...)
 33024  	res, err := c.doRequest("json")
 33025  	if res != nil && res.StatusCode == http.StatusNotModified {
 33026  		if res.Body != nil {
 33027  			res.Body.Close()
 33028  		}
 33029  		return nil, gensupport.WrapError(&googleapi.Error{
 33030  			Code:   res.StatusCode,
 33031  			Header: res.Header,
 33032  		})
 33033  	}
 33034  	if err != nil {
 33035  		return nil, err
 33036  	}
 33037  	defer googleapi.CloseBody(res)
 33038  	if err := googleapi.CheckResponse(res); err != nil {
 33039  		return nil, gensupport.WrapError(err)
 33040  	}
 33041  	ret := &GoogleCloudDialogflowCxV3beta1Webhook{
 33042  		ServerResponse: googleapi.ServerResponse{
 33043  			Header:         res.Header,
 33044  			HTTPStatusCode: res.StatusCode,
 33045  		},
 33046  	}
 33047  	target := &ret
 33048  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33049  		return nil, err
 33050  	}
 33051  	return ret, nil
 33052  }
 33053  
 33054  type ProjectsLocationsAgentsWebhooksDeleteCall struct {
 33055  	s          *Service
 33056  	name       string
 33057  	urlParams_ gensupport.URLParams
 33058  	ctx_       context.Context
 33059  	header_    http.Header
 33060  }
 33061  
 33062  // Delete: Deletes the specified webhook.
 33063  //
 33064  //   - name: The name of the webhook to delete. Format:
 33065  //     `projects//locations//agents//webhooks/`.
 33066  func (r *ProjectsLocationsAgentsWebhooksService) Delete(name string) *ProjectsLocationsAgentsWebhooksDeleteCall {
 33067  	c := &ProjectsLocationsAgentsWebhooksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33068  	c.name = name
 33069  	return c
 33070  }
 33071  
 33072  // Force sets the optional parameter "force": This field has no effect for
 33073  // webhook not being used. For webhooks that are used by pages/flows/transition
 33074  // route groups: * If `force` is set to false, an error will be returned with
 33075  // message indicating the referenced resources. * If `force` is set to true,
 33076  // Dialogflow will remove the webhook, as well as any references to the webhook
 33077  // (i.e. Webhook and tagin fulfillments that point to this webhook will be
 33078  // removed).
 33079  func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Force(force bool) *ProjectsLocationsAgentsWebhooksDeleteCall {
 33080  	c.urlParams_.Set("force", fmt.Sprint(force))
 33081  	return c
 33082  }
 33083  
 33084  // Fields allows partial responses to be retrieved. See
 33085  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33086  // details.
 33087  func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksDeleteCall {
 33088  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33089  	return c
 33090  }
 33091  
 33092  // Context sets the context to be used in this call's Do method.
 33093  func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksDeleteCall {
 33094  	c.ctx_ = ctx
 33095  	return c
 33096  }
 33097  
 33098  // Header returns a http.Header that can be modified by the caller to add
 33099  // headers to the request.
 33100  func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Header() http.Header {
 33101  	if c.header_ == nil {
 33102  		c.header_ = make(http.Header)
 33103  	}
 33104  	return c.header_
 33105  }
 33106  
 33107  func (c *ProjectsLocationsAgentsWebhooksDeleteCall) doRequest(alt string) (*http.Response, error) {
 33108  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33109  	var body io.Reader = nil
 33110  	c.urlParams_.Set("alt", alt)
 33111  	c.urlParams_.Set("prettyPrint", "false")
 33112  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 33113  	urls += "?" + c.urlParams_.Encode()
 33114  	req, err := http.NewRequest("DELETE", urls, body)
 33115  	if err != nil {
 33116  		return nil, err
 33117  	}
 33118  	req.Header = reqHeaders
 33119  	googleapi.Expand(req.URL, map[string]string{
 33120  		"name": c.name,
 33121  	})
 33122  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33123  }
 33124  
 33125  // Do executes the "dialogflow.projects.locations.agents.webhooks.delete" call.
 33126  // Any non-2xx status code is an error. Response headers are in either
 33127  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 33128  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 33129  // check whether the returned error was because http.StatusNotModified was
 33130  // returned.
 33131  func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 33132  	gensupport.SetOptions(c.urlParams_, opts...)
 33133  	res, err := c.doRequest("json")
 33134  	if res != nil && res.StatusCode == http.StatusNotModified {
 33135  		if res.Body != nil {
 33136  			res.Body.Close()
 33137  		}
 33138  		return nil, gensupport.WrapError(&googleapi.Error{
 33139  			Code:   res.StatusCode,
 33140  			Header: res.Header,
 33141  		})
 33142  	}
 33143  	if err != nil {
 33144  		return nil, err
 33145  	}
 33146  	defer googleapi.CloseBody(res)
 33147  	if err := googleapi.CheckResponse(res); err != nil {
 33148  		return nil, gensupport.WrapError(err)
 33149  	}
 33150  	ret := &GoogleProtobufEmpty{
 33151  		ServerResponse: googleapi.ServerResponse{
 33152  			Header:         res.Header,
 33153  			HTTPStatusCode: res.StatusCode,
 33154  		},
 33155  	}
 33156  	target := &ret
 33157  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33158  		return nil, err
 33159  	}
 33160  	return ret, nil
 33161  }
 33162  
 33163  type ProjectsLocationsAgentsWebhooksGetCall struct {
 33164  	s            *Service
 33165  	name         string
 33166  	urlParams_   gensupport.URLParams
 33167  	ifNoneMatch_ string
 33168  	ctx_         context.Context
 33169  	header_      http.Header
 33170  }
 33171  
 33172  // Get: Retrieves the specified webhook.
 33173  //
 33174  //   - name: The name of the webhook. Format:
 33175  //     `projects//locations//agents//webhooks/`.
 33176  func (r *ProjectsLocationsAgentsWebhooksService) Get(name string) *ProjectsLocationsAgentsWebhooksGetCall {
 33177  	c := &ProjectsLocationsAgentsWebhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33178  	c.name = name
 33179  	return c
 33180  }
 33181  
 33182  // Fields allows partial responses to be retrieved. See
 33183  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33184  // details.
 33185  func (c *ProjectsLocationsAgentsWebhooksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksGetCall {
 33186  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33187  	return c
 33188  }
 33189  
 33190  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33191  // object's ETag matches the given value. This is useful for getting updates
 33192  // only after the object has changed since the last request.
 33193  func (c *ProjectsLocationsAgentsWebhooksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksGetCall {
 33194  	c.ifNoneMatch_ = entityTag
 33195  	return c
 33196  }
 33197  
 33198  // Context sets the context to be used in this call's Do method.
 33199  func (c *ProjectsLocationsAgentsWebhooksGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksGetCall {
 33200  	c.ctx_ = ctx
 33201  	return c
 33202  }
 33203  
 33204  // Header returns a http.Header that can be modified by the caller to add
 33205  // headers to the request.
 33206  func (c *ProjectsLocationsAgentsWebhooksGetCall) Header() http.Header {
 33207  	if c.header_ == nil {
 33208  		c.header_ = make(http.Header)
 33209  	}
 33210  	return c.header_
 33211  }
 33212  
 33213  func (c *ProjectsLocationsAgentsWebhooksGetCall) doRequest(alt string) (*http.Response, error) {
 33214  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33215  	if c.ifNoneMatch_ != "" {
 33216  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33217  	}
 33218  	var body io.Reader = nil
 33219  	c.urlParams_.Set("alt", alt)
 33220  	c.urlParams_.Set("prettyPrint", "false")
 33221  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 33222  	urls += "?" + c.urlParams_.Encode()
 33223  	req, err := http.NewRequest("GET", urls, body)
 33224  	if err != nil {
 33225  		return nil, err
 33226  	}
 33227  	req.Header = reqHeaders
 33228  	googleapi.Expand(req.URL, map[string]string{
 33229  		"name": c.name,
 33230  	})
 33231  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33232  }
 33233  
 33234  // Do executes the "dialogflow.projects.locations.agents.webhooks.get" call.
 33235  // Any non-2xx status code is an error. Response headers are in either
 33236  // *GoogleCloudDialogflowCxV3beta1Webhook.ServerResponse.Header or (if a
 33237  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33238  // googleapi.IsNotModified to check whether the returned error was because
 33239  // http.StatusNotModified was returned.
 33240  func (c *ProjectsLocationsAgentsWebhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
 33241  	gensupport.SetOptions(c.urlParams_, opts...)
 33242  	res, err := c.doRequest("json")
 33243  	if res != nil && res.StatusCode == http.StatusNotModified {
 33244  		if res.Body != nil {
 33245  			res.Body.Close()
 33246  		}
 33247  		return nil, gensupport.WrapError(&googleapi.Error{
 33248  			Code:   res.StatusCode,
 33249  			Header: res.Header,
 33250  		})
 33251  	}
 33252  	if err != nil {
 33253  		return nil, err
 33254  	}
 33255  	defer googleapi.CloseBody(res)
 33256  	if err := googleapi.CheckResponse(res); err != nil {
 33257  		return nil, gensupport.WrapError(err)
 33258  	}
 33259  	ret := &GoogleCloudDialogflowCxV3beta1Webhook{
 33260  		ServerResponse: googleapi.ServerResponse{
 33261  			Header:         res.Header,
 33262  			HTTPStatusCode: res.StatusCode,
 33263  		},
 33264  	}
 33265  	target := &ret
 33266  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33267  		return nil, err
 33268  	}
 33269  	return ret, nil
 33270  }
 33271  
 33272  type ProjectsLocationsAgentsWebhooksListCall struct {
 33273  	s            *Service
 33274  	parent       string
 33275  	urlParams_   gensupport.URLParams
 33276  	ifNoneMatch_ string
 33277  	ctx_         context.Context
 33278  	header_      http.Header
 33279  }
 33280  
 33281  // List: Returns the list of all webhooks in the specified agent.
 33282  //
 33283  //   - parent: The agent to list all webhooks for. Format:
 33284  //     `projects//locations//agents/`.
 33285  func (r *ProjectsLocationsAgentsWebhooksService) List(parent string) *ProjectsLocationsAgentsWebhooksListCall {
 33286  	c := &ProjectsLocationsAgentsWebhooksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33287  	c.parent = parent
 33288  	return c
 33289  }
 33290  
 33291  // PageSize sets the optional parameter "pageSize": The maximum number of items
 33292  // to return in a single page. By default 100 and at most 1000.
 33293  func (c *ProjectsLocationsAgentsWebhooksListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsWebhooksListCall {
 33294  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33295  	return c
 33296  }
 33297  
 33298  // PageToken sets the optional parameter "pageToken": The next_page_token value
 33299  // returned from a previous list request.
 33300  func (c *ProjectsLocationsAgentsWebhooksListCall) PageToken(pageToken string) *ProjectsLocationsAgentsWebhooksListCall {
 33301  	c.urlParams_.Set("pageToken", pageToken)
 33302  	return c
 33303  }
 33304  
 33305  // Fields allows partial responses to be retrieved. See
 33306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33307  // details.
 33308  func (c *ProjectsLocationsAgentsWebhooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksListCall {
 33309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33310  	return c
 33311  }
 33312  
 33313  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33314  // object's ETag matches the given value. This is useful for getting updates
 33315  // only after the object has changed since the last request.
 33316  func (c *ProjectsLocationsAgentsWebhooksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksListCall {
 33317  	c.ifNoneMatch_ = entityTag
 33318  	return c
 33319  }
 33320  
 33321  // Context sets the context to be used in this call's Do method.
 33322  func (c *ProjectsLocationsAgentsWebhooksListCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksListCall {
 33323  	c.ctx_ = ctx
 33324  	return c
 33325  }
 33326  
 33327  // Header returns a http.Header that can be modified by the caller to add
 33328  // headers to the request.
 33329  func (c *ProjectsLocationsAgentsWebhooksListCall) Header() http.Header {
 33330  	if c.header_ == nil {
 33331  		c.header_ = make(http.Header)
 33332  	}
 33333  	return c.header_
 33334  }
 33335  
 33336  func (c *ProjectsLocationsAgentsWebhooksListCall) doRequest(alt string) (*http.Response, error) {
 33337  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33338  	if c.ifNoneMatch_ != "" {
 33339  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33340  	}
 33341  	var body io.Reader = nil
 33342  	c.urlParams_.Set("alt", alt)
 33343  	c.urlParams_.Set("prettyPrint", "false")
 33344  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/webhooks")
 33345  	urls += "?" + c.urlParams_.Encode()
 33346  	req, err := http.NewRequest("GET", urls, body)
 33347  	if err != nil {
 33348  		return nil, err
 33349  	}
 33350  	req.Header = reqHeaders
 33351  	googleapi.Expand(req.URL, map[string]string{
 33352  		"parent": c.parent,
 33353  	})
 33354  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33355  }
 33356  
 33357  // Do executes the "dialogflow.projects.locations.agents.webhooks.list" call.
 33358  // Any non-2xx status code is an error. Response headers are in either
 33359  // *GoogleCloudDialogflowCxV3beta1ListWebhooksResponse.ServerResponse.Header or
 33360  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 33361  // googleapi.IsNotModified to check whether the returned error was because
 33362  // http.StatusNotModified was returned.
 33363  func (c *ProjectsLocationsAgentsWebhooksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListWebhooksResponse, error) {
 33364  	gensupport.SetOptions(c.urlParams_, opts...)
 33365  	res, err := c.doRequest("json")
 33366  	if res != nil && res.StatusCode == http.StatusNotModified {
 33367  		if res.Body != nil {
 33368  			res.Body.Close()
 33369  		}
 33370  		return nil, gensupport.WrapError(&googleapi.Error{
 33371  			Code:   res.StatusCode,
 33372  			Header: res.Header,
 33373  		})
 33374  	}
 33375  	if err != nil {
 33376  		return nil, err
 33377  	}
 33378  	defer googleapi.CloseBody(res)
 33379  	if err := googleapi.CheckResponse(res); err != nil {
 33380  		return nil, gensupport.WrapError(err)
 33381  	}
 33382  	ret := &GoogleCloudDialogflowCxV3beta1ListWebhooksResponse{
 33383  		ServerResponse: googleapi.ServerResponse{
 33384  			Header:         res.Header,
 33385  			HTTPStatusCode: res.StatusCode,
 33386  		},
 33387  	}
 33388  	target := &ret
 33389  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33390  		return nil, err
 33391  	}
 33392  	return ret, nil
 33393  }
 33394  
 33395  // Pages invokes f for each page of results.
 33396  // A non-nil error returned from f will halt the iteration.
 33397  // The provided context supersedes any context provided to the Context method.
 33398  func (c *ProjectsLocationsAgentsWebhooksListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) error) error {
 33399  	c.ctx_ = ctx
 33400  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33401  	for {
 33402  		x, err := c.Do()
 33403  		if err != nil {
 33404  			return err
 33405  		}
 33406  		if err := f(x); err != nil {
 33407  			return err
 33408  		}
 33409  		if x.NextPageToken == "" {
 33410  			return nil
 33411  		}
 33412  		c.PageToken(x.NextPageToken)
 33413  	}
 33414  }
 33415  
 33416  type ProjectsLocationsAgentsWebhooksPatchCall struct {
 33417  	s                                     *Service
 33418  	nameid                                string
 33419  	googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook
 33420  	urlParams_                            gensupport.URLParams
 33421  	ctx_                                  context.Context
 33422  	header_                               http.Header
 33423  }
 33424  
 33425  // Patch: Updates the specified webhook.
 33426  //
 33427  //   - name: The unique identifier of the webhook. Required for the
 33428  //     Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name
 33429  //     automatically. Format: `projects//locations//agents//webhooks/`.
 33430  func (r *ProjectsLocationsAgentsWebhooksService) Patch(nameid string, googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook) *ProjectsLocationsAgentsWebhooksPatchCall {
 33431  	c := &ProjectsLocationsAgentsWebhooksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33432  	c.nameid = nameid
 33433  	c.googleclouddialogflowcxv3beta1webhook = googleclouddialogflowcxv3beta1webhook
 33434  	return c
 33435  }
 33436  
 33437  // UpdateMask sets the optional parameter "updateMask": The mask to control
 33438  // which fields get updated. If the mask is not present, all fields will be
 33439  // updated.
 33440  func (c *ProjectsLocationsAgentsWebhooksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsWebhooksPatchCall {
 33441  	c.urlParams_.Set("updateMask", updateMask)
 33442  	return c
 33443  }
 33444  
 33445  // Fields allows partial responses to be retrieved. See
 33446  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33447  // details.
 33448  func (c *ProjectsLocationsAgentsWebhooksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksPatchCall {
 33449  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33450  	return c
 33451  }
 33452  
 33453  // Context sets the context to be used in this call's Do method.
 33454  func (c *ProjectsLocationsAgentsWebhooksPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksPatchCall {
 33455  	c.ctx_ = ctx
 33456  	return c
 33457  }
 33458  
 33459  // Header returns a http.Header that can be modified by the caller to add
 33460  // headers to the request.
 33461  func (c *ProjectsLocationsAgentsWebhooksPatchCall) Header() http.Header {
 33462  	if c.header_ == nil {
 33463  		c.header_ = make(http.Header)
 33464  	}
 33465  	return c.header_
 33466  }
 33467  
 33468  func (c *ProjectsLocationsAgentsWebhooksPatchCall) doRequest(alt string) (*http.Response, error) {
 33469  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33470  	var body io.Reader = nil
 33471  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1webhook)
 33472  	if err != nil {
 33473  		return nil, err
 33474  	}
 33475  	c.urlParams_.Set("alt", alt)
 33476  	c.urlParams_.Set("prettyPrint", "false")
 33477  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 33478  	urls += "?" + c.urlParams_.Encode()
 33479  	req, err := http.NewRequest("PATCH", urls, body)
 33480  	if err != nil {
 33481  		return nil, err
 33482  	}
 33483  	req.Header = reqHeaders
 33484  	googleapi.Expand(req.URL, map[string]string{
 33485  		"name": c.nameid,
 33486  	})
 33487  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33488  }
 33489  
 33490  // Do executes the "dialogflow.projects.locations.agents.webhooks.patch" call.
 33491  // Any non-2xx status code is an error. Response headers are in either
 33492  // *GoogleCloudDialogflowCxV3beta1Webhook.ServerResponse.Header or (if a
 33493  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33494  // googleapi.IsNotModified to check whether the returned error was because
 33495  // http.StatusNotModified was returned.
 33496  func (c *ProjectsLocationsAgentsWebhooksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
 33497  	gensupport.SetOptions(c.urlParams_, opts...)
 33498  	res, err := c.doRequest("json")
 33499  	if res != nil && res.StatusCode == http.StatusNotModified {
 33500  		if res.Body != nil {
 33501  			res.Body.Close()
 33502  		}
 33503  		return nil, gensupport.WrapError(&googleapi.Error{
 33504  			Code:   res.StatusCode,
 33505  			Header: res.Header,
 33506  		})
 33507  	}
 33508  	if err != nil {
 33509  		return nil, err
 33510  	}
 33511  	defer googleapi.CloseBody(res)
 33512  	if err := googleapi.CheckResponse(res); err != nil {
 33513  		return nil, gensupport.WrapError(err)
 33514  	}
 33515  	ret := &GoogleCloudDialogflowCxV3beta1Webhook{
 33516  		ServerResponse: googleapi.ServerResponse{
 33517  			Header:         res.Header,
 33518  			HTTPStatusCode: res.StatusCode,
 33519  		},
 33520  	}
 33521  	target := &ret
 33522  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33523  		return nil, err
 33524  	}
 33525  	return ret, nil
 33526  }
 33527  
 33528  type ProjectsLocationsOperationsCancelCall struct {
 33529  	s          *Service
 33530  	name       string
 33531  	urlParams_ gensupport.URLParams
 33532  	ctx_       context.Context
 33533  	header_    http.Header
 33534  }
 33535  
 33536  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 33537  // server makes a best effort to cancel the operation, but success is not
 33538  // guaranteed. If the server doesn't support this method, it returns
 33539  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 33540  // other methods to check whether the cancellation succeeded or whether the
 33541  // operation completed despite cancellation. On successful cancellation, the
 33542  // operation is not deleted; instead, it becomes an operation with an
 33543  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 33544  // `Code.CANCELLED`.
 33545  //
 33546  // - name: The name of the operation resource to be cancelled.
 33547  func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
 33548  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33549  	c.name = name
 33550  	return c
 33551  }
 33552  
 33553  // Fields allows partial responses to be retrieved. See
 33554  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33555  // details.
 33556  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 33557  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33558  	return c
 33559  }
 33560  
 33561  // Context sets the context to be used in this call's Do method.
 33562  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 33563  	c.ctx_ = ctx
 33564  	return c
 33565  }
 33566  
 33567  // Header returns a http.Header that can be modified by the caller to add
 33568  // headers to the request.
 33569  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 33570  	if c.header_ == nil {
 33571  		c.header_ = make(http.Header)
 33572  	}
 33573  	return c.header_
 33574  }
 33575  
 33576  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 33577  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33578  	var body io.Reader = nil
 33579  	c.urlParams_.Set("alt", alt)
 33580  	c.urlParams_.Set("prettyPrint", "false")
 33581  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:cancel")
 33582  	urls += "?" + c.urlParams_.Encode()
 33583  	req, err := http.NewRequest("POST", urls, body)
 33584  	if err != nil {
 33585  		return nil, err
 33586  	}
 33587  	req.Header = reqHeaders
 33588  	googleapi.Expand(req.URL, map[string]string{
 33589  		"name": c.name,
 33590  	})
 33591  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33592  }
 33593  
 33594  // Do executes the "dialogflow.projects.locations.operations.cancel" call.
 33595  // Any non-2xx status code is an error. Response headers are in either
 33596  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 33597  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 33598  // check whether the returned error was because http.StatusNotModified was
 33599  // returned.
 33600  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 33601  	gensupport.SetOptions(c.urlParams_, opts...)
 33602  	res, err := c.doRequest("json")
 33603  	if res != nil && res.StatusCode == http.StatusNotModified {
 33604  		if res.Body != nil {
 33605  			res.Body.Close()
 33606  		}
 33607  		return nil, gensupport.WrapError(&googleapi.Error{
 33608  			Code:   res.StatusCode,
 33609  			Header: res.Header,
 33610  		})
 33611  	}
 33612  	if err != nil {
 33613  		return nil, err
 33614  	}
 33615  	defer googleapi.CloseBody(res)
 33616  	if err := googleapi.CheckResponse(res); err != nil {
 33617  		return nil, gensupport.WrapError(err)
 33618  	}
 33619  	ret := &GoogleProtobufEmpty{
 33620  		ServerResponse: googleapi.ServerResponse{
 33621  			Header:         res.Header,
 33622  			HTTPStatusCode: res.StatusCode,
 33623  		},
 33624  	}
 33625  	target := &ret
 33626  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33627  		return nil, err
 33628  	}
 33629  	return ret, nil
 33630  }
 33631  
 33632  type ProjectsLocationsOperationsGetCall struct {
 33633  	s            *Service
 33634  	name         string
 33635  	urlParams_   gensupport.URLParams
 33636  	ifNoneMatch_ string
 33637  	ctx_         context.Context
 33638  	header_      http.Header
 33639  }
 33640  
 33641  // Get: Gets the latest state of a long-running operation. Clients can use this
 33642  // method to poll the operation result at intervals as recommended by the API
 33643  // service.
 33644  //
 33645  // - name: The name of the operation resource.
 33646  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 33647  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33648  	c.name = name
 33649  	return c
 33650  }
 33651  
 33652  // Fields allows partial responses to be retrieved. See
 33653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33654  // details.
 33655  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 33656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33657  	return c
 33658  }
 33659  
 33660  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33661  // object's ETag matches the given value. This is useful for getting updates
 33662  // only after the object has changed since the last request.
 33663  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 33664  	c.ifNoneMatch_ = entityTag
 33665  	return c
 33666  }
 33667  
 33668  // Context sets the context to be used in this call's Do method.
 33669  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 33670  	c.ctx_ = ctx
 33671  	return c
 33672  }
 33673  
 33674  // Header returns a http.Header that can be modified by the caller to add
 33675  // headers to the request.
 33676  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 33677  	if c.header_ == nil {
 33678  		c.header_ = make(http.Header)
 33679  	}
 33680  	return c.header_
 33681  }
 33682  
 33683  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 33684  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33685  	if c.ifNoneMatch_ != "" {
 33686  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33687  	}
 33688  	var body io.Reader = nil
 33689  	c.urlParams_.Set("alt", alt)
 33690  	c.urlParams_.Set("prettyPrint", "false")
 33691  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 33692  	urls += "?" + c.urlParams_.Encode()
 33693  	req, err := http.NewRequest("GET", urls, body)
 33694  	if err != nil {
 33695  		return nil, err
 33696  	}
 33697  	req.Header = reqHeaders
 33698  	googleapi.Expand(req.URL, map[string]string{
 33699  		"name": c.name,
 33700  	})
 33701  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33702  }
 33703  
 33704  // Do executes the "dialogflow.projects.locations.operations.get" call.
 33705  // Any non-2xx status code is an error. Response headers are in either
 33706  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33707  // returned at all) in error.(*googleapi.Error).Header. Use
 33708  // googleapi.IsNotModified to check whether the returned error was because
 33709  // http.StatusNotModified was returned.
 33710  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33711  	gensupport.SetOptions(c.urlParams_, opts...)
 33712  	res, err := c.doRequest("json")
 33713  	if res != nil && res.StatusCode == http.StatusNotModified {
 33714  		if res.Body != nil {
 33715  			res.Body.Close()
 33716  		}
 33717  		return nil, gensupport.WrapError(&googleapi.Error{
 33718  			Code:   res.StatusCode,
 33719  			Header: res.Header,
 33720  		})
 33721  	}
 33722  	if err != nil {
 33723  		return nil, err
 33724  	}
 33725  	defer googleapi.CloseBody(res)
 33726  	if err := googleapi.CheckResponse(res); err != nil {
 33727  		return nil, gensupport.WrapError(err)
 33728  	}
 33729  	ret := &GoogleLongrunningOperation{
 33730  		ServerResponse: googleapi.ServerResponse{
 33731  			Header:         res.Header,
 33732  			HTTPStatusCode: res.StatusCode,
 33733  		},
 33734  	}
 33735  	target := &ret
 33736  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33737  		return nil, err
 33738  	}
 33739  	return ret, nil
 33740  }
 33741  
 33742  type ProjectsLocationsOperationsListCall struct {
 33743  	s            *Service
 33744  	name         string
 33745  	urlParams_   gensupport.URLParams
 33746  	ifNoneMatch_ string
 33747  	ctx_         context.Context
 33748  	header_      http.Header
 33749  }
 33750  
 33751  // List: Lists operations that match the specified filter in the request. If
 33752  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 33753  //
 33754  // - name: The name of the operation's parent resource.
 33755  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 33756  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33757  	c.name = name
 33758  	return c
 33759  }
 33760  
 33761  // Filter sets the optional parameter "filter": The standard list filter.
 33762  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 33763  	c.urlParams_.Set("filter", filter)
 33764  	return c
 33765  }
 33766  
 33767  // PageSize sets the optional parameter "pageSize": The standard list page
 33768  // size.
 33769  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 33770  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33771  	return c
 33772  }
 33773  
 33774  // PageToken sets the optional parameter "pageToken": The standard list page
 33775  // token.
 33776  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 33777  	c.urlParams_.Set("pageToken", pageToken)
 33778  	return c
 33779  }
 33780  
 33781  // Fields allows partial responses to be retrieved. See
 33782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33783  // details.
 33784  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 33785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33786  	return c
 33787  }
 33788  
 33789  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33790  // object's ETag matches the given value. This is useful for getting updates
 33791  // only after the object has changed since the last request.
 33792  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 33793  	c.ifNoneMatch_ = entityTag
 33794  	return c
 33795  }
 33796  
 33797  // Context sets the context to be used in this call's Do method.
 33798  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 33799  	c.ctx_ = ctx
 33800  	return c
 33801  }
 33802  
 33803  // Header returns a http.Header that can be modified by the caller to add
 33804  // headers to the request.
 33805  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 33806  	if c.header_ == nil {
 33807  		c.header_ = make(http.Header)
 33808  	}
 33809  	return c.header_
 33810  }
 33811  
 33812  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 33813  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33814  	if c.ifNoneMatch_ != "" {
 33815  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33816  	}
 33817  	var body io.Reader = nil
 33818  	c.urlParams_.Set("alt", alt)
 33819  	c.urlParams_.Set("prettyPrint", "false")
 33820  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/operations")
 33821  	urls += "?" + c.urlParams_.Encode()
 33822  	req, err := http.NewRequest("GET", urls, body)
 33823  	if err != nil {
 33824  		return nil, err
 33825  	}
 33826  	req.Header = reqHeaders
 33827  	googleapi.Expand(req.URL, map[string]string{
 33828  		"name": c.name,
 33829  	})
 33830  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33831  }
 33832  
 33833  // Do executes the "dialogflow.projects.locations.operations.list" call.
 33834  // Any non-2xx status code is an error. Response headers are in either
 33835  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 33836  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33837  // googleapi.IsNotModified to check whether the returned error was because
 33838  // http.StatusNotModified was returned.
 33839  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 33840  	gensupport.SetOptions(c.urlParams_, opts...)
 33841  	res, err := c.doRequest("json")
 33842  	if res != nil && res.StatusCode == http.StatusNotModified {
 33843  		if res.Body != nil {
 33844  			res.Body.Close()
 33845  		}
 33846  		return nil, gensupport.WrapError(&googleapi.Error{
 33847  			Code:   res.StatusCode,
 33848  			Header: res.Header,
 33849  		})
 33850  	}
 33851  	if err != nil {
 33852  		return nil, err
 33853  	}
 33854  	defer googleapi.CloseBody(res)
 33855  	if err := googleapi.CheckResponse(res); err != nil {
 33856  		return nil, gensupport.WrapError(err)
 33857  	}
 33858  	ret := &GoogleLongrunningListOperationsResponse{
 33859  		ServerResponse: googleapi.ServerResponse{
 33860  			Header:         res.Header,
 33861  			HTTPStatusCode: res.StatusCode,
 33862  		},
 33863  	}
 33864  	target := &ret
 33865  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33866  		return nil, err
 33867  	}
 33868  	return ret, nil
 33869  }
 33870  
 33871  // Pages invokes f for each page of results.
 33872  // A non-nil error returned from f will halt the iteration.
 33873  // The provided context supersedes any context provided to the Context method.
 33874  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 33875  	c.ctx_ = ctx
 33876  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33877  	for {
 33878  		x, err := c.Do()
 33879  		if err != nil {
 33880  			return err
 33881  		}
 33882  		if err := f(x); err != nil {
 33883  			return err
 33884  		}
 33885  		if x.NextPageToken == "" {
 33886  			return nil
 33887  		}
 33888  		c.PageToken(x.NextPageToken)
 33889  	}
 33890  }
 33891  
 33892  type ProjectsLocationsSecuritySettingsCreateCall struct {
 33893  	s                                              *Service
 33894  	parent                                         string
 33895  	googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings
 33896  	urlParams_                                     gensupport.URLParams
 33897  	ctx_                                           context.Context
 33898  	header_                                        http.Header
 33899  }
 33900  
 33901  // Create: Create security settings in the specified location.
 33902  //
 33903  //   - parent: The location to create an SecuritySettings for. Format:
 33904  //     `projects//locations/`.
 33905  func (r *ProjectsLocationsSecuritySettingsService) Create(parent string, googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings) *ProjectsLocationsSecuritySettingsCreateCall {
 33906  	c := &ProjectsLocationsSecuritySettingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33907  	c.parent = parent
 33908  	c.googleclouddialogflowcxv3beta1securitysettings = googleclouddialogflowcxv3beta1securitysettings
 33909  	return c
 33910  }
 33911  
 33912  // Fields allows partial responses to be retrieved. See
 33913  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33914  // details.
 33915  func (c *ProjectsLocationsSecuritySettingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsCreateCall {
 33916  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33917  	return c
 33918  }
 33919  
 33920  // Context sets the context to be used in this call's Do method.
 33921  func (c *ProjectsLocationsSecuritySettingsCreateCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsCreateCall {
 33922  	c.ctx_ = ctx
 33923  	return c
 33924  }
 33925  
 33926  // Header returns a http.Header that can be modified by the caller to add
 33927  // headers to the request.
 33928  func (c *ProjectsLocationsSecuritySettingsCreateCall) Header() http.Header {
 33929  	if c.header_ == nil {
 33930  		c.header_ = make(http.Header)
 33931  	}
 33932  	return c.header_
 33933  }
 33934  
 33935  func (c *ProjectsLocationsSecuritySettingsCreateCall) doRequest(alt string) (*http.Response, error) {
 33936  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33937  	var body io.Reader = nil
 33938  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1securitysettings)
 33939  	if err != nil {
 33940  		return nil, err
 33941  	}
 33942  	c.urlParams_.Set("alt", alt)
 33943  	c.urlParams_.Set("prettyPrint", "false")
 33944  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/securitySettings")
 33945  	urls += "?" + c.urlParams_.Encode()
 33946  	req, err := http.NewRequest("POST", urls, body)
 33947  	if err != nil {
 33948  		return nil, err
 33949  	}
 33950  	req.Header = reqHeaders
 33951  	googleapi.Expand(req.URL, map[string]string{
 33952  		"parent": c.parent,
 33953  	})
 33954  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33955  }
 33956  
 33957  // Do executes the "dialogflow.projects.locations.securitySettings.create" call.
 33958  // Any non-2xx status code is an error. Response headers are in either
 33959  // *GoogleCloudDialogflowCxV3beta1SecuritySettings.ServerResponse.Header or (if
 33960  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 33961  // googleapi.IsNotModified to check whether the returned error was because
 33962  // http.StatusNotModified was returned.
 33963  func (c *ProjectsLocationsSecuritySettingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
 33964  	gensupport.SetOptions(c.urlParams_, opts...)
 33965  	res, err := c.doRequest("json")
 33966  	if res != nil && res.StatusCode == http.StatusNotModified {
 33967  		if res.Body != nil {
 33968  			res.Body.Close()
 33969  		}
 33970  		return nil, gensupport.WrapError(&googleapi.Error{
 33971  			Code:   res.StatusCode,
 33972  			Header: res.Header,
 33973  		})
 33974  	}
 33975  	if err != nil {
 33976  		return nil, err
 33977  	}
 33978  	defer googleapi.CloseBody(res)
 33979  	if err := googleapi.CheckResponse(res); err != nil {
 33980  		return nil, gensupport.WrapError(err)
 33981  	}
 33982  	ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
 33983  		ServerResponse: googleapi.ServerResponse{
 33984  			Header:         res.Header,
 33985  			HTTPStatusCode: res.StatusCode,
 33986  		},
 33987  	}
 33988  	target := &ret
 33989  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33990  		return nil, err
 33991  	}
 33992  	return ret, nil
 33993  }
 33994  
 33995  type ProjectsLocationsSecuritySettingsDeleteCall struct {
 33996  	s          *Service
 33997  	name       string
 33998  	urlParams_ gensupport.URLParams
 33999  	ctx_       context.Context
 34000  	header_    http.Header
 34001  }
 34002  
 34003  // Delete: Deletes the specified SecuritySettings.
 34004  //
 34005  //   - name: The name of the SecuritySettings to delete. Format:
 34006  //     `projects//locations//securitySettings/`.
 34007  func (r *ProjectsLocationsSecuritySettingsService) Delete(name string) *ProjectsLocationsSecuritySettingsDeleteCall {
 34008  	c := &ProjectsLocationsSecuritySettingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34009  	c.name = name
 34010  	return c
 34011  }
 34012  
 34013  // Fields allows partial responses to be retrieved. See
 34014  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34015  // details.
 34016  func (c *ProjectsLocationsSecuritySettingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsDeleteCall {
 34017  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34018  	return c
 34019  }
 34020  
 34021  // Context sets the context to be used in this call's Do method.
 34022  func (c *ProjectsLocationsSecuritySettingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsDeleteCall {
 34023  	c.ctx_ = ctx
 34024  	return c
 34025  }
 34026  
 34027  // Header returns a http.Header that can be modified by the caller to add
 34028  // headers to the request.
 34029  func (c *ProjectsLocationsSecuritySettingsDeleteCall) Header() http.Header {
 34030  	if c.header_ == nil {
 34031  		c.header_ = make(http.Header)
 34032  	}
 34033  	return c.header_
 34034  }
 34035  
 34036  func (c *ProjectsLocationsSecuritySettingsDeleteCall) doRequest(alt string) (*http.Response, error) {
 34037  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34038  	var body io.Reader = nil
 34039  	c.urlParams_.Set("alt", alt)
 34040  	c.urlParams_.Set("prettyPrint", "false")
 34041  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 34042  	urls += "?" + c.urlParams_.Encode()
 34043  	req, err := http.NewRequest("DELETE", urls, body)
 34044  	if err != nil {
 34045  		return nil, err
 34046  	}
 34047  	req.Header = reqHeaders
 34048  	googleapi.Expand(req.URL, map[string]string{
 34049  		"name": c.name,
 34050  	})
 34051  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34052  }
 34053  
 34054  // Do executes the "dialogflow.projects.locations.securitySettings.delete" call.
 34055  // Any non-2xx status code is an error. Response headers are in either
 34056  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 34057  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 34058  // check whether the returned error was because http.StatusNotModified was
 34059  // returned.
 34060  func (c *ProjectsLocationsSecuritySettingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 34061  	gensupport.SetOptions(c.urlParams_, opts...)
 34062  	res, err := c.doRequest("json")
 34063  	if res != nil && res.StatusCode == http.StatusNotModified {
 34064  		if res.Body != nil {
 34065  			res.Body.Close()
 34066  		}
 34067  		return nil, gensupport.WrapError(&googleapi.Error{
 34068  			Code:   res.StatusCode,
 34069  			Header: res.Header,
 34070  		})
 34071  	}
 34072  	if err != nil {
 34073  		return nil, err
 34074  	}
 34075  	defer googleapi.CloseBody(res)
 34076  	if err := googleapi.CheckResponse(res); err != nil {
 34077  		return nil, gensupport.WrapError(err)
 34078  	}
 34079  	ret := &GoogleProtobufEmpty{
 34080  		ServerResponse: googleapi.ServerResponse{
 34081  			Header:         res.Header,
 34082  			HTTPStatusCode: res.StatusCode,
 34083  		},
 34084  	}
 34085  	target := &ret
 34086  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34087  		return nil, err
 34088  	}
 34089  	return ret, nil
 34090  }
 34091  
 34092  type ProjectsLocationsSecuritySettingsGetCall struct {
 34093  	s            *Service
 34094  	name         string
 34095  	urlParams_   gensupport.URLParams
 34096  	ifNoneMatch_ string
 34097  	ctx_         context.Context
 34098  	header_      http.Header
 34099  }
 34100  
 34101  // Get: Retrieves the specified SecuritySettings. The returned settings may be
 34102  // stale by up to 1 minute.
 34103  //
 34104  //   - name: Resource name of the settings. Format:
 34105  //     `projects//locations//securitySettings/`.
 34106  func (r *ProjectsLocationsSecuritySettingsService) Get(name string) *ProjectsLocationsSecuritySettingsGetCall {
 34107  	c := &ProjectsLocationsSecuritySettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34108  	c.name = name
 34109  	return c
 34110  }
 34111  
 34112  // Fields allows partial responses to be retrieved. See
 34113  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34114  // details.
 34115  func (c *ProjectsLocationsSecuritySettingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsGetCall {
 34116  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34117  	return c
 34118  }
 34119  
 34120  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34121  // object's ETag matches the given value. This is useful for getting updates
 34122  // only after the object has changed since the last request.
 34123  func (c *ProjectsLocationsSecuritySettingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsGetCall {
 34124  	c.ifNoneMatch_ = entityTag
 34125  	return c
 34126  }
 34127  
 34128  // Context sets the context to be used in this call's Do method.
 34129  func (c *ProjectsLocationsSecuritySettingsGetCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsGetCall {
 34130  	c.ctx_ = ctx
 34131  	return c
 34132  }
 34133  
 34134  // Header returns a http.Header that can be modified by the caller to add
 34135  // headers to the request.
 34136  func (c *ProjectsLocationsSecuritySettingsGetCall) Header() http.Header {
 34137  	if c.header_ == nil {
 34138  		c.header_ = make(http.Header)
 34139  	}
 34140  	return c.header_
 34141  }
 34142  
 34143  func (c *ProjectsLocationsSecuritySettingsGetCall) doRequest(alt string) (*http.Response, error) {
 34144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34145  	if c.ifNoneMatch_ != "" {
 34146  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34147  	}
 34148  	var body io.Reader = nil
 34149  	c.urlParams_.Set("alt", alt)
 34150  	c.urlParams_.Set("prettyPrint", "false")
 34151  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 34152  	urls += "?" + c.urlParams_.Encode()
 34153  	req, err := http.NewRequest("GET", urls, body)
 34154  	if err != nil {
 34155  		return nil, err
 34156  	}
 34157  	req.Header = reqHeaders
 34158  	googleapi.Expand(req.URL, map[string]string{
 34159  		"name": c.name,
 34160  	})
 34161  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34162  }
 34163  
 34164  // Do executes the "dialogflow.projects.locations.securitySettings.get" call.
 34165  // Any non-2xx status code is an error. Response headers are in either
 34166  // *GoogleCloudDialogflowCxV3beta1SecuritySettings.ServerResponse.Header or (if
 34167  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 34168  // googleapi.IsNotModified to check whether the returned error was because
 34169  // http.StatusNotModified was returned.
 34170  func (c *ProjectsLocationsSecuritySettingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
 34171  	gensupport.SetOptions(c.urlParams_, opts...)
 34172  	res, err := c.doRequest("json")
 34173  	if res != nil && res.StatusCode == http.StatusNotModified {
 34174  		if res.Body != nil {
 34175  			res.Body.Close()
 34176  		}
 34177  		return nil, gensupport.WrapError(&googleapi.Error{
 34178  			Code:   res.StatusCode,
 34179  			Header: res.Header,
 34180  		})
 34181  	}
 34182  	if err != nil {
 34183  		return nil, err
 34184  	}
 34185  	defer googleapi.CloseBody(res)
 34186  	if err := googleapi.CheckResponse(res); err != nil {
 34187  		return nil, gensupport.WrapError(err)
 34188  	}
 34189  	ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
 34190  		ServerResponse: googleapi.ServerResponse{
 34191  			Header:         res.Header,
 34192  			HTTPStatusCode: res.StatusCode,
 34193  		},
 34194  	}
 34195  	target := &ret
 34196  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34197  		return nil, err
 34198  	}
 34199  	return ret, nil
 34200  }
 34201  
 34202  type ProjectsLocationsSecuritySettingsListCall struct {
 34203  	s            *Service
 34204  	parent       string
 34205  	urlParams_   gensupport.URLParams
 34206  	ifNoneMatch_ string
 34207  	ctx_         context.Context
 34208  	header_      http.Header
 34209  }
 34210  
 34211  // List: Returns the list of all security settings in the specified location.
 34212  //
 34213  //   - parent: The location to list all security settings for. Format:
 34214  //     `projects//locations/`.
 34215  func (r *ProjectsLocationsSecuritySettingsService) List(parent string) *ProjectsLocationsSecuritySettingsListCall {
 34216  	c := &ProjectsLocationsSecuritySettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34217  	c.parent = parent
 34218  	return c
 34219  }
 34220  
 34221  // PageSize sets the optional parameter "pageSize": The maximum number of items
 34222  // to return in a single page. By default 20 and at most 100.
 34223  func (c *ProjectsLocationsSecuritySettingsListCall) PageSize(pageSize int64) *ProjectsLocationsSecuritySettingsListCall {
 34224  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 34225  	return c
 34226  }
 34227  
 34228  // PageToken sets the optional parameter "pageToken": The next_page_token value
 34229  // returned from a previous list request.
 34230  func (c *ProjectsLocationsSecuritySettingsListCall) PageToken(pageToken string) *ProjectsLocationsSecuritySettingsListCall {
 34231  	c.urlParams_.Set("pageToken", pageToken)
 34232  	return c
 34233  }
 34234  
 34235  // Fields allows partial responses to be retrieved. See
 34236  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34237  // details.
 34238  func (c *ProjectsLocationsSecuritySettingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsListCall {
 34239  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34240  	return c
 34241  }
 34242  
 34243  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34244  // object's ETag matches the given value. This is useful for getting updates
 34245  // only after the object has changed since the last request.
 34246  func (c *ProjectsLocationsSecuritySettingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsListCall {
 34247  	c.ifNoneMatch_ = entityTag
 34248  	return c
 34249  }
 34250  
 34251  // Context sets the context to be used in this call's Do method.
 34252  func (c *ProjectsLocationsSecuritySettingsListCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsListCall {
 34253  	c.ctx_ = ctx
 34254  	return c
 34255  }
 34256  
 34257  // Header returns a http.Header that can be modified by the caller to add
 34258  // headers to the request.
 34259  func (c *ProjectsLocationsSecuritySettingsListCall) Header() http.Header {
 34260  	if c.header_ == nil {
 34261  		c.header_ = make(http.Header)
 34262  	}
 34263  	return c.header_
 34264  }
 34265  
 34266  func (c *ProjectsLocationsSecuritySettingsListCall) doRequest(alt string) (*http.Response, error) {
 34267  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34268  	if c.ifNoneMatch_ != "" {
 34269  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34270  	}
 34271  	var body io.Reader = nil
 34272  	c.urlParams_.Set("alt", alt)
 34273  	c.urlParams_.Set("prettyPrint", "false")
 34274  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/securitySettings")
 34275  	urls += "?" + c.urlParams_.Encode()
 34276  	req, err := http.NewRequest("GET", urls, body)
 34277  	if err != nil {
 34278  		return nil, err
 34279  	}
 34280  	req.Header = reqHeaders
 34281  	googleapi.Expand(req.URL, map[string]string{
 34282  		"parent": c.parent,
 34283  	})
 34284  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34285  }
 34286  
 34287  // Do executes the "dialogflow.projects.locations.securitySettings.list" call.
 34288  // Any non-2xx status code is an error. Response headers are in either
 34289  // *GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse.ServerResponse.He
 34290  // ader or (if a response was returned at all) in
 34291  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 34292  // whether the returned error was because http.StatusNotModified was returned.
 34293  func (c *ProjectsLocationsSecuritySettingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse, error) {
 34294  	gensupport.SetOptions(c.urlParams_, opts...)
 34295  	res, err := c.doRequest("json")
 34296  	if res != nil && res.StatusCode == http.StatusNotModified {
 34297  		if res.Body != nil {
 34298  			res.Body.Close()
 34299  		}
 34300  		return nil, gensupport.WrapError(&googleapi.Error{
 34301  			Code:   res.StatusCode,
 34302  			Header: res.Header,
 34303  		})
 34304  	}
 34305  	if err != nil {
 34306  		return nil, err
 34307  	}
 34308  	defer googleapi.CloseBody(res)
 34309  	if err := googleapi.CheckResponse(res); err != nil {
 34310  		return nil, gensupport.WrapError(err)
 34311  	}
 34312  	ret := &GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse{
 34313  		ServerResponse: googleapi.ServerResponse{
 34314  			Header:         res.Header,
 34315  			HTTPStatusCode: res.StatusCode,
 34316  		},
 34317  	}
 34318  	target := &ret
 34319  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34320  		return nil, err
 34321  	}
 34322  	return ret, nil
 34323  }
 34324  
 34325  // Pages invokes f for each page of results.
 34326  // A non-nil error returned from f will halt the iteration.
 34327  // The provided context supersedes any context provided to the Context method.
 34328  func (c *ProjectsLocationsSecuritySettingsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse) error) error {
 34329  	c.ctx_ = ctx
 34330  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 34331  	for {
 34332  		x, err := c.Do()
 34333  		if err != nil {
 34334  			return err
 34335  		}
 34336  		if err := f(x); err != nil {
 34337  			return err
 34338  		}
 34339  		if x.NextPageToken == "" {
 34340  			return nil
 34341  		}
 34342  		c.PageToken(x.NextPageToken)
 34343  	}
 34344  }
 34345  
 34346  type ProjectsLocationsSecuritySettingsPatchCall struct {
 34347  	s                                              *Service
 34348  	name                                           string
 34349  	googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings
 34350  	urlParams_                                     gensupport.URLParams
 34351  	ctx_                                           context.Context
 34352  	header_                                        http.Header
 34353  }
 34354  
 34355  // Patch: Updates the specified SecuritySettings.
 34356  //
 34357  //   - name: Resource name of the settings. Required for the
 34358  //     SecuritySettingsService.UpdateSecuritySettings method.
 34359  //     SecuritySettingsService.CreateSecuritySettings populates the name
 34360  //     automatically. Format: `projects//locations//securitySettings/`.
 34361  func (r *ProjectsLocationsSecuritySettingsService) Patch(name string, googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings) *ProjectsLocationsSecuritySettingsPatchCall {
 34362  	c := &ProjectsLocationsSecuritySettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34363  	c.name = name
 34364  	c.googleclouddialogflowcxv3beta1securitysettings = googleclouddialogflowcxv3beta1securitysettings
 34365  	return c
 34366  }
 34367  
 34368  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 34369  // control which fields get updated. If the mask is not present, all fields
 34370  // will be updated.
 34371  func (c *ProjectsLocationsSecuritySettingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSecuritySettingsPatchCall {
 34372  	c.urlParams_.Set("updateMask", updateMask)
 34373  	return c
 34374  }
 34375  
 34376  // Fields allows partial responses to be retrieved. See
 34377  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34378  // details.
 34379  func (c *ProjectsLocationsSecuritySettingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsPatchCall {
 34380  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34381  	return c
 34382  }
 34383  
 34384  // Context sets the context to be used in this call's Do method.
 34385  func (c *ProjectsLocationsSecuritySettingsPatchCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsPatchCall {
 34386  	c.ctx_ = ctx
 34387  	return c
 34388  }
 34389  
 34390  // Header returns a http.Header that can be modified by the caller to add
 34391  // headers to the request.
 34392  func (c *ProjectsLocationsSecuritySettingsPatchCall) Header() http.Header {
 34393  	if c.header_ == nil {
 34394  		c.header_ = make(http.Header)
 34395  	}
 34396  	return c.header_
 34397  }
 34398  
 34399  func (c *ProjectsLocationsSecuritySettingsPatchCall) doRequest(alt string) (*http.Response, error) {
 34400  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34401  	var body io.Reader = nil
 34402  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1securitysettings)
 34403  	if err != nil {
 34404  		return nil, err
 34405  	}
 34406  	c.urlParams_.Set("alt", alt)
 34407  	c.urlParams_.Set("prettyPrint", "false")
 34408  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 34409  	urls += "?" + c.urlParams_.Encode()
 34410  	req, err := http.NewRequest("PATCH", urls, body)
 34411  	if err != nil {
 34412  		return nil, err
 34413  	}
 34414  	req.Header = reqHeaders
 34415  	googleapi.Expand(req.URL, map[string]string{
 34416  		"name": c.name,
 34417  	})
 34418  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34419  }
 34420  
 34421  // Do executes the "dialogflow.projects.locations.securitySettings.patch" call.
 34422  // Any non-2xx status code is an error. Response headers are in either
 34423  // *GoogleCloudDialogflowCxV3beta1SecuritySettings.ServerResponse.Header or (if
 34424  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 34425  // googleapi.IsNotModified to check whether the returned error was because
 34426  // http.StatusNotModified was returned.
 34427  func (c *ProjectsLocationsSecuritySettingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
 34428  	gensupport.SetOptions(c.urlParams_, opts...)
 34429  	res, err := c.doRequest("json")
 34430  	if res != nil && res.StatusCode == http.StatusNotModified {
 34431  		if res.Body != nil {
 34432  			res.Body.Close()
 34433  		}
 34434  		return nil, gensupport.WrapError(&googleapi.Error{
 34435  			Code:   res.StatusCode,
 34436  			Header: res.Header,
 34437  		})
 34438  	}
 34439  	if err != nil {
 34440  		return nil, err
 34441  	}
 34442  	defer googleapi.CloseBody(res)
 34443  	if err := googleapi.CheckResponse(res); err != nil {
 34444  		return nil, gensupport.WrapError(err)
 34445  	}
 34446  	ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
 34447  		ServerResponse: googleapi.ServerResponse{
 34448  			Header:         res.Header,
 34449  			HTTPStatusCode: res.StatusCode,
 34450  		},
 34451  	}
 34452  	target := &ret
 34453  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34454  		return nil, err
 34455  	}
 34456  	return ret, nil
 34457  }
 34458  
 34459  type ProjectsOperationsCancelCall struct {
 34460  	s          *Service
 34461  	name       string
 34462  	urlParams_ gensupport.URLParams
 34463  	ctx_       context.Context
 34464  	header_    http.Header
 34465  }
 34466  
 34467  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 34468  // server makes a best effort to cancel the operation, but success is not
 34469  // guaranteed. If the server doesn't support this method, it returns
 34470  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 34471  // other methods to check whether the cancellation succeeded or whether the
 34472  // operation completed despite cancellation. On successful cancellation, the
 34473  // operation is not deleted; instead, it becomes an operation with an
 34474  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 34475  // `Code.CANCELLED`.
 34476  //
 34477  // - name: The name of the operation resource to be cancelled.
 34478  func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
 34479  	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34480  	c.name = name
 34481  	return c
 34482  }
 34483  
 34484  // Fields allows partial responses to be retrieved. See
 34485  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34486  // details.
 34487  func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
 34488  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34489  	return c
 34490  }
 34491  
 34492  // Context sets the context to be used in this call's Do method.
 34493  func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
 34494  	c.ctx_ = ctx
 34495  	return c
 34496  }
 34497  
 34498  // Header returns a http.Header that can be modified by the caller to add
 34499  // headers to the request.
 34500  func (c *ProjectsOperationsCancelCall) Header() http.Header {
 34501  	if c.header_ == nil {
 34502  		c.header_ = make(http.Header)
 34503  	}
 34504  	return c.header_
 34505  }
 34506  
 34507  func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 34508  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34509  	var body io.Reader = nil
 34510  	c.urlParams_.Set("alt", alt)
 34511  	c.urlParams_.Set("prettyPrint", "false")
 34512  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:cancel")
 34513  	urls += "?" + c.urlParams_.Encode()
 34514  	req, err := http.NewRequest("POST", urls, body)
 34515  	if err != nil {
 34516  		return nil, err
 34517  	}
 34518  	req.Header = reqHeaders
 34519  	googleapi.Expand(req.URL, map[string]string{
 34520  		"name": c.name,
 34521  	})
 34522  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34523  }
 34524  
 34525  // Do executes the "dialogflow.projects.operations.cancel" call.
 34526  // Any non-2xx status code is an error. Response headers are in either
 34527  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 34528  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 34529  // check whether the returned error was because http.StatusNotModified was
 34530  // returned.
 34531  func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 34532  	gensupport.SetOptions(c.urlParams_, opts...)
 34533  	res, err := c.doRequest("json")
 34534  	if res != nil && res.StatusCode == http.StatusNotModified {
 34535  		if res.Body != nil {
 34536  			res.Body.Close()
 34537  		}
 34538  		return nil, gensupport.WrapError(&googleapi.Error{
 34539  			Code:   res.StatusCode,
 34540  			Header: res.Header,
 34541  		})
 34542  	}
 34543  	if err != nil {
 34544  		return nil, err
 34545  	}
 34546  	defer googleapi.CloseBody(res)
 34547  	if err := googleapi.CheckResponse(res); err != nil {
 34548  		return nil, gensupport.WrapError(err)
 34549  	}
 34550  	ret := &GoogleProtobufEmpty{
 34551  		ServerResponse: googleapi.ServerResponse{
 34552  			Header:         res.Header,
 34553  			HTTPStatusCode: res.StatusCode,
 34554  		},
 34555  	}
 34556  	target := &ret
 34557  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34558  		return nil, err
 34559  	}
 34560  	return ret, nil
 34561  }
 34562  
 34563  type ProjectsOperationsGetCall struct {
 34564  	s            *Service
 34565  	name         string
 34566  	urlParams_   gensupport.URLParams
 34567  	ifNoneMatch_ string
 34568  	ctx_         context.Context
 34569  	header_      http.Header
 34570  }
 34571  
 34572  // Get: Gets the latest state of a long-running operation. Clients can use this
 34573  // method to poll the operation result at intervals as recommended by the API
 34574  // service.
 34575  //
 34576  // - name: The name of the operation resource.
 34577  func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
 34578  	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34579  	c.name = name
 34580  	return c
 34581  }
 34582  
 34583  // Fields allows partial responses to be retrieved. See
 34584  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34585  // details.
 34586  func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
 34587  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34588  	return c
 34589  }
 34590  
 34591  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34592  // object's ETag matches the given value. This is useful for getting updates
 34593  // only after the object has changed since the last request.
 34594  func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
 34595  	c.ifNoneMatch_ = entityTag
 34596  	return c
 34597  }
 34598  
 34599  // Context sets the context to be used in this call's Do method.
 34600  func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
 34601  	c.ctx_ = ctx
 34602  	return c
 34603  }
 34604  
 34605  // Header returns a http.Header that can be modified by the caller to add
 34606  // headers to the request.
 34607  func (c *ProjectsOperationsGetCall) Header() http.Header {
 34608  	if c.header_ == nil {
 34609  		c.header_ = make(http.Header)
 34610  	}
 34611  	return c.header_
 34612  }
 34613  
 34614  func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 34615  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34616  	if c.ifNoneMatch_ != "" {
 34617  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34618  	}
 34619  	var body io.Reader = nil
 34620  	c.urlParams_.Set("alt", alt)
 34621  	c.urlParams_.Set("prettyPrint", "false")
 34622  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
 34623  	urls += "?" + c.urlParams_.Encode()
 34624  	req, err := http.NewRequest("GET", urls, body)
 34625  	if err != nil {
 34626  		return nil, err
 34627  	}
 34628  	req.Header = reqHeaders
 34629  	googleapi.Expand(req.URL, map[string]string{
 34630  		"name": c.name,
 34631  	})
 34632  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34633  }
 34634  
 34635  // Do executes the "dialogflow.projects.operations.get" call.
 34636  // Any non-2xx status code is an error. Response headers are in either
 34637  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34638  // returned at all) in error.(*googleapi.Error).Header. Use
 34639  // googleapi.IsNotModified to check whether the returned error was because
 34640  // http.StatusNotModified was returned.
 34641  func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34642  	gensupport.SetOptions(c.urlParams_, opts...)
 34643  	res, err := c.doRequest("json")
 34644  	if res != nil && res.StatusCode == http.StatusNotModified {
 34645  		if res.Body != nil {
 34646  			res.Body.Close()
 34647  		}
 34648  		return nil, gensupport.WrapError(&googleapi.Error{
 34649  			Code:   res.StatusCode,
 34650  			Header: res.Header,
 34651  		})
 34652  	}
 34653  	if err != nil {
 34654  		return nil, err
 34655  	}
 34656  	defer googleapi.CloseBody(res)
 34657  	if err := googleapi.CheckResponse(res); err != nil {
 34658  		return nil, gensupport.WrapError(err)
 34659  	}
 34660  	ret := &GoogleLongrunningOperation{
 34661  		ServerResponse: googleapi.ServerResponse{
 34662  			Header:         res.Header,
 34663  			HTTPStatusCode: res.StatusCode,
 34664  		},
 34665  	}
 34666  	target := &ret
 34667  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34668  		return nil, err
 34669  	}
 34670  	return ret, nil
 34671  }
 34672  
 34673  type ProjectsOperationsListCall struct {
 34674  	s            *Service
 34675  	name         string
 34676  	urlParams_   gensupport.URLParams
 34677  	ifNoneMatch_ string
 34678  	ctx_         context.Context
 34679  	header_      http.Header
 34680  }
 34681  
 34682  // List: Lists operations that match the specified filter in the request. If
 34683  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 34684  //
 34685  // - name: The name of the operation's parent resource.
 34686  func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
 34687  	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34688  	c.name = name
 34689  	return c
 34690  }
 34691  
 34692  // Filter sets the optional parameter "filter": The standard list filter.
 34693  func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
 34694  	c.urlParams_.Set("filter", filter)
 34695  	return c
 34696  }
 34697  
 34698  // PageSize sets the optional parameter "pageSize": The standard list page
 34699  // size.
 34700  func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
 34701  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 34702  	return c
 34703  }
 34704  
 34705  // PageToken sets the optional parameter "pageToken": The standard list page
 34706  // token.
 34707  func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
 34708  	c.urlParams_.Set("pageToken", pageToken)
 34709  	return c
 34710  }
 34711  
 34712  // Fields allows partial responses to be retrieved. See
 34713  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34714  // details.
 34715  func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
 34716  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34717  	return c
 34718  }
 34719  
 34720  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34721  // object's ETag matches the given value. This is useful for getting updates
 34722  // only after the object has changed since the last request.
 34723  func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
 34724  	c.ifNoneMatch_ = entityTag
 34725  	return c
 34726  }
 34727  
 34728  // Context sets the context to be used in this call's Do method.
 34729  func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
 34730  	c.ctx_ = ctx
 34731  	return c
 34732  }
 34733  
 34734  // Header returns a http.Header that can be modified by the caller to add
 34735  // headers to the request.
 34736  func (c *ProjectsOperationsListCall) Header() http.Header {
 34737  	if c.header_ == nil {
 34738  		c.header_ = make(http.Header)
 34739  	}
 34740  	return c.header_
 34741  }
 34742  
 34743  func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 34744  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34745  	if c.ifNoneMatch_ != "" {
 34746  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34747  	}
 34748  	var body io.Reader = nil
 34749  	c.urlParams_.Set("alt", alt)
 34750  	c.urlParams_.Set("prettyPrint", "false")
 34751  	urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/operations")
 34752  	urls += "?" + c.urlParams_.Encode()
 34753  	req, err := http.NewRequest("GET", urls, body)
 34754  	if err != nil {
 34755  		return nil, err
 34756  	}
 34757  	req.Header = reqHeaders
 34758  	googleapi.Expand(req.URL, map[string]string{
 34759  		"name": c.name,
 34760  	})
 34761  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34762  }
 34763  
 34764  // Do executes the "dialogflow.projects.operations.list" call.
 34765  // Any non-2xx status code is an error. Response headers are in either
 34766  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 34767  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34768  // googleapi.IsNotModified to check whether the returned error was because
 34769  // http.StatusNotModified was returned.
 34770  func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 34771  	gensupport.SetOptions(c.urlParams_, opts...)
 34772  	res, err := c.doRequest("json")
 34773  	if res != nil && res.StatusCode == http.StatusNotModified {
 34774  		if res.Body != nil {
 34775  			res.Body.Close()
 34776  		}
 34777  		return nil, gensupport.WrapError(&googleapi.Error{
 34778  			Code:   res.StatusCode,
 34779  			Header: res.Header,
 34780  		})
 34781  	}
 34782  	if err != nil {
 34783  		return nil, err
 34784  	}
 34785  	defer googleapi.CloseBody(res)
 34786  	if err := googleapi.CheckResponse(res); err != nil {
 34787  		return nil, gensupport.WrapError(err)
 34788  	}
 34789  	ret := &GoogleLongrunningListOperationsResponse{
 34790  		ServerResponse: googleapi.ServerResponse{
 34791  			Header:         res.Header,
 34792  			HTTPStatusCode: res.StatusCode,
 34793  		},
 34794  	}
 34795  	target := &ret
 34796  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34797  		return nil, err
 34798  	}
 34799  	return ret, nil
 34800  }
 34801  
 34802  // Pages invokes f for each page of results.
 34803  // A non-nil error returned from f will halt the iteration.
 34804  // The provided context supersedes any context provided to the Context method.
 34805  func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 34806  	c.ctx_ = ctx
 34807  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 34808  	for {
 34809  		x, err := c.Do()
 34810  		if err != nil {
 34811  			return err
 34812  		}
 34813  		if err := f(x); err != nil {
 34814  			return err
 34815  		}
 34816  		if x.NextPageToken == "" {
 34817  			return nil
 34818  		}
 34819  		c.PageToken(x.NextPageToken)
 34820  	}
 34821  }
 34822  

View as plain text